{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "blablablocks/slider",
  "version": "0.1.0",
  "title": "Slider",
  "category": "widgets",
  "description": "A customizable slider block to display multiple slides with smooth transitions, ideal for showcasing images or content in a dynamic carousel format.",
  "example": {},
  "attributes": {
    "contentSource": {
      "type": "string",
      "enum": [
        "slides",
        "query"
      ],
      "default": "slides"
    },
    "slidesPerView": {
      "type": "object",
      "default": {
        "desktop": 1,
        "tablet": 1,
        "mobile": 1,
        "activeDevice": "desktop"
      },
      "properties": {
        "desktop": {
          "type": "number"
        },
        "tablet": {
          "type": "number"
        },
        "mobile": {
          "type": "number"
        },
        "activeDevice": {
          "type": "string"
        }
      }
    },
    "slidesSpacing": {
      "type": "object",
      "default": {
        "desktop": 30,
        "tablet": 20,
        "mobile": 10,
        "activeDevice": "desktop"
      },
      "properties": {
        "desktop": {
          "type": "integer"
        },
        "tablet": {
          "type": "integer"
        },
        "mobile": {
          "type": "integer"
        },
        "activeDevice": {
          "type": "string"
        }
      }
    },
    "speed": {
      "type": "integer",
      "default": 300
    },
    "effects": {
      "type": "string",
      "default": "slide"
    },
    "autoplay": {
      "type": "boolean",
      "default": false
    },
    "delay": {
      "type": "integer",
      "default": 5000
    },
    "navigation": {
      "type": "object",
      "default": {
        "desktop": true,
        "tablet": true,
        "mobile": true,
        "activeDevice": "desktop"
      },
      "properties": {
        "desktop": {
          "type": "boolean"
        },
        "tablet": {
          "type": "boolean"
        },
        "mobile": {
          "type": "boolean"
        },
        "activeDevice": {
          "type": "string"
        }
      }
    },
    "pagination": {
      "type": "object",
      "default": {
        "desktop": true,
        "tablet": true,
        "mobile": true,
        "activeDevice": "desktop"
      },
      "properties": {
        "desktop": {
          "type": "boolean"
        },
        "tablet": {
          "type": "boolean"
        },
        "mobile": {
          "type": "boolean"
        },
        "activeDevice": {
          "type": "string"
        }
      }
    },
    "loop": {
      "type": "boolean",
      "default": false
    },
    "navigationColor": {
      "type": "object",
      "properties": {
        "arrowColor": {
          "type": "object",
          "properties": {
            "default": {
              "type": "string"
            },
            "hover": {
              "type": "string"
            }
          }
        },
        "backgroundColor": {
          "type": "object",
          "properties": {
            "default": {
              "type": "string"
            },
            "hover": {
              "type": "string"
            }
          }
        }
      }
    },
    "navigationPadding": {
      "type": "object"
    },
    "navigationSize": {
      "type": "string"
    },
    "navigationSpacing": {
      "type": "object"
    },
    "navigationOffset": {
      "type": "object"
    },
    "navigationPosition": {
      "type": "string"
    },
    "navigationBorderRadius": {
      "type": "string"
    },
    "paginationSize": {
      "type": "string"
    },
    "paginationOffset": {
      "type": "object"
    },
    "paginationPosition": {
      "type": "string"
    },
    "paginationColor": {
      "type": "object",
      "properties": {
        "activeColor": {
          "type": "object",
          "properties": {
            "default": {
              "type": "string"
            }
          }
        },
        "inactiveColor": {
          "type": "object",
          "properties": {
            "default": {
              "type": "string"
            }
          }
        }
      }
    }
  },
  "supports": {
    "anchor": true,
    "html": false,
    "align": [
      "wide",
      "full"
    ],
    "color": {
      "gradients": true,
      "link": true,
      "heading": true,
      "button": true,
      "__experimentalDefaultControls": {
        "background": true,
        "text": true
      }
    },
    "spacing": {
      "margin": [
        "top",
        "bottom"
      ],
      "padding": true,
      "__experimentalDefaultControls": {
        "padding": true,
        "blockGap": true
      }
    },
    "layout": {
      "allowSwitching": false,
      "allowInheriting": false,
      "allowEditing": false,
      "default": {
        "type": "flex",
        "flexWrap": "nowrap"
      }
    }
  },
  "allowedBlocks": [
    "blablablocks/slide",
    "core/query"
  ],
  "textdomain": "blablablocks-slider-block",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "render": "file:./render.php",
  "viewScript": "file:./view.js"
}