@wordpress/block-library 9.5.0 → 9.6.1

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 (611) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/archives/edit.js +1 -0
  3. package/build/archives/edit.js.map +1 -1
  4. package/build/audio/edit.js +1 -0
  5. package/build/audio/edit.js.map +1 -1
  6. package/build/avatar/user-control.js +1 -0
  7. package/build/avatar/user-control.js.map +1 -1
  8. package/build/button/edit.js +1 -0
  9. package/build/button/edit.js.map +1 -1
  10. package/build/comment-author-name/index.js +14 -1
  11. package/build/comment-author-name/index.js.map +1 -1
  12. package/build/comment-content/index.js +14 -1
  13. package/build/comment-content/index.js.map +1 -1
  14. package/build/comment-date/index.js +14 -1
  15. package/build/comment-date/index.js.map +1 -1
  16. package/build/comments-pagination/comments-pagination-arrow-controls.js +1 -0
  17. package/build/comments-pagination/comments-pagination-arrow-controls.js.map +1 -1
  18. package/build/cover/edit/inspector-controls.js +0 -1
  19. package/build/cover/edit/inspector-controls.js.map +1 -1
  20. package/build/embed/edit.js +12 -4
  21. package/build/embed/edit.js.map +1 -1
  22. package/build/embed/embed-placeholder.js +6 -3
  23. package/build/embed/embed-placeholder.js.map +1 -1
  24. package/build/embed/embed-preview.js +4 -18
  25. package/build/embed/embed-preview.js.map +1 -1
  26. package/build/file/index.js +12 -0
  27. package/build/file/index.js.map +1 -1
  28. package/build/file/inspector.js +1 -0
  29. package/build/file/inspector.js.map +1 -1
  30. package/build/form/edit.js +2 -0
  31. package/build/form/edit.js.map +1 -1
  32. package/build/form-input/edit.js +1 -0
  33. package/build/form-input/edit.js.map +1 -1
  34. package/build/gallery/edit.js +2 -6
  35. package/build/gallery/edit.js.map +1 -1
  36. package/build/gallery/gallery.native.js +4 -1
  37. package/build/gallery/gallery.native.js.map +1 -1
  38. package/build/group/edit.js +1 -1
  39. package/build/group/edit.js.map +1 -1
  40. package/build/image/image.js +6 -1
  41. package/build/image/image.js.map +1 -1
  42. package/build/image/transforms.js +4 -0
  43. package/build/image/transforms.js.map +1 -1
  44. package/build/latest-posts/edit.js +37 -11
  45. package/build/latest-posts/edit.js.map +1 -1
  46. package/build/list/index.js +9 -0
  47. package/build/list/index.js.map +1 -1
  48. package/build/list-item/index.js +8 -1
  49. package/build/list-item/index.js.map +1 -1
  50. package/build/media-text/edit.js +0 -1
  51. package/build/media-text/edit.js.map +1 -1
  52. package/build/missing/edit.js +10 -19
  53. package/build/missing/edit.js.map +1 -1
  54. package/build/navigation/edit/index.js +3 -4
  55. package/build/navigation/edit/index.js.map +1 -1
  56. package/build/navigation/edit/navigation-menu-name-control.js +1 -0
  57. package/build/navigation/edit/navigation-menu-name-control.js.map +1 -1
  58. package/build/navigation/edit/overlay-menu-preview.js +2 -0
  59. package/build/navigation/edit/overlay-menu-preview.js.map +1 -1
  60. package/build/post-author/edit.js +60 -53
  61. package/build/post-author/edit.js.map +1 -1
  62. package/build/post-author/index.js +13 -0
  63. package/build/post-author/index.js.map +1 -1
  64. package/build/post-author-biography/index.js +14 -1
  65. package/build/post-author-biography/index.js.map +1 -1
  66. package/build/post-author-name/index.js +14 -1
  67. package/build/post-author-name/index.js.map +1 -1
  68. package/build/post-comment/edit.js +2 -0
  69. package/build/post-comment/edit.js.map +1 -1
  70. package/build/post-excerpt/edit.js +1 -0
  71. package/build/post-excerpt/edit.js.map +1 -1
  72. package/build/post-featured-image/dimension-controls.js +9 -2
  73. package/build/post-featured-image/dimension-controls.js.map +1 -1
  74. package/build/post-featured-image/edit.js +1 -0
  75. package/build/post-featured-image/edit.js.map +1 -1
  76. package/build/post-navigation-link/edit.js +5 -2
  77. package/build/post-navigation-link/edit.js.map +1 -1
  78. package/build/post-terms/edit.js +1 -0
  79. package/build/post-terms/edit.js.map +1 -1
  80. package/build/post-title/edit.js +1 -0
  81. package/build/post-title/edit.js.map +1 -1
  82. package/build/preformatted/index.js +12 -0
  83. package/build/preformatted/index.js.map +1 -1
  84. package/build/query/edit/inspector-controls/parent-control.js +1 -0
  85. package/build/query/edit/inspector-controls/parent-control.js.map +1 -1
  86. package/build/query/edit/query-content.js +1 -1
  87. package/build/query/edit/query-content.js.map +1 -1
  88. package/build/query-pagination/query-pagination-arrow-controls.js +1 -0
  89. package/build/query-pagination/query-pagination-arrow-controls.js.map +1 -1
  90. package/build/query-pagination-numbers/edit.js +1 -0
  91. package/build/query-pagination-numbers/edit.js.map +1 -1
  92. package/build/query-title/index.js +12 -0
  93. package/build/query-title/index.js.map +1 -1
  94. package/build/quote/index.js +1 -0
  95. package/build/quote/index.js.map +1 -1
  96. package/build/quote/transforms.js +4 -0
  97. package/build/quote/transforms.js.map +1 -1
  98. package/build/search/edit.js +9 -5
  99. package/build/search/edit.js.map +1 -1
  100. package/build/social-link/edit.js +2 -0
  101. package/build/social-link/edit.js.map +1 -1
  102. package/build/table/edit.js +6 -5
  103. package/build/table/edit.js.map +1 -1
  104. package/build/tag-cloud/edit.js +44 -33
  105. package/build/tag-cloud/edit.js.map +1 -1
  106. package/build/tag-cloud/index.js +12 -0
  107. package/build/tag-cloud/index.js.map +1 -1
  108. package/build/template-part/edit/advanced-controls.js +2 -0
  109. package/build/template-part/edit/advanced-controls.js.map +1 -1
  110. package/build/video/edit-common-settings.js +1 -0
  111. package/build/video/edit-common-settings.js.map +1 -1
  112. package/build/video/edit.js +1 -1
  113. package/build/video/edit.js.map +1 -1
  114. package/build/video/tracks-editor.js +3 -0
  115. package/build/video/tracks-editor.js.map +1 -1
  116. package/build/video/transforms.js +4 -0
  117. package/build/video/transforms.js.map +1 -1
  118. package/build-module/archives/edit.js +1 -0
  119. package/build-module/archives/edit.js.map +1 -1
  120. package/build-module/audio/edit.js +1 -0
  121. package/build-module/audio/edit.js.map +1 -1
  122. package/build-module/avatar/user-control.js +1 -0
  123. package/build-module/avatar/user-control.js.map +1 -1
  124. package/build-module/button/edit.js +1 -0
  125. package/build-module/button/edit.js.map +1 -1
  126. package/build-module/comment-author-name/index.js +14 -1
  127. package/build-module/comment-author-name/index.js.map +1 -1
  128. package/build-module/comment-content/index.js +14 -1
  129. package/build-module/comment-content/index.js.map +1 -1
  130. package/build-module/comment-date/index.js +14 -1
  131. package/build-module/comment-date/index.js.map +1 -1
  132. package/build-module/comments-pagination/comments-pagination-arrow-controls.js +1 -0
  133. package/build-module/comments-pagination/comments-pagination-arrow-controls.js.map +1 -1
  134. package/build-module/cover/edit/inspector-controls.js +0 -1
  135. package/build-module/cover/edit/inspector-controls.js.map +1 -1
  136. package/build-module/embed/edit.js +13 -5
  137. package/build-module/embed/edit.js.map +1 -1
  138. package/build-module/embed/embed-placeholder.js +7 -4
  139. package/build-module/embed/embed-placeholder.js.map +1 -1
  140. package/build-module/embed/embed-preview.js +5 -19
  141. package/build-module/embed/embed-preview.js.map +1 -1
  142. package/build-module/file/index.js +12 -0
  143. package/build-module/file/index.js.map +1 -1
  144. package/build-module/file/inspector.js +1 -0
  145. package/build-module/file/inspector.js.map +1 -1
  146. package/build-module/form/edit.js +2 -0
  147. package/build-module/form/edit.js.map +1 -1
  148. package/build-module/form-input/edit.js +1 -0
  149. package/build-module/form-input/edit.js.map +1 -1
  150. package/build-module/gallery/edit.js +3 -7
  151. package/build-module/gallery/edit.js.map +1 -1
  152. package/build-module/gallery/gallery.native.js +4 -1
  153. package/build-module/gallery/gallery.native.js.map +1 -1
  154. package/build-module/group/edit.js +1 -1
  155. package/build-module/group/edit.js.map +1 -1
  156. package/build-module/image/image.js +7 -2
  157. package/build-module/image/image.js.map +1 -1
  158. package/build-module/image/transforms.js +5 -1
  159. package/build-module/image/transforms.js.map +1 -1
  160. package/build-module/latest-posts/edit.js +40 -14
  161. package/build-module/latest-posts/edit.js.map +1 -1
  162. package/build-module/list/index.js +9 -0
  163. package/build-module/list/index.js.map +1 -1
  164. package/build-module/list-item/index.js +8 -1
  165. package/build-module/list-item/index.js.map +1 -1
  166. package/build-module/media-text/edit.js +0 -1
  167. package/build-module/media-text/edit.js.map +1 -1
  168. package/build-module/missing/edit.js +10 -19
  169. package/build-module/missing/edit.js.map +1 -1
  170. package/build-module/navigation/edit/index.js +3 -4
  171. package/build-module/navigation/edit/index.js.map +1 -1
  172. package/build-module/navigation/edit/navigation-menu-name-control.js +1 -0
  173. package/build-module/navigation/edit/navigation-menu-name-control.js.map +1 -1
  174. package/build-module/navigation/edit/overlay-menu-preview.js +2 -0
  175. package/build-module/navigation/edit/overlay-menu-preview.js.map +1 -1
  176. package/build-module/post-author/edit.js +61 -54
  177. package/build-module/post-author/edit.js.map +1 -1
  178. package/build-module/post-author/index.js +13 -0
  179. package/build-module/post-author/index.js.map +1 -1
  180. package/build-module/post-author-biography/index.js +14 -1
  181. package/build-module/post-author-biography/index.js.map +1 -1
  182. package/build-module/post-author-name/index.js +14 -1
  183. package/build-module/post-author-name/index.js.map +1 -1
  184. package/build-module/post-comment/edit.js +2 -0
  185. package/build-module/post-comment/edit.js.map +1 -1
  186. package/build-module/post-excerpt/edit.js +1 -0
  187. package/build-module/post-excerpt/edit.js.map +1 -1
  188. package/build-module/post-featured-image/dimension-controls.js +9 -2
  189. package/build-module/post-featured-image/dimension-controls.js.map +1 -1
  190. package/build-module/post-featured-image/edit.js +1 -0
  191. package/build-module/post-featured-image/edit.js.map +1 -1
  192. package/build-module/post-navigation-link/edit.js +5 -2
  193. package/build-module/post-navigation-link/edit.js.map +1 -1
  194. package/build-module/post-terms/edit.js +1 -0
  195. package/build-module/post-terms/edit.js.map +1 -1
  196. package/build-module/post-title/edit.js +1 -0
  197. package/build-module/post-title/edit.js.map +1 -1
  198. package/build-module/preformatted/index.js +12 -0
  199. package/build-module/preformatted/index.js.map +1 -1
  200. package/build-module/query/edit/inspector-controls/parent-control.js +1 -0
  201. package/build-module/query/edit/inspector-controls/parent-control.js.map +1 -1
  202. package/build-module/query/edit/query-content.js +1 -1
  203. package/build-module/query/edit/query-content.js.map +1 -1
  204. package/build-module/query-pagination/query-pagination-arrow-controls.js +1 -0
  205. package/build-module/query-pagination/query-pagination-arrow-controls.js.map +1 -1
  206. package/build-module/query-pagination-numbers/edit.js +1 -0
  207. package/build-module/query-pagination-numbers/edit.js.map +1 -1
  208. package/build-module/query-title/index.js +12 -0
  209. package/build-module/query-title/index.js.map +1 -1
  210. package/build-module/quote/index.js +1 -0
  211. package/build-module/quote/index.js.map +1 -1
  212. package/build-module/quote/transforms.js +4 -0
  213. package/build-module/quote/transforms.js.map +1 -1
  214. package/build-module/search/edit.js +10 -6
  215. package/build-module/search/edit.js.map +1 -1
  216. package/build-module/social-link/edit.js +2 -0
  217. package/build-module/social-link/edit.js.map +1 -1
  218. package/build-module/table/edit.js +6 -5
  219. package/build-module/table/edit.js.map +1 -1
  220. package/build-module/tag-cloud/edit.js +45 -34
  221. package/build-module/tag-cloud/edit.js.map +1 -1
  222. package/build-module/tag-cloud/index.js +12 -0
  223. package/build-module/tag-cloud/index.js.map +1 -1
  224. package/build-module/template-part/edit/advanced-controls.js +2 -0
  225. package/build-module/template-part/edit/advanced-controls.js.map +1 -1
  226. package/build-module/video/edit-common-settings.js +1 -0
  227. package/build-module/video/edit-common-settings.js.map +1 -1
  228. package/build-module/video/edit.js +1 -1
  229. package/build-module/video/edit.js.map +1 -1
  230. package/build-module/video/tracks-editor.js +3 -0
  231. package/build-module/video/tracks-editor.js.map +1 -1
  232. package/build-module/video/transforms.js +5 -1
  233. package/build-module/video/transforms.js.map +1 -1
  234. package/build-style/archives/editor-rtl.css +2 -2
  235. package/build-style/archives/editor.css +2 -2
  236. package/build-style/archives/style-rtl.css +2 -2
  237. package/build-style/archives/style.css +2 -2
  238. package/build-style/audio/editor-rtl.css +2 -2
  239. package/build-style/audio/editor.css +2 -2
  240. package/build-style/audio/style-rtl.css +2 -2
  241. package/build-style/audio/style.css +2 -2
  242. package/build-style/audio/theme-rtl.css +2 -2
  243. package/build-style/audio/theme.css +2 -2
  244. package/build-style/avatar/editor-rtl.css +2 -2
  245. package/build-style/avatar/editor.css +2 -2
  246. package/build-style/avatar/style-rtl.css +2 -2
  247. package/build-style/avatar/style.css +2 -2
  248. package/build-style/button/editor-rtl.css +2 -2
  249. package/build-style/button/editor.css +2 -2
  250. package/build-style/button/style-rtl.css +2 -2
  251. package/build-style/button/style.css +2 -2
  252. package/build-style/buttons/editor-rtl.css +2 -2
  253. package/build-style/buttons/editor.css +2 -2
  254. package/build-style/buttons/style-rtl.css +2 -2
  255. package/build-style/buttons/style.css +2 -2
  256. package/build-style/calendar/style-rtl.css +2 -2
  257. package/build-style/calendar/style.css +2 -2
  258. package/build-style/categories/editor-rtl.css +2 -2
  259. package/build-style/categories/editor.css +2 -2
  260. package/build-style/categories/style-rtl.css +2 -2
  261. package/build-style/categories/style.css +2 -2
  262. package/build-style/classic-rtl.css +2 -2
  263. package/build-style/classic.css +2 -2
  264. package/build-style/code/editor-rtl.css +2 -2
  265. package/build-style/code/editor.css +2 -2
  266. package/build-style/code/style-rtl.css +2 -2
  267. package/build-style/code/style.css +2 -2
  268. package/build-style/code/theme-rtl.css +2 -2
  269. package/build-style/code/theme.css +2 -2
  270. package/build-style/columns/editor-rtl.css +2 -2
  271. package/build-style/columns/editor.css +2 -2
  272. package/build-style/columns/style-rtl.css +2 -2
  273. package/build-style/columns/style.css +2 -2
  274. package/build-style/comment-author-avatar/editor-rtl.css +2 -2
  275. package/build-style/comment-author-avatar/editor.css +2 -2
  276. package/build-style/comment-author-name/style-rtl.css +94 -0
  277. package/build-style/comment-author-name/style.css +94 -0
  278. package/build-style/comment-content/style-rtl.css +6 -2
  279. package/build-style/comment-content/style.css +6 -2
  280. package/build-style/comment-date/style-rtl.css +94 -0
  281. package/build-style/comment-date/style.css +94 -0
  282. package/build-style/comment-template/style-rtl.css +2 -2
  283. package/build-style/comment-template/style.css +2 -2
  284. package/build-style/comments/editor-rtl.css +2 -2
  285. package/build-style/comments/editor.css +2 -2
  286. package/build-style/comments/style-rtl.css +2 -2
  287. package/build-style/comments/style.css +2 -2
  288. package/build-style/comments-pagination/editor-rtl.css +2 -2
  289. package/build-style/comments-pagination/editor.css +2 -2
  290. package/build-style/comments-pagination/style-rtl.css +2 -2
  291. package/build-style/comments-pagination/style.css +2 -2
  292. package/build-style/comments-pagination-numbers/editor-rtl.css +2 -2
  293. package/build-style/comments-pagination-numbers/editor.css +2 -2
  294. package/build-style/comments-title/editor-rtl.css +2 -2
  295. package/build-style/comments-title/editor.css +2 -2
  296. package/build-style/common-rtl.css +2 -2
  297. package/build-style/common.css +2 -2
  298. package/build-style/cover/editor-rtl.css +2 -2
  299. package/build-style/cover/editor.css +2 -2
  300. package/build-style/cover/style-rtl.css +2 -2
  301. package/build-style/cover/style.css +2 -2
  302. package/build-style/details/editor-rtl.css +2 -2
  303. package/build-style/details/editor.css +2 -2
  304. package/build-style/details/style-rtl.css +2 -2
  305. package/build-style/details/style.css +2 -2
  306. package/build-style/editor-elements-rtl.css +2 -2
  307. package/build-style/editor-elements.css +2 -2
  308. package/build-style/editor-rtl.css +31 -15
  309. package/build-style/editor.css +31 -15
  310. package/build-style/elements-rtl.css +2 -2
  311. package/build-style/elements.css +2 -2
  312. package/build-style/embed/editor-rtl.css +5 -2
  313. package/build-style/embed/editor.css +5 -2
  314. package/build-style/embed/style-rtl.css +2 -2
  315. package/build-style/embed/style.css +2 -2
  316. package/build-style/embed/theme-rtl.css +2 -2
  317. package/build-style/embed/theme.css +2 -2
  318. package/build-style/file/editor-rtl.css +2 -2
  319. package/build-style/file/editor.css +2 -2
  320. package/build-style/file/style-rtl.css +2 -2
  321. package/build-style/file/style.css +2 -2
  322. package/build-style/footnotes/style-rtl.css +2 -2
  323. package/build-style/footnotes/style.css +2 -2
  324. package/build-style/form-input/editor-rtl.css +2 -2
  325. package/build-style/form-input/editor.css +2 -2
  326. package/build-style/form-input/style-rtl.css +2 -2
  327. package/build-style/form-input/style.css +2 -2
  328. package/build-style/form-submission-notification/editor-rtl.css +2 -2
  329. package/build-style/form-submission-notification/editor.css +2 -2
  330. package/build-style/form-submit-button/style-rtl.css +2 -2
  331. package/build-style/form-submit-button/style.css +2 -2
  332. package/build-style/freeform/editor-rtl.css +2 -2
  333. package/build-style/freeform/editor.css +2 -2
  334. package/build-style/gallery/editor-rtl.css +2 -2
  335. package/build-style/gallery/editor.css +2 -2
  336. package/build-style/gallery/style-rtl.css +26 -9
  337. package/build-style/gallery/style.css +26 -9
  338. package/build-style/gallery/theme-rtl.css +2 -2
  339. package/build-style/gallery/theme.css +2 -2
  340. package/build-style/group/editor-rtl.css +2 -2
  341. package/build-style/group/editor.css +2 -2
  342. package/build-style/group/style-rtl.css +2 -2
  343. package/build-style/group/style.css +2 -2
  344. package/build-style/group/theme-rtl.css +2 -2
  345. package/build-style/group/theme.css +2 -2
  346. package/build-style/heading/style-rtl.css +2 -2
  347. package/build-style/heading/style.css +2 -2
  348. package/build-style/html/editor-rtl.css +2 -2
  349. package/build-style/html/editor.css +2 -2
  350. package/build-style/image/editor-rtl.css +2 -2
  351. package/build-style/image/editor.css +2 -2
  352. package/build-style/image/style-rtl.css +2 -2
  353. package/build-style/image/style.css +2 -2
  354. package/build-style/image/theme-rtl.css +2 -2
  355. package/build-style/image/theme.css +2 -2
  356. package/build-style/latest-comments/style-rtl.css +2 -2
  357. package/build-style/latest-comments/style.css +2 -2
  358. package/build-style/latest-posts/editor-rtl.css +9 -6
  359. package/build-style/latest-posts/editor.css +9 -6
  360. package/build-style/latest-posts/style-rtl.css +2 -2
  361. package/build-style/latest-posts/style.css +2 -2
  362. package/build-style/list/style-rtl.css +2 -2
  363. package/build-style/list/style.css +2 -2
  364. package/build-style/loginout/style-rtl.css +2 -2
  365. package/build-style/loginout/style.css +2 -2
  366. package/build-style/media-text/editor-rtl.css +2 -2
  367. package/build-style/media-text/editor.css +2 -2
  368. package/build-style/media-text/style-rtl.css +2 -2
  369. package/build-style/media-text/style.css +2 -2
  370. package/build-style/more/editor-rtl.css +2 -2
  371. package/build-style/more/editor.css +2 -2
  372. package/build-style/navigation/editor-rtl.css +6 -2
  373. package/build-style/navigation/editor.css +6 -2
  374. package/build-style/navigation/style-rtl.css +2 -2
  375. package/build-style/navigation/style.css +2 -2
  376. package/build-style/navigation-link/editor-rtl.css +2 -5
  377. package/build-style/navigation-link/editor.css +2 -5
  378. package/build-style/navigation-link/style-rtl.css +2 -2
  379. package/build-style/navigation-link/style.css +2 -2
  380. package/build-style/navigation-submenu/editor-rtl.css +2 -2
  381. package/build-style/navigation-submenu/editor.css +2 -2
  382. package/build-style/nextpage/editor-rtl.css +2 -2
  383. package/build-style/nextpage/editor.css +2 -2
  384. package/build-style/page-list/editor-rtl.css +2 -2
  385. package/build-style/page-list/editor.css +2 -2
  386. package/build-style/page-list/style-rtl.css +2 -2
  387. package/build-style/page-list/style.css +2 -2
  388. package/build-style/paragraph/editor-rtl.css +2 -2
  389. package/build-style/paragraph/editor.css +2 -2
  390. package/build-style/paragraph/style-rtl.css +2 -2
  391. package/build-style/paragraph/style.css +2 -2
  392. package/build-style/post-author/editor-rtl.css +95 -0
  393. package/build-style/post-author/editor.css +95 -0
  394. package/build-style/post-author/style-rtl.css +3 -2
  395. package/build-style/post-author/style.css +3 -2
  396. package/build-style/post-author-biography/style-rtl.css +94 -0
  397. package/build-style/post-author-biography/style.css +94 -0
  398. package/build-style/post-author-name/style-rtl.css +94 -0
  399. package/build-style/post-author-name/style.css +94 -0
  400. package/build-style/post-comments-form/editor-rtl.css +2 -2
  401. package/build-style/post-comments-form/editor.css +2 -2
  402. package/build-style/post-comments-form/style-rtl.css +2 -2
  403. package/build-style/post-comments-form/style.css +2 -2
  404. package/build-style/post-content/editor-rtl.css +2 -2
  405. package/build-style/post-content/editor.css +2 -2
  406. package/build-style/post-content/style-rtl.css +2 -2
  407. package/build-style/post-content/style.css +2 -2
  408. package/build-style/post-date/style-rtl.css +2 -2
  409. package/build-style/post-date/style.css +2 -2
  410. package/build-style/post-excerpt/editor-rtl.css +2 -2
  411. package/build-style/post-excerpt/editor.css +2 -2
  412. package/build-style/post-excerpt/style-rtl.css +2 -2
  413. package/build-style/post-excerpt/style.css +2 -2
  414. package/build-style/post-featured-image/editor-rtl.css +2 -2
  415. package/build-style/post-featured-image/editor.css +2 -2
  416. package/build-style/post-featured-image/style-rtl.css +2 -2
  417. package/build-style/post-featured-image/style.css +2 -2
  418. package/build-style/post-navigation-link/style-rtl.css +2 -2
  419. package/build-style/post-navigation-link/style.css +2 -2
  420. package/build-style/post-template/editor-rtl.css +2 -2
  421. package/build-style/post-template/editor.css +2 -2
  422. package/build-style/post-template/style-rtl.css +2 -2
  423. package/build-style/post-template/style.css +2 -2
  424. package/build-style/post-terms/style-rtl.css +2 -2
  425. package/build-style/post-terms/style.css +2 -2
  426. package/build-style/post-time-to-read/style-rtl.css +2 -2
  427. package/build-style/post-time-to-read/style.css +2 -2
  428. package/build-style/post-title/style-rtl.css +2 -2
  429. package/build-style/post-title/style.css +2 -2
  430. package/build-style/preformatted/style-rtl.css +2 -2
  431. package/build-style/preformatted/style.css +2 -2
  432. package/build-style/pullquote/editor-rtl.css +2 -2
  433. package/build-style/pullquote/editor.css +2 -2
  434. package/build-style/pullquote/style-rtl.css +2 -2
  435. package/build-style/pullquote/style.css +2 -2
  436. package/build-style/pullquote/theme-rtl.css +2 -2
  437. package/build-style/pullquote/theme.css +2 -2
  438. package/build-style/query/editor-rtl.css +2 -2
  439. package/build-style/query/editor.css +2 -2
  440. package/build-style/query-pagination/editor-rtl.css +2 -2
  441. package/build-style/query-pagination/editor.css +2 -2
  442. package/build-style/query-pagination/style-rtl.css +2 -2
  443. package/build-style/query-pagination/style.css +2 -2
  444. package/build-style/query-pagination-numbers/editor-rtl.css +2 -2
  445. package/build-style/query-pagination-numbers/editor.css +2 -2
  446. package/build-style/query-title/style-rtl.css +2 -2
  447. package/build-style/query-title/style.css +2 -2
  448. package/build-style/quote/style-rtl.css +2 -2
  449. package/build-style/quote/style.css +2 -2
  450. package/build-style/quote/theme-rtl.css +2 -2
  451. package/build-style/quote/theme.css +2 -2
  452. package/build-style/read-more/style-rtl.css +2 -2
  453. package/build-style/read-more/style.css +2 -2
  454. package/build-style/reset-rtl.css +2 -2
  455. package/build-style/reset.css +2 -2
  456. package/build-style/rss/editor-rtl.css +2 -2
  457. package/build-style/rss/editor.css +2 -2
  458. package/build-style/rss/style-rtl.css +2 -2
  459. package/build-style/rss/style.css +2 -2
  460. package/build-style/search/editor-rtl.css +5 -4
  461. package/build-style/search/editor.css +5 -4
  462. package/build-style/search/style-rtl.css +2 -2
  463. package/build-style/search/style.css +2 -2
  464. package/build-style/search/theme-rtl.css +2 -2
  465. package/build-style/search/theme.css +2 -2
  466. package/build-style/separator/editor-rtl.css +2 -2
  467. package/build-style/separator/editor.css +2 -2
  468. package/build-style/separator/style-rtl.css +2 -2
  469. package/build-style/separator/style.css +2 -2
  470. package/build-style/separator/theme-rtl.css +2 -2
  471. package/build-style/separator/theme.css +2 -2
  472. package/build-style/shortcode/editor-rtl.css +2 -2
  473. package/build-style/shortcode/editor.css +2 -2
  474. package/build-style/site-logo/editor-rtl.css +2 -2
  475. package/build-style/site-logo/editor.css +2 -2
  476. package/build-style/site-logo/style-rtl.css +2 -2
  477. package/build-style/site-logo/style.css +2 -2
  478. package/build-style/site-tagline/editor-rtl.css +2 -2
  479. package/build-style/site-tagline/editor.css +2 -2
  480. package/build-style/site-tagline/style-rtl.css +2 -2
  481. package/build-style/site-tagline/style.css +2 -2
  482. package/build-style/site-title/editor-rtl.css +2 -2
  483. package/build-style/site-title/editor.css +2 -2
  484. package/build-style/site-title/style-rtl.css +2 -2
  485. package/build-style/site-title/style.css +2 -2
  486. package/build-style/social-link/editor-rtl.css +2 -2
  487. package/build-style/social-link/editor.css +2 -2
  488. package/build-style/social-links/editor-rtl.css +2 -2
  489. package/build-style/social-links/editor.css +2 -2
  490. package/build-style/social-links/style-rtl.css +2 -2
  491. package/build-style/social-links/style.css +2 -2
  492. package/build-style/spacer/editor-rtl.css +2 -2
  493. package/build-style/spacer/editor.css +2 -2
  494. package/build-style/spacer/style-rtl.css +2 -2
  495. package/build-style/spacer/style.css +2 -2
  496. package/build-style/style-rtl.css +53 -9
  497. package/build-style/style.css +53 -9
  498. package/build-style/table/editor-rtl.css +2 -2
  499. package/build-style/table/editor.css +2 -2
  500. package/build-style/table/style-rtl.css +2 -2
  501. package/build-style/table/style.css +2 -2
  502. package/build-style/table/theme-rtl.css +2 -2
  503. package/build-style/table/theme.css +2 -2
  504. package/build-style/table-of-contents/style-rtl.css +2 -2
  505. package/build-style/table-of-contents/style.css +2 -2
  506. package/build-style/tag-cloud/editor-rtl.css +9 -2
  507. package/build-style/tag-cloud/editor.css +9 -2
  508. package/build-style/tag-cloud/style-rtl.css +2 -2
  509. package/build-style/tag-cloud/style.css +2 -2
  510. package/build-style/template-part/editor-rtl.css +2 -6
  511. package/build-style/template-part/editor.css +2 -6
  512. package/build-style/template-part/theme-rtl.css +2 -2
  513. package/build-style/template-part/theme.css +2 -2
  514. package/build-style/term-description/style-rtl.css +2 -2
  515. package/build-style/term-description/style.css +2 -2
  516. package/build-style/text-columns/editor-rtl.css +2 -2
  517. package/build-style/text-columns/editor.css +2 -2
  518. package/build-style/text-columns/style-rtl.css +2 -2
  519. package/build-style/text-columns/style.css +2 -2
  520. package/build-style/theme-rtl.css +2 -2
  521. package/build-style/theme.css +2 -2
  522. package/build-style/verse/style-rtl.css +2 -2
  523. package/build-style/verse/style.css +2 -2
  524. package/build-style/video/editor-rtl.css +2 -2
  525. package/build-style/video/editor.css +2 -2
  526. package/build-style/video/style-rtl.css +2 -2
  527. package/build-style/video/style.css +2 -2
  528. package/build-style/video/theme-rtl.css +2 -2
  529. package/build-style/video/theme.css +2 -2
  530. package/package.json +35 -35
  531. package/src/archives/edit.js +1 -0
  532. package/src/audio/edit.js +4 -3
  533. package/src/avatar/user-control.js +1 -0
  534. package/src/button/edit.js +1 -0
  535. package/src/comment-author-name/block.json +14 -1
  536. package/src/comment-author-name/style.scss +4 -0
  537. package/src/comment-content/block.json +14 -1
  538. package/src/comment-content/style.scss +5 -0
  539. package/src/comment-date/block.json +14 -1
  540. package/src/comment-date/index.php +1 -1
  541. package/src/comment-date/style.scss +4 -0
  542. package/src/comments-pagination/comments-pagination-arrow-controls.js +1 -0
  543. package/src/cover/edit/inspector-controls.js +0 -1
  544. package/src/editor.scss +1 -0
  545. package/src/embed/edit.js +10 -1
  546. package/src/embed/editor.scss +4 -0
  547. package/src/embed/embed-placeholder.js +7 -4
  548. package/src/embed/embed-preview.js +3 -37
  549. package/src/file/block.json +12 -0
  550. package/src/file/inspector.js +1 -0
  551. package/src/form/edit.js +2 -0
  552. package/src/form/index.php +2 -2
  553. package/src/form-input/edit.js +1 -0
  554. package/src/gallery/edit.js +5 -9
  555. package/src/gallery/editor.scss +1 -1
  556. package/src/gallery/gallery.native.js +2 -1
  557. package/src/gallery/style.scss +33 -7
  558. package/src/group/edit.js +1 -1
  559. package/src/image/image.js +7 -1
  560. package/src/image/transforms.js +7 -1
  561. package/src/latest-posts/edit.js +60 -17
  562. package/src/latest-posts/editor.scss +11 -6
  563. package/src/list/block.json +9 -0
  564. package/src/list-item/block.json +8 -1
  565. package/src/media-text/edit.js +0 -1
  566. package/src/missing/edit.js +12 -18
  567. package/src/navigation/edit/index.js +3 -3
  568. package/src/navigation/edit/navigation-menu-name-control.js +1 -0
  569. package/src/navigation/edit/overlay-menu-preview.js +2 -0
  570. package/src/navigation/editor.scss +5 -0
  571. package/src/navigation/index.php +10 -27
  572. package/src/navigation-link/editor.scss +0 -3
  573. package/src/post-author/block.json +13 -0
  574. package/src/post-author/edit.js +68 -57
  575. package/src/post-author/editor.scss +7 -0
  576. package/src/post-author/style.scss +1 -0
  577. package/src/post-author-biography/block.json +14 -1
  578. package/src/post-author-biography/style.scss +4 -0
  579. package/src/post-author-name/block.json +14 -1
  580. package/src/post-author-name/style.scss +4 -0
  581. package/src/post-comment/edit.js +2 -0
  582. package/src/post-date/index.php +3 -3
  583. package/src/post-excerpt/edit.js +1 -0
  584. package/src/post-featured-image/dimension-controls.js +5 -0
  585. package/src/post-featured-image/edit.js +1 -0
  586. package/src/post-navigation-link/edit.js +6 -2
  587. package/src/post-terms/edit.js +1 -0
  588. package/src/post-title/edit.js +1 -0
  589. package/src/preformatted/block.json +12 -0
  590. package/src/query/edit/inspector-controls/parent-control.js +1 -0
  591. package/src/query/edit/query-content.js +1 -1
  592. package/src/query-pagination/query-pagination-arrow-controls.js +1 -0
  593. package/src/query-pagination-numbers/edit.js +1 -0
  594. package/src/query-title/block.json +12 -0
  595. package/src/quote/block.json +1 -0
  596. package/src/quote/test/transforms.native.js +1 -1
  597. package/src/quote/transforms.js +11 -2
  598. package/src/search/edit.js +9 -9
  599. package/src/search/editor.scss +5 -2
  600. package/src/social-link/edit.js +2 -0
  601. package/src/style.scss +5 -0
  602. package/src/table/edit.js +5 -4
  603. package/src/tag-cloud/block.json +12 -0
  604. package/src/tag-cloud/edit.js +46 -34
  605. package/src/tag-cloud/editor.scss +11 -1
  606. package/src/template-part/edit/advanced-controls.js +2 -0
  607. package/src/template-part/editor.scss +0 -5
  608. package/src/video/edit-common-settings.js +1 -0
  609. package/src/video/edit.js +2 -2
  610. package/src/video/tracks-editor.js +3 -0
  611. package/src/video/transforms.js +5 -1
@@ -6,7 +6,6 @@ import clsx from 'clsx';
6
6
  /**
7
7
  * WordPress dependencies
8
8
  */
9
- import { compose } from '@wordpress/compose';
10
9
  import {
11
10
  BaseControl,
12
11
  PanelBody,
@@ -17,7 +16,6 @@ import {
17
16
  MenuGroup,
18
17
  MenuItem,
19
18
  ToolbarDropdownMenu,
20
- withNotices,
21
19
  } from '@wordpress/components';
22
20
  import {
23
21
  store as blockEditorStore,
@@ -31,7 +29,6 @@ import {
31
29
  import { Platform, useEffect, useMemo } from '@wordpress/element';
32
30
  import { __, _x, sprintf } from '@wordpress/i18n';
33
31
  import { useSelect, useDispatch } from '@wordpress/data';
34
- import { withViewportMatch } from '@wordpress/viewport';
35
32
  import { View } from '@wordpress/primitives';
36
33
  import { createBlock } from '@wordpress/blocks';
37
34
  import { createBlobURL } from '@wordpress/blob';
@@ -98,7 +95,7 @@ const MOBILE_CONTROL_PROPS_RANGE_CONTROL = Platform.isNative
98
95
  const DEFAULT_BLOCK = { name: 'core/image' };
99
96
  const EMPTY_ARRAY = [];
100
97
 
101
- function GalleryEdit( props ) {
98
+ export default function GalleryEdit( props ) {
102
99
  const {
103
100
  setAttributes,
104
101
  attributes,
@@ -605,7 +602,10 @@ function GalleryEdit( props ) {
605
602
  />
606
603
  ) }
607
604
  { Platform.isWeb && ! imageSizeOptions && hasImageIds && (
608
- <BaseControl className="gallery-image-sizes">
605
+ <BaseControl
606
+ className="gallery-image-sizes"
607
+ __nextHasNoMarginBottom
608
+ >
609
609
  <BaseControl.VisualLabel>
610
610
  { __( 'Resolution' ) }
611
611
  </BaseControl.VisualLabel>
@@ -696,7 +696,3 @@ function GalleryEdit( props ) {
696
696
  </>
697
697
  );
698
698
  }
699
- export default compose( [
700
- withNotices,
701
- withViewportMatch( { isNarrow: '< small' } ),
702
- ] )( GalleryEdit );
@@ -144,7 +144,7 @@
144
144
  border: $border-width solid $gray-900;
145
145
 
146
146
  &:hover {
147
- box-shadow: $shadow-popover;
147
+ box-shadow: $elevation-x-small;
148
148
  }
149
149
 
150
150
  @include break-small() {
@@ -22,6 +22,7 @@ import { useState, useEffect } from '@wordpress/element';
22
22
  import { mediaUploadSync } from '@wordpress/react-native-bridge';
23
23
  import { WIDE_ALIGNMENTS } from '@wordpress/components';
24
24
  import { useResizeObserver } from '@wordpress/compose';
25
+ import { withViewportMatch } from '@wordpress/viewport';
25
26
 
26
27
  const TILE_SPACING = 8;
27
28
 
@@ -120,4 +121,4 @@ export const Gallery = ( props ) => {
120
121
  );
121
122
  };
122
123
 
123
- export default Gallery;
124
+ export default withViewportMatch( { isNarrow: '< small' } )( Gallery );
@@ -43,22 +43,44 @@ figure.wp-block-gallery.has-nested-images {
43
43
  width: auto;
44
44
  }
45
45
 
46
+ // Position caption and scrim at the bottom.
47
+ &:has(figcaption)::before,
46
48
  figcaption {
47
- background: linear-gradient(0deg, rgba($color: $black, $alpha: 0.7) 0, rgba($color: $black, $alpha: 0.3) 70%, transparent);
49
+ position: absolute;
48
50
  bottom: 0;
51
+ right: 0;
52
+ left: 0;
53
+ max-height: 100%;
54
+ }
55
+
56
+ // Create a background blur layer.
57
+ &:has(figcaption)::before {
58
+ content: "";
59
+ height: 100%;
60
+ max-height: 40%;
61
+
62
+ // Blur the background under the gradient scrim.
63
+ backdrop-filter: blur(3px);
64
+
65
+ // Crop the caption so the blur is only on the edge.
66
+ mask-image: linear-gradient(0deg, $black 20%, transparent 100%);
67
+ }
68
+
69
+ // Place the caption at the bottom.
70
+ figcaption {
49
71
  color: $white;
72
+ text-shadow: 0 0 1.5px $black;
50
73
  font-size: $default-font-size;
51
- left: 0;
52
- margin-bottom: 0;
53
- max-height: 60%;
74
+ margin: 0;
54
75
  overflow: auto;
55
- padding: 0 8px 8px;
56
- position: absolute;
76
+ padding: 1em;
57
77
  text-align: center;
58
- width: 100%;
59
78
  box-sizing: border-box;
60
79
  @include custom-scrollbars-on-hover(transparent, rgba($white, 0.8));
61
80
 
81
+ // Dark gradient scrim.
82
+ background: linear-gradient(0deg, rgba($color: $black, $alpha: 0.4) 0%, transparent 100%);
83
+
62
84
  img {
63
85
  display: inline;
64
86
  }
@@ -85,6 +107,10 @@ figure.wp-block-gallery.has-nested-images {
85
107
  margin: 0;
86
108
  padding: 10px 10px 9px;
87
109
  position: relative;
110
+ text-shadow: none;
111
+ }
112
+ &::before {
113
+ content: none;
88
114
  }
89
115
  }
90
116
  }
package/src/group/edit.js CHANGED
@@ -34,7 +34,7 @@ function GroupEditControls( { tagName, onSelectTagName } ) {
34
34
  'The <header> element should represent introductory content, typically a group of introductory or navigational aids.'
35
35
  ),
36
36
  main: __(
37
- 'The <main> element should be used for the primary content of your document only. '
37
+ 'The <main> element should be used for the primary content of your document only.'
38
38
  ),
39
39
  section: __(
40
40
  "The <section> element should represent a standalone portion of the document that can't be better represented by another element."
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import { isBlobURL } from '@wordpress/blob';
5
5
  import {
6
+ MenuItem,
6
7
  ExternalLink,
7
8
  ResizableBox,
8
9
  Spinner,
@@ -597,7 +598,11 @@ export default function Image( {
597
598
  onSelect={ onSelectImage }
598
599
  onSelectURL={ onSelectURL }
599
600
  onError={ onUploadError }
600
- />
601
+ >
602
+ <MenuItem onClick={ () => onSelectImage( undefined ) }>
603
+ { __( 'Reset' ) }
604
+ </MenuItem>
605
+ </MediaReplaceFlow>
601
606
  </BlockControls>
602
607
  ) }
603
608
  { isSingleSelected && externalBlob && (
@@ -690,6 +695,7 @@ export default function Image( {
690
695
  ) }
691
696
  renderContent={ () => (
692
697
  <TextControl
698
+ __next40pxDefaultSize
693
699
  className="wp-block-image__toolbar_content_textarea"
694
700
  __nextHasNoMarginBottom
695
701
  label={ __( 'Title attribute' ) }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { createBlobURL } from '@wordpress/blob';
4
+ import { createBlobURL, isBlobURL } from '@wordpress/blob';
5
5
  import { createBlock, getBlockAttributes } from '@wordpress/blocks';
6
6
  import { dispatch } from '@wordpress/data';
7
7
  import { store as noticesStore } from '@wordpress/notices';
@@ -123,6 +123,12 @@ const transforms = {
123
123
  anchor,
124
124
  }
125
125
  );
126
+
127
+ if ( isBlobURL( attributes.url ) ) {
128
+ attributes.blob = attributes.url;
129
+ delete attributes.url;
130
+ }
131
+
126
132
  return createBlock( 'core/image', attributes );
127
133
  },
128
134
  },
@@ -7,7 +7,6 @@ import clsx from 'clsx';
7
7
  * WordPress dependencies
8
8
  */
9
9
  import {
10
- BaseControl,
11
10
  PanelBody,
12
11
  Placeholder,
13
12
  QueryControls,
@@ -16,19 +15,28 @@ import {
16
15
  Spinner,
17
16
  ToggleControl,
18
17
  ToolbarGroup,
18
+ __experimentalToggleGroupControl as ToggleGroupControl,
19
+ __experimentalToggleGroupControlOptionIcon as ToggleGroupControlOptionIcon,
19
20
  } from '@wordpress/components';
20
21
  import { __, _x, sprintf } from '@wordpress/i18n';
21
22
  import { dateI18n, format, getSettings } from '@wordpress/date';
22
23
  import {
23
24
  InspectorControls,
24
- BlockAlignmentToolbar,
25
25
  BlockControls,
26
26
  __experimentalImageSizeControl as ImageSizeControl,
27
27
  useBlockProps,
28
28
  store as blockEditorStore,
29
29
  } from '@wordpress/block-editor';
30
30
  import { useSelect, useDispatch } from '@wordpress/data';
31
- import { pin, list, grid } from '@wordpress/icons';
31
+ import {
32
+ pin,
33
+ list,
34
+ grid,
35
+ alignNone,
36
+ positionLeft,
37
+ positionCenter,
38
+ positionRight,
39
+ } from '@wordpress/icons';
32
40
  import { store as coreStore } from '@wordpress/core-data';
33
41
  import { store as noticeStore } from '@wordpress/notices';
34
42
  import { useInstanceId } from '@wordpress/compose';
@@ -197,6 +205,29 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
197
205
  setAttributes( { categories: allCategories } );
198
206
  };
199
207
 
208
+ const imageAlignmentOptions = [
209
+ {
210
+ value: 'none',
211
+ icon: alignNone,
212
+ label: __( 'None' ),
213
+ },
214
+ {
215
+ value: 'left',
216
+ icon: positionLeft,
217
+ label: __( 'Left' ),
218
+ },
219
+ {
220
+ value: 'center',
221
+ icon: positionCenter,
222
+ label: __( 'Center' ),
223
+ },
224
+ {
225
+ value: 'right',
226
+ icon: positionRight,
227
+ label: __( 'Right' ),
228
+ },
229
+ ];
230
+
200
231
  const hasPosts = !! latestPosts?.length;
201
232
  const inspectorControls = (
202
233
  <InspectorControls>
@@ -211,6 +242,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
211
242
  />
212
243
  { displayPostContent && (
213
244
  <RadioControl
245
+ className="wp-block-latest-posts__post-content-radio"
214
246
  label={ __( 'Show:' ) }
215
247
  selected={ displayPostContentRadio }
216
248
  options={ [
@@ -303,21 +335,32 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
303
335
  } )
304
336
  }
305
337
  />
306
- <BaseControl className="editor-latest-posts-image-alignment-control">
307
- <BaseControl.VisualLabel>
308
- { __( 'Image alignment' ) }
309
- </BaseControl.VisualLabel>
310
- <BlockAlignmentToolbar
311
- value={ featuredImageAlign }
312
- onChange={ ( value ) =>
313
- setAttributes( {
314
- featuredImageAlign: value,
315
- } )
338
+ <ToggleGroupControl
339
+ className="editor-latest-posts-image-alignment-control"
340
+ __nextHasNoMarginBottom
341
+ __next40pxDefaultSize
342
+ label={ __( 'Image alignment' ) }
343
+ value={ featuredImageAlign || 'none' }
344
+ onChange={ ( value ) =>
345
+ setAttributes( {
346
+ featuredImageAlign:
347
+ value !== 'none' ? value : undefined,
348
+ } )
349
+ }
350
+ >
351
+ { imageAlignmentOptions.map(
352
+ ( { value, icon, label } ) => {
353
+ return (
354
+ <ToggleGroupControlOptionIcon
355
+ key={ value }
356
+ value={ value }
357
+ icon={ icon }
358
+ label={ label }
359
+ />
360
+ );
316
361
  }
317
- controls={ [ 'left', 'center', 'right' ] }
318
- isCollapsed={ false }
319
- />
320
- </BaseControl>
362
+ ) }
363
+ </ToggleGroupControl>
321
364
  <ToggleControl
322
365
  __nextHasNoMarginBottom
323
366
  label={ __( 'Add link to featured image' ) }
@@ -9,12 +9,6 @@
9
9
  display: inline;
10
10
  }
11
11
 
12
- .editor-latest-posts-image-alignment-control {
13
- .components-toolbar {
14
- border-radius: $radius-block-ui;
15
- }
16
- }
17
-
18
12
  :root :where(.wp-block-latest-posts) {
19
13
  padding-left: 2.5em;
20
14
  }
@@ -24,3 +18,14 @@
24
18
  padding-left: 0;
25
19
  }
26
20
  }
21
+
22
+ // Apply the same styles that would be applied to
23
+ // ".block-editor-block-inspector .components-base-control"
24
+ // (see packages/block-editor/src/components/block-inspector/style.scss)
25
+ .wp-block-latest-posts__post-content-radio {
26
+ margin-bottom: #{ $grid-unit-30 };
27
+
28
+ &:last-child {
29
+ margin-bottom: $grid-unit-10;
30
+ }
31
+ }
@@ -39,6 +39,12 @@
39
39
  "supports": {
40
40
  "anchor": true,
41
41
  "html": false,
42
+ "__experimentalBorder": {
43
+ "color": true,
44
+ "radius": true,
45
+ "style": true,
46
+ "width": true
47
+ },
42
48
  "typography": {
43
49
  "fontSize": true,
44
50
  "lineHeight": true,
@@ -75,6 +81,9 @@
75
81
  "clientNavigation": true
76
82
  }
77
83
  },
84
+ "selectors": {
85
+ "border": ".wp-block-list:not(.wp-block-list .wp-block-list)"
86
+ },
78
87
  "editorStyle": "wp-block-list-editor",
79
88
  "style": "wp-block-list"
80
89
  }
@@ -23,6 +23,12 @@
23
23
  "anchor": true,
24
24
  "className": false,
25
25
  "splitting": true,
26
+ "__experimentalBorder": {
27
+ "color": true,
28
+ "radius": true,
29
+ "style": true,
30
+ "width": true
31
+ },
26
32
  "color": {
27
33
  "gradients": true,
28
34
  "link": true,
@@ -57,6 +63,7 @@
57
63
  }
58
64
  },
59
65
  "selectors": {
60
- "root": ".wp-block-list > li"
66
+ "root": ".wp-block-list > li",
67
+ "border": ".wp-block-list:not(.wp-block-list .wp-block-list) > li"
61
68
  }
62
69
  }
@@ -360,7 +360,6 @@ function MediaTextEdit( {
360
360
  >
361
361
  <FocalPointPicker
362
362
  __nextHasNoMarginBottom
363
- __next40pxDefaultSize
364
363
  label={ __( 'Focal point' ) }
365
364
  url={
366
365
  useFeaturedImage && featuredImageURL
@@ -5,7 +5,7 @@ import { __, sprintf } from '@wordpress/i18n';
5
5
  import { RawHTML } from '@wordpress/element';
6
6
  import { Button } from '@wordpress/components';
7
7
  import { createBlock } from '@wordpress/blocks';
8
- import { withDispatch, useSelect } from '@wordpress/data';
8
+ import { useDispatch, useSelect } from '@wordpress/data';
9
9
  import {
10
10
  Warning,
11
11
  useBlockProps,
@@ -13,7 +13,7 @@ import {
13
13
  } from '@wordpress/block-editor';
14
14
  import { safeHTML } from '@wordpress/dom';
15
15
 
16
- function MissingBlockWarning( { attributes, convertToHTML, clientId } ) {
16
+ export default function MissingEdit( { attributes, clientId } ) {
17
17
  const { originalName, originalUndelimitedContent } = attributes;
18
18
  const hasContent = !! originalUndelimitedContent;
19
19
  const { hasFreeformBlock, hasHTMLBlock } = useSelect(
@@ -34,6 +34,16 @@ function MissingBlockWarning( { attributes, convertToHTML, clientId } ) {
34
34
  },
35
35
  [ clientId ]
36
36
  );
37
+ const { replaceBlock } = useDispatch( blockEditorStore );
38
+
39
+ function convertToHTML() {
40
+ replaceBlock(
41
+ clientId,
42
+ createBlock( 'core/html', {
43
+ content: originalUndelimitedContent,
44
+ } )
45
+ );
46
+ }
37
47
 
38
48
  const actions = [];
39
49
  let messageHTML;
@@ -81,19 +91,3 @@ function MissingBlockWarning( { attributes, convertToHTML, clientId } ) {
81
91
  </div>
82
92
  );
83
93
  }
84
-
85
- const MissingEdit = withDispatch( ( dispatch, { clientId, attributes } ) => {
86
- const { replaceBlock } = dispatch( blockEditorStore );
87
- return {
88
- convertToHTML() {
89
- replaceBlock(
90
- clientId,
91
- createBlock( 'core/html', {
92
- content: attributes.originalUndelimitedContent,
93
- } )
94
- );
95
- },
96
- };
97
- } )( MissingBlockWarning );
98
-
99
- export default MissingEdit;
@@ -626,10 +626,11 @@ function Navigation( {
626
626
  </div>
627
627
  </>
628
628
  ) }
629
- <h3>{ __( 'Overlay Menu' ) }</h3>
630
629
  <ToggleGroupControl
630
+ __next40pxDefaultSize
631
631
  __nextHasNoMarginBottom
632
- label={ __( 'Configure overlay menu' ) }
632
+ label={ __( 'Overlay Menu' ) }
633
+ aria-label={ __( 'Configure overlay menu' ) }
633
634
  value={ overlayMenu }
634
635
  help={ __(
635
636
  'Collapses the navigation options in a menu icon opening an overlay.'
@@ -638,7 +639,6 @@ function Navigation( {
638
639
  setAttributes( { overlayMenu: value } )
639
640
  }
640
641
  isBlock
641
- hideLabelFromVision
642
642
  >
643
643
  <ToggleGroupControlOption
644
644
  value="never"
@@ -14,6 +14,7 @@ export default function NavigationMenuNameControl() {
14
14
 
15
15
  return (
16
16
  <TextControl
17
+ __next40pxDefaultSize
17
18
  __nextHasNoMarginBottom
18
19
  label={ __( 'Menu name' ) }
19
20
  value={ title }
@@ -27,7 +27,9 @@ export default function OverlayMenuPreview( { setAttributes, hasIcon, icon } ) {
27
27
  />
28
28
 
29
29
  <ToggleGroupControl
30
+ __next40pxDefaultSize
30
31
  __nextHasNoMarginBottom
32
+ className="wp-block-navigation__overlay-menu-icon-toggle-group"
31
33
  label={ __( 'Icon' ) }
32
34
  value={ icon }
33
35
  onChange={ ( value ) => setAttributes( { icon: value } ) }
@@ -628,3 +628,8 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
628
628
  .wp-block-navigation__menu-inspector-controls__empty-message {
629
629
  margin-left: 24px;
630
630
  }
631
+
632
+ .wp-block-navigation__overlay-menu-icon-toggle-group {
633
+ // Counteract the margin added by the block inspector.
634
+ margin-bottom: $grid-unit-20;
635
+ }
@@ -241,13 +241,11 @@ class WP_Navigation_Block_Renderer {
241
241
  // it encounters whitespace. This code strips it.
242
242
  $blocks = block_core_navigation_filter_out_empty_blocks( $parsed_blocks );
243
243
 
244
- if ( function_exists( 'set_ignored_hooked_blocks_metadata' ) ) {
245
- // Run Block Hooks algorithm to inject hooked blocks.
246
- $markup = block_core_navigation_insert_hooked_blocks( $blocks, $navigation_post );
247
- $root_nav_block = parse_blocks( $markup )[0];
244
+ // Run Block Hooks algorithm to inject hooked blocks.
245
+ $markup = block_core_navigation_insert_hooked_blocks( $blocks, $navigation_post );
246
+ $root_nav_block = parse_blocks( $markup )[0];
248
247
 
249
- $blocks = isset( $root_nav_block['innerBlocks'] ) ? $root_nav_block['innerBlocks'] : $blocks;
250
- }
248
+ $blocks = isset( $root_nav_block['innerBlocks'] ) ? $root_nav_block['innerBlocks'] : $blocks;
251
249
 
252
250
  // TODO - this uses the full navigation block attributes for the
253
251
  // context which could be refined.
@@ -1083,15 +1081,13 @@ function block_core_navigation_get_fallback_blocks() {
1083
1081
  // In this case default to the (Page List) fallback.
1084
1082
  $fallback_blocks = ! empty( $maybe_fallback ) ? $maybe_fallback : $fallback_blocks;
1085
1083
 
1086
- if ( function_exists( 'set_ignored_hooked_blocks_metadata' ) ) {
1087
- // Run Block Hooks algorithm to inject hooked blocks.
1088
- // We have to run it here because we need the post ID of the Navigation block to track ignored hooked blocks.
1089
- $markup = block_core_navigation_insert_hooked_blocks( $fallback_blocks, $navigation_post );
1090
- $blocks = parse_blocks( $markup );
1084
+ // Run Block Hooks algorithm to inject hooked blocks.
1085
+ // We have to run it here because we need the post ID of the Navigation block to track ignored hooked blocks.
1086
+ $markup = block_core_navigation_insert_hooked_blocks( $fallback_blocks, $navigation_post );
1087
+ $blocks = parse_blocks( $markup );
1091
1088
 
1092
- if ( isset( $blocks[0]['innerBlocks'] ) ) {
1093
- $fallback_blocks = $blocks[0]['innerBlocks'];
1094
- }
1089
+ if ( isset( $blocks[0]['innerBlocks'] ) ) {
1090
+ $fallback_blocks = $blocks[0]['innerBlocks'];
1095
1091
  }
1096
1092
  }
1097
1093
 
@@ -1621,26 +1617,15 @@ $rest_insert_wp_navigation_core_callback = 'block_core_navigation_' . 'update_ig
1621
1617
  /*
1622
1618
  * Do not add the `block_core_navigation_update_ignore_hooked_blocks_meta` filter in the following cases:
1623
1619
  * - If Core has added the `update_ignored_hooked_blocks_postmeta` filter already (WP >= 6.6);
1624
- * - or if the `set_ignored_hooked_blocks_metadata` function is unavailable (which is required for the filter to work. It was introduced by WP 6.5 but is not present in Gutenberg's WP 6.5 compatibility layer);
1625
1620
  * - or if the `$rest_insert_wp_navigation_core_callback` filter has already been added.
1626
1621
  */
1627
1622
  if (
1628
1623
  ! has_filter( 'rest_pre_insert_wp_navigation', 'update_ignored_hooked_blocks_postmeta' ) &&
1629
- function_exists( 'set_ignored_hooked_blocks_metadata' ) &&
1630
1624
  ! has_filter( 'rest_pre_insert_wp_navigation', $rest_insert_wp_navigation_core_callback )
1631
1625
  ) {
1632
1626
  add_filter( 'rest_pre_insert_wp_navigation', 'block_core_navigation_update_ignore_hooked_blocks_meta' );
1633
1627
  }
1634
1628
 
1635
- /*
1636
- * Previous versions of Gutenberg were attaching the block_core_navigation_update_ignore_hooked_blocks_meta
1637
- * function to the `rest_insert_wp_navigation` _action_ (rather than the `rest_pre_insert_wp_navigation` _filter_).
1638
- * To avoid collisions, we need to remove the filter from that action if it's present.
1639
- */
1640
- if ( has_filter( 'rest_insert_wp_navigation', $rest_insert_wp_navigation_core_callback ) ) {
1641
- remove_filter( 'rest_insert_wp_navigation', $rest_insert_wp_navigation_core_callback );
1642
- }
1643
-
1644
1629
  /**
1645
1630
  * Hooks into the REST API response for the core/navigation block and adds the first and last inner blocks.
1646
1631
  *
@@ -1678,12 +1663,10 @@ $rest_prepare_wp_navigation_core_callback = 'block_core_navigation_' . 'insert_h
1678
1663
  /*
1679
1664
  * Do not add the `block_core_navigation_insert_hooked_blocks_into_rest_response` filter in the following cases:
1680
1665
  * - If Core has added the `insert_hooked_blocks_into_rest_response` filter already (WP >= 6.6);
1681
- * - or if the `set_ignored_hooked_blocks_metadata` function is unavailable (which is required for the filter to work. It was introduced by WP 6.5 but is not present in Gutenberg's WP 6.5 compatibility layer);
1682
1666
  * - or if the `$rest_prepare_wp_navigation_core_callback` filter has already been added.
1683
1667
  */
1684
1668
  if (
1685
1669
  ! has_filter( 'rest_prepare_wp_navigation', 'insert_hooked_blocks_into_rest_response' ) &&
1686
- function_exists( 'set_ignored_hooked_blocks_metadata' ) &&
1687
1670
  ! has_filter( 'rest_prepare_wp_navigation', $rest_prepare_wp_navigation_core_callback )
1688
1671
  ) {
1689
1672
  add_filter( 'rest_prepare_wp_navigation', 'block_core_navigation_insert_hooked_blocks_into_rest_response', 10, 3 );
@@ -87,9 +87,6 @@
87
87
  $stop2: 64%;
88
88
 
89
89
  --wp-underline-color: var(--wp-admin-theme-color);
90
- .is-dark-theme & {
91
- --wp-underline-color: #{ $dark-theme-focus };
92
- }
93
90
 
94
91
  background-image:
95
92
  linear-gradient(45deg, transparent ($stop1 - $blur), var(--wp-underline-color) $stop1, var(--wp-underline-color) ($stop1 + $width), transparent ($stop1 + $width + $blur)),
@@ -64,7 +64,20 @@
64
64
  },
65
65
  "interactivity": {
66
66
  "clientNavigation": true
67
+ },
68
+ "__experimentalBorder": {
69
+ "radius": true,
70
+ "color": true,
71
+ "width": true,
72
+ "style": true,
73
+ "__experimentalDefaultControls": {
74
+ "radius": true,
75
+ "color": true,
76
+ "width": true,
77
+ "style": true
78
+ }
67
79
  }
68
80
  },
81
+ "editorStyle": "wp-block-post-author-editor",
69
82
  "style": "wp-block-post-author"
70
83
  }