@wordpress/block-library 9.8.4 → 9.9.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 (453) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/avatar/index.js +2 -1
  3. package/build/avatar/index.js.map +1 -1
  4. package/build/block/edit.js +1 -4
  5. package/build/block/edit.js.map +1 -1
  6. package/build/button/edit.js +2 -4
  7. package/build/button/edit.js.map +1 -1
  8. package/build/comment-author-name/index.js +2 -1
  9. package/build/comment-author-name/index.js.map +1 -1
  10. package/build/comment-content/index.js +2 -1
  11. package/build/comment-content/index.js.map +1 -1
  12. package/build/comment-date/index.js +2 -1
  13. package/build/comment-date/index.js.map +1 -1
  14. package/build/comment-edit-link/index.js +2 -1
  15. package/build/comment-edit-link/index.js.map +1 -1
  16. package/build/comment-reply-link/index.js +2 -1
  17. package/build/comment-reply-link/index.js.map +1 -1
  18. package/build/comments-pagination-next/index.js +5 -0
  19. package/build/comments-pagination-next/index.js.map +1 -1
  20. package/build/comments-pagination-numbers/index.js +2 -1
  21. package/build/comments-pagination-numbers/index.js.map +1 -1
  22. package/build/comments-pagination-previous/index.js +5 -0
  23. package/build/comments-pagination-previous/index.js.map +1 -1
  24. package/build/comments-title/index.js +2 -1
  25. package/build/comments-title/index.js.map +1 -1
  26. package/build/cover/edit/index.js +4 -2
  27. package/build/cover/edit/index.js.map +1 -1
  28. package/build/file/index.js +8 -4
  29. package/build/file/index.js.map +1 -1
  30. package/build/image/edit.js +2 -4
  31. package/build/image/edit.js.map +1 -1
  32. package/build/image/image.js +6 -10
  33. package/build/image/image.js.map +1 -1
  34. package/build/post-navigation-link/index.js +6 -0
  35. package/build/post-navigation-link/index.js.map +1 -1
  36. package/build/post-navigation-link/variations.js +14 -2
  37. package/build/post-navigation-link/variations.js.map +1 -1
  38. package/build/post-time-to-read/index.js +2 -1
  39. package/build/post-time-to-read/index.js.map +1 -1
  40. package/build/query/edit/inspector-controls/index.js +2 -2
  41. package/build/query/edit/inspector-controls/index.js.map +1 -1
  42. package/build/query/edit/inspector-controls/pages-control.js +1 -1
  43. package/build/query/edit/inspector-controls/pages-control.js.map +1 -1
  44. package/build/query/edit/inspector-controls/per-page-control.js +1 -1
  45. package/build/query/edit/inspector-controls/per-page-control.js.map +1 -1
  46. package/build/query/index.js +1 -0
  47. package/build/query/index.js.map +1 -1
  48. package/build/query-no-results/index.js +8 -0
  49. package/build/query-no-results/index.js.map +1 -1
  50. package/build/query-pagination-numbers/index.js +2 -1
  51. package/build/query-pagination-numbers/index.js.map +1 -1
  52. package/build/query-title/index.js +5 -0
  53. package/build/query-title/index.js.map +1 -1
  54. package/build/site-logo/edit.js +5 -3
  55. package/build/site-logo/edit.js.map +1 -1
  56. package/build/table-of-contents/index.js +42 -1
  57. package/build/table-of-contents/index.js.map +1 -1
  58. package/build/term-description/index.js +2 -1
  59. package/build/term-description/index.js.map +1 -1
  60. package/build-module/avatar/index.js +2 -1
  61. package/build-module/avatar/index.js.map +1 -1
  62. package/build-module/block/edit.js +1 -4
  63. package/build-module/block/edit.js.map +1 -1
  64. package/build-module/button/edit.js +4 -6
  65. package/build-module/button/edit.js.map +1 -1
  66. package/build-module/comment-author-name/index.js +2 -1
  67. package/build-module/comment-author-name/index.js.map +1 -1
  68. package/build-module/comment-content/index.js +2 -1
  69. package/build-module/comment-content/index.js.map +1 -1
  70. package/build-module/comment-date/index.js +2 -1
  71. package/build-module/comment-date/index.js.map +1 -1
  72. package/build-module/comment-edit-link/index.js +2 -1
  73. package/build-module/comment-edit-link/index.js.map +1 -1
  74. package/build-module/comment-reply-link/index.js +2 -1
  75. package/build-module/comment-reply-link/index.js.map +1 -1
  76. package/build-module/comments-pagination-next/index.js +5 -0
  77. package/build-module/comments-pagination-next/index.js.map +1 -1
  78. package/build-module/comments-pagination-numbers/index.js +2 -1
  79. package/build-module/comments-pagination-numbers/index.js.map +1 -1
  80. package/build-module/comments-pagination-previous/index.js +5 -0
  81. package/build-module/comments-pagination-previous/index.js.map +1 -1
  82. package/build-module/comments-title/index.js +2 -1
  83. package/build-module/comments-title/index.js.map +1 -1
  84. package/build-module/cover/edit/index.js +5 -3
  85. package/build-module/cover/edit/index.js.map +1 -1
  86. package/build-module/file/index.js +8 -4
  87. package/build-module/file/index.js.map +1 -1
  88. package/build-module/image/edit.js +4 -6
  89. package/build-module/image/edit.js.map +1 -1
  90. package/build-module/image/image.js +5 -9
  91. package/build-module/image/image.js.map +1 -1
  92. package/build-module/post-navigation-link/index.js +6 -0
  93. package/build-module/post-navigation-link/index.js.map +1 -1
  94. package/build-module/post-navigation-link/variations.js +14 -2
  95. package/build-module/post-navigation-link/variations.js.map +1 -1
  96. package/build-module/post-time-to-read/index.js +2 -1
  97. package/build-module/post-time-to-read/index.js.map +1 -1
  98. package/build-module/query/edit/inspector-controls/index.js +2 -2
  99. package/build-module/query/edit/inspector-controls/index.js.map +1 -1
  100. package/build-module/query/edit/inspector-controls/pages-control.js +1 -1
  101. package/build-module/query/edit/inspector-controls/pages-control.js.map +1 -1
  102. package/build-module/query/edit/inspector-controls/per-page-control.js +1 -1
  103. package/build-module/query/edit/inspector-controls/per-page-control.js.map +1 -1
  104. package/build-module/query/index.js +1 -0
  105. package/build-module/query/index.js.map +1 -1
  106. package/build-module/query-no-results/index.js +8 -0
  107. package/build-module/query-no-results/index.js.map +1 -1
  108. package/build-module/query-pagination-numbers/index.js +2 -1
  109. package/build-module/query-pagination-numbers/index.js.map +1 -1
  110. package/build-module/query-title/index.js +5 -0
  111. package/build-module/query-title/index.js.map +1 -1
  112. package/build-module/site-logo/edit.js +5 -3
  113. package/build-module/site-logo/edit.js.map +1 -1
  114. package/build-module/table-of-contents/index.js +42 -1
  115. package/build-module/table-of-contents/index.js.map +1 -1
  116. package/build-module/term-description/index.js +2 -1
  117. package/build-module/term-description/index.js.map +1 -1
  118. package/build-style/archives/editor-rtl.css +10 -1
  119. package/build-style/archives/editor.css +10 -1
  120. package/build-style/archives/style-rtl.css +10 -1
  121. package/build-style/archives/style.css +10 -1
  122. package/build-style/audio/editor-rtl.css +10 -1
  123. package/build-style/audio/editor.css +10 -1
  124. package/build-style/audio/style-rtl.css +10 -1
  125. package/build-style/audio/style.css +10 -1
  126. package/build-style/audio/theme-rtl.css +10 -1
  127. package/build-style/audio/theme.css +10 -1
  128. package/build-style/avatar/editor-rtl.css +10 -1
  129. package/build-style/avatar/editor.css +10 -1
  130. package/build-style/avatar/style-rtl.css +10 -1
  131. package/build-style/avatar/style.css +10 -1
  132. package/build-style/button/editor-rtl.css +10 -1
  133. package/build-style/button/editor.css +10 -1
  134. package/build-style/button/style-rtl.css +10 -1
  135. package/build-style/button/style.css +10 -1
  136. package/build-style/buttons/editor-rtl.css +10 -1
  137. package/build-style/buttons/editor.css +10 -1
  138. package/build-style/buttons/style-rtl.css +11 -1
  139. package/build-style/buttons/style.css +11 -1
  140. package/build-style/calendar/style-rtl.css +10 -1
  141. package/build-style/calendar/style.css +10 -1
  142. package/build-style/categories/editor-rtl.css +10 -1
  143. package/build-style/categories/editor.css +10 -1
  144. package/build-style/categories/style-rtl.css +10 -1
  145. package/build-style/categories/style.css +10 -1
  146. package/build-style/classic-rtl.css +10 -1
  147. package/build-style/classic.css +10 -1
  148. package/build-style/code/editor-rtl.css +10 -1
  149. package/build-style/code/editor.css +10 -1
  150. package/build-style/code/style-rtl.css +10 -1
  151. package/build-style/code/style.css +10 -1
  152. package/build-style/code/theme-rtl.css +10 -1
  153. package/build-style/code/theme.css +10 -1
  154. package/build-style/columns/editor-rtl.css +10 -1
  155. package/build-style/columns/editor.css +10 -1
  156. package/build-style/columns/style-rtl.css +10 -1
  157. package/build-style/columns/style.css +10 -1
  158. package/build-style/comment-author-avatar/editor-rtl.css +10 -1
  159. package/build-style/comment-author-avatar/editor.css +10 -1
  160. package/build-style/comment-author-name/style-rtl.css +10 -1
  161. package/build-style/comment-author-name/style.css +10 -1
  162. package/build-style/comment-content/style-rtl.css +10 -1
  163. package/build-style/comment-content/style.css +10 -1
  164. package/build-style/comment-date/style-rtl.css +10 -1
  165. package/build-style/comment-date/style.css +10 -1
  166. package/build-style/comment-edit-link/style-rtl.css +10 -1
  167. package/build-style/comment-edit-link/style.css +10 -1
  168. package/build-style/comment-reply-link/style-rtl.css +10 -1
  169. package/build-style/comment-reply-link/style.css +10 -1
  170. package/build-style/comment-template/style-rtl.css +10 -1
  171. package/build-style/comment-template/style.css +10 -1
  172. package/build-style/comments/editor-rtl.css +10 -1
  173. package/build-style/comments/editor.css +10 -1
  174. package/build-style/comments/style-rtl.css +10 -1
  175. package/build-style/comments/style.css +10 -1
  176. package/build-style/comments-pagination/editor-rtl.css +10 -1
  177. package/build-style/comments-pagination/editor.css +10 -1
  178. package/build-style/comments-pagination/style-rtl.css +10 -1
  179. package/build-style/comments-pagination/style.css +10 -1
  180. package/build-style/comments-pagination-numbers/editor-rtl.css +10 -1
  181. package/build-style/comments-pagination-numbers/editor.css +10 -1
  182. package/build-style/comments-title/editor-rtl.css +10 -1
  183. package/build-style/comments-title/editor.css +10 -1
  184. package/build-style/common-rtl.css +10 -1
  185. package/build-style/common.css +10 -1
  186. package/build-style/cover/editor-rtl.css +10 -1
  187. package/build-style/cover/editor.css +10 -1
  188. package/build-style/cover/style-rtl.css +10 -1
  189. package/build-style/cover/style.css +10 -1
  190. package/build-style/details/editor-rtl.css +10 -1
  191. package/build-style/details/editor.css +10 -1
  192. package/build-style/details/style-rtl.css +10 -1
  193. package/build-style/details/style.css +10 -1
  194. package/build-style/editor-elements-rtl.css +10 -1
  195. package/build-style/editor-elements.css +10 -1
  196. package/build-style/editor-rtl.css +16 -19
  197. package/build-style/editor.css +16 -19
  198. package/build-style/elements-rtl.css +10 -1
  199. package/build-style/elements.css +10 -1
  200. package/build-style/embed/editor-rtl.css +10 -1
  201. package/build-style/embed/editor.css +10 -1
  202. package/build-style/embed/style-rtl.css +10 -1
  203. package/build-style/embed/style.css +10 -1
  204. package/build-style/embed/theme-rtl.css +10 -1
  205. package/build-style/embed/theme.css +10 -1
  206. package/build-style/file/editor-rtl.css +10 -1
  207. package/build-style/file/editor.css +10 -1
  208. package/build-style/file/style-rtl.css +10 -1
  209. package/build-style/file/style.css +10 -1
  210. package/build-style/footnotes/style-rtl.css +10 -1
  211. package/build-style/footnotes/style.css +10 -1
  212. package/build-style/form-input/editor-rtl.css +10 -1
  213. package/build-style/form-input/editor.css +10 -1
  214. package/build-style/form-input/style-rtl.css +10 -1
  215. package/build-style/form-input/style.css +10 -1
  216. package/build-style/form-submission-notification/editor-rtl.css +10 -1
  217. package/build-style/form-submission-notification/editor.css +10 -1
  218. package/build-style/form-submit-button/style-rtl.css +10 -1
  219. package/build-style/form-submit-button/style.css +10 -1
  220. package/build-style/freeform/editor-rtl.css +10 -1
  221. package/build-style/freeform/editor.css +10 -1
  222. package/build-style/gallery/editor-rtl.css +10 -1
  223. package/build-style/gallery/editor.css +10 -1
  224. package/build-style/gallery/style-rtl.css +10 -1
  225. package/build-style/gallery/style.css +10 -1
  226. package/build-style/gallery/theme-rtl.css +10 -1
  227. package/build-style/gallery/theme.css +10 -1
  228. package/build-style/group/editor-rtl.css +12 -3
  229. package/build-style/group/editor.css +12 -3
  230. package/build-style/group/style-rtl.css +10 -1
  231. package/build-style/group/style.css +10 -1
  232. package/build-style/group/theme-rtl.css +10 -1
  233. package/build-style/group/theme.css +10 -1
  234. package/build-style/heading/style-rtl.css +10 -1
  235. package/build-style/heading/style.css +10 -1
  236. package/build-style/html/editor-rtl.css +10 -1
  237. package/build-style/html/editor.css +10 -1
  238. package/build-style/image/editor-rtl.css +10 -1
  239. package/build-style/image/editor.css +10 -1
  240. package/build-style/image/style-rtl.css +10 -1
  241. package/build-style/image/style.css +10 -1
  242. package/build-style/image/theme-rtl.css +10 -1
  243. package/build-style/image/theme.css +10 -1
  244. package/build-style/latest-comments/style-rtl.css +10 -1
  245. package/build-style/latest-comments/style.css +10 -1
  246. package/build-style/latest-posts/editor-rtl.css +10 -1
  247. package/build-style/latest-posts/editor.css +10 -1
  248. package/build-style/latest-posts/style-rtl.css +10 -1
  249. package/build-style/latest-posts/style.css +10 -1
  250. package/build-style/list/style-rtl.css +10 -1
  251. package/build-style/list/style.css +10 -1
  252. package/build-style/loginout/style-rtl.css +10 -1
  253. package/build-style/loginout/style.css +10 -1
  254. package/build-style/media-text/editor-rtl.css +10 -1
  255. package/build-style/media-text/editor.css +10 -1
  256. package/build-style/media-text/style-rtl.css +10 -1
  257. package/build-style/media-text/style.css +10 -1
  258. package/build-style/more/editor-rtl.css +10 -1
  259. package/build-style/more/editor.css +10 -1
  260. package/build-style/navigation/editor-rtl.css +10 -1
  261. package/build-style/navigation/editor.css +10 -1
  262. package/build-style/navigation/style-rtl.css +10 -1
  263. package/build-style/navigation/style.css +10 -1
  264. package/build-style/navigation-link/editor-rtl.css +10 -1
  265. package/build-style/navigation-link/editor.css +10 -1
  266. package/build-style/navigation-link/style-rtl.css +10 -1
  267. package/build-style/navigation-link/style.css +10 -1
  268. package/build-style/navigation-submenu/editor-rtl.css +10 -1
  269. package/build-style/navigation-submenu/editor.css +10 -1
  270. package/build-style/nextpage/editor-rtl.css +10 -1
  271. package/build-style/nextpage/editor.css +10 -1
  272. package/build-style/page-list/editor-rtl.css +10 -1
  273. package/build-style/page-list/editor.css +10 -1
  274. package/build-style/page-list/style-rtl.css +10 -1
  275. package/build-style/page-list/style.css +10 -1
  276. package/build-style/paragraph/editor-rtl.css +10 -1
  277. package/build-style/paragraph/editor.css +10 -1
  278. package/build-style/paragraph/style-rtl.css +10 -1
  279. package/build-style/paragraph/style.css +10 -1
  280. package/build-style/post-author/editor-rtl.css +10 -1
  281. package/build-style/post-author/editor.css +10 -1
  282. package/build-style/post-author/style-rtl.css +10 -1
  283. package/build-style/post-author/style.css +10 -1
  284. package/build-style/post-author-biography/style-rtl.css +10 -1
  285. package/build-style/post-author-biography/style.css +10 -1
  286. package/build-style/post-author-name/style-rtl.css +10 -1
  287. package/build-style/post-author-name/style.css +10 -1
  288. package/build-style/post-comments-form/editor-rtl.css +10 -1
  289. package/build-style/post-comments-form/editor.css +10 -1
  290. package/build-style/post-comments-form/style-rtl.css +10 -1
  291. package/build-style/post-comments-form/style.css +10 -1
  292. package/build-style/post-content/style-rtl.css +10 -1
  293. package/build-style/post-content/style.css +10 -1
  294. package/build-style/post-date/style-rtl.css +10 -1
  295. package/build-style/post-date/style.css +10 -1
  296. package/build-style/post-excerpt/editor-rtl.css +10 -1
  297. package/build-style/post-excerpt/editor.css +10 -1
  298. package/build-style/post-excerpt/style-rtl.css +10 -1
  299. package/build-style/post-excerpt/style.css +10 -1
  300. package/build-style/post-featured-image/editor-rtl.css +10 -1
  301. package/build-style/post-featured-image/editor.css +10 -1
  302. package/build-style/post-featured-image/style-rtl.css +10 -1
  303. package/build-style/post-featured-image/style.css +10 -1
  304. package/build-style/post-navigation-link/style-rtl.css +10 -1
  305. package/build-style/post-navigation-link/style.css +10 -1
  306. package/build-style/post-template/editor-rtl.css +10 -1
  307. package/build-style/post-template/editor.css +10 -1
  308. package/build-style/post-template/style-rtl.css +10 -1
  309. package/build-style/post-template/style.css +10 -1
  310. package/build-style/post-terms/style-rtl.css +10 -1
  311. package/build-style/post-terms/style.css +10 -1
  312. package/build-style/post-time-to-read/style-rtl.css +10 -1
  313. package/build-style/post-time-to-read/style.css +10 -1
  314. package/build-style/post-title/style-rtl.css +10 -1
  315. package/build-style/post-title/style.css +10 -1
  316. package/build-style/preformatted/style-rtl.css +10 -1
  317. package/build-style/preformatted/style.css +10 -1
  318. package/build-style/pullquote/editor-rtl.css +10 -1
  319. package/build-style/pullquote/editor.css +10 -1
  320. package/build-style/pullquote/style-rtl.css +10 -1
  321. package/build-style/pullquote/style.css +10 -1
  322. package/build-style/pullquote/theme-rtl.css +10 -1
  323. package/build-style/pullquote/theme.css +10 -1
  324. package/build-style/query/editor-rtl.css +10 -1
  325. package/build-style/query/editor.css +10 -1
  326. package/build-style/query-pagination/editor-rtl.css +10 -1
  327. package/build-style/query-pagination/editor.css +10 -1
  328. package/build-style/query-pagination/style-rtl.css +10 -1
  329. package/build-style/query-pagination/style.css +10 -1
  330. package/build-style/query-pagination-numbers/editor-rtl.css +10 -1
  331. package/build-style/query-pagination-numbers/editor.css +10 -1
  332. package/build-style/query-title/style-rtl.css +10 -1
  333. package/build-style/query-title/style.css +10 -1
  334. package/build-style/quote/style-rtl.css +10 -1
  335. package/build-style/quote/style.css +10 -1
  336. package/build-style/quote/theme-rtl.css +10 -1
  337. package/build-style/quote/theme.css +10 -1
  338. package/build-style/read-more/style-rtl.css +10 -1
  339. package/build-style/read-more/style.css +10 -1
  340. package/build-style/reset-rtl.css +10 -1
  341. package/build-style/reset.css +10 -1
  342. package/build-style/rss/editor-rtl.css +10 -1
  343. package/build-style/rss/editor.css +10 -1
  344. package/build-style/rss/style-rtl.css +10 -1
  345. package/build-style/rss/style.css +10 -1
  346. package/build-style/search/editor-rtl.css +10 -1
  347. package/build-style/search/editor.css +10 -1
  348. package/build-style/search/style-rtl.css +10 -1
  349. package/build-style/search/style.css +10 -1
  350. package/build-style/search/theme-rtl.css +10 -1
  351. package/build-style/search/theme.css +10 -1
  352. package/build-style/separator/editor-rtl.css +10 -1
  353. package/build-style/separator/editor.css +10 -1
  354. package/build-style/separator/style-rtl.css +10 -1
  355. package/build-style/separator/style.css +10 -1
  356. package/build-style/separator/theme-rtl.css +10 -1
  357. package/build-style/separator/theme.css +10 -1
  358. package/build-style/shortcode/editor-rtl.css +10 -1
  359. package/build-style/shortcode/editor.css +10 -1
  360. package/build-style/site-logo/editor-rtl.css +10 -1
  361. package/build-style/site-logo/editor.css +10 -1
  362. package/build-style/site-logo/style-rtl.css +10 -1
  363. package/build-style/site-logo/style.css +10 -1
  364. package/build-style/site-tagline/editor-rtl.css +10 -1
  365. package/build-style/site-tagline/editor.css +10 -1
  366. package/build-style/site-tagline/style-rtl.css +10 -1
  367. package/build-style/site-tagline/style.css +10 -1
  368. package/build-style/site-title/editor-rtl.css +10 -1
  369. package/build-style/site-title/editor.css +10 -1
  370. package/build-style/site-title/style-rtl.css +10 -1
  371. package/build-style/site-title/style.css +10 -1
  372. package/build-style/social-link/editor-rtl.css +10 -1
  373. package/build-style/social-link/editor.css +10 -1
  374. package/build-style/social-links/editor-rtl.css +14 -12
  375. package/build-style/social-links/editor.css +14 -12
  376. package/build-style/social-links/style-rtl.css +10 -1
  377. package/build-style/social-links/style.css +10 -1
  378. package/build-style/spacer/editor-rtl.css +10 -1
  379. package/build-style/spacer/editor.css +10 -1
  380. package/build-style/spacer/style-rtl.css +10 -1
  381. package/build-style/spacer/style.css +10 -1
  382. package/build-style/style-rtl.css +11 -1
  383. package/build-style/style.css +11 -1
  384. package/build-style/table/editor-rtl.css +10 -1
  385. package/build-style/table/editor.css +10 -1
  386. package/build-style/table/style-rtl.css +10 -1
  387. package/build-style/table/style.css +10 -1
  388. package/build-style/table/theme-rtl.css +10 -1
  389. package/build-style/table/theme.css +10 -1
  390. package/build-style/table-of-contents/style-rtl.css +10 -1
  391. package/build-style/table-of-contents/style.css +10 -1
  392. package/build-style/tag-cloud/editor-rtl.css +10 -1
  393. package/build-style/tag-cloud/editor.css +10 -1
  394. package/build-style/tag-cloud/style-rtl.css +10 -1
  395. package/build-style/tag-cloud/style.css +10 -1
  396. package/build-style/template-part/editor-rtl.css +10 -1
  397. package/build-style/template-part/editor.css +10 -1
  398. package/build-style/template-part/theme-rtl.css +10 -1
  399. package/build-style/template-part/theme.css +10 -1
  400. package/build-style/term-description/style-rtl.css +10 -1
  401. package/build-style/term-description/style.css +10 -1
  402. package/build-style/text-columns/editor-rtl.css +10 -1
  403. package/build-style/text-columns/editor.css +10 -1
  404. package/build-style/text-columns/style-rtl.css +10 -1
  405. package/build-style/text-columns/style.css +10 -1
  406. package/build-style/theme-rtl.css +10 -1
  407. package/build-style/theme.css +10 -1
  408. package/build-style/verse/style-rtl.css +10 -1
  409. package/build-style/verse/style.css +10 -1
  410. package/build-style/video/editor-rtl.css +10 -1
  411. package/build-style/video/editor.css +10 -1
  412. package/build-style/video/style-rtl.css +10 -1
  413. package/build-style/video/style.css +10 -1
  414. package/build-style/video/theme-rtl.css +10 -1
  415. package/build-style/video/theme.css +10 -1
  416. package/package.json +35 -35
  417. package/src/avatar/index.js +1 -0
  418. package/src/block/edit.js +1 -2
  419. package/src/button/edit.js +6 -8
  420. package/src/buttons/style.scss +2 -0
  421. package/src/categories/index.php +1 -1
  422. package/src/comment-author-name/index.js +1 -0
  423. package/src/comment-content/index.js +1 -0
  424. package/src/comment-date/index.js +1 -0
  425. package/src/comment-edit-link/index.js +1 -0
  426. package/src/comment-reply-link/index.js +1 -0
  427. package/src/comments-pagination-next/block.json +5 -0
  428. package/src/comments-pagination-numbers/index.js +1 -0
  429. package/src/comments-pagination-previous/block.json +5 -0
  430. package/src/comments-title/index.js +1 -0
  431. package/src/cover/edit/index.js +6 -2
  432. package/src/editor.scss +0 -1
  433. package/src/file/block.json +8 -4
  434. package/src/group/editor.scss +2 -2
  435. package/src/image/edit.js +6 -8
  436. package/src/image/image.js +5 -7
  437. package/src/post-navigation-link/block.json +6 -0
  438. package/src/post-navigation-link/variations.js +12 -0
  439. package/src/post-time-to-read/index.js +1 -0
  440. package/src/query/block.json +1 -0
  441. package/src/query/edit/inspector-controls/index.js +2 -2
  442. package/src/query/edit/inspector-controls/pages-control.js +1 -1
  443. package/src/query/edit/inspector-controls/per-page-control.js +1 -1
  444. package/src/query-no-results/block.json +10 -0
  445. package/src/query-pagination-numbers/index.js +1 -0
  446. package/src/query-title/block.json +5 -0
  447. package/src/site-logo/edit.js +1 -0
  448. package/src/social-links/editor.scss +4 -13
  449. package/src/table-of-contents/block.json +52 -1
  450. package/src/term-description/index.js +1 -0
  451. package/build-style/post-content/editor-rtl.css +0 -95
  452. package/build-style/post-content/editor.css +0 -95
  453. package/src/post-content/editor.scss +0 -4
@@ -49,7 +49,7 @@ function render_block_core_categories( $attributes, $content, $block ) {
49
49
 
50
50
  $show_label = empty( $attributes['showLabel'] ) ? ' screen-reader-text' : '';
51
51
  $default_label = $taxonomy->label;
52
- $label_text = ! empty( $attributes['label'] ) ? $attributes['label'] : $default_label;
52
+ $label_text = ! empty( $attributes['label'] ) ? wp_kses_post( $attributes['label'] ) : $default_label;
53
53
  $wrapper_markup = '<div %1$s><label class="wp-block-categories__label' . $show_label . '" for="' . esc_attr( $id ) . '">' . $label_text . '</label>%2$s</div>';
54
54
  $items_markup = wp_dropdown_categories( $args );
55
55
  $type = 'dropdown';
@@ -18,6 +18,7 @@ export const settings = {
18
18
  icon,
19
19
  edit,
20
20
  deprecated,
21
+ example: {},
21
22
  };
22
23
 
23
24
  export const init = () => initBlock( { name, metadata, settings } );
@@ -16,6 +16,7 @@ export { metadata, name };
16
16
  export const settings = {
17
17
  icon,
18
18
  edit,
19
+ example: {},
19
20
  };
20
21
 
21
22
  export const init = () => initBlock( { name, metadata, settings } );
@@ -18,6 +18,7 @@ export const settings = {
18
18
  icon,
19
19
  edit,
20
20
  deprecated,
21
+ example: {},
21
22
  };
22
23
 
23
24
  export const init = () => initBlock( { name, metadata, settings } );
@@ -16,6 +16,7 @@ export { metadata, name };
16
16
  export const settings = {
17
17
  icon,
18
18
  edit,
19
+ example: {},
19
20
  };
20
21
 
21
22
  export const init = () => initBlock( { name, metadata, settings } );
@@ -16,6 +16,7 @@ export { metadata, name };
16
16
  export const settings = {
17
17
  edit,
18
18
  icon,
19
+ example: {},
19
20
  };
20
21
 
21
22
  export const init = () => initBlock( { name, metadata, settings } );
@@ -12,6 +12,11 @@
12
12
  "type": "string"
13
13
  }
14
14
  },
15
+ "example": {
16
+ "attributes": {
17
+ "label": "Comments Next Page"
18
+ }
19
+ },
15
20
  "usesContext": [ "postId", "comments/paginationArrow" ],
16
21
  "supports": {
17
22
  "reusable": false,
@@ -16,6 +16,7 @@ export { metadata, name };
16
16
  export const settings = {
17
17
  icon,
18
18
  edit,
19
+ example: {},
19
20
  };
20
21
 
21
22
  export const init = () => initBlock( { name, metadata, settings } );
@@ -12,6 +12,11 @@
12
12
  "type": "string"
13
13
  }
14
14
  },
15
+ "example": {
16
+ "attributes": {
17
+ "label": "Comments Previous Page"
18
+ }
19
+ },
15
20
  "usesContext": [ "postId", "comments/paginationArrow" ],
16
21
  "supports": {
17
22
  "reusable": false,
@@ -18,6 +18,7 @@ export const settings = {
18
18
  icon,
19
19
  edit,
20
20
  deprecated,
21
+ example: {},
21
22
  };
22
23
 
23
24
  export const init = () => initBlock( { name, metadata, settings } );
@@ -18,6 +18,7 @@ import {
18
18
  useInnerBlocksProps,
19
19
  __experimentalUseGradient,
20
20
  store as blockEditorStore,
21
+ useBlockEditingMode,
21
22
  } from '@wordpress/block-editor';
22
23
  import { __ } from '@wordpress/i18n';
23
24
  import { useSelect, useDispatch } from '@wordpress/data';
@@ -278,6 +279,9 @@ function CoverEdit( {
278
279
  const isImageBackground = IMAGE_BACKGROUND_TYPE === backgroundType;
279
280
  const isVideoBackground = VIDEO_BACKGROUND_TYPE === backgroundType;
280
281
 
282
+ const blockEditingMode = useBlockEditingMode();
283
+ const hasNonContentControls = blockEditingMode === 'default';
284
+
281
285
  const [ resizeListener, { height, width } ] = useResizeObserver();
282
286
  const resizableBoxDimensions = useMemo( () => {
283
287
  return {
@@ -447,7 +451,7 @@ function CoverEdit( {
447
451
  <>
448
452
  { blockControls }
449
453
  { inspectorControls }
450
- { isSelected && (
454
+ { hasNonContentControls && isSelected && (
451
455
  <ResizableCoverPopover { ...resizableCoverProps } />
452
456
  ) }
453
457
  <TagName
@@ -576,7 +580,7 @@ function CoverEdit( {
576
580
  />
577
581
  <div { ...innerBlocksProps } />
578
582
  </TagName>
579
- { isSelected && (
583
+ { hasNonContentControls && isSelected && (
580
584
  <ResizableCoverPopover { ...resizableCoverProps } />
581
585
  ) }
582
586
  </>
package/src/editor.scss CHANGED
@@ -55,7 +55,6 @@
55
55
  @import "./query-pagination-numbers/editor.scss";
56
56
  @import "./post-featured-image/editor.scss";
57
57
  @import "./post-comments-form/editor.scss";
58
- @import "./post-content/editor.scss";
59
58
  @import "./editor-elements.scss";
60
59
 
61
60
  :root .editor-styles-wrapper {
@@ -16,7 +16,8 @@
16
16
  "role": "local"
17
17
  },
18
18
  "href": {
19
- "type": "string"
19
+ "type": "string",
20
+ "role": "content"
20
21
  },
21
22
  "fileId": {
22
23
  "type": "string",
@@ -27,13 +28,15 @@
27
28
  "fileName": {
28
29
  "type": "rich-text",
29
30
  "source": "rich-text",
30
- "selector": "a:not([download])"
31
+ "selector": "a:not([download])",
32
+ "role": "content"
31
33
  },
32
34
  "textLinkHref": {
33
35
  "type": "string",
34
36
  "source": "attribute",
35
37
  "selector": "a:not([download])",
36
- "attribute": "href"
38
+ "attribute": "href",
39
+ "role": "content"
37
40
  },
38
41
  "textLinkTarget": {
39
42
  "type": "string",
@@ -48,7 +51,8 @@
48
51
  "downloadButtonText": {
49
52
  "type": "rich-text",
50
53
  "source": "rich-text",
51
- "selector": "a[download]"
54
+ "selector": "a[download]",
55
+ "role": "content"
52
56
  },
53
57
  "displayPreview": {
54
58
  "type": "boolean"
@@ -39,9 +39,9 @@
39
39
  &::after {
40
40
  content: "";
41
41
  display: flex;
42
- flex: 1 0 $grid-unit-60;
42
+ flex: 1 0 $button-size-next-default-40px;
43
43
  pointer-events: none;
44
- min-height: $grid-unit-60 - $border-width - $border-width;
44
+ min-height: $button-size-next-default-40px - $border-width - $border-width;
45
45
  border: $border-width dashed currentColor;
46
46
  }
47
47
 
package/src/image/edit.js CHANGED
@@ -7,9 +7,9 @@ import clsx from 'clsx';
7
7
  * WordPress dependencies
8
8
  */
9
9
  import { isBlobURL, createBlobURL } from '@wordpress/blob';
10
- import { store as blocksStore, createBlock } from '@wordpress/blocks';
10
+ import { createBlock, getBlockBindingsSource } from '@wordpress/blocks';
11
11
  import { Placeholder } from '@wordpress/components';
12
- import { useDispatch, useSelect, useRegistry } from '@wordpress/data';
12
+ import { useDispatch, useSelect } from '@wordpress/data';
13
13
  import {
14
14
  BlockIcon,
15
15
  useBlockProps,
@@ -28,7 +28,6 @@ import { useResizeObserver } from '@wordpress/compose';
28
28
  /**
29
29
  * Internal dependencies
30
30
  */
31
- import { unlock } from '../lock-unlock';
32
31
  import { useUploadMediaFromBlobURL } from '../utils/hooks';
33
32
  import Image from './image';
34
33
  import { isValidFileType } from './utils';
@@ -113,7 +112,6 @@ export function ImageEdit( {
113
112
 
114
113
  const [ temporaryURL, setTemporaryURL ] = useState( attributes.blob );
115
114
 
116
- const registry = useRegistry();
117
115
  const containerRef = useRef();
118
116
  // Only observe the max width from the parent container when the parent layout is not flex nor grid.
119
117
  // This won't work for them because the container width changes with the image.
@@ -373,15 +371,15 @@ export function ImageEdit( {
373
371
  return {};
374
372
  }
375
373
 
376
- const blockBindingsSource = unlock(
377
- select( blocksStore )
378
- ).getBlockBindingsSource( metadata?.bindings?.url?.source );
374
+ const blockBindingsSource = getBlockBindingsSource(
375
+ metadata?.bindings?.url?.source
376
+ );
379
377
 
380
378
  return {
381
379
  lockUrlControls:
382
380
  !! metadata?.bindings?.url &&
383
381
  ! blockBindingsSource?.canUserEditValue?.( {
384
- registry,
382
+ select,
385
383
  context,
386
384
  args: metadata?.bindings?.url?.args,
387
385
  } ),
@@ -17,7 +17,7 @@ import {
17
17
  Placeholder,
18
18
  } from '@wordpress/components';
19
19
  import { useViewportMatch } from '@wordpress/compose';
20
- import { useSelect, useDispatch, useRegistry } from '@wordpress/data';
20
+ import { useSelect, useDispatch } from '@wordpress/data';
21
21
  import {
22
22
  BlockControls,
23
23
  InspectorControls,
@@ -34,7 +34,7 @@ import { useEffect, useMemo, useState, useRef } from '@wordpress/element';
34
34
  import { __, _x, sprintf, isRTL } from '@wordpress/i18n';
35
35
  import { DOWN } from '@wordpress/keycodes';
36
36
  import { getFilename } from '@wordpress/url';
37
- import { switchToBlockType, store as blocksStore } from '@wordpress/blocks';
37
+ import { getBlockBindingsSource, switchToBlockType } from '@wordpress/blocks';
38
38
  import { crop, overlayText, upload } from '@wordpress/icons';
39
39
  import { store as noticesStore } from '@wordpress/notices';
40
40
  import { store as coreStore } from '@wordpress/core-data';
@@ -134,7 +134,6 @@ export default function Image( {
134
134
  const numericWidth = width ? parseInt( width, 10 ) : undefined;
135
135
  const numericHeight = height ? parseInt( height, 10 ) : undefined;
136
136
 
137
- const registry = useRegistry();
138
137
  const imageRef = useRef();
139
138
  const { allowResize = true } = context;
140
139
  const { getBlock, getSettings } = useSelect( blockEditorStore );
@@ -477,7 +476,6 @@ export default function Image( {
477
476
  if ( ! isSingleSelected ) {
478
477
  return {};
479
478
  }
480
- const { getBlockBindingsSource } = unlock( select( blocksStore ) );
481
479
  const {
482
480
  url: urlBinding,
483
481
  alt: altBinding,
@@ -497,7 +495,7 @@ export default function Image( {
497
495
  lockUrlControls:
498
496
  !! urlBinding &&
499
497
  ! urlBindingSource?.canUserEditValue?.( {
500
- registry,
498
+ select,
501
499
  context,
502
500
  args: urlBinding?.args,
503
501
  } ),
@@ -512,7 +510,7 @@ export default function Image( {
512
510
  lockAltControls:
513
511
  !! altBinding &&
514
512
  ! altBindingSource?.canUserEditValue?.( {
515
- registry,
513
+ select,
516
514
  context,
517
515
  args: altBinding?.args,
518
516
  } ),
@@ -526,7 +524,7 @@ export default function Image( {
526
524
  lockTitleControls:
527
525
  !! titleBinding &&
528
526
  ! titleBindingSource?.canUserEditValue?.( {
529
- registry,
527
+ select,
530
528
  context,
531
529
  args: titleBinding?.args,
532
530
  } ),
@@ -34,6 +34,12 @@
34
34
  "default": ""
35
35
  }
36
36
  },
37
+ "example": {
38
+ "attributes": {
39
+ "label": "Next post",
40
+ "arrow": "arrow"
41
+ }
42
+ },
37
43
  "usesContext": [ "postType" ],
38
44
  "supports": {
39
45
  "reusable": false,
@@ -15,6 +15,12 @@ const variations = [
15
15
  icon: next,
16
16
  attributes: { type: 'next' },
17
17
  scope: [ 'inserter', 'transform' ],
18
+ example: {
19
+ attributes: {
20
+ label: 'Next post',
21
+ arrow: 'arrow',
22
+ },
23
+ },
18
24
  },
19
25
  {
20
26
  name: 'post-previous',
@@ -25,6 +31,12 @@ const variations = [
25
31
  icon: previous,
26
32
  attributes: { type: 'previous' },
27
33
  scope: [ 'inserter', 'transform' ],
34
+ example: {
35
+ attributes: {
36
+ label: 'Previous post',
37
+ arrow: 'arrow',
38
+ },
39
+ },
28
40
  },
29
41
  ];
30
42
 
@@ -12,6 +12,7 @@ export { metadata, name };
12
12
  export const settings = {
13
13
  icon,
14
14
  edit,
15
+ example: {},
15
16
  };
16
17
 
17
18
  export const init = () => initBlock( { name, metadata, settings } );
@@ -5,6 +5,7 @@
5
5
  "title": "Query Loop",
6
6
  "category": "theme",
7
7
  "description": "An advanced block that allows displaying post types based on different query parameters and visual configurations.",
8
+ "keywords": [ "posts", "list", "blog", "blogs", "custom post types" ],
8
9
  "textdomain": "default",
9
10
  "attributes": {
10
11
  "queryId": {
@@ -321,7 +321,7 @@ export default function QueryInspectorControls( props ) {
321
321
  dropdownMenuProps={ dropdownMenuProps }
322
322
  >
323
323
  <ToolsPanelItem
324
- label={ __( 'Items' ) }
324
+ label={ __( 'Items per page' ) }
325
325
  hasValue={ () => perPage > 0 }
326
326
  >
327
327
  <PerPageControl
@@ -341,7 +341,7 @@ export default function QueryInspectorControls( props ) {
341
341
  />
342
342
  </ToolsPanelItem>
343
343
  <ToolsPanelItem
344
- label={ __( 'Max Pages to Show' ) }
344
+ label={ __( 'Max pages to show' ) }
345
345
  hasValue={ () => pages > 0 }
346
346
  onDeselect={ () => setQuery( { pages: 0 } ) }
347
347
  >
@@ -8,7 +8,7 @@ export const PagesControl = ( { pages, onChange } ) => {
8
8
  return (
9
9
  <NumberControl
10
10
  __next40pxDefaultSize
11
- label={ __( 'Max pages' ) }
11
+ label={ __( 'Max pages to show' ) }
12
12
  value={ pages }
13
13
  min={ 0 }
14
14
  onChange={ ( newPages ) => {
@@ -12,7 +12,7 @@ const PerPageControl = ( { perPage, offset = 0, onChange } ) => {
12
12
  <RangeControl
13
13
  __next40pxDefaultSize
14
14
  __nextHasNoMarginBottom
15
- label={ __( 'Posts per page' ) }
15
+ label={ __( 'Items per page' ) }
16
16
  min={ MIN_POSTS_PER_PAGE }
17
17
  max={ MAX_POSTS_PER_PAGE }
18
18
  onChange={ ( newPerPage ) => {
@@ -8,6 +8,16 @@
8
8
  "parent": [ "core/query" ],
9
9
  "textdomain": "default",
10
10
  "usesContext": [ "queryId", "query" ],
11
+ "example": {
12
+ "innerBlocks": [
13
+ {
14
+ "name": "core/paragraph",
15
+ "attributes": {
16
+ "content": "No posts were found."
17
+ }
18
+ }
19
+ ]
20
+ },
11
21
  "supports": {
12
22
  "align": true,
13
23
  "reusable": false,
@@ -16,6 +16,7 @@ export { metadata, name };
16
16
  export const settings = {
17
17
  icon,
18
18
  edit,
19
+ example: {},
19
20
  };
20
21
 
21
22
  export const init = () => initBlock( { name, metadata, settings } );
@@ -29,6 +29,11 @@
29
29
  "default": true
30
30
  }
31
31
  },
32
+ "example": {
33
+ "attributes": {
34
+ "type": "search"
35
+ }
36
+ },
32
37
  "supports": {
33
38
  "align": [ "wide", "full" ],
34
39
  "html": false,
@@ -564,6 +564,7 @@ export default function LogoEdit( {
564
564
  iconId={ siteIconId }
565
565
  canUserEdit={ canUserEdit }
566
566
  />
567
+ { canUserEdit && <DropZone onFilesDrop={ onFilesDrop } /> }
567
568
  </>
568
569
  );
569
570
  }
@@ -101,19 +101,10 @@
101
101
  .wp-block-social-links .block-list-appender {
102
102
  position: static; // display inline.
103
103
 
104
- .block-editor-button-block-appender.components-button.components-button {
105
- padding: $grid-unit-10 - 2px;
106
- }
107
- }
108
-
109
- .wp-block-social-links {
110
- &.has-small-icon-size .block-editor-button-block-appender.components-button.components-button {
104
+ .block-editor-button-block-appender {
105
+ height: 1.5em;
106
+ width: 1.5em;
107
+ font-size: inherit;
111
108
  padding: 0;
112
109
  }
113
- &.has-large-icon-size .block-editor-button-block-appender.components-button.components-button {
114
- padding: $grid-unit-20 - 2px;
115
- }
116
- &.has-huge-icon-size .block-editor-button-block-appender.components-button.components-button {
117
- padding: $grid-unit-30 - 1px;
118
- }
119
110
  }
@@ -62,6 +62,57 @@
62
62
  }
63
63
  }
64
64
  },
65
- "example": {},
65
+ "example": {
66
+ "innerBlocks": [
67
+ {
68
+ "name": "core/heading",
69
+ "attributes": {
70
+ "level": 2,
71
+ "content": "Heading"
72
+ }
73
+ },
74
+ {
75
+ "name": "core/heading",
76
+ "attributes": {
77
+ "level": 3,
78
+ "content": "Subheading"
79
+ }
80
+ },
81
+ {
82
+ "name": "core/heading",
83
+ "attributes": {
84
+ "level": 2,
85
+ "content": "Heading"
86
+ }
87
+ },
88
+ {
89
+ "name": "core/heading",
90
+ "attributes": {
91
+ "level": 3,
92
+ "content": "Subheading"
93
+ }
94
+ }
95
+ ],
96
+ "attributes": {
97
+ "headings": [
98
+ {
99
+ "content": "Heading",
100
+ "level": 2
101
+ },
102
+ {
103
+ "content": "Subheading",
104
+ "level": 3
105
+ },
106
+ {
107
+ "content": "Heading",
108
+ "level": 2
109
+ },
110
+ {
111
+ "content": "Subheading",
112
+ "level": 3
113
+ }
114
+ ]
115
+ }
116
+ },
66
117
  "style": "wp-block-table-of-contents"
67
118
  }
@@ -16,6 +16,7 @@ export { metadata, name };
16
16
  export const settings = {
17
17
  icon,
18
18
  edit,
19
+ example: {},
19
20
  };
20
21
 
21
22
  export const init = () => initBlock( { name, metadata, settings } );
@@ -1,95 +0,0 @@
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
- /**
8
- * Colors
9
- */
10
- /**
11
- * Breakpoints & Media Queries
12
- */
13
- /**
14
- * SCSS Variables.
15
- *
16
- * Please use variables from this sheet to ensure consistency across the UI.
17
- * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
18
- * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
19
- */
20
- /**
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
- */
26
- /**
27
- * Colors
28
- */
29
- /**
30
- * Fonts & basic variables.
31
- */
32
- /**
33
- * Grid System.
34
- * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
35
- */
36
- /**
37
- * Radius scale.
38
- */
39
- /**
40
- * Elevation scale.
41
- */
42
- /**
43
- * Dimensions.
44
- */
45
- /**
46
- * Editor widths.
47
- */
48
- /**
49
- * Block & Editor UI.
50
- */
51
- /**
52
- * Block paddings.
53
- */
54
- /**
55
- * React Native specific.
56
- * These variables do not appear to be used anywhere else.
57
- */
58
- /**
59
- * Converts a hex value into the rgb equivalent.
60
- *
61
- * @param {string} hex - the hexadecimal value to convert
62
- * @return {string} comma separated rgb values
63
- */
64
- /**
65
- * Long content fade mixin
66
- *
67
- * Creates a fading overlay to signify that the content is longer
68
- * than the space allows.
69
- */
70
- /**
71
- * Breakpoint mixins
72
- */
73
- /**
74
- * Focus styles.
75
- */
76
- /**
77
- * Applies editor left position to the selector passed as argument
78
- */
79
- /**
80
- * Styles that are reused verbatim in a few places
81
- */
82
- /**
83
- * Allows users to opt-out of animations via OS-level preferences.
84
- */
85
- /**
86
- * Reset default styles for JavaScript UI based pages.
87
- * This is a WP-admin agnostic reset
88
- */
89
- /**
90
- * Reset the WP Admin page styles for Gutenberg-like pages.
91
- */
92
- .wp-block-post-content.wp-block-post-content {
93
- -webkit-user-select: none;
94
- user-select: none;
95
- }