block.json
60 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 2, |
| 4 | "name": "surecart/column", |
| 5 | "title": "SureCart Column", |
| 6 | "category": "surecart", |
| 7 | "textdomain": "surecart", |
| 8 | "parent": ["surecart/columns"], |
| 9 | "description": "A single column within a columns block.", |
| 10 | "attributes": { |
| 11 | "layout": { |
| 12 | "type": "object" |
| 13 | }, |
| 14 | "verticalAlignment": { |
| 15 | "type": "string" |
| 16 | }, |
| 17 | "width": { |
| 18 | "type": "string" |
| 19 | }, |
| 20 | "sticky": { |
| 21 | "type": "boolean" |
| 22 | }, |
| 23 | "stickyOffset": { |
| 24 | "type": "string" |
| 25 | }, |
| 26 | "allowedBlocks": { |
| 27 | "type": "array" |
| 28 | }, |
| 29 | "templateLock": { |
| 30 | "type": ["string", "boolean"], |
| 31 | "enum": ["all", "insert", false] |
| 32 | } |
| 33 | }, |
| 34 | "supports": { |
| 35 | "anchor": true, |
| 36 | "reusable": false, |
| 37 | "html": false, |
| 38 | "color": { |
| 39 | "gradients": true, |
| 40 | "link": true |
| 41 | }, |
| 42 | "__experimentalBorder": { |
| 43 | "width": true, |
| 44 | "color": true, |
| 45 | "__experimentalDefaultControls": { |
| 46 | "width": true, |
| 47 | "color": true |
| 48 | } |
| 49 | }, |
| 50 | "spacing": { |
| 51 | "padding": true, |
| 52 | "blockGap": true, |
| 53 | "__experimentalDefaultControls": { |
| 54 | "padding": true, |
| 55 | "blockGap": true |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 |