{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "section-blocks/advanced-heading",
  "version": "1.0.0",
  "title": "Advanced Heading",
  "category": "section-blocks-elements",
  "icon": "heading",
  "description": "A heading with an optional eyebrow, subheading, decorative separator and gradient text.",
  "keywords": [
    "heading",
    "title",
    "eyebrow",
    "subheading",
    "gradient",
    "separator"
  ],
  "textdomain": "section-blocks",
  "attributes": {
    "showEyebrow": {
      "type": "boolean",
      "default": false
    },
    "eyebrow": {
      "type": "string",
      "default": ""
    },
    "heading": {
      "type": "string",
      "default": ""
    },
    "level": {
      "type": "number",
      "default": 2
    },
    "showSubheading": {
      "type": "boolean",
      "default": false
    },
    "subheading": {
      "type": "string",
      "default": ""
    },
    "textAlign": {
      "type": "string",
      "default": ""
    },
    "separator": {
      "type": "string",
      "enum": [
        "none",
        "line",
        "dots",
        "gradient"
      ],
      "default": "line"
    },
    "separatorWidth": {
      "type": "number",
      "default": 64
    },
    "gradientText": {
      "type": "boolean",
      "default": false
    },
    "gradientFrom": {
      "type": "string",
      "default": "#6366F1"
    },
    "gradientTo": {
      "type": "string",
      "default": "#C026D3"
    }
  },
  "supports": {
    "html": false,
    "anchor": true,
    "align": [
      "wide",
      "full"
    ],
    "color": {
      "background": true,
      "text": true,
      "link": true
    },
    "spacing": {
      "padding": true,
      "margin": true
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "__experimentalFontFamily": true,
      "__experimentalFontWeight": true,
      "__experimentalLetterSpacing": true,
      "__experimentalSkipSerialization": true,
      "__experimentalDefaultControls": {
        "fontSize": true
      }
    }
  },
  "example": {
    "attributes": {
      "showEyebrow": true,
      "eyebrow": "Why teams choose us",
      "heading": "Build pages that convert",
      "showSubheading": true,
      "subheading": "Every section you need, designed to work with your theme.",
      "textAlign": "center",
      "separator": "gradient",
      "separatorWidth": 80,
      "gradientText": true
    }
  },
  "editorScript": "file:./index.js",
  "style": [
    "file:./style-index.css",
    "section-blocks-shared"
  ],
  "render": "file:./render.php"
}