equal
deleted
inserted
replaced
1 { |
1 { |
2 "$schema": "https://schemas.wp.org/trunk/block.json", |
2 "$schema": "https://schemas.wp.org/trunk/block.json", |
3 "apiVersion": 2, |
3 "apiVersion": 3, |
4 "name": "core/table", |
4 "name": "core/table", |
5 "title": "Table", |
5 "title": "Table", |
6 "category": "text", |
6 "category": "text", |
7 "description": "Create structured content in rows and columns to display information.", |
7 "description": "Create structured content in rows and columns to display information.", |
8 "textdomain": "default", |
8 "textdomain": "default", |
9 "attributes": { |
9 "attributes": { |
10 "hasFixedLayout": { |
10 "hasFixedLayout": { |
11 "type": "boolean", |
11 "type": "boolean", |
12 "default": false |
12 "default": true |
13 }, |
13 }, |
14 "caption": { |
14 "caption": { |
15 "type": "string", |
15 "type": "rich-text", |
16 "source": "html", |
16 "source": "rich-text", |
17 "selector": "figcaption", |
17 "selector": "figcaption" |
18 "default": "" |
|
19 }, |
18 }, |
20 "head": { |
19 "head": { |
21 "type": "array", |
20 "type": "array", |
22 "default": [], |
21 "default": [], |
23 "source": "query", |
22 "source": "query", |
28 "default": [], |
27 "default": [], |
29 "source": "query", |
28 "source": "query", |
30 "selector": "td,th", |
29 "selector": "td,th", |
31 "query": { |
30 "query": { |
32 "content": { |
31 "content": { |
33 "type": "string", |
32 "type": "rich-text", |
34 "source": "html" |
33 "source": "rich-text" |
35 }, |
34 }, |
36 "tag": { |
35 "tag": { |
37 "type": "string", |
36 "type": "string", |
38 "default": "td", |
37 "default": "td", |
39 "source": "tag" |
38 "source": "tag" |
45 }, |
44 }, |
46 "align": { |
45 "align": { |
47 "type": "string", |
46 "type": "string", |
48 "source": "attribute", |
47 "source": "attribute", |
49 "attribute": "data-align" |
48 "attribute": "data-align" |
|
49 }, |
|
50 "colspan": { |
|
51 "type": "string", |
|
52 "source": "attribute", |
|
53 "attribute": "colspan" |
|
54 }, |
|
55 "rowspan": { |
|
56 "type": "string", |
|
57 "source": "attribute", |
|
58 "attribute": "rowspan" |
50 } |
59 } |
51 } |
60 } |
52 } |
61 } |
53 } |
62 } |
54 }, |
63 }, |
63 "default": [], |
72 "default": [], |
64 "source": "query", |
73 "source": "query", |
65 "selector": "td,th", |
74 "selector": "td,th", |
66 "query": { |
75 "query": { |
67 "content": { |
76 "content": { |
68 "type": "string", |
77 "type": "rich-text", |
69 "source": "html" |
78 "source": "rich-text" |
70 }, |
79 }, |
71 "tag": { |
80 "tag": { |
72 "type": "string", |
81 "type": "string", |
73 "default": "td", |
82 "default": "td", |
74 "source": "tag" |
83 "source": "tag" |
80 }, |
89 }, |
81 "align": { |
90 "align": { |
82 "type": "string", |
91 "type": "string", |
83 "source": "attribute", |
92 "source": "attribute", |
84 "attribute": "data-align" |
93 "attribute": "data-align" |
|
94 }, |
|
95 "colspan": { |
|
96 "type": "string", |
|
97 "source": "attribute", |
|
98 "attribute": "colspan" |
|
99 }, |
|
100 "rowspan": { |
|
101 "type": "string", |
|
102 "source": "attribute", |
|
103 "attribute": "rowspan" |
85 } |
104 } |
86 } |
105 } |
87 } |
106 } |
88 } |
107 } |
89 }, |
108 }, |
98 "default": [], |
117 "default": [], |
99 "source": "query", |
118 "source": "query", |
100 "selector": "td,th", |
119 "selector": "td,th", |
101 "query": { |
120 "query": { |
102 "content": { |
121 "content": { |
103 "type": "string", |
122 "type": "rich-text", |
104 "source": "html" |
123 "source": "rich-text" |
105 }, |
124 }, |
106 "tag": { |
125 "tag": { |
107 "type": "string", |
126 "type": "string", |
108 "default": "td", |
127 "default": "td", |
109 "source": "tag" |
128 "source": "tag" |
115 }, |
134 }, |
116 "align": { |
135 "align": { |
117 "type": "string", |
136 "type": "string", |
118 "source": "attribute", |
137 "source": "attribute", |
119 "attribute": "data-align" |
138 "attribute": "data-align" |
|
139 }, |
|
140 "colspan": { |
|
141 "type": "string", |
|
142 "source": "attribute", |
|
143 "attribute": "colspan" |
|
144 }, |
|
145 "rowspan": { |
|
146 "type": "string", |
|
147 "source": "attribute", |
|
148 "attribute": "rowspan" |
120 } |
149 } |
121 } |
150 } |
122 } |
151 } |
123 } |
152 } |
124 } |
153 } |
132 "__experimentalDefaultControls": { |
161 "__experimentalDefaultControls": { |
133 "background": true, |
162 "background": true, |
134 "text": true |
163 "text": true |
135 } |
164 } |
136 }, |
165 }, |
|
166 "spacing": { |
|
167 "margin": true, |
|
168 "padding": true, |
|
169 "__experimentalDefaultControls": { |
|
170 "margin": false, |
|
171 "padding": false |
|
172 } |
|
173 }, |
137 "typography": { |
174 "typography": { |
138 "fontSize": true, |
175 "fontSize": true, |
139 "lineHeight": true, |
176 "lineHeight": true, |
|
177 "__experimentalFontFamily": true, |
140 "__experimentalFontStyle": true, |
178 "__experimentalFontStyle": true, |
141 "__experimentalFontWeight": true, |
179 "__experimentalFontWeight": true, |
142 "__experimentalLetterSpacing": true, |
180 "__experimentalLetterSpacing": true, |
143 "__experimentalTextTransform": true, |
181 "__experimentalTextTransform": true, |
|
182 "__experimentalTextDecoration": true, |
144 "__experimentalDefaultControls": { |
183 "__experimentalDefaultControls": { |
145 "fontSize": true |
184 "fontSize": true |
146 } |
185 } |
147 }, |
186 }, |
148 "__experimentalBorder": { |
187 "__experimentalBorder": { |
154 "color": true, |
193 "color": true, |
155 "style": true, |
194 "style": true, |
156 "width": true |
195 "width": true |
157 } |
196 } |
158 }, |
197 }, |
159 "__experimentalSelector": ".wp-block-table > table" |
198 "__experimentalSelector": ".wp-block-table > table", |
|
199 "interactivity": { |
|
200 "clientNavigation": true |
|
201 } |
160 }, |
202 }, |
161 "styles": [ |
203 "styles": [ |
162 { |
204 { |
163 "name": "regular", |
205 "name": "regular", |
164 "label": "Default", |
206 "label": "Default", |