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
gutenberg / build / scripts / block-library / gallery / block.json

block.json in Gutenberg trunk, at build/scripts/block-library/gallery/block.json

190 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "core/gallery",
5 "title": "Gallery",
6 "category": "media",
7 "usesContext": [ "galleryId", "postId", "postType" ],
8 "allowedBlocks": [ "core/image" ],
9 "description": "Display multiple images in a rich gallery.",
10 "keywords": [ "images", "photos" ],
11 "textdomain": "default",
12 "attributes": {
13 "images": {
14 "type": "array",
15 "default": [],
16 "source": "query",
17 "selector": ".blocks-gallery-item",
18 "query": {
19 "url": {
20 "type": "string",
21 "source": "attribute",
22 "selector": "img",
23 "attribute": "src"
24 },
25 "fullUrl": {
26 "type": "string",
27 "source": "attribute",
28 "selector": "img",
29 "attribute": "data-full-url"
30 },
31 "link": {
32 "type": "string",
33 "source": "attribute",
34 "selector": "img",
35 "attribute": "data-link"
36 },
37 "alt": {
38 "type": "string",
39 "source": "attribute",
40 "selector": "img",
41 "attribute": "alt",
42 "default": ""
43 },
44 "id": {
45 "type": "string",
46 "source": "attribute",
47 "selector": "img",
48 "attribute": "data-id"
49 },
50 "caption": {
51 "type": "rich-text",
52 "source": "rich-text",
53 "selector": ".blocks-gallery-item__caption"
54 }
55 }
56 },
57 "ids": {
58 "type": "array",
59 "items": {
60 "type": "number"
61 },
62 "default": []
63 },
64 "dynamicContent": {
65 "type": "object"
66 },
67 "navigationButtonType": {
68 "type": "string",
69 "default": "icon",
70 "enum": [ "icon", "text", "both" ]
71 },
72 "shortCodeTransforms": {
73 "type": "array",
74 "items": {
75 "type": "object"
76 },
77 "default": []
78 },
79 "columns": {
80 "type": "number",
81 "minimum": 1,
82 "maximum": 8
83 },
84 "caption": {
85 "type": "rich-text",
86 "source": "rich-text",
87 "selector": ".blocks-gallery-caption",
88 "role": "content"
89 },
90 "imageCrop": {
91 "type": "boolean",
92 "default": true
93 },
94 "randomOrder": {
95 "type": "boolean",
96 "default": false
97 },
98 "fixedHeight": {
99 "type": "boolean",
100 "default": true
101 },
102 "linkTarget": {
103 "type": "string"
104 },
105 "linkTo": {
106 "type": "string"
107 },
108 "sizeSlug": {
109 "type": "string",
110 "default": "large"
111 },
112 "allowResize": {
113 "type": "boolean",
114 "default": false
115 },
116 "aspectRatio": {
117 "type": "string",
118 "default": "auto"
119 }
120 },
121 "providesContext": {
122 "allowResize": "allowResize",
123 "imageCrop": "imageCrop",
124 "fixedHeight": "fixedHeight",
125 "navigationButtonType": "navigationButtonType"
126 },
127 "supports": {
128 "anchor": true,
129 "align": true,
130 "background": {
131 "backgroundImage": true,
132 "backgroundSize": true,
133 "gradient": true,
134 "__experimentalDefaultControls": {
135 "backgroundImage": true,
136 "gradient": true
137 }
138 },
139 "__experimentalBorder": {
140 "radius": true,
141 "color": true,
142 "width": true,
143 "style": true,
144 "__experimentalDefaultControls": {
145 "color": true,
146 "radius": true
147 }
148 },
149 "html": false,
150 "units": [ "px", "em", "rem", "vh", "vw" ],
151 "spacing": {
152 "margin": true,
153 "padding": true,
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 },
158 "__experimentalDefaultControls": {
159 "blockGap": true,
160 "margin": false,
161 "padding": false
162 }
163 },
164 "color": {
165 "text": false,
166 "background": true,
167 "gradients": true
168 },
169 "layout": {
170 "allowSwitching": false,
171 "allowInheriting": false,
172 "allowEditing": true,
173 "allowOrientation": false,
174 "allowJustification": false,
175 "allowVerticalAlignment": false,
176 "allowWrap": false,
177 "allowSizingOnChildren": true,
178 "default": {
179 "type": "flex"
180 }
181 },
182 "interactivity": {
183 "clientNavigation": true
184 },
185 "listView": true
186 },
187 "editorStyle": "wp-block-gallery-editor",
188 "style": "wp-block-gallery"
189 }
190