{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "crtoday/ticker",
  "version": "1.0.6",
  "title": "Exchange Rates Ticker",
  "category": "widgets",
  "icon": "slides",
  "description": "A scrolling line showing several currency pairs with live rates. Place it in your header or footer.",
  "textdomain": "currencyrate-today-currency-blocks",
  "keywords": ["currency", "exchange", "exchange rates ticker", "marquee", "rates", "scrolling"],
  "supports": {
    "html": false,
    "align": ["wide", "full"]
  },
  "attributes": {
    "sourceId": { "type": "string", "default": "FEX" },
    "deal": { "type": "string", "default": "STANDARD" },
    "pairs": {
      "type": "array",
      "default": [
        { "from": "EUR", "to": "USD" },
        { "from": "USD", "to": "UAH" },
        { "from": "GBP", "to": "JPY" },
        { "from": "AUD", "to": "CAD" },
        { "from": "CHF", "to": "EUR" }
      ],
      "items": {
        "type": "object"
      }
    },
    "amount": { "type": "string", "default": "1" },
    "adjustmentPercent": { "type": "number", "default": 0 },
    "theme": { "type": "string", "default": "light" },
    "decimals": { "type": "number", "default": 2 },
    "showFlags": { "type": "boolean", "default": true },
    "showChange": { "type": "boolean", "default": true },
    "currencyLabelMode": { "type": "string", "default": "code" },
    "speed": { "type": "number", "default": 40 },
    "direction": { "type": "string", "default": "left" },
    "pauseOnHover": { "type": "boolean", "default": true },
    "borderX": { "type": "boolean", "default": false },
    "borderY": { "type": "boolean", "default": true },
    "separator": { "type": "string", "default": "dot" },
    "showTimestamp": { "type": "boolean", "default": true },
    "attribution": { "type": "boolean", "default": true },
    "compactMode": { "type": "boolean", "default": true },
    "sourceLabel": { "type": "string", "default": "" }
  },
  "editorScript": "crtoday-block-editor",
  "style": "crtoday-block-style"
}
