@wordpress/block-library 9.6.1 → 9.7.1-next.1f6eadc42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (427) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/archives/edit.js +1 -1
  3. package/build/archives/edit.js.map +1 -1
  4. package/build/audio/edit.js +2 -1
  5. package/build/audio/edit.js.map +1 -1
  6. package/build/block/edit.js +5 -8
  7. package/build/block/edit.js.map +1 -1
  8. package/build/button/edit.js +1 -1
  9. package/build/button/edit.js.map +1 -1
  10. package/build/buttons/index.js +1 -1
  11. package/build/categories/index.js +1 -0
  12. package/build/categories/index.js.map +1 -1
  13. package/build/comment-edit-link/index.js +13 -2
  14. package/build/comment-edit-link/index.js.map +1 -1
  15. package/build/comment-reply-link/index.js +13 -2
  16. package/build/comment-reply-link/index.js.map +1 -1
  17. package/build/comments/edit/comments-legacy.js +1 -0
  18. package/build/comments/edit/comments-legacy.js.map +1 -1
  19. package/build/cover/deprecated.js +1 -1
  20. package/build/cover/deprecated.js.map +1 -1
  21. package/build/cover/edit/block-controls.js +4 -2
  22. package/build/cover/edit/block-controls.js.map +1 -1
  23. package/build/cover/edit/index.js +6 -3
  24. package/build/cover/edit/index.js.map +1 -1
  25. package/build/cover/edit/inspector-controls.js +4 -12
  26. package/build/cover/edit/inspector-controls.js.map +1 -1
  27. package/build/details/index.js +3 -1
  28. package/build/details/index.js.map +1 -1
  29. package/build/details/transforms.js +24 -0
  30. package/build/details/transforms.js.map +1 -0
  31. package/build/embed/edit.js +5 -11
  32. package/build/embed/edit.js.map +1 -1
  33. package/build/embed/embed-placeholder.js +2 -0
  34. package/build/embed/embed-placeholder.js.map +1 -1
  35. package/build/embed/embed-preview.js +16 -4
  36. package/build/embed/embed-preview.js.map +1 -1
  37. package/build/file/edit.js +12 -1
  38. package/build/file/edit.js.map +1 -1
  39. package/build/file/transforms.js +18 -4
  40. package/build/file/transforms.js.map +1 -1
  41. package/build/form-input/deprecated.js +113 -1
  42. package/build/form-input/deprecated.js.map +1 -1
  43. package/build/form-input/edit.js +16 -12
  44. package/build/form-input/edit.js.map +1 -1
  45. package/build/form-input/save.js +9 -1
  46. package/build/form-input/save.js.map +1 -1
  47. package/build/freeform/edit.js +4 -4
  48. package/build/freeform/edit.js.map +1 -1
  49. package/build/freeform/modal.js +3 -0
  50. package/build/freeform/modal.js.map +1 -1
  51. package/build/home-link/edit.js +3 -9
  52. package/build/home-link/edit.js.map +1 -1
  53. package/build/image/edit.js +95 -45
  54. package/build/image/edit.js.map +1 -1
  55. package/build/image/image.js +39 -24
  56. package/build/image/image.js.map +1 -1
  57. package/build/image/transforms.js +0 -13
  58. package/build/image/transforms.js.map +1 -1
  59. package/build/image/use-max-width-observer.js +35 -0
  60. package/build/image/use-max-width-observer.js.map +1 -0
  61. package/build/image/utils.js +11 -0
  62. package/build/image/utils.js.map +1 -1
  63. package/build/latest-posts/edit.js +1 -1
  64. package/build/latest-posts/edit.js.map +1 -1
  65. package/build/media-text/deprecated.js +144 -3
  66. package/build/media-text/deprecated.js.map +1 -1
  67. package/build/media-text/edit.js +5 -5
  68. package/build/media-text/edit.js.map +1 -1
  69. package/build/media-text/image-fill.js +12 -0
  70. package/build/media-text/image-fill.js.map +1 -0
  71. package/build/media-text/media-container.js +21 -18
  72. package/build/media-text/media-container.js.map +1 -1
  73. package/build/media-text/media-container.native.js +0 -7
  74. package/build/media-text/media-container.native.js.map +1 -1
  75. package/build/media-text/save.js +5 -6
  76. package/build/media-text/save.js.map +1 -1
  77. package/build/missing/edit.js +3 -2
  78. package/build/missing/edit.js.map +1 -1
  79. package/build/navigation/edit/deleted-navigation-warning.js +14 -7
  80. package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
  81. package/build/navigation/edit/index.js +1 -0
  82. package/build/navigation/edit/index.js.map +1 -1
  83. package/build/navigation/edit/menu-inspector-controls.js +2 -1
  84. package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
  85. package/build/navigation/edit/navigation-menu-delete-control.js +1 -0
  86. package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  87. package/build/navigation/edit/placeholder/index.js +1 -0
  88. package/build/navigation/edit/placeholder/index.js.map +1 -1
  89. package/build/navigation/edit/responsive-wrapper.js +2 -0
  90. package/build/navigation/edit/responsive-wrapper.js.map +1 -1
  91. package/build/navigation/edit/unsaved-inner-blocks.js +4 -4
  92. package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  93. package/build/navigation-link/link-ui.js +2 -1
  94. package/build/navigation-link/link-ui.js.map +1 -1
  95. package/build/page-list/convert-to-links-modal.js +2 -0
  96. package/build/page-list/convert-to-links-modal.js.map +1 -1
  97. package/build/page-list/edit.js +4 -1
  98. package/build/page-list/edit.js.map +1 -1
  99. package/build/post-comments-form/form.js +1 -0
  100. package/build/post-comments-form/form.js.map +1 -1
  101. package/build/post-featured-image/dimension-controls.js +6 -8
  102. package/build/post-featured-image/dimension-controls.js.map +1 -1
  103. package/build/post-featured-image/edit.js +2 -4
  104. package/build/post-featured-image/edit.js.map +1 -1
  105. package/build/post-title/index.js +4 -1
  106. package/build/post-title/index.js.map +1 -1
  107. package/build/query/edit/enhanced-pagination-modal.js +3 -2
  108. package/build/query/edit/enhanced-pagination-modal.js.map +1 -1
  109. package/build/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
  110. package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  111. package/build/query/edit/inspector-controls/index.js +2 -10
  112. package/build/query/edit/inspector-controls/index.js.map +1 -1
  113. package/build/query/edit/query-content.js +9 -3
  114. package/build/query/edit/query-content.js.map +1 -1
  115. package/build/query/edit/query-placeholder.js +2 -0
  116. package/build/query/edit/query-placeholder.js.map +1 -1
  117. package/build/site-logo/edit.js +9 -13
  118. package/build/site-logo/edit.js.map +1 -1
  119. package/build/site-title/index.js +4 -1
  120. package/build/site-title/index.js.map +1 -1
  121. package/build/social-link/edit.js +4 -1
  122. package/build/social-link/edit.js.map +1 -1
  123. package/build/social-links/edit.js +10 -9
  124. package/build/social-links/edit.js.map +1 -1
  125. package/build/template-part/edit/advanced-controls.js.map +1 -1
  126. package/build/template-part/edit/index.js +1 -1
  127. package/build/template-part/edit/index.js.map +1 -1
  128. package/build/template-part/edit/inner-blocks.js +10 -1
  129. package/build/template-part/edit/inner-blocks.js.map +1 -1
  130. package/build/template-part/edit/placeholder.js +2 -0
  131. package/build/template-part/edit/placeholder.js.map +1 -1
  132. package/build/utils/hooks.js +10 -10
  133. package/build/utils/hooks.js.map +1 -1
  134. package/build/video/edit.js +16 -12
  135. package/build/video/edit.js.map +1 -1
  136. package/build/video/tracks-editor.js +3 -0
  137. package/build/video/tracks-editor.js.map +1 -1
  138. package/build-module/archives/edit.js +1 -1
  139. package/build-module/archives/edit.js.map +1 -1
  140. package/build-module/audio/edit.js +2 -1
  141. package/build-module/audio/edit.js.map +1 -1
  142. package/build-module/block/edit.js +6 -9
  143. package/build-module/block/edit.js.map +1 -1
  144. package/build-module/button/edit.js +1 -1
  145. package/build-module/button/edit.js.map +1 -1
  146. package/build-module/buttons/index.js +1 -1
  147. package/build-module/categories/index.js +1 -0
  148. package/build-module/categories/index.js.map +1 -1
  149. package/build-module/comment-edit-link/index.js +13 -2
  150. package/build-module/comment-edit-link/index.js.map +1 -1
  151. package/build-module/comment-reply-link/index.js +13 -2
  152. package/build-module/comment-reply-link/index.js.map +1 -1
  153. package/build-module/comments/edit/comments-legacy.js +1 -0
  154. package/build-module/comments/edit/comments-legacy.js.map +1 -1
  155. package/build-module/cover/deprecated.js +1 -1
  156. package/build-module/cover/deprecated.js.map +1 -1
  157. package/build-module/cover/edit/block-controls.js +4 -2
  158. package/build-module/cover/edit/block-controls.js.map +1 -1
  159. package/build-module/cover/edit/index.js +6 -3
  160. package/build-module/cover/edit/index.js.map +1 -1
  161. package/build-module/cover/edit/inspector-controls.js +5 -13
  162. package/build-module/cover/edit/inspector-controls.js.map +1 -1
  163. package/build-module/details/index.js +3 -1
  164. package/build-module/details/index.js.map +1 -1
  165. package/build-module/details/transforms.js +18 -0
  166. package/build-module/details/transforms.js.map +1 -0
  167. package/build-module/embed/edit.js +6 -12
  168. package/build-module/embed/edit.js.map +1 -1
  169. package/build-module/embed/embed-placeholder.js +2 -0
  170. package/build-module/embed/embed-placeholder.js.map +1 -1
  171. package/build-module/embed/embed-preview.js +16 -4
  172. package/build-module/embed/embed-preview.js.map +1 -1
  173. package/build-module/file/edit.js +12 -1
  174. package/build-module/file/edit.js.map +1 -1
  175. package/build-module/file/transforms.js +18 -4
  176. package/build-module/file/transforms.js.map +1 -1
  177. package/build-module/form-input/deprecated.js +114 -2
  178. package/build-module/form-input/deprecated.js.map +1 -1
  179. package/build-module/form-input/edit.js +16 -12
  180. package/build-module/form-input/edit.js.map +1 -1
  181. package/build-module/form-input/save.js +9 -1
  182. package/build-module/form-input/save.js.map +1 -1
  183. package/build-module/freeform/edit.js +4 -4
  184. package/build-module/freeform/edit.js.map +1 -1
  185. package/build-module/freeform/modal.js +3 -0
  186. package/build-module/freeform/modal.js.map +1 -1
  187. package/build-module/home-link/edit.js +3 -9
  188. package/build-module/home-link/edit.js.map +1 -1
  189. package/build-module/image/edit.js +99 -48
  190. package/build-module/image/edit.js.map +1 -1
  191. package/build-module/image/image.js +40 -25
  192. package/build-module/image/image.js.map +1 -1
  193. package/build-module/image/transforms.js +0 -13
  194. package/build-module/image/transforms.js.map +1 -1
  195. package/build-module/image/use-max-width-observer.js +29 -0
  196. package/build-module/image/use-max-width-observer.js.map +1 -0
  197. package/build-module/image/utils.js +11 -1
  198. package/build-module/image/utils.js.map +1 -1
  199. package/build-module/latest-posts/edit.js +1 -1
  200. package/build-module/latest-posts/edit.js.map +1 -1
  201. package/build-module/media-text/deprecated.js +144 -3
  202. package/build-module/media-text/deprecated.js.map +1 -1
  203. package/build-module/media-text/edit.js +5 -5
  204. package/build-module/media-text/edit.js.map +1 -1
  205. package/build-module/media-text/image-fill.js +6 -0
  206. package/build-module/media-text/image-fill.js.map +1 -0
  207. package/build-module/media-text/media-container.js +21 -17
  208. package/build-module/media-text/media-container.js.map +1 -1
  209. package/build-module/media-text/media-container.native.js +0 -1
  210. package/build-module/media-text/media-container.native.js.map +1 -1
  211. package/build-module/media-text/save.js +5 -6
  212. package/build-module/media-text/save.js.map +1 -1
  213. package/build-module/missing/edit.js +3 -2
  214. package/build-module/missing/edit.js.map +1 -1
  215. package/build-module/navigation/edit/deleted-navigation-warning.js +15 -8
  216. package/build-module/navigation/edit/deleted-navigation-warning.js.map +1 -1
  217. package/build-module/navigation/edit/index.js +1 -0
  218. package/build-module/navigation/edit/index.js.map +1 -1
  219. package/build-module/navigation/edit/menu-inspector-controls.js +2 -1
  220. package/build-module/navigation/edit/menu-inspector-controls.js.map +1 -1
  221. package/build-module/navigation/edit/navigation-menu-delete-control.js +1 -0
  222. package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  223. package/build-module/navigation/edit/placeholder/index.js +1 -0
  224. package/build-module/navigation/edit/placeholder/index.js.map +1 -1
  225. package/build-module/navigation/edit/responsive-wrapper.js +2 -0
  226. package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
  227. package/build-module/navigation/edit/unsaved-inner-blocks.js +4 -4
  228. package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  229. package/build-module/navigation-link/link-ui.js +4 -3
  230. package/build-module/navigation-link/link-ui.js.map +1 -1
  231. package/build-module/page-list/convert-to-links-modal.js +2 -0
  232. package/build-module/page-list/convert-to-links-modal.js.map +1 -1
  233. package/build-module/page-list/edit.js +4 -1
  234. package/build-module/page-list/edit.js.map +1 -1
  235. package/build-module/post-comments-form/form.js +1 -0
  236. package/build-module/post-comments-form/form.js.map +1 -1
  237. package/build-module/post-featured-image/dimension-controls.js +6 -8
  238. package/build-module/post-featured-image/dimension-controls.js.map +1 -1
  239. package/build-module/post-featured-image/edit.js +3 -5
  240. package/build-module/post-featured-image/edit.js.map +1 -1
  241. package/build-module/post-title/index.js +4 -1
  242. package/build-module/post-title/index.js.map +1 -1
  243. package/build-module/query/edit/enhanced-pagination-modal.js +3 -2
  244. package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -1
  245. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
  246. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  247. package/build-module/query/edit/inspector-controls/index.js +2 -10
  248. package/build-module/query/edit/inspector-controls/index.js.map +1 -1
  249. package/build-module/query/edit/query-content.js +10 -4
  250. package/build-module/query/edit/query-content.js.map +1 -1
  251. package/build-module/query/edit/query-placeholder.js +2 -0
  252. package/build-module/query/edit/query-placeholder.js.map +1 -1
  253. package/build-module/site-logo/edit.js +10 -14
  254. package/build-module/site-logo/edit.js.map +1 -1
  255. package/build-module/site-title/index.js +4 -1
  256. package/build-module/site-title/index.js.map +1 -1
  257. package/build-module/social-link/edit.js +4 -1
  258. package/build-module/social-link/edit.js.map +1 -1
  259. package/build-module/social-links/edit.js +11 -10
  260. package/build-module/social-links/edit.js.map +1 -1
  261. package/build-module/template-part/edit/advanced-controls.js.map +1 -1
  262. package/build-module/template-part/edit/index.js +1 -1
  263. package/build-module/template-part/edit/index.js.map +1 -1
  264. package/build-module/template-part/edit/inner-blocks.js +10 -1
  265. package/build-module/template-part/edit/inner-blocks.js.map +1 -1
  266. package/build-module/template-part/edit/placeholder.js +2 -0
  267. package/build-module/template-part/edit/placeholder.js.map +1 -1
  268. package/build-module/utils/hooks.js +10 -10
  269. package/build-module/utils/hooks.js.map +1 -1
  270. package/build-module/video/edit.js +16 -13
  271. package/build-module/video/edit.js.map +1 -1
  272. package/build-module/video/tracks-editor.js +3 -0
  273. package/build-module/video/tracks-editor.js.map +1 -1
  274. package/build-style/button/editor-rtl.css +0 -4
  275. package/build-style/button/editor.css +0 -4
  276. package/build-style/buttons/editor-rtl.css +2 -5
  277. package/build-style/buttons/editor.css +2 -5
  278. package/build-style/buttons/style-rtl.css +2 -2
  279. package/build-style/buttons/style.css +2 -2
  280. package/build-style/comment-edit-link/style-rtl.css +94 -0
  281. package/build-style/comment-edit-link/style.css +94 -0
  282. package/build-style/comment-reply-link/style-rtl.css +94 -0
  283. package/build-style/comment-reply-link/style.css +94 -0
  284. package/build-style/comments-pagination/editor-rtl.css +2 -2
  285. package/build-style/comments-pagination/editor.css +2 -2
  286. package/build-style/common-rtl.css +2 -2
  287. package/build-style/common.css +2 -2
  288. package/build-style/cover/editor-rtl.css +0 -6
  289. package/build-style/cover/editor.css +0 -6
  290. package/build-style/editor-rtl.css +35 -99
  291. package/build-style/editor.css +35 -101
  292. package/build-style/form-input/style-rtl.css +7 -8
  293. package/build-style/form-input/style.css +7 -8
  294. package/build-style/group/editor-rtl.css +0 -1
  295. package/build-style/group/editor.css +0 -1
  296. package/build-style/image/editor-rtl.css +6 -27
  297. package/build-style/image/editor.css +6 -27
  298. package/build-style/media-text/editor-rtl.css +3 -1
  299. package/build-style/media-text/editor.css +3 -1
  300. package/build-style/media-text/style-rtl.css +20 -0
  301. package/build-style/media-text/style.css +20 -0
  302. package/build-style/navigation/editor-rtl.css +1 -2
  303. package/build-style/navigation/editor.css +1 -2
  304. package/build-style/post-featured-image/style-rtl.css +1 -1
  305. package/build-style/post-featured-image/style.css +1 -1
  306. package/build-style/post-title/style-rtl.css +21 -0
  307. package/build-style/post-title/style.css +21 -0
  308. package/build-style/query-pagination/editor-rtl.css +2 -16
  309. package/build-style/query-pagination/editor.css +2 -18
  310. package/build-style/query-pagination/style-rtl.css +0 -11
  311. package/build-style/query-pagination/style.css +0 -13
  312. package/build-style/site-title/editor-rtl.css +0 -4
  313. package/build-style/site-title/editor.css +0 -4
  314. package/build-style/site-title/style-rtl.css +21 -0
  315. package/build-style/site-title/style.css +21 -0
  316. package/build-style/social-links/editor-rtl.css +17 -0
  317. package/build-style/social-links/editor.css +17 -0
  318. package/build-style/style-rtl.css +82 -24
  319. package/build-style/style.css +82 -26
  320. package/build-style/video/editor-rtl.css +0 -29
  321. package/build-style/video/editor.css +0 -29
  322. package/package.json +42 -35
  323. package/src/archives/edit.js +1 -1
  324. package/src/audio/edit.js +1 -0
  325. package/src/block/edit.js +9 -11
  326. package/src/button/edit.js +1 -1
  327. package/src/button/editor.scss +0 -5
  328. package/src/buttons/block.json +1 -1
  329. package/src/buttons/editor.scss +2 -8
  330. package/src/buttons/style.scss +2 -2
  331. package/src/categories/block.json +1 -0
  332. package/src/categories/index.php +13 -2
  333. package/src/comment-edit-link/block.json +13 -2
  334. package/src/comment-edit-link/style.scss +4 -0
  335. package/src/comment-reply-link/block.json +13 -2
  336. package/src/comment-reply-link/style.scss +4 -0
  337. package/src/comments/edit/comments-legacy.js +1 -0
  338. package/src/comments-pagination/editor.scss +1 -1
  339. package/src/cover/deprecated.js +3 -2
  340. package/src/cover/edit/block-controls.js +2 -0
  341. package/src/cover/edit/index.js +6 -1
  342. package/src/cover/edit/inspector-controls.js +3 -15
  343. package/src/cover/editor.scss +0 -5
  344. package/src/cover/test/edit.js +30 -26
  345. package/src/details/index.js +2 -0
  346. package/src/details/transforms.js +26 -0
  347. package/src/embed/edit.js +0 -7
  348. package/src/embed/embed-placeholder.js +10 -2
  349. package/src/embed/embed-preview.js +22 -2
  350. package/src/file/edit.js +11 -0
  351. package/src/file/index.php +1 -1
  352. package/src/file/transforms.js +26 -6
  353. package/src/form-input/deprecated.js +114 -1
  354. package/src/form-input/edit.js +17 -11
  355. package/src/form-input/save.js +13 -3
  356. package/src/form-input/style.scss +9 -8
  357. package/src/freeform/edit.js +4 -4
  358. package/src/freeform/editor.scss +1 -1
  359. package/src/freeform/modal.js +7 -1
  360. package/src/gallery/editor.scss +1 -1
  361. package/src/group/editor.scss +0 -1
  362. package/src/home-link/edit.js +4 -7
  363. package/src/image/edit.js +130 -47
  364. package/src/image/editor.scss +7 -41
  365. package/src/image/image.js +100 -67
  366. package/src/image/index.php +1 -1
  367. package/src/image/transforms.js +0 -23
  368. package/src/image/use-max-width-observer.js +32 -0
  369. package/src/image/utils.js +13 -1
  370. package/src/latest-posts/edit.js +1 -1
  371. package/src/media-text/deprecated.js +159 -3
  372. package/src/media-text/edit.js +5 -5
  373. package/src/media-text/editor.scss +3 -1
  374. package/src/media-text/image-fill.js +11 -0
  375. package/src/media-text/index.php +53 -43
  376. package/src/media-text/media-container.js +25 -25
  377. package/src/media-text/media-container.native.js +0 -2
  378. package/src/media-text/save.js +9 -13
  379. package/src/media-text/style.scss +21 -0
  380. package/src/media-text/test/image-fill.js +19 -0
  381. package/src/missing/edit.js +8 -3
  382. package/src/navigation/edit/deleted-navigation-warning.js +23 -13
  383. package/src/navigation/edit/index.js +1 -0
  384. package/src/navigation/edit/menu-inspector-controls.js +3 -1
  385. package/src/navigation/edit/navigation-menu-delete-control.js +1 -0
  386. package/src/navigation/edit/placeholder/index.js +1 -0
  387. package/src/navigation/edit/responsive-wrapper.js +2 -0
  388. package/src/navigation/edit/unsaved-inner-blocks.js +4 -4
  389. package/src/navigation/editor.scss +11 -4
  390. package/src/navigation/index.php +1 -1
  391. package/src/navigation-link/link-ui.js +4 -3
  392. package/src/page-list/convert-to-links-modal.js +6 -1
  393. package/src/page-list/edit.js +6 -1
  394. package/src/page-list/index.php +3 -1
  395. package/src/post-comments-form/form.js +1 -0
  396. package/src/post-featured-image/dimension-controls.js +4 -4
  397. package/src/post-featured-image/edit.js +3 -6
  398. package/src/post-featured-image/style.scss +1 -1
  399. package/src/post-title/block.json +4 -1
  400. package/src/post-title/style.scss +24 -0
  401. package/src/query/edit/enhanced-pagination-modal.js +7 -3
  402. package/src/query/edit/inspector-controls/enhanced-pagination-control.js +3 -3
  403. package/src/query/edit/inspector-controls/index.js +2 -9
  404. package/src/query/edit/query-content.js +7 -0
  405. package/src/query/edit/query-placeholder.js +2 -0
  406. package/src/query/index.php +1 -1
  407. package/src/query-pagination/editor.scss +1 -21
  408. package/src/query-pagination/style.scss +0 -15
  409. package/src/search/index.php +1 -1
  410. package/src/site-logo/edit.js +11 -20
  411. package/src/site-title/block.json +4 -1
  412. package/src/site-title/editor.scss +0 -4
  413. package/src/site-title/style.scss +24 -0
  414. package/src/social-link/edit.js +2 -0
  415. package/src/social-links/edit.js +17 -10
  416. package/src/social-links/editor.scss +24 -5
  417. package/src/style.scss +2 -0
  418. package/src/tag-cloud/index.php +7 -2
  419. package/src/template-part/edit/advanced-controls.js +0 -1
  420. package/src/template-part/edit/index.js +12 -10
  421. package/src/template-part/edit/inner-blocks.js +20 -1
  422. package/src/template-part/edit/placeholder.js +6 -1
  423. package/src/utils/hooks.js +11 -11
  424. package/src/video/edit.js +24 -21
  425. package/src/video/editor.scss +0 -45
  426. package/src/video/tracks-editor.js +3 -0
  427. package/src/media-text/test/media-container.js +0 -24
@@ -205,7 +205,7 @@
205
205
  }
206
206
 
207
207
  .wp-block-buttons {
208
- /* stylelint-disable indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
208
+ /* stylelint-disable @stylistic/indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
209
209
  }
210
210
  .wp-block-buttons.is-vertical {
211
211
  flex-direction: column;
@@ -245,7 +245,7 @@
245
245
  .is-content-justification-right,
246
246
  .is-content-justification-left,
247
247
  .is-content-justification-center) .wp-block-button.aligncenter {
248
- /* stylelint-enable indentation */
248
+ /* stylelint-enable @stylistic/indentation */
249
249
  margin-right: auto;
250
250
  margin-left: auto;
251
251
  width: 100%;
@@ -596,6 +596,14 @@
596
596
  box-sizing: border-box;
597
597
  }
598
598
 
599
+ .wp-block-comment-edit-link {
600
+ box-sizing: border-box;
601
+ }
602
+
603
+ .wp-block-comment-reply-link {
604
+ box-sizing: border-box;
605
+ }
606
+
599
607
  .wp-block-cover-image,
600
608
  .wp-block-cover {
601
609
  min-height: 430px;
@@ -1126,13 +1134,6 @@ section.wp-block-cover-image > h2,
1126
1134
  flex-direction: column;
1127
1135
  gap: 0.25em;
1128
1136
  margin-bottom: 0.5em;
1129
- /*
1130
- Small tweak to left-align the checkbox.
1131
- Even though `:has` is not currently supported in Firefox, this is a small tweak
1132
- and does not affect the functionality of the block or the user's experience.
1133
- There will be a minor inconsistency between browsers. However, it's more important to provide
1134
- a better experience for 80+% of users, until Firefox catches up and supports `:has`.
1135
- */
1136
1137
  }
1137
1138
  .wp-block-form-input__label.is-label-inline {
1138
1139
  flex-direction: row;
@@ -1143,9 +1144,15 @@ section.wp-block-cover-image > h2,
1143
1144
  margin-bottom: 0.5em;
1144
1145
  }
1145
1146
  .wp-block-form-input__label:has(input[type=checkbox]) {
1147
+ flex-direction: row;
1146
1148
  width: -moz-fit-content;
1147
1149
  width: fit-content;
1148
- /* stylelint-disable-next-line declaration-property-value-allowed-list -- This should be refactored to not use the row-reverse value. */
1150
+ }
1151
+ .wp-block-form-input__label:has(input[type=checkbox]) .wp-block-form-input__label-content {
1152
+ margin: 0;
1153
+ }
1154
+ .wp-block-form-input__label:has(.wp-block-form-input__label-content + input[type=checkbox]) {
1155
+ /* stylelint-disable-next-line declaration-property-value-allowed-list -- This style is required for old markup. */
1149
1156
  flex-direction: row-reverse;
1150
1157
  }
1151
1158
 
@@ -2111,6 +2118,7 @@ ul {
2111
2118
  vertical-align: middle;
2112
2119
  }
2113
2120
 
2121
+ /* `is-image-fill` is deprecated and the styles are kept for backwards compatibility. */
2114
2122
  .wp-block-media-text.is-image-fill > .wp-block-media-text__media {
2115
2123
  height: 100%;
2116
2124
  min-height: 250px;
@@ -2133,6 +2141,25 @@ ul {
2133
2141
  border: 0;
2134
2142
  }
2135
2143
 
2144
+ /* Image fill for versions 8 and onwards */
2145
+ .wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
2146
+ position: relative;
2147
+ height: 100%;
2148
+ min-height: 250px;
2149
+ }
2150
+
2151
+ .wp-block-media-text.is-image-fill-element > .wp-block-media-text__media > a {
2152
+ display: block;
2153
+ height: 100%;
2154
+ }
2155
+
2156
+ .wp-block-media-text.is-image-fill-element > .wp-block-media-text__media img {
2157
+ position: absolute;
2158
+ width: 100%;
2159
+ height: 100%;
2160
+ object-fit: cover;
2161
+ }
2162
+
2136
2163
  /*
2137
2164
  * Here we here not able to use a mobile first CSS approach.
2138
2165
  * Custom widths are set using inline styles, and on mobile,
@@ -2894,7 +2921,7 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
2894
2921
  display: block;
2895
2922
  height: 100%;
2896
2923
  }
2897
- .wp-block-post-featured-image img {
2924
+ .wp-block-post-featured-image :where(img) {
2898
2925
  max-width: 100%;
2899
2926
  width: 100%;
2900
2927
  height: auto;
@@ -2986,6 +3013,27 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
2986
3013
  word-break: break-word;
2987
3014
  box-sizing: border-box;
2988
3015
  }
3016
+ .wp-block-post-title[style*=font-weight] :where(a) {
3017
+ font-weight: inherit;
3018
+ }
3019
+ .wp-block-post-title[class*=-font-family] :where(a), .wp-block-post-title[style*=font-family] :where(a) {
3020
+ font-family: inherit;
3021
+ }
3022
+ .wp-block-post-title[class*=-font-size] :where(a), .wp-block-post-title[style*=font-size] :where(a) {
3023
+ font-size: inherit;
3024
+ }
3025
+ .wp-block-post-title[style*=line-height] :where(a) {
3026
+ line-height: inherit;
3027
+ }
3028
+ .wp-block-post-title[style*=font-style] :where(a) {
3029
+ font-style: inherit;
3030
+ }
3031
+ .wp-block-post-title[style*=letter-spacing] :where(a) {
3032
+ letter-spacing: inherit;
3033
+ }
3034
+ .wp-block-post-title[style*=text-decoration] :where(a) {
3035
+ text-decoration: inherit;
3036
+ }
2989
3037
  .wp-block-post-title a {
2990
3038
  display: inline-block;
2991
3039
  }
@@ -3125,17 +3173,6 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
3125
3173
  margin-inline-end: auto;
3126
3174
  }
3127
3175
 
3128
- .wp-block-query-pagination > .wp-block-query-pagination-next,
3129
- .wp-block-query-pagination > .wp-block-query-pagination-previous,
3130
- .wp-block-query-pagination > .wp-block-query-pagination-numbers {
3131
- margin-right: 0.5em;
3132
- margin-bottom: 0.5em;
3133
- }
3134
- .wp-block-query-pagination > .wp-block-query-pagination-next:last-child,
3135
- .wp-block-query-pagination > .wp-block-query-pagination-previous:last-child,
3136
- .wp-block-query-pagination > .wp-block-query-pagination-numbers:last-child {
3137
- margin-right: 0;
3138
- }
3139
3176
  .wp-block-query-pagination.is-content-justification-space-between > .wp-block-query-pagination-next:last-of-type {
3140
3177
  margin-inline-start: auto;
3141
3178
  }
@@ -3421,6 +3458,27 @@ ul.wp-block-rss.is-grid li {
3421
3458
  .wp-block-site-title {
3422
3459
  box-sizing: border-box;
3423
3460
  }
3461
+ .wp-block-site-title[style*=font-weight] :where(a) {
3462
+ font-weight: inherit;
3463
+ }
3464
+ .wp-block-site-title[class*=-font-family] :where(a), .wp-block-site-title[style*=font-family] :where(a) {
3465
+ font-family: inherit;
3466
+ }
3467
+ .wp-block-site-title[class*=-font-size] :where(a), .wp-block-site-title[style*=font-size] :where(a) {
3468
+ font-size: inherit;
3469
+ }
3470
+ .wp-block-site-title[style*=line-height] :where(a) {
3471
+ line-height: inherit;
3472
+ }
3473
+ .wp-block-site-title[style*=font-style] :where(a) {
3474
+ font-style: inherit;
3475
+ }
3476
+ .wp-block-site-title[style*=letter-spacing] :where(a) {
3477
+ letter-spacing: inherit;
3478
+ }
3479
+ .wp-block-site-title[style*=text-decoration] :where(a) {
3480
+ text-decoration: inherit;
3481
+ }
3424
3482
  .wp-block-site-title :where(a) {
3425
3483
  color: inherit;
3426
3484
  }
@@ -4113,8 +4171,8 @@ a[data-fn].fn::after {
4113
4171
  }
4114
4172
 
4115
4173
  :root {
4116
- /* stylelint-disable function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
4117
- /* stylelint-enable function-comma-space-after */
4174
+ /* stylelint-disable @stylistic/function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
4175
+ /* stylelint-enable @stylistic/function-comma-space-after */
4118
4176
  --wp--preset--font-size--normal: 16px;
4119
4177
  --wp--preset--font-size--huge: 42px;
4120
4178
  }
@@ -206,7 +206,7 @@
206
206
  }
207
207
 
208
208
  .wp-block-buttons {
209
- /* stylelint-disable indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
209
+ /* stylelint-disable @stylistic/indentation -- Disable the stylelint rule, otherwise this selector is ugly! */
210
210
  }
211
211
  .wp-block-buttons.is-vertical {
212
212
  flex-direction: column;
@@ -246,7 +246,7 @@
246
246
  .is-content-justification-right,
247
247
  .is-content-justification-left,
248
248
  .is-content-justification-center) .wp-block-button.aligncenter {
249
- /* stylelint-enable indentation */
249
+ /* stylelint-enable @stylistic/indentation */
250
250
  margin-left: auto;
251
251
  margin-right: auto;
252
252
  width: 100%;
@@ -601,6 +601,14 @@
601
601
  box-sizing: border-box;
602
602
  }
603
603
 
604
+ .wp-block-comment-edit-link {
605
+ box-sizing: border-box;
606
+ }
607
+
608
+ .wp-block-comment-reply-link {
609
+ box-sizing: border-box;
610
+ }
611
+
604
612
  .wp-block-cover-image,
605
613
  .wp-block-cover {
606
614
  min-height: 430px;
@@ -1134,13 +1142,6 @@ section.wp-block-cover-image > h2,
1134
1142
  flex-direction: column;
1135
1143
  gap: 0.25em;
1136
1144
  margin-bottom: 0.5em;
1137
- /*
1138
- Small tweak to left-align the checkbox.
1139
- Even though `:has` is not currently supported in Firefox, this is a small tweak
1140
- and does not affect the functionality of the block or the user's experience.
1141
- There will be a minor inconsistency between browsers. However, it's more important to provide
1142
- a better experience for 80+% of users, until Firefox catches up and supports `:has`.
1143
- */
1144
1145
  }
1145
1146
  .wp-block-form-input__label.is-label-inline {
1146
1147
  flex-direction: row;
@@ -1151,9 +1152,15 @@ section.wp-block-cover-image > h2,
1151
1152
  margin-bottom: 0.5em;
1152
1153
  }
1153
1154
  .wp-block-form-input__label:has(input[type=checkbox]) {
1155
+ flex-direction: row;
1154
1156
  width: -moz-fit-content;
1155
1157
  width: fit-content;
1156
- /* stylelint-disable-next-line declaration-property-value-allowed-list -- This should be refactored to not use the row-reverse value. */
1158
+ }
1159
+ .wp-block-form-input__label:has(input[type=checkbox]) .wp-block-form-input__label-content {
1160
+ margin: 0;
1161
+ }
1162
+ .wp-block-form-input__label:has(.wp-block-form-input__label-content + input[type=checkbox]) {
1163
+ /* stylelint-disable-next-line declaration-property-value-allowed-list -- This style is required for old markup. */
1157
1164
  flex-direction: row-reverse;
1158
1165
  }
1159
1166
 
@@ -2141,6 +2148,7 @@ ul {
2141
2148
  vertical-align: middle;
2142
2149
  }
2143
2150
 
2151
+ /* `is-image-fill` is deprecated and the styles are kept for backwards compatibility. */
2144
2152
  .wp-block-media-text.is-image-fill > .wp-block-media-text__media {
2145
2153
  height: 100%;
2146
2154
  min-height: 250px;
@@ -2163,6 +2171,25 @@ ul {
2163
2171
  border: 0;
2164
2172
  }
2165
2173
 
2174
+ /* Image fill for versions 8 and onwards */
2175
+ .wp-block-media-text.is-image-fill-element > .wp-block-media-text__media {
2176
+ position: relative;
2177
+ height: 100%;
2178
+ min-height: 250px;
2179
+ }
2180
+
2181
+ .wp-block-media-text.is-image-fill-element > .wp-block-media-text__media > a {
2182
+ display: block;
2183
+ height: 100%;
2184
+ }
2185
+
2186
+ .wp-block-media-text.is-image-fill-element > .wp-block-media-text__media img {
2187
+ position: absolute;
2188
+ width: 100%;
2189
+ height: 100%;
2190
+ object-fit: cover;
2191
+ }
2192
+
2166
2193
  /*
2167
2194
  * Here we here not able to use a mobile first CSS approach.
2168
2195
  * Custom widths are set using inline styles, and on mobile,
@@ -2924,7 +2951,7 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
2924
2951
  display: block;
2925
2952
  height: 100%;
2926
2953
  }
2927
- .wp-block-post-featured-image img {
2954
+ .wp-block-post-featured-image :where(img) {
2928
2955
  max-width: 100%;
2929
2956
  width: 100%;
2930
2957
  height: auto;
@@ -3016,6 +3043,27 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
3016
3043
  word-break: break-word;
3017
3044
  box-sizing: border-box;
3018
3045
  }
3046
+ .wp-block-post-title[style*=font-weight] :where(a) {
3047
+ font-weight: inherit;
3048
+ }
3049
+ .wp-block-post-title[class*=-font-family] :where(a), .wp-block-post-title[style*=font-family] :where(a) {
3050
+ font-family: inherit;
3051
+ }
3052
+ .wp-block-post-title[class*=-font-size] :where(a), .wp-block-post-title[style*=font-size] :where(a) {
3053
+ font-size: inherit;
3054
+ }
3055
+ .wp-block-post-title[style*=line-height] :where(a) {
3056
+ line-height: inherit;
3057
+ }
3058
+ .wp-block-post-title[style*=font-style] :where(a) {
3059
+ font-style: inherit;
3060
+ }
3061
+ .wp-block-post-title[style*=letter-spacing] :where(a) {
3062
+ letter-spacing: inherit;
3063
+ }
3064
+ .wp-block-post-title[style*=text-decoration] :where(a) {
3065
+ text-decoration: inherit;
3066
+ }
3019
3067
  .wp-block-post-title a {
3020
3068
  display: inline-block;
3021
3069
  }
@@ -3155,19 +3203,6 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
3155
3203
  margin-inline-end: auto;
3156
3204
  }
3157
3205
 
3158
- .wp-block-query-pagination > .wp-block-query-pagination-next,
3159
- .wp-block-query-pagination > .wp-block-query-pagination-previous,
3160
- .wp-block-query-pagination > .wp-block-query-pagination-numbers {
3161
- /*rtl:ignore*/
3162
- margin-right: 0.5em;
3163
- margin-bottom: 0.5em;
3164
- }
3165
- .wp-block-query-pagination > .wp-block-query-pagination-next:last-child,
3166
- .wp-block-query-pagination > .wp-block-query-pagination-previous:last-child,
3167
- .wp-block-query-pagination > .wp-block-query-pagination-numbers:last-child {
3168
- /*rtl:ignore*/
3169
- margin-right: 0;
3170
- }
3171
3206
  .wp-block-query-pagination.is-content-justification-space-between > .wp-block-query-pagination-next:last-of-type {
3172
3207
  margin-inline-start: auto;
3173
3208
  }
@@ -3456,6 +3491,27 @@ ul.wp-block-rss.is-grid li {
3456
3491
  .wp-block-site-title {
3457
3492
  box-sizing: border-box;
3458
3493
  }
3494
+ .wp-block-site-title[style*=font-weight] :where(a) {
3495
+ font-weight: inherit;
3496
+ }
3497
+ .wp-block-site-title[class*=-font-family] :where(a), .wp-block-site-title[style*=font-family] :where(a) {
3498
+ font-family: inherit;
3499
+ }
3500
+ .wp-block-site-title[class*=-font-size] :where(a), .wp-block-site-title[style*=font-size] :where(a) {
3501
+ font-size: inherit;
3502
+ }
3503
+ .wp-block-site-title[style*=line-height] :where(a) {
3504
+ line-height: inherit;
3505
+ }
3506
+ .wp-block-site-title[style*=font-style] :where(a) {
3507
+ font-style: inherit;
3508
+ }
3509
+ .wp-block-site-title[style*=letter-spacing] :where(a) {
3510
+ letter-spacing: inherit;
3511
+ }
3512
+ .wp-block-site-title[style*=text-decoration] :where(a) {
3513
+ text-decoration: inherit;
3514
+ }
3459
3515
  .wp-block-site-title :where(a) {
3460
3516
  color: inherit;
3461
3517
  }
@@ -4148,8 +4204,8 @@ a[data-fn].fn::after {
4148
4204
  }
4149
4205
 
4150
4206
  :root {
4151
- /* stylelint-disable function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
4152
- /* stylelint-enable function-comma-space-after */
4207
+ /* stylelint-disable @stylistic/function-comma-space-after -- We can not use spacing because of WP multi site kses rule. */
4208
+ /* stylelint-enable @stylistic/function-comma-space-after */
4153
4209
  --wp--preset--font-size--normal: 16px;
4154
4210
  --wp--preset--font-size--huge: 42px;
4155
4211
  }
@@ -89,28 +89,6 @@
89
89
  /**
90
90
  * Reset the WP Admin page styles for Gutenberg-like pages.
91
91
  */
92
- .wp-block-video.wp-block-video.is-selected .components-placeholder {
93
- color: #1e1e1e;
94
- background-color: #fff;
95
- box-shadow: inset 0 0 0 1px #1e1e1e;
96
- border: none;
97
- border-radius: 2px;
98
- }
99
- .wp-block-video.wp-block-video.is-selected .components-placeholder > svg {
100
- opacity: 0;
101
- }
102
- .wp-block-video.wp-block-video.is-selected .components-placeholder .components-placeholder__illustration {
103
- display: none;
104
- }
105
- .wp-block-video.wp-block-video.is-selected .components-placeholder::before {
106
- opacity: 0;
107
- }
108
- .wp-block-video.wp-block-video .components-placeholder__label,
109
- .wp-block-video.wp-block-video .components-placeholder__instructions,
110
- .wp-block-video.wp-block-video .components-button {
111
- transition: none;
112
- }
113
-
114
92
  .wp-block[data-align=center] > .wp-block-video {
115
93
  text-align: center;
116
94
  }
@@ -156,16 +134,9 @@
156
134
 
157
135
  .block-library-video-tracks-editor > .components-popover__content {
158
136
  width: 360px;
159
- padding: 0;
160
137
  }
161
138
 
162
139
  .block-library-video-tracks-editor__track-list .components-menu-group__label,
163
140
  .block-library-video-tracks-editor__add-tracks-container .components-menu-group__label {
164
141
  padding: 0;
165
- }
166
-
167
- .block-library-video-tracks-editor__single-track-editor,
168
- .block-library-video-tracks-editor__track-list,
169
- .block-library-video-tracks-editor__add-tracks-container {
170
- padding: 12px;
171
142
  }
@@ -89,28 +89,6 @@
89
89
  /**
90
90
  * Reset the WP Admin page styles for Gutenberg-like pages.
91
91
  */
92
- .wp-block-video.wp-block-video.is-selected .components-placeholder {
93
- color: #1e1e1e;
94
- background-color: #fff;
95
- box-shadow: inset 0 0 0 1px #1e1e1e;
96
- border: none;
97
- border-radius: 2px;
98
- }
99
- .wp-block-video.wp-block-video.is-selected .components-placeholder > svg {
100
- opacity: 0;
101
- }
102
- .wp-block-video.wp-block-video.is-selected .components-placeholder .components-placeholder__illustration {
103
- display: none;
104
- }
105
- .wp-block-video.wp-block-video.is-selected .components-placeholder::before {
106
- opacity: 0;
107
- }
108
- .wp-block-video.wp-block-video .components-placeholder__label,
109
- .wp-block-video.wp-block-video .components-placeholder__instructions,
110
- .wp-block-video.wp-block-video .components-button {
111
- transition: none;
112
- }
113
-
114
92
  .wp-block[data-align=center] > .wp-block-video {
115
93
  text-align: center;
116
94
  }
@@ -156,16 +134,9 @@
156
134
 
157
135
  .block-library-video-tracks-editor > .components-popover__content {
158
136
  width: 360px;
159
- padding: 0;
160
137
  }
161
138
 
162
139
  .block-library-video-tracks-editor__track-list .components-menu-group__label,
163
140
  .block-library-video-tracks-editor__add-tracks-container .components-menu-group__label {
164
141
  padding: 0;
165
- }
166
-
167
- .block-library-video-tracks-editor__single-track-editor,
168
- .block-library-video-tracks-editor__track-list,
169
- .block-library-video-tracks-editor__add-tracks-container {
170
- padding: 12px;
171
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "9.6.1",
3
+ "version": "9.7.1-next.1f6eadc42.0",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -30,41 +30,48 @@
30
30
  "src/**/*.scss",
31
31
  "{src,build,build-module}/*/init.js"
32
32
  ],
33
+ "wpScriptModuleExports": {
34
+ "./file/view": "./build-module/file/view.js",
35
+ "./image/view": "./build-module/image/view.js",
36
+ "./navigation/view": "./build-module/navigation/view.js",
37
+ "./query/view": "./build-module/query/view.js",
38
+ "./search/view": "./build-module/search/view.js"
39
+ },
33
40
  "dependencies": {
34
41
  "@babel/runtime": "^7.16.0",
35
- "@wordpress/a11y": "^4.6.0",
36
- "@wordpress/api-fetch": "^7.6.0",
37
- "@wordpress/autop": "^4.6.0",
38
- "@wordpress/blob": "^4.6.0",
39
- "@wordpress/block-editor": "^14.1.0",
40
- "@wordpress/blocks": "^13.6.0",
41
- "@wordpress/components": "^28.6.0",
42
- "@wordpress/compose": "^7.6.0",
43
- "@wordpress/core-data": "^7.6.0",
44
- "@wordpress/data": "^10.6.0",
45
- "@wordpress/date": "^5.6.0",
46
- "@wordpress/deprecated": "^4.6.0",
47
- "@wordpress/dom": "^4.6.0",
48
- "@wordpress/element": "^6.6.0",
49
- "@wordpress/escape-html": "^3.6.0",
50
- "@wordpress/hooks": "^4.6.0",
51
- "@wordpress/html-entities": "^4.6.0",
52
- "@wordpress/i18n": "^5.6.0",
53
- "@wordpress/icons": "^10.6.0",
54
- "@wordpress/interactivity": "^6.6.0",
55
- "@wordpress/interactivity-router": "^2.6.0",
56
- "@wordpress/keyboard-shortcuts": "^5.6.0",
57
- "@wordpress/keycodes": "^4.6.0",
58
- "@wordpress/notices": "^5.6.0",
59
- "@wordpress/patterns": "^2.6.0",
60
- "@wordpress/primitives": "^4.6.0",
61
- "@wordpress/private-apis": "^1.6.0",
62
- "@wordpress/reusable-blocks": "^5.6.0",
63
- "@wordpress/rich-text": "^7.6.0",
64
- "@wordpress/server-side-render": "^5.6.0",
65
- "@wordpress/url": "^4.6.0",
66
- "@wordpress/viewport": "^6.6.0",
67
- "@wordpress/wordcount": "^4.6.0",
42
+ "@wordpress/a11y": "^4.7.1-next.1f6eadc42.0",
43
+ "@wordpress/api-fetch": "^7.7.1-next.1f6eadc42.0",
44
+ "@wordpress/autop": "^4.7.1-next.1f6eadc42.0",
45
+ "@wordpress/blob": "^4.7.1-next.1f6eadc42.0",
46
+ "@wordpress/block-editor": "^14.2.1-next.1f6eadc42.0",
47
+ "@wordpress/blocks": "^13.7.1-next.1f6eadc42.0",
48
+ "@wordpress/components": "^28.8.1-next.1f6eadc42.0",
49
+ "@wordpress/compose": "^7.8.1-next.1f6eadc42.0",
50
+ "@wordpress/core-data": "^7.7.1-next.1f6eadc42.0",
51
+ "@wordpress/data": "^10.7.1-next.1f6eadc42.0",
52
+ "@wordpress/date": "^5.7.1-next.1f6eadc42.0",
53
+ "@wordpress/deprecated": "^4.7.1-next.1f6eadc42.0",
54
+ "@wordpress/dom": "^4.7.1-next.1f6eadc42.0",
55
+ "@wordpress/element": "^6.7.1-next.1f6eadc42.0",
56
+ "@wordpress/escape-html": "^3.7.1-next.1f6eadc42.0",
57
+ "@wordpress/hooks": "^4.7.1-next.1f6eadc42.0",
58
+ "@wordpress/html-entities": "^4.7.1-next.1f6eadc42.0",
59
+ "@wordpress/i18n": "^5.7.1-next.1f6eadc42.0",
60
+ "@wordpress/icons": "^10.7.1-next.1f6eadc42.0",
61
+ "@wordpress/interactivity": "^6.7.2-next.1f6eadc42.0",
62
+ "@wordpress/interactivity-router": "^2.7.1-next.1f6eadc42.0",
63
+ "@wordpress/keyboard-shortcuts": "^5.7.1-next.1f6eadc42.0",
64
+ "@wordpress/keycodes": "^4.7.1-next.1f6eadc42.0",
65
+ "@wordpress/notices": "^5.7.1-next.1f6eadc42.0",
66
+ "@wordpress/patterns": "^2.7.1-next.1f6eadc42.0",
67
+ "@wordpress/primitives": "^4.7.1-next.1f6eadc42.0",
68
+ "@wordpress/private-apis": "^1.7.1-next.1f6eadc42.0",
69
+ "@wordpress/reusable-blocks": "^5.7.1-next.1f6eadc42.0",
70
+ "@wordpress/rich-text": "^7.7.1-next.1f6eadc42.0",
71
+ "@wordpress/server-side-render": "^5.7.1-next.1f6eadc42.0",
72
+ "@wordpress/url": "^4.7.1-next.1f6eadc42.0",
73
+ "@wordpress/viewport": "^6.7.1-next.1f6eadc42.0",
74
+ "@wordpress/wordcount": "^4.7.1-next.1f6eadc42.0",
68
75
  "change-case": "^4.1.2",
69
76
  "clsx": "^2.1.1",
70
77
  "colord": "^2.7.0",
@@ -82,5 +89,5 @@
82
89
  "publishConfig": {
83
90
  "access": "public"
84
91
  },
85
- "gitHead": "2c178a34c8ea9b1c0e51c1fd48e24da95c418f6e"
92
+ "gitHead": "960a22b909c9fdbc90e7435b7ba8947b9218837a"
86
93
  }
@@ -53,7 +53,7 @@ export default function ArchivesEdit( { attributes, setAttributes } ) {
53
53
  <SelectControl
54
54
  __next40pxDefaultSize
55
55
  __nextHasNoMarginBottom
56
- label={ __( 'Group by:' ) }
56
+ label={ __( 'Group by' ) }
57
57
  options={ [
58
58
  { label: __( 'Year' ), value: 'yearly' },
59
59
  { label: __( 'Month' ), value: 'monthly' },
package/src/audio/edit.js CHANGED
@@ -155,6 +155,7 @@ function AudioEdit( {
155
155
  onSelect={ onSelectAudio }
156
156
  onSelectURL={ onSelectURL }
157
157
  onError={ onUploadError }
158
+ onReset={ () => onSelectAudio( undefined ) }
158
159
  />
159
160
  </BlockControls>
160
161
  ) }
package/src/block/edit.js CHANGED
@@ -29,6 +29,7 @@ import {
29
29
  privateApis as blockEditorPrivateApis,
30
30
  store as blockEditorStore,
31
31
  BlockControls,
32
+ InnerBlocks,
32
33
  } from '@wordpress/block-editor';
33
34
  import { privateApis as patternsPrivateApis } from '@wordpress/patterns';
34
35
  import { store as blocksStore } from '@wordpress/blocks';
@@ -193,19 +194,15 @@ function ReusableBlockEdit( {
193
194
  hasPatternOverridesSource,
194
195
  } = useSelect(
195
196
  ( select ) => {
196
- const {
197
- getBlocks,
198
- getSettings,
199
- getBlockEditingMode: _getBlockEditingMode,
200
- } = select( blockEditorStore );
197
+ const { getBlocks, getSettings, getBlockEditingMode } =
198
+ select( blockEditorStore );
201
199
  const { getBlockBindingsSource } = unlock( select( blocksStore ) );
202
200
  // For editing link to the site editor if the theme and user permissions support it.
203
201
  return {
204
202
  innerBlocks: getBlocks( patternClientId ),
205
- getBlockEditingMode: _getBlockEditingMode,
206
203
  onNavigateToEntityRecord:
207
204
  getSettings().onNavigateToEntityRecord,
208
- editingMode: _getBlockEditingMode( patternClientId ),
205
+ editingMode: getBlockEditingMode( patternClientId ),
209
206
  hasPatternOverridesSource: !! getBlockBindingsSource(
210
207
  'core/pattern-overrides'
211
208
  ),
@@ -247,14 +244,15 @@ function ReusableBlockEdit( {
247
244
  ),
248
245
  } );
249
246
 
250
- // Use `blocks` variable until `innerBlocks` is populated, which has the proper clientIds.
251
247
  const innerBlocksProps = useInnerBlocksProps( blockProps, {
252
248
  templateLock: 'all',
253
249
  layout,
254
- value: innerBlocks.length > 0 ? innerBlocks : blocks,
250
+ value: blocks,
255
251
  onInput: NOOP,
256
252
  onChange: NOOP,
257
- renderAppender: blocks?.length ? undefined : blocks.ButtonBlockAppender,
253
+ renderAppender: blocks?.length
254
+ ? undefined
255
+ : InnerBlocks.ButtonBlockAppender,
258
256
  } );
259
257
 
260
258
  const handleEditOriginal = () => {
@@ -292,7 +290,7 @@ function ReusableBlockEdit( {
292
290
 
293
291
  return (
294
292
  <>
295
- { hasResolved && (
293
+ { hasResolved && ! isMissing && (
296
294
  <ReusableBlockControl
297
295
  recordId={ ref }
298
296
  canOverrideBlocks={ canOverrideBlocks }
@@ -254,7 +254,7 @@ function ButtonEdit( props ) {
254
254
  } ),
255
255
  };
256
256
  },
257
- [ isSelected, metadata?.bindings?.url ]
257
+ [ context, isSelected, metadata?.bindings?.url ]
258
258
  );
259
259
 
260
260
  return (
@@ -32,8 +32,3 @@
32
32
  div[data-type="core/button"] {
33
33
  display: table;
34
34
  }
35
-
36
- .editor-styles-wrapper .wp-block-button[style*="text-decoration"] .wp-block-button__link {
37
- text-decoration: inherit;
38
- }
39
-
@@ -21,7 +21,7 @@
21
21
  }
22
22
  },
23
23
  "spacing": {
24
- "blockGap": true,
24
+ "blockGap": [ "horizontal", "vertical" ],
25
25
  "padding": true,
26
26
  "margin": [ "top", "bottom" ],
27
27
  "__experimentalDefaultControls": {