components
1 year ago
css
3 years ago
attributes.js
2 years ago
block.js
1 year ago
deprecated.js
3 years ago
edit.js
2 years ago
editor.scss
4 years ago
transforms.js
1 year ago
attributes.js
96 lines
| 1 | /* eslint-disable no-undef */ |
| 2 | export default { |
| 3 | uniqueId: { |
| 4 | type: 'string', |
| 5 | default: '', |
| 6 | }, |
| 7 | templateLock: { |
| 8 | type: [ 'string', 'boolean' ], |
| 9 | enum: [ 'all', 'insert', 'contentOnly', false ], |
| 10 | }, |
| 11 | anchor: { |
| 12 | type: 'string', |
| 13 | default: '', |
| 14 | }, |
| 15 | columns: { |
| 16 | type: 'number', |
| 17 | default: '', |
| 18 | }, |
| 19 | horizontalGap: { |
| 20 | type: 'number', |
| 21 | default: generateBlocksDefaults.gridContainer.horizontalGap, |
| 22 | }, |
| 23 | verticalGap: { |
| 24 | type: 'number', |
| 25 | default: generateBlocksDefaults.gridContainer.verticalGap, |
| 26 | }, |
| 27 | verticalAlignment: { |
| 28 | type: 'string', |
| 29 | default: generateBlocksDefaults.gridContainer.verticalAlignment, |
| 30 | }, |
| 31 | horizontalGapTablet: { |
| 32 | type: 'number', |
| 33 | default: generateBlocksDefaults.gridContainer.horizontalGapTablet, |
| 34 | }, |
| 35 | verticalGapTablet: { |
| 36 | type: 'number', |
| 37 | default: generateBlocksDefaults.gridContainer.verticalGapTablet, |
| 38 | }, |
| 39 | verticalAlignmentTablet: { |
| 40 | type: 'string', |
| 41 | default: generateBlocksDefaults.gridContainer.verticalAlignmentTablet, |
| 42 | }, |
| 43 | horizontalGapMobile: { |
| 44 | type: 'number', |
| 45 | default: generateBlocksDefaults.gridContainer.horizontalGapMobile, |
| 46 | }, |
| 47 | verticalGapMobile: { |
| 48 | type: 'number', |
| 49 | default: generateBlocksDefaults.gridContainer.verticalGapMobile, |
| 50 | }, |
| 51 | verticalAlignmentMobile: { |
| 52 | type: 'string', |
| 53 | default: generateBlocksDefaults.gridContainer.verticalAlignmentMobile, |
| 54 | }, |
| 55 | horizontalAlignment: { |
| 56 | type: 'string', |
| 57 | default: generateBlocksDefaults.gridContainer.horizontalAlignment, |
| 58 | }, |
| 59 | horizontalAlignmentTablet: { |
| 60 | type: 'string', |
| 61 | default: generateBlocksDefaults.gridContainer.horizontalAlignmentTablet, |
| 62 | }, |
| 63 | horizontalAlignmentMobile: { |
| 64 | type: 'string', |
| 65 | default: generateBlocksDefaults.gridContainer.horizontalAlignmentMobile, |
| 66 | }, |
| 67 | isDynamic: { |
| 68 | type: 'boolean', |
| 69 | }, |
| 70 | blockVersion: { |
| 71 | type: 'number', |
| 72 | }, |
| 73 | isQueryLoop: { |
| 74 | type: 'boolean', |
| 75 | default: false, |
| 76 | }, |
| 77 | useLegacyRowGap: { |
| 78 | type: 'boolean', |
| 79 | default: false, |
| 80 | }, |
| 81 | blockLabel: { |
| 82 | type: 'string', |
| 83 | default: '', |
| 84 | }, |
| 85 | // deprecated since 1.2.0 |
| 86 | elementId: { |
| 87 | type: 'string', |
| 88 | default: '', |
| 89 | }, |
| 90 | cssClasses: { |
| 91 | type: 'string', |
| 92 | default: '', |
| 93 | }, |
| 94 | }; |
| 95 | /* eslint-enable no-undef */ |
| 96 |