{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "title": "Alert",
  "apiVersion": 3,
  "name": "mediaron/alerts-dlx-alert",
  "category": "singular-alerts",
  "icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16px\" height=\"16px\" viewBox=\"0 0 80 80\"><path fill=\"#f7a8a8\" d=\"M6 71.5c-1.93 0-3.5-1.57-3.5-3.5 0-.652.203-1.303.62-1.991l33.71-55.5C37.605 9.232 38.761 8.5 40 8.5s2.395.732 3.17 2.01l33.71 55.5c.417.687.62 1.338.62 1.99 0 1.93-1.57 3.5-3.5 3.5z\"/><path fill=\"#c74343\" d=\"M40 9c1.452 0 2.342 1.108 2.743 1.769l16.855 27.75 16.855 27.75c.368.606.547 1.172.547 1.731 0 1.654-1.346 3-3 3H6c-1.654 0-3-1.346-3-3 0-.559.179-1.125.547-1.731l16.855-27.75 16.855-27.75C37.658 10.108 38.548 9 40 9m0-1c-1.581 0-2.829.983-3.598 2.25l-33.71 55.5C2.29 66.413 2 67.166 2 68a4 4 0 0 0 4 4h68a4 4 0 0 0 4-4c0-.834-.29-1.587-.692-2.25l-33.71-55.5C42.829 8.983 41.581 8 40 8\"/><path fill=\"#36404d\" d=\"M40 56a4 4 0 1 0 0 8 4 4 0 1 0 0-8m0-28c-2.209 0-4 1.653-4 3.692 0 1.363 2.005 18.61 2.014 18.683C38.133 51.29 38.976 52 40 52s1.867-.71 1.986-1.625C41.995 50.302 44 33.056 44 31.692 44 29.653 42.209 28 40 28\"/><path fill=\"#c74343\" d=\"m65.902 35.414 10.91-1.301-.57-.939-10.91 1.301.249.41zm3.676-13.211-.52-.855-8.756 4.845.519.856zm-13.755-3.384 6.62-8.363-.553-.911-6.621 8.363zm-31.092-.911L18.11 9.545l-.553.911 6.62 8.363zM14.419 34.885l.249-.41-10.91-1.301-.57.939 10.91 1.301zm4.76-7.836.519-.856-8.756-4.845-.52.855z\"/></svg>",
  "description": "Create one alert and choose its design.",
  "keywords": [
    "alert",
    "info",
    "success",
    "error",
    "notice",
    "notification",
    "warning"
  ],
  "version": "1.0.0",
  "textdomain": "alerts-dlx",
  "attributes": {
    "align": {
      "type": "string",
      "default": "center"
    },
    "alertType": {
      "type": "string",
      "default": "success"
    },
    "purpose": {
      "type": "string",
      "default": "success"
    },
    "alertTitle": {
      "type": "string",
      "default": ""
    },
    "alertDescription": {
      "type": "string",
      "default": ""
    },
    "descriptionEnabled": {
      "type": "boolean",
      "default": true
    },
    "titleEnabled": {
      "type": "boolean",
      "default": true
    },
    "buttonEnabled": {
      "type": "boolean",
      "default": false
    },
    "iconEnabled": {
      "type": "boolean",
      "default": true
    },
    "innerBlocksEnabled": {
      "type": "boolean",
      "default": false
    },
    "closeButtonEnabled": {
      "type": "boolean",
      "default": false
    },
    "closeButtonExpiration": {
      "type": "number",
      "default": 0
    },
    "colorPrimary": {
      "type": "string",
      "default": "var(--alerts-dlx-bootstrap-color-primary, #084298)"
    },
    "colorBorder": {
      "type": "string",
      "default": "var(--alerts-dlx-bootstrap-color-border, #b6d4fe)"
    },
    "colorAccent": {
      "type": "string",
      "default": "var(--alerts-dlx-bootstrap-color-accent, #26559c)"
    },
    "colorAlt": {
      "type": "string",
      "default": "var(--alerts-dlx-bootstrap-color-alt, #084298)"
    },
    "colorAltHover": {
      "type": "string",
      "default": "var(--alerts-dlx-bootstrap-color-alt-hover, #084298)"
    },
    "colorAltText": {
      "type": "string",
      "default": "var(--alerts-dlx-bootstrap-color-alt-text, #ffffff)"
    },
    "colorAltTextHover": {
      "type": "string",
      "default": "var(--alerts-dlx-bootstrap-color-alt-text-hover, #ffffff)"
    },
    "colorSecondary": {
      "type": "string",
      "default": ""
    },
    "colorSecondaryHover": {
      "type": "string",
      "default": ""
    },
    "colorSecondaryText": {
      "type": "string",
      "default": ""
    },
    "colorSecondaryTextHover": {
      "type": "string",
      "default": ""
    },
    "colorBold": {
      "type": "string",
      "default": "var(--alerts-dlx-bootstrap-color-bold, #084298)"
    },
    "colorLight": {
      "type": "string",
      "default": "var(--alerts-dlx-bootstrap-color-light, #cfe2ff)"
    },
    "buttonText": {
      "type": "string",
      "default": ""
    },
    "buttonUrl": {
      "type": "string",
      "default": ""
    },
    "buttonHasUrl": {
      "type": "boolean",
      "default": false
    },
    "buttonTarget": {
      "type": "boolean",
      "default": false
    },
    "buttonRelNoFollow": {
      "type": "boolean",
      "default": false
    },
    "buttonRelSponsored": {
      "type": "boolean",
      "default": false
    },
    "secondaryButtonEnabled": {
      "type": "boolean",
      "default": false
    },
    "secondaryButtonText": {
      "type": "string",
      "default": ""
    },
    "secondaryButtonUrl": {
      "type": "string",
      "default": ""
    },
    "secondaryButtonHasUrl": {
      "type": "boolean",
      "default": false
    },
    "secondaryButtonTarget": {
      "type": "boolean",
      "default": false
    },
    "secondaryButtonRelNoFollow": {
      "type": "boolean",
      "default": false
    },
    "secondaryButtonRelSponsored": {
      "type": "boolean",
      "default": false
    },
    "maximumWidthUnit": {
      "type": "string",
      "default": "px"
    },
    "maximumWidth": {
      "type": "string",
      "default": "650"
    },
    "marginSpacing": {
      "type": "string",
      "default": "spacious"
    },
    "marginSpacingTarget": {
      "type": "string",
      "default": "both"
    },
    "baseFontSize": {
      "type": "number",
      "default": 18
    },
    "icon": {
      "type": "string",
      "default": "check"
    },
    "enableCustomFonts": {
      "type": "boolean",
      "default": true
    },
    "variant": {
      "type": "string",
      "default": "default"
    },
    "mode": {
      "type": "string",
      "default": "light"
    },
    "enableDropShadow": {
      "type": "boolean",
      "default": false
    },
    "iconVerticalAlignment": {
      "type": "string",
      "default": "top"
    },
    "uniqueId": {
      "type": "string",
      "default": ""
    },
    "alertGroup": {
      "type": "string",
      "default": "bootstrap"
    },
    "isBlockAdminOnly": {
      "type": "boolean",
      "default": false
    },
    "adminOnlyBlockExpiresEnabled": {
      "type": "boolean",
      "default": false
    },
    "adminOnlyBlockExpires": {
      "type": "string",
      "default": null
    },
    "isBlockEditorialOnly": {
      "type": "boolean",
      "default": false
    },
    "isBlockReadOnly": {
      "type": "boolean",
      "default": false
    },
    "iconSource": {
      "type": "string",
      "default": "icon"
    },
    "imageUrl": {
      "type": "string",
      "default": ""
    },
    "imageId": {
      "type": "number",
      "default": 0
    },
    "iconAppearance": {
      "type": "string",
      "default": "rounded"
    },
    "iconSize": {
      "type": "string",
      "default": "default"
    },
    "conditionsEnabled": {
      "type": "boolean",
      "default": false
    },
    "startDate": {
      "type": "string",
      "default": ""
    },
    "endDate": {
      "type": "string",
      "default": ""
    },
    "daysOfWeek": {
      "type": "string",
      "default": ""
    },
    "urlParams": {
      "type": "array",
      "default": []
    },
    "requireLogin": {
      "type": "boolean",
      "default": false
    },
    "requiredRoles": {
      "type": "string",
      "default": ""
    },
    "globalStyleId": {
      "type": "number",
      "default": 0
    }
  },
  "example": {
    "attributes": {
      "alertType": "success",
      "alertTitle": "Sample alert title",
      "descriptionEnabled": true,
      "titleEnabled": true,
      "iconEnabled": true,
      "alertDescription": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>"
    }
  },
  "supports": {
    "anchor": true,
    "align": [
      "center",
      "wide",
      "full"
    ],
    "className": true
  },
  "editorScript": "alerts-dlx-block",
  "editorStyle": [
    "alerts-dlx-block-editor-styles",
    "alerts-dlx-bootstrap-styles",
    "alerts-dlx-chakra-styles",
    "alerts-dlx-material-styles",
    "alerts-dlx-shoelace-styles",
    "alerts-dlx-block-editor-styles-lato"
  ]
}