@wordpress/block-library 11.0.2-next.v.202609171837.0 → 11.1.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 (450) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/build/accordion/block.json +4 -1
  3. package/build/accordion-item/block.json +7 -1
  4. package/build/accordion-panel/block.json +9 -1
  5. package/build/archives/block.json +9 -0
  6. package/build/audio/block.json +8 -0
  7. package/build/breadcrumbs/block.json +3 -0
  8. package/build/breadcrumbs/edit.cjs.map +3 -3
  9. package/build/buttons/block.json +9 -0
  10. package/build/categories/block.json +12 -1
  11. package/build/code/block.json +9 -0
  12. package/build/column/block.json +9 -0
  13. package/build/columns/block.json +9 -0
  14. package/build/comment-author-name/block.json +3 -0
  15. package/build/comment-content/block.json +5 -0
  16. package/build/comment-date/block.json +3 -0
  17. package/build/comment-edit-link/block.json +3 -0
  18. package/build/comment-reply-link/block.json +3 -0
  19. package/build/comments/block.json +10 -0
  20. package/build/comments-pagination/block.json +3 -0
  21. package/build/comments-pagination-next/block.json +3 -0
  22. package/build/comments-pagination-numbers/block.json +3 -0
  23. package/build/comments-pagination-previous/block.json +6 -0
  24. package/build/comments-title/block.json +3 -0
  25. package/build/cover/edit/index.cjs +4 -1
  26. package/build/cover/edit/index.cjs.map +2 -2
  27. package/build/cover/edit/inspector-controls.cjs +52 -13
  28. package/build/cover/edit/inspector-controls.cjs.map +2 -2
  29. package/build/details/block.json +11 -0
  30. package/build/file/block.json +9 -0
  31. package/build/footnotes/block.json +9 -0
  32. package/build/gallery/block.json +9 -0
  33. package/build/gallery/edit.cjs +1 -2
  34. package/build/gallery/edit.cjs.map +2 -2
  35. package/build/group/block.json +1 -0
  36. package/build/heading/block.json +9 -0
  37. package/build/home-link/block.json +18 -0
  38. package/build/home-link/edit.cjs.map +3 -3
  39. package/build/image/image.cjs +10 -8
  40. package/build/image/image.cjs.map +3 -3
  41. package/build/image/use-open-image-media-editor-modal.cjs +20 -0
  42. package/build/image/use-open-image-media-editor-modal.cjs.map +2 -2
  43. package/build/latest-comments/block.json +10 -0
  44. package/build/latest-posts/block.json +10 -0
  45. package/build/loginout/block.json +10 -0
  46. package/build/math/block.json +10 -0
  47. package/build/media-text/block.json +1 -0
  48. package/build/navigation/edit/index.cjs +1 -4
  49. package/build/navigation/edit/index.cjs.map +2 -2
  50. package/build/navigation-link/link-ui/page-creator.cjs.map +3 -3
  51. package/build/navigation-link/shared/controls.cjs.map +3 -3
  52. package/build/navigation-link/shared/use-link-preview.cjs +13 -13
  53. package/build/navigation-link/shared/use-link-preview.cjs.map +2 -2
  54. package/build/navigation-overlay-close/block.json +7 -0
  55. package/build/navigation-submenu/block.json +6 -0
  56. package/build/navigation-submenu/edit.cjs +9 -1
  57. package/build/navigation-submenu/edit.cjs.map +3 -3
  58. package/build/page-list/block.json +10 -0
  59. package/build/paragraph/edit.cjs +1 -2
  60. package/build/paragraph/edit.cjs.map +2 -2
  61. package/build/playlist/block.json +1 -0
  62. package/build/post-author-biography/block.json +4 -0
  63. package/build/post-author-name/block.json +5 -0
  64. package/build/post-comments-count/block.json +3 -0
  65. package/build/post-comments-form/block.json +10 -0
  66. package/build/post-content/block.json +2 -0
  67. package/build/post-date/block.json +3 -0
  68. package/build/post-excerpt/block.json +5 -0
  69. package/build/post-featured-image/edit.cjs +11 -9
  70. package/build/post-featured-image/edit.cjs.map +2 -2
  71. package/build/post-navigation-link/block.json +30 -0
  72. package/build/post-navigation-link/edit.cjs +13 -2
  73. package/build/post-navigation-link/edit.cjs.map +3 -3
  74. package/build/post-template/block.json +13 -1
  75. package/build/post-terms/block.json +6 -0
  76. package/build/post-time-to-read/block.json +6 -0
  77. package/build/post-title/block.json +10 -0
  78. package/build/preformatted/block.json +7 -0
  79. package/build/pullquote/block.json +1 -0
  80. package/build/query-no-results/block.json +10 -2
  81. package/build/query-pagination/block.json +3 -0
  82. package/build/query-pagination-next/block.json +3 -0
  83. package/build/query-pagination-numbers/block.json +3 -0
  84. package/build/query-pagination-previous/block.json +3 -0
  85. package/build/query-title/block.json +3 -0
  86. package/build/query-total/block.json +6 -0
  87. package/build/quote/block.json +1 -0
  88. package/build/read-more/block.json +6 -0
  89. package/build/rss/block.json +6 -0
  90. package/build/site-tagline/block.json +8 -1
  91. package/build/site-title/block.json +7 -1
  92. package/build/social-links/block.json +3 -0
  93. package/build/social-links/edit.cjs +2 -3
  94. package/build/social-links/edit.cjs.map +2 -2
  95. package/build/tab-panel/block.json +25 -0
  96. package/build/tab-panel/controls.cjs.map +3 -3
  97. package/build/tab-panels/block.json +18 -1
  98. package/build/table-of-contents/block.json +7 -0
  99. package/build/tabs/block.json +24 -1
  100. package/build/tag-cloud/block.json +19 -0
  101. package/build/template-part/edit/selection-modal.cjs.map +1 -1
  102. package/build/term-count/block.json +7 -0
  103. package/build/term-description/block.json +9 -0
  104. package/build/term-name/block.json +10 -0
  105. package/build/term-template/block.json +10 -1
  106. package/build/utils/search-patterns.cjs +7 -43
  107. package/build/utils/search-patterns.cjs.map +3 -3
  108. package/build/utils/style-state.cjs +4 -6
  109. package/build/utils/style-state.cjs.map +2 -2
  110. package/build/video/block.json +6 -0
  111. package/build/video/edit.cjs +23 -15
  112. package/build/video/edit.cjs.map +3 -3
  113. package/build/video/index.cjs +0 -2
  114. package/build/video/index.cjs.map +3 -3
  115. package/build/video/save.cjs +5 -1
  116. package/build/video/save.cjs.map +3 -3
  117. package/build-module/accordion/block.json +4 -1
  118. package/build-module/accordion-item/block.json +7 -1
  119. package/build-module/accordion-panel/block.json +9 -1
  120. package/build-module/archives/block.json +9 -0
  121. package/build-module/audio/block.json +8 -0
  122. package/build-module/breadcrumbs/block.json +3 -0
  123. package/build-module/breadcrumbs/edit.mjs +3 -3
  124. package/build-module/breadcrumbs/edit.mjs.map +2 -2
  125. package/build-module/buttons/block.json +9 -0
  126. package/build-module/categories/block.json +12 -1
  127. package/build-module/code/block.json +9 -0
  128. package/build-module/column/block.json +9 -0
  129. package/build-module/columns/block.json +9 -0
  130. package/build-module/comment-author-name/block.json +3 -0
  131. package/build-module/comment-content/block.json +5 -0
  132. package/build-module/comment-date/block.json +3 -0
  133. package/build-module/comment-edit-link/block.json +3 -0
  134. package/build-module/comment-reply-link/block.json +3 -0
  135. package/build-module/comments/block.json +10 -0
  136. package/build-module/comments-pagination/block.json +3 -0
  137. package/build-module/comments-pagination-next/block.json +3 -0
  138. package/build-module/comments-pagination-numbers/block.json +3 -0
  139. package/build-module/comments-pagination-previous/block.json +6 -0
  140. package/build-module/comments-title/block.json +3 -0
  141. package/build-module/cover/edit/index.mjs +4 -1
  142. package/build-module/cover/edit/index.mjs.map +2 -2
  143. package/build-module/cover/edit/inspector-controls.mjs +57 -14
  144. package/build-module/cover/edit/inspector-controls.mjs.map +2 -2
  145. package/build-module/details/block.json +11 -0
  146. package/build-module/file/block.json +9 -0
  147. package/build-module/footnotes/block.json +9 -0
  148. package/build-module/gallery/block.json +9 -0
  149. package/build-module/gallery/edit.mjs +1 -2
  150. package/build-module/gallery/edit.mjs.map +2 -2
  151. package/build-module/group/block.json +1 -0
  152. package/build-module/heading/block.json +9 -0
  153. package/build-module/home-link/block.json +18 -0
  154. package/build-module/home-link/edit.mjs +2 -2
  155. package/build-module/home-link/edit.mjs.map +2 -2
  156. package/build-module/image/image.mjs +12 -10
  157. package/build-module/image/image.mjs.map +2 -2
  158. package/build-module/image/use-open-image-media-editor-modal.mjs +20 -0
  159. package/build-module/image/use-open-image-media-editor-modal.mjs.map +2 -2
  160. package/build-module/latest-comments/block.json +10 -0
  161. package/build-module/latest-posts/block.json +10 -0
  162. package/build-module/loginout/block.json +10 -0
  163. package/build-module/math/block.json +10 -0
  164. package/build-module/media-text/block.json +1 -0
  165. package/build-module/navigation/edit/index.mjs +1 -4
  166. package/build-module/navigation/edit/index.mjs.map +2 -2
  167. package/build-module/navigation-link/link-ui/page-creator.mjs +2 -2
  168. package/build-module/navigation-link/link-ui/page-creator.mjs.map +2 -2
  169. package/build-module/navigation-link/shared/controls.mjs +2 -2
  170. package/build-module/navigation-link/shared/controls.mjs.map +2 -2
  171. package/build-module/navigation-link/shared/use-link-preview.mjs +13 -13
  172. package/build-module/navigation-link/shared/use-link-preview.mjs.map +2 -2
  173. package/build-module/navigation-overlay-close/block.json +7 -0
  174. package/build-module/navigation-submenu/block.json +6 -0
  175. package/build-module/navigation-submenu/edit.mjs +11 -2
  176. package/build-module/navigation-submenu/edit.mjs.map +2 -2
  177. package/build-module/page-list/block.json +10 -0
  178. package/build-module/paragraph/edit.mjs +1 -2
  179. package/build-module/paragraph/edit.mjs.map +2 -2
  180. package/build-module/playlist/block.json +1 -0
  181. package/build-module/post-author-biography/block.json +4 -0
  182. package/build-module/post-author-name/block.json +5 -0
  183. package/build-module/post-comments-count/block.json +3 -0
  184. package/build-module/post-comments-form/block.json +10 -0
  185. package/build-module/post-content/block.json +2 -0
  186. package/build-module/post-date/block.json +3 -0
  187. package/build-module/post-excerpt/block.json +5 -0
  188. package/build-module/post-featured-image/edit.mjs +11 -9
  189. package/build-module/post-featured-image/edit.mjs.map +2 -2
  190. package/build-module/post-navigation-link/block.json +30 -0
  191. package/build-module/post-navigation-link/edit.mjs +17 -3
  192. package/build-module/post-navigation-link/edit.mjs.map +2 -2
  193. package/build-module/post-template/block.json +13 -1
  194. package/build-module/post-terms/block.json +6 -0
  195. package/build-module/post-time-to-read/block.json +6 -0
  196. package/build-module/post-title/block.json +10 -0
  197. package/build-module/preformatted/block.json +7 -0
  198. package/build-module/pullquote/block.json +1 -0
  199. package/build-module/query-no-results/block.json +10 -2
  200. package/build-module/query-pagination/block.json +3 -0
  201. package/build-module/query-pagination-next/block.json +3 -0
  202. package/build-module/query-pagination-numbers/block.json +3 -0
  203. package/build-module/query-pagination-previous/block.json +3 -0
  204. package/build-module/query-title/block.json +3 -0
  205. package/build-module/query-total/block.json +6 -0
  206. package/build-module/quote/block.json +1 -0
  207. package/build-module/read-more/block.json +6 -0
  208. package/build-module/rss/block.json +6 -0
  209. package/build-module/site-tagline/block.json +8 -1
  210. package/build-module/site-title/block.json +7 -1
  211. package/build-module/social-links/block.json +3 -0
  212. package/build-module/social-links/edit.mjs +2 -3
  213. package/build-module/social-links/edit.mjs.map +2 -2
  214. package/build-module/tab-panel/block.json +25 -0
  215. package/build-module/tab-panel/controls.mjs +2 -2
  216. package/build-module/tab-panel/controls.mjs.map +2 -2
  217. package/build-module/tab-panels/block.json +18 -1
  218. package/build-module/table-of-contents/block.json +7 -0
  219. package/build-module/tabs/block.json +24 -1
  220. package/build-module/tag-cloud/block.json +19 -0
  221. package/build-module/template-part/edit/selection-modal.mjs.map +1 -1
  222. package/build-module/term-count/block.json +7 -0
  223. package/build-module/term-description/block.json +9 -0
  224. package/build-module/term-name/block.json +10 -0
  225. package/build-module/term-template/block.json +10 -1
  226. package/build-module/utils/search-patterns.mjs +7 -32
  227. package/build-module/utils/search-patterns.mjs.map +2 -2
  228. package/build-module/utils/style-state.mjs +6 -4
  229. package/build-module/utils/style-state.mjs.map +2 -2
  230. package/build-module/video/block.json +6 -0
  231. package/build-module/video/edit.mjs +25 -16
  232. package/build-module/video/edit.mjs.map +2 -2
  233. package/build-module/video/index.mjs +0 -2
  234. package/build-module/video/index.mjs.map +2 -2
  235. package/build-module/video/save.mjs +7 -2
  236. package/build-module/video/save.mjs.map +2 -2
  237. package/build-style/editor-rtl.css +12 -2
  238. package/build-style/editor.css +12 -2
  239. package/build-style/image/editor-rtl.css +6 -0
  240. package/build-style/image/editor.css +6 -0
  241. package/build-style/navigation/style-rtl.css +18 -3
  242. package/build-style/navigation/style.css +18 -3
  243. package/build-style/navigation-link/editor-rtl.css +3 -1
  244. package/build-style/navigation-link/editor.css +3 -1
  245. package/build-style/navigation-overlay-close/style-rtl.css +1 -1
  246. package/build-style/navigation-overlay-close/style.css +1 -1
  247. package/build-style/navigation-submenu/editor-rtl.css +3 -1
  248. package/build-style/navigation-submenu/editor.css +3 -1
  249. package/build-style/post-navigation-link/style-rtl.css +3 -0
  250. package/build-style/post-navigation-link/style.css +3 -0
  251. package/build-style/style-rtl.css +24 -4
  252. package/build-style/style.css +24 -4
  253. package/build-style/tab-panel/style-rtl.css +2 -0
  254. package/build-style/tab-panel/style.css +2 -0
  255. package/package.json +41 -42
  256. package/src/accordion/README.md +3 -0
  257. package/src/accordion/block.json +4 -1
  258. package/src/accordion-item/README.md +5 -0
  259. package/src/accordion-item/block.json +7 -1
  260. package/src/accordion-panel/README.md +7 -0
  261. package/src/accordion-panel/block.json +9 -1
  262. package/src/archives/README.md +4 -0
  263. package/src/archives/block.json +9 -0
  264. package/src/audio/README.md +4 -0
  265. package/src/audio/block.json +8 -0
  266. package/src/breadcrumbs/README.md +2 -0
  267. package/src/breadcrumbs/block.json +3 -0
  268. package/src/breadcrumbs/edit.jsx +3 -3
  269. package/src/breadcrumbs/index.php +1 -1
  270. package/src/buttons/README.md +4 -0
  271. package/src/buttons/block.json +9 -0
  272. package/src/categories/README.md +6 -0
  273. package/src/categories/block.json +12 -1
  274. package/src/code/README.md +4 -0
  275. package/src/code/block.json +9 -0
  276. package/src/column/README.md +4 -0
  277. package/src/column/block.json +9 -0
  278. package/src/columns/README.md +4 -0
  279. package/src/columns/block.json +9 -0
  280. package/src/comment-author-name/README.md +2 -0
  281. package/src/comment-author-name/block.json +3 -0
  282. package/src/comment-content/README.md +4 -0
  283. package/src/comment-content/block.json +5 -0
  284. package/src/comment-date/README.md +2 -0
  285. package/src/comment-date/block.json +3 -0
  286. package/src/comment-edit-link/README.md +2 -0
  287. package/src/comment-edit-link/block.json +3 -0
  288. package/src/comment-reply-link/README.md +2 -0
  289. package/src/comment-reply-link/block.json +3 -0
  290. package/src/comments/README.md +5 -0
  291. package/src/comments/block.json +10 -0
  292. package/src/comments-pagination/README.md +2 -0
  293. package/src/comments-pagination/block.json +3 -0
  294. package/src/comments-pagination-next/README.md +2 -0
  295. package/src/comments-pagination-next/block.json +3 -0
  296. package/src/comments-pagination-numbers/README.md +2 -0
  297. package/src/comments-pagination-numbers/block.json +3 -0
  298. package/src/comments-pagination-previous/README.md +2 -0
  299. package/src/comments-pagination-previous/block.json +6 -0
  300. package/src/comments-title/README.md +2 -0
  301. package/src/comments-title/block.json +3 -0
  302. package/src/cover/edit/index.jsx +3 -0
  303. package/src/cover/edit/inspector-controls.jsx +64 -13
  304. package/src/cover/test/edit.browser.test.js +18 -2
  305. package/src/details/README.md +6 -0
  306. package/src/details/block.json +11 -0
  307. package/src/file/README.md +4 -0
  308. package/src/file/block.json +9 -0
  309. package/src/footnotes/README.md +4 -0
  310. package/src/footnotes/block.json +9 -0
  311. package/src/gallery/README.md +4 -0
  312. package/src/gallery/block.json +9 -0
  313. package/src/gallery/edit.jsx +1 -2
  314. package/src/group/README.md +1 -0
  315. package/src/group/block.json +1 -0
  316. package/src/heading/README.md +4 -0
  317. package/src/heading/block.json +9 -0
  318. package/src/home-link/README.md +5 -0
  319. package/src/home-link/block.json +18 -0
  320. package/src/home-link/edit.jsx +2 -2
  321. package/src/icon/index.php +9 -0
  322. package/src/image/editor.scss +8 -0
  323. package/src/image/image.jsx +13 -11
  324. package/src/image/test/use-open-image-media-editor-modal.jsdom.test.js +139 -0
  325. package/src/image/use-open-image-media-editor-modal.js +37 -0
  326. package/src/latest-comments/README.md +5 -0
  327. package/src/latest-comments/block.json +10 -0
  328. package/src/latest-posts/README.md +5 -0
  329. package/src/latest-posts/block.json +10 -0
  330. package/src/loginout/README.md +5 -0
  331. package/src/loginout/block.json +10 -0
  332. package/src/math/README.md +5 -0
  333. package/src/math/block.json +10 -0
  334. package/src/media-text/README.md +1 -0
  335. package/src/media-text/block.json +1 -0
  336. package/src/navigation/edit/index.jsx +2 -4
  337. package/src/navigation/style.scss +40 -4
  338. package/src/navigation-link/editor.scss +6 -1
  339. package/src/navigation-link/link-ui/page-creator.jsx +2 -2
  340. package/src/navigation-link/shared/controls.jsx +2 -2
  341. package/src/navigation-link/shared/test/use-link-preview.jsdom.test.js +22 -22
  342. package/src/navigation-link/shared/use-link-preview.js +15 -14
  343. package/src/navigation-overlay-close/README.md +1 -0
  344. package/src/navigation-overlay-close/block.json +7 -0
  345. package/src/navigation-overlay-close/style.scss +1 -1
  346. package/src/navigation-submenu/README.md +7 -0
  347. package/src/navigation-submenu/block.json +6 -0
  348. package/src/navigation-submenu/edit.jsx +11 -1
  349. package/src/navigation-submenu/editor.scss +6 -1
  350. package/src/navigation-submenu/index.php +11 -0
  351. package/src/page-list/README.md +5 -0
  352. package/src/page-list/block.json +10 -0
  353. package/src/paragraph/edit.jsx +1 -3
  354. package/src/playlist/README.md +1 -0
  355. package/src/playlist/block.json +1 -0
  356. package/src/post-author-biography/README.md +3 -0
  357. package/src/post-author-biography/block.json +4 -0
  358. package/src/post-author-name/README.md +4 -0
  359. package/src/post-author-name/block.json +5 -0
  360. package/src/post-comments-count/README.md +2 -0
  361. package/src/post-comments-count/block.json +3 -0
  362. package/src/post-comments-form/README.md +5 -0
  363. package/src/post-comments-form/block.json +10 -0
  364. package/src/post-content/README.md +2 -0
  365. package/src/post-content/block.json +2 -0
  366. package/src/post-date/README.md +2 -0
  367. package/src/post-date/block.json +3 -0
  368. package/src/post-excerpt/README.md +4 -0
  369. package/src/post-excerpt/block.json +5 -0
  370. package/src/post-featured-image/edit.jsx +11 -9
  371. package/src/post-navigation-link/README.md +12 -0
  372. package/src/post-navigation-link/block.json +30 -0
  373. package/src/post-navigation-link/edit.jsx +23 -2
  374. package/src/post-navigation-link/index.php +94 -5
  375. package/src/post-navigation-link/style.scss +2 -0
  376. package/src/post-template/README.md +7 -0
  377. package/src/post-template/block.json +13 -1
  378. package/src/post-terms/README.md +5 -0
  379. package/src/post-terms/block.json +6 -0
  380. package/src/post-time-to-read/README.md +5 -0
  381. package/src/post-time-to-read/block.json +6 -0
  382. package/src/post-title/README.md +5 -0
  383. package/src/post-title/block.json +10 -0
  384. package/src/preformatted/README.md +6 -0
  385. package/src/preformatted/block.json +7 -0
  386. package/src/pullquote/README.md +1 -0
  387. package/src/pullquote/block.json +1 -0
  388. package/src/query-no-results/README.md +7 -0
  389. package/src/query-no-results/block.json +10 -2
  390. package/src/query-pagination/README.md +2 -0
  391. package/src/query-pagination/block.json +3 -0
  392. package/src/query-pagination-next/README.md +2 -0
  393. package/src/query-pagination-next/block.json +3 -0
  394. package/src/query-pagination-numbers/README.md +2 -0
  395. package/src/query-pagination-numbers/block.json +3 -0
  396. package/src/query-pagination-previous/README.md +2 -0
  397. package/src/query-pagination-previous/block.json +3 -0
  398. package/src/query-title/README.md +2 -0
  399. package/src/query-title/block.json +3 -0
  400. package/src/query-total/README.md +5 -0
  401. package/src/query-total/block.json +6 -0
  402. package/src/quote/README.md +1 -0
  403. package/src/quote/block.json +1 -0
  404. package/src/read-more/README.md +5 -0
  405. package/src/read-more/block.json +6 -0
  406. package/src/rss/README.md +5 -0
  407. package/src/rss/block.json +6 -0
  408. package/src/site-tagline/README.md +6 -0
  409. package/src/site-tagline/block.json +8 -1
  410. package/src/site-title/README.md +5 -0
  411. package/src/site-title/block.json +7 -1
  412. package/src/social-links/README.md +2 -0
  413. package/src/social-links/block.json +3 -0
  414. package/src/social-links/edit.jsx +2 -3
  415. package/src/tab-panel/README.md +9 -0
  416. package/src/tab-panel/block.json +25 -0
  417. package/src/tab-panel/controls.jsx +2 -2
  418. package/src/tab-panel/style.scss +5 -2
  419. package/src/tab-panels/README.md +7 -0
  420. package/src/tab-panels/block.json +18 -1
  421. package/src/table-of-contents/README.md +6 -0
  422. package/src/table-of-contents/block.json +7 -0
  423. package/src/tabs/README.md +9 -0
  424. package/src/tabs/block.json +24 -1
  425. package/src/tag-cloud/README.md +9 -0
  426. package/src/tag-cloud/block.json +19 -0
  427. package/src/template-part/edit/selection-modal.jsx +1 -1
  428. package/src/term-count/README.md +6 -0
  429. package/src/term-count/block.json +7 -0
  430. package/src/term-description/README.md +5 -0
  431. package/src/term-description/block.json +9 -0
  432. package/src/term-name/README.md +5 -0
  433. package/src/term-name/block.json +10 -0
  434. package/src/term-name/index.php +1 -1
  435. package/src/term-template/README.md +5 -0
  436. package/src/term-template/block.json +10 -1
  437. package/src/utils/search-patterns.js +9 -53
  438. package/src/utils/style-state.js +6 -4
  439. package/src/utils/test/{search-patterns.js → search-patterns.jsdom.test.js} +1 -22
  440. package/src/video/README.md +7 -0
  441. package/src/video/block.json +6 -0
  442. package/src/video/edit.jsx +56 -51
  443. package/src/video/index.js +0 -2
  444. package/src/video/save.jsx +10 -1
  445. package/build/video/variations.cjs +0 -75
  446. package/build/video/variations.cjs.map +0 -7
  447. package/build-module/video/variations.mjs +0 -50
  448. package/build-module/video/variations.mjs.map +0 -7
  449. package/src/video/test/variations.js +0 -63
  450. package/src/video/variations.js +0 -62
package/CHANGELOG.md CHANGED
@@ -2,16 +2,26 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- ## 11.0.1-next.0 (2026-09-17)
5
+ ## 11.1.0 (2026-09-23)
6
+
7
+ ### Enhancements
8
+
9
+ - Site Tagline: Add Fit text support ([#83034](https://github.com/WordPress/gutenberg/pull/83034)).
10
+ - Post Navigation Link: Add border and spacing support. The block renders an empty wrapper when there is no adjacent post, so both supports skip serialization and the styles are applied only when a link renders ([#83122](https://github.com/WordPress/gutenberg/pull/83122)).
11
+ - Post Navigation Link: Add shadow support, withheld from the empty wrapper the same way ([#83058](https://github.com/WordPress/gutenberg/pull/83058)).
12
+ - Icon: Don't render icons from non-public icon collections on the front end, since they aren't available in the editor anyway ([#82774](https://github.com/WordPress/gutenberg/pull/82774)).
6
13
 
7
14
  ### Bug Fixes
8
15
 
16
+ - Image: The resize box no longer takes the pointer from the image while the block is selected, so the image has its context menu and is the source of a drag by it; the resize handles are unaffected ([#72983](https://github.com/WordPress/gutenberg/pull/72983)).
17
+ - Navigation: Stop the flyout `min-width` from applying to always-open submenus. Hovering, focusing or selecting an item in a vertical menu with submenus set to always show forced its inline submenu to at least 200px and made the menu re-wrap ([#83142](https://github.com/WordPress/gutenberg/pull/83142)).
9
18
  - Math: Read the LaTeX source from the `<annotation>` inside the saved `<math>` instead of the block comment, so `&` and `<` survive `wp_kses` for users without `unfiltered_html`. Input that cannot be rendered is saved as an annotation-only `<semantics>`, which browsers display as the source text ([#82987](https://github.com/WordPress/gutenberg/pull/82987)).
10
19
  - Image: Inject the lightbox trigger with a literal string replacement instead of `preg_replace`, so `$` and `\` sequences in author-controlled image attributes (such as a price in the alt text) are no longer interpreted as regex backreferences and silently removed ([#79369](https://github.com/WordPress/gutenberg/pull/79369)).
11
20
  - Cover: Grow the block with its content in Safari when an aspect ratio is set, instead of clipping the overflow. WebKit locks the box to the ratio where other engines let content expand it ([#70152](https://github.com/WordPress/gutenberg/pull/70152)).
12
21
  - Query Pagination: Remove the editor-only `margin: 0` override on the block wrapper so the parent layout's block gap applies in the canvas as it does on the front end ([#82399](https://github.com/WordPress/gutenberg/pull/82399)).
13
22
  - Navigation: Reset the submenu detection for each rendered block. Once a Navigation with a submenu rendered, every Navigation rendered afterwards in the same request was treated as having one and loaded the navigation view module it does not need ([#82366](https://github.com/WordPress/gutenberg/pull/82366)).
14
23
  - Gallery: Skip the generated gap styles, and the unique classname that scopes them, for themes opting out of layout styles via `add_theme_support( 'disable-layout-styles' )` ([#81633](https://github.com/WordPress/gutenberg/pull/81633)).
24
+ - Term Name: Apply the term name display filters when rendering, so adjustments plugins make to term names take effect and the name is escaped in the heading and link markup ([#82365](https://github.com/WordPress/gutenberg/pull/82365)).
15
25
 
16
26
  ### Internal
17
27
 
@@ -25,6 +35,7 @@
25
35
 
26
36
  ### Enhancements
27
37
 
38
+ - Navigation Link: emit `@wordpress/ui` `Badge` intents for the link preview badges, replacing the private `@wordpress/components` `Badge` vocabulary. Draft, Scheduled and Pending previously shared one `warning` intent; Draft and Pending now read as `low` and Scheduled as `informational` ([#82684](https://github.com/WordPress/gutenberg/pull/82684)).
28
39
  - Math: Declare `interactivity.clientNavigation` support. The block's front end output is static markup, and without the declaration a Math block inside a Query block forced full page reloads on pagination ([#82248](https://github.com/WordPress/gutenberg/pull/82248)).
29
40
  - Paragraph, List, Heading, Preformatted, Columns, Group, Template Part: Read the default padding these blocks add when they have a background color from the `--wp--style--block-background-padding` custom property, so themes can change or remove it ([#82024](https://github.com/WordPress/gutenberg/pull/82024)).
30
41
  - Query: Show a snackbar notice instead of a blocking modal when "Reload full page" is turned on automatically because a block inside the Query block doesn't support client-side navigation ([#82246](https://github.com/WordPress/gutenberg/pull/82246)).
@@ -20,7 +20,10 @@
20
20
  },
21
21
  "color": {
22
22
  "background": true,
23
- "gradients": true
23
+ "gradients": true,
24
+ "link": true,
25
+ "heading": true,
26
+ "button": true
24
27
  },
25
28
  "__experimentalBorder": {
26
29
  "color": true,
@@ -9,9 +9,15 @@
9
9
  "allowedBlocks": [ "core/accordion-heading", "core/accordion-panel" ],
10
10
  "supports": {
11
11
  "html": false,
12
+ "background": {
13
+ "gradient": true
14
+ },
12
15
  "color": {
13
16
  "background": true,
14
- "gradients": true
17
+ "gradients": true,
18
+ "link": true,
19
+ "heading": true,
20
+ "button": true
15
21
  },
16
22
  "interactivity": true,
17
23
  "spacing": {
@@ -10,9 +10,17 @@
10
10
  "supports": {
11
11
  "__experimentalOnEnter": true,
12
12
  "html": false,
13
+ "background": {
14
+ "backgroundImage": true,
15
+ "backgroundSize": true,
16
+ "gradient": true
17
+ },
13
18
  "color": {
14
19
  "background": true,
15
- "gradients": true
20
+ "gradients": true,
21
+ "link": true,
22
+ "heading": true,
23
+ "button": true
16
24
  },
17
25
  "interactivity": true,
18
26
  "spacing": {
@@ -33,6 +33,15 @@
33
33
  "width": true,
34
34
  "style": true
35
35
  },
36
+ "background": {
37
+ "backgroundImage": true,
38
+ "backgroundSize": true,
39
+ "gradient": true,
40
+ "__experimentalDefaultControls": {
41
+ "backgroundImage": true,
42
+ "gradient": true
43
+ }
44
+ },
36
45
  "html": false,
37
46
  "spacing": {
38
47
  "margin": true,
@@ -51,6 +51,14 @@
51
51
  "supports": {
52
52
  "anchor": true,
53
53
  "align": true,
54
+ "color": {
55
+ "background": false,
56
+ "link": true,
57
+ "text": false,
58
+ "__experimentalDefaultControls": {
59
+ "link": true
60
+ }
61
+ },
54
62
  "spacing": {
55
63
  "margin": true,
56
64
  "padding": true,
@@ -37,6 +37,9 @@
37
37
  "margin": true,
38
38
  "padding": true
39
39
  },
40
+ "background": {
41
+ "gradient": true
42
+ },
40
43
  "color": {
41
44
  "gradients": true,
42
45
  "link": true,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/breadcrumbs/edit.jsx"],
4
- "sourcesContent": ["import { __, sprintf } from '@wordpress/i18n';\nimport { InspectorControls, useBlockProps } from '@wordpress/block-editor';\nimport {\n\tToggleControl,\n\tTextControl,\n\tCheckboxControl,\n\t__experimentalToolsPanel as ToolsPanel,\n\t__experimentalToolsPanelItem as ToolsPanelItem,\n\tSpinner,\n} from '@wordpress/components';\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useEffect, useRef, useState } from '@wordpress/element';\nimport { useServerSideRender } from '@wordpress/server-side-render';\nimport { useDisabled } from '@wordpress/compose';\nimport { useToolsPanelDropdownMenuProps } from '../utils/hooks';\nimport HtmlRenderer from '../utils/html-renderer';\n\nconst separatorDefaultValue = '/';\n\nexport default function BreadcrumbEdit( {\n\tattributes,\n\tsetAttributes,\n\tname,\n\tcontext: { postId, postType, templateSlug },\n} ) {\n\tconst {\n\t\tseparator,\n\t\tshowHomeItem,\n\t\tshowCurrentItem,\n\t\tprefersTaxonomy,\n\t\tshowOnHomePage,\n\t} = attributes;\n\tconst {\n\t\tpost,\n\t\tisPostTypeHierarchical,\n\t\tpostTypeHasTaxonomies,\n\t\thasTermsAssigned,\n\t\tisLoading,\n\t} = useSelect(\n\t\t( select ) => {\n\t\t\tif ( ! postType ) {\n\t\t\t\treturn {};\n\t\t\t}\n\t\t\tconst _post = select( coreStore ).getEntityRecord(\n\t\t\t\t'postType',\n\t\t\t\tpostType,\n\t\t\t\tpostId\n\t\t\t);\n\t\t\tconst postTypeObject = select( coreStore ).getPostType( postType );\n\t\t\tconst _postTypeHasTaxonomies =\n\t\t\t\tpostTypeObject && postTypeObject.taxonomies.length;\n\t\t\tlet taxonomies;\n\t\t\tif ( _postTypeHasTaxonomies ) {\n\t\t\t\ttaxonomies = select( coreStore ).getTaxonomies( {\n\t\t\t\t\ttype: postType,\n\t\t\t\t\tper_page: -1,\n\t\t\t\t} );\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tpost: _post,\n\t\t\t\tisPostTypeHierarchical: postTypeObject?.hierarchical,\n\t\t\t\tpostTypeHasTaxonomies: _postTypeHasTaxonomies,\n\t\t\t\thasTermsAssigned:\n\t\t\t\t\t_post &&\n\t\t\t\t\t( taxonomies || [] )\n\t\t\t\t\t\t.filter(\n\t\t\t\t\t\t\t( { visibility } ) => visibility?.publicly_queryable\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.some( ( taxonomy ) => {\n\t\t\t\t\t\t\treturn !! _post[ taxonomy.rest_base ]?.length;\n\t\t\t\t\t\t} ),\n\t\t\t\tisLoading:\n\t\t\t\t\t( postId && ! _post ) ||\n\t\t\t\t\t! postTypeObject ||\n\t\t\t\t\t( _postTypeHasTaxonomies && ! taxonomies ),\n\t\t\t};\n\t\t},\n\t\t[ postType, postId ]\n\t);\n\n\t/**\n\t * Counter used to cache-bust `useServerSideRender`.\n\t *\n\t * This is a catch-all signal to re-render the block when a post's title,\n\t * parent ID, or terms change.\n\t *\n\t * This is fundamentally imperfect, because there are other entities which\n\t * could change in the meantime (the titles of ancestor posts, or the\n\t * labels of taxonomy terms), hence the choice to re-render systematically\n\t * upon saving.\n\t */\n\tconst [ invalidationKey, setInvalidationKey ] = useState( 0 );\n\tuseEffect( () => {\n\t\tsetInvalidationKey( ( c ) => c + 1 );\n\t}, [ post ] );\n\n\tconst dropdownMenuProps = useToolsPanelDropdownMenuProps();\n\tconst { content, status, error } = useServerSideRender( {\n\t\tattributes,\n\t\tskipBlockSupportAttributes: true,\n\t\tblock: name,\n\t\turlQueryArgs: { post_id: postId, invalidationKey },\n\t} );\n\tconst prevContentRef = useRef( '' );\n\tuseEffect( () => {\n\t\tif ( status === 'success' ) {\n\t\t\tprevContentRef.current = content;\n\t\t}\n\t}, [ content, status ] );\n\tconst [ showLoader, setShowLoader ] = useState( false );\n\tuseEffect( () => {\n\t\tif ( status !== 'loading' ) {\n\t\t\treturn;\n\t\t}\n\t\tconst timeout = setTimeout( () => {\n\t\t\tsetShowLoader( true );\n\t\t}, 400 );\n\t\treturn () => {\n\t\t\tclearTimeout( timeout );\n\t\t\tsetShowLoader( false );\n\t\t};\n\t}, [ status ] );\n\tconst disabledRef = useDisabled();\n\tconst blockProps = useBlockProps( { ref: disabledRef } );\n\n\tif ( isLoading ) {\n\t\treturn (\n\t\t\t<div { ...blockProps }>\n\t\t\t\t<Spinner />\n\t\t\t</div>\n\t\t);\n\t}\n\n\t// Try to determine breadcrumb type for more accurate previews.\n\tlet _showTerms;\n\t// Some non-hierarchical post types (e.g., attachments) can have parents.\n\t// Use hierarchical breadcrumbs if a parent exists, otherwise use taxonomy breadcrumbs.\n\tif ( ! isPostTypeHierarchical && ! post?.parent ) {\n\t\t_showTerms = true;\n\t} else if ( ! postTypeHasTaxonomies ) {\n\t\t// Hierarchical post type without taxonomies can only use ancestors.\n\t\t_showTerms = false;\n\t} else {\n\t\t// For hierarchical post types with taxonomies, use the attribute.\n\t\t_showTerms = prefersTaxonomy;\n\t}\n\tlet placeholder = null;\n\t// This is fragile because this block is server side rendered and we'll have to\n\t// update the placeholder html if the server side rendering output changes.\n\tconst showPlaceholder =\n\t\t! postId ||\n\t\t! postType ||\n\t\t// When `templateSlug` is set only show placeholder if the post type is not.\n\t\t// This is needed because when we are showing the template in post editor we\n\t\t// want to show the real breadcrumbs if we have the post type.\n\t\t( templateSlug && ! postType ) ||\n\t\t( ! _showTerms && ! isPostTypeHierarchical ) ||\n\t\t( _showTerms && ! hasTermsAssigned );\n\tif ( showPlaceholder ) {\n\t\tconst placeholderItems = [];\n\t\tif ( showHomeItem ) {\n\t\t\tplaceholderItems.push( __( 'Home' ) );\n\t\t}\n\t\tif ( templateSlug && ! postId ) {\n\t\t\tplaceholderItems.push( __( 'Page' ) );\n\t\t} else if ( _showTerms ) {\n\t\t\tplaceholderItems.push( __( 'Category' ) );\n\t\t} else {\n\t\t\tplaceholderItems.push( __( 'Ancestor' ), __( 'Parent' ) );\n\t\t}\n\t\tplaceholder = (\n\t\t\t<nav\n\t\t\t\t{ ...blockProps }\n\t\t\t\tstyle={ {\n\t\t\t\t\t'--separator': `\"${ separator\n\t\t\t\t\t\t.replace( /\\\\/g, '\\\\\\\\' )\n\t\t\t\t\t\t.replace( /\"/g, '\\\\\"' ) }\"`,\n\t\t\t\t\t...blockProps.style,\n\t\t\t\t} }\n\t\t\t>\n\t\t\t\t<ol>\n\t\t\t\t\t{ placeholderItems.map( ( text, index ) => (\n\t\t\t\t\t\t<li key={ index }>\n\t\t\t\t\t\t\t<a href={ `#breadcrumbs-pseudo-link-${ index }` }>\n\t\t\t\t\t\t\t\t{ text }\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t) ) }\n\t\t\t\t\t{ showCurrentItem && (\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<span aria-current=\"page\">{ __( 'Current' ) }</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t) }\n\t\t\t\t</ol>\n\t\t\t</nav>\n\t\t);\n\t}\n\treturn (\n\t\t<>\n\t\t\t<InspectorControls>\n\t\t\t\t<ToolsPanel\n\t\t\t\t\tlabel={ __( 'Settings' ) }\n\t\t\t\t\tresetAll={ () => {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\tseparator: separatorDefaultValue,\n\t\t\t\t\t\t\tshowHomeItem: true,\n\t\t\t\t\t\t\tshowCurrentItem: true,\n\t\t\t\t\t\t} );\n\t\t\t\t\t} }\n\t\t\t\t\tdropdownMenuProps={ dropdownMenuProps }\n\t\t\t\t>\n\t\t\t\t\t<ToolsPanelItem\n\t\t\t\t\t\tlabel={ __( 'Show home breadcrumb' ) }\n\t\t\t\t\t\tisShownByDefault\n\t\t\t\t\t\thasValue={ () => ! showHomeItem }\n\t\t\t\t\t\tonDeselect={ () =>\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tshowHomeItem: true,\n\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\t\tlabel={ __( 'Show home breadcrumb' ) }\n\t\t\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\t\t\tsetAttributes( { showHomeItem: value } )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tchecked={ showHomeItem }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ToolsPanelItem>\n\t\t\t\t\t<ToolsPanelItem\n\t\t\t\t\t\tlabel={ __( 'Show current breadcrumb' ) }\n\t\t\t\t\t\tisShownByDefault\n\t\t\t\t\t\thasValue={ () => ! showCurrentItem }\n\t\t\t\t\t\tonDeselect={ () =>\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tshowCurrentItem: true,\n\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\t\tlabel={ __( 'Show current breadcrumb' ) }\n\t\t\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\t\t\tsetAttributes( { showCurrentItem: value } )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tchecked={ showCurrentItem }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ToolsPanelItem>\n\t\t\t\t\t<ToolsPanelItem\n\t\t\t\t\t\tlabel={ __( 'Separator' ) }\n\t\t\t\t\t\tisShownByDefault\n\t\t\t\t\t\thasValue={ () => separator !== separatorDefaultValue }\n\t\t\t\t\t\tonDeselect={ () =>\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tseparator: separatorDefaultValue,\n\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t<TextControl\n\t\t\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\t\t\tlabel={ __( 'Separator' ) }\n\t\t\t\t\t\t\tvalue={ separator }\n\t\t\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\t\t\tsetAttributes( { separator: value } )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tonBlur={ () => {\n\t\t\t\t\t\t\t\tif ( ! separator ) {\n\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\tseparator: separatorDefaultValue,\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ToolsPanelItem>\n\t\t\t\t</ToolsPanel>\n\t\t\t</InspectorControls>\n\t\t\t<InspectorControls group=\"advanced\">\n\t\t\t\t<CheckboxControl\n\t\t\t\t\tlabel={ __( 'Show on homepage' ) }\n\t\t\t\t\tchecked={ showOnHomePage }\n\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\tsetAttributes( { showOnHomePage: value } )\n\t\t\t\t\t}\n\t\t\t\t\thelp={ __(\n\t\t\t\t\t\t'If this Breadcrumbs block appears in a template or template part that’s shown on the homepage, enable this option to display the breadcrumb trail. Otherwise, this setting has no effect.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t<CheckboxControl\n\t\t\t\t\tlabel={ __( 'Prefer taxonomy terms' ) }\n\t\t\t\t\tchecked={ prefersTaxonomy }\n\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\tsetAttributes( { prefersTaxonomy: value } )\n\t\t\t\t\t}\n\t\t\t\t\thelp={ __(\n\t\t\t\t\t\t'The exact type of breadcrumbs shown will vary automatically depending on the page in which this block is displayed. In the specific case of a hierarchical post type with taxonomies, the breadcrumbs can either reflect its post hierarchy (default) or the hierarchy of its assigned taxonomy terms.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t</InspectorControls>\n\t\t\t{ status === 'loading' &&\n\t\t\t\t! showPlaceholder &&\n\t\t\t\t( prevContentRef.current ? (\n\t\t\t\t\t<HtmlRenderer\n\t\t\t\t\t\twrapperProps={ {\n\t\t\t\t\t\t\t...blockProps,\n\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t...blockProps.style,\n\t\t\t\t\t\t\t\topacity: showLoader ? 0.3 : 1,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t} }\n\t\t\t\t\t\thtml={ prevContentRef.current }\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<div { ...blockProps }>\n\t\t\t\t\t\t<Spinner />\n\t\t\t\t\t</div>\n\t\t\t\t) ) }\n\t\t\t{ status === 'error' && (\n\t\t\t\t<div { ...blockProps }>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t{ sprintf(\n\t\t\t\t\t\t\t/* translators: %s: error message returned when rendering the block. */\n\t\t\t\t\t\t\t__( 'Error: %s' ),\n\t\t\t\t\t\t\terror\n\t\t\t\t\t\t) }\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t{ showPlaceholder && placeholder }\n\t\t\t{ ! showPlaceholder && status === 'success' && (\n\t\t\t\t<HtmlRenderer wrapperProps={ blockProps } html={ content } />\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA4B;AAC5B,0BAAiD;AACjD,wBAOO;AACP,kBAA0B;AAC1B,uBAAmC;AACnC,qBAA4C;AAC5C,gCAAoC;AACpC,qBAA4B;AAC5B,mBAA+C;AAC/C,2BAAyB;AAiHrB;AA/GJ,IAAM,wBAAw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AA,UACV,UAAW,CAAE,UACZ,cAAe,EAAE,iBAAiB,MAAM,CAAE;AAAA,UAE3C,UAAO;AAAA,YACN;AAAA,UACD;AAAA;AAAA,MACD;AAAA,OACD;AAAA,IACE,WAAW,aACZ,CAAE,oBACA,eAAe,UAChB;AAAA,MAAC,qBAAAC;AAAA,MAAA;AAAA,QACA,cAAe;AAAA,UACd,GAAG;AAAA,UACH,OAAO;AAAA,YACN,GAAG,WAAW;AAAA,YACd,SAAS,aAAa,MAAM;AAAA,UAC7B;AAAA,QACD;AAAA,QACA,MAAO,eAAe;AAAA;AAAA,IACvB,IAEA,4CAAC,SAAM,GAAG,YACT,sDAAC,6BAAQ,GACV;AAAA,IAEA,WAAW,WACZ,4CAAC,SAAM,GAAG,YACT,sDAAC,OACE;AAAA;AAAA,UAED,gBAAI,WAAY;AAAA,MAChB;AAAA,IACD,GACD,GACD;AAAA,IAEC,mBAAmB;AAAA,IACnB,CAAE,mBAAmB,WAAW,aACjC,4CAAC,qBAAAA,SAAA,EAAa,cAAe,YAAa,MAAO,SAAU;AAAA,KAE7D;AAEF;",
6
- "names": ["coreStore", "ToolsPanel", "ToolsPanelItem", "HtmlRenderer"]
4
+ "sourcesContent": ["import { __, sprintf } from '@wordpress/i18n';\nimport { InspectorControls, useBlockProps } from '@wordpress/block-editor';\nimport {\n\tToggleControl,\n\tTextControl,\n\tCheckboxControl as WCCheckboxControl,\n\t__experimentalToolsPanel as ToolsPanel,\n\t__experimentalToolsPanelItem as ToolsPanelItem,\n\tSpinner,\n} from '@wordpress/components';\nimport { useSelect } from '@wordpress/data';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useEffect, useRef, useState } from '@wordpress/element';\nimport { useServerSideRender } from '@wordpress/server-side-render';\nimport { useDisabled } from '@wordpress/compose';\nimport { useToolsPanelDropdownMenuProps } from '../utils/hooks';\nimport HtmlRenderer from '../utils/html-renderer';\n\nconst separatorDefaultValue = '/';\n\nexport default function BreadcrumbEdit( {\n\tattributes,\n\tsetAttributes,\n\tname,\n\tcontext: { postId, postType, templateSlug },\n} ) {\n\tconst {\n\t\tseparator,\n\t\tshowHomeItem,\n\t\tshowCurrentItem,\n\t\tprefersTaxonomy,\n\t\tshowOnHomePage,\n\t} = attributes;\n\tconst {\n\t\tpost,\n\t\tisPostTypeHierarchical,\n\t\tpostTypeHasTaxonomies,\n\t\thasTermsAssigned,\n\t\tisLoading,\n\t} = useSelect(\n\t\t( select ) => {\n\t\t\tif ( ! postType ) {\n\t\t\t\treturn {};\n\t\t\t}\n\t\t\tconst _post = select( coreStore ).getEntityRecord(\n\t\t\t\t'postType',\n\t\t\t\tpostType,\n\t\t\t\tpostId\n\t\t\t);\n\t\t\tconst postTypeObject = select( coreStore ).getPostType( postType );\n\t\t\tconst _postTypeHasTaxonomies =\n\t\t\t\tpostTypeObject && postTypeObject.taxonomies.length;\n\t\t\tlet taxonomies;\n\t\t\tif ( _postTypeHasTaxonomies ) {\n\t\t\t\ttaxonomies = select( coreStore ).getTaxonomies( {\n\t\t\t\t\ttype: postType,\n\t\t\t\t\tper_page: -1,\n\t\t\t\t} );\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tpost: _post,\n\t\t\t\tisPostTypeHierarchical: postTypeObject?.hierarchical,\n\t\t\t\tpostTypeHasTaxonomies: _postTypeHasTaxonomies,\n\t\t\t\thasTermsAssigned:\n\t\t\t\t\t_post &&\n\t\t\t\t\t( taxonomies || [] )\n\t\t\t\t\t\t.filter(\n\t\t\t\t\t\t\t( { visibility } ) => visibility?.publicly_queryable\n\t\t\t\t\t\t)\n\t\t\t\t\t\t.some( ( taxonomy ) => {\n\t\t\t\t\t\t\treturn !! _post[ taxonomy.rest_base ]?.length;\n\t\t\t\t\t\t} ),\n\t\t\t\tisLoading:\n\t\t\t\t\t( postId && ! _post ) ||\n\t\t\t\t\t! postTypeObject ||\n\t\t\t\t\t( _postTypeHasTaxonomies && ! taxonomies ),\n\t\t\t};\n\t\t},\n\t\t[ postType, postId ]\n\t);\n\n\t/**\n\t * Counter used to cache-bust `useServerSideRender`.\n\t *\n\t * This is a catch-all signal to re-render the block when a post's title,\n\t * parent ID, or terms change.\n\t *\n\t * This is fundamentally imperfect, because there are other entities which\n\t * could change in the meantime (the titles of ancestor posts, or the\n\t * labels of taxonomy terms), hence the choice to re-render systematically\n\t * upon saving.\n\t */\n\tconst [ invalidationKey, setInvalidationKey ] = useState( 0 );\n\tuseEffect( () => {\n\t\tsetInvalidationKey( ( c ) => c + 1 );\n\t}, [ post ] );\n\n\tconst dropdownMenuProps = useToolsPanelDropdownMenuProps();\n\tconst { content, status, error } = useServerSideRender( {\n\t\tattributes,\n\t\tskipBlockSupportAttributes: true,\n\t\tblock: name,\n\t\turlQueryArgs: { post_id: postId, invalidationKey },\n\t} );\n\tconst prevContentRef = useRef( '' );\n\tuseEffect( () => {\n\t\tif ( status === 'success' ) {\n\t\t\tprevContentRef.current = content;\n\t\t}\n\t}, [ content, status ] );\n\tconst [ showLoader, setShowLoader ] = useState( false );\n\tuseEffect( () => {\n\t\tif ( status !== 'loading' ) {\n\t\t\treturn;\n\t\t}\n\t\tconst timeout = setTimeout( () => {\n\t\t\tsetShowLoader( true );\n\t\t}, 400 );\n\t\treturn () => {\n\t\t\tclearTimeout( timeout );\n\t\t\tsetShowLoader( false );\n\t\t};\n\t}, [ status ] );\n\tconst disabledRef = useDisabled();\n\tconst blockProps = useBlockProps( { ref: disabledRef } );\n\n\tif ( isLoading ) {\n\t\treturn (\n\t\t\t<div { ...blockProps }>\n\t\t\t\t<Spinner />\n\t\t\t</div>\n\t\t);\n\t}\n\n\t// Try to determine breadcrumb type for more accurate previews.\n\tlet _showTerms;\n\t// Some non-hierarchical post types (e.g., attachments) can have parents.\n\t// Use hierarchical breadcrumbs if a parent exists, otherwise use taxonomy breadcrumbs.\n\tif ( ! isPostTypeHierarchical && ! post?.parent ) {\n\t\t_showTerms = true;\n\t} else if ( ! postTypeHasTaxonomies ) {\n\t\t// Hierarchical post type without taxonomies can only use ancestors.\n\t\t_showTerms = false;\n\t} else {\n\t\t// For hierarchical post types with taxonomies, use the attribute.\n\t\t_showTerms = prefersTaxonomy;\n\t}\n\tlet placeholder = null;\n\t// This is fragile because this block is server side rendered and we'll have to\n\t// update the placeholder html if the server side rendering output changes.\n\tconst showPlaceholder =\n\t\t! postId ||\n\t\t! postType ||\n\t\t// When `templateSlug` is set only show placeholder if the post type is not.\n\t\t// This is needed because when we are showing the template in post editor we\n\t\t// want to show the real breadcrumbs if we have the post type.\n\t\t( templateSlug && ! postType ) ||\n\t\t( ! _showTerms && ! isPostTypeHierarchical ) ||\n\t\t( _showTerms && ! hasTermsAssigned );\n\tif ( showPlaceholder ) {\n\t\tconst placeholderItems = [];\n\t\tif ( showHomeItem ) {\n\t\t\tplaceholderItems.push( __( 'Home' ) );\n\t\t}\n\t\tif ( templateSlug && ! postId ) {\n\t\t\tplaceholderItems.push( __( 'Page' ) );\n\t\t} else if ( _showTerms ) {\n\t\t\tplaceholderItems.push( __( 'Category' ) );\n\t\t} else {\n\t\t\tplaceholderItems.push( __( 'Ancestor' ), __( 'Parent' ) );\n\t\t}\n\t\tplaceholder = (\n\t\t\t<nav\n\t\t\t\t{ ...blockProps }\n\t\t\t\tstyle={ {\n\t\t\t\t\t'--separator': `\"${ separator\n\t\t\t\t\t\t.replace( /\\\\/g, '\\\\\\\\' )\n\t\t\t\t\t\t.replace( /\"/g, '\\\\\"' ) }\"`,\n\t\t\t\t\t...blockProps.style,\n\t\t\t\t} }\n\t\t\t>\n\t\t\t\t<ol>\n\t\t\t\t\t{ placeholderItems.map( ( text, index ) => (\n\t\t\t\t\t\t<li key={ index }>\n\t\t\t\t\t\t\t<a href={ `#breadcrumbs-pseudo-link-${ index }` }>\n\t\t\t\t\t\t\t\t{ text }\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t) ) }\n\t\t\t\t\t{ showCurrentItem && (\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<span aria-current=\"page\">{ __( 'Current' ) }</span>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t) }\n\t\t\t\t</ol>\n\t\t\t</nav>\n\t\t);\n\t}\n\treturn (\n\t\t<>\n\t\t\t<InspectorControls>\n\t\t\t\t<ToolsPanel\n\t\t\t\t\tlabel={ __( 'Settings' ) }\n\t\t\t\t\tresetAll={ () => {\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\tseparator: separatorDefaultValue,\n\t\t\t\t\t\t\tshowHomeItem: true,\n\t\t\t\t\t\t\tshowCurrentItem: true,\n\t\t\t\t\t\t} );\n\t\t\t\t\t} }\n\t\t\t\t\tdropdownMenuProps={ dropdownMenuProps }\n\t\t\t\t>\n\t\t\t\t\t<ToolsPanelItem\n\t\t\t\t\t\tlabel={ __( 'Show home breadcrumb' ) }\n\t\t\t\t\t\tisShownByDefault\n\t\t\t\t\t\thasValue={ () => ! showHomeItem }\n\t\t\t\t\t\tonDeselect={ () =>\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tshowHomeItem: true,\n\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\t\tlabel={ __( 'Show home breadcrumb' ) }\n\t\t\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\t\t\tsetAttributes( { showHomeItem: value } )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tchecked={ showHomeItem }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ToolsPanelItem>\n\t\t\t\t\t<ToolsPanelItem\n\t\t\t\t\t\tlabel={ __( 'Show current breadcrumb' ) }\n\t\t\t\t\t\tisShownByDefault\n\t\t\t\t\t\thasValue={ () => ! showCurrentItem }\n\t\t\t\t\t\tonDeselect={ () =>\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tshowCurrentItem: true,\n\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\t\tlabel={ __( 'Show current breadcrumb' ) }\n\t\t\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\t\t\tsetAttributes( { showCurrentItem: value } )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tchecked={ showCurrentItem }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ToolsPanelItem>\n\t\t\t\t\t<ToolsPanelItem\n\t\t\t\t\t\tlabel={ __( 'Separator' ) }\n\t\t\t\t\t\tisShownByDefault\n\t\t\t\t\t\thasValue={ () => separator !== separatorDefaultValue }\n\t\t\t\t\t\tonDeselect={ () =>\n\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\tseparator: separatorDefaultValue,\n\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t<TextControl\n\t\t\t\t\t\t\tautoComplete=\"off\"\n\t\t\t\t\t\t\tlabel={ __( 'Separator' ) }\n\t\t\t\t\t\t\tvalue={ separator }\n\t\t\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\t\t\tsetAttributes( { separator: value } )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tonBlur={ () => {\n\t\t\t\t\t\t\t\tif ( ! separator ) {\n\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\tseparator: separatorDefaultValue,\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</ToolsPanelItem>\n\t\t\t\t</ToolsPanel>\n\t\t\t</InspectorControls>\n\t\t\t<InspectorControls group=\"advanced\">\n\t\t\t\t<WCCheckboxControl\n\t\t\t\t\tlabel={ __( 'Show on homepage' ) }\n\t\t\t\t\tchecked={ showOnHomePage }\n\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\tsetAttributes( { showOnHomePage: value } )\n\t\t\t\t\t}\n\t\t\t\t\thelp={ __(\n\t\t\t\t\t\t'If this Breadcrumbs block appears in a template or template part that’s shown on the homepage, enable this option to display the breadcrumb trail. Otherwise, this setting has no effect.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t\t<WCCheckboxControl\n\t\t\t\t\tlabel={ __( 'Prefer taxonomy terms' ) }\n\t\t\t\t\tchecked={ prefersTaxonomy }\n\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\tsetAttributes( { prefersTaxonomy: value } )\n\t\t\t\t\t}\n\t\t\t\t\thelp={ __(\n\t\t\t\t\t\t'The exact type of breadcrumbs shown will vary automatically depending on the page in which this block is displayed. In the specific case of a hierarchical post type with taxonomies, the breadcrumbs can either reflect its post hierarchy (default) or the hierarchy of its assigned taxonomy terms.'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t</InspectorControls>\n\t\t\t{ status === 'loading' &&\n\t\t\t\t! showPlaceholder &&\n\t\t\t\t( prevContentRef.current ? (\n\t\t\t\t\t<HtmlRenderer\n\t\t\t\t\t\twrapperProps={ {\n\t\t\t\t\t\t\t...blockProps,\n\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t...blockProps.style,\n\t\t\t\t\t\t\t\topacity: showLoader ? 0.3 : 1,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t} }\n\t\t\t\t\t\thtml={ prevContentRef.current }\n\t\t\t\t\t/>\n\t\t\t\t) : (\n\t\t\t\t\t<div { ...blockProps }>\n\t\t\t\t\t\t<Spinner />\n\t\t\t\t\t</div>\n\t\t\t\t) ) }\n\t\t\t{ status === 'error' && (\n\t\t\t\t<div { ...blockProps }>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t{ sprintf(\n\t\t\t\t\t\t\t/* translators: %s: error message returned when rendering the block. */\n\t\t\t\t\t\t\t__( 'Error: %s' ),\n\t\t\t\t\t\t\terror\n\t\t\t\t\t\t) }\n\t\t\t\t\t</p>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t\t{ showPlaceholder && placeholder }\n\t\t\t{ ! showPlaceholder && status === 'success' && (\n\t\t\t\t<HtmlRenderer wrapperProps={ blockProps } html={ content } />\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA4B;AAC5B,0BAAiD;AACjD,wBAOO;AACP,kBAA0B;AAC1B,uBAAmC;AACnC,qBAA4C;AAC5C,gCAAoC;AACpC,qBAA4B;AAC5B,mBAA+C;AAC/C,2BAAyB;AAiHrB;AA/GJ,IAAM,wBAAwB;AAEf,SAAR,eAAiC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS,EAAE,QAAQ,UAAU,aAAa;AAC3C,GAAI;AACH,QAAM;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,IAAI;AACJ,QAAM;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,QAAI;AAAA,IACH,CAAE,WAAY;AACb,UAAK,CAAE,UAAW;AACjB,eAAO,CAAC;AAAA,MACT;AACA,YAAM,QAAQ,OAAQ,iBAAAA,KAAU,EAAE;AAAA,QACjC;AAAA,QACA;AAAA,QACA;AAAA,MACD;AACA,YAAM,iBAAiB,OAAQ,iBAAAA,KAAU,EAAE,YAAa,QAAS;AACjE,YAAM,yBACL,kBAAkB,eAAe,WAAW;AAC7C,UAAI;AACJ,UAAK,wBAAyB;AAC7B,qBAAa,OAAQ,iBAAAA,KAAU,EAAE,cAAe;AAAA,UAC/C,MAAM;AAAA,UACN,UAAU;AAAA,QACX,CAAE;AAAA,MACH;AACA,aAAO;AAAA,QACN,MAAM;AAAA,QACN,wBAAwB,gBAAgB;AAAA,QACxC,uBAAuB;AAAA,QACvB,kBACC,UACE,cAAc,CAAC,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 +13,15 @@
13
13
  "align": [ "wide", "full" ],
14
14
  "html": false,
15
15
  "__experimentalExposeControlsToChildren": true,
16
+ "background": {
17
+ "backgroundImage": true,
18
+ "backgroundSize": true,
19
+ "gradient": true,
20
+ "__experimentalDefaultControls": {
21
+ "backgroundImage": true,
22
+ "gradient": true
23
+ }
24
+ },
16
25
  "color": {
17
26
  "gradients": true,
18
27
  "text": false,
@@ -45,6 +45,15 @@
45
45
  "supports": {
46
46
  "anchor": true,
47
47
  "align": true,
48
+ "background": {
49
+ "backgroundImage": true,
50
+ "backgroundSize": true,
51
+ "gradient": true,
52
+ "__experimentalDefaultControls": {
53
+ "backgroundImage": true,
54
+ "gradient": true
55
+ }
56
+ },
48
57
  "html": false,
49
58
  "spacing": {
50
59
  "margin": true,
@@ -57,6 +66,7 @@
57
66
  "typography": {
58
67
  "fontSize": true,
59
68
  "lineHeight": true,
69
+ "textColumns": true,
60
70
  "__experimentalFontFamily": true,
61
71
  "__experimentalFontWeight": true,
62
72
  "__experimentalFontStyle": true,
@@ -90,7 +100,8 @@
90
100
  "width": true,
91
101
  "style": true
92
102
  }
93
- }
103
+ },
104
+ "shadow": true
94
105
  },
95
106
  "editorStyle": "wp-block-categories-editor",
96
107
  "style": "wp-block-categories"
@@ -18,6 +18,15 @@
18
18
  "supports": {
19
19
  "align": [ "wide" ],
20
20
  "anchor": true,
21
+ "background": {
22
+ "backgroundImage": true,
23
+ "backgroundSize": true,
24
+ "gradient": true,
25
+ "__experimentalDefaultControls": {
26
+ "backgroundImage": true,
27
+ "gradient": true
28
+ }
29
+ },
21
30
  "typography": {
22
31
  "fontSize": true,
23
32
  "lineHeight": true,
@@ -24,6 +24,15 @@
24
24
  "anchor": true,
25
25
  "reusable": false,
26
26
  "html": false,
27
+ "background": {
28
+ "backgroundImage": true,
29
+ "backgroundSize": true,
30
+ "gradient": true,
31
+ "__experimentalDefaultControls": {
32
+ "backgroundImage": true,
33
+ "gradient": true
34
+ }
35
+ },
27
36
  "color": {
28
37
  "gradients": true,
29
38
  "heading": true,
@@ -34,6 +34,15 @@
34
34
  "text": true
35
35
  }
36
36
  },
37
+ "background": {
38
+ "backgroundImage": true,
39
+ "backgroundSize": true,
40
+ "gradient": true,
41
+ "__experimentalDefaultControls": {
42
+ "backgroundImage": true,
43
+ "gradient": true
44
+ }
45
+ },
37
46
  "spacing": {
38
47
  "blockGap": {
39
48
  "__experimentalDefault": "2em",
@@ -21,6 +21,9 @@
21
21
  "supports": {
22
22
  "anchor": true,
23
23
  "html": false,
24
+ "background": {
25
+ "gradient": true
26
+ },
24
27
  "spacing": {
25
28
  "margin": true,
26
29
  "padding": true
@@ -10,8 +10,13 @@
10
10
  "usesContext": [ "commentId" ],
11
11
  "supports": {
12
12
  "anchor": true,
13
+ "background": {
14
+ "gradient": true
15
+ },
13
16
  "color": {
14
17
  "gradients": true,
18
+ "heading": true,
19
+ "button": true,
15
20
  "link": true,
16
21
  "__experimentalDefaultControls": {
17
22
  "background": true,
@@ -20,6 +20,9 @@
20
20
  "supports": {
21
21
  "anchor": true,
22
22
  "html": false,
23
+ "background": {
24
+ "gradient": true
25
+ },
23
26
  "color": {
24
27
  "gradients": true,
25
28
  "link": true,
@@ -17,6 +17,9 @@
17
17
  "supports": {
18
18
  "anchor": true,
19
19
  "html": false,
20
+ "background": {
21
+ "gradient": true
22
+ },
20
23
  "color": {
21
24
  "link": true,
22
25
  "gradients": true,
@@ -10,6 +10,9 @@
10
10
  "usesContext": [ "commentId" ],
11
11
  "supports": {
12
12
  "anchor": true,
13
+ "background": {
14
+ "gradient": true
15
+ },
13
16
  "color": {
14
17
  "gradients": true,
15
18
  "link": true,
@@ -20,8 +20,18 @@
20
20
  "anchor": true,
21
21
  "align": [ "wide", "full" ],
22
22
  "html": false,
23
+ "background": {
24
+ "backgroundImage": true,
25
+ "backgroundSize": true,
26
+ "gradient": true,
27
+ "__experimentalDefaultControls": {
28
+ "backgroundImage": true,
29
+ "gradient": true
30
+ }
31
+ },
23
32
  "color": {
24
33
  "gradients": true,
34
+ "button": true,
25
35
  "heading": true,
26
36
  "link": true,
27
37
  "__experimentalDefaultControls": {
@@ -31,6 +31,9 @@
31
31
  "align": true,
32
32
  "reusable": false,
33
33
  "html": false,
34
+ "background": {
35
+ "gradient": true
36
+ },
34
37
  "color": {
35
38
  "gradients": true,
36
39
  "link": true,
@@ -17,6 +17,9 @@
17
17
  "anchor": true,
18
18
  "reusable": false,
19
19
  "html": false,
20
+ "background": {
21
+ "gradient": true
22
+ },
20
23
  "color": {
21
24
  "gradients": true,
22
25
  "text": false,
@@ -12,6 +12,9 @@
12
12
  "anchor": true,
13
13
  "reusable": false,
14
14
  "html": false,
15
+ "background": {
16
+ "gradient": true
17
+ },
15
18
  "color": {
16
19
  "gradients": true,
17
20
  "text": false,
@@ -17,6 +17,12 @@
17
17
  "anchor": true,
18
18
  "reusable": false,
19
19
  "html": false,
20
+ "background": {
21
+ "gradient": true,
22
+ "__experimentalDefaultControls": {
23
+ "gradient": true
24
+ }
25
+ },
20
26
  "color": {
21
27
  "gradients": true,
22
28
  "text": false,
@@ -29,6 +29,9 @@
29
29
  "anchor": true,
30
30
  "align": true,
31
31
  "html": false,
32
+ "background": {
33
+ "gradient": true
34
+ },
32
35
  "__experimentalBorder": {
33
36
  "radius": true,
34
37
  "color": true,
@@ -508,10 +508,13 @@ function CoverEdit({
508
508
  setOverlayColor: onSetOverlayColor,
509
509
  coverRef: ref,
510
510
  currentSettings,
511
+ onSelectMedia,
512
+ onUploadError,
511
513
  toggleUseFeaturedImage,
512
514
  updateDimRatio: onUpdateDimRatio,
513
515
  onClearMedia,
514
- featuredImage: media
516
+ featuredImage: media,
517
+ isSelected
515
518
  }
516
519
  );
517
520
  const resizableCoverProps = {