@wordpress/block-library 8.3.4 → 8.3.6

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 (317) hide show
  1. package/build/archives/index.js +0 -1
  2. package/build/archives/index.js.map +1 -1
  3. package/build/avatar/index.js +0 -1
  4. package/build/avatar/index.js.map +1 -1
  5. package/build/calendar/index.js +0 -1
  6. package/build/calendar/index.js.map +1 -1
  7. package/build/categories/index.js +0 -1
  8. package/build/categories/index.js.map +1 -1
  9. package/build/comment-author-avatar/index.js +0 -1
  10. package/build/comment-author-avatar/index.js.map +1 -1
  11. package/build/comment-author-name/index.js +0 -1
  12. package/build/comment-author-name/index.js.map +1 -1
  13. package/build/comment-content/index.js +0 -1
  14. package/build/comment-content/index.js.map +1 -1
  15. package/build/comment-date/index.js +0 -1
  16. package/build/comment-date/index.js.map +1 -1
  17. package/build/comment-edit-link/index.js +0 -1
  18. package/build/comment-edit-link/index.js.map +1 -1
  19. package/build/comment-reply-link/index.js +0 -1
  20. package/build/comment-reply-link/index.js.map +1 -1
  21. package/build/comment-template/index.js +0 -1
  22. package/build/comment-template/index.js.map +1 -1
  23. package/build/comments/index.js +1 -2
  24. package/build/comments/index.js.map +1 -1
  25. package/build/comments-pagination/index.js +0 -1
  26. package/build/comments-pagination/index.js.map +1 -1
  27. package/build/comments-pagination-next/index.js +0 -1
  28. package/build/comments-pagination-next/index.js.map +1 -1
  29. package/build/comments-pagination-numbers/index.js +0 -1
  30. package/build/comments-pagination-numbers/index.js.map +1 -1
  31. package/build/comments-pagination-previous/index.js +0 -1
  32. package/build/comments-pagination-previous/index.js.map +1 -1
  33. package/build/home-link/index.js +0 -1
  34. package/build/home-link/index.js.map +1 -1
  35. package/build/latest-comments/index.js +0 -1
  36. package/build/latest-comments/index.js.map +1 -1
  37. package/build/latest-posts/deprecated.js +0 -1
  38. package/build/latest-posts/deprecated.js.map +1 -1
  39. package/build/latest-posts/index.js +0 -1
  40. package/build/latest-posts/index.js.map +1 -1
  41. package/build/loginout/index.js +0 -1
  42. package/build/loginout/index.js.map +1 -1
  43. package/build/navigation/edit/menu-inspector-controls.js +3 -4
  44. package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
  45. package/build/navigation/index.js +0 -1
  46. package/build/navigation/index.js.map +1 -1
  47. package/build/navigation-link/edit.js +9 -10
  48. package/build/navigation-link/edit.js.map +1 -1
  49. package/build/navigation-submenu/edit.js +4 -0
  50. package/build/navigation-submenu/edit.js.map +1 -1
  51. package/build/page-list/index.js +0 -1
  52. package/build/page-list/index.js.map +1 -1
  53. package/build/post-author/index.js +0 -1
  54. package/build/post-author/index.js.map +1 -1
  55. package/build/post-author-biography/index.js +0 -1
  56. package/build/post-author-biography/index.js.map +1 -1
  57. package/build/post-author-name/index.js +0 -1
  58. package/build/post-author-name/index.js.map +1 -1
  59. package/build/post-comments-count/index.js +0 -1
  60. package/build/post-comments-count/index.js.map +1 -1
  61. package/build/post-comments-form/index.js +0 -1
  62. package/build/post-comments-form/index.js.map +1 -1
  63. package/build/post-comments-link/index.js +0 -1
  64. package/build/post-comments-link/index.js.map +1 -1
  65. package/build/post-content/index.js +0 -1
  66. package/build/post-content/index.js.map +1 -1
  67. package/build/post-date/index.js +0 -1
  68. package/build/post-date/index.js.map +1 -1
  69. package/build/post-excerpt/index.js +0 -1
  70. package/build/post-excerpt/index.js.map +1 -1
  71. package/build/post-featured-image/index.js +0 -1
  72. package/build/post-featured-image/index.js.map +1 -1
  73. package/build/post-navigation-link/index.js +0 -1
  74. package/build/post-navigation-link/index.js.map +1 -1
  75. package/build/post-template/index.js +0 -1
  76. package/build/post-template/index.js.map +1 -1
  77. package/build/post-terms/index.js +0 -1
  78. package/build/post-terms/index.js.map +1 -1
  79. package/build/post-title/index.js +0 -1
  80. package/build/post-title/index.js.map +1 -1
  81. package/build/query/index.js +0 -1
  82. package/build/query/index.js.map +1 -1
  83. package/build/query/utils.js +0 -1
  84. package/build/query/utils.js.map +1 -1
  85. package/build/query-no-results/index.js +0 -1
  86. package/build/query-no-results/index.js.map +1 -1
  87. package/build/query-pagination/index.js +0 -1
  88. package/build/query-pagination/index.js.map +1 -1
  89. package/build/query-pagination-next/index.js +0 -1
  90. package/build/query-pagination-next/index.js.map +1 -1
  91. package/build/query-pagination-numbers/index.js +0 -1
  92. package/build/query-pagination-numbers/index.js.map +1 -1
  93. package/build/query-pagination-previous/index.js +0 -1
  94. package/build/query-pagination-previous/index.js.map +1 -1
  95. package/build/query-title/index.js +0 -1
  96. package/build/query-title/index.js.map +1 -1
  97. package/build/read-more/index.js +0 -1
  98. package/build/read-more/index.js.map +1 -1
  99. package/build/rss/index.js +0 -1
  100. package/build/rss/index.js.map +1 -1
  101. package/build/search/index.js +0 -1
  102. package/build/search/index.js.map +1 -1
  103. package/build/site-logo/index.js +0 -1
  104. package/build/site-logo/index.js.map +1 -1
  105. package/build/site-tagline/index.js +1 -1
  106. package/build/site-title/index.js +0 -1
  107. package/build/site-title/index.js.map +1 -1
  108. package/build/social-link/index.js +0 -1
  109. package/build/social-link/index.js.map +1 -1
  110. package/build/social-links/edit.js +2 -1
  111. package/build/social-links/edit.js.map +1 -1
  112. package/build/tag-cloud/index.js +0 -1
  113. package/build/tag-cloud/index.js.map +1 -1
  114. package/build/template-part/edit/import-controls.js +29 -6
  115. package/build/template-part/edit/import-controls.js.map +1 -1
  116. package/build/template-part/index.js +0 -1
  117. package/build/template-part/index.js.map +1 -1
  118. package/build/term-description/index.js +0 -1
  119. package/build/term-description/index.js.map +1 -1
  120. package/build-module/archives/index.js +0 -1
  121. package/build-module/archives/index.js.map +1 -1
  122. package/build-module/avatar/index.js +0 -1
  123. package/build-module/avatar/index.js.map +1 -1
  124. package/build-module/calendar/index.js +0 -1
  125. package/build-module/calendar/index.js.map +1 -1
  126. package/build-module/categories/index.js +0 -1
  127. package/build-module/categories/index.js.map +1 -1
  128. package/build-module/comment-author-avatar/index.js +0 -1
  129. package/build-module/comment-author-avatar/index.js.map +1 -1
  130. package/build-module/comment-author-name/index.js +0 -1
  131. package/build-module/comment-author-name/index.js.map +1 -1
  132. package/build-module/comment-content/index.js +0 -1
  133. package/build-module/comment-content/index.js.map +1 -1
  134. package/build-module/comment-date/index.js +0 -1
  135. package/build-module/comment-date/index.js.map +1 -1
  136. package/build-module/comment-edit-link/index.js +0 -1
  137. package/build-module/comment-edit-link/index.js.map +1 -1
  138. package/build-module/comment-reply-link/index.js +0 -1
  139. package/build-module/comment-reply-link/index.js.map +1 -1
  140. package/build-module/comment-template/index.js +0 -1
  141. package/build-module/comment-template/index.js.map +1 -1
  142. package/build-module/comments/index.js +1 -2
  143. package/build-module/comments/index.js.map +1 -1
  144. package/build-module/comments-pagination/index.js +0 -1
  145. package/build-module/comments-pagination/index.js.map +1 -1
  146. package/build-module/comments-pagination-next/index.js +0 -1
  147. package/build-module/comments-pagination-next/index.js.map +1 -1
  148. package/build-module/comments-pagination-numbers/index.js +0 -1
  149. package/build-module/comments-pagination-numbers/index.js.map +1 -1
  150. package/build-module/comments-pagination-previous/index.js +0 -1
  151. package/build-module/comments-pagination-previous/index.js.map +1 -1
  152. package/build-module/home-link/index.js +0 -1
  153. package/build-module/home-link/index.js.map +1 -1
  154. package/build-module/latest-comments/index.js +0 -1
  155. package/build-module/latest-comments/index.js.map +1 -1
  156. package/build-module/latest-posts/deprecated.js +0 -1
  157. package/build-module/latest-posts/deprecated.js.map +1 -1
  158. package/build-module/latest-posts/index.js +0 -1
  159. package/build-module/latest-posts/index.js.map +1 -1
  160. package/build-module/loginout/index.js +0 -1
  161. package/build-module/loginout/index.js.map +1 -1
  162. package/build-module/navigation/edit/menu-inspector-controls.js +2 -2
  163. package/build-module/navigation/edit/menu-inspector-controls.js.map +1 -1
  164. package/build-module/navigation/index.js +0 -1
  165. package/build-module/navigation/index.js.map +1 -1
  166. package/build-module/navigation-link/edit.js +9 -10
  167. package/build-module/navigation-link/edit.js.map +1 -1
  168. package/build-module/navigation-submenu/edit.js +4 -0
  169. package/build-module/navigation-submenu/edit.js.map +1 -1
  170. package/build-module/page-list/index.js +0 -1
  171. package/build-module/page-list/index.js.map +1 -1
  172. package/build-module/post-author/index.js +0 -1
  173. package/build-module/post-author/index.js.map +1 -1
  174. package/build-module/post-author-biography/index.js +0 -1
  175. package/build-module/post-author-biography/index.js.map +1 -1
  176. package/build-module/post-author-name/index.js +0 -1
  177. package/build-module/post-author-name/index.js.map +1 -1
  178. package/build-module/post-comments-count/index.js +0 -1
  179. package/build-module/post-comments-count/index.js.map +1 -1
  180. package/build-module/post-comments-form/index.js +0 -1
  181. package/build-module/post-comments-form/index.js.map +1 -1
  182. package/build-module/post-comments-link/index.js +0 -1
  183. package/build-module/post-comments-link/index.js.map +1 -1
  184. package/build-module/post-content/index.js +0 -1
  185. package/build-module/post-content/index.js.map +1 -1
  186. package/build-module/post-date/index.js +0 -1
  187. package/build-module/post-date/index.js.map +1 -1
  188. package/build-module/post-excerpt/index.js +0 -1
  189. package/build-module/post-excerpt/index.js.map +1 -1
  190. package/build-module/post-featured-image/index.js +0 -1
  191. package/build-module/post-featured-image/index.js.map +1 -1
  192. package/build-module/post-navigation-link/index.js +0 -1
  193. package/build-module/post-navigation-link/index.js.map +1 -1
  194. package/build-module/post-template/index.js +0 -1
  195. package/build-module/post-template/index.js.map +1 -1
  196. package/build-module/post-terms/index.js +0 -1
  197. package/build-module/post-terms/index.js.map +1 -1
  198. package/build-module/post-title/index.js +0 -1
  199. package/build-module/post-title/index.js.map +1 -1
  200. package/build-module/query/index.js +0 -1
  201. package/build-module/query/index.js.map +1 -1
  202. package/build-module/query/utils.js +0 -1
  203. package/build-module/query/utils.js.map +1 -1
  204. package/build-module/query-no-results/index.js +0 -1
  205. package/build-module/query-no-results/index.js.map +1 -1
  206. package/build-module/query-pagination/index.js +0 -1
  207. package/build-module/query-pagination/index.js.map +1 -1
  208. package/build-module/query-pagination-next/index.js +0 -1
  209. package/build-module/query-pagination-next/index.js.map +1 -1
  210. package/build-module/query-pagination-numbers/index.js +0 -1
  211. package/build-module/query-pagination-numbers/index.js.map +1 -1
  212. package/build-module/query-pagination-previous/index.js +0 -1
  213. package/build-module/query-pagination-previous/index.js.map +1 -1
  214. package/build-module/query-title/index.js +0 -1
  215. package/build-module/query-title/index.js.map +1 -1
  216. package/build-module/read-more/index.js +0 -1
  217. package/build-module/read-more/index.js.map +1 -1
  218. package/build-module/rss/index.js +0 -1
  219. package/build-module/rss/index.js.map +1 -1
  220. package/build-module/search/index.js +0 -1
  221. package/build-module/search/index.js.map +1 -1
  222. package/build-module/site-logo/index.js +0 -1
  223. package/build-module/site-logo/index.js.map +1 -1
  224. package/build-module/site-tagline/index.js +1 -1
  225. package/build-module/site-title/index.js +0 -1
  226. package/build-module/site-title/index.js.map +1 -1
  227. package/build-module/social-link/index.js +0 -1
  228. package/build-module/social-link/index.js.map +1 -1
  229. package/build-module/social-links/edit.js +2 -1
  230. package/build-module/social-links/edit.js.map +1 -1
  231. package/build-module/tag-cloud/index.js +0 -1
  232. package/build-module/tag-cloud/index.js.map +1 -1
  233. package/build-module/template-part/edit/import-controls.js +28 -6
  234. package/build-module/template-part/edit/import-controls.js.map +1 -1
  235. package/build-module/template-part/index.js +0 -1
  236. package/build-module/template-part/index.js.map +1 -1
  237. package/build-module/term-description/index.js +0 -1
  238. package/build-module/term-description/index.js.map +1 -1
  239. package/build-style/editor-rtl.css +3 -2
  240. package/build-style/editor.css +3 -2
  241. package/build-style/query/editor-rtl.css +1 -0
  242. package/build-style/query/editor.css +1 -0
  243. package/build-style/quote/style-rtl.css +5 -5
  244. package/build-style/quote/style.css +5 -5
  245. package/build-style/site-logo/editor-rtl.css +2 -2
  246. package/build-style/site-logo/editor.css +2 -2
  247. package/build-style/style-rtl.css +5 -5
  248. package/build-style/style.css +5 -5
  249. package/package.json +16 -16
  250. package/src/archives/block.json +0 -1
  251. package/src/avatar/block.json +0 -1
  252. package/src/calendar/block.json +0 -1
  253. package/src/categories/block.json +0 -1
  254. package/src/comment-author-avatar/block.json +0 -1
  255. package/src/comment-author-name/block.json +0 -1
  256. package/src/comment-content/block.json +0 -1
  257. package/src/comment-date/block.json +0 -1
  258. package/src/comment-edit-link/block.json +0 -1
  259. package/src/comment-reply-link/block.json +0 -1
  260. package/src/comment-template/block.json +0 -1
  261. package/src/comments/block.json +1 -2
  262. package/src/comments-pagination/block.json +0 -1
  263. package/src/comments-pagination-next/block.json +0 -1
  264. package/src/comments-pagination-numbers/block.json +0 -1
  265. package/src/comments-pagination-previous/block.json +0 -1
  266. package/src/home-link/block.json +0 -1
  267. package/src/latest-comments/block.json +0 -1
  268. package/src/latest-posts/block.json +0 -1
  269. package/src/loginout/block.json +0 -1
  270. package/src/navigation/block.json +0 -1
  271. package/src/navigation/edit/menu-inspector-controls.js +1 -3
  272. package/src/navigation-link/edit.js +8 -10
  273. package/src/navigation-submenu/edit.js +3 -0
  274. package/src/page-list/block.json +0 -1
  275. package/src/post-author/block.json +0 -1
  276. package/src/post-author-biography/block.json +0 -1
  277. package/src/post-author-name/block.json +0 -1
  278. package/src/post-comments-count/block.json +0 -1
  279. package/src/post-comments-form/block.json +0 -1
  280. package/src/post-comments-link/block.json +0 -1
  281. package/src/post-content/block.json +0 -1
  282. package/src/post-date/block.json +0 -1
  283. package/src/post-excerpt/block.json +0 -1
  284. package/src/post-featured-image/block.json +0 -1
  285. package/src/post-navigation-link/block.json +0 -1
  286. package/src/post-template/block.json +0 -1
  287. package/src/post-terms/block.json +0 -1
  288. package/src/post-title/block.json +0 -1
  289. package/src/query/block.json +0 -1
  290. package/src/query/editor.scss +1 -0
  291. package/src/query-no-results/block.json +0 -1
  292. package/src/query-pagination/block.json +0 -1
  293. package/src/query-pagination-next/block.json +0 -1
  294. package/src/query-pagination-numbers/block.json +0 -1
  295. package/src/query-pagination-previous/block.json +0 -1
  296. package/src/query-title/block.json +0 -1
  297. package/src/quote/style.scss +2 -2
  298. package/src/read-more/block.json +0 -1
  299. package/src/rss/block.json +0 -1
  300. package/src/search/block.json +0 -1
  301. package/src/site-logo/block.json +0 -1
  302. package/src/site-logo/editor.scss +3 -3
  303. package/src/site-tagline/block.json +1 -1
  304. package/src/site-title/block.json +0 -1
  305. package/src/social-link/block.json +0 -1
  306. package/src/social-links/edit.js +1 -0
  307. package/src/tag-cloud/block.json +0 -1
  308. package/src/template-part/block.json +0 -1
  309. package/src/template-part/edit/import-controls.js +24 -5
  310. package/src/template-part/index.php +1 -1
  311. package/src/term-description/block.json +0 -1
  312. package/tsconfig.tsbuildinfo +1 -1
  313. package/build/navigation/leaf-more-menu.js +0 -95
  314. package/build/navigation/leaf-more-menu.js.map +0 -1
  315. package/build-module/navigation/leaf-more-menu.js +0 -76
  316. package/build-module/navigation/leaf-more-menu.js.map +0 -1
  317. package/src/navigation/leaf-more-menu.js +0 -93
@@ -261,6 +261,9 @@ export default function NavigationLinkEdit( {
261
261
  useEffect( () => {
262
262
  // If block has inner blocks, transform to Submenu.
263
263
  if ( hasChildren ) {
264
+ // This side-effect should not create an undo level as those should
265
+ // only be created via user interactions.
266
+ __unstableMarkNextChangeAsNotPersistent();
264
267
  transformToSubmenu();
265
268
  }
266
269
  }, [ hasChildren ] );
@@ -312,17 +315,12 @@ export default function NavigationLinkEdit( {
312
315
  */
313
316
  function removeLink() {
314
317
  // Reset all attributes that comprise the link.
315
- // It is critical that all attributes are reset
316
- // to their default values otherwise this may
317
- // in advertently trigger side effects because
318
- // the values will have "changed".
319
318
  setAttributes( {
320
- url: undefined,
321
- label: undefined,
322
- id: undefined,
323
- kind: undefined,
324
- type: undefined,
325
- opensInNewTab: false,
319
+ url: '',
320
+ label: '',
321
+ id: '',
322
+ kind: '',
323
+ type: '',
326
324
  } );
327
325
 
328
326
  // Close the link editing UI.
@@ -358,6 +358,9 @@ export default function NavigationSubmenuEdit( {
358
358
  useEffect( () => {
359
359
  // If block becomes empty, transform to Navigation Link.
360
360
  if ( ! hasChildren && prevHasChildren ) {
361
+ // This side-effect should not create an undo level as those should
362
+ // only be created via user interactions.
363
+ __unstableMarkNextChangeAsNotPersistent();
361
364
  transformToLink();
362
365
  }
363
366
  }, [ hasChildren, prevHasChildren ] );
@@ -33,7 +33,6 @@
33
33
  "openSubmenusOnClick"
34
34
  ],
35
35
  "supports": {
36
- "anchor": true,
37
36
  "reusable": false,
38
37
  "html": false,
39
38
  "typography": {
@@ -35,7 +35,6 @@
35
35
  },
36
36
  "usesContext": [ "postType", "postId", "queryId" ],
37
37
  "supports": {
38
- "anchor": true,
39
38
  "html": false,
40
39
  "spacing": {
41
40
  "margin": true,
@@ -13,7 +13,6 @@
13
13
  },
14
14
  "usesContext": [ "postType", "postId" ],
15
15
  "supports": {
16
- "anchor": true,
17
16
  "spacing": {
18
17
  "margin": true,
19
18
  "padding": true
@@ -21,7 +21,6 @@
21
21
  },
22
22
  "usesContext": [ "postType", "postId" ],
23
23
  "supports": {
24
- "anchor": true,
25
24
  "html": false,
26
25
  "spacing": {
27
26
  "margin": true,
@@ -14,7 +14,6 @@
14
14
  },
15
15
  "usesContext": [ "postId" ],
16
16
  "supports": {
17
- "anchor": true,
18
17
  "html": false,
19
18
  "color": {
20
19
  "gradients": true,
@@ -13,7 +13,6 @@
13
13
  },
14
14
  "usesContext": [ "postId", "postType" ],
15
15
  "supports": {
16
- "anchor": true,
17
16
  "html": false,
18
17
  "color": {
19
18
  "gradients": true,
@@ -14,7 +14,6 @@
14
14
  }
15
15
  },
16
16
  "supports": {
17
- "anchor": true,
18
17
  "html": false,
19
18
  "color": {
20
19
  "link": true,
@@ -8,7 +8,6 @@
8
8
  "textdomain": "default",
9
9
  "usesContext": [ "postId", "postType", "queryId" ],
10
10
  "supports": {
11
- "anchor": true,
12
11
  "align": [ "wide", "full" ],
13
12
  "html": false,
14
13
  "__experimentalLayout": true,
@@ -24,7 +24,6 @@
24
24
  },
25
25
  "usesContext": [ "postId", "postType", "queryId" ],
26
26
  "supports": {
27
- "anchor": true,
28
27
  "html": false,
29
28
  "color": {
30
29
  "gradients": true,
@@ -20,7 +20,6 @@
20
20
  },
21
21
  "usesContext": [ "postId", "postType", "queryId" ],
22
22
  "supports": {
23
- "anchor": true,
24
23
  "html": false,
25
24
  "color": {
26
25
  "gradients": true,
@@ -53,7 +53,6 @@
53
53
  "usesContext": [ "postId", "postType", "queryId" ],
54
54
  "supports": {
55
55
  "align": [ "left", "right", "center", "wide", "full" ],
56
- "anchor": true,
57
56
  "color": {
58
57
  "__experimentalDuotone": "img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",
59
58
  "text": false,
@@ -31,7 +31,6 @@
31
31
  }
32
32
  },
33
33
  "supports": {
34
- "anchor": true,
35
34
  "reusable": false,
36
35
  "html": false,
37
36
  "color": {
@@ -19,7 +19,6 @@
19
19
  "reusable": false,
20
20
  "html": false,
21
21
  "align": true,
22
- "anchor": true,
23
22
  "__experimentalLayout": {
24
23
  "allowEditing": false
25
24
  },
@@ -28,7 +28,6 @@
28
28
  },
29
29
  "usesContext": [ "postId", "postType" ],
30
30
  "supports": {
31
- "anchor": true,
32
31
  "html": false,
33
32
  "color": {
34
33
  "gradients": true,
@@ -31,7 +31,6 @@
31
31
  },
32
32
  "supports": {
33
33
  "align": [ "wide", "full" ],
34
- "anchor": true,
35
34
  "html": false,
36
35
  "color": {
37
36
  "gradients": true,
@@ -49,7 +49,6 @@
49
49
  },
50
50
  "supports": {
51
51
  "align": [ "wide", "full" ],
52
- "anchor": true,
53
52
  "html": false,
54
53
  "__experimentalLayout": true
55
54
  },
@@ -42,6 +42,7 @@
42
42
  position: sticky;
43
43
  top: 0;
44
44
  padding: $grid-unit-20 0;
45
+ margin-bottom: 2px;
45
46
  z-index: z-index(".block-library-query-pattern__selection-search");
46
47
  }
47
48
  }
@@ -9,7 +9,6 @@
9
9
  "textdomain": "default",
10
10
  "usesContext": [ "queryId", "query" ],
11
11
  "supports": {
12
- "anchor": true,
13
12
  "align": true,
14
13
  "reusable": false,
15
14
  "html": false,
@@ -18,7 +18,6 @@
18
18
  "paginationArrow": "paginationArrow"
19
19
  },
20
20
  "supports": {
21
- "anchor": true,
22
21
  "align": true,
23
22
  "reusable": false,
24
23
  "html": false,
@@ -14,7 +14,6 @@
14
14
  },
15
15
  "usesContext": [ "queryId", "query", "paginationArrow" ],
16
16
  "supports": {
17
- "anchor": true,
18
17
  "reusable": false,
19
18
  "html": false,
20
19
  "color": {
@@ -9,7 +9,6 @@
9
9
  "textdomain": "default",
10
10
  "usesContext": [ "queryId", "query" ],
11
11
  "supports": {
12
- "anchor": true,
13
12
  "reusable": false,
14
13
  "html": false,
15
14
  "color": {
@@ -14,7 +14,6 @@
14
14
  },
15
15
  "usesContext": [ "queryId", "query", "paginationArrow" ],
16
16
  "supports": {
17
- "anchor": true,
18
17
  "reusable": false,
19
18
  "html": false,
20
19
  "color": {
@@ -27,7 +27,6 @@
27
27
  }
28
28
  },
29
29
  "supports": {
30
- "anchor": true,
31
30
  "align": [ "wide", "full" ],
32
31
  "html": false,
33
32
  "color": {
@@ -2,8 +2,8 @@
2
2
  box-sizing: border-box;
3
3
  overflow-wrap: break-word; // Break long strings of text without spaces so they don't overflow the block.
4
4
  // .is-style-large and .is-large are kept for backwards compatibility. The :not pseudo-class is used to enable switching styles. See PR #37580.
5
- &.is-style-large:not(.is-style-plain),
6
- &.is-large:not(.is-style-plain) {
5
+ &.is-style-large:where(:not(.is-style-plain)),
6
+ &.is-large:where(:not(.is-style-plain)) {
7
7
  margin-bottom: 1em;
8
8
  padding: 0 1em;
9
9
 
@@ -17,7 +17,6 @@
17
17
  },
18
18
  "usesContext": [ "postId" ],
19
19
  "supports": {
20
- "anchor": true,
21
20
  "html": false,
22
21
  "color": {
23
22
  "gradients": true,
@@ -43,7 +43,6 @@
43
43
  },
44
44
  "supports": {
45
45
  "align": true,
46
- "anchor": true,
47
46
  "html": false
48
47
  },
49
48
  "editorStyle": "wp-block-rss-editor",
@@ -46,7 +46,6 @@
46
46
  },
47
47
  "supports": {
48
48
  "align": [ "left", "center", "right" ],
49
- "anchor": true,
50
49
  "color": {
51
50
  "gradients": true,
52
51
  "__experimentalSkipSerialization": true,
@@ -31,7 +31,6 @@
31
31
  },
32
32
  "supports": {
33
33
  "html": false,
34
- "anchor": true,
35
34
  "align": true,
36
35
  "alignWide": false,
37
36
  "color": {
@@ -33,10 +33,10 @@
33
33
  // Provide special styling for the placeholder.
34
34
  // @todo: this particular minimal style of placeholder could be componentized further.
35
35
  .wp-block-site-logo.wp-block-site-logo {
36
- // Match the default logo size.
36
+
37
37
  &.is-default-size .components-placeholder {
38
- height: 120px;
39
- width: 120px;
38
+ height: 60px;
39
+ width: 60px;
40
40
  }
41
41
 
42
42
  // Inherit radius.
@@ -12,8 +12,8 @@
12
12
  "type": "string"
13
13
  }
14
14
  },
15
+ "example": {},
15
16
  "supports": {
16
- "anchor": true,
17
17
  "align": [ "wide", "full" ],
18
18
  "html": false,
19
19
  "color": {
@@ -27,7 +27,6 @@
27
27
  "viewportWidth": 500
28
28
  },
29
29
  "supports": {
30
- "anchor": true,
31
30
  "align": [ "wide", "full" ],
32
31
  "html": false,
33
32
  "color": {
@@ -28,7 +28,6 @@
28
28
  "iconBackgroundColorValue"
29
29
  ],
30
30
  "supports": {
31
- "anchor": true,
32
31
  "reusable": false,
33
32
  "html": false
34
33
  },
@@ -109,6 +109,7 @@ export function SocialLinksEdit( props ) {
109
109
  allowedBlocks: ALLOWED_BLOCKS,
110
110
  placeholder: isSelected ? SelectedSocialPlaceholder : SocialPlaceholder,
111
111
  templateLock: false,
112
+ orientation: attributes.layout?.orientation ?? 'horizontal',
112
113
  __experimentalAppenderTagName: 'li',
113
114
  } );
114
115
 
@@ -36,7 +36,6 @@
36
36
  ],
37
37
  "supports": {
38
38
  "html": false,
39
- "anchor": true,
40
39
  "align": true,
41
40
  "spacing": {
42
41
  "margin": true,
@@ -21,7 +21,6 @@
21
21
  }
22
22
  },
23
23
  "supports": {
24
- "anchor": true,
25
24
  "align": true,
26
25
  "html": false,
27
26
  "reusable": false
@@ -25,16 +25,25 @@ import { store as noticesStore } from '@wordpress/notices';
25
25
  import { useCreateTemplatePartFromBlocks } from './utils/hooks';
26
26
  import { transformWidgetToBlock } from './utils/transformers';
27
27
 
28
+ const SIDEBARS_QUERY = {
29
+ per_page: -1,
30
+ _fields: 'id,name,description,status,widgets',
31
+ };
32
+
28
33
  export function TemplatePartImportControls( { area, setAttributes } ) {
29
34
  const [ selectedSidebar, setSelectedSidebar ] = useState( '' );
30
35
  const [ isBusy, setIsBusy ] = useState( false );
31
36
 
32
37
  const registry = useRegistry();
33
- const sidebars = useSelect( ( select ) => {
34
- return select( coreStore ).getSidebars( {
35
- per_page: -1,
36
- _fields: 'id,name,description,status,widgets',
37
- } );
38
+ const { sidebars, hasResolved } = useSelect( ( select ) => {
39
+ const { getSidebars, hasFinishedResolution } = select( coreStore );
40
+
41
+ return {
42
+ sidebars: getSidebars( SIDEBARS_QUERY ),
43
+ hasResolved: hasFinishedResolution( 'getSidebars', [
44
+ SIDEBARS_QUERY,
45
+ ] ),
46
+ };
38
47
  }, [] );
39
48
  const { createErrorNotice } = useDispatch( noticesStore );
40
49
 
@@ -67,6 +76,16 @@ export function TemplatePartImportControls( { area, setAttributes } ) {
67
76
  ];
68
77
  }, [ sidebars ] );
69
78
 
79
+ // Render an empty node while data is loading to avoid SlotFill re-positioning bug.
80
+ // See: https://github.com/WordPress/gutenberg/issues/15641.
81
+ if ( ! hasResolved ) {
82
+ return <Spacer marginBottom="0" />;
83
+ }
84
+
85
+ if ( hasResolved && ! options.length ) {
86
+ return null;
87
+ }
88
+
70
89
  async function createFromWidgets( event ) {
71
90
  event.preventDefault();
72
91
 
@@ -22,7 +22,7 @@ function render_block_core_template_part( $attributes ) {
22
22
  if (
23
23
  isset( $attributes['slug'] ) &&
24
24
  isset( $attributes['theme'] ) &&
25
- wp_get_theme()->get_stylesheet() === $attributes['theme']
25
+ get_stylesheet() === $attributes['theme']
26
26
  ) {
27
27
  $template_part_id = $attributes['theme'] . '//' . $attributes['slug'];
28
28
  $template_part_query = new WP_Query(
@@ -12,7 +12,6 @@
12
12
  }
13
13
  },
14
14
  "supports": {
15
- "anchor": true,
16
15
  "align": [ "wide", "full" ],
17
16
  "html": false,
18
17
  "color": {
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","./src/table-of-contents/utils.ts","../element/node_modules/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../element/node_modules/@types/react/index.d.ts","../element/build-types/react.d.ts","../element/build-types/create-interpolate-element.d.ts","../../node_modules/@types/react/index.d.ts","../../node_modules/@types/react-dom/index.d.ts","../../node_modules/@types/react-dom/client.d.ts","../element/build-types/react-platform.d.ts","../element/build-types/utils.d.ts","../element/build-types/platform.d.ts","../element/build-types/serialize.d.ts","../element/build-types/raw-html.d.ts","../element/build-types/index.d.ts","./src/table-of-contents/list.tsx","../../typings/gutenberg-env/index.d.ts","../../node_modules/@types/react/global.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"b748401d3c3ec6955b1d189492122c36b69e2127e2fe2ee515591e463af5cc8b",{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"5917af4ff931b050dba49a1dedd9c00f15f7b3dc4345ad8491bfacd2ec68ed32","affectsGlobalScope":true},"6fb72c65c5af8c4ed7d41afecd1ebb463d1e074291ae5e8a187d0922fd40f59b","e47b8ec56eb49bc1c53c9012daa9874de14ad0c5da442485aec333571c74b526",{"version":"5917af4ff931b050dba49a1dedd9c00f15f7b3dc4345ad8491bfacd2ec68ed32","affectsGlobalScope":true},"e4dd91dd4789a109aab51d8a0569a282369fcda9ba6f2b2297bc61bacfb1a042","83e27bbd7304ea67f9afa1535f1d4fdb15866089f0d893c784cbb5b1c6fb3386","3f92e5a12ec6b30d7de129e9283a6a3e0e7a988457074950ec1e983812c2f2ff","d2d9e98a2b167079474768593e1e7125fc3db055add8fbdb5977e3d05a8a3696","6462da67490105ba7d98cf312c2faf8794c425781128b161ea8394d66502eec8","62359da52b6c8d00c50c2e50738fac82e902f916fdf458d8159e7edb1c60c3a8","1e0ac21bc775686383ea8c8e48bd98b385e6195b25c85525a7affd08a2cd38b9","0449615e1ed03c7d54fc435a63b7ef0cb4e5cea5ac40c9a63280a46f7eeae0ff","6a32e965fda149787817aefc75730a8d028cac8c8f15af547214e009c2c55172",{"version":"7b1b47a00ea238e04189f6a4796282ea252bf4f3afce92cdeaed4fe01c669a40","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"importsNotUsedAsValues":2,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"rootDir":"./src","strict":true,"strictNullChecks":true,"target":99},"fileIdsList":[[50],[47,48,49,64],[45,61],[51],[51,52,56,57,58,59,60],[54,55],[50,51],[46,47,48,49]],"referencedMap":[[55,1],[54,1],[53,2],[62,3],[52,4],[61,5],[60,1],[56,6],[51,1],[59,7],[50,8]],"exportedModulesMap":[[55,1],[54,1],[53,2],[62,3],[52,4],[61,5],[60,1],[56,6],[51,1],[59,7],[50,8]],"semanticDiagnosticsPerFile":[48,55,54,53,49,47,10,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,41,42,43,1,9,44,62,45,52,61,58,60,56,51,59,57,46,50,63]},"version":"4.4.2"}
1
+ {"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","./src/table-of-contents/utils.ts","../element/node_modules/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../element/node_modules/@types/react/index.d.ts","../element/build-types/react.d.ts","../element/build-types/create-interpolate-element.d.ts","../../node_modules/@types/react/index.d.ts","../../node_modules/@types/react-dom/index.d.ts","../../node_modules/@types/react-dom/client.d.ts","../element/build-types/react-platform.d.ts","../element/build-types/utils.d.ts","../element/build-types/platform.d.ts","../element/build-types/serialize.d.ts","../element/build-types/raw-html.d.ts","../element/build-types/index.d.ts","./src/table-of-contents/list.tsx","../../typings/gutenberg-env/index.d.ts","../../node_modules/@types/react/global.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"b748401d3c3ec6955b1d189492122c36b69e2127e2fe2ee515591e463af5cc8b",{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"5917af4ff931b050dba49a1dedd9c00f15f7b3dc4345ad8491bfacd2ec68ed32","affectsGlobalScope":true},"6fb72c65c5af8c4ed7d41afecd1ebb463d1e074291ae5e8a187d0922fd40f59b","e47b8ec56eb49bc1c53c9012daa9874de14ad0c5da442485aec333571c74b526",{"version":"5917af4ff931b050dba49a1dedd9c00f15f7b3dc4345ad8491bfacd2ec68ed32","affectsGlobalScope":true},"e4dd91dd4789a109aab51d8a0569a282369fcda9ba6f2b2297bc61bacfb1a042","83e27bbd7304ea67f9afa1535f1d4fdb15866089f0d893c784cbb5b1c6fb3386","c4b39848e2fb237507a7acae0b83a34271c9d72714faae6a6b9075527205111b","d2d9e98a2b167079474768593e1e7125fc3db055add8fbdb5977e3d05a8a3696","6462da67490105ba7d98cf312c2faf8794c425781128b161ea8394d66502eec8","62359da52b6c8d00c50c2e50738fac82e902f916fdf458d8159e7edb1c60c3a8","1e0ac21bc775686383ea8c8e48bd98b385e6195b25c85525a7affd08a2cd38b9","0449615e1ed03c7d54fc435a63b7ef0cb4e5cea5ac40c9a63280a46f7eeae0ff","6a32e965fda149787817aefc75730a8d028cac8c8f15af547214e009c2c55172",{"version":"7b1b47a00ea238e04189f6a4796282ea252bf4f3afce92cdeaed4fe01c669a40","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"importsNotUsedAsValues":2,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"rootDir":"./src","strict":true,"strictNullChecks":true,"target":99},"fileIdsList":[[50],[47,48,49,64],[45,61],[51],[51,52,56,57,58,59,60],[54,55],[50,51],[46,47,48,49]],"referencedMap":[[55,1],[54,1],[53,2],[62,3],[52,4],[61,5],[60,1],[56,6],[51,1],[59,7],[50,8]],"exportedModulesMap":[[55,1],[54,1],[53,2],[62,3],[52,4],[61,5],[60,1],[56,6],[51,1],[59,7],[50,8]],"semanticDiagnosticsPerFile":[48,55,54,53,49,47,10,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,40,36,37,38,39,8,41,42,43,1,9,44,62,45,52,61,58,60,56,51,59,57,46,50,63]},"version":"4.4.2"}
@@ -1,95 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.LeafMoreMenu = void 0;
9
-
10
- var _element = require("@wordpress/element");
11
-
12
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
-
14
- var _blocks = require("@wordpress/blocks");
15
-
16
- var _icons = require("@wordpress/icons");
17
-
18
- var _components = require("@wordpress/components");
19
-
20
- var _data = require("@wordpress/data");
21
-
22
- var _blockEditor = require("@wordpress/block-editor");
23
-
24
- var _i18n = require("@wordpress/i18n");
25
-
26
- /**
27
- * WordPress dependencies
28
- */
29
- const POPOVER_PROPS = {
30
- className: 'block-editor-block-settings-menu__popover',
31
- position: 'bottom right',
32
- variant: 'toolbar'
33
- };
34
-
35
- const LeafMoreMenu = props => {
36
- const {
37
- clientId,
38
- block
39
- } = props;
40
- const {
41
- insertBlock,
42
- replaceBlock,
43
- removeBlocks,
44
- replaceInnerBlocks
45
- } = (0, _data.useDispatch)(_blockEditor.store);
46
- const label = (0, _i18n.sprintf)(
47
- /* translators: %s: block name */
48
- (0, _i18n.__)('Remove %s'), (0, _blockEditor.BlockTitle)({
49
- clientId,
50
- maximumLength: 25
51
- }));
52
- return (0, _element.createElement)(_components.DropdownMenu, (0, _extends2.default)({
53
- icon: _icons.moreVertical,
54
- label: (0, _i18n.__)('Options'),
55
- className: "block-editor-block-settings-menu",
56
- popoverProps: POPOVER_PROPS,
57
- noIcons: true
58
- }, props), _ref => {
59
- let {
60
- onClose
61
- } = _ref;
62
- return (0, _element.createElement)(_components.MenuGroup, null, (0, _element.createElement)(_components.MenuItem, {
63
- icon: _icons.addSubmenu,
64
- onClick: () => {
65
- const updateSelectionOnInsert = false;
66
- const newLink = (0, _blocks.createBlock)('core/navigation-link');
67
-
68
- if (block.name === 'core/navigation-submenu') {
69
- insertBlock(newLink, block.innerBlocks.length, clientId, updateSelectionOnInsert);
70
- } else {
71
- // Convert to a submenu if the block currently isn't one.
72
- const newSubmenu = (0, _blocks.createBlock)('core/navigation-submenu', block.attributes, block.innerBlocks); // The following must happen as two independent actions.
73
- // Why? Because the offcanvas editor relies on the getLastInsertedBlocksClientIds
74
- // selector to determine which block is "active". As the UX needs the newLink to be
75
- // the "active" block it must be the last block to be inserted.
76
- // Therefore the Submenu is first created and **then** the newLink is inserted
77
- // thus ensuring it is the last inserted block.
78
-
79
- replaceBlock(clientId, newSubmenu);
80
- replaceInnerBlocks(newSubmenu.clientId, [newLink], updateSelectionOnInsert);
81
- }
82
-
83
- onClose();
84
- }
85
- }, (0, _i18n.__)('Add submenu item')), (0, _element.createElement)(_components.MenuItem, {
86
- onClick: () => {
87
- removeBlocks([clientId], false);
88
- onClose();
89
- }
90
- }, label));
91
- });
92
- };
93
-
94
- exports.LeafMoreMenu = LeafMoreMenu;
95
- //# sourceMappingURL=leaf-more-menu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["@wordpress/block-library/src/navigation/leaf-more-menu.js"],"names":["POPOVER_PROPS","className","position","variant","LeafMoreMenu","props","clientId","block","insertBlock","replaceBlock","removeBlocks","replaceInnerBlocks","blockEditorStore","label","maximumLength","moreVertical","onClose","addSubmenu","updateSelectionOnInsert","newLink","name","innerBlocks","length","newSubmenu","attributes"],"mappings":";;;;;;;;;;;;;AAGA;;AACA;;AACA;;AACA;;AACA;;AACA;;AARA;AACA;AACA;AAQA,MAAMA,aAAa,GAAG;AACrBC,EAAAA,SAAS,EAAE,2CADU;AAErBC,EAAAA,QAAQ,EAAE,cAFW;AAGrBC,EAAAA,OAAO,EAAE;AAHY,CAAtB;;AAMO,MAAMC,YAAY,GAAKC,KAAF,IAAa;AACxC,QAAM;AAAEC,IAAAA,QAAF;AAAYC,IAAAA;AAAZ,MAAsBF,KAA5B;AAEA,QAAM;AAAEG,IAAAA,WAAF;AAAeC,IAAAA,YAAf;AAA6BC,IAAAA,YAA7B;AAA2CC,IAAAA;AAA3C,MACL,uBAAaC,kBAAb,CADD;AAGA,QAAMC,KAAK,GAAG;AACb;AACA,gBAAI,WAAJ,CAFa,EAGb,6BAAY;AAAEP,IAAAA,QAAF;AAAYQ,IAAAA,aAAa,EAAE;AAA3B,GAAZ,CAHa,CAAd;AAMA,SACC,4BAAC,wBAAD;AACC,IAAA,IAAI,EAAGC,mBADR;AAEC,IAAA,KAAK,EAAG,cAAI,SAAJ,CAFT;AAGC,IAAA,SAAS,EAAC,kCAHX;AAIC,IAAA,YAAY,EAAGf,aAJhB;AAKC,IAAA,OAAO;AALR,KAMMK,KANN,GAQG;AAAA,QAAE;AAAEW,MAAAA;AAAF,KAAF;AAAA,WACD,4BAAC,qBAAD,QACC,4BAAC,oBAAD;AACC,MAAA,IAAI,EAAGC,iBADR;AAEC,MAAA,OAAO,EAAG,MAAM;AACf,cAAMC,uBAAuB,GAAG,KAAhC;AACA,cAAMC,OAAO,GAAG,yBACf,sBADe,CAAhB;;AAGA,YAAKZ,KAAK,CAACa,IAAN,KAAe,yBAApB,EAAgD;AAC/CZ,UAAAA,WAAW,CACVW,OADU,EAEVZ,KAAK,CAACc,WAAN,CAAkBC,MAFR,EAGVhB,QAHU,EAIVY,uBAJU,CAAX;AAMA,SAPD,MAOO;AACN;AACA,gBAAMK,UAAU,GAAG,yBAClB,yBADkB,EAElBhB,KAAK,CAACiB,UAFY,EAGlBjB,KAAK,CAACc,WAHY,CAAnB,CAFM,CAQN;AACA;AACA;AACA;AACA;AACA;;AACAZ,UAAAA,YAAY,CAAEH,QAAF,EAAYiB,UAAZ,CAAZ;AAEAZ,UAAAA,kBAAkB,CACjBY,UAAU,CAACjB,QADM,EAEjB,CAAEa,OAAF,CAFiB,EAGjBD,uBAHiB,CAAlB;AAKA;;AACDF,QAAAA,OAAO;AACP;AArCF,OAuCG,cAAI,kBAAJ,CAvCH,CADD,EA0CC,4BAAC,oBAAD;AACC,MAAA,OAAO,EAAG,MAAM;AACfN,QAAAA,YAAY,CAAE,CAAEJ,QAAF,CAAF,EAAgB,KAAhB,CAAZ;AACAU,QAAAA,OAAO;AACP;AAJF,OAMGH,KANH,CA1CD,CADC;AAAA,GARH,CADD;AAgEA,CA5EM","sourcesContent":["/**\n * WordPress dependencies\n */\nimport { createBlock } from '@wordpress/blocks';\nimport { addSubmenu, moreVertical } from '@wordpress/icons';\nimport { DropdownMenu, MenuItem, MenuGroup } from '@wordpress/components';\nimport { useDispatch } from '@wordpress/data';\nimport { store as blockEditorStore, BlockTitle } from '@wordpress/block-editor';\nimport { __, sprintf } from '@wordpress/i18n';\n\nconst POPOVER_PROPS = {\n\tclassName: 'block-editor-block-settings-menu__popover',\n\tposition: 'bottom right',\n\tvariant: 'toolbar',\n};\n\nexport const LeafMoreMenu = ( props ) => {\n\tconst { clientId, block } = props;\n\n\tconst { insertBlock, replaceBlock, removeBlocks, replaceInnerBlocks } =\n\t\tuseDispatch( blockEditorStore );\n\n\tconst label = sprintf(\n\t\t/* translators: %s: block name */\n\t\t__( 'Remove %s' ),\n\t\tBlockTitle( { clientId, maximumLength: 25 } )\n\t);\n\n\treturn (\n\t\t<DropdownMenu\n\t\t\ticon={ moreVertical }\n\t\t\tlabel={ __( 'Options' ) }\n\t\t\tclassName=\"block-editor-block-settings-menu\"\n\t\t\tpopoverProps={ POPOVER_PROPS }\n\t\t\tnoIcons\n\t\t\t{ ...props }\n\t\t>\n\t\t\t{ ( { onClose } ) => (\n\t\t\t\t<MenuGroup>\n\t\t\t\t\t<MenuItem\n\t\t\t\t\t\ticon={ addSubmenu }\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\tconst updateSelectionOnInsert = false;\n\t\t\t\t\t\t\tconst newLink = createBlock(\n\t\t\t\t\t\t\t\t'core/navigation-link'\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tif ( block.name === 'core/navigation-submenu' ) {\n\t\t\t\t\t\t\t\tinsertBlock(\n\t\t\t\t\t\t\t\t\tnewLink,\n\t\t\t\t\t\t\t\t\tblock.innerBlocks.length,\n\t\t\t\t\t\t\t\t\tclientId,\n\t\t\t\t\t\t\t\t\tupdateSelectionOnInsert\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// Convert to a submenu if the block currently isn't one.\n\t\t\t\t\t\t\t\tconst newSubmenu = createBlock(\n\t\t\t\t\t\t\t\t\t'core/navigation-submenu',\n\t\t\t\t\t\t\t\t\tblock.attributes,\n\t\t\t\t\t\t\t\t\tblock.innerBlocks\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t// The following must happen as two independent actions.\n\t\t\t\t\t\t\t\t// Why? Because the offcanvas editor relies on the getLastInsertedBlocksClientIds\n\t\t\t\t\t\t\t\t// selector to determine which block is \"active\". As the UX needs the newLink to be\n\t\t\t\t\t\t\t\t// the \"active\" block it must be the last block to be inserted.\n\t\t\t\t\t\t\t\t// Therefore the Submenu is first created and **then** the newLink is inserted\n\t\t\t\t\t\t\t\t// thus ensuring it is the last inserted block.\n\t\t\t\t\t\t\t\treplaceBlock( clientId, newSubmenu );\n\n\t\t\t\t\t\t\t\treplaceInnerBlocks(\n\t\t\t\t\t\t\t\t\tnewSubmenu.clientId,\n\t\t\t\t\t\t\t\t\t[ newLink ],\n\t\t\t\t\t\t\t\t\tupdateSelectionOnInsert\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t} }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Add submenu item' ) }\n\t\t\t\t\t</MenuItem>\n\t\t\t\t\t<MenuItem\n\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\tremoveBlocks( [ clientId ], false );\n\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t} }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ label }\n\t\t\t\t\t</MenuItem>\n\t\t\t\t</MenuGroup>\n\t\t\t) }\n\t\t</DropdownMenu>\n\t);\n};\n"]}