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/table", |
18 | 5 |
"title": "Table", |
16 | 6 |
"category": "text", |
19 | 7 |
"description": "Create structured content in rows and columns to display information.", |
18 | 8 |
"textdomain": "default", |
16 | 9 |
"attributes": { |
10 |
"hasFixedLayout": { |
|
11 |
"type": "boolean", |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
12 |
"default": true |
16 | 13 |
}, |
14 |
"caption": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
15 |
"type": "rich-text", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
16 |
"source": "rich-text", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
17 |
"selector": "figcaption" |
16 | 18 |
}, |
19 |
"head": { |
|
20 |
"type": "array", |
|
21 |
"default": [], |
|
22 |
"source": "query", |
|
23 |
"selector": "thead tr", |
|
24 |
"query": { |
|
25 |
"cells": { |
|
26 |
"type": "array", |
|
27 |
"default": [], |
|
28 |
"source": "query", |
|
29 |
"selector": "td,th", |
|
30 |
"query": { |
|
31 |
"content": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
32 |
"type": "rich-text", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
33 |
"source": "rich-text" |
16 | 34 |
}, |
35 |
"tag": { |
|
36 |
"type": "string", |
|
37 |
"default": "td", |
|
38 |
"source": "tag" |
|
39 |
}, |
|
40 |
"scope": { |
|
41 |
"type": "string", |
|
42 |
"source": "attribute", |
|
43 |
"attribute": "scope" |
|
44 |
}, |
|
45 |
"align": { |
|
46 |
"type": "string", |
|
47 |
"source": "attribute", |
|
48 |
"attribute": "data-align" |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
49 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
50 |
"colspan": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
51 |
"type": "string", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
52 |
"source": "attribute", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
53 |
"attribute": "colspan" |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
54 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
55 |
"rowspan": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
56 |
"type": "string", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
57 |
"source": "attribute", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
58 |
"attribute": "rowspan" |
16 | 59 |
} |
60 |
} |
|
61 |
} |
|
62 |
} |
|
63 |
}, |
|
64 |
"body": { |
|
65 |
"type": "array", |
|
66 |
"default": [], |
|
67 |
"source": "query", |
|
68 |
"selector": "tbody tr", |
|
69 |
"query": { |
|
70 |
"cells": { |
|
71 |
"type": "array", |
|
72 |
"default": [], |
|
73 |
"source": "query", |
|
74 |
"selector": "td,th", |
|
75 |
"query": { |
|
76 |
"content": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
77 |
"type": "rich-text", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
78 |
"source": "rich-text" |
16 | 79 |
}, |
80 |
"tag": { |
|
81 |
"type": "string", |
|
82 |
"default": "td", |
|
83 |
"source": "tag" |
|
84 |
}, |
|
85 |
"scope": { |
|
86 |
"type": "string", |
|
87 |
"source": "attribute", |
|
88 |
"attribute": "scope" |
|
89 |
}, |
|
90 |
"align": { |
|
91 |
"type": "string", |
|
92 |
"source": "attribute", |
|
93 |
"attribute": "data-align" |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
94 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
95 |
"colspan": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
96 |
"type": "string", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
97 |
"source": "attribute", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
98 |
"attribute": "colspan" |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
99 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
100 |
"rowspan": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
101 |
"type": "string", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
102 |
"source": "attribute", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
103 |
"attribute": "rowspan" |
16 | 104 |
} |
105 |
} |
|
106 |
} |
|
107 |
} |
|
108 |
}, |
|
109 |
"foot": { |
|
110 |
"type": "array", |
|
111 |
"default": [], |
|
112 |
"source": "query", |
|
113 |
"selector": "tfoot tr", |
|
114 |
"query": { |
|
115 |
"cells": { |
|
116 |
"type": "array", |
|
117 |
"default": [], |
|
118 |
"source": "query", |
|
119 |
"selector": "td,th", |
|
120 |
"query": { |
|
121 |
"content": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
122 |
"type": "rich-text", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
123 |
"source": "rich-text" |
16 | 124 |
}, |
125 |
"tag": { |
|
126 |
"type": "string", |
|
127 |
"default": "td", |
|
128 |
"source": "tag" |
|
129 |
}, |
|
130 |
"scope": { |
|
131 |
"type": "string", |
|
132 |
"source": "attribute", |
|
133 |
"attribute": "scope" |
|
134 |
}, |
|
135 |
"align": { |
|
136 |
"type": "string", |
|
137 |
"source": "attribute", |
|
138 |
"attribute": "data-align" |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
139 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
140 |
"colspan": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
141 |
"type": "string", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
142 |
"source": "attribute", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
143 |
"attribute": "colspan" |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
144 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
145 |
"rowspan": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
146 |
"type": "string", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
147 |
"source": "attribute", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
148 |
"attribute": "rowspan" |
16 | 149 |
} |
150 |
} |
|
151 |
} |
|
152 |
} |
|
153 |
} |
|
154 |
}, |
|
155 |
"supports": { |
|
156 |
"anchor": true, |
|
18 | 157 |
"align": true, |
158 |
"color": { |
|
159 |
"__experimentalSkipSerialization": true, |
|
19 | 160 |
"gradients": true, |
161 |
"__experimentalDefaultControls": { |
|
162 |
"background": true, |
|
163 |
"text": true |
|
164 |
} |
|
165 |
}, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
166 |
"spacing": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
167 |
"margin": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
168 |
"padding": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
169 |
"__experimentalDefaultControls": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
170 |
"margin": false, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
171 |
"padding": false |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
172 |
} |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
173 |
}, |
19 | 174 |
"typography": { |
175 |
"fontSize": true, |
|
176 |
"lineHeight": true, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
177 |
"__experimentalFontFamily": true, |
19 | 178 |
"__experimentalFontStyle": true, |
179 |
"__experimentalFontWeight": true, |
|
180 |
"__experimentalLetterSpacing": true, |
|
181 |
"__experimentalTextTransform": true, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
182 |
"__experimentalTextDecoration": true, |
19 | 183 |
"__experimentalDefaultControls": { |
184 |
"fontSize": true |
|
185 |
} |
|
18 | 186 |
}, |
187 |
"__experimentalBorder": { |
|
188 |
"__experimentalSkipSerialization": true, |
|
189 |
"color": true, |
|
190 |
"style": true, |
|
19 | 191 |
"width": true, |
192 |
"__experimentalDefaultControls": { |
|
193 |
"color": true, |
|
194 |
"style": true, |
|
195 |
"width": true |
|
196 |
} |
|
18 | 197 |
}, |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
198 |
"interactivity": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
199 |
"clientNavigation": true |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
200 |
} |
18 | 201 |
}, |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
202 |
"selectors": { |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
203 |
"root": ".wp-block-table > table", |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
204 |
"spacing": ".wp-block-table" |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
205 |
}, |
18 | 206 |
"styles": [ |
207 |
{ |
|
208 |
"name": "regular", |
|
209 |
"label": "Default", |
|
210 |
"isDefault": true |
|
211 |
}, |
|
212 |
{ "name": "stripes", "label": "Stripes" } |
|
213 |
], |
|
214 |
"editorStyle": "wp-block-table-editor", |
|
215 |
"style": "wp-block-table" |
|
16 | 216 |
} |