PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/scripts/block-library/gallery/block.json +23 -4 23.0.1 → trunk View file →
@@ -3,9 +3,9 @@
3 3 "apiVersion": 3,
4 4 "name": "core/gallery",
5 5 "title": "Gallery",
6 6 "category": "media",
7 - "usesContext": [ "galleryId" ],
7 + "usesContext": [ "galleryId", "postId", "postType" ],
8 8 "allowedBlocks": [ "core/image" ],
9 9 "description": "Display multiple images in a rich gallery.",
10 10 "keywords": [ "images", "photos" ],
11 11 "textdomain": "default",
@@ -60,8 +60,11 @@
60 60 "type": "number"
61 61 },
62 62 "default": []
63 63 },
64 + "dynamicContent": {
65 + "type": "object"
66 + },
64 67 "navigationButtonType": {
65 68 "type": "string",
66 69 "default": "icon",
67 70 "enum": [ "icon", "text", "both" ]
@@ -123,8 +126,17 @@
123 126 },
124 127 "supports": {
125 128 "anchor": true,
126 129 "align": true,
130 + "background": {
131 + "backgroundImage": true,
132 + "backgroundSize": true,
133 + "gradient": true,
134 + "__experimentalDefaultControls": {
135 + "backgroundImage": true,
136 + "gradient": true
137 + }
138 + },
127 139 "__experimentalBorder": {
128 140 "radius": true,
129 141 "color": true,
130 142 "width": true,
@@ -138,10 +150,12 @@
138 150 "units": [ "px", "em", "rem", "vh", "vw" ],
139 151 "spacing": {
140 152 "margin": true,
141 153 "padding": true,
142 - "blockGap": [ "horizontal", "vertical" ],
143 - "__experimentalSkipSerialization": [ "blockGap" ],
154 + "blockGap": {
155 + "sides": [ "horizontal", "vertical" ],
156 + "__experimentalDefault": "var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )"
157 + },
144 158 "__experimentalDefaultControls": {
145 159 "blockGap": true,
146 160 "margin": false,
147 161 "padding": false
@@ -154,9 +168,14 @@
154 168 },
155 169 "layout": {
156 170 "allowSwitching": false,
157 171 "allowInheriting": false,
158 - "allowEditing": false,
172 + "allowEditing": true,
173 + "allowOrientation": false,
174 + "allowJustification": false,
175 + "allowVerticalAlignment": false,
176 + "allowWrap": false,
177 + "allowSizingOnChildren": true,
159 178 "default": {
160 179 "type": "flex"
161 180 }
162 181 },