@wordpress/block-library 9.23.0 → 9.24.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 (422) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/code/index.js +2 -1
  3. package/build/code/index.js.map +1 -1
  4. package/build/details/index.js +2 -1
  5. package/build/details/index.js.map +1 -1
  6. package/build/html/index.js +2 -1
  7. package/build/html/index.js.map +1 -1
  8. package/build/image/constants.js +2 -1
  9. package/build/image/constants.js.map +1 -1
  10. package/build/image/edit.js +1 -1
  11. package/build/image/edit.js.map +1 -1
  12. package/build/image/image.js +1 -4
  13. package/build/image/image.js.map +1 -1
  14. package/build/more/index.js +2 -1
  15. package/build/more/index.js.map +1 -1
  16. package/build/post-excerpt/edit.js +3 -1
  17. package/build/post-excerpt/edit.js.map +1 -1
  18. package/build/post-excerpt/index.js +2 -1
  19. package/build/post-excerpt/index.js.map +1 -1
  20. package/build/post-navigation-link/edit.js +3 -1
  21. package/build/post-navigation-link/edit.js.map +1 -1
  22. package/build/post-navigation-link/index.js +2 -1
  23. package/build/post-navigation-link/index.js.map +1 -1
  24. package/build/post-navigation-link/variations.js +13 -13
  25. package/build/post-navigation-link/variations.js.map +1 -1
  26. package/build/post-template/edit.js +5 -3
  27. package/build/post-template/edit.js.map +1 -1
  28. package/build/post-terms/edit.js +3 -1
  29. package/build/post-terms/edit.js.map +1 -1
  30. package/build/post-terms/index.js +4 -2
  31. package/build/post-terms/index.js.map +1 -1
  32. package/build/preformatted/transforms.js +5 -1
  33. package/build/preformatted/transforms.js.map +1 -1
  34. package/build/read-more/index.js +2 -1
  35. package/build/read-more/index.js.map +1 -1
  36. package/build/rss/index.js +2 -1
  37. package/build/rss/index.js.map +1 -1
  38. package/build/search/edit.js +76 -86
  39. package/build/search/edit.js.map +1 -1
  40. package/build/table/edit.js +3 -2
  41. package/build/table/edit.js.map +1 -1
  42. package/build/table/index.js +8 -4
  43. package/build/table/index.js.map +1 -1
  44. package/build-module/code/index.js +2 -1
  45. package/build-module/code/index.js.map +1 -1
  46. package/build-module/details/index.js +2 -1
  47. package/build-module/details/index.js.map +1 -1
  48. package/build-module/html/index.js +2 -1
  49. package/build-module/html/index.js.map +1 -1
  50. package/build-module/image/constants.js +1 -0
  51. package/build-module/image/constants.js.map +1 -1
  52. package/build-module/image/edit.js +2 -2
  53. package/build-module/image/edit.js.map +1 -1
  54. package/build-module/image/image.js +2 -5
  55. package/build-module/image/image.js.map +1 -1
  56. package/build-module/more/index.js +2 -1
  57. package/build-module/more/index.js.map +1 -1
  58. package/build-module/post-excerpt/edit.js +4 -2
  59. package/build-module/post-excerpt/edit.js.map +1 -1
  60. package/build-module/post-excerpt/index.js +2 -1
  61. package/build-module/post-excerpt/index.js.map +1 -1
  62. package/build-module/post-navigation-link/edit.js +4 -2
  63. package/build-module/post-navigation-link/edit.js.map +1 -1
  64. package/build-module/post-navigation-link/index.js +2 -1
  65. package/build-module/post-navigation-link/index.js.map +1 -1
  66. package/build-module/post-navigation-link/variations.js +13 -13
  67. package/build-module/post-navigation-link/variations.js.map +1 -1
  68. package/build-module/post-template/edit.js +5 -3
  69. package/build-module/post-template/edit.js.map +1 -1
  70. package/build-module/post-terms/edit.js +4 -2
  71. package/build-module/post-terms/edit.js.map +1 -1
  72. package/build-module/post-terms/index.js +4 -2
  73. package/build-module/post-terms/index.js.map +1 -1
  74. package/build-module/preformatted/transforms.js +5 -1
  75. package/build-module/preformatted/transforms.js.map +1 -1
  76. package/build-module/read-more/index.js +2 -1
  77. package/build-module/read-more/index.js.map +1 -1
  78. package/build-module/rss/index.js +2 -1
  79. package/build-module/rss/index.js.map +1 -1
  80. package/build-module/search/edit.js +78 -88
  81. package/build-module/search/edit.js.map +1 -1
  82. package/build-module/table/edit.js +4 -3
  83. package/build-module/table/edit.js.map +1 -1
  84. package/build-module/table/index.js +8 -4
  85. package/build-module/table/index.js.map +1 -1
  86. package/build-style/archives/editor-rtl.css +47 -11
  87. package/build-style/archives/editor.css +47 -11
  88. package/build-style/archives/style-rtl.css +47 -11
  89. package/build-style/archives/style.css +47 -11
  90. package/build-style/audio/editor-rtl.css +47 -11
  91. package/build-style/audio/editor.css +47 -11
  92. package/build-style/audio/style-rtl.css +47 -11
  93. package/build-style/audio/style.css +47 -11
  94. package/build-style/audio/theme-rtl.css +47 -11
  95. package/build-style/audio/theme.css +47 -11
  96. package/build-style/avatar/editor-rtl.css +47 -11
  97. package/build-style/avatar/editor.css +47 -11
  98. package/build-style/avatar/style-rtl.css +47 -11
  99. package/build-style/avatar/style.css +47 -11
  100. package/build-style/button/editor-rtl.css +47 -11
  101. package/build-style/button/editor.css +47 -11
  102. package/build-style/button/style-rtl.css +47 -12
  103. package/build-style/button/style.css +47 -12
  104. package/build-style/buttons/editor-rtl.css +47 -11
  105. package/build-style/buttons/editor.css +47 -11
  106. package/build-style/buttons/style-rtl.css +50 -11
  107. package/build-style/buttons/style.css +50 -11
  108. package/build-style/calendar/style-rtl.css +47 -11
  109. package/build-style/calendar/style.css +47 -11
  110. package/build-style/categories/editor-rtl.css +47 -11
  111. package/build-style/categories/editor.css +47 -11
  112. package/build-style/categories/style-rtl.css +47 -11
  113. package/build-style/categories/style.css +47 -11
  114. package/build-style/classic-rtl.css +47 -11
  115. package/build-style/classic.css +47 -11
  116. package/build-style/code/editor-rtl.css +47 -11
  117. package/build-style/code/editor.css +47 -11
  118. package/build-style/code/style-rtl.css +47 -11
  119. package/build-style/code/style.css +47 -11
  120. package/build-style/code/theme-rtl.css +47 -11
  121. package/build-style/code/theme.css +47 -11
  122. package/build-style/columns/editor-rtl.css +47 -11
  123. package/build-style/columns/editor.css +47 -11
  124. package/build-style/columns/style-rtl.css +47 -11
  125. package/build-style/columns/style.css +47 -11
  126. package/build-style/comment-author-avatar/editor-rtl.css +47 -11
  127. package/build-style/comment-author-avatar/editor.css +47 -11
  128. package/build-style/comment-author-name/style-rtl.css +47 -11
  129. package/build-style/comment-author-name/style.css +47 -11
  130. package/build-style/comment-content/style-rtl.css +47 -11
  131. package/build-style/comment-content/style.css +47 -11
  132. package/build-style/comment-date/style-rtl.css +47 -11
  133. package/build-style/comment-date/style.css +47 -11
  134. package/build-style/comment-edit-link/style-rtl.css +47 -11
  135. package/build-style/comment-edit-link/style.css +47 -11
  136. package/build-style/comment-reply-link/style-rtl.css +47 -11
  137. package/build-style/comment-reply-link/style.css +47 -11
  138. package/build-style/comment-template/style-rtl.css +47 -11
  139. package/build-style/comment-template/style.css +47 -11
  140. package/build-style/comments/editor-rtl.css +47 -11
  141. package/build-style/comments/editor.css +47 -11
  142. package/build-style/comments/style-rtl.css +47 -11
  143. package/build-style/comments/style.css +47 -11
  144. package/build-style/comments-pagination/editor-rtl.css +47 -11
  145. package/build-style/comments-pagination/editor.css +47 -11
  146. package/build-style/comments-pagination/style-rtl.css +47 -11
  147. package/build-style/comments-pagination/style.css +47 -11
  148. package/build-style/comments-pagination-numbers/editor-rtl.css +47 -11
  149. package/build-style/comments-pagination-numbers/editor.css +47 -11
  150. package/build-style/comments-title/editor-rtl.css +47 -11
  151. package/build-style/comments-title/editor.css +47 -11
  152. package/build-style/common-rtl.css +130 -9
  153. package/build-style/common.css +130 -9
  154. package/build-style/cover/editor-rtl.css +47 -11
  155. package/build-style/cover/editor.css +47 -11
  156. package/build-style/cover/style-rtl.css +47 -11
  157. package/build-style/cover/style.css +47 -11
  158. package/build-style/details/editor-rtl.css +47 -11
  159. package/build-style/details/editor.css +47 -11
  160. package/build-style/details/style-rtl.css +47 -11
  161. package/build-style/details/style.css +47 -11
  162. package/build-style/editor-elements-rtl.css +47 -11
  163. package/build-style/editor-elements.css +47 -11
  164. package/build-style/editor-rtl.css +48 -11
  165. package/build-style/editor.css +48 -11
  166. package/build-style/elements-rtl.css +47 -11
  167. package/build-style/elements.css +47 -11
  168. package/build-style/embed/editor-rtl.css +47 -11
  169. package/build-style/embed/editor.css +47 -11
  170. package/build-style/embed/style-rtl.css +47 -11
  171. package/build-style/embed/style.css +47 -11
  172. package/build-style/embed/theme-rtl.css +47 -11
  173. package/build-style/embed/theme.css +47 -11
  174. package/build-style/file/editor-rtl.css +47 -11
  175. package/build-style/file/editor.css +47 -11
  176. package/build-style/file/style-rtl.css +47 -11
  177. package/build-style/file/style.css +47 -11
  178. package/build-style/footnotes/style-rtl.css +47 -11
  179. package/build-style/footnotes/style.css +47 -11
  180. package/build-style/form-input/editor-rtl.css +47 -11
  181. package/build-style/form-input/editor.css +47 -11
  182. package/build-style/form-input/style-rtl.css +47 -11
  183. package/build-style/form-input/style.css +47 -11
  184. package/build-style/form-submission-notification/editor-rtl.css +47 -11
  185. package/build-style/form-submission-notification/editor.css +47 -11
  186. package/build-style/form-submit-button/style-rtl.css +47 -11
  187. package/build-style/form-submit-button/style.css +47 -11
  188. package/build-style/freeform/editor-rtl.css +47 -11
  189. package/build-style/freeform/editor.css +47 -11
  190. package/build-style/gallery/editor-rtl.css +47 -11
  191. package/build-style/gallery/editor.css +47 -11
  192. package/build-style/gallery/style-rtl.css +47 -11
  193. package/build-style/gallery/style.css +47 -11
  194. package/build-style/gallery/theme-rtl.css +47 -11
  195. package/build-style/gallery/theme.css +47 -11
  196. package/build-style/group/editor-rtl.css +47 -11
  197. package/build-style/group/editor.css +47 -11
  198. package/build-style/group/style-rtl.css +47 -11
  199. package/build-style/group/style.css +47 -11
  200. package/build-style/group/theme-rtl.css +47 -11
  201. package/build-style/group/theme.css +47 -11
  202. package/build-style/heading/style-rtl.css +47 -11
  203. package/build-style/heading/style.css +47 -11
  204. package/build-style/html/editor-rtl.css +48 -11
  205. package/build-style/html/editor.css +48 -11
  206. package/build-style/image/editor-rtl.css +47 -11
  207. package/build-style/image/editor.css +47 -11
  208. package/build-style/image/style-rtl.css +47 -11
  209. package/build-style/image/style.css +47 -11
  210. package/build-style/image/theme-rtl.css +47 -11
  211. package/build-style/image/theme.css +47 -11
  212. package/build-style/latest-comments/style-rtl.css +47 -11
  213. package/build-style/latest-comments/style.css +47 -11
  214. package/build-style/latest-posts/editor-rtl.css +47 -11
  215. package/build-style/latest-posts/editor.css +47 -11
  216. package/build-style/latest-posts/style-rtl.css +47 -11
  217. package/build-style/latest-posts/style.css +47 -11
  218. package/build-style/list/style-rtl.css +47 -11
  219. package/build-style/list/style.css +47 -11
  220. package/build-style/loginout/style-rtl.css +47 -11
  221. package/build-style/loginout/style.css +47 -11
  222. package/build-style/media-text/editor-rtl.css +47 -11
  223. package/build-style/media-text/editor.css +47 -11
  224. package/build-style/media-text/style-rtl.css +47 -11
  225. package/build-style/media-text/style.css +47 -11
  226. package/build-style/more/editor-rtl.css +47 -11
  227. package/build-style/more/editor.css +47 -11
  228. package/build-style/navigation/editor-rtl.css +47 -11
  229. package/build-style/navigation/editor.css +47 -11
  230. package/build-style/navigation/style-rtl.css +47 -11
  231. package/build-style/navigation/style.css +47 -11
  232. package/build-style/navigation-link/editor-rtl.css +47 -11
  233. package/build-style/navigation-link/editor.css +47 -11
  234. package/build-style/navigation-link/style-rtl.css +47 -11
  235. package/build-style/navigation-link/style.css +47 -11
  236. package/build-style/navigation-submenu/editor-rtl.css +47 -11
  237. package/build-style/navigation-submenu/editor.css +47 -11
  238. package/build-style/nextpage/editor-rtl.css +47 -11
  239. package/build-style/nextpage/editor.css +47 -11
  240. package/build-style/page-list/editor-rtl.css +47 -11
  241. package/build-style/page-list/editor.css +47 -11
  242. package/build-style/page-list/style-rtl.css +47 -11
  243. package/build-style/page-list/style.css +47 -11
  244. package/build-style/paragraph/editor-rtl.css +47 -11
  245. package/build-style/paragraph/editor.css +47 -11
  246. package/build-style/paragraph/style-rtl.css +47 -11
  247. package/build-style/paragraph/style.css +47 -11
  248. package/build-style/post-author/editor-rtl.css +47 -11
  249. package/build-style/post-author/editor.css +47 -11
  250. package/build-style/post-author/style-rtl.css +47 -11
  251. package/build-style/post-author/style.css +47 -11
  252. package/build-style/post-author-biography/style-rtl.css +47 -11
  253. package/build-style/post-author-biography/style.css +47 -11
  254. package/build-style/post-author-name/style-rtl.css +47 -11
  255. package/build-style/post-author-name/style.css +47 -11
  256. package/build-style/post-comments-count/style-rtl.css +47 -11
  257. package/build-style/post-comments-count/style.css +47 -11
  258. package/build-style/post-comments-form/editor-rtl.css +47 -11
  259. package/build-style/post-comments-form/editor.css +47 -11
  260. package/build-style/post-comments-form/style-rtl.css +47 -14
  261. package/build-style/post-comments-form/style.css +47 -14
  262. package/build-style/post-comments-link/style-rtl.css +47 -11
  263. package/build-style/post-comments-link/style.css +47 -11
  264. package/build-style/post-content/style-rtl.css +47 -11
  265. package/build-style/post-content/style.css +47 -11
  266. package/build-style/post-date/style-rtl.css +47 -11
  267. package/build-style/post-date/style.css +47 -11
  268. package/build-style/post-excerpt/editor-rtl.css +47 -11
  269. package/build-style/post-excerpt/editor.css +47 -11
  270. package/build-style/post-excerpt/style-rtl.css +47 -11
  271. package/build-style/post-excerpt/style.css +47 -11
  272. package/build-style/post-featured-image/editor-rtl.css +47 -11
  273. package/build-style/post-featured-image/editor.css +47 -11
  274. package/build-style/post-featured-image/style-rtl.css +47 -11
  275. package/build-style/post-featured-image/style.css +47 -11
  276. package/build-style/post-navigation-link/style-rtl.css +47 -11
  277. package/build-style/post-navigation-link/style.css +47 -11
  278. package/build-style/post-template/style-rtl.css +47 -11
  279. package/build-style/post-template/style.css +47 -11
  280. package/build-style/post-terms/style-rtl.css +47 -11
  281. package/build-style/post-terms/style.css +47 -11
  282. package/build-style/post-time-to-read/style-rtl.css +47 -11
  283. package/build-style/post-time-to-read/style.css +47 -11
  284. package/build-style/post-title/style-rtl.css +47 -11
  285. package/build-style/post-title/style.css +47 -11
  286. package/build-style/preformatted/style-rtl.css +47 -11
  287. package/build-style/preformatted/style.css +47 -11
  288. package/build-style/pullquote/editor-rtl.css +47 -11
  289. package/build-style/pullquote/editor.css +47 -11
  290. package/build-style/pullquote/style-rtl.css +47 -11
  291. package/build-style/pullquote/style.css +47 -11
  292. package/build-style/pullquote/theme-rtl.css +47 -11
  293. package/build-style/pullquote/theme.css +47 -11
  294. package/build-style/query/editor-rtl.css +47 -11
  295. package/build-style/query/editor.css +47 -11
  296. package/build-style/query-pagination/editor-rtl.css +47 -11
  297. package/build-style/query-pagination/editor.css +47 -11
  298. package/build-style/query-pagination/style-rtl.css +47 -11
  299. package/build-style/query-pagination/style.css +47 -11
  300. package/build-style/query-pagination-numbers/editor-rtl.css +47 -11
  301. package/build-style/query-pagination-numbers/editor.css +47 -11
  302. package/build-style/query-title/style-rtl.css +47 -11
  303. package/build-style/query-title/style.css +47 -11
  304. package/build-style/query-total/style-rtl.css +47 -11
  305. package/build-style/query-total/style.css +47 -11
  306. package/build-style/quote/style-rtl.css +47 -11
  307. package/build-style/quote/style.css +47 -11
  308. package/build-style/quote/theme-rtl.css +47 -11
  309. package/build-style/quote/theme.css +47 -11
  310. package/build-style/read-more/style-rtl.css +47 -11
  311. package/build-style/read-more/style.css +47 -11
  312. package/build-style/reset-rtl.css +47 -11
  313. package/build-style/reset.css +47 -11
  314. package/build-style/rss/editor-rtl.css +47 -11
  315. package/build-style/rss/editor.css +47 -11
  316. package/build-style/rss/style-rtl.css +47 -11
  317. package/build-style/rss/style.css +47 -11
  318. package/build-style/search/editor-rtl.css +47 -11
  319. package/build-style/search/editor.css +47 -11
  320. package/build-style/search/style-rtl.css +47 -11
  321. package/build-style/search/style.css +47 -11
  322. package/build-style/search/theme-rtl.css +47 -11
  323. package/build-style/search/theme.css +47 -11
  324. package/build-style/separator/editor-rtl.css +47 -11
  325. package/build-style/separator/editor.css +47 -11
  326. package/build-style/separator/style-rtl.css +47 -11
  327. package/build-style/separator/style.css +47 -11
  328. package/build-style/separator/theme-rtl.css +47 -11
  329. package/build-style/separator/theme.css +47 -11
  330. package/build-style/shortcode/editor-rtl.css +47 -11
  331. package/build-style/shortcode/editor.css +47 -11
  332. package/build-style/site-logo/editor-rtl.css +47 -11
  333. package/build-style/site-logo/editor.css +47 -11
  334. package/build-style/site-logo/style-rtl.css +47 -11
  335. package/build-style/site-logo/style.css +47 -11
  336. package/build-style/site-tagline/editor-rtl.css +47 -11
  337. package/build-style/site-tagline/editor.css +47 -11
  338. package/build-style/site-tagline/style-rtl.css +47 -11
  339. package/build-style/site-tagline/style.css +47 -11
  340. package/build-style/site-title/editor-rtl.css +47 -11
  341. package/build-style/site-title/editor.css +47 -11
  342. package/build-style/site-title/style-rtl.css +47 -11
  343. package/build-style/site-title/style.css +47 -11
  344. package/build-style/social-link/editor-rtl.css +47 -11
  345. package/build-style/social-link/editor.css +47 -11
  346. package/build-style/social-links/editor-rtl.css +47 -11
  347. package/build-style/social-links/editor.css +47 -11
  348. package/build-style/social-links/style-rtl.css +47 -11
  349. package/build-style/social-links/style.css +47 -11
  350. package/build-style/spacer/editor-rtl.css +47 -11
  351. package/build-style/spacer/editor.css +47 -11
  352. package/build-style/spacer/style-rtl.css +47 -11
  353. package/build-style/spacer/style.css +47 -11
  354. package/build-style/style-rtl.css +50 -15
  355. package/build-style/style.css +50 -15
  356. package/build-style/table/editor-rtl.css +47 -11
  357. package/build-style/table/editor.css +47 -11
  358. package/build-style/table/style-rtl.css +47 -11
  359. package/build-style/table/style.css +47 -11
  360. package/build-style/table/theme-rtl.css +47 -11
  361. package/build-style/table/theme.css +47 -11
  362. package/build-style/table-of-contents/style-rtl.css +47 -11
  363. package/build-style/table-of-contents/style.css +47 -11
  364. package/build-style/tag-cloud/editor-rtl.css +47 -11
  365. package/build-style/tag-cloud/editor.css +47 -11
  366. package/build-style/tag-cloud/style-rtl.css +47 -11
  367. package/build-style/tag-cloud/style.css +47 -11
  368. package/build-style/template-part/editor-rtl.css +47 -11
  369. package/build-style/template-part/editor.css +47 -11
  370. package/build-style/template-part/theme-rtl.css +47 -11
  371. package/build-style/template-part/theme.css +47 -11
  372. package/build-style/term-description/style-rtl.css +47 -11
  373. package/build-style/term-description/style.css +47 -11
  374. package/build-style/text-columns/editor-rtl.css +47 -11
  375. package/build-style/text-columns/editor.css +47 -11
  376. package/build-style/text-columns/style-rtl.css +47 -11
  377. package/build-style/text-columns/style.css +47 -11
  378. package/build-style/theme-rtl.css +47 -11
  379. package/build-style/theme.css +47 -11
  380. package/build-style/verse/style-rtl.css +47 -11
  381. package/build-style/verse/style.css +47 -11
  382. package/build-style/video/editor-rtl.css +47 -11
  383. package/build-style/video/editor.css +47 -11
  384. package/build-style/video/style-rtl.css +47 -11
  385. package/build-style/video/style.css +47 -11
  386. package/build-style/video/theme-rtl.css +47 -11
  387. package/build-style/video/theme.css +47 -11
  388. package/package.json +35 -35
  389. package/src/button/style.scss +0 -1
  390. package/src/buttons/style.scss +5 -0
  391. package/src/code/block.json +2 -1
  392. package/src/details/block.json +2 -1
  393. package/src/html/block.json +2 -1
  394. package/src/html/editor.scss +1 -0
  395. package/src/image/constants.js +1 -0
  396. package/src/image/edit.js +2 -1
  397. package/src/image/image.js +7 -5
  398. package/src/more/block.json +2 -1
  399. package/src/post-comments-form/style.scss +0 -5
  400. package/src/post-excerpt/block.json +2 -1
  401. package/src/post-excerpt/edit.js +13 -8
  402. package/src/post-navigation-link/block.json +2 -1
  403. package/src/post-navigation-link/edit.js +13 -8
  404. package/src/post-navigation-link/variations.js +13 -13
  405. package/src/post-template/edit.js +4 -3
  406. package/src/post-terms/block.json +4 -2
  407. package/src/post-terms/edit.js +13 -8
  408. package/src/preformatted/test/__snapshots__/transforms.native.js.snap +6 -0
  409. package/src/preformatted/test/transforms.native.js +6 -1
  410. package/src/preformatted/transforms.js +7 -1
  411. package/src/read-more/block.json +2 -1
  412. package/src/rss/block.json +2 -1
  413. package/src/search/edit.js +84 -99
  414. package/src/table/block.json +8 -4
  415. package/src/table/edit.js +6 -2
  416. package/src/verse/test/__snapshots__/transforms.native.js.snap +6 -0
  417. package/src/verse/test/transforms.native.js +5 -1
  418. package/build/search/icons.js +0 -121
  419. package/build/search/icons.js.map +0 -1
  420. package/build-module/search/icons.js +0 -114
  421. package/build-module/search/icons.js.map +0 -1
  422. package/src/search/icons.js +0 -89
@@ -1,15 +1,12 @@
1
- /**
2
- * Converts a hex value into the rgb equivalent.
3
- *
4
- * @param {string} hex - the hexadecimal value to convert
5
- * @return {string} comma separated rgb values
6
- */
7
1
  /**
8
2
  * Colors
9
3
  */
10
4
  /**
11
5
  * Breakpoints & Media Queries
12
6
  */
7
+ /**
8
+ * Colors
9
+ */
13
10
  /**
14
11
  * SCSS Variables.
15
12
  *
@@ -18,14 +15,50 @@
18
15
  * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
19
16
  */
20
17
  /**
21
- * Converts a hex value into the rgb equivalent.
22
- *
23
- * @param {string} hex - the hexadecimal value to convert
24
- * @return {string} comma separated rgb values
25
- */
18
+ * Fonts & basic variables.
19
+ */
20
+ /**
21
+ * Typography
22
+ */
23
+ /**
24
+ * Grid System.
25
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
26
+ */
27
+ /**
28
+ * Radius scale.
29
+ */
30
+ /**
31
+ * Elevation scale.
32
+ */
33
+ /**
34
+ * Dimensions.
35
+ */
36
+ /**
37
+ * Mobile specific styles
38
+ */
39
+ /**
40
+ * Editor styles.
41
+ */
42
+ /**
43
+ * Block & Editor UI.
44
+ */
45
+ /**
46
+ * Block paddings.
47
+ */
48
+ /**
49
+ * React Native specific.
50
+ * These variables do not appear to be used anywhere else.
51
+ */
26
52
  /**
27
53
  * Colors
28
54
  */
55
+ /**
56
+ * SCSS Variables.
57
+ *
58
+ * Please use variables from this sheet to ensure consistency across the UI.
59
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
60
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
61
+ */
29
62
  /**
30
63
  * Fonts & basic variables.
31
64
  */
@@ -61,6 +94,9 @@
61
94
  * React Native specific.
62
95
  * These variables do not appear to be used anywhere else.
63
96
  */
97
+ /**
98
+ * Breakpoints & Media Queries
99
+ */
64
100
  /**
65
101
  * Converts a hex value into the rgb equivalent.
66
102
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "9.23.0",
3
+ "version": "9.24.0",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -41,39 +41,39 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@babel/runtime": "7.25.7",
44
- "@wordpress/a11y": "^4.23.0",
45
- "@wordpress/api-fetch": "^7.23.0",
46
- "@wordpress/autop": "^4.23.0",
47
- "@wordpress/blob": "^4.23.0",
48
- "@wordpress/block-editor": "^14.18.0",
49
- "@wordpress/blocks": "^14.12.0",
50
- "@wordpress/components": "^29.9.0",
51
- "@wordpress/compose": "^7.23.0",
52
- "@wordpress/core-data": "^7.23.0",
53
- "@wordpress/data": "^10.23.0",
54
- "@wordpress/date": "^5.23.0",
55
- "@wordpress/deprecated": "^4.23.0",
56
- "@wordpress/dom": "^4.23.0",
57
- "@wordpress/element": "^6.23.0",
58
- "@wordpress/escape-html": "^3.23.0",
59
- "@wordpress/hooks": "^4.23.0",
60
- "@wordpress/html-entities": "^4.23.0",
61
- "@wordpress/i18n": "^5.23.0",
62
- "@wordpress/icons": "^10.23.0",
63
- "@wordpress/interactivity": "^6.23.0",
64
- "@wordpress/interactivity-router": "^2.23.0",
65
- "@wordpress/keyboard-shortcuts": "^5.23.0",
66
- "@wordpress/keycodes": "^4.23.0",
67
- "@wordpress/notices": "^5.23.0",
68
- "@wordpress/patterns": "^2.23.0",
69
- "@wordpress/primitives": "^4.23.0",
70
- "@wordpress/private-apis": "^1.23.0",
71
- "@wordpress/reusable-blocks": "^5.23.0",
72
- "@wordpress/rich-text": "^7.23.0",
73
- "@wordpress/server-side-render": "^5.23.0",
74
- "@wordpress/url": "^4.23.0",
75
- "@wordpress/viewport": "^6.23.0",
76
- "@wordpress/wordcount": "^4.23.0",
44
+ "@wordpress/a11y": "^4.24.0",
45
+ "@wordpress/api-fetch": "^7.24.0",
46
+ "@wordpress/autop": "^4.24.0",
47
+ "@wordpress/blob": "^4.24.0",
48
+ "@wordpress/block-editor": "^14.19.0",
49
+ "@wordpress/blocks": "^14.13.0",
50
+ "@wordpress/components": "^29.10.0",
51
+ "@wordpress/compose": "^7.24.0",
52
+ "@wordpress/core-data": "^7.24.0",
53
+ "@wordpress/data": "^10.24.0",
54
+ "@wordpress/date": "^5.24.0",
55
+ "@wordpress/deprecated": "^4.24.0",
56
+ "@wordpress/dom": "^4.24.0",
57
+ "@wordpress/element": "^6.24.0",
58
+ "@wordpress/escape-html": "^3.24.0",
59
+ "@wordpress/hooks": "^4.24.0",
60
+ "@wordpress/html-entities": "^4.24.0",
61
+ "@wordpress/i18n": "^5.24.0",
62
+ "@wordpress/icons": "^10.24.0",
63
+ "@wordpress/interactivity": "^6.24.0",
64
+ "@wordpress/interactivity-router": "^2.24.0",
65
+ "@wordpress/keyboard-shortcuts": "^5.24.0",
66
+ "@wordpress/keycodes": "^4.24.0",
67
+ "@wordpress/notices": "^5.24.0",
68
+ "@wordpress/patterns": "^2.24.0",
69
+ "@wordpress/primitives": "^4.24.0",
70
+ "@wordpress/private-apis": "^1.24.0",
71
+ "@wordpress/reusable-blocks": "^5.24.0",
72
+ "@wordpress/rich-text": "^7.24.0",
73
+ "@wordpress/server-side-render": "^6.0.0",
74
+ "@wordpress/url": "^4.24.0",
75
+ "@wordpress/viewport": "^6.24.0",
76
+ "@wordpress/wordcount": "^4.24.0",
77
77
  "change-case": "^4.1.2",
78
78
  "clsx": "^2.1.1",
79
79
  "colord": "^2.7.0",
@@ -91,5 +91,5 @@
91
91
  "publishConfig": {
92
92
  "access": "public"
93
93
  },
94
- "gitHead": "ab5c79cd40adbb68898536c50e035b0a734338ea"
94
+ "gitHead": "9c03d1458cae76792ae15e67b421205836bf4393"
95
95
  }
@@ -10,7 +10,6 @@ $blocks-block__margin: 0.5em;
10
10
  word-break: break-word; // overflow-wrap doesn't work well if a link is wrapped in the div, so use word-break here.
11
11
  box-sizing: border-box;
12
12
  height: 100%;
13
- width: 100%;
14
13
  align-content: center;
15
14
 
16
15
  &.aligncenter {
@@ -82,6 +82,11 @@ $blocks-block__margin: 0.5em;
82
82
  font-size: inherit;
83
83
  }
84
84
  }
85
+
86
+ // Needed to make the buttons stretch correctly in a vertical layout.
87
+ .wp-block-button__link {
88
+ width: 100%;
89
+ }
85
90
  }
86
91
 
87
92
  // Legacy buttons that did not come in a wrapping container.
@@ -11,7 +11,8 @@
11
11
  "type": "rich-text",
12
12
  "source": "rich-text",
13
13
  "selector": "code",
14
- "__unstablePreserveWhiteSpace": true
14
+ "__unstablePreserveWhiteSpace": true,
15
+ "role": "content"
15
16
  }
16
17
  },
17
18
  "supports": {
@@ -15,7 +15,8 @@
15
15
  "summary": {
16
16
  "type": "rich-text",
17
17
  "source": "rich-text",
18
- "selector": "summary"
18
+ "selector": "summary",
19
+ "role": "content"
19
20
  },
20
21
  "name": {
21
22
  "type": "string",
@@ -10,7 +10,8 @@
10
10
  "attributes": {
11
11
  "content": {
12
12
  "type": "string",
13
- "source": "raw"
13
+ "source": "raw",
14
+ "role": "content"
14
15
  }
15
16
  },
16
17
  "supports": {
@@ -10,6 +10,7 @@
10
10
  // The editing view for the HTML block is equivalent to block UI.
11
11
  // Therefore we increase specificity to avoid theme styles bleeding in.
12
12
  .block-editor-plain-text {
13
+ display: block;
13
14
  box-sizing: border-box;
14
15
  max-height: 250px;
15
16
  @include editor-input-reset();
@@ -7,3 +7,4 @@ export const NEW_TAB_REL = [ 'noreferrer', 'noopener' ];
7
7
  export const ALLOWED_MEDIA_TYPES = [ 'image' ];
8
8
  export const MEDIA_ID_NO_FEATURED_IMAGE_SET = 0;
9
9
  export const SIZED_LAYOUTS = [ 'flex', 'grid' ];
10
+ export const DEFAULT_MEDIA_SIZE_SLUG = 'full';
package/src/image/edit.js CHANGED
@@ -42,6 +42,7 @@ import {
42
42
  LINK_DESTINATION_MEDIA,
43
43
  LINK_DESTINATION_NONE,
44
44
  ALLOWED_MEDIA_TYPES,
45
+ DEFAULT_MEDIA_SIZE_SLUG,
45
46
  } from './constants';
46
47
 
47
48
  export const pickRelevantMediaFiles = ( image, size ) => {
@@ -239,7 +240,7 @@ export function ImageEdit( {
239
240
 
240
241
  // Try to use the previous selected image size if its available
241
242
  // otherwise try the default image size or fallback to "full"
242
- let newSize = 'full';
243
+ let newSize = DEFAULT_MEDIA_SIZE_SLUG;
243
244
  if ( sizeSlug && hasSize( media, sizeSlug ) ) {
244
245
  newSize = sizeSlug;
245
246
  } else if ( hasSize( media, imageDefaultSize ) ) {
@@ -53,12 +53,13 @@ import { unlock } from '../lock-unlock';
53
53
  import { createUpgradedEmbedBlock } from '../embed/util';
54
54
  import { isExternalImage } from './edit';
55
55
  import { Caption } from '../utils/caption';
56
-
57
- /**
58
- * Module constants
59
- */
60
56
  import { useToolsPanelDropdownMenuProps } from '../utils/hooks';
61
- import { MIN_SIZE, ALLOWED_MEDIA_TYPES, SIZED_LAYOUTS } from './constants';
57
+ import {
58
+ MIN_SIZE,
59
+ ALLOWED_MEDIA_TYPES,
60
+ SIZED_LAYOUTS,
61
+ DEFAULT_MEDIA_SIZE_SLUG,
62
+ } from './constants';
62
63
  import { evalAspectRatio } from './utils';
63
64
 
64
65
  const { DimensionsTool, ResolutionTool } = unlock( blockEditorPrivateApis );
@@ -836,6 +837,7 @@ export default function Image( {
836
837
  { !! imageSizeOptions.length && (
837
838
  <ResolutionTool
838
839
  value={ sizeSlug }
840
+ defaultValue={ DEFAULT_MEDIA_SIZE_SLUG }
839
841
  onChange={ updateImage }
840
842
  options={ imageSizeOptions }
841
843
  />
@@ -10,7 +10,8 @@
10
10
  "attributes": {
11
11
  "customText": {
12
12
  "type": "string",
13
- "default": ""
13
+ "default": "",
14
+ "role": "content"
14
15
  },
15
16
  "noTeaser": {
16
17
  "type": "boolean",
@@ -82,9 +82,4 @@
82
82
  margin-left: 0.5em;
83
83
  }
84
84
  }
85
-
86
- // Override the 100% width derived from the Button block
87
- input[type="submit"] {
88
- width: auto;
89
- }
90
85
  }
@@ -11,7 +11,8 @@
11
11
  "type": "string"
12
12
  },
13
13
  "moreText": {
14
- "type": "string"
14
+ "type": "string",
15
+ "role": "content"
15
16
  },
16
17
  "showMoreOnNewLine": {
17
18
  "type": "boolean",
@@ -15,6 +15,7 @@ import {
15
15
  RichText,
16
16
  Warning,
17
17
  useBlockProps,
18
+ useBlockEditingMode,
18
19
  } from '@wordpress/block-editor';
19
20
  import {
20
21
  ToggleControl,
@@ -41,6 +42,8 @@ export default function PostExcerptEditor( {
41
42
  isSelected,
42
43
  context: { postId, postType, queryId },
43
44
  } ) {
45
+ const blockEditingMode = useBlockEditingMode();
46
+ const showControls = blockEditingMode === 'default';
44
47
  const isDescendentOfQueryLoop = Number.isFinite( queryId );
45
48
  const userCanEdit = useCanEditEntity( 'postType', postType, postId );
46
49
  const [
@@ -220,14 +223,16 @@ export default function PostExcerptEditor( {
220
223
  );
221
224
  return (
222
225
  <>
223
- <BlockControls>
224
- <AlignmentToolbar
225
- value={ textAlign }
226
- onChange={ ( newAlign ) =>
227
- setAttributes( { textAlign: newAlign } )
228
- }
229
- />
230
- </BlockControls>
226
+ { showControls && (
227
+ <BlockControls>
228
+ <AlignmentToolbar
229
+ value={ textAlign }
230
+ onChange={ ( newAlign ) =>
231
+ setAttributes( { textAlign: newAlign } )
232
+ }
233
+ />
234
+ </BlockControls>
235
+ ) }
231
236
  <InspectorControls>
232
237
  <ToolsPanel
233
238
  label={ __( 'Settings' ) }
@@ -15,7 +15,8 @@
15
15
  "default": "next"
16
16
  },
17
17
  "label": {
18
- "type": "string"
18
+ "type": "string",
19
+ "role": "content"
19
20
  },
20
21
  "showTitle": {
21
22
  "type": "boolean",
@@ -19,6 +19,7 @@ import {
19
19
  BlockControls,
20
20
  AlignmentToolbar,
21
21
  useBlockProps,
22
+ useBlockEditingMode,
22
23
  } from '@wordpress/block-editor';
23
24
  import { __, _x } from '@wordpress/i18n';
24
25
  import { useSelect } from '@wordpress/data';
@@ -37,6 +38,8 @@ export default function PostNavigationLinkEdit( {
37
38
  },
38
39
  setAttributes,
39
40
  } ) {
41
+ const blockEditingMode = useBlockEditingMode();
42
+ const showControls = blockEditingMode === 'default';
40
43
  const isNext = type === 'next';
41
44
  let placeholder = isNext ? __( 'Next' ) : __( 'Previous' );
42
45
 
@@ -176,14 +179,16 @@ export default function PostNavigationLinkEdit( {
176
179
  ) }
177
180
  />
178
181
  </InspectorControls>
179
- <BlockControls>
180
- <AlignmentToolbar
181
- value={ textAlign }
182
- onChange={ ( nextAlign ) => {
183
- setAttributes( { textAlign: nextAlign } );
184
- } }
185
- />
186
- </BlockControls>
182
+ { showControls && (
183
+ <BlockControls>
184
+ <AlignmentToolbar
185
+ value={ textAlign }
186
+ onChange={ ( nextAlign ) => {
187
+ setAttributes( { textAlign: nextAlign } );
188
+ } }
189
+ />
190
+ </BlockControls>
191
+ ) }
187
192
  <div { ...blockProps }>
188
193
  { ! isNext && displayArrow && (
189
194
  <span
@@ -6,34 +6,34 @@ import { next, previous } from '@wordpress/icons';
6
6
 
7
7
  const variations = [
8
8
  {
9
- isDefault: true,
10
- name: 'post-next',
11
- title: __( 'Next Post' ),
9
+ name: 'post-previous',
10
+ title: __( 'Previous Post' ),
12
11
  description: __(
13
- 'Displays the post link that follows the current post.'
12
+ 'Displays the post link that precedes the current post.'
14
13
  ),
15
- icon: next,
16
- attributes: { type: 'next' },
14
+ icon: previous,
15
+ attributes: { type: 'previous' },
17
16
  scope: [ 'inserter', 'transform' ],
18
17
  example: {
19
18
  attributes: {
20
- label: __( 'Next post' ),
19
+ label: __( 'Previous post' ),
21
20
  arrow: 'arrow',
22
21
  },
23
22
  },
24
23
  },
25
24
  {
26
- name: 'post-previous',
27
- title: __( 'Previous Post' ),
25
+ isDefault: true,
26
+ name: 'post-next',
27
+ title: __( 'Next Post' ),
28
28
  description: __(
29
- 'Displays the post link that precedes the current post.'
29
+ 'Displays the post link that follows the current post.'
30
30
  ),
31
- icon: previous,
32
- attributes: { type: 'previous' },
31
+ icon: next,
32
+ attributes: { type: 'next' },
33
33
  scope: [ 'inserter', 'transform' ],
34
34
  example: {
35
35
  attributes: {
36
- label: __( 'Previous post' ),
36
+ label: __( 'Next post' ),
37
37
  arrow: 'arrow',
38
38
  },
39
39
  },
@@ -181,14 +181,15 @@ export default function PostTemplateEdit( {
181
181
  * Handle cases where sticky is set to `exclude` or `only`.
182
182
  * Which works as a `post__in/post__not_in` query for sticky posts.
183
183
  */
184
- if ( sticky && sticky !== 'ignore' ) {
184
+ if ( [ 'exclude', 'only' ].includes( sticky ) ) {
185
185
  query.sticky = sticky === 'only';
186
186
  }
187
187
 
188
- if ( sticky === 'ignore' ) {
188
+ // Empty string represents the default behavior of including sticky posts.
189
+ if ( [ '', 'ignore' ].includes( sticky ) ) {
189
190
  // Remove any leftover sticky query parameter.
190
191
  delete query.sticky;
191
- query.ignore_sticky = true;
192
+ query.ignore_sticky = sticky === 'ignore';
192
193
  }
193
194
 
194
195
  // If `inherit` is truthy, adjust conditionally the query to create a better preview.
@@ -19,11 +19,13 @@
19
19
  },
20
20
  "prefix": {
21
21
  "type": "string",
22
- "default": ""
22
+ "default": "",
23
+ "role": "content"
23
24
  },
24
25
  "suffix": {
25
26
  "type": "string",
26
- "default": ""
27
+ "default": "",
28
+ "role": "content"
27
29
  }
28
30
  },
29
31
  "usesContext": [ "postId", "postType" ],
@@ -13,6 +13,7 @@ import {
13
13
  useBlockProps,
14
14
  useBlockDisplayInformation,
15
15
  RichText,
16
+ useBlockEditingMode,
16
17
  } from '@wordpress/block-editor';
17
18
  import { createBlock, getDefaultBlockName } from '@wordpress/blocks';
18
19
  import { Spinner, TextControl } from '@wordpress/components';
@@ -46,6 +47,8 @@ export default function PostTermsEdit( {
46
47
  } ) {
47
48
  const { term, textAlign, separator, prefix, suffix } = attributes;
48
49
  const { postId, postType } = context;
50
+ const blockEditingMode = useBlockEditingMode();
51
+ const showControls = blockEditingMode === 'default';
49
52
 
50
53
  const selectedTerm = useSelect(
51
54
  ( select ) => {
@@ -73,14 +76,16 @@ export default function PostTermsEdit( {
73
76
 
74
77
  return (
75
78
  <>
76
- <BlockControls>
77
- <AlignmentToolbar
78
- value={ textAlign }
79
- onChange={ ( nextAlign ) => {
80
- setAttributes( { textAlign: nextAlign } );
81
- } }
82
- />
83
- </BlockControls>
79
+ { showControls && (
80
+ <BlockControls>
81
+ <AlignmentToolbar
82
+ value={ textAlign }
83
+ onChange={ ( nextAlign ) => {
84
+ setAttributes( { textAlign: nextAlign } );
85
+ } }
86
+ />
87
+ </BlockControls>
88
+ ) }
84
89
  <InspectorControls group="advanced">
85
90
  <TextControl
86
91
  __next40pxDefaultSize
@@ -29,3 +29,9 @@ exports[`Preformatted block transforms to Paragraph block 1`] = `
29
29
  <p>Some <em>preformatted</em> text...<br />And more!</p>
30
30
  <!-- /wp:paragraph -->"
31
31
  `;
32
+
33
+ exports[`Preformatted block transforms to Verse block 1`] = `
34
+ "<!-- wp:verse -->
35
+ <pre class="wp-block-verse">Some <em>preformatted</em> text...<br />And more!</pre>
36
+ <!-- /wp:verse -->"
37
+ `;
@@ -16,7 +16,12 @@ const initialHtml = `
16
16
  <!-- /wp:preformatted -->`;
17
17
 
18
18
  const transformsWithInnerBlocks = [ 'Columns', 'Group' ];
19
- const blockTransforms = [ 'Paragraph', 'Code', ...transformsWithInnerBlocks ];
19
+ const blockTransforms = [
20
+ 'Paragraph',
21
+ 'Code',
22
+ 'Verse',
23
+ ...transformsWithInnerBlocks,
24
+ ];
20
25
 
21
26
  setupCoreBlocks();
22
27
 
@@ -7,7 +7,7 @@ const transforms = {
7
7
  from: [
8
8
  {
9
9
  type: 'block',
10
- blocks: [ 'core/code', 'core/paragraph' ],
10
+ blocks: [ 'core/code', 'core/paragraph', 'core/verse' ],
11
11
  transform: ( { content, anchor } ) =>
12
12
  createBlock( 'core/preformatted', {
13
13
  content,
@@ -41,6 +41,12 @@ const transforms = {
41
41
  blocks: [ 'core/code' ],
42
42
  transform: ( attributes ) => createBlock( 'core/code', attributes ),
43
43
  },
44
+ {
45
+ type: 'block',
46
+ blocks: [ 'core/verse' ],
47
+ transform: ( attributes ) =>
48
+ createBlock( 'core/verse', attributes ),
49
+ },
44
50
  ],
45
51
  };
46
52
 
@@ -8,7 +8,8 @@
8
8
  "textdomain": "default",
9
9
  "attributes": {
10
10
  "content": {
11
- "type": "string"
11
+ "type": "string",
12
+ "role": "content"
12
13
  },
13
14
  "linkTarget": {
14
15
  "type": "string",
@@ -18,7 +18,8 @@
18
18
  },
19
19
  "feedURL": {
20
20
  "type": "string",
21
- "default": ""
21
+ "default": "",
22
+ "role": "content"
22
23
  },
23
24
  "itemsToShow": {
24
25
  "type": "number",