author | ymh <ymh.work@gmail.com> |
Mon, 08 Sep 2025 19:44:41 +0200 | |
changeset 23 | 417f20492bf7 |
parent 22 | 8c2e4d02f4ef |
permissions | -rw-r--r-- |
16 | 1 |
{ |
19 | 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
3 |
"apiVersion": 3, |
16 | 4 |
"name": "core/gallery", |
18 | 5 |
"title": "Gallery", |
16 | 6 |
"category": "media", |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
7 |
"allowedBlocks": [ "core/image" ], |
18 | 8 |
"description": "Display multiple images in a rich gallery.", |
9 |
"keywords": [ "images", "photos" ], |
|
10 |
"textdomain": "default", |
|
16 | 11 |
"attributes": { |
12 |
"images": { |
|
13 |
"type": "array", |
|
14 |
"default": [], |
|
15 |
"source": "query", |
|
16 |
"selector": ".blocks-gallery-item", |
|
17 |
"query": { |
|
18 |
"url": { |
|
19 |
"type": "string", |
|
20 |
"source": "attribute", |
|
21 |
"selector": "img", |
|
22 |
"attribute": "src" |
|
23 |
}, |
|
24 |
"fullUrl": { |
|
25 |
"type": "string", |
|
26 |
"source": "attribute", |
|
27 |
"selector": "img", |
|
28 |
"attribute": "data-full-url" |
|
29 |
}, |
|
30 |
"link": { |
|
31 |
"type": "string", |
|
32 |
"source": "attribute", |
|
33 |
"selector": "img", |
|
34 |
"attribute": "data-link" |
|
35 |
}, |
|
36 |
"alt": { |
|
37 |
"type": "string", |
|
38 |
"source": "attribute", |
|
39 |
"selector": "img", |
|
40 |
"attribute": "alt", |
|
41 |
"default": "" |
|
42 |
}, |
|
43 |
"id": { |
|
44 |
"type": "string", |
|
45 |
"source": "attribute", |
|
46 |
"selector": "img", |
|
47 |
"attribute": "data-id" |
|
48 |
}, |
|
49 |
"caption": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
50 |
"type": "rich-text", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
51 |
"source": "rich-text", |
16 | 52 |
"selector": ".blocks-gallery-item__caption" |
53 |
} |
|
54 |
} |
|
55 |
}, |
|
56 |
"ids": { |
|
57 |
"type": "array", |
|
58 |
"items": { |
|
59 |
"type": "number" |
|
60 |
}, |
|
61 |
"default": [] |
|
62 |
}, |
|
19 | 63 |
"shortCodeTransforms": { |
64 |
"type": "array", |
|
65 |
"items": { |
|
66 |
"type": "object" |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
67 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
68 |
"default": [] |
19 | 69 |
}, |
16 | 70 |
"columns": { |
71 |
"type": "number", |
|
72 |
"minimum": 1, |
|
73 |
"maximum": 8 |
|
74 |
}, |
|
75 |
"caption": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
76 |
"type": "rich-text", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
77 |
"source": "rich-text", |
16 | 78 |
"selector": ".blocks-gallery-caption" |
79 |
}, |
|
80 |
"imageCrop": { |
|
81 |
"type": "boolean", |
|
82 |
"default": true |
|
83 |
}, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
84 |
"randomOrder": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
85 |
"type": "boolean", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
86 |
"default": false |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
87 |
}, |
19 | 88 |
"fixedHeight": { |
89 |
"type": "boolean", |
|
90 |
"default": true |
|
91 |
}, |
|
92 |
"linkTarget": { |
|
93 |
"type": "string" |
|
94 |
}, |
|
16 | 95 |
"linkTo": { |
18 | 96 |
"type": "string" |
16 | 97 |
}, |
98 |
"sizeSlug": { |
|
99 |
"type": "string", |
|
100 |
"default": "large" |
|
19 | 101 |
}, |
102 |
"allowResize": { |
|
103 |
"type": "boolean", |
|
104 |
"default": false |
|
16 | 105 |
} |
106 |
}, |
|
19 | 107 |
"providesContext": { |
108 |
"allowResize": "allowResize", |
|
109 |
"imageCrop": "imageCrop", |
|
110 |
"fixedHeight": "fixedHeight" |
|
111 |
}, |
|
16 | 112 |
"supports": { |
113 |
"anchor": true, |
|
19 | 114 |
"align": true, |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
115 |
"__experimentalBorder": { |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
116 |
"radius": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
117 |
"color": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
118 |
"width": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
119 |
"style": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
120 |
"__experimentalDefaultControls": { |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
121 |
"color": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
122 |
"radius": true |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
123 |
} |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
124 |
}, |
19 | 125 |
"html": false, |
126 |
"units": [ "px", "em", "rem", "vh", "vw" ], |
|
127 |
"spacing": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
128 |
"margin": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
129 |
"padding": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
130 |
"blockGap": [ "horizontal", "vertical" ], |
19 | 131 |
"__experimentalSkipSerialization": [ "blockGap" ], |
132 |
"__experimentalDefaultControls": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
133 |
"blockGap": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
134 |
"margin": false, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
135 |
"padding": false |
19 | 136 |
} |
137 |
}, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
138 |
"color": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
139 |
"text": false, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
140 |
"background": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
141 |
"gradients": true |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
142 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
143 |
"layout": { |
19 | 144 |
"allowSwitching": false, |
145 |
"allowInheriting": false, |
|
146 |
"allowEditing": false, |
|
147 |
"default": { |
|
148 |
"type": "flex" |
|
149 |
} |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
150 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
151 |
"interactivity": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
152 |
"clientNavigation": true |
19 | 153 |
} |
18 | 154 |
}, |
155 |
"editorStyle": "wp-block-gallery-editor", |
|
156 |
"style": "wp-block-gallery" |
|
16 | 157 |
} |