block.json
58 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 2, |
| 4 | "name": "surecart/columns", |
| 5 | "title": "SureCart Columns", |
| 6 | "category": "surecart", |
| 7 | "description": "Display content in multiple columns, with blocks added to each column.", |
| 8 | "textdomain": "surecart", |
| 9 | "attributes": { |
| 10 | "verticalAlignment": { |
| 11 | "type": "string" |
| 12 | }, |
| 13 | "isStackedOnMobile": { |
| 14 | "type": "boolean", |
| 15 | "default": true |
| 16 | }, |
| 17 | "isFullHeight": { |
| 18 | "type": "boolean", |
| 19 | "default": false |
| 20 | }, |
| 21 | "isReversedOnMobile": { |
| 22 | "type": "boolean", |
| 23 | "default": false |
| 24 | } |
| 25 | }, |
| 26 | "supports": { |
| 27 | "anchor": true, |
| 28 | "align": ["wide", "full"], |
| 29 | "html": false, |
| 30 | "color": { |
| 31 | "gradients": true, |
| 32 | "link": true |
| 33 | }, |
| 34 | "spacing": { |
| 35 | "blockGap": { |
| 36 | "__experimentalDefault": "2em", |
| 37 | "sides": ["horizontal", "vertical"] |
| 38 | }, |
| 39 | "margin": ["top", "bottom"], |
| 40 | "padding": true, |
| 41 | "__experimentalDefaultControls": { |
| 42 | "padding": true |
| 43 | } |
| 44 | }, |
| 45 | "__experimentalLayout": { |
| 46 | "allowSwitching": false, |
| 47 | "allowInheriting": false, |
| 48 | "allowEditing": false, |
| 49 | "default": { |
| 50 | "type": "flex", |
| 51 | "flexWrap": "nowrap" |
| 52 | } |
| 53 | } |
| 54 | }, |
| 55 | "editorStyle": "file:./editor.css", |
| 56 | "style": "file:./style.css" |
| 57 | } |
| 58 |