{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "title": "Cube Slider",
  "name": "brandy/cube-slider",
  "category": "brandy-blocks",
  "description": "Slider whose slides are the faces of a rotating 3D cube. Always one slide at a time.",
  "keywords": [
    "cube",
    "slider",
    "carousel",
    "3d",
    "rotate",
    "slides"
  ],
  "attributes": {
    "aspectRatio": {
      "type": "string",
      "enum": [
        "16/9",
        "4/3",
        "3/2",
        "1/1",
        "3/4",
        "9/16"
      ],
      "default": "16/9"
    },
    "loop": {
      "type": "boolean",
      "default": true
    },
    "autoplay": {
      "type": "boolean",
      "default": false
    },
    "autoplayDelay": {
      "type": "number",
      "default": 4000
    },
    "pauseOnHover": {
      "type": "boolean",
      "default": false
    },
    "showArrows": {
      "type": "boolean",
      "default": true
    },
    "showDots": {
      "type": "boolean",
      "default": true
    },
    "controlsPlacement": {
      "type": "string",
      "default": ""
    },
    "controlsNav": {
      "type": "string",
      "default": ""
    },
    "controlsDots": {
      "type": "string",
      "default": ""
    },
    "controlsReveal": {
      "type": "string",
      "default": ""
    },
    "controlsNavColors": {
      "type": "object",
      "default": {}
    },
    "controlsDotsColors": {
      "type": "object",
      "default": {}
    }
  },
  "allowedBlocks": [
    "brandy/slide"
  ],
  "example": {
    "viewportWidth": 1000,
    "attributes": {
      "aspectRatio": "16/9"
    },
    "innerBlocks": [
      {
        "name": "brandy/slide",
        "attributes": {
          "backgroundColor": "brandy-gray-3"
        },
        "innerBlocks": [
          {
            "name": "core/heading",
            "attributes": {
              "level": 3,
              "content": "One idea per face"
            }
          },
          {
            "name": "core/paragraph",
            "attributes": {
              "content": "Give each face a single thought. The cube turns; the reader keeps up."
            }
          }
        ]
      },
      {
        "name": "brandy/slide",
        "attributes": {
          "backgroundColor": "brandy-gray-3"
        },
        "innerBlocks": [
          {
            "name": "core/heading",
            "attributes": {
              "level": 3,
              "content": "Short beats long"
            }
          },
          {
            "name": "core/paragraph",
            "attributes": {
              "content": "A face is on screen for a moment. Write for the glance, not the study."
            }
          }
        ]
      }
    ]
  },
  "supports": {
    "reusable": false,
    "html": false,
    "align": [
      "wide",
      "full"
    ],
    "spacing": {
      "margin": true,
      "padding": true
    }
  },
  "render": "file:./render.php",
  "textdomain": "brandy-blocks",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScriptModule": "file:./view.js"
}