| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/stock-ticker", |
| 5 |
"title": "Crypto Price Ticker", |
| 6 |
"category": "bkbg-effects", |
| 7 |
"icon": "chart-line", |
| 8 |
"description": "Live cryptocurrency price ticker powered by the free CoinGecko API. Display scrolling prices, cards, or a table with 24 h change, market cap, volume, and coin icons. Auto-refreshes on a configurable interval.", |
| 9 |
"keywords": [ |
| 10 |
"crypto", |
| 11 |
"bitcoin", |
| 12 |
"price", |
| 13 |
"ticker", |
| 14 |
"stock", |
| 15 |
"currency", |
| 16 |
"coingecko", |
| 17 |
"live", |
| 18 |
"finance" |
| 19 |
], |
| 20 |
"textdomain": "blockenberg", |
| 21 |
"editorScript": "bkbg-stock-ticker-editor", |
| 22 |
"style": "bkbg-stock-ticker-style", |
| 23 |
"viewScript": "bkbg-stock-ticker-frontend", |
| 24 |
"supports": { |
| 25 |
"html": false, |
| 26 |
"anchor": true, |
| 27 |
"className": true, |
| 28 |
"align": [ |
| 29 |
"wide", |
| 30 |
"full" |
| 31 |
] |
| 32 |
}, |
| 33 |
"attributes": { |
| 34 |
"coins": { |
| 35 |
"type": "string", |
| 36 |
"default": "bitcoin,ethereum,solana,cardano,dogecoin,polkadot" |
| 37 |
}, |
| 38 |
"currency": { |
| 39 |
"type": "string", |
| 40 |
"default": "usd" |
| 41 |
}, |
| 42 |
"layout": { |
| 43 |
"type": "string", |
| 44 |
"default": "ticker" |
| 45 |
}, |
| 46 |
"tickerSpeed": { |
| 47 |
"type": "number", |
| 48 |
"default": 40 |
| 49 |
}, |
| 50 |
"refreshInterval": { |
| 51 |
"type": "number", |
| 52 |
"default": 60 |
| 53 |
}, |
| 54 |
"showChange": { |
| 55 |
"type": "boolean", |
| 56 |
"default": true |
| 57 |
}, |
| 58 |
"showVolume": { |
| 59 |
"type": "boolean", |
| 60 |
"default": false |
| 61 |
}, |
| 62 |
"showMarketCap": { |
| 63 |
"type": "boolean", |
| 64 |
"default": false |
| 65 |
}, |
| 66 |
"showIcons": { |
| 67 |
"type": "boolean", |
| 68 |
"default": true |
| 69 |
}, |
| 70 |
"showSymbol": { |
| 71 |
"type": "boolean", |
| 72 |
"default": true |
| 73 |
}, |
| 74 |
"pauseOnHover": { |
| 75 |
"type": "boolean", |
| 76 |
"default": true |
| 77 |
}, |
| 78 |
"cardColumns": { |
| 79 |
"type": "number", |
| 80 |
"default": 3 |
| 81 |
}, |
| 82 |
"fontSize": { |
| 83 |
"type": "number", |
| 84 |
"default": 14 |
| 85 |
}, |
| 86 |
"fontWeight": { |
| 87 |
"type": "number", |
| 88 |
"default": 600 |
| 89 |
}, |
| 90 |
"borderRadius": { |
| 91 |
"type": "number", |
| 92 |
"default": 12 |
| 93 |
}, |
| 94 |
"bgColor": { |
| 95 |
"type": "string", |
| 96 |
"default": "#0f172a" |
| 97 |
}, |
| 98 |
"textColor": { |
| 99 |
"type": "string", |
| 100 |
"default": "#e2e8f0" |
| 101 |
}, |
| 102 |
"upColor": { |
| 103 |
"type": "string", |
| 104 |
"default": "#22c55e" |
| 105 |
}, |
| 106 |
"downColor": { |
| 107 |
"type": "string", |
| 108 |
"default": "#ef4444" |
| 109 |
}, |
| 110 |
"cardBg": { |
| 111 |
"type": "string", |
| 112 |
"default": "#1e293b" |
| 113 |
}, |
| 114 |
"accentColor": { |
| 115 |
"type": "string", |
| 116 |
"default": "#38bdf8" |
| 117 |
}, |
| 118 |
"borderColor": { |
| 119 |
"type": "string", |
| 120 |
"default": "#334155" |
| 121 |
}, |
| 122 |
"labelText": { |
| 123 |
"type": "string", |
| 124 |
"default": "LIVE" |
| 125 |
}, |
| 126 |
"showLabel": { |
| 127 |
"type": "boolean", |
| 128 |
"default": true |
| 129 |
}, |
| 130 |
"currencySymbol": { |
| 131 |
"type": "string", |
| 132 |
"default": "$" |
| 133 |
}, |
| 134 |
"lineHeight": { |
| 135 |
"type": "number", |
| 136 |
"default": 1.4 |
| 137 |
}, |
| 138 |
"textTypo": { |
| 139 |
"type": "object", |
| 140 |
"default": {} |
| 141 |
} |
| 142 |
} |
| 143 |
} |