{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 2,
  "name": "xelonic/financial-ratio-block",
  "version": "0.1.0",
  "title": "Financial Ratio",
  "category": "embed",
  "icon": "analytics",
  "description": "Display a financial ratio of a company.",
  "supports": {
    "html": false
  },
  "keywords": ["finance", "market", "stock", "ticker", "trading", "investment"],
  "textdomain": "financial-ratio",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./frontend.js",
  "attributes": {
    "ticker": {
      "type": "string",
      "default": "amzn"
    },
    "ratioID": {
      "type": "string",
      "default": "market_cap"
    },
    "companyInTitle": {
      "enum": ["ticker", "company_name", "none"],
      "default": "ticker"
    },
    "companyLogoVisible": {
      "type": "boolean",
      "default": true
    },
    "subtitleVisible": {
      "type": "boolean",
      "default": true
    }
  }
}
