{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "bloqra/alert",
  "version": "1.0.0",
  "title": "Alert",
  "category": "bloqra",
  "icon": "warning",
  "description": "An info, success, warning or error notice with icon, optional title and a dismiss button that can remember its state.",
  "keywords": [
    "alert",
    "notice",
    "message",
    "warning",
    "error",
    "info",
    "success",
    "banner"
  ],
  "example": {
    "attributes": {
      "type": "success",
      "title": "Order confirmed",
      "content": "Thanks for your purchase — a receipt is on its way to your inbox."
    }
  },
  "styles": [
    {
      "name": "default",
      "label": "Default",
      "isDefault": true
    },
    {
      "name": "solid",
      "label": "Solid"
    },
    {
      "name": "outlined",
      "label": "Outlined"
    },
    {
      "name": "minimal",
      "label": "Minimal"
    }
  ],
  "attributes": {
    "type": {
      "type": "string",
      "default": "info",
      "enum": [
        "info",
        "success",
        "warning",
        "error"
      ]
    },
    "title": {
      "type": "rich-text",
      "source": "rich-text",
      "selector": ".bloqra-alert__title",
      "role": "content"
    },
    "content": {
      "type": "rich-text",
      "source": "rich-text",
      "selector": ".bloqra-alert__text",
      "role": "content"
    },
    "showIcon": {
      "type": "boolean",
      "default": true
    },
    "icon": {
      "type": "string",
      "default": ""
    },
    "dismissible": {
      "type": "boolean",
      "default": false
    },
    "remember": {
      "type": "boolean",
      "default": false
    },
    "rememberId": {
      "type": "string",
      "default": ""
    },
    "accentColor": {
      "type": "string",
      "default": ""
    }
  },
  "supports": {
    "html": false,
    "anchor": true,
    "align": [
      "wide",
      "full"
    ],
    "color": {
      "text": true,
      "background": true,
      "gradients": true
    },
    "__experimentalBorder": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true
    },
    "spacing": {
      "padding": true,
      "margin": true
    },
    "shadow": true,
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "__experimentalFontFamily": true,
      "__experimentalDefaultControls": {
        "fontSize": true
      }
    }
  },
  "textdomain": "bloqra",
  "editorScript": [
    "bloqra-icons",
    "file:./index.js"
  ],
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js"
}