block.json
71 lines
| 1 | { |
| 2 | "$schema": "https://json.schemastore.org/block.json", |
| 3 | "apiVersion": 2, |
| 4 | "name": "surecart/cart-submit", |
| 5 | "title": "Cart Submit Button", |
| 6 | "description": "The cart submit button", |
| 7 | "category": "surecart", |
| 8 | "textdomain": "surecart", |
| 9 | "ancestor": ["surecart/cart"], |
| 10 | "supports": { |
| 11 | "anchor": true, |
| 12 | "align": false, |
| 13 | "alignWide": false, |
| 14 | "multiple": false, |
| 15 | "spacing": { |
| 16 | "__experimentalSkipSerialization": true, |
| 17 | "padding": ["horizontal", "vertical"], |
| 18 | "margin": ["top", "bottom"] |
| 19 | }, |
| 20 | "color": { |
| 21 | "__experimentalSkipSerialization": true, |
| 22 | "gradients": true, |
| 23 | "__experimentalDefaultControls": { |
| 24 | "background": true, |
| 25 | "text": true |
| 26 | } |
| 27 | }, |
| 28 | "__experimentalSelector": ".wp-block-button .wp-block-button__link", |
| 29 | "typography": { |
| 30 | "fontSize": true, |
| 31 | "__experimentalFontFamily": true, |
| 32 | "__experimentalFontWeight": true, |
| 33 | "__experimentalFontStyle": true, |
| 34 | "__experimentalTextTransform": true |
| 35 | }, |
| 36 | "reusable": false, |
| 37 | "shadow": true, |
| 38 | "__experimentalBorder": { |
| 39 | "color": true, |
| 40 | "radius": true, |
| 41 | "style": true, |
| 42 | "width": true, |
| 43 | "__experimentalSkipSerialization": true, |
| 44 | "__experimentalDefaultControls": { |
| 45 | "color": true, |
| 46 | "radius": true, |
| 47 | "style": true, |
| 48 | "width": true |
| 49 | } |
| 50 | } |
| 51 | }, |
| 52 | "attributes": { |
| 53 | "text": { |
| 54 | "type": "string", |
| 55 | "default": "Checkout" |
| 56 | }, |
| 57 | "border": { |
| 58 | "type": "boolean" |
| 59 | }, |
| 60 | "padding": { |
| 61 | "type": "object", |
| 62 | "default": { |
| 63 | "top": "1.25em", |
| 64 | "left": "1.25em", |
| 65 | "bottom": "1.25em", |
| 66 | "right": "1.25em" |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 |