@wordpress/block-library 9.4.0 → 9.5.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 (585) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/avatar/edit.js +1 -0
  3. package/build/avatar/edit.js.map +1 -1
  4. package/build/categories/index.js +12 -0
  5. package/build/categories/index.js.map +1 -1
  6. package/build/column/edit.js +2 -2
  7. package/build/column/edit.js.map +1 -1
  8. package/build/column/index.js +2 -0
  9. package/build/column/index.js.map +1 -1
  10. package/build/comment-template/index.js +12 -0
  11. package/build/comment-template/index.js.map +1 -1
  12. package/build/comments-title/deprecated.js +3 -0
  13. package/build/comments-title/deprecated.js.map +1 -1
  14. package/build/comments-title/edit.js +3 -1
  15. package/build/comments-title/edit.js.map +1 -1
  16. package/build/comments-title/index.js +3 -0
  17. package/build/comments-title/index.js.map +1 -1
  18. package/build/details/edit.js +1 -0
  19. package/build/details/edit.js.map +1 -1
  20. package/build/form/edit.js +4 -4
  21. package/build/form/edit.js.map +1 -1
  22. package/build/form-input/edit.js +1 -0
  23. package/build/form-input/edit.js.map +1 -1
  24. package/build/gallery/edit.js +42 -8
  25. package/build/gallery/edit.js.map +1 -1
  26. package/build/gallery/gap-styles.js +1 -9
  27. package/build/gallery/gap-styles.js.map +1 -1
  28. package/build/gallery/use-image-sizes.js +2 -2
  29. package/build/gallery/use-image-sizes.js.map +1 -1
  30. package/build/group/index.js +27 -30
  31. package/build/group/index.js.map +1 -1
  32. package/build/group/variations.js +51 -3
  33. package/build/group/variations.js.map +1 -1
  34. package/build/heading/edit.js +2 -0
  35. package/build/heading/edit.js.map +1 -1
  36. package/build/heading/index.js +3 -0
  37. package/build/heading/index.js.map +1 -1
  38. package/build/image/view.js +1 -1
  39. package/build/image/view.js.map +1 -1
  40. package/build/latest-posts/edit.js +1 -0
  41. package/build/latest-posts/edit.js.map +1 -1
  42. package/build/list/index.js +1 -1
  43. package/build/list/ordered-list-settings.js +19 -17
  44. package/build/list/ordered-list-settings.js.map +1 -1
  45. package/build/list-item/index.js +3 -2
  46. package/build/list-item/index.js.map +1 -1
  47. package/build/loginout/index.js +14 -1
  48. package/build/loginout/index.js.map +1 -1
  49. package/build/navigation/edit/index.js +5 -4
  50. package/build/navigation/edit/index.js.map +1 -1
  51. package/build/post-comments-form/index.js +12 -0
  52. package/build/post-comments-form/index.js.map +1 -1
  53. package/build/post-content/index.js +1 -0
  54. package/build/post-content/index.js.map +1 -1
  55. package/build/post-date/index.js +12 -0
  56. package/build/post-date/index.js.map +1 -1
  57. package/build/post-excerpt/index.js +12 -0
  58. package/build/post-excerpt/index.js.map +1 -1
  59. package/build/post-navigation-link/edit.js +2 -0
  60. package/build/post-navigation-link/edit.js.map +1 -1
  61. package/build/post-terms/index.js +12 -0
  62. package/build/post-terms/index.js.map +1 -1
  63. package/build/post-time-to-read/index.js +6 -0
  64. package/build/post-time-to-read/index.js.map +1 -1
  65. package/build/post-title/edit.js +4 -2
  66. package/build/post-title/edit.js.map +1 -1
  67. package/build/post-title/index.js +15 -0
  68. package/build/post-title/index.js.map +1 -1
  69. package/build/query/edit/inspector-controls/enhanced-pagination-control.js +1 -0
  70. package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  71. package/build/query/edit/inspector-controls/index.js +69 -9
  72. package/build/query/edit/inspector-controls/index.js.map +1 -1
  73. package/build/query/edit/inspector-controls/offset-controls.js +37 -0
  74. package/build/query/edit/inspector-controls/offset-controls.js.map +1 -0
  75. package/build/query/edit/inspector-controls/pages-control.js +36 -0
  76. package/build/query/edit/inspector-controls/pages-control.js.map +1 -0
  77. package/build/query/edit/inspector-controls/per-page-control.js +40 -0
  78. package/build/query/edit/inspector-controls/per-page-control.js.map +1 -0
  79. package/build/query/edit/inspector-controls/sticky-control.js +1 -1
  80. package/build/query/edit/inspector-controls/sticky-control.js.map +1 -1
  81. package/build/query/edit/query-toolbar.js +3 -76
  82. package/build/query/edit/query-toolbar.js.map +1 -1
  83. package/build/query/utils.js +10 -5
  84. package/build/query/utils.js.map +1 -1
  85. package/build/query-title/edit.js +2 -0
  86. package/build/query-title/edit.js.map +1 -1
  87. package/build/query-title/index.js +3 -0
  88. package/build/query-title/index.js.map +1 -1
  89. package/build/site-logo/edit.js +15 -8
  90. package/build/site-logo/edit.js.map +1 -1
  91. package/build/site-tagline/edit.js +3 -3
  92. package/build/site-tagline/edit.js.map +1 -1
  93. package/build/site-tagline/index.js +12 -1
  94. package/build/site-tagline/index.js.map +1 -1
  95. package/build/site-title/edit.js +2 -2
  96. package/build/site-title/edit.js.map +1 -1
  97. package/build/site-title/index.js +10 -0
  98. package/build/site-title/index.js.map +1 -1
  99. package/build/social-link/edit.js +0 -1
  100. package/build/social-link/edit.js.map +1 -1
  101. package/build/spacer/controls.js +8 -13
  102. package/build/spacer/controls.js.map +1 -1
  103. package/build/table-of-contents/index.js +14 -1
  104. package/build/table-of-contents/index.js.map +1 -1
  105. package/build/tag-cloud/edit.js +38 -32
  106. package/build/tag-cloud/edit.js.map +1 -1
  107. package/build/tag-cloud/index.js +1 -1
  108. package/build/template-part/edit/index.js +7 -6
  109. package/build/template-part/edit/index.js.map +1 -1
  110. package/build/template-part/edit/inner-blocks.js +6 -4
  111. package/build/template-part/edit/inner-blocks.js.map +1 -1
  112. package/build-module/avatar/edit.js +1 -0
  113. package/build-module/avatar/edit.js.map +1 -1
  114. package/build-module/categories/index.js +12 -0
  115. package/build-module/categories/index.js.map +1 -1
  116. package/build-module/column/edit.js +2 -2
  117. package/build-module/column/edit.js.map +1 -1
  118. package/build-module/column/index.js +2 -0
  119. package/build-module/column/index.js.map +1 -1
  120. package/build-module/comment-template/index.js +12 -0
  121. package/build-module/comment-template/index.js.map +1 -1
  122. package/build-module/comments-title/deprecated.js +3 -0
  123. package/build-module/comments-title/deprecated.js.map +1 -1
  124. package/build-module/comments-title/edit.js +3 -1
  125. package/build-module/comments-title/edit.js.map +1 -1
  126. package/build-module/comments-title/index.js +3 -0
  127. package/build-module/comments-title/index.js.map +1 -1
  128. package/build-module/details/edit.js +1 -0
  129. package/build-module/details/edit.js.map +1 -1
  130. package/build-module/form/edit.js +4 -4
  131. package/build-module/form/edit.js.map +1 -1
  132. package/build-module/form-input/edit.js +1 -0
  133. package/build-module/form-input/edit.js.map +1 -1
  134. package/build-module/gallery/edit.js +43 -9
  135. package/build-module/gallery/edit.js.map +1 -1
  136. package/build-module/gallery/gap-styles.js +1 -9
  137. package/build-module/gallery/gap-styles.js.map +1 -1
  138. package/build-module/gallery/use-image-sizes.js +2 -2
  139. package/build-module/gallery/use-image-sizes.js.map +1 -1
  140. package/build-module/group/index.js +27 -30
  141. package/build-module/group/index.js.map +1 -1
  142. package/build-module/group/variations.js +51 -3
  143. package/build-module/group/variations.js.map +1 -1
  144. package/build-module/heading/edit.js +2 -0
  145. package/build-module/heading/edit.js.map +1 -1
  146. package/build-module/heading/index.js +3 -0
  147. package/build-module/heading/index.js.map +1 -1
  148. package/build-module/image/view.js +1 -1
  149. package/build-module/image/view.js.map +1 -1
  150. package/build-module/latest-posts/edit.js +1 -0
  151. package/build-module/latest-posts/edit.js.map +1 -1
  152. package/build-module/list/index.js +1 -1
  153. package/build-module/list/ordered-list-settings.js +19 -17
  154. package/build-module/list/ordered-list-settings.js.map +1 -1
  155. package/build-module/list-item/index.js +3 -2
  156. package/build-module/list-item/index.js.map +1 -1
  157. package/build-module/loginout/index.js +14 -1
  158. package/build-module/loginout/index.js.map +1 -1
  159. package/build-module/navigation/edit/index.js +5 -4
  160. package/build-module/navigation/edit/index.js.map +1 -1
  161. package/build-module/post-comments-form/index.js +12 -0
  162. package/build-module/post-comments-form/index.js.map +1 -1
  163. package/build-module/post-content/index.js +1 -0
  164. package/build-module/post-content/index.js.map +1 -1
  165. package/build-module/post-date/index.js +12 -0
  166. package/build-module/post-date/index.js.map +1 -1
  167. package/build-module/post-excerpt/index.js +12 -0
  168. package/build-module/post-excerpt/index.js.map +1 -1
  169. package/build-module/post-navigation-link/edit.js +2 -0
  170. package/build-module/post-navigation-link/edit.js.map +1 -1
  171. package/build-module/post-terms/index.js +12 -0
  172. package/build-module/post-terms/index.js.map +1 -1
  173. package/build-module/post-time-to-read/index.js +6 -0
  174. package/build-module/post-time-to-read/index.js.map +1 -1
  175. package/build-module/post-title/edit.js +4 -2
  176. package/build-module/post-title/edit.js.map +1 -1
  177. package/build-module/post-title/index.js +15 -0
  178. package/build-module/post-title/index.js.map +1 -1
  179. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +1 -0
  180. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  181. package/build-module/query/edit/inspector-controls/index.js +71 -11
  182. package/build-module/query/edit/inspector-controls/index.js.map +1 -1
  183. package/build-module/query/edit/inspector-controls/offset-controls.js +29 -0
  184. package/build-module/query/edit/inspector-controls/offset-controls.js.map +1 -0
  185. package/build-module/query/edit/inspector-controls/pages-control.js +28 -0
  186. package/build-module/query/edit/inspector-controls/pages-control.js.map +1 -0
  187. package/build-module/query/edit/inspector-controls/per-page-control.js +33 -0
  188. package/build-module/query/edit/inspector-controls/per-page-control.js.map +1 -0
  189. package/build-module/query/edit/inspector-controls/sticky-control.js +1 -1
  190. package/build-module/query/edit/inspector-controls/sticky-control.js.map +1 -1
  191. package/build-module/query/edit/query-toolbar.js +4 -78
  192. package/build-module/query/edit/query-toolbar.js.map +1 -1
  193. package/build-module/query/utils.js +10 -5
  194. package/build-module/query/utils.js.map +1 -1
  195. package/build-module/query-title/edit.js +2 -0
  196. package/build-module/query-title/edit.js.map +1 -1
  197. package/build-module/query-title/index.js +3 -0
  198. package/build-module/query-title/index.js.map +1 -1
  199. package/build-module/site-logo/edit.js +15 -8
  200. package/build-module/site-logo/edit.js.map +1 -1
  201. package/build-module/site-tagline/edit.js +3 -3
  202. package/build-module/site-tagline/edit.js.map +1 -1
  203. package/build-module/site-tagline/index.js +12 -1
  204. package/build-module/site-tagline/index.js.map +1 -1
  205. package/build-module/site-title/edit.js +2 -2
  206. package/build-module/site-title/edit.js.map +1 -1
  207. package/build-module/site-title/index.js +10 -0
  208. package/build-module/site-title/index.js.map +1 -1
  209. package/build-module/social-link/edit.js +0 -1
  210. package/build-module/social-link/edit.js.map +1 -1
  211. package/build-module/spacer/controls.js +9 -14
  212. package/build-module/spacer/controls.js.map +1 -1
  213. package/build-module/table-of-contents/index.js +14 -1
  214. package/build-module/table-of-contents/index.js.map +1 -1
  215. package/build-module/tag-cloud/edit.js +39 -33
  216. package/build-module/tag-cloud/edit.js.map +1 -1
  217. package/build-module/tag-cloud/index.js +1 -1
  218. package/build-module/template-part/edit/index.js +7 -6
  219. package/build-module/template-part/edit/index.js.map +1 -1
  220. package/build-module/template-part/edit/inner-blocks.js +6 -4
  221. package/build-module/template-part/edit/inner-blocks.js.map +1 -1
  222. package/build-style/archives/editor-rtl.css +3 -0
  223. package/build-style/archives/editor.css +3 -0
  224. package/build-style/archives/style-rtl.css +3 -0
  225. package/build-style/archives/style.css +3 -0
  226. package/build-style/audio/editor-rtl.css +3 -0
  227. package/build-style/audio/editor.css +3 -0
  228. package/build-style/audio/style-rtl.css +3 -0
  229. package/build-style/audio/style.css +3 -0
  230. package/build-style/audio/theme-rtl.css +3 -0
  231. package/build-style/audio/theme.css +3 -0
  232. package/build-style/avatar/editor-rtl.css +3 -0
  233. package/build-style/avatar/editor.css +3 -0
  234. package/build-style/avatar/style-rtl.css +3 -0
  235. package/build-style/avatar/style.css +3 -0
  236. package/build-style/button/editor-rtl.css +3 -0
  237. package/build-style/button/editor.css +3 -0
  238. package/build-style/button/style-rtl.css +3 -0
  239. package/build-style/button/style.css +3 -0
  240. package/build-style/buttons/editor-rtl.css +3 -0
  241. package/build-style/buttons/editor.css +3 -0
  242. package/build-style/buttons/style-rtl.css +3 -0
  243. package/build-style/buttons/style.css +3 -0
  244. package/build-style/calendar/style-rtl.css +3 -0
  245. package/build-style/calendar/style.css +3 -0
  246. package/build-style/categories/editor-rtl.css +3 -0
  247. package/build-style/categories/editor.css +3 -0
  248. package/build-style/categories/style-rtl.css +3 -0
  249. package/build-style/categories/style.css +3 -0
  250. package/build-style/classic-rtl.css +3 -0
  251. package/build-style/classic.css +3 -0
  252. package/build-style/code/editor-rtl.css +3 -0
  253. package/build-style/code/editor.css +3 -0
  254. package/build-style/code/style-rtl.css +3 -0
  255. package/build-style/code/style.css +3 -0
  256. package/build-style/code/theme-rtl.css +3 -0
  257. package/build-style/code/theme.css +3 -0
  258. package/build-style/columns/editor-rtl.css +3 -0
  259. package/build-style/columns/editor.css +3 -0
  260. package/build-style/columns/style-rtl.css +3 -0
  261. package/build-style/columns/style.css +3 -0
  262. package/build-style/comment-author-avatar/editor-rtl.css +3 -0
  263. package/build-style/comment-author-avatar/editor.css +3 -0
  264. package/build-style/comment-content/style-rtl.css +3 -0
  265. package/build-style/comment-content/style.css +3 -0
  266. package/build-style/comment-template/style-rtl.css +3 -0
  267. package/build-style/comment-template/style.css +3 -0
  268. package/build-style/comments/editor-rtl.css +3 -0
  269. package/build-style/comments/editor.css +3 -0
  270. package/build-style/comments/style-rtl.css +3 -0
  271. package/build-style/comments/style.css +3 -0
  272. package/build-style/comments-pagination/editor-rtl.css +3 -0
  273. package/build-style/comments-pagination/editor.css +3 -0
  274. package/build-style/comments-pagination/style-rtl.css +3 -0
  275. package/build-style/comments-pagination/style.css +3 -0
  276. package/build-style/comments-pagination-numbers/editor-rtl.css +3 -0
  277. package/build-style/comments-pagination-numbers/editor.css +3 -0
  278. package/build-style/comments-title/editor-rtl.css +3 -0
  279. package/build-style/comments-title/editor.css +3 -0
  280. package/build-style/common-rtl.css +3 -0
  281. package/build-style/common.css +3 -0
  282. package/build-style/cover/editor-rtl.css +3 -0
  283. package/build-style/cover/editor.css +3 -0
  284. package/build-style/cover/style-rtl.css +3 -0
  285. package/build-style/cover/style.css +3 -0
  286. package/build-style/details/editor-rtl.css +3 -0
  287. package/build-style/details/editor.css +3 -0
  288. package/build-style/details/style-rtl.css +3 -0
  289. package/build-style/details/style.css +3 -0
  290. package/build-style/editor-elements-rtl.css +3 -0
  291. package/build-style/editor-elements.css +3 -0
  292. package/build-style/editor-rtl.css +16 -30
  293. package/build-style/editor.css +16 -30
  294. package/build-style/elements-rtl.css +3 -0
  295. package/build-style/elements.css +3 -0
  296. package/build-style/embed/editor-rtl.css +3 -0
  297. package/build-style/embed/editor.css +3 -0
  298. package/build-style/embed/style-rtl.css +3 -0
  299. package/build-style/embed/style.css +3 -0
  300. package/build-style/embed/theme-rtl.css +3 -0
  301. package/build-style/embed/theme.css +3 -0
  302. package/build-style/file/editor-rtl.css +3 -0
  303. package/build-style/file/editor.css +3 -0
  304. package/build-style/file/style-rtl.css +3 -0
  305. package/build-style/file/style.css +3 -0
  306. package/build-style/footnotes/style-rtl.css +3 -0
  307. package/build-style/footnotes/style.css +3 -0
  308. package/build-style/form-input/editor-rtl.css +3 -0
  309. package/build-style/form-input/editor.css +3 -0
  310. package/build-style/form-input/style-rtl.css +4 -0
  311. package/build-style/form-input/style.css +4 -0
  312. package/build-style/form-submission-notification/editor-rtl.css +3 -0
  313. package/build-style/form-submission-notification/editor.css +3 -0
  314. package/build-style/form-submit-button/style-rtl.css +3 -0
  315. package/build-style/form-submit-button/style.css +3 -0
  316. package/build-style/freeform/editor-rtl.css +3 -0
  317. package/build-style/freeform/editor.css +3 -0
  318. package/build-style/gallery/editor-rtl.css +3 -1
  319. package/build-style/gallery/editor.css +3 -1
  320. package/build-style/gallery/style-rtl.css +3 -0
  321. package/build-style/gallery/style.css +3 -0
  322. package/build-style/gallery/theme-rtl.css +3 -0
  323. package/build-style/gallery/theme.css +3 -0
  324. package/build-style/group/editor-rtl.css +3 -11
  325. package/build-style/group/editor.css +3 -11
  326. package/build-style/group/style-rtl.css +3 -0
  327. package/build-style/group/style.css +3 -0
  328. package/build-style/group/theme-rtl.css +3 -0
  329. package/build-style/group/theme.css +3 -0
  330. package/build-style/heading/style-rtl.css +3 -0
  331. package/build-style/heading/style.css +3 -0
  332. package/build-style/html/editor-rtl.css +3 -0
  333. package/build-style/html/editor.css +3 -0
  334. package/build-style/image/editor-rtl.css +11 -0
  335. package/build-style/image/editor.css +11 -0
  336. package/build-style/image/style-rtl.css +3 -0
  337. package/build-style/image/style.css +3 -0
  338. package/build-style/image/theme-rtl.css +3 -0
  339. package/build-style/image/theme.css +3 -0
  340. package/build-style/latest-comments/style-rtl.css +3 -0
  341. package/build-style/latest-comments/style.css +3 -0
  342. package/build-style/latest-posts/editor-rtl.css +3 -3
  343. package/build-style/latest-posts/editor.css +3 -3
  344. package/build-style/latest-posts/style-rtl.css +3 -0
  345. package/build-style/latest-posts/style.css +3 -0
  346. package/build-style/list/style-rtl.css +3 -0
  347. package/build-style/list/style.css +3 -0
  348. package/build-style/loginout/style-rtl.css +94 -0
  349. package/build-style/loginout/style.css +94 -0
  350. package/build-style/media-text/editor-rtl.css +3 -0
  351. package/build-style/media-text/editor.css +3 -0
  352. package/build-style/media-text/style-rtl.css +3 -0
  353. package/build-style/media-text/style.css +3 -0
  354. package/build-style/more/editor-rtl.css +3 -0
  355. package/build-style/more/editor.css +3 -0
  356. package/build-style/navigation/editor-rtl.css +3 -12
  357. package/build-style/navigation/editor.css +3 -12
  358. package/build-style/navigation/style-rtl.css +3 -0
  359. package/build-style/navigation/style.css +3 -0
  360. package/build-style/navigation-link/editor-rtl.css +3 -0
  361. package/build-style/navigation-link/editor.css +3 -0
  362. package/build-style/navigation-link/style-rtl.css +3 -0
  363. package/build-style/navigation-link/style.css +3 -0
  364. package/build-style/navigation-submenu/editor-rtl.css +3 -0
  365. package/build-style/navigation-submenu/editor.css +3 -0
  366. package/build-style/nextpage/editor-rtl.css +3 -0
  367. package/build-style/nextpage/editor.css +3 -0
  368. package/build-style/page-list/editor-rtl.css +3 -0
  369. package/build-style/page-list/editor.css +3 -0
  370. package/build-style/page-list/style-rtl.css +3 -0
  371. package/build-style/page-list/style.css +3 -0
  372. package/build-style/paragraph/editor-rtl.css +3 -0
  373. package/build-style/paragraph/editor.css +3 -0
  374. package/build-style/paragraph/style-rtl.css +3 -0
  375. package/build-style/paragraph/style.css +3 -0
  376. package/build-style/post-author/style-rtl.css +3 -0
  377. package/build-style/post-author/style.css +3 -0
  378. package/build-style/post-comments-form/editor-rtl.css +3 -0
  379. package/build-style/post-comments-form/editor.css +3 -0
  380. package/build-style/post-comments-form/style-rtl.css +3 -0
  381. package/build-style/post-comments-form/style.css +3 -0
  382. package/build-style/post-content/editor-rtl.css +3 -0
  383. package/build-style/post-content/editor.css +3 -0
  384. package/build-style/post-content/style-rtl.css +96 -0
  385. package/build-style/post-content/style.css +96 -0
  386. package/build-style/post-date/style-rtl.css +3 -0
  387. package/build-style/post-date/style.css +3 -0
  388. package/build-style/post-excerpt/editor-rtl.css +3 -0
  389. package/build-style/post-excerpt/editor.css +3 -0
  390. package/build-style/post-excerpt/style-rtl.css +4 -0
  391. package/build-style/post-excerpt/style.css +4 -0
  392. package/build-style/post-featured-image/editor-rtl.css +3 -0
  393. package/build-style/post-featured-image/editor.css +3 -0
  394. package/build-style/post-featured-image/style-rtl.css +3 -0
  395. package/build-style/post-featured-image/style.css +3 -0
  396. package/build-style/post-navigation-link/style-rtl.css +3 -0
  397. package/build-style/post-navigation-link/style.css +3 -0
  398. package/build-style/post-template/editor-rtl.css +3 -0
  399. package/build-style/post-template/editor.css +3 -0
  400. package/build-style/post-template/style-rtl.css +3 -0
  401. package/build-style/post-template/style.css +3 -0
  402. package/build-style/post-terms/style-rtl.css +3 -0
  403. package/build-style/post-terms/style.css +3 -0
  404. package/build-style/post-time-to-read/style-rtl.css +3 -0
  405. package/build-style/post-time-to-read/style.css +3 -0
  406. package/build-style/post-title/style-rtl.css +3 -0
  407. package/build-style/post-title/style.css +3 -0
  408. package/build-style/preformatted/style-rtl.css +3 -0
  409. package/build-style/preformatted/style.css +3 -0
  410. package/build-style/pullquote/editor-rtl.css +3 -0
  411. package/build-style/pullquote/editor.css +3 -0
  412. package/build-style/pullquote/style-rtl.css +3 -0
  413. package/build-style/pullquote/style.css +3 -0
  414. package/build-style/pullquote/theme-rtl.css +3 -0
  415. package/build-style/pullquote/theme.css +3 -0
  416. package/build-style/query/editor-rtl.css +3 -0
  417. package/build-style/query/editor.css +3 -0
  418. package/build-style/query-pagination/editor-rtl.css +3 -0
  419. package/build-style/query-pagination/editor.css +3 -0
  420. package/build-style/query-pagination/style-rtl.css +3 -0
  421. package/build-style/query-pagination/style.css +3 -0
  422. package/build-style/query-pagination-numbers/editor-rtl.css +3 -0
  423. package/build-style/query-pagination-numbers/editor.css +3 -0
  424. package/build-style/query-title/style-rtl.css +3 -0
  425. package/build-style/query-title/style.css +3 -0
  426. package/build-style/quote/style-rtl.css +3 -0
  427. package/build-style/quote/style.css +3 -0
  428. package/build-style/quote/theme-rtl.css +6 -3
  429. package/build-style/quote/theme.css +6 -3
  430. package/build-style/read-more/style-rtl.css +3 -0
  431. package/build-style/read-more/style.css +3 -0
  432. package/build-style/reset-rtl.css +3 -0
  433. package/build-style/reset.css +3 -0
  434. package/build-style/rss/editor-rtl.css +3 -0
  435. package/build-style/rss/editor.css +3 -0
  436. package/build-style/rss/style-rtl.css +3 -0
  437. package/build-style/rss/style.css +3 -0
  438. package/build-style/search/editor-rtl.css +3 -0
  439. package/build-style/search/editor.css +3 -0
  440. package/build-style/search/style-rtl.css +3 -0
  441. package/build-style/search/style.css +3 -0
  442. package/build-style/search/theme-rtl.css +3 -0
  443. package/build-style/search/theme.css +3 -0
  444. package/build-style/separator/editor-rtl.css +3 -0
  445. package/build-style/separator/editor.css +3 -0
  446. package/build-style/separator/style-rtl.css +3 -0
  447. package/build-style/separator/style.css +3 -0
  448. package/build-style/separator/theme-rtl.css +3 -0
  449. package/build-style/separator/theme.css +3 -0
  450. package/build-style/shortcode/editor-rtl.css +3 -0
  451. package/build-style/shortcode/editor.css +3 -0
  452. package/build-style/site-logo/editor-rtl.css +3 -0
  453. package/build-style/site-logo/editor.css +3 -0
  454. package/build-style/site-logo/style-rtl.css +3 -0
  455. package/build-style/site-logo/style.css +3 -0
  456. package/build-style/site-tagline/editor-rtl.css +3 -0
  457. package/build-style/site-tagline/editor.css +3 -0
  458. package/build-style/site-tagline/style-rtl.css +94 -0
  459. package/build-style/site-tagline/style.css +94 -0
  460. package/build-style/site-title/editor-rtl.css +3 -0
  461. package/build-style/site-title/editor.css +3 -0
  462. package/build-style/site-title/style-rtl.css +7 -1
  463. package/build-style/site-title/style.css +7 -1
  464. package/build-style/social-link/editor-rtl.css +3 -0
  465. package/build-style/social-link/editor.css +3 -0
  466. package/build-style/social-links/editor-rtl.css +3 -0
  467. package/build-style/social-links/editor.css +3 -0
  468. package/build-style/social-links/style-rtl.css +3 -0
  469. package/build-style/social-links/style.css +3 -0
  470. package/build-style/spacer/editor-rtl.css +3 -0
  471. package/build-style/spacer/editor.css +3 -0
  472. package/build-style/spacer/style-rtl.css +3 -0
  473. package/build-style/spacer/style.css +3 -0
  474. package/build-style/style-rtl.css +27 -1
  475. package/build-style/style.css +27 -1
  476. package/build-style/table/editor-rtl.css +3 -0
  477. package/build-style/table/editor.css +3 -0
  478. package/build-style/table/style-rtl.css +3 -0
  479. package/build-style/table/style.css +3 -0
  480. package/build-style/table/theme-rtl.css +3 -0
  481. package/build-style/table/theme.css +3 -0
  482. package/build-style/table-of-contents/style-rtl.css +94 -0
  483. package/build-style/table-of-contents/style.css +94 -0
  484. package/build-style/tag-cloud/editor-rtl.css +95 -0
  485. package/build-style/tag-cloud/editor.css +95 -0
  486. package/build-style/tag-cloud/style-rtl.css +3 -0
  487. package/build-style/tag-cloud/style.css +3 -0
  488. package/build-style/template-part/editor-rtl.css +3 -0
  489. package/build-style/template-part/editor.css +3 -0
  490. package/build-style/template-part/theme-rtl.css +3 -0
  491. package/build-style/template-part/theme.css +3 -0
  492. package/build-style/term-description/style-rtl.css +3 -0
  493. package/build-style/term-description/style.css +3 -0
  494. package/build-style/text-columns/editor-rtl.css +3 -0
  495. package/build-style/text-columns/editor.css +3 -0
  496. package/build-style/text-columns/style-rtl.css +3 -0
  497. package/build-style/text-columns/style.css +3 -0
  498. package/build-style/theme-rtl.css +6 -3
  499. package/build-style/theme.css +6 -3
  500. package/build-style/verse/style-rtl.css +3 -0
  501. package/build-style/verse/style.css +3 -0
  502. package/build-style/video/editor-rtl.css +3 -3
  503. package/build-style/video/editor.css +3 -3
  504. package/build-style/video/style-rtl.css +3 -0
  505. package/build-style/video/style.css +3 -0
  506. package/build-style/video/theme-rtl.css +3 -0
  507. package/build-style/video/theme.css +3 -0
  508. package/package.json +35 -35
  509. package/src/avatar/edit.js +1 -0
  510. package/src/button/index.php +1 -14
  511. package/src/categories/block.json +12 -0
  512. package/src/column/block.json +2 -0
  513. package/src/column/edit.js +2 -2
  514. package/src/comment-template/block.json +12 -0
  515. package/src/comments-title/block.json +3 -0
  516. package/src/comments-title/edit.js +8 -1
  517. package/src/details/edit.js +1 -0
  518. package/src/editor.scss +1 -0
  519. package/src/form/edit.js +3 -2
  520. package/src/form-input/edit.js +1 -0
  521. package/src/form-input/style.scss +1 -0
  522. package/src/gallery/edit.js +75 -13
  523. package/src/gallery/editor.scss +0 -1
  524. package/src/gallery/gap-styles.js +1 -8
  525. package/src/gallery/test/__snapshots__/index.native.js.snap +1 -1
  526. package/src/gallery/test/index.native.js +5 -5
  527. package/src/gallery/use-image-sizes.js +2 -2
  528. package/src/group/editor.scss +1 -1
  529. package/src/group/index.js +26 -29
  530. package/src/group/variations.js +56 -0
  531. package/src/heading/block.json +3 -0
  532. package/src/heading/edit.js +3 -1
  533. package/src/image/editor.scss +12 -0
  534. package/src/image/view.js +1 -1
  535. package/src/latest-posts/edit.js +1 -0
  536. package/src/latest-posts/editor.scss +0 -4
  537. package/src/list/block.json +1 -1
  538. package/src/list/ordered-list-settings.js +20 -18
  539. package/src/list/test/edit.native.js +1 -3
  540. package/src/list-item/block.json +3 -2
  541. package/src/loginout/block.json +14 -1
  542. package/src/loginout/style.scss +4 -0
  543. package/src/media-text/style.native.scss +2 -0
  544. package/src/navigation/edit/index.js +5 -5
  545. package/src/navigation/editor.scss +0 -1
  546. package/src/post-comments-form/block.json +12 -0
  547. package/src/post-content/block.json +1 -0
  548. package/src/post-content/style.scss +5 -0
  549. package/src/post-date/block.json +12 -0
  550. package/src/post-excerpt/block.json +12 -0
  551. package/src/post-excerpt/style.scss +3 -0
  552. package/src/post-navigation-link/edit.js +2 -0
  553. package/src/post-terms/block.json +12 -0
  554. package/src/post-time-to-read/block.json +6 -0
  555. package/src/post-title/block.json +15 -0
  556. package/src/post-title/edit.js +4 -3
  557. package/src/query/edit/inspector-controls/enhanced-pagination-control.js +1 -0
  558. package/src/query/edit/inspector-controls/index.js +85 -12
  559. package/src/query/edit/inspector-controls/offset-controls.js +31 -0
  560. package/src/query/edit/inspector-controls/pages-control.js +27 -0
  561. package/src/query/edit/inspector-controls/per-page-control.js +33 -0
  562. package/src/query/edit/inspector-controls/sticky-control.js +1 -1
  563. package/src/query/edit/query-toolbar.js +1 -90
  564. package/src/query/utils.js +9 -5
  565. package/src/query-title/block.json +3 -0
  566. package/src/query-title/edit.js +9 -1
  567. package/src/quote/theme.scss +5 -3
  568. package/src/site-logo/edit.js +23 -9
  569. package/src/site-tagline/block.json +12 -1
  570. package/src/site-tagline/edit.js +2 -4
  571. package/src/site-tagline/style.scss +4 -0
  572. package/src/site-title/block.json +10 -0
  573. package/src/site-title/edit.js +2 -4
  574. package/src/site-title/style.scss +7 -2
  575. package/src/social-link/edit.js +0 -1
  576. package/src/spacer/controls.js +10 -13
  577. package/src/style.scss +4 -0
  578. package/src/table-of-contents/block.json +14 -1
  579. package/src/table-of-contents/style.scss +4 -0
  580. package/src/tag-cloud/block.json +1 -1
  581. package/src/tag-cloud/edit.js +46 -34
  582. package/src/tag-cloud/editor.scss +9 -0
  583. package/src/template-part/edit/index.js +10 -7
  584. package/src/template-part/edit/inner-blocks.js +6 -4
  585. package/src/video/editor.scss +0 -4
@@ -23,6 +23,9 @@
23
23
  "level": {
24
24
  "type": "number",
25
25
  "default": 2
26
+ },
27
+ "levelOptions": {
28
+ "type": "array"
26
29
  }
27
30
  },
28
31
  "supports": {
@@ -23,7 +23,13 @@ import apiFetch from '@wordpress/api-fetch';
23
23
  import { addQueryArgs } from '@wordpress/url';
24
24
 
25
25
  export default function Edit( {
26
- attributes: { textAlign, showPostTitle, showCommentsCount, level },
26
+ attributes: {
27
+ textAlign,
28
+ showPostTitle,
29
+ showCommentsCount,
30
+ level,
31
+ levelOptions,
32
+ },
27
33
  setAttributes,
28
34
  context: { postType, postId },
29
35
  } ) {
@@ -95,6 +101,7 @@ export default function Edit( {
95
101
  />
96
102
  <HeadingLevelDropdown
97
103
  value={ level }
104
+ options={ levelOptions }
98
105
  onChange={ ( newLevel ) =>
99
106
  setAttributes( { level: newLevel } )
100
107
  }
@@ -48,6 +48,7 @@ function DetailsEdit( { attributes, setAttributes, clientId } ) {
48
48
  <InspectorControls>
49
49
  <PanelBody title={ __( 'Settings' ) }>
50
50
  <ToggleControl
51
+ __nextHasNoMarginBottom
51
52
  label={ __( 'Open by default' ) }
52
53
  checked={ showContent }
53
54
  onChange={ () =>
package/src/editor.scss CHANGED
@@ -44,6 +44,7 @@
44
44
  @import "./social-links/editor.scss";
45
45
  @import "./spacer/editor.scss";
46
46
  @import "./table/editor.scss";
47
+ @import "./tag-cloud/editor.scss";
47
48
  @import "./template-part/editor.scss";
48
49
  @import "./text-columns/editor.scss";
49
50
  @import "./video/editor.scss";
package/src/form/edit.js CHANGED
@@ -77,8 +77,8 @@ const Edit = ( { attributes, setAttributes, clientId } ) => {
77
77
  <InspectorControls>
78
78
  <PanelBody title={ __( 'Settings' ) }>
79
79
  <SelectControl
80
- // __nextHasNoMarginBottom
81
- // size={ '__unstable-large' }
80
+ __nextHasNoMarginBottom
81
+ __next40pxDefaultSize
82
82
  label={ __( 'Submissions method' ) }
83
83
  options={ [
84
84
  // TODO: Allow plugins to add their own submission methods.
@@ -108,6 +108,7 @@ const Edit = ( { attributes, setAttributes, clientId } ) => {
108
108
  { submissionMethod === 'email' && (
109
109
  <TextControl
110
110
  __nextHasNoMarginBottom
111
+ __next40pxDefaultSize
111
112
  autoComplete="off"
112
113
  label={ __( 'Email for form submissions' ) }
113
114
  value={ email }
@@ -63,6 +63,7 @@ function InputFieldBlock( { attributes, setAttributes, className } ) {
63
63
  ) }
64
64
  <InspectorControls group="advanced">
65
65
  <TextControl
66
+ __nextHasNoMarginBottom
66
67
  autoComplete="off"
67
68
  label={ __( 'Name' ) }
68
69
  value={ name }
@@ -24,6 +24,7 @@
24
24
  */
25
25
  &:has(input[type="checkbox"]) {
26
26
  width: fit-content;
27
+ /* stylelint-disable-next-line declaration-property-value-allowed-list -- This should be refactored to not use the row-reverse value. */
27
28
  flex-direction: row-reverse;
28
29
  }
29
30
  }
@@ -14,6 +14,9 @@ import {
14
14
  ToggleControl,
15
15
  RangeControl,
16
16
  Spinner,
17
+ MenuGroup,
18
+ MenuItem,
19
+ ToolbarDropdownMenu,
17
20
  withNotices,
18
21
  } from '@wordpress/components';
19
22
  import {
@@ -33,6 +36,12 @@ import { View } from '@wordpress/primitives';
33
36
  import { createBlock } from '@wordpress/blocks';
34
37
  import { createBlobURL } from '@wordpress/blob';
35
38
  import { store as noticesStore } from '@wordpress/notices';
39
+ import {
40
+ link as linkIcon,
41
+ customLink,
42
+ image as imageIcon,
43
+ linkOff,
44
+ } from '@wordpress/icons';
36
45
 
37
46
  /**
38
47
  * Internal dependencies
@@ -57,11 +66,23 @@ import GapStyles from './gap-styles';
57
66
 
58
67
  const MAX_COLUMNS = 8;
59
68
  const linkOptions = [
60
- { value: LINK_DESTINATION_ATTACHMENT, label: __( 'Attachment Page' ) },
61
- { value: LINK_DESTINATION_MEDIA, label: __( 'Media File' ) },
62
69
  {
63
- value: LINK_DESTINATION_NONE,
70
+ icon: customLink,
71
+ label: __( 'Link images to attachment pages' ),
72
+ value: LINK_DESTINATION_ATTACHMENT,
73
+ noticeText: __( 'Attachment Pages' ),
74
+ },
75
+ {
76
+ icon: imageIcon,
77
+ label: __( 'Link images to media files' ),
78
+ value: LINK_DESTINATION_MEDIA,
79
+ noticeText: __( 'Media Files' ),
80
+ },
81
+ {
82
+ icon: linkOff,
64
83
  label: _x( 'None', 'Media item link option' ),
84
+ value: LINK_DESTINATION_NONE,
85
+ noticeText: __( 'None' ),
65
86
  },
66
87
  ];
67
88
  const ALLOWED_MEDIA_TYPES = [ 'image' ];
@@ -359,7 +380,7 @@ function GalleryEdit( props ) {
359
380
  sprintf(
360
381
  /* translators: %s: image size settings */
361
382
  __( 'All gallery image links updated to: %s' ),
362
- linkToText.label
383
+ linkToText.noticeText
363
384
  ),
364
385
  {
365
386
  id: 'gallery-attributes-linkTo',
@@ -552,15 +573,17 @@ function GalleryEdit( props ) {
552
573
  size="__unstable-large"
553
574
  />
554
575
  ) }
555
- <SelectControl
556
- __nextHasNoMarginBottom
557
- label={ __( 'Link to' ) }
558
- value={ linkTo }
559
- onChange={ setLinkTo }
560
- options={ linkOptions }
561
- hideCancelButton
562
- size="__unstable-large"
563
- />
576
+ { Platform.isNative ? (
577
+ <SelectControl
578
+ __nextHasNoMarginBottom
579
+ label={ __( 'Link' ) }
580
+ value={ linkTo }
581
+ onChange={ setLinkTo }
582
+ options={ linkOptions }
583
+ hideCancelButton
584
+ size="__unstable-large"
585
+ />
586
+ ) : null }
564
587
  <ToggleControl
565
588
  __nextHasNoMarginBottom
566
589
  label={ __( 'Crop images to fit' ) }
@@ -594,6 +617,45 @@ function GalleryEdit( props ) {
594
617
  ) }
595
618
  </PanelBody>
596
619
  </InspectorControls>
620
+ { Platform.isWeb ? (
621
+ <BlockControls group="block">
622
+ <ToolbarDropdownMenu
623
+ icon={ linkIcon }
624
+ label={ __( 'Link' ) }
625
+ >
626
+ { ( { onClose } ) => (
627
+ <MenuGroup>
628
+ { linkOptions.map( ( linkItem ) => {
629
+ const isOptionSelected =
630
+ linkTo === linkItem.value;
631
+ return (
632
+ <MenuItem
633
+ key={ linkItem.value }
634
+ isSelected={ isOptionSelected }
635
+ className={ clsx(
636
+ 'components-dropdown-menu__menu-item',
637
+ {
638
+ 'is-active':
639
+ isOptionSelected,
640
+ }
641
+ ) }
642
+ iconPosition="left"
643
+ icon={ linkItem.icon }
644
+ onClick={ () => {
645
+ setLinkTo( linkItem.value );
646
+ onClose();
647
+ } }
648
+ role="menuitemradio"
649
+ >
650
+ { linkItem.label }
651
+ </MenuItem>
652
+ );
653
+ } ) }
654
+ </MenuGroup>
655
+ ) }
656
+ </ToolbarDropdownMenu>
657
+ </BlockControls>
658
+ ) : null }
597
659
  { Platform.isWeb && (
598
660
  <>
599
661
  { ! multiGallerySelection && (
@@ -70,7 +70,6 @@
70
70
 
71
71
  .gallery-image-sizes {
72
72
  .components-base-control__label {
73
- display: block;
74
73
  margin-bottom: 4px;
75
74
  }
76
75
 
@@ -3,16 +3,9 @@
3
3
  */
4
4
  import {
5
5
  __experimentalGetGapCSSValue as getGapCSSValue,
6
- privateApis as blockEditorPrivateApis,
6
+ useStyleOverride,
7
7
  } from '@wordpress/block-editor';
8
8
 
9
- /**
10
- * Internal dependencies
11
- */
12
- import { unlock } from '../lock-unlock';
13
-
14
- const { useStyleOverride } = unlock( blockEditorPrivateApis );
15
-
16
9
  export default function GapStyles( { blockGap, clientId } ) {
17
10
  // --gallery-block--gutter-size is deprecated. --wp--style--gallery-gap-default should be used by themes that want to set a default
18
11
  // gap on the gallery.
@@ -82,7 +82,7 @@ exports[`Gallery block inserts block 1`] = `
82
82
  <!-- /wp:gallery -->"
83
83
  `;
84
84
 
85
- exports[`Gallery block overrides "Link to" setting of gallery items 1`] = `
85
+ exports[`Gallery block overrides "Link" setting of gallery items 1`] = `
86
86
  "<!-- wp:gallery {"linkTo":"media"} -->
87
87
  <figure class="wp-block-gallery has-nested-images columns-default is-cropped"><!-- wp:image {"id":1,"linkDestination":"media"} -->
88
88
  <figure class="wp-block-image"><img src="file:///local-image-1.jpeg" alt="" class="wp-image-1"/></figure>
@@ -594,9 +594,9 @@ describe( 'Gallery block', () => {
594
594
  expect( getEditorHtml() ).toMatchSnapshot();
595
595
  } );
596
596
 
597
- // Test case related to TC012 - Settings - Link to
597
+ // Test case related to TC012 - Settings - Link
598
598
  // Reference: https://github.com/wordpress-mobile/test-cases/blob/trunk/test-cases/gutenberg/gallery.md#tc012
599
- it( 'overrides "Link to" setting of gallery items', async () => {
599
+ it( 'overrides "Link" setting of gallery items', async () => {
600
600
  // Initialize with a gallery that contains two items, the latter includes "linkDestination" attribute
601
601
  const screen = await initializeWithGalleryBlock( {
602
602
  html: `<!-- wp:gallery {"linkTo":"none"} -->
@@ -612,10 +612,10 @@ describe( 'Gallery block', () => {
612
612
  } );
613
613
  const { getByText } = screen;
614
614
 
615
- // Set "Link to" setting via Gallery block settings
615
+ // Set "Link" setting via Gallery block settings
616
616
  await openBlockSettings( screen );
617
- fireEvent.press( getByText( 'Link to' ) );
618
- fireEvent.press( getByText( 'Media File' ) );
617
+ fireEvent.press( getByText( 'Link' ) );
618
+ fireEvent.press( getByText( 'Link images to media files' ) );
619
619
 
620
620
  expect( getEditorHtml() ).toMatchSnapshot();
621
621
  } );
@@ -4,10 +4,10 @@
4
4
  import { useMemo } from '@wordpress/element';
5
5
 
6
6
  /**
7
- * Calculates the image sizes that are avaible for the current gallery images in order to
7
+ * Calculates the image sizes that are available for the current gallery images in order to
8
8
  * populate the 'Resolution' selector.
9
9
  *
10
- * @param {Array} images Basic image block data taken from current gallery innerBlock
10
+ * @param {Array} images Basic image block data taken from current gallery innerBlock.
11
11
  * @param {boolean} isSelected Is the block currently selected in the editor.
12
12
  * @param {Function} getSettings Block editor store selector.
13
13
  *
@@ -43,7 +43,7 @@
43
43
  pointer-events: none;
44
44
  min-height: $grid-unit-60 - $border-width - $border-width;
45
45
  border: $border-width dashed currentColor;
46
- @include placeholder-style();
46
+ border-radius: $radius-block-ui;
47
47
  }
48
48
 
49
49
  // Let the parent be selectable in the placeholder area.
@@ -22,56 +22,53 @@ export { metadata, name };
22
22
  export const settings = {
23
23
  icon,
24
24
  example: {
25
- innerBlocks: [
26
- {
27
- name: 'core/paragraph',
28
- attributes: {
29
- customTextColor: '#cf2e2e',
30
- fontSize: 'large',
31
- content: __( 'One.' ),
32
- },
25
+ attributes: {
26
+ layout: {
27
+ type: 'constrained',
28
+ justifyContent: 'center',
33
29
  },
34
- {
35
- name: 'core/paragraph',
36
- attributes: {
37
- customTextColor: '#ff6900',
38
- fontSize: 'large',
39
- content: __( 'Two.' ),
30
+ style: {
31
+ spacing: {
32
+ padding: {
33
+ top: '4em',
34
+ right: '3em',
35
+ bottom: '4em',
36
+ left: '3em',
37
+ },
40
38
  },
41
39
  },
40
+ },
41
+ innerBlocks: [
42
42
  {
43
- name: 'core/paragraph',
43
+ name: 'core/heading',
44
44
  attributes: {
45
- customTextColor: '#fcb900',
46
- fontSize: 'large',
47
- content: __( 'Three.' ),
45
+ content: __( 'La Mancha' ),
46
+ textAlign: 'center',
48
47
  },
49
48
  },
50
49
  {
51
50
  name: 'core/paragraph',
52
51
  attributes: {
53
- customTextColor: '#00d084',
54
- fontSize: 'large',
55
- content: __( 'Four.' ),
52
+ align: 'center',
53
+ content: __(
54
+ 'In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.'
55
+ ),
56
56
  },
57
57
  },
58
58
  {
59
- name: 'core/paragraph',
59
+ name: 'core/spacer',
60
60
  attributes: {
61
- customTextColor: '#0693e3',
62
- fontSize: 'large',
63
- content: __( 'Five.' ),
61
+ height: '10px',
64
62
  },
65
63
  },
66
64
  {
67
- name: 'core/paragraph',
65
+ name: 'core/button',
68
66
  attributes: {
69
- customTextColor: '#9b51e0',
70
- fontSize: 'large',
71
- content: __( 'Six.' ),
67
+ text: __( 'Read more' ),
72
68
  },
73
69
  },
74
70
  ],
71
+ viewportWidth: 600,
75
72
  },
76
73
  transforms,
77
74
  edit,
@@ -4,6 +4,59 @@
4
4
  import { __, _x } from '@wordpress/i18n';
5
5
  import { group, row, stack, grid } from '@wordpress/icons';
6
6
 
7
+ const example = {
8
+ innerBlocks: [
9
+ {
10
+ name: 'core/paragraph',
11
+ attributes: {
12
+ customTextColor: '#cf2e2e',
13
+ fontSize: 'large',
14
+ content: __( 'One.' ),
15
+ },
16
+ },
17
+ {
18
+ name: 'core/paragraph',
19
+ attributes: {
20
+ customTextColor: '#ff6900',
21
+ fontSize: 'large',
22
+ content: __( 'Two.' ),
23
+ },
24
+ },
25
+ {
26
+ name: 'core/paragraph',
27
+ attributes: {
28
+ customTextColor: '#fcb900',
29
+ fontSize: 'large',
30
+ content: __( 'Three.' ),
31
+ },
32
+ },
33
+ {
34
+ name: 'core/paragraph',
35
+ attributes: {
36
+ customTextColor: '#00d084',
37
+ fontSize: 'large',
38
+ content: __( 'Four.' ),
39
+ },
40
+ },
41
+ {
42
+ name: 'core/paragraph',
43
+ attributes: {
44
+ customTextColor: '#0693e3',
45
+ fontSize: 'large',
46
+ content: __( 'Five.' ),
47
+ },
48
+ },
49
+ {
50
+ name: 'core/paragraph',
51
+ attributes: {
52
+ customTextColor: '#9b51e0',
53
+ fontSize: 'large',
54
+ content: __( 'Six.' ),
55
+ },
56
+ },
57
+ ],
58
+ };
59
+
7
60
  const variations = [
8
61
  {
9
62
  name: 'group',
@@ -30,6 +83,7 @@ const variations = [
30
83
  ( ! blockAttributes.layout?.orientation ||
31
84
  blockAttributes.layout?.orientation === 'horizontal' ),
32
85
  icon: row,
86
+ example,
33
87
  },
34
88
  {
35
89
  name: 'group-stack',
@@ -41,6 +95,7 @@ const variations = [
41
95
  blockAttributes.layout?.type === 'flex' &&
42
96
  blockAttributes.layout?.orientation === 'vertical',
43
97
  icon: stack,
98
+ example,
44
99
  },
45
100
  {
46
101
  name: 'group-grid',
@@ -51,6 +106,7 @@ const variations = [
51
106
  isActive: ( blockAttributes ) =>
52
107
  blockAttributes.layout?.type === 'grid',
53
108
  icon: grid,
109
+ example,
54
110
  },
55
111
  ];
56
112
 
@@ -21,6 +21,9 @@
21
21
  "type": "number",
22
22
  "default": 2
23
23
  },
24
+ "levelOptions": {
25
+ "type": "array"
26
+ },
24
27
  "placeholder": {
25
28
  "type": "string"
26
29
  }
@@ -32,7 +32,8 @@ function HeadingEdit( {
32
32
  style,
33
33
  clientId,
34
34
  } ) {
35
- const { textAlign, content, level, placeholder, anchor } = attributes;
35
+ const { textAlign, content, level, levelOptions, placeholder, anchor } =
36
+ attributes;
36
37
  const tagName = 'h' + level;
37
38
  const blockProps = useBlockProps( {
38
39
  className: clsx( {
@@ -95,6 +96,7 @@ function HeadingEdit( {
95
96
  <BlockControls group="block">
96
97
  <HeadingLevelDropdown
97
98
  value={ level }
99
+ options={ levelOptions }
98
100
  onChange={ ( newLevel ) =>
99
101
  setAttributes( { level: newLevel } )
100
102
  }
@@ -67,12 +67,24 @@ figure.wp-block-image:not(.wp-block) {
67
67
  top: 50%;
68
68
  left: 50%;
69
69
  transform: translate(-50%, -50%);
70
+ margin: 0;
70
71
  }
71
72
  }
72
73
 
73
74
  // Shown while image is being uploded but cannot be previewed.
74
75
  .wp-block-image__placeholder {
75
76
  aspect-ratio: 4 / 3;
77
+
78
+ // Make placeholder background white so that you can see the spinner on top of it.
79
+ &.has-illustration::before {
80
+ background: $white;
81
+ opacity: 0.8;
82
+ }
83
+
84
+ // Reduce opacity of diagonal stroke so that it doesn't obscure the spinner.
85
+ .components-placeholder__illustration {
86
+ opacity: 0.1;
87
+ }
76
88
  }
77
89
 
78
90
  // This is necessary for the editor resize handles to accurately work on a non-floated, non-resized, small image.
package/src/image/view.js CHANGED
@@ -188,7 +188,7 @@ const { state, actions, callbacks } = store(
188
188
  },
189
189
  callbacks: {
190
190
  setOverlayStyles() {
191
- if ( ! state.currentImage.imageRef ) {
191
+ if ( ! state.overlayEnabled ) {
192
192
  return;
193
193
  }
194
194
 
@@ -202,6 +202,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
202
202
  <InspectorControls>
203
203
  <PanelBody title={ __( 'Post content' ) }>
204
204
  <ToggleControl
205
+ __nextHasNoMarginBottom
205
206
  label={ __( 'Post content' ) }
206
207
  checked={ displayPostContent }
207
208
  onChange={ ( value ) =>
@@ -10,10 +10,6 @@
10
10
  }
11
11
 
12
12
  .editor-latest-posts-image-alignment-control {
13
- .components-base-control__label {
14
- display: block;
15
- }
16
-
17
13
  .components-toolbar {
18
14
  border-radius: $radius-block-ui;
19
15
  }
@@ -5,7 +5,7 @@
5
5
  "title": "List",
6
6
  "category": "text",
7
7
  "allowedBlocks": [ "core/list-item" ],
8
- "description": "Create a bulleted or numbered list.",
8
+ "description": "An organized collection of items displayed in a specific order.",
9
9
  "keywords": [ "bullet list", "ordered list", "numbered list" ],
10
10
  "textdomain": "default",
11
11
  "attributes": {
@@ -13,25 +13,10 @@ import {
13
13
  const OrderedListSettings = ( { setAttributes, reversed, start, type } ) => (
14
14
  <InspectorControls>
15
15
  <PanelBody title={ __( 'Settings' ) }>
16
- <TextControl
17
- __nextHasNoMarginBottom
18
- label={ __( 'Start value' ) }
19
- type="number"
20
- onChange={ ( value ) => {
21
- const int = parseInt( value, 10 );
22
-
23
- setAttributes( {
24
- // It should be possible to unset the value,
25
- // e.g. with an empty string.
26
- start: isNaN( int ) ? undefined : int,
27
- } );
28
- } }
29
- value={ Number.isInteger( start ) ? start.toString( 10 ) : '' }
30
- step="1"
31
- />
32
16
  <SelectControl
17
+ __next40pxDefaultSize
33
18
  __nextHasNoMarginBottom
34
- label={ __( 'Numbering style' ) }
19
+ label={ __( 'List style' ) }
35
20
  options={ [
36
21
  {
37
22
  label: __( 'Numbers' ),
@@ -57,9 +42,26 @@ const OrderedListSettings = ( { setAttributes, reversed, start, type } ) => (
57
42
  value={ type }
58
43
  onChange={ ( newValue ) => setAttributes( { type: newValue } ) }
59
44
  />
45
+ <TextControl
46
+ __next40pxDefaultSize
47
+ __nextHasNoMarginBottom
48
+ label={ __( 'Start value' ) }
49
+ type="number"
50
+ onChange={ ( value ) => {
51
+ const int = parseInt( value, 10 );
52
+
53
+ setAttributes( {
54
+ // It should be possible to unset the value,
55
+ // e.g. with an empty string.
56
+ start: isNaN( int ) ? undefined : int,
57
+ } );
58
+ } }
59
+ value={ Number.isInteger( start ) ? start.toString( 10 ) : '' }
60
+ step="1"
61
+ />
60
62
  <ToggleControl
61
63
  __nextHasNoMarginBottom
62
- label={ __( 'Reverse list numbering' ) }
64
+ label={ __( 'Reverse order' ) }
63
65
  checked={ reversed || false }
64
66
  onChange={ ( value ) => {
65
67
  setAttributes( {
@@ -289,9 +289,7 @@ describe( 'List block', () => {
289
289
  () => screen.getByTestId( 'block-settings-modal' ).props.isVisible
290
290
  );
291
291
 
292
- const reverseButton = screen.getByLabelText(
293
- /Reverse list numbering\. Off/
294
- );
292
+ const reverseButton = screen.getByLabelText( /Reverse order\. Off/ );
295
293
  fireEvent.press( reverseButton );
296
294
 
297
295
  expect( getEditorHtml() ).toMatchSnapshot();
@@ -6,7 +6,7 @@
6
6
  "category": "text",
7
7
  "parent": [ "core/list" ],
8
8
  "allowedBlocks": [ "core/list" ],
9
- "description": "Create a list item.",
9
+ "description": "An individual item within a list.",
10
10
  "textdomain": "default",
11
11
  "attributes": {
12
12
  "placeholder": {
@@ -20,13 +20,14 @@
20
20
  }
21
21
  },
22
22
  "supports": {
23
+ "anchor": true,
23
24
  "className": false,
24
25
  "splitting": true,
25
26
  "color": {
26
27
  "gradients": true,
27
28
  "link": true,
29
+ "background": true,
28
30
  "__experimentalDefaultControls": {
29
- "background": true,
30
31
  "text": true
31
32
  }
32
33
  },