| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"textdomain": "getwid", |
| 5 |
"name": "getwid/counter", |
| 6 |
"description": "Animates a number from start to finish.", |
| 7 |
"category": "getwid-blocks", |
| 8 |
"title": "Counter", |
| 9 |
"supports": { |
| 10 |
"align": [ |
| 11 |
"wide", |
| 12 |
"full" |
| 13 |
] |
| 14 |
}, |
| 15 |
"attributes": { |
| 16 |
"align": { |
| 17 |
"type": "string" |
| 18 |
}, |
| 19 |
"wrapperAlign": { |
| 20 |
"type": "string" |
| 21 |
}, |
| 22 |
"textColor": { |
| 23 |
"type": "string" |
| 24 |
}, |
| 25 |
"customTextColor": { |
| 26 |
"type": "string" |
| 27 |
}, |
| 28 |
"start": { |
| 29 |
"type": "string", |
| 30 |
"default": "0" |
| 31 |
}, |
| 32 |
"duration": { |
| 33 |
"type": "string", |
| 34 |
"default": "3" |
| 35 |
}, |
| 36 |
"useEasing": { |
| 37 |
"type": "string", |
| 38 |
"default": "true" |
| 39 |
}, |
| 40 |
"useGrouping": { |
| 41 |
"type": "string", |
| 42 |
"default": "true" |
| 43 |
}, |
| 44 |
"separator": { |
| 45 |
"type": "string", |
| 46 |
"default": "," |
| 47 |
}, |
| 48 |
"decimal": { |
| 49 |
"type": "string", |
| 50 |
"default": "." |
| 51 |
}, |
| 52 |
"prefix": { |
| 53 |
"type": "string", |
| 54 |
"source": "html", |
| 55 |
"selector": ".wp-block-getwid-counter__prefix" |
| 56 |
}, |
| 57 |
"suffix": { |
| 58 |
"type": "string", |
| 59 |
"source": "html", |
| 60 |
"selector": ".wp-block-getwid-counter__suffix" |
| 61 |
}, |
| 62 |
"end": { |
| 63 |
"type": "string", |
| 64 |
"source": "attribute", |
| 65 |
"selector": ".wp-block-getwid-counter__wrapper", |
| 66 |
"attribute": "data-end", |
| 67 |
"default": "100" |
| 68 |
}, |
| 69 |
"decimalPlaces": { |
| 70 |
"type": "string", |
| 71 |
"source": "attribute", |
| 72 |
"selector": ".wp-block-getwid-counter__wrapper", |
| 73 |
"attribute": "data-decimal-places", |
| 74 |
"default": "0" |
| 75 |
}, |
| 76 |
"easing": { |
| 77 |
"type": "string", |
| 78 |
"source": "attribute", |
| 79 |
"selector": ".wp-block-getwid-counter__wrapper", |
| 80 |
"attribute": "data-easing-fn", |
| 81 |
"default": "outExpo" |
| 82 |
}, |
| 83 |
"numerals": { |
| 84 |
"type": "string", |
| 85 |
"source": "attribute", |
| 86 |
"selector": ".wp-block-getwid-counter__wrapper", |
| 87 |
"attribute": "data-numerals", |
| 88 |
"default": "default" |
| 89 |
} |
| 90 |
}, |
| 91 |
"editorScript": [ |
| 92 |
"countup", |
| 93 |
"file:./index.js" |
| 94 |
], |
| 95 |
"editorStyle": "file:./index.css", |
| 96 |
"style": "file:./style-index.css", |
| 97 |
"viewScript": [ |
| 98 |
"waypoints", |
| 99 |
"countup", |
| 100 |
"file:./view.js" |
| 101 |
] |
| 102 |
} |