block.json in Discount Rules for WooCommerce – Disco | Dynamic Pricing, Conditions, Bulk, Bundle, BOGO 1.3.16, at assets/block.json
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "disco/block-name", |
| 4 | "title": "block_name", |
| 5 | "category": "text", |
| 6 | "editorScript": "file:./build/plugin-block.js", |
| 7 | "editorStyle": "file:./build/plugin-block.css", |
| 8 | "style": "file:./build/plugin-block.css", |
| 9 | "attributes": { |
| 10 | "style": { |
| 11 | "type": "object", |
| 12 | "default": { |
| 13 | "color": { |
| 14 | "background": "#333333", |
| 15 | "text": "#ffffff", |
| 16 | "link": "#00A0D2" |
| 17 | }, |
| 18 | "spacing": { |
| 19 | "padding": { |
| 20 | "top": "32px", |
| 21 | "left": "32px", |
| 22 | "bottom": "32px", |
| 23 | "right": "32px" |
| 24 | } |
| 25 | } |
| 26 | } |
| 27 | }, |
| 28 | "href": { |
| 29 | "type": "string", |
| 30 | "source": "attribute", |
| 31 | "selector": "a", |
| 32 | "attribute": "href", |
| 33 | "default": "https://github.com/WPBP" |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 |