@wordpress/block-library 8.3.5 → 8.3.7

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 (344) 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/list-item/hooks/use-outdent-list-item.js +2 -1
  42. package/build/list-item/hooks/use-outdent-list-item.js.map +1 -1
  43. package/build/loginout/index.js +0 -1
  44. package/build/loginout/index.js.map +1 -1
  45. package/build/navigation/edit/index.js +4 -2
  46. package/build/navigation/edit/index.js.map +1 -1
  47. package/build/navigation/edit/inner-blocks.js +4 -1
  48. package/build/navigation/edit/inner-blocks.js.map +1 -1
  49. package/build/navigation/edit/menu-inspector-controls.js +1 -1
  50. package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
  51. package/build/navigation/index.js +0 -1
  52. package/build/navigation/index.js.map +1 -1
  53. package/build/navigation-link/edit.js +5 -21
  54. package/build/navigation-link/edit.js.map +1 -1
  55. package/build/navigation-submenu/edit.js +1 -13
  56. package/build/navigation-submenu/edit.js.map +1 -1
  57. package/build/page-list/edit.js +5 -1
  58. package/build/page-list/edit.js.map +1 -1
  59. package/build/page-list/index.js +0 -1
  60. package/build/page-list/index.js.map +1 -1
  61. package/build/post-author/index.js +0 -1
  62. package/build/post-author/index.js.map +1 -1
  63. package/build/post-author-biography/index.js +0 -1
  64. package/build/post-author-biography/index.js.map +1 -1
  65. package/build/post-author-name/index.js +0 -1
  66. package/build/post-author-name/index.js.map +1 -1
  67. package/build/post-comments-count/index.js +0 -1
  68. package/build/post-comments-count/index.js.map +1 -1
  69. package/build/post-comments-form/index.js +0 -1
  70. package/build/post-comments-form/index.js.map +1 -1
  71. package/build/post-comments-link/index.js +0 -1
  72. package/build/post-comments-link/index.js.map +1 -1
  73. package/build/post-content/index.js +0 -1
  74. package/build/post-content/index.js.map +1 -1
  75. package/build/post-date/index.js +0 -1
  76. package/build/post-date/index.js.map +1 -1
  77. package/build/post-excerpt/index.js +0 -1
  78. package/build/post-excerpt/index.js.map +1 -1
  79. package/build/post-featured-image/index.js +0 -1
  80. package/build/post-featured-image/index.js.map +1 -1
  81. package/build/post-navigation-link/index.js +0 -1
  82. package/build/post-navigation-link/index.js.map +1 -1
  83. package/build/post-template/index.js +0 -1
  84. package/build/post-template/index.js.map +1 -1
  85. package/build/post-terms/index.js +0 -1
  86. package/build/post-terms/index.js.map +1 -1
  87. package/build/post-title/index.js +0 -1
  88. package/build/post-title/index.js.map +1 -1
  89. package/build/query/edit/query-placeholder.js +3 -2
  90. package/build/query/edit/query-placeholder.js.map +1 -1
  91. package/build/query/index.js +0 -1
  92. package/build/query/index.js.map +1 -1
  93. package/build/query/utils.js +0 -1
  94. package/build/query/utils.js.map +1 -1
  95. package/build/query-no-results/index.js +0 -1
  96. package/build/query-no-results/index.js.map +1 -1
  97. package/build/query-pagination/index.js +0 -1
  98. package/build/query-pagination/index.js.map +1 -1
  99. package/build/query-pagination-next/index.js +0 -1
  100. package/build/query-pagination-next/index.js.map +1 -1
  101. package/build/query-pagination-numbers/index.js +0 -1
  102. package/build/query-pagination-numbers/index.js.map +1 -1
  103. package/build/query-pagination-previous/index.js +0 -1
  104. package/build/query-pagination-previous/index.js.map +1 -1
  105. package/build/query-title/index.js +0 -1
  106. package/build/query-title/index.js.map +1 -1
  107. package/build/read-more/index.js +0 -1
  108. package/build/read-more/index.js.map +1 -1
  109. package/build/rss/index.js +0 -1
  110. package/build/rss/index.js.map +1 -1
  111. package/build/search/index.js +0 -1
  112. package/build/search/index.js.map +1 -1
  113. package/build/site-logo/index.js +0 -1
  114. package/build/site-logo/index.js.map +1 -1
  115. package/build/site-tagline/index.js +1 -1
  116. package/build/site-title/index.js +0 -1
  117. package/build/site-title/index.js.map +1 -1
  118. package/build/social-link/index.js +0 -1
  119. package/build/social-link/index.js.map +1 -1
  120. package/build/social-links/edit.js +2 -1
  121. package/build/social-links/edit.js.map +1 -1
  122. package/build/tag-cloud/index.js +0 -1
  123. package/build/tag-cloud/index.js.map +1 -1
  124. package/build/template-part/edit/import-controls.js +33 -30
  125. package/build/template-part/edit/import-controls.js.map +1 -1
  126. package/build/template-part/edit/utils/transformers.js +69 -19
  127. package/build/template-part/edit/utils/transformers.js.map +1 -1
  128. package/build/template-part/index.js +0 -1
  129. package/build/template-part/index.js.map +1 -1
  130. package/build/term-description/index.js +0 -1
  131. package/build/term-description/index.js.map +1 -1
  132. package/build-module/archives/index.js +0 -1
  133. package/build-module/archives/index.js.map +1 -1
  134. package/build-module/avatar/index.js +0 -1
  135. package/build-module/avatar/index.js.map +1 -1
  136. package/build-module/calendar/index.js +0 -1
  137. package/build-module/calendar/index.js.map +1 -1
  138. package/build-module/categories/index.js +0 -1
  139. package/build-module/categories/index.js.map +1 -1
  140. package/build-module/comment-author-avatar/index.js +0 -1
  141. package/build-module/comment-author-avatar/index.js.map +1 -1
  142. package/build-module/comment-author-name/index.js +0 -1
  143. package/build-module/comment-author-name/index.js.map +1 -1
  144. package/build-module/comment-content/index.js +0 -1
  145. package/build-module/comment-content/index.js.map +1 -1
  146. package/build-module/comment-date/index.js +0 -1
  147. package/build-module/comment-date/index.js.map +1 -1
  148. package/build-module/comment-edit-link/index.js +0 -1
  149. package/build-module/comment-edit-link/index.js.map +1 -1
  150. package/build-module/comment-reply-link/index.js +0 -1
  151. package/build-module/comment-reply-link/index.js.map +1 -1
  152. package/build-module/comment-template/index.js +0 -1
  153. package/build-module/comment-template/index.js.map +1 -1
  154. package/build-module/comments/index.js +1 -2
  155. package/build-module/comments/index.js.map +1 -1
  156. package/build-module/comments-pagination/index.js +0 -1
  157. package/build-module/comments-pagination/index.js.map +1 -1
  158. package/build-module/comments-pagination-next/index.js +0 -1
  159. package/build-module/comments-pagination-next/index.js.map +1 -1
  160. package/build-module/comments-pagination-numbers/index.js +0 -1
  161. package/build-module/comments-pagination-numbers/index.js.map +1 -1
  162. package/build-module/comments-pagination-previous/index.js +0 -1
  163. package/build-module/comments-pagination-previous/index.js.map +1 -1
  164. package/build-module/home-link/index.js +0 -1
  165. package/build-module/home-link/index.js.map +1 -1
  166. package/build-module/latest-comments/index.js +0 -1
  167. package/build-module/latest-comments/index.js.map +1 -1
  168. package/build-module/latest-posts/deprecated.js +0 -1
  169. package/build-module/latest-posts/deprecated.js.map +1 -1
  170. package/build-module/latest-posts/index.js +0 -1
  171. package/build-module/latest-posts/index.js.map +1 -1
  172. package/build-module/list-item/hooks/use-outdent-list-item.js +2 -1
  173. package/build-module/list-item/hooks/use-outdent-list-item.js.map +1 -1
  174. package/build-module/loginout/index.js +0 -1
  175. package/build-module/loginout/index.js.map +1 -1
  176. package/build-module/navigation/edit/index.js +4 -2
  177. package/build-module/navigation/edit/index.js.map +1 -1
  178. package/build-module/navigation/edit/inner-blocks.js +4 -1
  179. package/build-module/navigation/edit/inner-blocks.js.map +1 -1
  180. package/build-module/navigation/edit/menu-inspector-controls.js +1 -1
  181. package/build-module/navigation/edit/menu-inspector-controls.js.map +1 -1
  182. package/build-module/navigation/index.js +0 -1
  183. package/build-module/navigation/index.js.map +1 -1
  184. package/build-module/navigation-link/edit.js +5 -21
  185. package/build-module/navigation-link/edit.js.map +1 -1
  186. package/build-module/navigation-submenu/edit.js +1 -13
  187. package/build-module/navigation-submenu/edit.js.map +1 -1
  188. package/build-module/page-list/edit.js +5 -1
  189. package/build-module/page-list/edit.js.map +1 -1
  190. package/build-module/page-list/index.js +0 -1
  191. package/build-module/page-list/index.js.map +1 -1
  192. package/build-module/post-author/index.js +0 -1
  193. package/build-module/post-author/index.js.map +1 -1
  194. package/build-module/post-author-biography/index.js +0 -1
  195. package/build-module/post-author-biography/index.js.map +1 -1
  196. package/build-module/post-author-name/index.js +0 -1
  197. package/build-module/post-author-name/index.js.map +1 -1
  198. package/build-module/post-comments-count/index.js +0 -1
  199. package/build-module/post-comments-count/index.js.map +1 -1
  200. package/build-module/post-comments-form/index.js +0 -1
  201. package/build-module/post-comments-form/index.js.map +1 -1
  202. package/build-module/post-comments-link/index.js +0 -1
  203. package/build-module/post-comments-link/index.js.map +1 -1
  204. package/build-module/post-content/index.js +0 -1
  205. package/build-module/post-content/index.js.map +1 -1
  206. package/build-module/post-date/index.js +0 -1
  207. package/build-module/post-date/index.js.map +1 -1
  208. package/build-module/post-excerpt/index.js +0 -1
  209. package/build-module/post-excerpt/index.js.map +1 -1
  210. package/build-module/post-featured-image/index.js +0 -1
  211. package/build-module/post-featured-image/index.js.map +1 -1
  212. package/build-module/post-navigation-link/index.js +0 -1
  213. package/build-module/post-navigation-link/index.js.map +1 -1
  214. package/build-module/post-template/index.js +0 -1
  215. package/build-module/post-template/index.js.map +1 -1
  216. package/build-module/post-terms/index.js +0 -1
  217. package/build-module/post-terms/index.js.map +1 -1
  218. package/build-module/post-title/index.js +0 -1
  219. package/build-module/post-title/index.js.map +1 -1
  220. package/build-module/query/edit/query-placeholder.js +4 -3
  221. package/build-module/query/edit/query-placeholder.js.map +1 -1
  222. package/build-module/query/index.js +0 -1
  223. package/build-module/query/index.js.map +1 -1
  224. package/build-module/query/utils.js +0 -1
  225. package/build-module/query/utils.js.map +1 -1
  226. package/build-module/query-no-results/index.js +0 -1
  227. package/build-module/query-no-results/index.js.map +1 -1
  228. package/build-module/query-pagination/index.js +0 -1
  229. package/build-module/query-pagination/index.js.map +1 -1
  230. package/build-module/query-pagination-next/index.js +0 -1
  231. package/build-module/query-pagination-next/index.js.map +1 -1
  232. package/build-module/query-pagination-numbers/index.js +0 -1
  233. package/build-module/query-pagination-numbers/index.js.map +1 -1
  234. package/build-module/query-pagination-previous/index.js +0 -1
  235. package/build-module/query-pagination-previous/index.js.map +1 -1
  236. package/build-module/query-title/index.js +0 -1
  237. package/build-module/query-title/index.js.map +1 -1
  238. package/build-module/read-more/index.js +0 -1
  239. package/build-module/read-more/index.js.map +1 -1
  240. package/build-module/rss/index.js +0 -1
  241. package/build-module/rss/index.js.map +1 -1
  242. package/build-module/search/index.js +0 -1
  243. package/build-module/search/index.js.map +1 -1
  244. package/build-module/site-logo/index.js +0 -1
  245. package/build-module/site-logo/index.js.map +1 -1
  246. package/build-module/site-tagline/index.js +1 -1
  247. package/build-module/site-title/index.js +0 -1
  248. package/build-module/site-title/index.js.map +1 -1
  249. package/build-module/social-link/index.js +0 -1
  250. package/build-module/social-link/index.js.map +1 -1
  251. package/build-module/social-links/edit.js +2 -1
  252. package/build-module/social-links/edit.js.map +1 -1
  253. package/build-module/tag-cloud/index.js +0 -1
  254. package/build-module/tag-cloud/index.js.map +1 -1
  255. package/build-module/template-part/edit/import-controls.js +32 -29
  256. package/build-module/template-part/edit/import-controls.js.map +1 -1
  257. package/build-module/template-part/edit/utils/transformers.js +69 -20
  258. package/build-module/template-part/edit/utils/transformers.js.map +1 -1
  259. package/build-module/template-part/index.js +0 -1
  260. package/build-module/template-part/index.js.map +1 -1
  261. package/build-module/term-description/index.js +0 -1
  262. package/build-module/term-description/index.js.map +1 -1
  263. package/build-style/editor-rtl.css +8 -3
  264. package/build-style/editor.css +8 -3
  265. package/build-style/navigation/editor-rtl.css +1 -1
  266. package/build-style/navigation/editor.css +1 -1
  267. package/build-style/page-list/editor-rtl.css +4 -0
  268. package/build-style/page-list/editor.css +4 -0
  269. package/build-style/query/editor-rtl.css +1 -0
  270. package/build-style/query/editor.css +1 -0
  271. package/build-style/site-logo/editor-rtl.css +2 -2
  272. package/build-style/site-logo/editor.css +2 -2
  273. package/package.json +6 -6
  274. package/src/archives/block.json +0 -1
  275. package/src/avatar/block.json +0 -1
  276. package/src/calendar/block.json +0 -1
  277. package/src/categories/block.json +0 -1
  278. package/src/comment-author-avatar/block.json +0 -1
  279. package/src/comment-author-name/block.json +0 -1
  280. package/src/comment-content/block.json +0 -1
  281. package/src/comment-date/block.json +0 -1
  282. package/src/comment-edit-link/block.json +0 -1
  283. package/src/comment-reply-link/block.json +0 -1
  284. package/src/comment-template/block.json +0 -1
  285. package/src/comments/block.json +1 -2
  286. package/src/comments-pagination/block.json +0 -1
  287. package/src/comments-pagination-next/block.json +0 -1
  288. package/src/comments-pagination-numbers/block.json +0 -1
  289. package/src/comments-pagination-previous/block.json +0 -1
  290. package/src/home-link/block.json +0 -1
  291. package/src/latest-comments/block.json +0 -1
  292. package/src/latest-posts/block.json +0 -1
  293. package/src/list-item/hooks/use-outdent-list-item.js +2 -1
  294. package/src/loginout/block.json +0 -1
  295. package/src/navigation/block.json +0 -1
  296. package/src/navigation/edit/index.js +3 -1
  297. package/src/navigation/edit/inner-blocks.js +3 -0
  298. package/src/navigation/edit/menu-inspector-controls.js +1 -3
  299. package/src/navigation/editor.scss +23 -20
  300. package/src/navigation/index.php +8 -6
  301. package/src/navigation-link/edit.js +5 -19
  302. package/src/navigation-link/index.php +4 -5
  303. package/src/navigation-submenu/edit.js +0 -10
  304. package/src/navigation-submenu/index.php +23 -6
  305. package/src/page-list/block.json +0 -1
  306. package/src/page-list/edit.js +3 -1
  307. package/src/page-list/editor.scss +6 -0
  308. package/src/post-author/block.json +0 -1
  309. package/src/post-author-biography/block.json +0 -1
  310. package/src/post-author-name/block.json +0 -1
  311. package/src/post-comments-count/block.json +0 -1
  312. package/src/post-comments-form/block.json +0 -1
  313. package/src/post-comments-link/block.json +0 -1
  314. package/src/post-content/block.json +0 -1
  315. package/src/post-date/block.json +0 -1
  316. package/src/post-excerpt/block.json +0 -1
  317. package/src/post-featured-image/block.json +0 -1
  318. package/src/post-navigation-link/block.json +0 -1
  319. package/src/post-template/block.json +0 -1
  320. package/src/post-terms/block.json +0 -1
  321. package/src/post-title/block.json +0 -1
  322. package/src/query/block.json +0 -1
  323. package/src/query/edit/query-placeholder.js +10 -5
  324. package/src/query/editor.scss +1 -0
  325. package/src/query-no-results/block.json +0 -1
  326. package/src/query-pagination/block.json +0 -1
  327. package/src/query-pagination-next/block.json +0 -1
  328. package/src/query-pagination-numbers/block.json +0 -1
  329. package/src/query-pagination-previous/block.json +0 -1
  330. package/src/query-title/block.json +0 -1
  331. package/src/read-more/block.json +0 -1
  332. package/src/rss/block.json +0 -1
  333. package/src/search/block.json +0 -1
  334. package/src/site-logo/block.json +0 -1
  335. package/src/site-logo/editor.scss +3 -3
  336. package/src/site-tagline/block.json +1 -1
  337. package/src/site-title/block.json +0 -1
  338. package/src/social-link/block.json +0 -1
  339. package/src/social-links/edit.js +1 -0
  340. package/src/tag-cloud/block.json +0 -1
  341. package/src/template-part/block.json +0 -1
  342. package/src/template-part/edit/import-controls.js +26 -34
  343. package/src/template-part/edit/utils/transformers.js +96 -19
  344. package/src/term-description/block.json +0 -1
@@ -129,4 +129,8 @@
129
129
 
130
130
  .wp-block-page-list .components-notice {
131
131
  margin-right: 0;
132
+ }
133
+
134
+ .wp-block-page-list__loading-indicator-container {
135
+ padding: 8px 12px;
132
136
  }
@@ -129,4 +129,8 @@
129
129
 
130
130
  .wp-block-page-list .components-notice {
131
131
  margin-left: 0;
132
+ }
133
+
134
+ .wp-block-page-list__loading-indicator-container {
135
+ padding: 8px 12px;
132
136
  }
@@ -127,6 +127,7 @@
127
127
  position: sticky;
128
128
  top: 0;
129
129
  padding: 16px 0;
130
+ margin-bottom: 2px;
130
131
  z-index: 2;
131
132
  }
132
133
 
@@ -127,6 +127,7 @@
127
127
  position: sticky;
128
128
  top: 0;
129
129
  padding: 16px 0;
130
+ margin-bottom: 2px;
130
131
  z-index: 2;
131
132
  }
132
133
 
@@ -112,8 +112,8 @@
112
112
  }
113
113
 
114
114
  .wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder {
115
- height: 120px;
116
- width: 120px;
115
+ height: 60px;
116
+ width: 60px;
117
117
  }
118
118
  .wp-block-site-logo.wp-block-site-logo > div,
119
119
  .wp-block-site-logo.wp-block-site-logo .components-resizable-box__container {
@@ -112,8 +112,8 @@
112
112
  }
113
113
 
114
114
  .wp-block-site-logo.wp-block-site-logo.is-default-size .components-placeholder {
115
- height: 120px;
116
- width: 120px;
115
+ height: 60px;
116
+ width: 60px;
117
117
  }
118
118
  .wp-block-site-logo.wp-block-site-logo > div,
119
119
  .wp-block-site-logo.wp-block-site-logo .components-resizable-box__container {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "8.3.5",
3
+ "version": "8.3.7",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -35,9 +35,9 @@
35
35
  "@wordpress/api-fetch": "^6.23.1",
36
36
  "@wordpress/autop": "^3.26.1",
37
37
  "@wordpress/blob": "^3.26.1",
38
- "@wordpress/block-editor": "^11.3.5",
38
+ "@wordpress/block-editor": "^11.3.7",
39
39
  "@wordpress/blocks": "^12.3.3",
40
- "@wordpress/components": "^23.3.4",
40
+ "@wordpress/components": "^23.3.5",
41
41
  "@wordpress/compose": "^6.3.3",
42
42
  "@wordpress/core-data": "^6.3.3",
43
43
  "@wordpress/data": "^8.3.3",
@@ -54,9 +54,9 @@
54
54
  "@wordpress/notices": "^3.26.3",
55
55
  "@wordpress/primitives": "^3.24.2",
56
56
  "@wordpress/private-apis": "^0.8.1",
57
- "@wordpress/reusable-blocks": "^4.3.5",
57
+ "@wordpress/reusable-blocks": "^4.3.7",
58
58
  "@wordpress/rich-text": "^6.3.3",
59
- "@wordpress/server-side-render": "^4.3.4",
59
+ "@wordpress/server-side-render": "^4.3.5",
60
60
  "@wordpress/url": "^3.27.1",
61
61
  "@wordpress/viewport": "^5.3.3",
62
62
  "change-case": "^4.1.2",
@@ -77,5 +77,5 @@
77
77
  "publishConfig": {
78
78
  "access": "public"
79
79
  },
80
- "gitHead": "1e2b2f680c6378f789d6660bc04b30e35e3a33a3"
80
+ "gitHead": "d14fea64bd9ad9d2d86047936974dbed39a5b5b3"
81
81
  }
@@ -26,7 +26,6 @@
26
26
  },
27
27
  "supports": {
28
28
  "align": true,
29
- "anchor": true,
30
29
  "html": false,
31
30
  "spacing": {
32
31
  "margin": true,
@@ -25,7 +25,6 @@
25
25
  },
26
26
  "usesContext": [ "postType", "postId", "commentId" ],
27
27
  "supports": {
28
- "anchor": true,
29
28
  "html": false,
30
29
  "align": true,
31
30
  "alignWide": false,
@@ -17,7 +17,6 @@
17
17
  },
18
18
  "supports": {
19
19
  "align": true,
20
- "anchor": true,
21
20
  "color": {
22
21
  "link": true,
23
22
  "__experimentalSkipSerialization": [ "text", "background" ],
@@ -30,7 +30,6 @@
30
30
  },
31
31
  "supports": {
32
32
  "align": true,
33
- "anchor": true,
34
33
  "html": false,
35
34
  "spacing": {
36
35
  "margin": true,
@@ -20,7 +20,6 @@
20
20
  },
21
21
  "usesContext": [ "commentId" ],
22
22
  "supports": {
23
- "anchor": true,
24
23
  "html": false,
25
24
  "inserter": false,
26
25
  "__experimentalBorder": {
@@ -22,7 +22,6 @@
22
22
  },
23
23
  "usesContext": [ "commentId" ],
24
24
  "supports": {
25
- "anchor": true,
26
25
  "html": false,
27
26
  "spacing": {
28
27
  "margin": true,
@@ -14,7 +14,6 @@
14
14
  }
15
15
  },
16
16
  "supports": {
17
- "anchor": true,
18
17
  "color": {
19
18
  "gradients": true,
20
19
  "link": true,
@@ -18,7 +18,6 @@
18
18
  },
19
19
  "usesContext": [ "commentId" ],
20
20
  "supports": {
21
- "anchor": true,
22
21
  "html": false,
23
22
  "color": {
24
23
  "gradients": true,
@@ -18,7 +18,6 @@
18
18
  }
19
19
  },
20
20
  "supports": {
21
- "anchor": true,
22
21
  "html": false,
23
22
  "color": {
24
23
  "link": true,
@@ -14,7 +14,6 @@
14
14
  }
15
15
  },
16
16
  "supports": {
17
- "anchor": true,
18
17
  "color": {
19
18
  "gradients": true,
20
19
  "link": true,
@@ -10,7 +10,6 @@
10
10
  "usesContext": [ "postId" ],
11
11
  "supports": {
12
12
  "align": true,
13
- "anchor": true,
14
13
  "html": false,
15
14
  "reusable": false,
16
15
  "spacing": {
@@ -18,8 +18,6 @@
18
18
  },
19
19
  "supports": {
20
20
  "align": [ "wide", "full" ],
21
- "anchor": true,
22
- "html": false,
23
21
  "color": {
24
22
  "gradients": true,
25
23
  "link": true,
@@ -29,6 +27,7 @@
29
27
  "link": true
30
28
  }
31
29
  },
30
+ "html": false,
32
31
  "spacing": {
33
32
  "margin": true,
34
33
  "padding": true
@@ -17,7 +17,6 @@
17
17
  "comments/paginationArrow": "paginationArrow"
18
18
  },
19
19
  "supports": {
20
- "anchor": true,
21
20
  "align": true,
22
21
  "reusable": false,
23
22
  "html": false,
@@ -14,7 +14,6 @@
14
14
  },
15
15
  "usesContext": [ "postId", "comments/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": [ "postId" ],
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": [ "postId", "comments/paginationArrow" ],
16
16
  "supports": {
17
- "anchor": true,
18
17
  "reusable": false,
19
18
  "html": false,
20
19
  "color": {
@@ -22,7 +22,6 @@
22
22
  "style"
23
23
  ],
24
24
  "supports": {
25
- "anchor": true,
26
25
  "reusable": false,
27
26
  "html": false,
28
27
  "typography": {
@@ -29,7 +29,6 @@
29
29
  },
30
30
  "supports": {
31
31
  "align": true,
32
- "anchor": true,
33
32
  "html": false,
34
33
  "spacing": {
35
34
  "margin": true,
@@ -84,7 +84,6 @@
84
84
  },
85
85
  "supports": {
86
86
  "align": true,
87
- "anchor": true,
88
87
  "html": false,
89
88
  "color": {
90
89
  "gradients": true,
@@ -112,7 +112,8 @@ export default function useOutdentListItem( clientId ) {
112
112
  getBlockIndex( parentListItemId ) + 1
113
113
  );
114
114
  if ( ! getBlockOrder( parentListId ).length ) {
115
- removeBlock( parentListId );
115
+ const shouldSelectParent = false;
116
+ removeBlock( parentListId, shouldSelectParent );
116
117
  }
117
118
  } );
118
119
  }, [] ),
@@ -18,7 +18,6 @@
18
18
  }
19
19
  },
20
20
  "supports": {
21
- "anchor": true,
22
21
  "className": true,
23
22
  "typography": {
24
23
  "fontSize": false
@@ -92,7 +92,6 @@
92
92
  },
93
93
  "supports": {
94
94
  "align": [ "wide", "full" ],
95
- "anchor": true,
96
95
  "html": false,
97
96
  "inserter": true,
98
97
  "typography": {
@@ -850,7 +850,9 @@ function Navigation( {
850
850
 
851
851
  { isLoading && (
852
852
  <TagName { ...blockProps }>
853
- <Spinner className="wp-block-navigation__loading-indicator" />
853
+ <div className="wp-block-navigation__loading-indicator-container">
854
+ <Spinner className="wp-block-navigation__loading-indicator" />
855
+ </div>
854
856
  </TagName>
855
857
  ) }
856
858
 
@@ -29,6 +29,9 @@ const ALLOWED_BLOCKS = [
29
29
 
30
30
  const DEFAULT_BLOCK = {
31
31
  name: 'core/navigation-link',
32
+ attributes: {
33
+ type: 'page',
34
+ },
32
35
  };
33
36
 
34
37
  export default function NavigationInnerBlocks( {
@@ -89,9 +89,7 @@ const MenuInspectorControls = ( props ) => {
89
89
 
90
90
  return (
91
91
  <InspectorControls group="list">
92
- <PanelBody
93
- title={ process.env.IS_GUTENBERG_PLUGIN ? null : __( 'Menu' ) }
94
- >
92
+ <PanelBody title={ null }>
95
93
  <HStack className="wp-block-navigation-off-canvas-editor__header">
96
94
  <Heading
97
95
  className="wp-block-navigation-off-canvas-editor__title"
@@ -39,8 +39,7 @@
39
39
  }
40
40
 
41
41
  // Only show the flyout on hover if the parent menu item is selected.
42
- .wp-block-navigation:not(.is-selected):not(.has-child-selected)
43
- .has-child:hover {
42
+ .wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover {
44
43
  > .wp-block-navigation__submenu-container {
45
44
  opacity: 0;
46
45
  visibility: hidden;
@@ -49,6 +48,7 @@
49
48
 
50
49
  // Styles for submenu flyout.
51
50
  .has-child {
51
+
52
52
  &.is-selected,
53
53
  &.has-child-selected {
54
54
  > .wp-block-navigation__submenu-container {
@@ -76,8 +76,7 @@
76
76
  flex-direction: column;
77
77
  }
78
78
 
79
- .is-dragging-components-draggable
80
- .wp-block-navigation-link > .wp-block-navigation__container {
79
+ .is-dragging-components-draggable .wp-block-navigation-link > .wp-block-navigation__container {
81
80
  // Set opacity to 1 to still be able to show the draggable chip.
82
81
  opacity: 1;
83
82
  visibility: hidden;
@@ -117,6 +116,7 @@
117
116
  */
118
117
 
119
118
  $colors-selector-size: 22px;
119
+
120
120
  .block-library-colors-selector {
121
121
  width: auto;
122
122
 
@@ -151,7 +151,7 @@ $colors-selector-size: 22px;
151
151
  min-width: $colors-selector-size;
152
152
  height: $colors-selector-size;
153
153
  min-height: $colors-selector-size;
154
- line-height: ( $colors-selector-size - 2 );
154
+ line-height: ($colors-selector-size - 2);
155
155
  padding: 2px;
156
156
 
157
157
  > svg {
@@ -161,6 +161,7 @@ $colors-selector-size: 22px;
161
161
 
162
162
  // Styling icon color.
163
163
  &.has-text-color {
164
+
164
165
  > svg,
165
166
  > svg path {
166
167
  color: inherit;
@@ -171,6 +172,7 @@ $colors-selector-size: 22px;
171
172
 
172
173
  // Colors Selector Popover.
173
174
  $color-control-label-height: 20px;
175
+
174
176
  .block-library-colors-selector__popover {
175
177
  .color-palette-controller-container {
176
178
  padding: 16px;
@@ -222,13 +224,16 @@ $color-control-label-height: 20px;
222
224
  0% {
223
225
  opacity: 1;
224
226
  }
227
+
225
228
  50% {
226
229
  opacity: 0.5;
227
230
  }
231
+
228
232
  100% {
229
233
  opacity: 1;
230
234
  }
231
235
  }
236
+
232
237
  // Unstyle some inherited placeholder component styles.
233
238
  .components-placeholder.wp-block-navigation-placeholder {
234
239
  outline: none;
@@ -271,6 +276,7 @@ $color-control-label-height: 20px;
271
276
  // against any background color.
272
277
  color: currentColor;
273
278
  background: transparent;
279
+
274
280
  &::before {
275
281
  content: "";
276
282
  display: block;
@@ -338,6 +344,7 @@ $color-control-label-height: 20px;
338
344
  // Hide the navigation indicator when in small contexts.
339
345
  .is-small &,
340
346
  .is-medium & {
347
+
341
348
  .wp-block-navigation-placeholder__actions__indicator,
342
349
  .wp-block-navigation-placeholder__actions__indicator + hr {
343
350
  display: none;
@@ -427,15 +434,14 @@ $color-control-label-height: 20px;
427
434
  }
428
435
  }
429
436
  }
437
+
430
438
  // Emulate the fullscreen editing inside the editor.
431
439
  // Most of this can be removed when the iframe lands.
432
440
 
433
441
  // When not fullscreen.
434
442
  .wp-block-navigation__responsive-container.is-menu-open {
435
443
  position: fixed;
436
- top:
437
- $admin-bar-height-big + $header-height + $block-toolbar-height +
438
- $border-width;
444
+ top: $admin-bar-height-big + $header-height + $block-toolbar-height + $border-width;
439
445
 
440
446
  @include break-medium() {
441
447
  top: $admin-bar-height + $header-height + $border-width;
@@ -445,6 +451,7 @@ $color-control-label-height: 20px;
445
451
  @include break-medium() {
446
452
  left: $admin-sidebar-width-collapsed;
447
453
  }
454
+
448
455
  @include break-large() {
449
456
  left: $admin-sidebar-width;
450
457
  }
@@ -452,17 +459,13 @@ $color-control-label-height: 20px;
452
459
 
453
460
  .has-fixed-toolbar .wp-block-navigation__responsive-container.is-menu-open {
454
461
  @include break-medium() {
455
- top:
456
- $admin-bar-height + $header-height + $block-toolbar-height +
457
- $border-width;
462
+ top: $admin-bar-height + $header-height + $block-toolbar-height + $border-width;
458
463
  }
459
464
  }
460
465
 
461
466
  .is-mobile-preview .wp-block-navigation__responsive-container.is-menu-open,
462
467
  .is-tablet-preview .wp-block-navigation__responsive-container.is-menu-open {
463
- top:
464
- $admin-bar-height + $header-height + $block-toolbar-height +
465
- $border-width;
468
+ top: $admin-bar-height + $header-height + $block-toolbar-height + $border-width;
466
469
  }
467
470
 
468
471
  .is-sidebar-opened .wp-block-navigation__responsive-container.is-menu-open {
@@ -473,9 +476,7 @@ $color-control-label-height: 20px;
473
476
  .is-fullscreen-mode {
474
477
  .wp-block-navigation__responsive-container.is-menu-open {
475
478
  left: 0; // Unset the value from non fullscreen mode.
476
- top:
477
- $admin-bar-height-big + $header-height + $block-toolbar-height +
478
- $border-width;
479
+ top: $admin-bar-height-big + $header-height + $block-toolbar-height + $border-width;
479
480
 
480
481
  @include break-medium() {
481
482
  top: $header-height + $border-width;
@@ -495,8 +496,7 @@ $color-control-label-height: 20px;
495
496
  }
496
497
 
497
498
  // The iframe makes these rules a lot simpler.
498
- body.editor-styles-wrapper
499
- .wp-block-navigation__responsive-container.is-menu-open {
499
+ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open {
500
500
  top: 0;
501
501
  right: 0;
502
502
  bottom: 0;
@@ -536,6 +536,7 @@ body.editor-styles-wrapper
536
536
  .components-heading.wp-block-navigation-off-canvas-editor__title {
537
537
  margin: 0;
538
538
  }
539
+
539
540
  .wp-block-navigation-off-canvas-editor__header {
540
541
  margin-bottom: $grid-unit-10;
541
542
  }
@@ -552,6 +553,7 @@ body.editor-styles-wrapper
552
553
  0% {
553
554
  opacity: 0;
554
555
  }
556
+
555
557
  100% {
556
558
  opacity: 1;
557
559
  }
@@ -559,7 +561,7 @@ body.editor-styles-wrapper
559
561
 
560
562
  // Space spinner to give it breathing
561
563
  // room when block is selected and has focus outline.
562
- .wp-block-navigation .components-spinner {
564
+ .wp-block-navigation__loading-indicator-container {
563
565
  padding: $grid-unit-10 $grid-unit-15;
564
566
  }
565
567
 
@@ -571,6 +573,7 @@ body.editor-styles-wrapper
571
573
  0% {
572
574
  opacity: 1;
573
575
  }
576
+
574
577
  100% {
575
578
  opacity: 0.5;
576
579
  }
@@ -373,12 +373,14 @@ function block_core_navigation_get_most_recently_published_navigation() {
373
373
 
374
374
  // Default to the most recently created menu.
375
375
  $parsed_args = array(
376
- 'post_type' => 'wp_navigation',
377
- 'no_found_rows' => true,
378
- 'order' => 'DESC',
379
- 'orderby' => 'date',
380
- 'post_status' => 'publish',
381
- 'posts_per_page' => 1, // get only the most recent.
376
+ 'post_type' => 'wp_navigation',
377
+ 'no_found_rows' => true,
378
+ 'update_post_meta_cache' => false,
379
+ 'update_post_term_cache' => false,
380
+ 'order' => 'DESC',
381
+ 'orderby' => 'date',
382
+ 'post_status' => 'publish',
383
+ 'posts_per_page' => 1, // get only the most recent.
382
384
  );
383
385
 
384
386
  $navigation_post = new WP_Query( $parsed_args );
@@ -225,15 +225,6 @@ export default function NavigationLinkEdit( {
225
225
  [ clientId ]
226
226
  );
227
227
 
228
- useEffect( () => {
229
- // This side-effect should not create an undo level as those should
230
- // only be created via user interactions. Mark this change as
231
- // not persistent to avoid undo level creation.
232
- // See https://github.com/WordPress/gutenberg/issues/34564.
233
- __unstableMarkNextChangeAsNotPersistent();
234
- setAttributes( { isTopLevelLink } );
235
- }, [ isTopLevelLink ] );
236
-
237
228
  /**
238
229
  * Transform to submenu block.
239
230
  */
@@ -315,17 +306,12 @@ export default function NavigationLinkEdit( {
315
306
  */
316
307
  function removeLink() {
317
308
  // Reset all attributes that comprise the link.
318
- // It is critical that all attributes are reset
319
- // to their default values otherwise this may
320
- // in advertently trigger side effects because
321
- // the values will have "changed".
322
309
  setAttributes( {
323
- url: undefined,
324
- label: undefined,
325
- id: undefined,
326
- kind: undefined,
327
- type: undefined,
328
- opensInNewTab: false,
310
+ url: '',
311
+ label: '',
312
+ id: '',
313
+ kind: '',
314
+ type: '',
329
315
  } );
330
316
 
331
317
  // Close the link editing UI.
@@ -9,18 +9,17 @@
9
9
  * Build an array with CSS classes and inline styles defining the colors
10
10
  * which will be applied to the navigation markup in the front-end.
11
11
  *
12
- * @param array $context Navigation block context.
13
- * @param array $attributes Block attributes.
12
+ * @param array $context Navigation block context.
13
+ * @param array $attributes Block attributes.
14
+ * @param bool $is_sub_menu Whether the link is part of a sub-menu.
14
15
  * @return array Colors CSS classes and inline styles.
15
16
  */
16
- function block_core_navigation_link_build_css_colors( $context, $attributes ) {
17
+ function block_core_navigation_link_build_css_colors( $context, $attributes, $is_sub_menu = false ) {
17
18
  $colors = array(
18
19
  'css_classes' => array(),
19
20
  'inline_styles' => '',
20
21
  );
21
22
 
22
- $is_sub_menu = isset( $attributes['isTopLevelLink'] ) ? ( ! $attributes['isTopLevelLink'] ) : false;
23
-
24
23
  // Text color.
25
24
  $named_text_color = null;
26
25
  $custom_text_color = null;
@@ -224,16 +224,6 @@ export default function NavigationSubmenuEdit( {
224
224
  }
225
225
  }, [] );
226
226
 
227
- // Store the colors from context as attributes for rendering.
228
- useEffect( () => {
229
- // This side-effect should not create an undo level as those should
230
- // only be created via user interactions. Mark this change as
231
- // not persistent to avoid undo level creation.
232
- // See https://github.com/WordPress/gutenberg/issues/34564.
233
- __unstableMarkNextChangeAsNotPersistent();
234
- setAttributes( { isTopLevelItem } );
235
- }, [ isTopLevelItem ] );
236
-
237
227
  /**
238
228
  * The hook shouldn't be necessary but due to a focus loss happening
239
229
  * when selecting a suggestion in the link popover, we force close on block unselection.