@wordpress/block-library 8.30.0 → 8.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/block/edit.js +17 -8
  3. package/build/block/edit.js.map +1 -1
  4. package/build/code/save.js +3 -1
  5. package/build/code/save.js.map +1 -1
  6. package/build/cover/edit/index.js +2 -1
  7. package/build/cover/edit/index.js.map +1 -1
  8. package/build/details/edit.js +1 -0
  9. package/build/details/edit.js.map +1 -1
  10. package/build/file/edit.js +2 -0
  11. package/build/file/edit.js.map +1 -1
  12. package/build/heading/index.js +4 -3
  13. package/build/heading/index.js.map +1 -1
  14. package/build/media-text/edit.js +33 -9
  15. package/build/media-text/edit.js.map +1 -1
  16. package/build/media-text/index.js +5 -0
  17. package/build/media-text/index.js.map +1 -1
  18. package/build/media-text/media-container.js +30 -11
  19. package/build/media-text/media-container.js.map +1 -1
  20. package/build/media-text/save.js +2 -2
  21. package/build/media-text/save.js.map +1 -1
  22. package/build/navigation/edit/index.js +23 -29
  23. package/build/navigation/edit/index.js.map +1 -1
  24. package/build/navigation/edit/navigation-menu-delete-control.js +12 -20
  25. package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  26. package/build/navigation/edit/navigation-menu-selector.js +24 -23
  27. package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
  28. package/build/navigation/edit/placeholder/index.js +4 -4
  29. package/build/navigation/edit/placeholder/index.js.map +1 -1
  30. package/build/navigation/use-navigation-menu.js +15 -12
  31. package/build/navigation/use-navigation-menu.js.map +1 -1
  32. package/build/navigation-link/edit.js +12 -10
  33. package/build/navigation-link/edit.js.map +1 -1
  34. package/build/navigation-submenu/edit.js +4 -0
  35. package/build/navigation-submenu/edit.js.map +1 -1
  36. package/build/post-author/edit.js +1 -0
  37. package/build/post-author/edit.js.map +1 -1
  38. package/build/post-excerpt/edit.js +1 -0
  39. package/build/post-excerpt/edit.js.map +1 -1
  40. package/build/post-featured-image/edit.js +4 -1
  41. package/build/post-featured-image/edit.js.map +1 -1
  42. package/build/post-featured-image/index.js +6 -0
  43. package/build/post-featured-image/index.js.map +1 -1
  44. package/build/post-navigation-link/edit.js +1 -0
  45. package/build/post-navigation-link/edit.js.map +1 -1
  46. package/build/post-terms/edit.js +2 -0
  47. package/build/post-terms/edit.js.map +1 -1
  48. package/build/quote/edit.js +2 -2
  49. package/build/quote/edit.js.map +1 -1
  50. package/build/read-more/edit.js +1 -0
  51. package/build/read-more/edit.js.map +1 -1
  52. package/build/search/edit.js +2 -0
  53. package/build/search/edit.js.map +1 -1
  54. package/build/search/edit.native.js +2 -2
  55. package/build/search/edit.native.js.map +1 -1
  56. package/build/social-link/edit.js +1 -1
  57. package/build/social-link/edit.js.map +1 -1
  58. package/build/social-link/icons/medium.js +1 -1
  59. package/build/social-link/icons/medium.js.map +1 -1
  60. package/build/social-link/icons/reddit.js +1 -1
  61. package/build/social-link/icons/reddit.js.map +1 -1
  62. package/build/table/deprecated.js +285 -175
  63. package/build/table/deprecated.js.map +1 -1
  64. package/build/table/index.js +1 -1
  65. package/build/template-part/edit/index.js +1 -1
  66. package/build/template-part/edit/index.js.map +1 -1
  67. package/build/video/edit.native.js +1 -1
  68. package/build/video/edit.native.js.map +1 -1
  69. package/build-module/block/edit.js +18 -9
  70. package/build-module/block/edit.js.map +1 -1
  71. package/build-module/code/save.js +3 -1
  72. package/build-module/code/save.js.map +1 -1
  73. package/build-module/cover/edit/index.js +2 -1
  74. package/build-module/cover/edit/index.js.map +1 -1
  75. package/build-module/details/edit.js +1 -0
  76. package/build-module/details/edit.js.map +1 -1
  77. package/build-module/file/edit.js +2 -0
  78. package/build-module/file/edit.js.map +1 -1
  79. package/build-module/heading/index.js +4 -3
  80. package/build-module/heading/index.js.map +1 -1
  81. package/build-module/media-text/edit.js +34 -10
  82. package/build-module/media-text/edit.js.map +1 -1
  83. package/build-module/media-text/index.js +5 -0
  84. package/build-module/media-text/index.js.map +1 -1
  85. package/build-module/media-text/media-container.js +31 -12
  86. package/build-module/media-text/media-container.js.map +1 -1
  87. package/build-module/media-text/save.js +2 -2
  88. package/build-module/media-text/save.js.map +1 -1
  89. package/build-module/navigation/edit/index.js +24 -30
  90. package/build-module/navigation/edit/index.js.map +1 -1
  91. package/build-module/navigation/edit/navigation-menu-delete-control.js +15 -23
  92. package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  93. package/build-module/navigation/edit/navigation-menu-selector.js +24 -23
  94. package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -1
  95. package/build-module/navigation/edit/placeholder/index.js +4 -4
  96. package/build-module/navigation/edit/placeholder/index.js.map +1 -1
  97. package/build-module/navigation/use-navigation-menu.js +15 -12
  98. package/build-module/navigation/use-navigation-menu.js.map +1 -1
  99. package/build-module/navigation-link/edit.js +13 -11
  100. package/build-module/navigation-link/edit.js.map +1 -1
  101. package/build-module/navigation-submenu/edit.js +4 -0
  102. package/build-module/navigation-submenu/edit.js.map +1 -1
  103. package/build-module/post-author/edit.js +1 -0
  104. package/build-module/post-author/edit.js.map +1 -1
  105. package/build-module/post-excerpt/edit.js +1 -0
  106. package/build-module/post-excerpt/edit.js.map +1 -1
  107. package/build-module/post-featured-image/edit.js +5 -2
  108. package/build-module/post-featured-image/edit.js.map +1 -1
  109. package/build-module/post-featured-image/index.js +6 -0
  110. package/build-module/post-featured-image/index.js.map +1 -1
  111. package/build-module/post-navigation-link/edit.js +1 -0
  112. package/build-module/post-navigation-link/edit.js.map +1 -1
  113. package/build-module/post-terms/edit.js +2 -0
  114. package/build-module/post-terms/edit.js.map +1 -1
  115. package/build-module/quote/edit.js +2 -2
  116. package/build-module/quote/edit.js.map +1 -1
  117. package/build-module/read-more/edit.js +1 -0
  118. package/build-module/read-more/edit.js.map +1 -1
  119. package/build-module/search/edit.js +2 -0
  120. package/build-module/search/edit.js.map +1 -1
  121. package/build-module/search/edit.native.js +2 -2
  122. package/build-module/search/edit.native.js.map +1 -1
  123. package/build-module/social-link/edit.js +1 -1
  124. package/build-module/social-link/edit.js.map +1 -1
  125. package/build-module/social-link/icons/medium.js +1 -1
  126. package/build-module/social-link/icons/medium.js.map +1 -1
  127. package/build-module/social-link/icons/reddit.js +1 -1
  128. package/build-module/social-link/icons/reddit.js.map +1 -1
  129. package/build-module/table/deprecated.js +286 -176
  130. package/build-module/table/deprecated.js.map +1 -1
  131. package/build-module/table/index.js +1 -1
  132. package/build-module/template-part/edit/index.js +1 -1
  133. package/build-module/template-part/edit/index.js.map +1 -1
  134. package/build-module/video/edit.native.js +1 -1
  135. package/build-module/video/edit.native.js.map +1 -1
  136. package/build-style/editor-rtl.css +10 -4
  137. package/build-style/editor.css +10 -4
  138. package/build-style/file/editor-rtl.css +3 -0
  139. package/build-style/file/editor.css +3 -0
  140. package/build-style/image/editor-rtl.css +0 -3
  141. package/build-style/image/editor.css +0 -3
  142. package/build-style/media-text/editor-rtl.css +7 -1
  143. package/build-style/media-text/editor.css +7 -1
  144. package/build-style/social-links/style-rtl.css +2 -2
  145. package/build-style/social-links/style.css +2 -2
  146. package/build-style/style-rtl.css +2 -2
  147. package/build-style/style.css +2 -2
  148. package/package.json +34 -34
  149. package/src/archives/index.php +4 -0
  150. package/src/avatar/index.php +6 -0
  151. package/src/block/edit.js +38 -15
  152. package/src/block/index.php +4 -0
  153. package/src/block/test/edit.native.js +67 -0
  154. package/src/calendar/index.php +12 -0
  155. package/src/categories/index.php +6 -0
  156. package/src/code/save.js +7 -1
  157. package/src/comment-author-name/index.php +4 -0
  158. package/src/comment-content/index.php +4 -0
  159. package/src/comment-date/index.php +4 -0
  160. package/src/comment-edit-link/index.php +4 -0
  161. package/src/comment-reply-link/index.php +4 -0
  162. package/src/comment-template/index.php +4 -0
  163. package/src/comments/index.php +10 -0
  164. package/src/comments-pagination/index.php +4 -0
  165. package/src/comments-pagination-next/index.php +4 -0
  166. package/src/comments-pagination-numbers/index.php +4 -0
  167. package/src/comments-pagination-previous/index.php +4 -0
  168. package/src/comments-title/index.php +4 -0
  169. package/src/cover/edit/index.js +4 -1
  170. package/src/cover/index.php +4 -0
  171. package/src/details/edit.js +1 -0
  172. package/src/file/edit.js +2 -0
  173. package/src/file/editor.scss +3 -0
  174. package/src/file/index.php +4 -0
  175. package/src/gallery/index.php +6 -0
  176. package/src/heading/index.js +4 -3
  177. package/src/heading/index.php +4 -0
  178. package/src/home-link/index.php +10 -0
  179. package/src/image/editor.scss +0 -5
  180. package/src/image/index.php +12 -1
  181. package/src/latest-comments/index.php +4 -0
  182. package/src/latest-posts/index.php +8 -0
  183. package/src/loginout/index.php +4 -0
  184. package/src/media-text/block.json +5 -0
  185. package/src/media-text/edit.js +70 -19
  186. package/src/media-text/editor.scss +7 -1
  187. package/src/media-text/index.php +70 -0
  188. package/src/media-text/media-container.js +49 -9
  189. package/src/media-text/save.js +2 -2
  190. package/src/navigation/edit/index.js +67 -71
  191. package/src/navigation/edit/navigation-menu-delete-control.js +22 -49
  192. package/src/navigation/edit/navigation-menu-selector.js +39 -21
  193. package/src/navigation/edit/placeholder/index.js +4 -4
  194. package/src/navigation/edit/test/navigation-menu-selector.js +75 -53
  195. package/src/navigation/index.php +101 -26
  196. package/src/navigation/test/use-navigation-menu.js +21 -21
  197. package/src/navigation/use-navigation-menu.js +23 -9
  198. package/src/navigation-link/edit.js +12 -13
  199. package/src/navigation-link/index.php +14 -0
  200. package/src/navigation-submenu/edit.js +4 -0
  201. package/src/navigation-submenu/index.php +8 -0
  202. package/src/page-list/index.php +12 -0
  203. package/src/page-list-item/index.php +2 -0
  204. package/src/pattern/index.php +2 -0
  205. package/src/post-author/edit.js +1 -0
  206. package/src/post-author/index.php +4 -0
  207. package/src/post-author-biography/index.php +4 -0
  208. package/src/post-author-name/index.php +4 -0
  209. package/src/post-comments-form/index.php +6 -0
  210. package/src/post-content/index.php +4 -0
  211. package/src/post-date/index.php +4 -0
  212. package/src/post-excerpt/edit.js +1 -0
  213. package/src/post-excerpt/index.php +4 -0
  214. package/src/post-featured-image/block.json +6 -0
  215. package/src/post-featured-image/edit.js +4 -0
  216. package/src/post-featured-image/index.php +15 -0
  217. package/src/post-navigation-link/edit.js +1 -0
  218. package/src/post-navigation-link/index.php +4 -0
  219. package/src/post-template/index.php +4 -0
  220. package/src/post-terms/edit.js +2 -0
  221. package/src/post-terms/index.php +6 -0
  222. package/src/post-title/index.php +2 -0
  223. package/src/query/index.php +2 -0
  224. package/src/query-no-results/index.php +4 -0
  225. package/src/query-pagination/index.php +4 -0
  226. package/src/query-pagination-next/index.php +4 -0
  227. package/src/query-pagination-numbers/index.php +4 -0
  228. package/src/query-pagination-previous/index.php +4 -0
  229. package/src/query-title/index.php +4 -0
  230. package/src/quote/edit.js +11 -5
  231. package/src/read-more/edit.js +1 -0
  232. package/src/read-more/index.php +4 -0
  233. package/src/rss/index.php +4 -0
  234. package/src/search/edit.js +2 -0
  235. package/src/search/edit.native.js +2 -2
  236. package/src/search/index.php +19 -1
  237. package/src/shortcode/index.php +4 -0
  238. package/src/site-logo/index.php +20 -0
  239. package/src/site-tagline/index.php +4 -0
  240. package/src/site-title/index.php +4 -0
  241. package/src/social-link/edit.js +1 -1
  242. package/src/social-link/icons/medium.js +1 -1
  243. package/src/social-link/icons/reddit.js +1 -1
  244. package/src/social-link/index.php +22 -9
  245. package/src/social-link/socials-with-bg.scss +1 -1
  246. package/src/social-link/socials-without-bg.scss +1 -1
  247. package/src/table/block.json +1 -1
  248. package/src/table/deprecated.js +308 -175
  249. package/src/tag-cloud/index.php +4 -0
  250. package/src/template-part/edit/index.js +1 -1
  251. package/src/template-part/index.php +10 -0
  252. package/src/term-description/index.php +4 -0
  253. package/src/video/edit.native.js +2 -0
  254. package/tsconfig.json +1 -0
@@ -26,8 +26,246 @@ const oldColors = {
26
26
  'subtle-pale-pink': '#fcf0ef'
27
27
  };
28
28
 
29
+ // Fixed width table cells on by default.
30
+ const v4Query = {
31
+ content: {
32
+ type: 'rich-text',
33
+ source: 'rich-text'
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'
49
+ },
50
+ colspan: {
51
+ type: 'string',
52
+ source: 'attribute',
53
+ attribute: 'colspan'
54
+ },
55
+ rowspan: {
56
+ type: 'string',
57
+ source: 'attribute',
58
+ attribute: 'rowspan'
59
+ }
60
+ };
61
+ const v4 = {
62
+ attributes: {
63
+ hasFixedLayout: {
64
+ type: 'boolean',
65
+ default: false
66
+ },
67
+ caption: {
68
+ type: 'rich-text',
69
+ source: 'rich-text',
70
+ selector: 'figcaption'
71
+ },
72
+ head: {
73
+ type: 'array',
74
+ default: [],
75
+ source: 'query',
76
+ selector: 'thead tr',
77
+ query: {
78
+ cells: {
79
+ type: 'array',
80
+ default: [],
81
+ source: 'query',
82
+ selector: 'td,th',
83
+ query: v4Query
84
+ }
85
+ }
86
+ },
87
+ body: {
88
+ type: 'array',
89
+ default: [],
90
+ source: 'query',
91
+ selector: 'tbody tr',
92
+ query: {
93
+ cells: {
94
+ type: 'array',
95
+ default: [],
96
+ source: 'query',
97
+ selector: 'td,th',
98
+ query: v4Query
99
+ }
100
+ }
101
+ },
102
+ foot: {
103
+ type: 'array',
104
+ default: [],
105
+ source: 'query',
106
+ selector: 'tfoot tr',
107
+ query: {
108
+ cells: {
109
+ type: 'array',
110
+ default: [],
111
+ source: 'query',
112
+ selector: 'td,th',
113
+ query: v4Query
114
+ }
115
+ }
116
+ }
117
+ },
118
+ supports: {
119
+ anchor: true,
120
+ align: true,
121
+ color: {
122
+ __experimentalSkipSerialization: true,
123
+ gradients: true,
124
+ __experimentalDefaultControls: {
125
+ background: true,
126
+ text: true
127
+ }
128
+ },
129
+ spacing: {
130
+ margin: true,
131
+ padding: true,
132
+ __experimentalDefaultControls: {
133
+ margin: false,
134
+ padding: false
135
+ }
136
+ },
137
+ typography: {
138
+ fontSize: true,
139
+ lineHeight: true,
140
+ __experimentalFontFamily: true,
141
+ __experimentalFontStyle: true,
142
+ __experimentalFontWeight: true,
143
+ __experimentalLetterSpacing: true,
144
+ __experimentalTextTransform: true,
145
+ __experimentalTextDecoration: true,
146
+ __experimentalDefaultControls: {
147
+ fontSize: true
148
+ }
149
+ },
150
+ __experimentalBorder: {
151
+ __experimentalSkipSerialization: true,
152
+ color: true,
153
+ style: true,
154
+ width: true,
155
+ __experimentalDefaultControls: {
156
+ color: true,
157
+ style: true,
158
+ width: true
159
+ }
160
+ },
161
+ __experimentalSelector: '.wp-block-table > table',
162
+ interactivity: {
163
+ clientNavigation: true
164
+ }
165
+ },
166
+ save({
167
+ attributes
168
+ }) {
169
+ const {
170
+ hasFixedLayout,
171
+ head,
172
+ body,
173
+ foot,
174
+ caption
175
+ } = attributes;
176
+ const isEmpty = !head.length && !body.length && !foot.length;
177
+ if (isEmpty) {
178
+ return null;
179
+ }
180
+ const colorProps = (0, _blockEditor.__experimentalGetColorClassesAndStyles)(attributes);
181
+ const borderProps = (0, _blockEditor.__experimentalGetBorderClassesAndStyles)(attributes);
182
+ const classes = (0, _classnames.default)(colorProps.className, borderProps.className, {
183
+ 'has-fixed-layout': hasFixedLayout
184
+ });
185
+ const hasCaption = !_blockEditor.RichText.isEmpty(caption);
186
+ const Section = ({
187
+ type,
188
+ rows
189
+ }) => {
190
+ if (!rows.length) {
191
+ return null;
192
+ }
193
+ const Tag = `t${type}`;
194
+ return (0, _react.createElement)(Tag, null, rows.map(({
195
+ cells
196
+ }, rowIndex) => (0, _react.createElement)("tr", {
197
+ key: rowIndex
198
+ }, cells.map(({
199
+ content,
200
+ tag,
201
+ scope,
202
+ align,
203
+ colspan,
204
+ rowspan
205
+ }, cellIndex) => {
206
+ const cellClasses = (0, _classnames.default)({
207
+ [`has-text-align-${align}`]: align
208
+ });
209
+ return (0, _react.createElement)(_blockEditor.RichText.Content, {
210
+ className: cellClasses ? cellClasses : undefined,
211
+ "data-align": align,
212
+ tagName: tag,
213
+ value: content,
214
+ key: cellIndex,
215
+ scope: tag === 'th' ? scope : undefined,
216
+ colSpan: colspan,
217
+ rowSpan: rowspan
218
+ });
219
+ }))));
220
+ };
221
+ return (0, _react.createElement)("figure", {
222
+ ..._blockEditor.useBlockProps.save()
223
+ }, (0, _react.createElement)("table", {
224
+ className: classes === '' ? undefined : classes,
225
+ style: {
226
+ ...colorProps.style,
227
+ ...borderProps.style
228
+ }
229
+ }, (0, _react.createElement)(Section, {
230
+ type: "head",
231
+ rows: head
232
+ }), (0, _react.createElement)(Section, {
233
+ type: "body",
234
+ rows: body
235
+ }), (0, _react.createElement)(Section, {
236
+ type: "foot",
237
+ rows: foot
238
+ })), hasCaption && (0, _react.createElement)(_blockEditor.RichText.Content, {
239
+ tagName: "figcaption",
240
+ value: caption,
241
+ className: (0, _blockEditor.__experimentalGetElementClassName)('caption')
242
+ }));
243
+ }
244
+ };
245
+
29
246
  // In #41140 support was added to global styles for caption elements which
30
247
  // added a `wp-element-caption` classname to the embed figcaption element.
248
+ const v3Query = {
249
+ content: {
250
+ type: 'string',
251
+ source: 'html'
252
+ },
253
+ tag: {
254
+ type: 'string',
255
+ default: 'td',
256
+ source: 'tag'
257
+ },
258
+ scope: {
259
+ type: 'string',
260
+ source: 'attribute',
261
+ attribute: 'scope'
262
+ },
263
+ align: {
264
+ type: 'string',
265
+ source: 'attribute',
266
+ attribute: 'data-align'
267
+ }
268
+ };
31
269
  const v3 = {
32
270
  attributes: {
33
271
  hasFixedLayout: {
@@ -51,27 +289,7 @@ const v3 = {
51
289
  default: [],
52
290
  source: 'query',
53
291
  selector: 'td,th',
54
- query: {
55
- content: {
56
- type: 'string',
57
- source: 'html'
58
- },
59
- tag: {
60
- type: 'string',
61
- default: 'td',
62
- source: 'tag'
63
- },
64
- scope: {
65
- type: 'string',
66
- source: 'attribute',
67
- attribute: 'scope'
68
- },
69
- align: {
70
- type: 'string',
71
- source: 'attribute',
72
- attribute: 'data-align'
73
- }
74
- }
292
+ query: v3Query
75
293
  }
76
294
  }
77
295
  },
@@ -86,27 +304,7 @@ const v3 = {
86
304
  default: [],
87
305
  source: 'query',
88
306
  selector: 'td,th',
89
- query: {
90
- content: {
91
- type: 'string',
92
- source: 'html'
93
- },
94
- tag: {
95
- type: 'string',
96
- default: 'td',
97
- source: 'tag'
98
- },
99
- scope: {
100
- type: 'string',
101
- source: 'attribute',
102
- attribute: 'scope'
103
- },
104
- align: {
105
- type: 'string',
106
- source: 'attribute',
107
- attribute: 'data-align'
108
- }
109
- }
307
+ query: v3Query
110
308
  }
111
309
  }
112
310
  },
@@ -121,27 +319,7 @@ const v3 = {
121
319
  default: [],
122
320
  source: 'query',
123
321
  selector: 'td,th',
124
- query: {
125
- content: {
126
- type: 'string',
127
- source: 'html'
128
- },
129
- tag: {
130
- type: 'string',
131
- default: 'td',
132
- source: 'tag'
133
- },
134
- scope: {
135
- type: 'string',
136
- source: 'attribute',
137
- attribute: 'scope'
138
- },
139
- align: {
140
- type: 'string',
141
- source: 'attribute',
142
- attribute: 'data-align'
143
- }
144
- }
322
+ query: v3Query
145
323
  }
146
324
  }
147
325
  }
@@ -263,6 +441,27 @@ const v3 = {
263
441
  };
264
442
 
265
443
  // Deprecation migrating table block to use colors block support feature.
444
+ const v2Query = {
445
+ content: {
446
+ type: 'string',
447
+ source: 'html'
448
+ },
449
+ tag: {
450
+ type: 'string',
451
+ default: 'td',
452
+ source: 'tag'
453
+ },
454
+ scope: {
455
+ type: 'string',
456
+ source: 'attribute',
457
+ attribute: 'scope'
458
+ },
459
+ align: {
460
+ type: 'string',
461
+ source: 'attribute',
462
+ attribute: 'data-align'
463
+ }
464
+ };
266
465
  const v2 = {
267
466
  attributes: {
268
467
  hasFixedLayout: {
@@ -289,27 +488,7 @@ const v2 = {
289
488
  default: [],
290
489
  source: 'query',
291
490
  selector: 'td,th',
292
- query: {
293
- content: {
294
- type: 'string',
295
- source: 'html'
296
- },
297
- tag: {
298
- type: 'string',
299
- default: 'td',
300
- source: 'tag'
301
- },
302
- scope: {
303
- type: 'string',
304
- source: 'attribute',
305
- attribute: 'scope'
306
- },
307
- align: {
308
- type: 'string',
309
- source: 'attribute',
310
- attribute: 'data-align'
311
- }
312
- }
491
+ query: v2Query
313
492
  }
314
493
  }
315
494
  },
@@ -324,27 +503,7 @@ const v2 = {
324
503
  default: [],
325
504
  source: 'query',
326
505
  selector: 'td,th',
327
- query: {
328
- content: {
329
- type: 'string',
330
- source: 'html'
331
- },
332
- tag: {
333
- type: 'string',
334
- default: 'td',
335
- source: 'tag'
336
- },
337
- scope: {
338
- type: 'string',
339
- source: 'attribute',
340
- attribute: 'scope'
341
- },
342
- align: {
343
- type: 'string',
344
- source: 'attribute',
345
- attribute: 'data-align'
346
- }
347
- }
506
+ query: v2Query
348
507
  }
349
508
  }
350
509
  },
@@ -359,27 +518,7 @@ const v2 = {
359
518
  default: [],
360
519
  source: 'query',
361
520
  selector: 'td,th',
362
- query: {
363
- content: {
364
- type: 'string',
365
- source: 'html'
366
- },
367
- tag: {
368
- type: 'string',
369
- default: 'td',
370
- source: 'tag'
371
- },
372
- scope: {
373
- type: 'string',
374
- source: 'attribute',
375
- attribute: 'scope'
376
- },
377
- align: {
378
- type: 'string',
379
- source: 'attribute',
380
- attribute: 'data-align'
381
- }
382
- }
521
+ query: v2Query
383
522
  }
384
523
  }
385
524
  }
@@ -476,6 +615,22 @@ const v2 = {
476
615
  };
477
616
  }
478
617
  };
618
+ const v1Query = {
619
+ content: {
620
+ type: 'string',
621
+ source: 'html'
622
+ },
623
+ tag: {
624
+ type: 'string',
625
+ default: 'td',
626
+ source: 'tag'
627
+ },
628
+ scope: {
629
+ type: 'string',
630
+ source: 'attribute',
631
+ attribute: 'scope'
632
+ }
633
+ };
479
634
  const v1 = {
480
635
  attributes: {
481
636
  hasFixedLayout: {
@@ -496,22 +651,7 @@ const v1 = {
496
651
  default: [],
497
652
  source: 'query',
498
653
  selector: 'td,th',
499
- query: {
500
- content: {
501
- type: 'string',
502
- source: 'html'
503
- },
504
- tag: {
505
- type: 'string',
506
- default: 'td',
507
- source: 'tag'
508
- },
509
- scope: {
510
- type: 'string',
511
- source: 'attribute',
512
- attribute: 'scope'
513
- }
514
- }
654
+ query: v1Query
515
655
  }
516
656
  }
517
657
  },
@@ -526,22 +666,7 @@ const v1 = {
526
666
  default: [],
527
667
  source: 'query',
528
668
  selector: 'td,th',
529
- query: {
530
- content: {
531
- type: 'string',
532
- source: 'html'
533
- },
534
- tag: {
535
- type: 'string',
536
- default: 'td',
537
- source: 'tag'
538
- },
539
- scope: {
540
- type: 'string',
541
- source: 'attribute',
542
- attribute: 'scope'
543
- }
544
- }
669
+ query: v1Query
545
670
  }
546
671
  }
547
672
  },
@@ -556,22 +681,7 @@ const v1 = {
556
681
  default: [],
557
682
  source: 'query',
558
683
  selector: 'td,th',
559
- query: {
560
- content: {
561
- type: 'string',
562
- source: 'html'
563
- },
564
- tag: {
565
- type: 'string',
566
- default: 'td',
567
- source: 'tag'
568
- },
569
- scope: {
570
- type: 'string',
571
- source: 'attribute',
572
- attribute: 'scope'
573
- }
574
- }
684
+ query: v1Query
575
685
  }
576
686
  }
577
687
  }
@@ -644,5 +754,5 @@ const v1 = {
644
754
  *
645
755
  * See block-deprecation.md
646
756
  */
647
- var _default = exports.default = [v3, v2, v1];
757
+ var _default = exports.default = [v4, v3, v2, v1];
648
758
  //# sourceMappingURL=deprecated.js.map