PluginProbe
Gutenberg / 22.9.0
Gutenberg v22.9.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 12.6.0 7.4.0 All 402 releases
gutenberg / build / scripts / block-library / gallery / block.json

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

171 lines 3.3 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" ],
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 "navigationButtonType": {
65 "type": "string",
66 "default": "icon",
67 "enum": [ "icon", "text", "both" ]
68 },
69 "shortCodeTransforms": {
70 "type": "array",
71 "items": {
72 "type": "object"
73 },
74 "default": []
75 },
76 "columns": {
77 "type": "number",
78 "minimum": 1,
79 "maximum": 8
80 },
81 "caption": {
82 "type": "rich-text",
83 "source": "rich-text",
84 "selector": ".blocks-gallery-caption",
85 "role": "content"
86 },
87 "imageCrop": {
88 "type": "boolean",
89 "default": true
90 },
91 "randomOrder": {
92 "type": "boolean",
93 "default": false
94 },
95 "fixedHeight": {
96 "type": "boolean",
97 "default": true
98 },
99 "linkTarget": {
100 "type": "string"
101 },
102 "linkTo": {
103 "type": "string"
104 },
105 "sizeSlug": {
106 "type": "string",
107 "default": "large"
108 },
109 "allowResize": {
110 "type": "boolean",
111 "default": false
112 },
113 "aspectRatio": {
114 "type": "string",
115 "default": "auto"
116 }
117 },
118 "providesContext": {
119 "allowResize": "allowResize",
120 "imageCrop": "imageCrop",
121 "fixedHeight": "fixedHeight",
122 "navigationButtonType": "navigationButtonType"
123 },
124 "supports": {
125 "anchor": true,
126 "align": true,
127 "__experimentalBorder": {
128 "radius": true,
129 "color": true,
130 "width": true,
131 "style": true,
132 "__experimentalDefaultControls": {
133 "color": true,
134 "radius": true
135 }
136 },
137 "html": false,
138 "units": [ "px", "em", "rem", "vh", "vw" ],
139 "spacing": {
140 "margin": true,
141 "padding": true,
142 "blockGap": [ "horizontal", "vertical" ],
143 "__experimentalSkipSerialization": [ "blockGap" ],
144 "__experimentalDefaultControls": {
145 "blockGap": true,
146 "margin": false,
147 "padding": false
148 }
149 },
150 "color": {
151 "text": false,
152 "background": true,
153 "gradients": true
154 },
155 "layout": {
156 "allowSwitching": false,
157 "allowInheriting": false,
158 "allowEditing": false,
159 "default": {
160 "type": "flex"
161 }
162 },
163 "interactivity": {
164 "clientNavigation": true
165 },
166 "listView": true
167 },
168 "editorStyle": "wp-block-gallery-editor",
169 "style": "wp-block-gallery"
170 }
171