{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "bloqra/coupon-code",
  "version": "1.0.0",
  "title": "Coupon Code",
  "category": "bloqra",
  "icon": "tickets-alt",
  "description": "A promo code with one-click copy and an optional click-to-reveal cover — pairs well with the Countdown Timer for limited offers.",
  "keywords": [
    "coupon",
    "promo",
    "code",
    "discount",
    "deal",
    "voucher"
  ],
  "example": {
    "attributes": {
      "code": "SAVE20",
      "description": "20% off your first year",
      "expiryText": "Valid until December 31"
    }
  },
  "styles": [
    {
      "name": "default",
      "label": "Dashed",
      "isDefault": true
    },
    {
      "name": "solid",
      "label": "Solid"
    },
    {
      "name": "ticket",
      "label": "Ticket"
    },
    {
      "name": "gradient",
      "label": "Gradient"
    }
  ],
  "attributes": {
    "code": {
      "type": "string",
      "default": ""
    },
    "description": {
      "type": "rich-text",
      "source": "rich-text",
      "selector": ".bloqra-coupon__description",
      "role": "content"
    },
    "expiryText": {
      "type": "rich-text",
      "source": "rich-text",
      "selector": ".bloqra-coupon__expiry",
      "role": "content"
    },
    "revealMode": {
      "type": "boolean",
      "default": false
    },
    "accentColor": {
      "type": "string",
      "default": ""
    },
    "codeColor": {
      "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,
      "__experimentalFontFamily": true
    }
  },
  "textdomain": "bloqra",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js"
}