block.json
48 lines
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "surecart/button", |
| 4 | "title": "Button", |
| 5 | "description": "Display a checkout form button.", |
| 6 | "category": "surecart", |
| 7 | "keywords": ["button", "submit", "checkout", "engine"], |
| 8 | "textdomain": "surecart", |
| 9 | "ancestor": ["surecart/form"], |
| 10 | "example": { |
| 11 | "attributes": { |
| 12 | "type": "primary", |
| 13 | "text": "Button Text" |
| 14 | } |
| 15 | }, |
| 16 | "supports": { |
| 17 | "reusable": false, |
| 18 | "html": false |
| 19 | }, |
| 20 | "attributes": { |
| 21 | "text": { |
| 22 | "type": "string", |
| 23 | "default": "Purchase" |
| 24 | }, |
| 25 | "type": { |
| 26 | "type": "string", |
| 27 | "default": "primary" |
| 28 | }, |
| 29 | "submit": { |
| 30 | "type": "boolean", |
| 31 | "default": true |
| 32 | }, |
| 33 | "size": { |
| 34 | "type": "string", |
| 35 | "default": "large" |
| 36 | }, |
| 37 | "full": { |
| 38 | "type": "boolean", |
| 39 | "default": true |
| 40 | } |
| 41 | }, |
| 42 | "editorScript": "surecart-components", |
| 43 | "script": "surecart-components", |
| 44 | "viewScript": "surecart-components", |
| 45 | "editorStyle": "surecart-themes-default", |
| 46 | "style": "surecart-themes-default" |
| 47 | } |
| 48 |