{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "version": "24.1.2",
  "textdomain": "snow-monkey-blocks",
  "name": "snow-monkey-blocks/spider-slider",
  "title": "Slider",
  "description": "Show attractive images as beautiful sliders.",
  "category": "smb",
  "attributes": {
    "images": {
      "type": "array",
      "default": [],
      "source": "query",
      "selector": ".smb-spider-slider .spider__slide",
      "query": {
        "url": {
          "type": "string",
          "source": "attribute",
          "selector": ".spider__figure",
          "attribute": "src"
        },
        "alt": {
          "type": "string",
          "source": "attribute",
          "selector": ".spider__figure",
          "attribute": "alt"
        },
        "id": {
          "type": "string",
          "source": "attribute",
          "selector": ".spider__figure",
          "attribute": "data-image-id"
        },
        "width": {
          "type": "number",
          "source": "attribute",
          "selector": ".spider__figure",
          "attribute": "width"
        },
        "height": {
          "type": "number",
          "source": "attribute",
          "selector": ".spider__figure",
          "attribute": "height"
        },
        "caption": {
          "type": "string",
          "source": "html",
          "selector": ".smb-spider-slider__item__caption",
          "default": ""
        }
      }
    },
    "sizeSlug": {
      "type": "string",
      "default": "full"
    },
    "dots": {
      "type": "boolean",
      "default": false
    },
    "dotsToThumbnail": {
      "type": "boolean",
      "default": false
    },
    "arrows": {
      "type": "boolean",
      "default": false
    },
    "fade": {
      "type": "boolean",
      "default": false
    },
    "shuffle": {
      "type": "boolean",
      "default": false
    },
    "shifted": {
      "type": "boolean",
      "default": false
    },
    "gutter": {
      "type": "string",
      "default": ""
    },
    "aspectRatio": {
      "type": "string",
      "default": ""
    },
    "displayCaption": {
      "type": "boolean",
      "default": false
    },
    "interval": {
      "type": "number",
      "default": 0
    },
    "autoplayButton": {
      "type": "boolean",
      "default": false
    },
    "duration": {
      "type": "number",
      "default": 0
    },
    "lgSlidesToShow": {
      "type": "number",
      "default": 1
    },
    "mdSlidesToShow": {
      "type": "number",
      "default": 1
    },
    "smSlidesToShow": {
      "type": "number",
      "default": 1
    }
  },
  "supports": {
    "align": [
      "wide",
      "full"
    ],
    "spacing": {
      "margin": true
    }
  },
  "editorStyle": "file:./index.css",
  "editorScript": "file:./index.js",
  "viewScript": [
    "spider",
    "file:./script.js"
  ]
}