| @@ -1,150 +1,161 @@ | ||
| 1 | 1 | { |
| 2 | - "apiVersion": 3, | |
| 3 | - "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 4 | - "name": "blockenberg/section", | |
| 5 | - "title": "Section", | |
| 6 | - "category": "blockenberg", | |
| 7 | - "icon": "align-full-width", | |
| 8 | - "description": "A container section for organizing content with rows and columns.", | |
| 9 | - "keywords": ["section", "container", "layout", "wrapper", "full-width"], | |
| 10 | - "textdomain": "blockenberg", | |
| 11 | - "editorScript": "bkbg-section-editor", | |
| 12 | - "editorStyle": "bkbg-section-style", | |
| 13 | - "style": "bkbg-section-style", | |
| 14 | - "supports": { | |
| 15 | - "html": false, | |
| 16 | - "anchor": true, | |
| 17 | - "className": true, | |
| 18 | - "align": ["wide", "full"] | |
| 19 | - }, | |
| 20 | - "attributes": { | |
| 21 | - "align": { | |
| 22 | - "type": "string" | |
| 2 | + "apiVersion": 3, | |
| 3 | + "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 4 | + "name": "blockenberg/section", | |
| 5 | + "title": "Section", | |
| 6 | + "category": "bkbg-layout", | |
| 7 | + "icon": "align-full-width", | |
| 8 | + "description": "A container section for organizing content with rows and columns.", | |
| 9 | + "keywords": [ | |
| 10 | + "section", | |
| 11 | + "container", | |
| 12 | + "layout", | |
| 13 | + "wrapper", | |
| 14 | + "full-width" | |
| 15 | + ], | |
| 16 | + "textdomain": "blockenberg", | |
| 17 | + "editorScript": "bkbg-section-editor", | |
| 18 | + "editorStyle": "bkbg-section-style", | |
| 19 | + "style": "bkbg-section-style", | |
| 20 | + "supports": { | |
| 21 | + "html": false, | |
| 22 | + "anchor": true, | |
| 23 | + "className": true, | |
| 24 | + "align": [ | |
| 25 | + "wide", | |
| 26 | + "full" | |
| 27 | + ] | |
| 23 | 28 | }, |
| 24 | - "sectionWidth": { | |
| 25 | - "type": "string", | |
| 26 | - "default": "full" | |
| 29 | + "attributes": { | |
| 30 | + "align": { | |
| 31 | + "type": "string" | |
| 32 | + }, | |
| 33 | + "sectionWidth": { | |
| 34 | + "type": "string", | |
| 35 | + "default": "full" | |
| 36 | + }, | |
| 37 | + "sectionBoxedMaxWidth": { | |
| 38 | + "type": "string", | |
| 39 | + "default": "1200px" | |
| 40 | + }, | |
| 41 | + "contentWidth": { | |
| 42 | + "type": "string", | |
| 43 | + "default": "boxed" | |
| 44 | + }, | |
| 45 | + "boxedMaxWidth": { | |
| 46 | + "type": "string", | |
| 47 | + "default": "1200px" | |
| 48 | + }, | |
| 49 | + "paddingY": { | |
| 50 | + "type": "string", | |
| 51 | + "default": "m" | |
| 52 | + }, | |
| 53 | + "paddingTop": { | |
| 54 | + "type": "string", | |
| 55 | + "default": "" | |
| 56 | + }, | |
| 57 | + "paddingTopUnit": { | |
| 58 | + "type": "string", | |
| 59 | + "default": "px" | |
| 60 | + }, | |
| 61 | + "paddingTopCustomUnit": { | |
| 62 | + "type": "string", | |
| 63 | + "default": "" | |
| 64 | + }, | |
| 65 | + "paddingRight": { | |
| 66 | + "type": "string", | |
| 67 | + "default": "" | |
| 68 | + }, | |
| 69 | + "paddingRightUnit": { | |
| 70 | + "type": "string", | |
| 71 | + "default": "px" | |
| 72 | + }, | |
| 73 | + "paddingRightCustomUnit": { | |
| 74 | + "type": "string", | |
| 75 | + "default": "" | |
| 76 | + }, | |
| 77 | + "paddingBottom": { | |
| 78 | + "type": "string", | |
| 79 | + "default": "" | |
| 80 | + }, | |
| 81 | + "paddingBottomUnit": { | |
| 82 | + "type": "string", | |
| 83 | + "default": "px" | |
| 84 | + }, | |
| 85 | + "paddingBottomCustomUnit": { | |
| 86 | + "type": "string", | |
| 87 | + "default": "" | |
| 88 | + }, | |
| 89 | + "paddingLeft": { | |
| 90 | + "type": "string", | |
| 91 | + "default": "" | |
| 92 | + }, | |
| 93 | + "paddingLeftUnit": { | |
| 94 | + "type": "string", | |
| 95 | + "default": "px" | |
| 96 | + }, | |
| 97 | + "paddingLeftCustomUnit": { | |
| 98 | + "type": "string", | |
| 99 | + "default": "" | |
| 100 | + }, | |
| 101 | + "marginTop": { | |
| 102 | + "type": "string", | |
| 103 | + "default": "" | |
| 104 | + }, | |
| 105 | + "marginTopUnit": { | |
| 106 | + "type": "string", | |
| 107 | + "default": "px" | |
| 108 | + }, | |
| 109 | + "marginTopCustomUnit": { | |
| 110 | + "type": "string", | |
| 111 | + "default": "" | |
| 112 | + }, | |
| 113 | + "marginRight": { | |
| 114 | + "type": "string", | |
| 115 | + "default": "" | |
| 116 | + }, | |
| 117 | + "marginRightUnit": { | |
| 118 | + "type": "string", | |
| 119 | + "default": "px" | |
| 120 | + }, | |
| 121 | + "marginRightCustomUnit": { | |
| 122 | + "type": "string", | |
| 123 | + "default": "" | |
| 124 | + }, | |
| 125 | + "marginBottom": { | |
| 126 | + "type": "string", | |
| 127 | + "default": "" | |
| 128 | + }, | |
| 129 | + "marginBottomUnit": { | |
| 130 | + "type": "string", | |
| 131 | + "default": "px" | |
| 132 | + }, | |
| 133 | + "marginBottomCustomUnit": { | |
| 134 | + "type": "string", | |
| 135 | + "default": "" | |
| 136 | + }, | |
| 137 | + "marginLeft": { | |
| 138 | + "type": "string", | |
| 139 | + "default": "" | |
| 140 | + }, | |
| 141 | + "marginLeftUnit": { | |
| 142 | + "type": "string", | |
| 143 | + "default": "px" | |
| 144 | + }, | |
| 145 | + "marginLeftCustomUnit": { | |
| 146 | + "type": "string", | |
| 147 | + "default": "" | |
| 148 | + }, | |
| 149 | + "background": { | |
| 150 | + "type": "string", | |
| 151 | + "default": "none" | |
| 152 | + }, | |
| 153 | + "backgroundColor": { | |
| 154 | + "type": "string", | |
| 155 | + "default": "" | |
| 156 | + } | |
| 27 | 157 | }, |
| 28 | - "sectionBoxedMaxWidth": { | |
| 29 | - "type": "string", | |
| 30 | - "default": "1200px" | |
| 31 | - }, | |
| 32 | - "contentWidth": { | |
| 33 | - "type": "string", | |
| 34 | - "default": "boxed" | |
| 35 | - }, | |
| 36 | - "boxedMaxWidth": { | |
| 37 | - "type": "string", | |
| 38 | - "default": "1200px" | |
| 39 | - }, | |
| 40 | - "paddingY": { | |
| 41 | - "type": "string", | |
| 42 | - "default": "m" | |
| 43 | - }, | |
| 44 | - "paddingTop": { | |
| 45 | - "type": "string", | |
| 46 | - "default": "" | |
| 47 | - }, | |
| 48 | - "paddingTopUnit": { | |
| 49 | - "type": "string", | |
| 50 | - "default": "px" | |
| 51 | - }, | |
| 52 | - "paddingTopCustomUnit": { | |
| 53 | - "type": "string", | |
| 54 | - "default": "" | |
| 55 | - }, | |
| 56 | - "paddingRight": { | |
| 57 | - "type": "string", | |
| 58 | - "default": "" | |
| 59 | - }, | |
| 60 | - "paddingRightUnit": { | |
| 61 | - "type": "string", | |
| 62 | - "default": "px" | |
| 63 | - }, | |
| 64 | - "paddingRightCustomUnit": { | |
| 65 | - "type": "string", | |
| 66 | - "default": "" | |
| 67 | - }, | |
| 68 | - "paddingBottom": { | |
| 69 | - "type": "string", | |
| 70 | - "default": "" | |
| 71 | - }, | |
| 72 | - "paddingBottomUnit": { | |
| 73 | - "type": "string", | |
| 74 | - "default": "px" | |
| 75 | - }, | |
| 76 | - "paddingBottomCustomUnit": { | |
| 77 | - "type": "string", | |
| 78 | - "default": "" | |
| 79 | - }, | |
| 80 | - "paddingLeft": { | |
| 81 | - "type": "string", | |
| 82 | - "default": "" | |
| 83 | - }, | |
| 84 | - "paddingLeftUnit": { | |
| 85 | - "type": "string", | |
| 86 | - "default": "px" | |
| 87 | - }, | |
| 88 | - "paddingLeftCustomUnit": { | |
| 89 | - "type": "string", | |
| 90 | - "default": "" | |
| 91 | - }, | |
| 92 | - "marginTop": { | |
| 93 | - "type": "string", | |
| 94 | - "default": "" | |
| 95 | - }, | |
| 96 | - "marginTopUnit": { | |
| 97 | - "type": "string", | |
| 98 | - "default": "px" | |
| 99 | - }, | |
| 100 | - "marginTopCustomUnit": { | |
| 101 | - "type": "string", | |
| 102 | - "default": "" | |
| 103 | - }, | |
| 104 | - "marginRight": { | |
| 105 | - "type": "string", | |
| 106 | - "default": "" | |
| 107 | - }, | |
| 108 | - "marginRightUnit": { | |
| 109 | - "type": "string", | |
| 110 | - "default": "px" | |
| 111 | - }, | |
| 112 | - "marginRightCustomUnit": { | |
| 113 | - "type": "string", | |
| 114 | - "default": "" | |
| 115 | - }, | |
| 116 | - "marginBottom": { | |
| 117 | - "type": "string", | |
| 118 | - "default": "" | |
| 119 | - }, | |
| 120 | - "marginBottomUnit": { | |
| 121 | - "type": "string", | |
| 122 | - "default": "px" | |
| 123 | - }, | |
| 124 | - "marginBottomCustomUnit": { | |
| 125 | - "type": "string", | |
| 126 | - "default": "" | |
| 127 | - }, | |
| 128 | - "marginLeft": { | |
| 129 | - "type": "string", | |
| 130 | - "default": "" | |
| 131 | - }, | |
| 132 | - "marginLeftUnit": { | |
| 133 | - "type": "string", | |
| 134 | - "default": "px" | |
| 135 | - }, | |
| 136 | - "marginLeftCustomUnit": { | |
| 137 | - "type": "string", | |
| 138 | - "default": "" | |
| 139 | - }, | |
| 140 | - "background": { | |
| 141 | - "type": "string", | |
| 142 | - "default": "none" | |
| 143 | - }, | |
| 144 | - "backgroundColor": { | |
| 145 | - "type": "string", | |
| 146 | - "default": "" | |
| 147 | - } | |
| 148 | - }, | |
| 149 | - "allowedBlocks": ["blockenberg/row"] | |
| 158 | + "allowedBlocks": [ | |
| 159 | + "blockenberg/row" | |
| 160 | + ] | |
| 150 | 161 | } |