@wordpress/block-library 9.4.0 → 9.6.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 (838) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/archives/edit.js +1 -0
  3. package/build/archives/edit.js.map +1 -1
  4. package/build/audio/edit.js +1 -0
  5. package/build/audio/edit.js.map +1 -1
  6. package/build/avatar/edit.js +1 -0
  7. package/build/avatar/edit.js.map +1 -1
  8. package/build/avatar/user-control.js +1 -0
  9. package/build/avatar/user-control.js.map +1 -1
  10. package/build/button/edit.js +1 -0
  11. package/build/button/edit.js.map +1 -1
  12. package/build/categories/index.js +12 -0
  13. package/build/categories/index.js.map +1 -1
  14. package/build/column/edit.js +2 -2
  15. package/build/column/edit.js.map +1 -1
  16. package/build/column/index.js +2 -0
  17. package/build/column/index.js.map +1 -1
  18. package/build/comment-author-name/index.js +14 -1
  19. package/build/comment-author-name/index.js.map +1 -1
  20. package/build/comment-content/index.js +14 -1
  21. package/build/comment-content/index.js.map +1 -1
  22. package/build/comment-date/index.js +14 -1
  23. package/build/comment-date/index.js.map +1 -1
  24. package/build/comment-template/index.js +12 -0
  25. package/build/comment-template/index.js.map +1 -1
  26. package/build/comments-pagination/comments-pagination-arrow-controls.js +1 -0
  27. package/build/comments-pagination/comments-pagination-arrow-controls.js.map +1 -1
  28. package/build/comments-title/deprecated.js +3 -0
  29. package/build/comments-title/deprecated.js.map +1 -1
  30. package/build/comments-title/edit.js +3 -1
  31. package/build/comments-title/edit.js.map +1 -1
  32. package/build/comments-title/index.js +3 -0
  33. package/build/comments-title/index.js.map +1 -1
  34. package/build/cover/edit/inspector-controls.js +0 -1
  35. package/build/cover/edit/inspector-controls.js.map +1 -1
  36. package/build/details/edit.js +1 -0
  37. package/build/details/edit.js.map +1 -1
  38. package/build/embed/edit.js +12 -4
  39. package/build/embed/edit.js.map +1 -1
  40. package/build/embed/embed-placeholder.js +6 -3
  41. package/build/embed/embed-placeholder.js.map +1 -1
  42. package/build/embed/embed-preview.js +4 -18
  43. package/build/embed/embed-preview.js.map +1 -1
  44. package/build/file/index.js +12 -0
  45. package/build/file/index.js.map +1 -1
  46. package/build/file/inspector.js +1 -0
  47. package/build/file/inspector.js.map +1 -1
  48. package/build/form/edit.js +6 -4
  49. package/build/form/edit.js.map +1 -1
  50. package/build/form-input/edit.js +2 -0
  51. package/build/form-input/edit.js.map +1 -1
  52. package/build/gallery/edit.js +44 -14
  53. package/build/gallery/edit.js.map +1 -1
  54. package/build/gallery/gallery.native.js +4 -1
  55. package/build/gallery/gallery.native.js.map +1 -1
  56. package/build/gallery/gap-styles.js +1 -9
  57. package/build/gallery/gap-styles.js.map +1 -1
  58. package/build/gallery/use-image-sizes.js +2 -2
  59. package/build/gallery/use-image-sizes.js.map +1 -1
  60. package/build/group/edit.js +1 -1
  61. package/build/group/edit.js.map +1 -1
  62. package/build/group/index.js +27 -30
  63. package/build/group/index.js.map +1 -1
  64. package/build/group/variations.js +51 -3
  65. package/build/group/variations.js.map +1 -1
  66. package/build/heading/edit.js +2 -0
  67. package/build/heading/edit.js.map +1 -1
  68. package/build/heading/index.js +3 -0
  69. package/build/heading/index.js.map +1 -1
  70. package/build/image/image.js +6 -1
  71. package/build/image/image.js.map +1 -1
  72. package/build/image/transforms.js +4 -0
  73. package/build/image/transforms.js.map +1 -1
  74. package/build/image/view.js +1 -1
  75. package/build/image/view.js.map +1 -1
  76. package/build/latest-posts/edit.js +38 -11
  77. package/build/latest-posts/edit.js.map +1 -1
  78. package/build/list/index.js +10 -1
  79. package/build/list/index.js.map +1 -1
  80. package/build/list/ordered-list-settings.js +19 -17
  81. package/build/list/ordered-list-settings.js.map +1 -1
  82. package/build/list-item/index.js +11 -3
  83. package/build/list-item/index.js.map +1 -1
  84. package/build/loginout/index.js +14 -1
  85. package/build/loginout/index.js.map +1 -1
  86. package/build/media-text/edit.js +0 -1
  87. package/build/media-text/edit.js.map +1 -1
  88. package/build/missing/edit.js +10 -19
  89. package/build/missing/edit.js.map +1 -1
  90. package/build/navigation/edit/index.js +8 -8
  91. package/build/navigation/edit/index.js.map +1 -1
  92. package/build/navigation/edit/navigation-menu-name-control.js +1 -0
  93. package/build/navigation/edit/navigation-menu-name-control.js.map +1 -1
  94. package/build/navigation/edit/overlay-menu-preview.js +2 -0
  95. package/build/navigation/edit/overlay-menu-preview.js.map +1 -1
  96. package/build/post-author/edit.js +60 -53
  97. package/build/post-author/edit.js.map +1 -1
  98. package/build/post-author/index.js +13 -0
  99. package/build/post-author/index.js.map +1 -1
  100. package/build/post-author-biography/index.js +14 -1
  101. package/build/post-author-biography/index.js.map +1 -1
  102. package/build/post-author-name/index.js +14 -1
  103. package/build/post-author-name/index.js.map +1 -1
  104. package/build/post-comment/edit.js +2 -0
  105. package/build/post-comment/edit.js.map +1 -1
  106. package/build/post-comments-form/index.js +12 -0
  107. package/build/post-comments-form/index.js.map +1 -1
  108. package/build/post-content/index.js +1 -0
  109. package/build/post-content/index.js.map +1 -1
  110. package/build/post-date/index.js +12 -0
  111. package/build/post-date/index.js.map +1 -1
  112. package/build/post-excerpt/edit.js +1 -0
  113. package/build/post-excerpt/edit.js.map +1 -1
  114. package/build/post-excerpt/index.js +12 -0
  115. package/build/post-excerpt/index.js.map +1 -1
  116. package/build/post-featured-image/dimension-controls.js +9 -2
  117. package/build/post-featured-image/dimension-controls.js.map +1 -1
  118. package/build/post-featured-image/edit.js +1 -0
  119. package/build/post-featured-image/edit.js.map +1 -1
  120. package/build/post-navigation-link/edit.js +7 -2
  121. package/build/post-navigation-link/edit.js.map +1 -1
  122. package/build/post-terms/edit.js +1 -0
  123. package/build/post-terms/edit.js.map +1 -1
  124. package/build/post-terms/index.js +12 -0
  125. package/build/post-terms/index.js.map +1 -1
  126. package/build/post-time-to-read/index.js +6 -0
  127. package/build/post-time-to-read/index.js.map +1 -1
  128. package/build/post-title/edit.js +5 -2
  129. package/build/post-title/edit.js.map +1 -1
  130. package/build/post-title/index.js +15 -0
  131. package/build/post-title/index.js.map +1 -1
  132. package/build/preformatted/index.js +12 -0
  133. package/build/preformatted/index.js.map +1 -1
  134. package/build/query/edit/inspector-controls/enhanced-pagination-control.js +1 -0
  135. package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  136. package/build/query/edit/inspector-controls/index.js +69 -9
  137. package/build/query/edit/inspector-controls/index.js.map +1 -1
  138. package/build/query/edit/inspector-controls/offset-controls.js +37 -0
  139. package/build/query/edit/inspector-controls/offset-controls.js.map +1 -0
  140. package/build/query/edit/inspector-controls/pages-control.js +36 -0
  141. package/build/query/edit/inspector-controls/pages-control.js.map +1 -0
  142. package/build/query/edit/inspector-controls/parent-control.js +1 -0
  143. package/build/query/edit/inspector-controls/parent-control.js.map +1 -1
  144. package/build/query/edit/inspector-controls/per-page-control.js +40 -0
  145. package/build/query/edit/inspector-controls/per-page-control.js.map +1 -0
  146. package/build/query/edit/inspector-controls/sticky-control.js +1 -1
  147. package/build/query/edit/inspector-controls/sticky-control.js.map +1 -1
  148. package/build/query/edit/query-content.js +1 -1
  149. package/build/query/edit/query-content.js.map +1 -1
  150. package/build/query/edit/query-toolbar.js +3 -76
  151. package/build/query/edit/query-toolbar.js.map +1 -1
  152. package/build/query/utils.js +10 -5
  153. package/build/query/utils.js.map +1 -1
  154. package/build/query-pagination/query-pagination-arrow-controls.js +1 -0
  155. package/build/query-pagination/query-pagination-arrow-controls.js.map +1 -1
  156. package/build/query-pagination-numbers/edit.js +1 -0
  157. package/build/query-pagination-numbers/edit.js.map +1 -1
  158. package/build/query-title/edit.js +2 -0
  159. package/build/query-title/edit.js.map +1 -1
  160. package/build/query-title/index.js +15 -0
  161. package/build/query-title/index.js.map +1 -1
  162. package/build/quote/index.js +1 -0
  163. package/build/quote/index.js.map +1 -1
  164. package/build/quote/transforms.js +4 -0
  165. package/build/quote/transforms.js.map +1 -1
  166. package/build/search/edit.js +9 -5
  167. package/build/search/edit.js.map +1 -1
  168. package/build/site-logo/edit.js +15 -8
  169. package/build/site-logo/edit.js.map +1 -1
  170. package/build/site-tagline/edit.js +3 -3
  171. package/build/site-tagline/edit.js.map +1 -1
  172. package/build/site-tagline/index.js +12 -1
  173. package/build/site-tagline/index.js.map +1 -1
  174. package/build/site-title/edit.js +2 -2
  175. package/build/site-title/edit.js.map +1 -1
  176. package/build/site-title/index.js +10 -0
  177. package/build/site-title/index.js.map +1 -1
  178. package/build/social-link/edit.js +2 -1
  179. package/build/social-link/edit.js.map +1 -1
  180. package/build/spacer/controls.js +8 -13
  181. package/build/spacer/controls.js.map +1 -1
  182. package/build/table/edit.js +6 -5
  183. package/build/table/edit.js.map +1 -1
  184. package/build/table-of-contents/index.js +14 -1
  185. package/build/table-of-contents/index.js.map +1 -1
  186. package/build/tag-cloud/edit.js +69 -52
  187. package/build/tag-cloud/edit.js.map +1 -1
  188. package/build/tag-cloud/index.js +13 -1
  189. package/build/tag-cloud/index.js.map +1 -1
  190. package/build/template-part/edit/advanced-controls.js +2 -0
  191. package/build/template-part/edit/advanced-controls.js.map +1 -1
  192. package/build/template-part/edit/index.js +7 -6
  193. package/build/template-part/edit/index.js.map +1 -1
  194. package/build/template-part/edit/inner-blocks.js +6 -4
  195. package/build/template-part/edit/inner-blocks.js.map +1 -1
  196. package/build/video/edit-common-settings.js +1 -0
  197. package/build/video/edit-common-settings.js.map +1 -1
  198. package/build/video/edit.js +1 -1
  199. package/build/video/edit.js.map +1 -1
  200. package/build/video/tracks-editor.js +3 -0
  201. package/build/video/tracks-editor.js.map +1 -1
  202. package/build/video/transforms.js +4 -0
  203. package/build/video/transforms.js.map +1 -1
  204. package/build-module/archives/edit.js +1 -0
  205. package/build-module/archives/edit.js.map +1 -1
  206. package/build-module/audio/edit.js +1 -0
  207. package/build-module/audio/edit.js.map +1 -1
  208. package/build-module/avatar/edit.js +1 -0
  209. package/build-module/avatar/edit.js.map +1 -1
  210. package/build-module/avatar/user-control.js +1 -0
  211. package/build-module/avatar/user-control.js.map +1 -1
  212. package/build-module/button/edit.js +1 -0
  213. package/build-module/button/edit.js.map +1 -1
  214. package/build-module/categories/index.js +12 -0
  215. package/build-module/categories/index.js.map +1 -1
  216. package/build-module/column/edit.js +2 -2
  217. package/build-module/column/edit.js.map +1 -1
  218. package/build-module/column/index.js +2 -0
  219. package/build-module/column/index.js.map +1 -1
  220. package/build-module/comment-author-name/index.js +14 -1
  221. package/build-module/comment-author-name/index.js.map +1 -1
  222. package/build-module/comment-content/index.js +14 -1
  223. package/build-module/comment-content/index.js.map +1 -1
  224. package/build-module/comment-date/index.js +14 -1
  225. package/build-module/comment-date/index.js.map +1 -1
  226. package/build-module/comment-template/index.js +12 -0
  227. package/build-module/comment-template/index.js.map +1 -1
  228. package/build-module/comments-pagination/comments-pagination-arrow-controls.js +1 -0
  229. package/build-module/comments-pagination/comments-pagination-arrow-controls.js.map +1 -1
  230. package/build-module/comments-title/deprecated.js +3 -0
  231. package/build-module/comments-title/deprecated.js.map +1 -1
  232. package/build-module/comments-title/edit.js +3 -1
  233. package/build-module/comments-title/edit.js.map +1 -1
  234. package/build-module/comments-title/index.js +3 -0
  235. package/build-module/comments-title/index.js.map +1 -1
  236. package/build-module/cover/edit/inspector-controls.js +0 -1
  237. package/build-module/cover/edit/inspector-controls.js.map +1 -1
  238. package/build-module/details/edit.js +1 -0
  239. package/build-module/details/edit.js.map +1 -1
  240. package/build-module/embed/edit.js +13 -5
  241. package/build-module/embed/edit.js.map +1 -1
  242. package/build-module/embed/embed-placeholder.js +7 -4
  243. package/build-module/embed/embed-placeholder.js.map +1 -1
  244. package/build-module/embed/embed-preview.js +5 -19
  245. package/build-module/embed/embed-preview.js.map +1 -1
  246. package/build-module/file/index.js +12 -0
  247. package/build-module/file/index.js.map +1 -1
  248. package/build-module/file/inspector.js +1 -0
  249. package/build-module/file/inspector.js.map +1 -1
  250. package/build-module/form/edit.js +6 -4
  251. package/build-module/form/edit.js.map +1 -1
  252. package/build-module/form-input/edit.js +2 -0
  253. package/build-module/form-input/edit.js.map +1 -1
  254. package/build-module/gallery/edit.js +45 -15
  255. package/build-module/gallery/edit.js.map +1 -1
  256. package/build-module/gallery/gallery.native.js +4 -1
  257. package/build-module/gallery/gallery.native.js.map +1 -1
  258. package/build-module/gallery/gap-styles.js +1 -9
  259. package/build-module/gallery/gap-styles.js.map +1 -1
  260. package/build-module/gallery/use-image-sizes.js +2 -2
  261. package/build-module/gallery/use-image-sizes.js.map +1 -1
  262. package/build-module/group/edit.js +1 -1
  263. package/build-module/group/edit.js.map +1 -1
  264. package/build-module/group/index.js +27 -30
  265. package/build-module/group/index.js.map +1 -1
  266. package/build-module/group/variations.js +51 -3
  267. package/build-module/group/variations.js.map +1 -1
  268. package/build-module/heading/edit.js +2 -0
  269. package/build-module/heading/edit.js.map +1 -1
  270. package/build-module/heading/index.js +3 -0
  271. package/build-module/heading/index.js.map +1 -1
  272. package/build-module/image/image.js +7 -2
  273. package/build-module/image/image.js.map +1 -1
  274. package/build-module/image/transforms.js +5 -1
  275. package/build-module/image/transforms.js.map +1 -1
  276. package/build-module/image/view.js +1 -1
  277. package/build-module/image/view.js.map +1 -1
  278. package/build-module/latest-posts/edit.js +41 -14
  279. package/build-module/latest-posts/edit.js.map +1 -1
  280. package/build-module/list/index.js +10 -1
  281. package/build-module/list/index.js.map +1 -1
  282. package/build-module/list/ordered-list-settings.js +19 -17
  283. package/build-module/list/ordered-list-settings.js.map +1 -1
  284. package/build-module/list-item/index.js +11 -3
  285. package/build-module/list-item/index.js.map +1 -1
  286. package/build-module/loginout/index.js +14 -1
  287. package/build-module/loginout/index.js.map +1 -1
  288. package/build-module/media-text/edit.js +0 -1
  289. package/build-module/media-text/edit.js.map +1 -1
  290. package/build-module/missing/edit.js +10 -19
  291. package/build-module/missing/edit.js.map +1 -1
  292. package/build-module/navigation/edit/index.js +8 -8
  293. package/build-module/navigation/edit/index.js.map +1 -1
  294. package/build-module/navigation/edit/navigation-menu-name-control.js +1 -0
  295. package/build-module/navigation/edit/navigation-menu-name-control.js.map +1 -1
  296. package/build-module/navigation/edit/overlay-menu-preview.js +2 -0
  297. package/build-module/navigation/edit/overlay-menu-preview.js.map +1 -1
  298. package/build-module/post-author/edit.js +61 -54
  299. package/build-module/post-author/edit.js.map +1 -1
  300. package/build-module/post-author/index.js +13 -0
  301. package/build-module/post-author/index.js.map +1 -1
  302. package/build-module/post-author-biography/index.js +14 -1
  303. package/build-module/post-author-biography/index.js.map +1 -1
  304. package/build-module/post-author-name/index.js +14 -1
  305. package/build-module/post-author-name/index.js.map +1 -1
  306. package/build-module/post-comment/edit.js +2 -0
  307. package/build-module/post-comment/edit.js.map +1 -1
  308. package/build-module/post-comments-form/index.js +12 -0
  309. package/build-module/post-comments-form/index.js.map +1 -1
  310. package/build-module/post-content/index.js +1 -0
  311. package/build-module/post-content/index.js.map +1 -1
  312. package/build-module/post-date/index.js +12 -0
  313. package/build-module/post-date/index.js.map +1 -1
  314. package/build-module/post-excerpt/edit.js +1 -0
  315. package/build-module/post-excerpt/edit.js.map +1 -1
  316. package/build-module/post-excerpt/index.js +12 -0
  317. package/build-module/post-excerpt/index.js.map +1 -1
  318. package/build-module/post-featured-image/dimension-controls.js +9 -2
  319. package/build-module/post-featured-image/dimension-controls.js.map +1 -1
  320. package/build-module/post-featured-image/edit.js +1 -0
  321. package/build-module/post-featured-image/edit.js.map +1 -1
  322. package/build-module/post-navigation-link/edit.js +7 -2
  323. package/build-module/post-navigation-link/edit.js.map +1 -1
  324. package/build-module/post-terms/edit.js +1 -0
  325. package/build-module/post-terms/edit.js.map +1 -1
  326. package/build-module/post-terms/index.js +12 -0
  327. package/build-module/post-terms/index.js.map +1 -1
  328. package/build-module/post-time-to-read/index.js +6 -0
  329. package/build-module/post-time-to-read/index.js.map +1 -1
  330. package/build-module/post-title/edit.js +5 -2
  331. package/build-module/post-title/edit.js.map +1 -1
  332. package/build-module/post-title/index.js +15 -0
  333. package/build-module/post-title/index.js.map +1 -1
  334. package/build-module/preformatted/index.js +12 -0
  335. package/build-module/preformatted/index.js.map +1 -1
  336. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +1 -0
  337. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  338. package/build-module/query/edit/inspector-controls/index.js +71 -11
  339. package/build-module/query/edit/inspector-controls/index.js.map +1 -1
  340. package/build-module/query/edit/inspector-controls/offset-controls.js +29 -0
  341. package/build-module/query/edit/inspector-controls/offset-controls.js.map +1 -0
  342. package/build-module/query/edit/inspector-controls/pages-control.js +28 -0
  343. package/build-module/query/edit/inspector-controls/pages-control.js.map +1 -0
  344. package/build-module/query/edit/inspector-controls/parent-control.js +1 -0
  345. package/build-module/query/edit/inspector-controls/parent-control.js.map +1 -1
  346. package/build-module/query/edit/inspector-controls/per-page-control.js +33 -0
  347. package/build-module/query/edit/inspector-controls/per-page-control.js.map +1 -0
  348. package/build-module/query/edit/inspector-controls/sticky-control.js +1 -1
  349. package/build-module/query/edit/inspector-controls/sticky-control.js.map +1 -1
  350. package/build-module/query/edit/query-content.js +1 -1
  351. package/build-module/query/edit/query-content.js.map +1 -1
  352. package/build-module/query/edit/query-toolbar.js +4 -78
  353. package/build-module/query/edit/query-toolbar.js.map +1 -1
  354. package/build-module/query/utils.js +10 -5
  355. package/build-module/query/utils.js.map +1 -1
  356. package/build-module/query-pagination/query-pagination-arrow-controls.js +1 -0
  357. package/build-module/query-pagination/query-pagination-arrow-controls.js.map +1 -1
  358. package/build-module/query-pagination-numbers/edit.js +1 -0
  359. package/build-module/query-pagination-numbers/edit.js.map +1 -1
  360. package/build-module/query-title/edit.js +2 -0
  361. package/build-module/query-title/edit.js.map +1 -1
  362. package/build-module/query-title/index.js +15 -0
  363. package/build-module/query-title/index.js.map +1 -1
  364. package/build-module/quote/index.js +1 -0
  365. package/build-module/quote/index.js.map +1 -1
  366. package/build-module/quote/transforms.js +4 -0
  367. package/build-module/quote/transforms.js.map +1 -1
  368. package/build-module/search/edit.js +10 -6
  369. package/build-module/search/edit.js.map +1 -1
  370. package/build-module/site-logo/edit.js +15 -8
  371. package/build-module/site-logo/edit.js.map +1 -1
  372. package/build-module/site-tagline/edit.js +3 -3
  373. package/build-module/site-tagline/edit.js.map +1 -1
  374. package/build-module/site-tagline/index.js +12 -1
  375. package/build-module/site-tagline/index.js.map +1 -1
  376. package/build-module/site-title/edit.js +2 -2
  377. package/build-module/site-title/edit.js.map +1 -1
  378. package/build-module/site-title/index.js +10 -0
  379. package/build-module/site-title/index.js.map +1 -1
  380. package/build-module/social-link/edit.js +2 -1
  381. package/build-module/social-link/edit.js.map +1 -1
  382. package/build-module/spacer/controls.js +9 -14
  383. package/build-module/spacer/controls.js.map +1 -1
  384. package/build-module/table/edit.js +6 -5
  385. package/build-module/table/edit.js.map +1 -1
  386. package/build-module/table-of-contents/index.js +14 -1
  387. package/build-module/table-of-contents/index.js.map +1 -1
  388. package/build-module/tag-cloud/edit.js +70 -53
  389. package/build-module/tag-cloud/edit.js.map +1 -1
  390. package/build-module/tag-cloud/index.js +13 -1
  391. package/build-module/tag-cloud/index.js.map +1 -1
  392. package/build-module/template-part/edit/advanced-controls.js +2 -0
  393. package/build-module/template-part/edit/advanced-controls.js.map +1 -1
  394. package/build-module/template-part/edit/index.js +7 -6
  395. package/build-module/template-part/edit/index.js.map +1 -1
  396. package/build-module/template-part/edit/inner-blocks.js +6 -4
  397. package/build-module/template-part/edit/inner-blocks.js.map +1 -1
  398. package/build-module/video/edit-common-settings.js +1 -0
  399. package/build-module/video/edit-common-settings.js.map +1 -1
  400. package/build-module/video/edit.js +1 -1
  401. package/build-module/video/edit.js.map +1 -1
  402. package/build-module/video/tracks-editor.js +3 -0
  403. package/build-module/video/tracks-editor.js.map +1 -1
  404. package/build-module/video/transforms.js +5 -1
  405. package/build-module/video/transforms.js.map +1 -1
  406. package/build-style/archives/editor-rtl.css +5 -2
  407. package/build-style/archives/editor.css +5 -2
  408. package/build-style/archives/style-rtl.css +5 -2
  409. package/build-style/archives/style.css +5 -2
  410. package/build-style/audio/editor-rtl.css +5 -2
  411. package/build-style/audio/editor.css +5 -2
  412. package/build-style/audio/style-rtl.css +5 -2
  413. package/build-style/audio/style.css +5 -2
  414. package/build-style/audio/theme-rtl.css +5 -2
  415. package/build-style/audio/theme.css +5 -2
  416. package/build-style/avatar/editor-rtl.css +5 -2
  417. package/build-style/avatar/editor.css +5 -2
  418. package/build-style/avatar/style-rtl.css +5 -2
  419. package/build-style/avatar/style.css +5 -2
  420. package/build-style/button/editor-rtl.css +5 -2
  421. package/build-style/button/editor.css +5 -2
  422. package/build-style/button/style-rtl.css +5 -2
  423. package/build-style/button/style.css +5 -2
  424. package/build-style/buttons/editor-rtl.css +5 -2
  425. package/build-style/buttons/editor.css +5 -2
  426. package/build-style/buttons/style-rtl.css +5 -2
  427. package/build-style/buttons/style.css +5 -2
  428. package/build-style/calendar/style-rtl.css +5 -2
  429. package/build-style/calendar/style.css +5 -2
  430. package/build-style/categories/editor-rtl.css +5 -2
  431. package/build-style/categories/editor.css +5 -2
  432. package/build-style/categories/style-rtl.css +5 -2
  433. package/build-style/categories/style.css +5 -2
  434. package/build-style/classic-rtl.css +5 -2
  435. package/build-style/classic.css +5 -2
  436. package/build-style/code/editor-rtl.css +5 -2
  437. package/build-style/code/editor.css +5 -2
  438. package/build-style/code/style-rtl.css +5 -2
  439. package/build-style/code/style.css +5 -2
  440. package/build-style/code/theme-rtl.css +5 -2
  441. package/build-style/code/theme.css +5 -2
  442. package/build-style/columns/editor-rtl.css +5 -2
  443. package/build-style/columns/editor.css +5 -2
  444. package/build-style/columns/style-rtl.css +5 -2
  445. package/build-style/columns/style.css +5 -2
  446. package/build-style/comment-author-avatar/editor-rtl.css +5 -2
  447. package/build-style/comment-author-avatar/editor.css +5 -2
  448. package/build-style/comment-author-name/style-rtl.css +94 -0
  449. package/build-style/comment-author-name/style.css +94 -0
  450. package/build-style/comment-content/style-rtl.css +9 -2
  451. package/build-style/comment-content/style.css +9 -2
  452. package/build-style/comment-date/style-rtl.css +94 -0
  453. package/build-style/comment-date/style.css +94 -0
  454. package/build-style/comment-template/style-rtl.css +5 -2
  455. package/build-style/comment-template/style.css +5 -2
  456. package/build-style/comments/editor-rtl.css +5 -2
  457. package/build-style/comments/editor.css +5 -2
  458. package/build-style/comments/style-rtl.css +5 -2
  459. package/build-style/comments/style.css +5 -2
  460. package/build-style/comments-pagination/editor-rtl.css +5 -2
  461. package/build-style/comments-pagination/editor.css +5 -2
  462. package/build-style/comments-pagination/style-rtl.css +5 -2
  463. package/build-style/comments-pagination/style.css +5 -2
  464. package/build-style/comments-pagination-numbers/editor-rtl.css +5 -2
  465. package/build-style/comments-pagination-numbers/editor.css +5 -2
  466. package/build-style/comments-title/editor-rtl.css +5 -2
  467. package/build-style/comments-title/editor.css +5 -2
  468. package/build-style/common-rtl.css +5 -2
  469. package/build-style/common.css +5 -2
  470. package/build-style/cover/editor-rtl.css +5 -2
  471. package/build-style/cover/editor.css +5 -2
  472. package/build-style/cover/style-rtl.css +5 -2
  473. package/build-style/cover/style.css +5 -2
  474. package/build-style/details/editor-rtl.css +5 -2
  475. package/build-style/details/editor.css +5 -2
  476. package/build-style/details/style-rtl.css +5 -2
  477. package/build-style/details/style.css +5 -2
  478. package/build-style/editor-elements-rtl.css +5 -2
  479. package/build-style/editor-elements.css +5 -2
  480. package/build-style/editor-rtl.css +47 -45
  481. package/build-style/editor.css +47 -45
  482. package/build-style/elements-rtl.css +5 -2
  483. package/build-style/elements.css +5 -2
  484. package/build-style/embed/editor-rtl.css +8 -2
  485. package/build-style/embed/editor.css +8 -2
  486. package/build-style/embed/style-rtl.css +5 -2
  487. package/build-style/embed/style.css +5 -2
  488. package/build-style/embed/theme-rtl.css +5 -2
  489. package/build-style/embed/theme.css +5 -2
  490. package/build-style/file/editor-rtl.css +5 -2
  491. package/build-style/file/editor.css +5 -2
  492. package/build-style/file/style-rtl.css +5 -2
  493. package/build-style/file/style.css +5 -2
  494. package/build-style/footnotes/style-rtl.css +5 -2
  495. package/build-style/footnotes/style.css +5 -2
  496. package/build-style/form-input/editor-rtl.css +5 -2
  497. package/build-style/form-input/editor.css +5 -2
  498. package/build-style/form-input/style-rtl.css +6 -2
  499. package/build-style/form-input/style.css +6 -2
  500. package/build-style/form-submission-notification/editor-rtl.css +5 -2
  501. package/build-style/form-submission-notification/editor.css +5 -2
  502. package/build-style/form-submit-button/style-rtl.css +5 -2
  503. package/build-style/form-submit-button/style.css +5 -2
  504. package/build-style/freeform/editor-rtl.css +5 -2
  505. package/build-style/freeform/editor.css +5 -2
  506. package/build-style/gallery/editor-rtl.css +5 -3
  507. package/build-style/gallery/editor.css +5 -3
  508. package/build-style/gallery/style-rtl.css +29 -9
  509. package/build-style/gallery/style.css +29 -9
  510. package/build-style/gallery/theme-rtl.css +5 -2
  511. package/build-style/gallery/theme.css +5 -2
  512. package/build-style/group/editor-rtl.css +5 -13
  513. package/build-style/group/editor.css +5 -13
  514. package/build-style/group/style-rtl.css +5 -2
  515. package/build-style/group/style.css +5 -2
  516. package/build-style/group/theme-rtl.css +5 -2
  517. package/build-style/group/theme.css +5 -2
  518. package/build-style/heading/style-rtl.css +5 -2
  519. package/build-style/heading/style.css +5 -2
  520. package/build-style/html/editor-rtl.css +5 -2
  521. package/build-style/html/editor.css +5 -2
  522. package/build-style/image/editor-rtl.css +13 -2
  523. package/build-style/image/editor.css +13 -2
  524. package/build-style/image/style-rtl.css +5 -2
  525. package/build-style/image/style.css +5 -2
  526. package/build-style/image/theme-rtl.css +5 -2
  527. package/build-style/image/theme.css +5 -2
  528. package/build-style/latest-comments/style-rtl.css +5 -2
  529. package/build-style/latest-comments/style.css +5 -2
  530. package/build-style/latest-posts/editor-rtl.css +12 -9
  531. package/build-style/latest-posts/editor.css +12 -9
  532. package/build-style/latest-posts/style-rtl.css +5 -2
  533. package/build-style/latest-posts/style.css +5 -2
  534. package/build-style/list/style-rtl.css +5 -2
  535. package/build-style/list/style.css +5 -2
  536. package/build-style/loginout/style-rtl.css +94 -0
  537. package/build-style/loginout/style.css +94 -0
  538. package/build-style/media-text/editor-rtl.css +5 -2
  539. package/build-style/media-text/editor.css +5 -2
  540. package/build-style/media-text/style-rtl.css +5 -2
  541. package/build-style/media-text/style.css +5 -2
  542. package/build-style/more/editor-rtl.css +5 -2
  543. package/build-style/more/editor.css +5 -2
  544. package/build-style/navigation/editor-rtl.css +9 -14
  545. package/build-style/navigation/editor.css +9 -14
  546. package/build-style/navigation/style-rtl.css +5 -2
  547. package/build-style/navigation/style.css +5 -2
  548. package/build-style/navigation-link/editor-rtl.css +5 -5
  549. package/build-style/navigation-link/editor.css +5 -5
  550. package/build-style/navigation-link/style-rtl.css +5 -2
  551. package/build-style/navigation-link/style.css +5 -2
  552. package/build-style/navigation-submenu/editor-rtl.css +5 -2
  553. package/build-style/navigation-submenu/editor.css +5 -2
  554. package/build-style/nextpage/editor-rtl.css +5 -2
  555. package/build-style/nextpage/editor.css +5 -2
  556. package/build-style/page-list/editor-rtl.css +5 -2
  557. package/build-style/page-list/editor.css +5 -2
  558. package/build-style/page-list/style-rtl.css +5 -2
  559. package/build-style/page-list/style.css +5 -2
  560. package/build-style/paragraph/editor-rtl.css +5 -2
  561. package/build-style/paragraph/editor.css +5 -2
  562. package/build-style/paragraph/style-rtl.css +5 -2
  563. package/build-style/paragraph/style.css +5 -2
  564. package/build-style/post-author/editor-rtl.css +95 -0
  565. package/build-style/post-author/editor.css +95 -0
  566. package/build-style/post-author/style-rtl.css +6 -2
  567. package/build-style/post-author/style.css +6 -2
  568. package/build-style/post-author-biography/style-rtl.css +94 -0
  569. package/build-style/post-author-biography/style.css +94 -0
  570. package/build-style/post-author-name/style-rtl.css +94 -0
  571. package/build-style/post-author-name/style.css +94 -0
  572. package/build-style/post-comments-form/editor-rtl.css +5 -2
  573. package/build-style/post-comments-form/editor.css +5 -2
  574. package/build-style/post-comments-form/style-rtl.css +5 -2
  575. package/build-style/post-comments-form/style.css +5 -2
  576. package/build-style/post-content/editor-rtl.css +5 -2
  577. package/build-style/post-content/editor.css +5 -2
  578. package/build-style/post-content/style-rtl.css +96 -0
  579. package/build-style/post-content/style.css +96 -0
  580. package/build-style/post-date/style-rtl.css +5 -2
  581. package/build-style/post-date/style.css +5 -2
  582. package/build-style/post-excerpt/editor-rtl.css +5 -2
  583. package/build-style/post-excerpt/editor.css +5 -2
  584. package/build-style/post-excerpt/style-rtl.css +6 -2
  585. package/build-style/post-excerpt/style.css +6 -2
  586. package/build-style/post-featured-image/editor-rtl.css +5 -2
  587. package/build-style/post-featured-image/editor.css +5 -2
  588. package/build-style/post-featured-image/style-rtl.css +5 -2
  589. package/build-style/post-featured-image/style.css +5 -2
  590. package/build-style/post-navigation-link/style-rtl.css +5 -2
  591. package/build-style/post-navigation-link/style.css +5 -2
  592. package/build-style/post-template/editor-rtl.css +5 -2
  593. package/build-style/post-template/editor.css +5 -2
  594. package/build-style/post-template/style-rtl.css +5 -2
  595. package/build-style/post-template/style.css +5 -2
  596. package/build-style/post-terms/style-rtl.css +5 -2
  597. package/build-style/post-terms/style.css +5 -2
  598. package/build-style/post-time-to-read/style-rtl.css +5 -2
  599. package/build-style/post-time-to-read/style.css +5 -2
  600. package/build-style/post-title/style-rtl.css +5 -2
  601. package/build-style/post-title/style.css +5 -2
  602. package/build-style/preformatted/style-rtl.css +5 -2
  603. package/build-style/preformatted/style.css +5 -2
  604. package/build-style/pullquote/editor-rtl.css +5 -2
  605. package/build-style/pullquote/editor.css +5 -2
  606. package/build-style/pullquote/style-rtl.css +5 -2
  607. package/build-style/pullquote/style.css +5 -2
  608. package/build-style/pullquote/theme-rtl.css +5 -2
  609. package/build-style/pullquote/theme.css +5 -2
  610. package/build-style/query/editor-rtl.css +5 -2
  611. package/build-style/query/editor.css +5 -2
  612. package/build-style/query-pagination/editor-rtl.css +5 -2
  613. package/build-style/query-pagination/editor.css +5 -2
  614. package/build-style/query-pagination/style-rtl.css +5 -2
  615. package/build-style/query-pagination/style.css +5 -2
  616. package/build-style/query-pagination-numbers/editor-rtl.css +5 -2
  617. package/build-style/query-pagination-numbers/editor.css +5 -2
  618. package/build-style/query-title/style-rtl.css +5 -2
  619. package/build-style/query-title/style.css +5 -2
  620. package/build-style/quote/style-rtl.css +5 -2
  621. package/build-style/quote/style.css +5 -2
  622. package/build-style/quote/theme-rtl.css +8 -5
  623. package/build-style/quote/theme.css +8 -5
  624. package/build-style/read-more/style-rtl.css +5 -2
  625. package/build-style/read-more/style.css +5 -2
  626. package/build-style/reset-rtl.css +5 -2
  627. package/build-style/reset.css +5 -2
  628. package/build-style/rss/editor-rtl.css +5 -2
  629. package/build-style/rss/editor.css +5 -2
  630. package/build-style/rss/style-rtl.css +5 -2
  631. package/build-style/rss/style.css +5 -2
  632. package/build-style/search/editor-rtl.css +8 -4
  633. package/build-style/search/editor.css +8 -4
  634. package/build-style/search/style-rtl.css +5 -2
  635. package/build-style/search/style.css +5 -2
  636. package/build-style/search/theme-rtl.css +5 -2
  637. package/build-style/search/theme.css +5 -2
  638. package/build-style/separator/editor-rtl.css +5 -2
  639. package/build-style/separator/editor.css +5 -2
  640. package/build-style/separator/style-rtl.css +5 -2
  641. package/build-style/separator/style.css +5 -2
  642. package/build-style/separator/theme-rtl.css +5 -2
  643. package/build-style/separator/theme.css +5 -2
  644. package/build-style/shortcode/editor-rtl.css +5 -2
  645. package/build-style/shortcode/editor.css +5 -2
  646. package/build-style/site-logo/editor-rtl.css +5 -2
  647. package/build-style/site-logo/editor.css +5 -2
  648. package/build-style/site-logo/style-rtl.css +5 -2
  649. package/build-style/site-logo/style.css +5 -2
  650. package/build-style/site-tagline/editor-rtl.css +5 -2
  651. package/build-style/site-tagline/editor.css +5 -2
  652. package/build-style/site-tagline/style-rtl.css +94 -0
  653. package/build-style/site-tagline/style.css +94 -0
  654. package/build-style/site-title/editor-rtl.css +5 -2
  655. package/build-style/site-title/editor.css +5 -2
  656. package/build-style/site-title/style-rtl.css +9 -3
  657. package/build-style/site-title/style.css +9 -3
  658. package/build-style/social-link/editor-rtl.css +5 -2
  659. package/build-style/social-link/editor.css +5 -2
  660. package/build-style/social-links/editor-rtl.css +5 -2
  661. package/build-style/social-links/editor.css +5 -2
  662. package/build-style/social-links/style-rtl.css +5 -2
  663. package/build-style/social-links/style.css +5 -2
  664. package/build-style/spacer/editor-rtl.css +5 -2
  665. package/build-style/spacer/editor.css +5 -2
  666. package/build-style/spacer/style-rtl.css +5 -2
  667. package/build-style/spacer/style.css +5 -2
  668. package/build-style/style-rtl.css +80 -10
  669. package/build-style/style.css +80 -10
  670. package/build-style/table/editor-rtl.css +5 -2
  671. package/build-style/table/editor.css +5 -2
  672. package/build-style/table/style-rtl.css +5 -2
  673. package/build-style/table/style.css +5 -2
  674. package/build-style/table/theme-rtl.css +5 -2
  675. package/build-style/table/theme.css +5 -2
  676. package/build-style/table-of-contents/style-rtl.css +94 -0
  677. package/build-style/table-of-contents/style.css +94 -0
  678. package/build-style/tag-cloud/editor-rtl.css +102 -0
  679. package/build-style/tag-cloud/editor.css +102 -0
  680. package/build-style/tag-cloud/style-rtl.css +5 -2
  681. package/build-style/tag-cloud/style.css +5 -2
  682. package/build-style/template-part/editor-rtl.css +5 -6
  683. package/build-style/template-part/editor.css +5 -6
  684. package/build-style/template-part/theme-rtl.css +5 -2
  685. package/build-style/template-part/theme.css +5 -2
  686. package/build-style/term-description/style-rtl.css +5 -2
  687. package/build-style/term-description/style.css +5 -2
  688. package/build-style/text-columns/editor-rtl.css +5 -2
  689. package/build-style/text-columns/editor.css +5 -2
  690. package/build-style/text-columns/style-rtl.css +5 -2
  691. package/build-style/text-columns/style.css +5 -2
  692. package/build-style/theme-rtl.css +8 -5
  693. package/build-style/theme.css +8 -5
  694. package/build-style/verse/style-rtl.css +5 -2
  695. package/build-style/verse/style.css +5 -2
  696. package/build-style/video/editor-rtl.css +5 -5
  697. package/build-style/video/editor.css +5 -5
  698. package/build-style/video/style-rtl.css +5 -2
  699. package/build-style/video/style.css +5 -2
  700. package/build-style/video/theme-rtl.css +5 -2
  701. package/build-style/video/theme.css +5 -2
  702. package/package.json +35 -35
  703. package/src/archives/edit.js +1 -0
  704. package/src/audio/edit.js +4 -3
  705. package/src/avatar/edit.js +1 -0
  706. package/src/avatar/user-control.js +1 -0
  707. package/src/button/edit.js +1 -0
  708. package/src/button/index.php +1 -14
  709. package/src/categories/block.json +12 -0
  710. package/src/column/block.json +2 -0
  711. package/src/column/edit.js +2 -2
  712. package/src/comment-author-name/block.json +14 -1
  713. package/src/comment-author-name/style.scss +4 -0
  714. package/src/comment-content/block.json +14 -1
  715. package/src/comment-content/style.scss +5 -0
  716. package/src/comment-date/block.json +14 -1
  717. package/src/comment-date/style.scss +4 -0
  718. package/src/comment-template/block.json +12 -0
  719. package/src/comments-pagination/comments-pagination-arrow-controls.js +1 -0
  720. package/src/comments-title/block.json +3 -0
  721. package/src/comments-title/edit.js +8 -1
  722. package/src/cover/edit/inspector-controls.js +0 -1
  723. package/src/details/edit.js +1 -0
  724. package/src/editor.scss +2 -0
  725. package/src/embed/edit.js +10 -1
  726. package/src/embed/editor.scss +4 -0
  727. package/src/embed/embed-placeholder.js +7 -4
  728. package/src/embed/embed-preview.js +3 -37
  729. package/src/file/block.json +12 -0
  730. package/src/file/inspector.js +1 -0
  731. package/src/form/edit.js +5 -2
  732. package/src/form-input/edit.js +2 -0
  733. package/src/form-input/style.scss +1 -0
  734. package/src/gallery/edit.js +80 -22
  735. package/src/gallery/editor.scss +1 -2
  736. package/src/gallery/gallery.native.js +2 -1
  737. package/src/gallery/gap-styles.js +1 -8
  738. package/src/gallery/style.scss +33 -7
  739. package/src/gallery/test/__snapshots__/index.native.js.snap +1 -1
  740. package/src/gallery/test/index.native.js +5 -5
  741. package/src/gallery/use-image-sizes.js +2 -2
  742. package/src/group/edit.js +1 -1
  743. package/src/group/editor.scss +1 -1
  744. package/src/group/index.js +26 -29
  745. package/src/group/variations.js +56 -0
  746. package/src/heading/block.json +3 -0
  747. package/src/heading/edit.js +3 -1
  748. package/src/image/editor.scss +12 -0
  749. package/src/image/image.js +7 -1
  750. package/src/image/transforms.js +7 -1
  751. package/src/image/view.js +1 -1
  752. package/src/latest-posts/edit.js +61 -17
  753. package/src/latest-posts/editor.scss +11 -10
  754. package/src/list/block.json +10 -1
  755. package/src/list/ordered-list-settings.js +20 -18
  756. package/src/list/test/edit.native.js +1 -3
  757. package/src/list-item/block.json +11 -3
  758. package/src/loginout/block.json +14 -1
  759. package/src/loginout/style.scss +4 -0
  760. package/src/media-text/edit.js +0 -1
  761. package/src/media-text/style.native.scss +2 -0
  762. package/src/missing/edit.js +12 -18
  763. package/src/navigation/edit/index.js +8 -8
  764. package/src/navigation/edit/navigation-menu-name-control.js +1 -0
  765. package/src/navigation/edit/overlay-menu-preview.js +2 -0
  766. package/src/navigation/editor.scss +5 -1
  767. package/src/navigation/index.php +10 -27
  768. package/src/navigation-link/editor.scss +0 -3
  769. package/src/post-author/block.json +13 -0
  770. package/src/post-author/edit.js +68 -57
  771. package/src/post-author/editor.scss +7 -0
  772. package/src/post-author/style.scss +1 -0
  773. package/src/post-author-biography/block.json +14 -1
  774. package/src/post-author-biography/style.scss +4 -0
  775. package/src/post-author-name/block.json +14 -1
  776. package/src/post-author-name/style.scss +4 -0
  777. package/src/post-comment/edit.js +2 -0
  778. package/src/post-comments-form/block.json +12 -0
  779. package/src/post-content/block.json +1 -0
  780. package/src/post-content/style.scss +5 -0
  781. package/src/post-date/block.json +12 -0
  782. package/src/post-excerpt/block.json +12 -0
  783. package/src/post-excerpt/edit.js +1 -0
  784. package/src/post-excerpt/style.scss +3 -0
  785. package/src/post-featured-image/dimension-controls.js +5 -0
  786. package/src/post-featured-image/edit.js +1 -0
  787. package/src/post-navigation-link/edit.js +8 -2
  788. package/src/post-terms/block.json +12 -0
  789. package/src/post-terms/edit.js +1 -0
  790. package/src/post-time-to-read/block.json +6 -0
  791. package/src/post-title/block.json +15 -0
  792. package/src/post-title/edit.js +5 -3
  793. package/src/preformatted/block.json +12 -0
  794. package/src/query/edit/inspector-controls/enhanced-pagination-control.js +1 -0
  795. package/src/query/edit/inspector-controls/index.js +85 -12
  796. package/src/query/edit/inspector-controls/offset-controls.js +31 -0
  797. package/src/query/edit/inspector-controls/pages-control.js +27 -0
  798. package/src/query/edit/inspector-controls/parent-control.js +1 -0
  799. package/src/query/edit/inspector-controls/per-page-control.js +33 -0
  800. package/src/query/edit/inspector-controls/sticky-control.js +1 -1
  801. package/src/query/edit/query-content.js +1 -1
  802. package/src/query/edit/query-toolbar.js +1 -90
  803. package/src/query/utils.js +9 -5
  804. package/src/query-pagination/query-pagination-arrow-controls.js +1 -0
  805. package/src/query-pagination-numbers/edit.js +1 -0
  806. package/src/query-title/block.json +15 -0
  807. package/src/query-title/edit.js +9 -1
  808. package/src/quote/block.json +1 -0
  809. package/src/quote/test/transforms.native.js +1 -1
  810. package/src/quote/theme.scss +5 -3
  811. package/src/quote/transforms.js +11 -2
  812. package/src/search/edit.js +9 -9
  813. package/src/search/editor.scss +5 -2
  814. package/src/site-logo/edit.js +23 -9
  815. package/src/site-tagline/block.json +12 -1
  816. package/src/site-tagline/edit.js +2 -4
  817. package/src/site-tagline/style.scss +4 -0
  818. package/src/site-title/block.json +10 -0
  819. package/src/site-title/edit.js +2 -4
  820. package/src/site-title/style.scss +7 -2
  821. package/src/social-link/edit.js +2 -1
  822. package/src/spacer/controls.js +10 -13
  823. package/src/style.scss +9 -0
  824. package/src/table/edit.js +5 -4
  825. package/src/table-of-contents/block.json +14 -1
  826. package/src/table-of-contents/style.scss +4 -0
  827. package/src/tag-cloud/block.json +13 -1
  828. package/src/tag-cloud/edit.js +80 -56
  829. package/src/tag-cloud/editor.scss +19 -0
  830. package/src/template-part/edit/advanced-controls.js +2 -0
  831. package/src/template-part/edit/index.js +10 -7
  832. package/src/template-part/edit/inner-blocks.js +6 -4
  833. package/src/template-part/editor.scss +0 -5
  834. package/src/video/edit-common-settings.js +1 -0
  835. package/src/video/edit.js +2 -2
  836. package/src/video/editor.scss +0 -4
  837. package/src/video/tracks-editor.js +3 -0
  838. package/src/video/transforms.js +5 -1
@@ -6,7 +6,6 @@ import {
6
6
  TextControl,
7
7
  SelectControl,
8
8
  RangeControl,
9
- ToggleControl,
10
9
  __experimentalToggleGroupControl as ToggleGroupControl,
11
10
  __experimentalToggleGroupControlOption as ToggleGroupControlOption,
12
11
  Notice,
@@ -28,6 +27,9 @@ import { TaxonomyControls } from './taxonomy-controls';
28
27
  import StickyControl from './sticky-control';
29
28
  import EnhancedPaginationControl from './enhanced-pagination-control';
30
29
  import CreateNewPostLink from './create-new-post-link';
30
+ import PerPageControl from './per-page-control';
31
+ import OffsetControl from './offset-controls';
32
+ import PagesControl from './pages-control';
31
33
  import { unlock } from '../../../lock-unlock';
32
34
  import {
33
35
  usePostTypes,
@@ -48,7 +50,10 @@ export default function QueryInspectorControls( props ) {
48
50
  order,
49
51
  orderBy,
50
52
  author: authorIds,
53
+ pages,
51
54
  postType,
55
+ perPage,
56
+ offset,
52
57
  sticky,
53
58
  inherit,
54
59
  taxQuery,
@@ -103,9 +108,9 @@ export default function QueryInspectorControls( props ) {
103
108
  const showInheritControl = isControlAllowed( allowedControls, 'inherit' );
104
109
  const showPostTypeControl =
105
110
  ! inherit && isControlAllowed( allowedControls, 'postType' );
106
- const postTypeControlLabel = __( 'Content type' );
111
+ const postTypeControlLabel = __( 'Post type' );
107
112
  const postTypeControlHelp = __(
108
- 'WordPress contains different types of content you can filter by. Posts and pages are the default types, but plugins could add more.'
113
+ 'Select the type of content to display: posts, pages, or custom post types.'
109
114
  );
110
115
  const showColumnsControl = false;
111
116
  const showOrderControl =
@@ -136,6 +141,16 @@ export default function QueryInspectorControls( props ) {
136
141
  showParentControl;
137
142
  const dropdownMenuProps = useToolsPanelDropdownMenuProps();
138
143
 
144
+ const showPostCountControl = isControlAllowed(
145
+ allowedControls,
146
+ 'postCount'
147
+ );
148
+ const showOffSetControl = isControlAllowed( allowedControls, 'offset' );
149
+ const showPagesControl = isControlAllowed( allowedControls, 'pages' );
150
+
151
+ const showDisplayPanel =
152
+ showPostCountControl || showOffSetControl || showPagesControl;
153
+
139
154
  return (
140
155
  <>
141
156
  { !! postType && (
@@ -146,17 +161,34 @@ export default function QueryInspectorControls( props ) {
146
161
  { showSettingsPanel && (
147
162
  <PanelBody title={ __( 'Settings' ) }>
148
163
  { showInheritControl && (
149
- <ToggleControl
164
+ <ToggleGroupControl
165
+ __next40pxDefaultSize
150
166
  __nextHasNoMarginBottom
151
- label={ __( 'Inherit query from template' ) }
152
- help={ __(
153
- 'Enable to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently.'
154
- ) }
155
- checked={ !! inherit }
156
- onChange={ ( value ) =>
157
- setQuery( { inherit: !! value } )
167
+ label={ __( 'Query type' ) }
168
+ isBlock
169
+ onChange={ ( value ) => {
170
+ setQuery( { inherit: !! value } );
171
+ } }
172
+ help={
173
+ inherit
174
+ ? __(
175
+ 'Display a list of posts or custom post types based on the current template.'
176
+ )
177
+ : __(
178
+ 'Display a list of posts or custom post types based on specific criteria.'
179
+ )
158
180
  }
159
- />
181
+ value={ !! inherit }
182
+ >
183
+ <ToggleGroupControlOption
184
+ value
185
+ label={ __( 'Default' ) }
186
+ />
187
+ <ToggleGroupControlOption
188
+ value={ false }
189
+ label={ __( 'Custom' ) }
190
+ />
191
+ </ToggleGroupControl>
160
192
  ) }
161
193
  { showPostTypeControl &&
162
194
  ( postTypesSelectOptions.length > 2 ? (
@@ -237,6 +269,47 @@ export default function QueryInspectorControls( props ) {
237
269
  />
238
270
  </PanelBody>
239
271
  ) }
272
+ { ! inherit && showDisplayPanel && (
273
+ <ToolsPanel
274
+ className="block-library-query-toolspanel__display"
275
+ label={ __( 'Display' ) }
276
+ resetAll={ () => {
277
+ setQuery( {
278
+ offset: 0,
279
+ pages: 0,
280
+ } );
281
+ } }
282
+ dropdownMenuProps={ dropdownMenuProps }
283
+ >
284
+ <ToolsPanelItem
285
+ label={ __( 'Items' ) }
286
+ hasValue={ () => perPage > 0 }
287
+ >
288
+ <PerPageControl
289
+ perPage={ perPage }
290
+ offset={ offset }
291
+ onChange={ setQuery }
292
+ />
293
+ </ToolsPanelItem>
294
+ <ToolsPanelItem
295
+ label={ __( 'Offset' ) }
296
+ hasValue={ () => offset > 0 }
297
+ onDeselect={ () => setQuery( { offset: 0 } ) }
298
+ >
299
+ <OffsetControl
300
+ offset={ offset }
301
+ onChange={ setQuery }
302
+ />
303
+ </ToolsPanelItem>
304
+ <ToolsPanelItem
305
+ label={ __( 'Max Pages to Show' ) }
306
+ hasValue={ () => pages > 0 }
307
+ onDeselect={ () => setQuery( { pages: 0 } ) }
308
+ >
309
+ <PagesControl pages={ pages } onChange={ setQuery } />
310
+ </ToolsPanelItem>
311
+ </ToolsPanel>
312
+ ) }
240
313
  { ! inherit && showFiltersPanel && (
241
314
  <ToolsPanel
242
315
  className="block-library-query-toolspanel__filters" // unused but kept for backward compatibility
@@ -0,0 +1,31 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import { __experimentalNumberControl as NumberControl } from '@wordpress/components';
5
+ import { __ } from '@wordpress/i18n';
6
+
7
+ const MIN_OFFSET = 0;
8
+ const MAX_OFFSET = 100;
9
+
10
+ export const OffsetControl = ( { offset = 0, onChange } ) => {
11
+ return (
12
+ <NumberControl
13
+ __next40pxDefaultSize
14
+ label={ __( 'Offset' ) }
15
+ value={ offset }
16
+ min={ MIN_OFFSET }
17
+ onChange={ ( newOffset ) => {
18
+ if (
19
+ isNaN( newOffset ) ||
20
+ newOffset < MIN_OFFSET ||
21
+ newOffset > MAX_OFFSET
22
+ ) {
23
+ return;
24
+ }
25
+ onChange( { offset: newOffset } );
26
+ } }
27
+ />
28
+ );
29
+ };
30
+
31
+ export default OffsetControl;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import { __experimentalNumberControl as NumberControl } from '@wordpress/components';
5
+ import { __ } from '@wordpress/i18n';
6
+
7
+ export const PagesControl = ( { pages, onChange } ) => {
8
+ return (
9
+ <NumberControl
10
+ __next40pxDefaultSize
11
+ label={ __( 'Max pages' ) }
12
+ value={ pages }
13
+ min={ 0 }
14
+ onChange={ ( newPages ) => {
15
+ if ( isNaN( newPages ) || newPages < 0 ) {
16
+ return;
17
+ }
18
+ onChange( { pages: newPages } );
19
+ } }
20
+ help={ __(
21
+ 'Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).'
22
+ ) }
23
+ />
24
+ );
25
+ };
26
+
27
+ export default PagesControl;
@@ -132,6 +132,7 @@ function ParentControl( { parents, postType, onChange } ) {
132
132
  };
133
133
  return (
134
134
  <FormTokenField
135
+ __next40pxDefaultSize
135
136
  label={ __( 'Parents' ) }
136
137
  value={ value }
137
138
  onInputChange={ debouncedSearch }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import { RangeControl } from '@wordpress/components';
5
+ import { __ } from '@wordpress/i18n';
6
+
7
+ const MIN_POSTS_PER_PAGE = 1;
8
+ const MAX_POSTS_PER_PAGE = 100;
9
+
10
+ const PerPageControl = ( { perPage, offset = 0, onChange } ) => {
11
+ return (
12
+ <RangeControl
13
+ __next40pxDefaultSize
14
+ __nextHasNoMarginBottom
15
+ label={ __( 'Posts per page' ) }
16
+ min={ MIN_POSTS_PER_PAGE }
17
+ max={ MAX_POSTS_PER_PAGE }
18
+ onChange={ ( newPerPage ) => {
19
+ if (
20
+ isNaN( newPerPage ) ||
21
+ newPerPage < MIN_POSTS_PER_PAGE ||
22
+ newPerPage > MAX_POSTS_PER_PAGE
23
+ ) {
24
+ return;
25
+ }
26
+ onChange( { perPage: newPerPage, offset } );
27
+ } }
28
+ value={ parseInt( perPage, 10 ) }
29
+ />
30
+ );
31
+ };
32
+
33
+ export default PerPageControl;
@@ -20,7 +20,7 @@ export default function StickyControl( { value, onChange } ) {
20
20
  value={ value }
21
21
  onChange={ onChange }
22
22
  help={ __(
23
- 'Blog posts can be “stickied”, a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.'
23
+ 'Sticky posts always appear first, regardless of their publish date.'
24
24
  ) }
25
25
  />
26
26
  );
@@ -109,7 +109,7 @@ export default function QueryContent( {
109
109
  } );
110
110
  const htmlElementMessages = {
111
111
  main: __(
112
- 'The <main> element should be used for the primary content of your document only. '
112
+ 'The <main> element should be used for the primary content of your document only.'
113
113
  ),
114
114
  section: __(
115
115
  "The <section> element should represent a standalone portion of the document that can't be better represented by another element."
@@ -1,14 +1,8 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import {
5
- ToolbarGroup,
6
- Dropdown,
7
- ToolbarButton,
8
- __experimentalNumberControl as NumberControl,
9
- } from '@wordpress/components';
4
+ import { ToolbarGroup, ToolbarButton } from '@wordpress/components';
10
5
  import { __ } from '@wordpress/i18n';
11
- import { settings } from '@wordpress/icons';
12
6
 
13
7
  /**
14
8
  * Internal dependencies
@@ -16,8 +10,6 @@ import { settings } from '@wordpress/icons';
16
10
  import { usePatterns } from '../utils';
17
11
 
18
12
  export default function QueryToolbar( {
19
- attributes: { query },
20
- setQuery,
21
13
  openPatternSelectionModal,
22
14
  name,
23
15
  clientId,
@@ -26,87 +18,6 @@ export default function QueryToolbar( {
26
18
 
27
19
  return (
28
20
  <>
29
- { ! query.inherit && (
30
- <ToolbarGroup>
31
- <Dropdown
32
- contentClassName="block-library-query-toolbar__popover"
33
- renderToggle={ ( { onToggle } ) => (
34
- <ToolbarButton
35
- icon={ settings }
36
- label={ __( 'Display settings' ) }
37
- onClick={ onToggle }
38
- />
39
- ) }
40
- renderContent={ () => (
41
- <>
42
- <NumberControl
43
- __unstableInputWidth="60px"
44
- className="block-library-query-toolbar__popover-number-control"
45
- label={ __( 'Items per Page' ) }
46
- labelPosition="edge"
47
- min={ 1 }
48
- max={ 100 }
49
- onChange={ ( value ) => {
50
- if (
51
- isNaN( value ) ||
52
- value < 1 ||
53
- value > 100
54
- ) {
55
- return;
56
- }
57
- setQuery( {
58
- perPage: value,
59
- } );
60
- } }
61
- step="1"
62
- value={ query.perPage }
63
- isDragEnabled={ false }
64
- />
65
- <NumberControl
66
- __unstableInputWidth="60px"
67
- className="block-library-query-toolbar__popover-number-control"
68
- label={ __( 'Offset' ) }
69
- labelPosition="edge"
70
- min={ 0 }
71
- max={ 100 }
72
- onChange={ ( value ) => {
73
- if (
74
- isNaN( value ) ||
75
- value < 0 ||
76
- value > 100
77
- ) {
78
- return;
79
- }
80
- setQuery( { offset: value } );
81
- } }
82
- step="1"
83
- value={ query.offset }
84
- isDragEnabled={ false }
85
- />
86
- <NumberControl
87
- __unstableInputWidth="60px"
88
- className="block-library-query-toolbar__popover-number-control"
89
- label={ __( 'Max pages to show' ) }
90
- labelPosition="edge"
91
- min={ 0 }
92
- onChange={ ( value ) => {
93
- if ( isNaN( value ) || value < 0 ) {
94
- return;
95
- }
96
- setQuery( { pages: value } );
97
- } }
98
- step="1"
99
- value={ query.pages }
100
- isDragEnabled={ false }
101
- help={ __(
102
- 'Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).'
103
- ) }
104
- />
105
- </>
106
- ) }
107
- />
108
- </ToolbarGroup>
109
- ) }
110
21
  { hasPatterns && (
111
22
  <ToolbarGroup className="wp-block-template-part__block-control-group">
112
23
  <ToolbarButton onClick={ openPatternSelectionModal }>
@@ -136,11 +136,15 @@ export const usePostTypes = () => {
136
136
  export const useTaxonomies = ( postType ) => {
137
137
  const taxonomies = useSelect(
138
138
  ( select ) => {
139
- const { getTaxonomies } = select( coreStore );
140
- return getTaxonomies( {
141
- type: postType,
142
- per_page: -1,
143
- } );
139
+ const { getTaxonomies, getPostType } = select( coreStore );
140
+ // Does the post type have taxonomies?
141
+ if ( getPostType( postType )?.taxonomies?.length > 0 ) {
142
+ return getTaxonomies( {
143
+ type: postType,
144
+ per_page: -1,
145
+ } );
146
+ }
147
+ return [];
144
148
  },
145
149
  [ postType ]
146
150
  );
@@ -10,6 +10,7 @@ import {
10
10
  export function QueryPaginationArrowControls( { value, onChange } ) {
11
11
  return (
12
12
  <ToggleGroupControl
13
+ __next40pxDefaultSize
13
14
  __nextHasNoMarginBottom
14
15
  label={ __( 'Arrow' ) }
15
16
  value={ value }
@@ -51,6 +51,7 @@ export default function QueryPaginationNumbersEdit( {
51
51
  <InspectorControls>
52
52
  <PanelBody title={ __( 'Settings' ) }>
53
53
  <RangeControl
54
+ __next40pxDefaultSize
54
55
  __nextHasNoMarginBottom
55
56
  label={ __( 'Number of links' ) }
56
57
  help={ __(
@@ -17,6 +17,9 @@
17
17
  "type": "number",
18
18
  "default": 1
19
19
  },
20
+ "levelOptions": {
21
+ "type": "array"
22
+ },
20
23
  "showPrefix": {
21
24
  "type": "boolean",
22
25
  "default": true
@@ -55,6 +58,18 @@
55
58
  },
56
59
  "interactivity": {
57
60
  "clientNavigation": true
61
+ },
62
+ "__experimentalBorder": {
63
+ "radius": true,
64
+ "color": true,
65
+ "width": true,
66
+ "style": true,
67
+ "__experimentalDefaultControls": {
68
+ "radius": true,
69
+ "color": true,
70
+ "width": true,
71
+ "style": true
72
+ }
58
73
  }
59
74
  },
60
75
  "style": "wp-block-query-title"
@@ -25,7 +25,14 @@ import { useArchiveLabel } from './use-archive-label';
25
25
  const SUPPORTED_TYPES = [ 'archive', 'search' ];
26
26
 
27
27
  export default function QueryTitleEdit( {
28
- attributes: { type, level, textAlign, showPrefix, showSearchTerm },
28
+ attributes: {
29
+ type,
30
+ level,
31
+ levelOptions,
32
+ textAlign,
33
+ showPrefix,
34
+ showSearchTerm,
35
+ },
29
36
  setAttributes,
30
37
  } ) {
31
38
  const { archiveTypeLabel, archiveNameLabel } = useArchiveLabel();
@@ -130,6 +137,7 @@ export default function QueryTitleEdit( {
130
137
  <BlockControls group="block">
131
138
  <HeadingLevelDropdown
132
139
  value={ level }
140
+ options={ levelOptions }
133
141
  onChange={ ( newLevel ) =>
134
142
  setAttributes( { level: newLevel } )
135
143
  }
@@ -28,6 +28,7 @@
28
28
  },
29
29
  "supports": {
30
30
  "anchor": true,
31
+ "align": [ "left", "right", "wide", "full" ],
31
32
  "html": false,
32
33
  "background": {
33
34
  "backgroundImage": true,
@@ -14,7 +14,7 @@ import {
14
14
 
15
15
  const block = 'Quote';
16
16
  const initialHtml = `
17
- <!-- wp:quote {"align":"left","className":"is-style-large"} -->
17
+ <!-- wp:quote {"textAlign":"left","className":"is-style-large"} -->
18
18
  <blockquote class="wp-block-quote has-text-align-left is-style-large"><!-- wp:paragraph -->
19
19
  <p>"This will make running your own blog a viable alternative again."</p>
20
20
  <!-- /wp:paragraph --><cite>— <a href="https://twitter.com/azumbrunnen_/status/1019347243084800005">Adrian Zumbrunnen</a></cite></blockquote>
@@ -10,19 +10,21 @@
10
10
  font-style: normal;
11
11
  }
12
12
 
13
- &.has-text-align-right {
13
+ &:where(.has-text-align-right) {
14
14
  border-left: none;
15
15
  border-right: 0.25em solid currentColor;
16
16
  padding-left: 0;
17
17
  padding-right: 1em;
18
18
  }
19
19
 
20
- &.has-text-align-center {
20
+ &:where(.has-text-align-center) {
21
21
  border: none;
22
22
  padding-left: 0;
23
23
  }
24
24
  // .is-style-large and .is-large are kept for backwards compatibility.
25
- &.is-style-plain,
25
+ // They are not wrapped in `:where()` to keep specificity as it was before
26
+ // they were deprecated.
27
+ &:where(.is-style-plain),
26
28
  &.is-style-large,
27
29
  &.is-large {
28
30
  border: none;
@@ -9,10 +9,18 @@ const transforms = {
9
9
  {
10
10
  type: 'block',
11
11
  blocks: [ 'core/pullquote' ],
12
- transform: ( { value, citation, anchor, fontSize, style } ) => {
12
+ transform: ( {
13
+ value,
14
+ align,
15
+ citation,
16
+ anchor,
17
+ fontSize,
18
+ style,
19
+ } ) => {
13
20
  return createBlock(
14
21
  'core/quote',
15
22
  {
23
+ align,
16
24
  citation,
17
25
  anchor,
18
26
  fontSize,
@@ -95,7 +103,7 @@ const transforms = {
95
103
  );
96
104
  },
97
105
  transform: (
98
- { citation, anchor, fontSize, style },
106
+ { align, citation, anchor, fontSize, style },
99
107
  innerBlocks
100
108
  ) => {
101
109
  const value = innerBlocks
@@ -103,6 +111,7 @@ const transforms = {
103
111
  .join( '<br>' );
104
112
  return createBlock( 'core/pullquote', {
105
113
  value,
114
+ align,
106
115
  citation,
107
116
  anchor,
108
117
  fontSize,
@@ -28,7 +28,7 @@ import {
28
28
  ToolbarButton,
29
29
  ResizableBox,
30
30
  PanelBody,
31
- BaseControl,
31
+ __experimentalVStack as VStack,
32
32
  __experimentalUseCustomUnits as useCustomUnits,
33
33
  __experimentalUnitControl as UnitControl,
34
34
  } from '@wordpress/components';
@@ -408,12 +408,14 @@ export default function SearchEdit( {
408
408
 
409
409
  <InspectorControls>
410
410
  <PanelBody title={ __( 'Settings' ) }>
411
- <BaseControl
412
- label={ __( 'Width' ) }
413
- id={ unitControlInputId }
411
+ <VStack
412
+ className="wp-block-search__inspector-controls"
413
+ spacing={ 4 }
414
414
  >
415
415
  <UnitControl
416
- id={ unitControlInputId }
416
+ __next40pxDefaultSize
417
+ label={ __( 'Width' ) }
418
+ id={ unitControlInputId } // unused, kept for backwards compatibility
417
419
  min={
418
420
  isPercentageUnit( widthUnit ) ? 0 : MIN_WIDTH
419
421
  }
@@ -427,7 +429,6 @@ export default function SearchEdit( {
427
429
  parseInt( newWidth, 10 ) > 100
428
430
  ? 100
429
431
  : newWidth;
430
-
431
432
  setAttributes( {
432
433
  width: parseInt( filteredWidth, 10 ),
433
434
  } );
@@ -445,9 +446,8 @@ export default function SearchEdit( {
445
446
  value={ `${ width }${ widthUnit }` }
446
447
  units={ units }
447
448
  />
448
-
449
449
  <ButtonGroup
450
- className="wp-block-search__components-button-group"
450
+ className="wp-block-search__components-button-group" // unused, kept for backwards compatibility
451
451
  aria-label={ __( 'Percentage Width' ) }
452
452
  >
453
453
  { [ 25, 50, 75, 100 ].map( ( widthValue ) => {
@@ -473,7 +473,7 @@ export default function SearchEdit( {
473
473
  );
474
474
  } ) }
475
475
  </ButtonGroup>
476
- </BaseControl>
476
+ </VStack>
477
477
  </PanelBody>
478
478
  </InspectorControls>
479
479
  </>
@@ -15,8 +15,11 @@
15
15
  justify-content: center;
16
16
  text-align: center;
17
17
  }
18
+ }
18
19
 
19
- &__components-button-group {
20
- margin-top: 10px;
20
+ .wp-block-search__inspector-controls {
21
+ .components-base-control {
22
+ // Counteract the margin added by the block inspector.
23
+ margin-bottom: 0;
21
24
  }
22
25
  }