@wordpress/block-library 6.0.25 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1031) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +1 -1
  3. package/build/archives/index.js +1 -0
  4. package/build/archives/index.js.map +1 -1
  5. package/build/audio/edit.js +19 -4
  6. package/build/audio/edit.js.map +1 -1
  7. package/build/audio/index.js +1 -0
  8. package/build/audio/index.js.map +1 -1
  9. package/build/block/index.js +1 -0
  10. package/build/block/index.js.map +1 -1
  11. package/build/button/edit.native.js +1 -1
  12. package/build/button/edit.native.js.map +1 -1
  13. package/build/button/index.js +5 -1
  14. package/build/button/index.js.map +1 -1
  15. package/build/buttons/edit.js +6 -0
  16. package/build/buttons/edit.js.map +1 -1
  17. package/build/buttons/edit.native.js +16 -6
  18. package/build/buttons/edit.native.js.map +1 -1
  19. package/build/buttons/index.js +1 -0
  20. package/build/buttons/index.js.map +1 -1
  21. package/build/buttons/transforms.js +1 -0
  22. package/build/buttons/transforms.js.map +1 -1
  23. package/build/calendar/index.js +1 -0
  24. package/build/calendar/index.js.map +1 -1
  25. package/build/categories/index.js +1 -0
  26. package/build/categories/index.js.map +1 -1
  27. package/build/code/index.js +6 -1
  28. package/build/code/index.js.map +1 -1
  29. package/build/column/index.js +1 -0
  30. package/build/column/index.js.map +1 -1
  31. package/build/columns/index.js +11 -0
  32. package/build/columns/index.js.map +1 -1
  33. package/build/comment-author-avatar/edit.js +5 -2
  34. package/build/comment-author-avatar/edit.js.map +1 -1
  35. package/build/comment-author-avatar/index.js +7 -2
  36. package/build/comment-author-avatar/index.js.map +1 -1
  37. package/build/comment-author-name/index.js +1 -0
  38. package/build/comment-author-name/index.js.map +1 -1
  39. package/build/comment-content/index.js +1 -0
  40. package/build/comment-content/index.js.map +1 -1
  41. package/build/comment-date/index.js +1 -0
  42. package/build/comment-date/index.js.map +1 -1
  43. package/build/comment-edit-link/index.js +2 -1
  44. package/build/comment-edit-link/index.js.map +1 -1
  45. package/build/comment-reply-link/index.js +1 -0
  46. package/build/comment-reply-link/index.js.map +1 -1
  47. package/build/comment-template/edit.js +117 -26
  48. package/build/comment-template/edit.js.map +1 -1
  49. package/build/comment-template/index.js +4 -2
  50. package/build/comment-template/index.js.map +1 -1
  51. package/build/comment-template/util.js +68 -0
  52. package/build/comment-template/util.js.map +1 -0
  53. package/build/comments-pagination/comments-pagination-arrow-controls.js +39 -0
  54. package/build/comments-pagination/comments-pagination-arrow-controls.js.map +1 -0
  55. package/build/comments-pagination/edit.js +79 -0
  56. package/build/comments-pagination/edit.js.map +1 -0
  57. package/build/comments-pagination/index.js +71 -0
  58. package/build/comments-pagination/index.js.map +1 -0
  59. package/build/comments-pagination/save.js +18 -0
  60. package/build/comments-pagination/save.js.map +1 -0
  61. package/build/comments-pagination-next/edit.js +54 -0
  62. package/build/comments-pagination-next/edit.js.map +1 -0
  63. package/build/comments-pagination-next/index.js +66 -0
  64. package/build/comments-pagination-next/index.js.map +1 -0
  65. package/build/comments-pagination-numbers/edit.js +47 -0
  66. package/build/comments-pagination-numbers/edit.js.map +1 -0
  67. package/build/comments-pagination-numbers/index.js +46 -0
  68. package/build/comments-pagination-numbers/index.js.map +1 -0
  69. package/build/comments-pagination-previous/edit.js +54 -0
  70. package/build/comments-pagination-previous/edit.js.map +1 -0
  71. package/build/comments-pagination-previous/index.js +66 -0
  72. package/build/comments-pagination-previous/index.js.map +1 -0
  73. package/build/comments-query-loop/edit/comments-inspector-controls.js +102 -0
  74. package/build/comments-query-loop/edit/comments-inspector-controls.js.map +1 -0
  75. package/build/comments-query-loop/edit.js +23 -28
  76. package/build/comments-query-loop/edit.js.map +1 -1
  77. package/build/comments-query-loop/index.js +15 -7
  78. package/build/comments-query-loop/index.js.map +1 -1
  79. package/build/cover/edit.js +2 -1
  80. package/build/cover/edit.js.map +1 -1
  81. package/build/cover/edit.native.js +40 -32
  82. package/build/cover/edit.native.js.map +1 -1
  83. package/build/cover/index.js +1 -0
  84. package/build/cover/index.js.map +1 -1
  85. package/build/cover/overlay-color-settings.native.js +11 -1
  86. package/build/cover/overlay-color-settings.native.js.map +1 -1
  87. package/build/embed/deprecated.js +1 -0
  88. package/build/embed/deprecated.js.map +1 -1
  89. package/build/embed/edit.native.js +23 -20
  90. package/build/embed/edit.native.js.map +1 -1
  91. package/build/embed/embed-controls.native.js +69 -0
  92. package/build/embed/embed-controls.native.js.map +1 -0
  93. package/build/embed/embed-link-settings.native.js +101 -0
  94. package/build/embed/embed-link-settings.native.js.map +1 -0
  95. package/build/embed/embed-loading.js +1 -3
  96. package/build/embed/embed-loading.js.map +1 -1
  97. package/build/embed/embed-placeholder.native.js +9 -2
  98. package/build/embed/embed-placeholder.native.js.map +1 -1
  99. package/build/embed/index.js +1 -0
  100. package/build/embed/index.js.map +1 -1
  101. package/build/embed/transforms.js +1 -0
  102. package/build/embed/transforms.js.map +1 -1
  103. package/build/embed/util.js +1 -0
  104. package/build/embed/util.js.map +1 -1
  105. package/build/file/edit.native.js +5 -2
  106. package/build/file/edit.native.js.map +1 -1
  107. package/build/file/index.js +1 -0
  108. package/build/file/index.js.map +1 -1
  109. package/build/freeform/index.js +1 -0
  110. package/build/freeform/index.js.map +1 -1
  111. package/build/gallery/deprecated.js +4 -0
  112. package/build/gallery/deprecated.js.map +1 -1
  113. package/build/gallery/edit.js +31 -12
  114. package/build/gallery/edit.js.map +1 -1
  115. package/build/gallery/gallery.native.js +1 -1
  116. package/build/gallery/gallery.native.js.map +1 -1
  117. package/build/gallery/index.js +1 -0
  118. package/build/gallery/index.js.map +1 -1
  119. package/build/group/index.js +19 -1
  120. package/build/group/index.js.map +1 -1
  121. package/build/heading/edit.js +2 -0
  122. package/build/heading/edit.js.map +1 -1
  123. package/build/heading/index.js +1 -0
  124. package/build/heading/index.js.map +1 -1
  125. package/build/heading/transforms.js +1 -0
  126. package/build/heading/transforms.js.map +1 -1
  127. package/build/home-link/index.js +1 -0
  128. package/build/home-link/index.js.map +1 -1
  129. package/build/html/index.js +1 -0
  130. package/build/html/index.js.map +1 -1
  131. package/build/image/edit.js +56 -5
  132. package/build/image/edit.js.map +1 -1
  133. package/build/image/edit.native.js +4 -4
  134. package/build/image/edit.native.js.map +1 -1
  135. package/build/image/image.js +15 -4
  136. package/build/image/image.js.map +1 -1
  137. package/build/image/index.js +5 -1
  138. package/build/image/index.js.map +1 -1
  139. package/build/index.js +12 -2
  140. package/build/index.js.map +1 -1
  141. package/build/latest-comments/index.js +1 -0
  142. package/build/latest-comments/index.js.map +1 -1
  143. package/build/latest-posts/deprecated.js +1 -0
  144. package/build/latest-posts/deprecated.js.map +1 -1
  145. package/build/latest-posts/edit.js +1 -1
  146. package/build/latest-posts/edit.js.map +1 -1
  147. package/build/latest-posts/index.js +1 -0
  148. package/build/latest-posts/index.js.map +1 -1
  149. package/build/list/index.js +1 -0
  150. package/build/list/index.js.map +1 -1
  151. package/build/loginout/index.js +1 -0
  152. package/build/loginout/index.js.map +1 -1
  153. package/build/media-text/index.js +1 -0
  154. package/build/media-text/index.js.map +1 -1
  155. package/build/missing/index.js +1 -0
  156. package/build/missing/index.js.map +1 -1
  157. package/build/more/index.js +1 -0
  158. package/build/more/index.js.map +1 -1
  159. package/build/navigation/edit/index.js +37 -9
  160. package/build/navigation/edit/index.js.map +1 -1
  161. package/build/navigation/edit/inner-blocks.js +3 -1
  162. package/build/navigation/edit/inner-blocks.js.map +1 -1
  163. package/build/navigation/edit/overlay-menu-icon.js +36 -0
  164. package/build/navigation/edit/overlay-menu-icon.js.map +1 -0
  165. package/build/navigation/edit/placeholder/index.js +11 -7
  166. package/build/navigation/edit/placeholder/index.js.map +1 -1
  167. package/build/navigation/edit/responsive-wrapper.js +11 -22
  168. package/build/navigation/edit/responsive-wrapper.js.map +1 -1
  169. package/build/navigation/index.js +10 -1
  170. package/build/navigation/index.js.map +1 -1
  171. package/build/navigation/menu-items-to-blocks.js +4 -1
  172. package/build/navigation/menu-items-to-blocks.js.map +1 -1
  173. package/build/navigation/use-navigation-entities.js +6 -3
  174. package/build/navigation/use-navigation-entities.js.map +1 -1
  175. package/build/navigation-area/edit.js +2 -1
  176. package/build/navigation-area/edit.js.map +1 -1
  177. package/build/navigation-area/index.js +2 -1
  178. package/build/navigation-area/index.js.map +1 -1
  179. package/build/navigation-link/edit.js +7 -0
  180. package/build/navigation-link/edit.js.map +1 -1
  181. package/build/navigation-link/index.js +1 -0
  182. package/build/navigation-link/index.js.map +1 -1
  183. package/build/navigation-submenu/edit.js +4 -1
  184. package/build/navigation-submenu/edit.js.map +1 -1
  185. package/build/navigation-submenu/index.js +1 -0
  186. package/build/navigation-submenu/index.js.map +1 -1
  187. package/build/nextpage/index.js +1 -0
  188. package/build/nextpage/index.js.map +1 -1
  189. package/build/page-list/edit.js +37 -10
  190. package/build/page-list/edit.js.map +1 -1
  191. package/build/page-list/index.js +6 -1
  192. package/build/page-list/index.js.map +1 -1
  193. package/build/paragraph/edit.js +12 -2
  194. package/build/paragraph/edit.js.map +1 -1
  195. package/build/paragraph/index.js +2 -1
  196. package/build/paragraph/index.js.map +1 -1
  197. package/build/paragraph/transforms.js +2 -1
  198. package/build/paragraph/transforms.js.map +1 -1
  199. package/build/pattern/index.js +1 -0
  200. package/build/pattern/index.js.map +1 -1
  201. package/build/post-author/index.js +2 -1
  202. package/build/post-author/index.js.map +1 -1
  203. package/build/post-author-name/edit.js +98 -0
  204. package/build/post-author-name/edit.js.map +1 -0
  205. package/build/post-author-name/index.js +70 -0
  206. package/build/post-author-name/index.js.map +1 -0
  207. package/build/post-comment/index.js +1 -0
  208. package/build/post-comment/index.js.map +1 -1
  209. package/build/post-comments/index.js +1 -0
  210. package/build/post-comments/index.js.map +1 -1
  211. package/build/post-comments-count/index.js +1 -0
  212. package/build/post-comments-count/index.js.map +1 -1
  213. package/build/post-comments-form/index.js +1 -0
  214. package/build/post-comments-form/index.js.map +1 -1
  215. package/build/post-comments-link/index.js +1 -0
  216. package/build/post-comments-link/index.js.map +1 -1
  217. package/build/post-content/index.js +1 -0
  218. package/build/post-content/index.js.map +1 -1
  219. package/build/post-date/index.js +1 -0
  220. package/build/post-date/index.js.map +1 -1
  221. package/build/post-excerpt/edit.js +2 -1
  222. package/build/post-excerpt/edit.js.map +1 -1
  223. package/build/post-excerpt/index.js +4 -0
  224. package/build/post-excerpt/index.js.map +1 -1
  225. package/build/post-excerpt/transforms.js +27 -0
  226. package/build/post-excerpt/transforms.js.map +1 -0
  227. package/build/post-featured-image/dimension-controls.js +74 -32
  228. package/build/post-featured-image/dimension-controls.js.map +1 -1
  229. package/build/post-featured-image/edit.js +52 -20
  230. package/build/post-featured-image/edit.js.map +1 -1
  231. package/build/post-featured-image/index.js +4 -0
  232. package/build/post-featured-image/index.js.map +1 -1
  233. package/build/post-navigation-link/index.js +1 -0
  234. package/build/post-navigation-link/index.js.map +1 -1
  235. package/build/post-template/edit.js +34 -7
  236. package/build/post-template/edit.js.map +1 -1
  237. package/build/post-template/index.js +2 -1
  238. package/build/post-template/index.js.map +1 -1
  239. package/build/post-terms/index.js +1 -0
  240. package/build/post-terms/index.js.map +1 -1
  241. package/build/post-title/index.js +1 -0
  242. package/build/post-title/index.js.map +1 -1
  243. package/build/preformatted/edit.native.js +3 -6
  244. package/build/preformatted/edit.native.js.map +1 -1
  245. package/build/preformatted/index.js +1 -0
  246. package/build/preformatted/index.js.map +1 -1
  247. package/build/pullquote/index.js +8 -1
  248. package/build/pullquote/index.js.map +1 -1
  249. package/build/query/deprecated.js +96 -3
  250. package/build/query/deprecated.js.map +1 -1
  251. package/build/query/edit/index.js +4 -4
  252. package/build/query/edit/index.js.map +1 -1
  253. package/build/query/edit/inspector-controls/author-control.js +102 -0
  254. package/build/query/edit/inspector-controls/author-control.js.map +1 -0
  255. package/build/query/edit/inspector-controls/index.js +166 -0
  256. package/build/query/edit/inspector-controls/index.js.map +1 -0
  257. package/build/query/edit/inspector-controls/order-control.js +55 -0
  258. package/build/query/edit/inspector-controls/order-control.js.map +1 -0
  259. package/build/query/edit/inspector-controls/taxonomy-controls.js +158 -0
  260. package/build/query/edit/inspector-controls/taxonomy-controls.js.map +1 -0
  261. package/build/query/index.js +3 -3
  262. package/build/query/utils.js +49 -38
  263. package/build/query/utils.js.map +1 -1
  264. package/build/query/variations.js +0 -4
  265. package/build/query/variations.js.map +1 -1
  266. package/build/query-pagination/index.js +2 -1
  267. package/build/query-pagination/index.js.map +1 -1
  268. package/build/query-pagination-next/index.js +2 -1
  269. package/build/query-pagination-next/index.js.map +1 -1
  270. package/build/query-pagination-numbers/index.js +2 -1
  271. package/build/query-pagination-numbers/index.js.map +1 -1
  272. package/build/query-pagination-previous/index.js +2 -1
  273. package/build/query-pagination-previous/index.js.map +1 -1
  274. package/build/query-title/index.js +1 -0
  275. package/build/query-title/index.js.map +1 -1
  276. package/build/quote/index.js +1 -0
  277. package/build/quote/index.js.map +1 -1
  278. package/build/rss/index.js +1 -0
  279. package/build/rss/index.js.map +1 -1
  280. package/build/search/edit.js +5 -3
  281. package/build/search/edit.js.map +1 -1
  282. package/build/search/edit.native.js +2 -2
  283. package/build/search/edit.native.js.map +1 -1
  284. package/build/search/index.js +8 -1
  285. package/build/search/index.js.map +1 -1
  286. package/build/separator/index.js +1 -0
  287. package/build/separator/index.js.map +1 -1
  288. package/build/shortcode/index.js +1 -0
  289. package/build/shortcode/index.js.map +1 -1
  290. package/build/site-logo/edit.js +0 -25
  291. package/build/site-logo/edit.js.map +1 -1
  292. package/build/site-logo/index.js +5 -1
  293. package/build/site-logo/index.js.map +1 -1
  294. package/build/site-logo/transforms.js +31 -0
  295. package/build/site-logo/transforms.js.map +1 -0
  296. package/build/site-tagline/index.js +2 -1
  297. package/build/site-tagline/index.js.map +1 -1
  298. package/build/site-title/index.js +4 -0
  299. package/build/site-title/index.js.map +1 -1
  300. package/build/site-title/transforms.js +31 -0
  301. package/build/site-title/transforms.js.map +1 -0
  302. package/build/social-link/index.js +2 -1
  303. package/build/social-link/index.js.map +1 -1
  304. package/build/social-links/edit.js +29 -23
  305. package/build/social-links/edit.js.map +1 -1
  306. package/build/social-links/index.js +2 -1
  307. package/build/social-links/index.js.map +1 -1
  308. package/build/spacer/controls.js +111 -0
  309. package/build/spacer/controls.js.map +1 -0
  310. package/build/spacer/controls.native.js +95 -0
  311. package/build/spacer/controls.native.js.map +1 -0
  312. package/build/spacer/deprecated.js +53 -0
  313. package/build/spacer/deprecated.js.map +1 -0
  314. package/build/spacer/edit.js +117 -98
  315. package/build/spacer/edit.js.map +1 -1
  316. package/build/spacer/edit.native.js +76 -0
  317. package/build/spacer/edit.native.js.map +1 -0
  318. package/build/spacer/index.js +8 -4
  319. package/build/spacer/index.js.map +1 -1
  320. package/build/spacer/save.js +6 -3
  321. package/build/spacer/save.js.map +1 -1
  322. package/build/table/index.js +7 -1
  323. package/build/table/index.js.map +1 -1
  324. package/build/table-of-contents/index.js +1 -0
  325. package/build/table-of-contents/index.js.map +1 -1
  326. package/build/tag-cloud/index.js +1 -0
  327. package/build/tag-cloud/index.js.map +1 -1
  328. package/build/template-part/index.js +1 -0
  329. package/build/template-part/index.js.map +1 -1
  330. package/build/term-description/index.js +1 -0
  331. package/build/term-description/index.js.map +1 -1
  332. package/build/text-columns/index.js +1 -0
  333. package/build/text-columns/index.js.map +1 -1
  334. package/build/verse/index.js +1 -0
  335. package/build/verse/index.js.map +1 -1
  336. package/build/video/index.js +1 -0
  337. package/build/video/index.js.map +1 -1
  338. package/build-module/archives/index.js +1 -0
  339. package/build-module/archives/index.js.map +1 -1
  340. package/build-module/audio/edit.js +17 -5
  341. package/build-module/audio/edit.js.map +1 -1
  342. package/build-module/audio/index.js +1 -0
  343. package/build-module/audio/index.js.map +1 -1
  344. package/build-module/block/index.js +1 -0
  345. package/build-module/block/index.js.map +1 -1
  346. package/build-module/button/edit.native.js +1 -1
  347. package/build-module/button/edit.native.js.map +1 -1
  348. package/build-module/button/index.js +5 -1
  349. package/build-module/button/index.js.map +1 -1
  350. package/build-module/buttons/edit.js +6 -0
  351. package/build-module/buttons/edit.js.map +1 -1
  352. package/build-module/buttons/edit.native.js +17 -7
  353. package/build-module/buttons/edit.native.js.map +1 -1
  354. package/build-module/buttons/index.js +1 -0
  355. package/build-module/buttons/index.js.map +1 -1
  356. package/build-module/buttons/transforms.js +1 -0
  357. package/build-module/buttons/transforms.js.map +1 -1
  358. package/build-module/calendar/index.js +1 -0
  359. package/build-module/calendar/index.js.map +1 -1
  360. package/build-module/categories/index.js +1 -0
  361. package/build-module/categories/index.js.map +1 -1
  362. package/build-module/code/index.js +6 -1
  363. package/build-module/code/index.js.map +1 -1
  364. package/build-module/column/index.js +1 -0
  365. package/build-module/column/index.js.map +1 -1
  366. package/build-module/columns/index.js +11 -0
  367. package/build-module/columns/index.js.map +1 -1
  368. package/build-module/comment-author-avatar/edit.js +6 -3
  369. package/build-module/comment-author-avatar/edit.js.map +1 -1
  370. package/build-module/comment-author-avatar/index.js +7 -2
  371. package/build-module/comment-author-avatar/index.js.map +1 -1
  372. package/build-module/comment-author-name/index.js +1 -0
  373. package/build-module/comment-author-name/index.js.map +1 -1
  374. package/build-module/comment-content/index.js +1 -0
  375. package/build-module/comment-content/index.js.map +1 -1
  376. package/build-module/comment-date/index.js +1 -0
  377. package/build-module/comment-date/index.js.map +1 -1
  378. package/build-module/comment-edit-link/index.js +2 -1
  379. package/build-module/comment-edit-link/index.js.map +1 -1
  380. package/build-module/comment-reply-link/index.js +1 -0
  381. package/build-module/comment-reply-link/index.js.map +1 -1
  382. package/build-module/comment-template/edit.js +116 -26
  383. package/build-module/comment-template/edit.js.map +1 -1
  384. package/build-module/comment-template/index.js +4 -2
  385. package/build-module/comment-template/index.js.map +1 -1
  386. package/build-module/comment-template/util.js +59 -0
  387. package/build-module/comment-template/util.js.map +1 -0
  388. package/build-module/comments-pagination/comments-pagination-arrow-controls.js +30 -0
  389. package/build-module/comments-pagination/comments-pagination-arrow-controls.js.map +1 -0
  390. package/build-module/comments-pagination/edit.js +66 -0
  391. package/build-module/comments-pagination/edit.js.map +1 -0
  392. package/build-module/comments-pagination/index.js +57 -0
  393. package/build-module/comments-pagination/index.js.map +1 -0
  394. package/build-module/comments-pagination/save.js +10 -0
  395. package/build-module/comments-pagination/save.js.map +1 -0
  396. package/build-module/comments-pagination-next/edit.js +41 -0
  397. package/build-module/comments-pagination-next/edit.js.map +1 -0
  398. package/build-module/comments-pagination-next/index.js +53 -0
  399. package/build-module/comments-pagination-next/index.js.map +1 -0
  400. package/build-module/comments-pagination-numbers/edit.js +40 -0
  401. package/build-module/comments-pagination-numbers/edit.js.map +1 -0
  402. package/build-module/comments-pagination-numbers/index.js +33 -0
  403. package/build-module/comments-pagination-numbers/index.js.map +1 -0
  404. package/build-module/comments-pagination-previous/edit.js +41 -0
  405. package/build-module/comments-pagination-previous/edit.js.map +1 -0
  406. package/build-module/comments-pagination-previous/index.js +53 -0
  407. package/build-module/comments-pagination-previous/index.js.map +1 -0
  408. package/build-module/comments-query-loop/edit/comments-inspector-controls.js +91 -0
  409. package/build-module/comments-query-loop/edit/comments-inspector-controls.js.map +1 -0
  410. package/build-module/comments-query-loop/edit.js +24 -28
  411. package/build-module/comments-query-loop/edit.js.map +1 -1
  412. package/build-module/comments-query-loop/index.js +15 -7
  413. package/build-module/comments-query-loop/index.js.map +1 -1
  414. package/build-module/cover/edit.js +2 -1
  415. package/build-module/cover/edit.js.map +1 -1
  416. package/build-module/cover/edit.native.js +41 -34
  417. package/build-module/cover/edit.native.js.map +1 -1
  418. package/build-module/cover/index.js +1 -0
  419. package/build-module/cover/index.js.map +1 -1
  420. package/build-module/cover/overlay-color-settings.native.js +11 -1
  421. package/build-module/cover/overlay-color-settings.native.js.map +1 -1
  422. package/build-module/embed/deprecated.js +1 -0
  423. package/build-module/embed/deprecated.js.map +1 -1
  424. package/build-module/embed/edit.native.js +24 -21
  425. package/build-module/embed/edit.native.js.map +1 -1
  426. package/build-module/embed/embed-controls.native.js +54 -0
  427. package/build-module/embed/embed-controls.native.js.map +1 -0
  428. package/build-module/embed/embed-link-settings.native.js +90 -0
  429. package/build-module/embed/embed-link-settings.native.js.map +1 -0
  430. package/build-module/embed/embed-loading.js +1 -2
  431. package/build-module/embed/embed-loading.js.map +1 -1
  432. package/build-module/embed/embed-placeholder.native.js +9 -2
  433. package/build-module/embed/embed-placeholder.native.js.map +1 -1
  434. package/build-module/embed/index.js +1 -0
  435. package/build-module/embed/index.js.map +1 -1
  436. package/build-module/embed/transforms.js +1 -0
  437. package/build-module/embed/transforms.js.map +1 -1
  438. package/build-module/embed/util.js +1 -0
  439. package/build-module/embed/util.js.map +1 -1
  440. package/build-module/file/edit.native.js +4 -2
  441. package/build-module/file/edit.native.js.map +1 -1
  442. package/build-module/file/index.js +1 -0
  443. package/build-module/file/index.js.map +1 -1
  444. package/build-module/freeform/index.js +1 -0
  445. package/build-module/freeform/index.js.map +1 -1
  446. package/build-module/gallery/deprecated.js +4 -0
  447. package/build-module/gallery/deprecated.js.map +1 -1
  448. package/build-module/gallery/edit.js +32 -13
  449. package/build-module/gallery/edit.js.map +1 -1
  450. package/build-module/gallery/gallery.native.js +1 -1
  451. package/build-module/gallery/gallery.native.js.map +1 -1
  452. package/build-module/gallery/index.js +1 -0
  453. package/build-module/gallery/index.js.map +1 -1
  454. package/build-module/group/index.js +19 -1
  455. package/build-module/group/index.js.map +1 -1
  456. package/build-module/heading/edit.js +3 -1
  457. package/build-module/heading/edit.js.map +1 -1
  458. package/build-module/heading/index.js +1 -0
  459. package/build-module/heading/index.js.map +1 -1
  460. package/build-module/heading/transforms.js +1 -0
  461. package/build-module/heading/transforms.js.map +1 -1
  462. package/build-module/home-link/index.js +1 -0
  463. package/build-module/home-link/index.js.map +1 -1
  464. package/build-module/html/index.js +1 -0
  465. package/build-module/html/index.js.map +1 -1
  466. package/build-module/image/edit.js +52 -4
  467. package/build-module/image/edit.js.map +1 -1
  468. package/build-module/image/edit.native.js +4 -4
  469. package/build-module/image/edit.native.js.map +1 -1
  470. package/build-module/image/image.js +16 -5
  471. package/build-module/image/image.js.map +1 -1
  472. package/build-module/image/index.js +5 -1
  473. package/build-module/image/index.js.map +1 -1
  474. package/build-module/index.js +7 -2
  475. package/build-module/index.js.map +1 -1
  476. package/build-module/latest-comments/index.js +1 -0
  477. package/build-module/latest-comments/index.js.map +1 -1
  478. package/build-module/latest-posts/deprecated.js +1 -0
  479. package/build-module/latest-posts/deprecated.js.map +1 -1
  480. package/build-module/latest-posts/edit.js +1 -1
  481. package/build-module/latest-posts/edit.js.map +1 -1
  482. package/build-module/latest-posts/index.js +1 -0
  483. package/build-module/latest-posts/index.js.map +1 -1
  484. package/build-module/list/index.js +1 -0
  485. package/build-module/list/index.js.map +1 -1
  486. package/build-module/loginout/index.js +1 -0
  487. package/build-module/loginout/index.js.map +1 -1
  488. package/build-module/media-text/index.js +1 -0
  489. package/build-module/media-text/index.js.map +1 -1
  490. package/build-module/missing/index.js +1 -0
  491. package/build-module/missing/index.js.map +1 -1
  492. package/build-module/more/index.js +1 -0
  493. package/build-module/more/index.js.map +1 -1
  494. package/build-module/navigation/edit/index.js +36 -9
  495. package/build-module/navigation/edit/index.js.map +1 -1
  496. package/build-module/navigation/edit/inner-blocks.js +3 -1
  497. package/build-module/navigation/edit/inner-blocks.js.map +1 -1
  498. package/build-module/navigation/edit/overlay-menu-icon.js +28 -0
  499. package/build-module/navigation/edit/overlay-menu-icon.js.map +1 -0
  500. package/build-module/navigation/edit/placeholder/index.js +11 -7
  501. package/build-module/navigation/edit/placeholder/index.js.map +1 -1
  502. package/build-module/navigation/edit/responsive-wrapper.js +10 -21
  503. package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
  504. package/build-module/navigation/index.js +10 -1
  505. package/build-module/navigation/index.js.map +1 -1
  506. package/build-module/navigation/menu-items-to-blocks.js +4 -1
  507. package/build-module/navigation/menu-items-to-blocks.js.map +1 -1
  508. package/build-module/navigation/use-navigation-entities.js +6 -3
  509. package/build-module/navigation/use-navigation-entities.js.map +1 -1
  510. package/build-module/navigation-area/edit.js +2 -1
  511. package/build-module/navigation-area/edit.js.map +1 -1
  512. package/build-module/navigation-area/index.js +2 -1
  513. package/build-module/navigation-area/index.js.map +1 -1
  514. package/build-module/navigation-link/edit.js +7 -0
  515. package/build-module/navigation-link/edit.js.map +1 -1
  516. package/build-module/navigation-link/index.js +1 -0
  517. package/build-module/navigation-link/index.js.map +1 -1
  518. package/build-module/navigation-submenu/edit.js +4 -1
  519. package/build-module/navigation-submenu/edit.js.map +1 -1
  520. package/build-module/navigation-submenu/index.js +1 -0
  521. package/build-module/navigation-submenu/index.js.map +1 -1
  522. package/build-module/nextpage/index.js +1 -0
  523. package/build-module/nextpage/index.js.map +1 -1
  524. package/build-module/page-list/edit.js +38 -11
  525. package/build-module/page-list/edit.js.map +1 -1
  526. package/build-module/page-list/index.js +6 -1
  527. package/build-module/page-list/index.js.map +1 -1
  528. package/build-module/paragraph/edit.js +13 -3
  529. package/build-module/paragraph/edit.js.map +1 -1
  530. package/build-module/paragraph/index.js +2 -1
  531. package/build-module/paragraph/index.js.map +1 -1
  532. package/build-module/paragraph/transforms.js +2 -1
  533. package/build-module/paragraph/transforms.js.map +1 -1
  534. package/build-module/pattern/index.js +1 -0
  535. package/build-module/pattern/index.js.map +1 -1
  536. package/build-module/post-author/index.js +2 -1
  537. package/build-module/post-author/index.js.map +1 -1
  538. package/build-module/post-author-name/edit.js +85 -0
  539. package/build-module/post-author-name/edit.js.map +1 -0
  540. package/build-module/post-author-name/index.js +61 -0
  541. package/build-module/post-author-name/index.js.map +1 -0
  542. package/build-module/post-comment/index.js +1 -0
  543. package/build-module/post-comment/index.js.map +1 -1
  544. package/build-module/post-comments/index.js +1 -0
  545. package/build-module/post-comments/index.js.map +1 -1
  546. package/build-module/post-comments-count/index.js +1 -0
  547. package/build-module/post-comments-count/index.js.map +1 -1
  548. package/build-module/post-comments-form/index.js +1 -0
  549. package/build-module/post-comments-form/index.js.map +1 -1
  550. package/build-module/post-comments-link/index.js +1 -0
  551. package/build-module/post-comments-link/index.js.map +1 -1
  552. package/build-module/post-content/index.js +1 -0
  553. package/build-module/post-content/index.js.map +1 -1
  554. package/build-module/post-date/index.js +1 -0
  555. package/build-module/post-date/index.js.map +1 -1
  556. package/build-module/post-excerpt/edit.js +2 -1
  557. package/build-module/post-excerpt/edit.js.map +1 -1
  558. package/build-module/post-excerpt/index.js +3 -0
  559. package/build-module/post-excerpt/index.js.map +1 -1
  560. package/build-module/post-excerpt/transforms.js +18 -0
  561. package/build-module/post-excerpt/transforms.js.map +1 -0
  562. package/build-module/post-featured-image/dimension-controls.js +76 -31
  563. package/build-module/post-featured-image/dimension-controls.js.map +1 -1
  564. package/build-module/post-featured-image/edit.js +54 -22
  565. package/build-module/post-featured-image/edit.js.map +1 -1
  566. package/build-module/post-featured-image/index.js +4 -0
  567. package/build-module/post-featured-image/index.js.map +1 -1
  568. package/build-module/post-navigation-link/index.js +1 -0
  569. package/build-module/post-navigation-link/index.js.map +1 -1
  570. package/build-module/post-template/edit.js +34 -7
  571. package/build-module/post-template/edit.js.map +1 -1
  572. package/build-module/post-template/index.js +2 -1
  573. package/build-module/post-template/index.js.map +1 -1
  574. package/build-module/post-terms/index.js +1 -0
  575. package/build-module/post-terms/index.js.map +1 -1
  576. package/build-module/post-title/index.js +1 -0
  577. package/build-module/post-title/index.js.map +1 -1
  578. package/build-module/preformatted/edit.native.js +3 -3
  579. package/build-module/preformatted/edit.native.js.map +1 -1
  580. package/build-module/preformatted/index.js +1 -0
  581. package/build-module/preformatted/index.js.map +1 -1
  582. package/build-module/pullquote/index.js +8 -1
  583. package/build-module/pullquote/index.js.map +1 -1
  584. package/build-module/query/deprecated.js +95 -4
  585. package/build-module/query/deprecated.js.map +1 -1
  586. package/build-module/query/edit/index.js +3 -3
  587. package/build-module/query/edit/index.js.map +1 -1
  588. package/build-module/query/edit/inspector-controls/author-control.js +89 -0
  589. package/build-module/query/edit/inspector-controls/author-control.js.map +1 -0
  590. package/build-module/query/edit/inspector-controls/index.js +149 -0
  591. package/build-module/query/edit/inspector-controls/index.js.map +1 -0
  592. package/build-module/query/edit/inspector-controls/order-control.js +45 -0
  593. package/build-module/query/edit/inspector-controls/order-control.js.map +1 -0
  594. package/build-module/query/edit/inspector-controls/taxonomy-controls.js +145 -0
  595. package/build-module/query/edit/inspector-controls/taxonomy-controls.js.map +1 -0
  596. package/build-module/query/index.js +3 -3
  597. package/build-module/query/utils.js +43 -35
  598. package/build-module/query/utils.js.map +1 -1
  599. package/build-module/query/variations.js +0 -4
  600. package/build-module/query/variations.js.map +1 -1
  601. package/build-module/query-pagination/index.js +2 -1
  602. package/build-module/query-pagination/index.js.map +1 -1
  603. package/build-module/query-pagination-next/index.js +2 -1
  604. package/build-module/query-pagination-next/index.js.map +1 -1
  605. package/build-module/query-pagination-numbers/index.js +2 -1
  606. package/build-module/query-pagination-numbers/index.js.map +1 -1
  607. package/build-module/query-pagination-previous/index.js +2 -1
  608. package/build-module/query-pagination-previous/index.js.map +1 -1
  609. package/build-module/query-title/index.js +1 -0
  610. package/build-module/query-title/index.js.map +1 -1
  611. package/build-module/quote/index.js +1 -0
  612. package/build-module/quote/index.js.map +1 -1
  613. package/build-module/rss/index.js +1 -0
  614. package/build-module/rss/index.js.map +1 -1
  615. package/build-module/search/edit.js +5 -3
  616. package/build-module/search/edit.js.map +1 -1
  617. package/build-module/search/edit.native.js +2 -2
  618. package/build-module/search/edit.native.js.map +1 -1
  619. package/build-module/search/index.js +8 -1
  620. package/build-module/search/index.js.map +1 -1
  621. package/build-module/separator/index.js +1 -0
  622. package/build-module/separator/index.js.map +1 -1
  623. package/build-module/shortcode/index.js +1 -0
  624. package/build-module/shortcode/index.js.map +1 -1
  625. package/build-module/site-logo/edit.js +0 -25
  626. package/build-module/site-logo/edit.js.map +1 -1
  627. package/build-module/site-logo/index.js +4 -1
  628. package/build-module/site-logo/index.js.map +1 -1
  629. package/build-module/site-logo/transforms.js +22 -0
  630. package/build-module/site-logo/transforms.js.map +1 -0
  631. package/build-module/site-tagline/index.js +2 -1
  632. package/build-module/site-tagline/index.js.map +1 -1
  633. package/build-module/site-title/index.js +3 -0
  634. package/build-module/site-title/index.js.map +1 -1
  635. package/build-module/site-title/transforms.js +22 -0
  636. package/build-module/site-title/transforms.js.map +1 -0
  637. package/build-module/social-link/index.js +2 -1
  638. package/build-module/social-link/index.js.map +1 -1
  639. package/build-module/social-links/edit.js +29 -23
  640. package/build-module/social-links/edit.js.map +1 -1
  641. package/build-module/social-links/index.js +2 -1
  642. package/build-module/social-links/index.js.map +1 -1
  643. package/build-module/spacer/controls.js +101 -0
  644. package/build-module/spacer/controls.js.map +1 -0
  645. package/build-module/spacer/controls.native.js +82 -0
  646. package/build-module/spacer/controls.native.js.map +1 -0
  647. package/build-module/spacer/deprecated.js +44 -0
  648. package/build-module/spacer/deprecated.js.map +1 -0
  649. package/build-module/spacer/edit.js +114 -95
  650. package/build-module/spacer/edit.js.map +1 -1
  651. package/build-module/spacer/edit.native.js +61 -0
  652. package/build-module/spacer/edit.native.js.map +1 -0
  653. package/build-module/spacer/index.js +7 -4
  654. package/build-module/spacer/index.js.map +1 -1
  655. package/build-module/spacer/save.js +6 -3
  656. package/build-module/spacer/save.js.map +1 -1
  657. package/build-module/table/index.js +7 -1
  658. package/build-module/table/index.js.map +1 -1
  659. package/build-module/table-of-contents/index.js +1 -0
  660. package/build-module/table-of-contents/index.js.map +1 -1
  661. package/build-module/tag-cloud/index.js +1 -0
  662. package/build-module/tag-cloud/index.js.map +1 -1
  663. package/build-module/template-part/index.js +1 -0
  664. package/build-module/template-part/index.js.map +1 -1
  665. package/build-module/term-description/index.js +1 -0
  666. package/build-module/term-description/index.js.map +1 -1
  667. package/build-module/text-columns/index.js +1 -0
  668. package/build-module/text-columns/index.js.map +1 -1
  669. package/build-module/verse/index.js +1 -0
  670. package/build-module/verse/index.js.map +1 -1
  671. package/build-module/video/index.js +1 -0
  672. package/build-module/video/index.js.map +1 -1
  673. package/build-style/audio/editor-rtl.css +11 -0
  674. package/build-style/audio/editor.css +11 -0
  675. package/build-style/code/theme-rtl.css +5 -3
  676. package/build-style/code/theme.css +5 -3
  677. package/build-style/columns/editor-rtl.css +0 -10
  678. package/build-style/columns/editor.css +0 -10
  679. package/build-style/columns/style-rtl.css +8 -21
  680. package/build-style/columns/style.css +8 -21
  681. package/build-style/comment-template/style-rtl.css +91 -0
  682. package/build-style/comment-template/style.css +91 -0
  683. package/build-style/{home-link/style.css → comments-pagination/editor-rtl.css} +18 -22
  684. package/build-style/comments-pagination/editor.css +102 -0
  685. package/build-style/{home-link → comments-pagination}/style-rtl.css +21 -21
  686. package/build-style/comments-pagination/style.css +106 -0
  687. package/build-style/comments-pagination-numbers/editor-rtl.css +85 -0
  688. package/build-style/comments-pagination-numbers/editor.css +86 -0
  689. package/build-style/comments-query-loop/editor-rtl.css +79 -0
  690. package/build-style/comments-query-loop/editor.css +79 -0
  691. package/build-style/common-rtl.css +19 -0
  692. package/build-style/common.css +19 -0
  693. package/build-style/cover/style-rtl.css +4 -0
  694. package/build-style/cover/style.css +4 -0
  695. package/build-style/editor-rtl.css +96 -58
  696. package/build-style/editor.css +99 -58
  697. package/build-style/embed/editor-rtl.css +0 -12
  698. package/build-style/embed/editor.css +0 -12
  699. package/build-style/gallery/editor-rtl.css +7 -18
  700. package/build-style/gallery/editor.css +7 -18
  701. package/build-style/gallery/style-rtl.css +3 -0
  702. package/build-style/gallery/style.css +3 -0
  703. package/build-style/group/theme-rtl.css +1 -1
  704. package/build-style/group/theme.css +1 -1
  705. package/build-style/latest-posts/editor-rtl.css +7 -0
  706. package/build-style/latest-posts/editor.css +7 -0
  707. package/build-style/latest-posts/style-rtl.css +0 -9
  708. package/build-style/latest-posts/style.css +0 -9
  709. package/build-style/navigation/editor-rtl.css +16 -2
  710. package/build-style/navigation/editor.css +16 -2
  711. package/build-style/navigation/style-rtl.css +18 -7
  712. package/build-style/navigation/style.css +18 -7
  713. package/build-style/page-list/editor-rtl.css +9 -5
  714. package/build-style/page-list/editor.css +9 -5
  715. package/build-style/post-comments/style-rtl.css +9 -4
  716. package/build-style/post-comments/style.css +9 -4
  717. package/build-style/post-featured-image/editor-rtl.css +0 -7
  718. package/build-style/post-featured-image/editor.css +0 -7
  719. package/build-style/post-featured-image/style-rtl.css +1 -1
  720. package/build-style/post-featured-image/style.css +1 -1
  721. package/build-style/post-template/style-rtl.css +4 -0
  722. package/build-style/post-template/style.css +4 -0
  723. package/build-style/post-title/style-rtl.css +3 -0
  724. package/build-style/post-title/style.css +3 -0
  725. package/build-style/pullquote/style-rtl.css +1 -0
  726. package/build-style/pullquote/style.css +1 -0
  727. package/build-style/query-pagination/editor-rtl.css +0 -4
  728. package/build-style/query-pagination/editor.css +0 -4
  729. package/build-style/social-links/editor-rtl.css +3 -0
  730. package/build-style/social-links/editor.css +3 -0
  731. package/build-style/social-links/style-rtl.css +1 -0
  732. package/build-style/social-links/style.css +1 -0
  733. package/build-style/spacer/editor-rtl.css +4 -0
  734. package/build-style/spacer/editor.css +4 -0
  735. package/build-style/style-rtl.css +141 -87
  736. package/build-style/style.css +143 -87
  737. package/build-style/table/style-rtl.css +1 -0
  738. package/build-style/table/style.css +1 -0
  739. package/build-style/tag-cloud/style-rtl.css +8 -0
  740. package/build-style/tag-cloud/style.css +8 -0
  741. package/build-style/theme-rtl.css +6 -4
  742. package/build-style/theme.css +6 -4
  743. package/package.json +30 -30
  744. package/src/archives/block.json +1 -0
  745. package/src/archives/index.php +5 -9
  746. package/src/audio/block.json +1 -0
  747. package/src/audio/edit.js +18 -2
  748. package/src/audio/editor.scss +14 -0
  749. package/src/audio/test/__snapshots__/edit.native.js.snap +22 -0
  750. package/src/audio/test/edit.native.js +24 -11
  751. package/src/block/block.json +1 -0
  752. package/src/block/index.php +7 -2
  753. package/src/block/test/edit.native.js +10 -12
  754. package/src/button/block.json +5 -1
  755. package/src/button/edit.native.js +1 -1
  756. package/src/buttons/block.json +2 -1
  757. package/src/buttons/edit.js +17 -0
  758. package/src/buttons/edit.native.js +17 -5
  759. package/src/buttons/test/__snapshots__/edit.native.js.snap +27 -0
  760. package/src/buttons/test/edit.native.js +75 -45
  761. package/src/calendar/block.json +1 -0
  762. package/src/calendar/index.php +35 -39
  763. package/src/categories/block.json +1 -0
  764. package/src/categories/index.php +1 -1
  765. package/src/code/block.json +6 -1
  766. package/src/code/theme.scss +6 -4
  767. package/src/column/block.json +1 -0
  768. package/src/columns/block.json +11 -0
  769. package/src/columns/editor.scss +0 -15
  770. package/src/columns/style.scss +15 -36
  771. package/src/comment-author-avatar/block.json +7 -2
  772. package/src/comment-author-avatar/edit.js +9 -2
  773. package/src/comment-author-avatar/index.php +25 -6
  774. package/src/comment-author-name/block.json +1 -0
  775. package/src/comment-content/block.json +1 -0
  776. package/src/comment-date/block.json +1 -0
  777. package/src/comment-date/index.php +2 -2
  778. package/src/comment-edit-link/block.json +1 -0
  779. package/src/comment-edit-link/index.js +1 -1
  780. package/src/comment-reply-link/block.json +1 -0
  781. package/src/comment-template/block.json +4 -2
  782. package/src/comment-template/edit.js +127 -42
  783. package/src/comment-template/index.php +46 -19
  784. package/src/comment-template/style.scss +17 -0
  785. package/src/comment-template/test/index.js +45 -0
  786. package/src/comment-template/util.js +56 -0
  787. package/src/comments-pagination/block.json +37 -0
  788. package/src/comments-pagination/comments-pagination-arrow-controls.js +44 -0
  789. package/src/comments-pagination/edit.js +83 -0
  790. package/src/comments-pagination/editor.scss +34 -0
  791. package/src/comments-pagination/index.js +20 -0
  792. package/src/comments-pagination/index.php +39 -0
  793. package/src/comments-pagination/save.js +8 -0
  794. package/src/comments-pagination/style.scss +38 -0
  795. package/src/comments-pagination-next/block.json +35 -0
  796. package/src/comments-pagination-next/edit.js +44 -0
  797. package/src/comments-pagination-next/index.js +18 -0
  798. package/src/comments-pagination-next/index.php +62 -0
  799. package/src/comments-pagination-numbers/block.json +15 -0
  800. package/src/comments-pagination-numbers/edit.js +22 -0
  801. package/src/comments-pagination-numbers/editor.scss +12 -0
  802. package/src/comments-pagination-numbers/index.js +18 -0
  803. package/src/comments-pagination-numbers/index.php +69 -0
  804. package/src/comments-pagination-previous/block.json +35 -0
  805. package/src/comments-pagination-previous/edit.js +44 -0
  806. package/src/comments-pagination-previous/index.js +18 -0
  807. package/src/comments-pagination-previous/index.php +52 -0
  808. package/src/comments-query-loop/block.json +15 -7
  809. package/src/comments-query-loop/edit/comments-inspector-controls.js +93 -0
  810. package/src/comments-query-loop/edit.js +22 -27
  811. package/src/comments-query-loop/editor.scss +3 -0
  812. package/src/common.scss +19 -0
  813. package/src/cover/block.json +1 -0
  814. package/src/cover/edit.js +1 -0
  815. package/src/cover/edit.native.js +35 -19
  816. package/src/cover/overlay-color-settings.native.js +10 -0
  817. package/src/cover/style.scss +4 -0
  818. package/src/cover/test/__snapshots__/edit.native.js.snap +33 -0
  819. package/src/cover/test/edit.native.js +280 -17
  820. package/src/editor.scss +3 -0
  821. package/src/embed/block.json +1 -0
  822. package/src/embed/edit.native.js +23 -18
  823. package/src/embed/editor.scss +0 -15
  824. package/src/embed/embed-controls.native.js +65 -0
  825. package/src/embed/embed-link-settings.native.js +100 -0
  826. package/src/embed/embed-loading.js +0 -2
  827. package/src/embed/embed-placeholder.native.js +8 -0
  828. package/src/embed/test/__snapshots__/index.native.js.snap +10 -0
  829. package/src/embed/test/index.native.js +236 -95
  830. package/src/file/block.json +1 -0
  831. package/src/file/edit.native.js +6 -2
  832. package/src/file/index.php +2 -2
  833. package/src/file/test/__snapshots__/edit.native.js.snap +18 -5
  834. package/src/file/test/edit.native.js +30 -12
  835. package/src/freeform/block.json +1 -0
  836. package/src/gallery/block.json +1 -0
  837. package/src/gallery/deprecated.js +4 -0
  838. package/src/gallery/edit.js +42 -11
  839. package/src/gallery/editor.scss +8 -22
  840. package/src/gallery/gallery.native.js +1 -1
  841. package/src/gallery/style.scss +4 -0
  842. package/src/gallery/test/use-get-new-images.js +93 -0
  843. package/src/group/block.json +19 -1
  844. package/src/group/theme.scss +4 -5
  845. package/src/heading/block.json +1 -0
  846. package/src/heading/edit.js +2 -1
  847. package/src/home-link/block.json +1 -0
  848. package/src/home-link/index.php +3 -3
  849. package/src/html/block.json +1 -0
  850. package/src/image/block.json +5 -1
  851. package/src/image/edit.js +44 -0
  852. package/src/image/edit.native.js +4 -4
  853. package/src/image/image.js +14 -3
  854. package/src/image/index.php +2 -2
  855. package/src/image/test/edit.native.js +27 -7
  856. package/src/index.js +10 -0
  857. package/src/latest-comments/block.json +1 -0
  858. package/src/latest-comments/index.php +5 -5
  859. package/src/latest-posts/block.json +1 -0
  860. package/src/latest-posts/edit.js +1 -1
  861. package/src/latest-posts/editor.scss +10 -0
  862. package/src/latest-posts/index.php +14 -12
  863. package/src/latest-posts/style.scss +0 -12
  864. package/src/list/block.json +1 -0
  865. package/src/list/test/edit.native.js +3 -3
  866. package/src/loginout/block.json +1 -0
  867. package/src/media-text/block.json +1 -0
  868. package/src/missing/block.json +1 -0
  869. package/src/missing/test/__snapshots__/edit.native.js.snap +5 -0
  870. package/src/missing/test/edit-integration.native.js +2 -2
  871. package/src/missing/test/edit.native.js +26 -30
  872. package/src/more/block.json +1 -0
  873. package/src/navigation/README.md +13 -0
  874. package/src/navigation/block.json +12 -10
  875. package/src/navigation/edit/index.js +71 -21
  876. package/src/navigation/edit/inner-blocks.js +3 -1
  877. package/src/navigation/edit/overlay-menu-icon.js +21 -0
  878. package/src/navigation/edit/placeholder/index.js +20 -9
  879. package/src/navigation/edit/responsive-wrapper.js +12 -13
  880. package/src/navigation/editor.scss +18 -3
  881. package/src/navigation/index.php +17 -10
  882. package/src/navigation/menu-items-to-blocks.js +2 -1
  883. package/src/navigation/style.scss +24 -7
  884. package/src/navigation/use-navigation-entities.js +3 -1
  885. package/src/navigation-area/block.json +3 -7
  886. package/src/navigation-area/edit.js +2 -1
  887. package/src/navigation-link/block.json +2 -3
  888. package/src/navigation-link/edit.js +5 -0
  889. package/src/navigation-link/index.php +3 -3
  890. package/src/navigation-submenu/block.json +2 -3
  891. package/src/navigation-submenu/edit.js +3 -1
  892. package/src/navigation-submenu/index.php +7 -7
  893. package/src/nextpage/block.json +1 -0
  894. package/src/page-list/block.json +4 -0
  895. package/src/page-list/edit.js +47 -9
  896. package/src/page-list/editor.scss +8 -5
  897. package/src/page-list/index.php +15 -10
  898. package/src/paragraph/block.json +2 -1
  899. package/src/paragraph/edit.js +12 -4
  900. package/src/paragraph/test/edit.native.js +4 -13
  901. package/src/pattern/block.json +1 -0
  902. package/src/post-author/block.json +2 -1
  903. package/src/post-author/index.php +1 -1
  904. package/src/post-author-name/block.json +43 -0
  905. package/src/post-author-name/edit.js +95 -0
  906. package/src/post-author-name/index.js +18 -0
  907. package/src/post-author-name/index.php +49 -0
  908. package/src/post-comment/block.json +1 -0
  909. package/src/post-comments/block.json +1 -0
  910. package/src/post-comments/style.scss +10 -4
  911. package/src/post-comments-count/block.json +1 -0
  912. package/src/post-comments-form/block.json +6 -1
  913. package/src/post-comments-link/block.json +1 -0
  914. package/src/post-comments-link/index.php +7 -7
  915. package/src/post-content/block.json +1 -0
  916. package/src/post-content/index.php +1 -1
  917. package/src/post-date/block.json +1 -0
  918. package/src/post-date/index.php +2 -2
  919. package/src/post-excerpt/block.json +1 -0
  920. package/src/post-excerpt/edit.js +1 -0
  921. package/src/post-excerpt/index.js +2 -0
  922. package/src/post-excerpt/index.php +1 -1
  923. package/src/post-excerpt/transforms.js +23 -0
  924. package/src/post-featured-image/block.json +4 -0
  925. package/src/post-featured-image/dimension-controls.js +103 -51
  926. package/src/post-featured-image/edit.js +61 -22
  927. package/src/post-featured-image/editor.scss +0 -8
  928. package/src/post-featured-image/index.php +3 -2
  929. package/src/post-featured-image/style.scss +1 -1
  930. package/src/post-navigation-link/block.json +1 -0
  931. package/src/post-navigation-link/index.php +4 -4
  932. package/src/post-template/block.json +2 -1
  933. package/src/post-template/edit.js +27 -7
  934. package/src/post-template/index.php +2 -2
  935. package/src/post-template/style.scss +5 -0
  936. package/src/post-terms/block.json +1 -0
  937. package/src/post-terms/index.php +1 -1
  938. package/src/post-title/block.json +1 -0
  939. package/src/post-title/index.php +1 -1
  940. package/src/post-title/style.scss +6 -2
  941. package/src/preformatted/block.json +1 -0
  942. package/src/preformatted/edit.native.js +4 -4
  943. package/src/preformatted/test/__snapshots__/edit.native.js.snap +53 -14
  944. package/src/preformatted/test/edit.native.js +11 -10
  945. package/src/pullquote/block.json +8 -1
  946. package/src/pullquote/style.scss +1 -0
  947. package/src/query/block.json +3 -3
  948. package/src/query/deprecated.js +80 -3
  949. package/src/query/edit/index.js +3 -3
  950. package/src/query/edit/inspector-controls/author-control.js +78 -0
  951. package/src/query/edit/inspector-controls/index.js +163 -0
  952. package/src/query/edit/inspector-controls/order-control.js +41 -0
  953. package/src/query/edit/inspector-controls/taxonomy-controls.js +118 -0
  954. package/src/query/test/utils.js +6 -4
  955. package/src/query/utils.js +45 -35
  956. package/src/query/variations.js +0 -4
  957. package/src/query-pagination/block.json +2 -1
  958. package/src/query-pagination/editor.scss +0 -4
  959. package/src/query-pagination-next/block.json +2 -1
  960. package/src/query-pagination-next/index.php +2 -1
  961. package/src/query-pagination-numbers/block.json +2 -1
  962. package/src/query-pagination-previous/block.json +2 -1
  963. package/src/query-pagination-previous/index.php +2 -1
  964. package/src/query-title/block.json +1 -0
  965. package/src/quote/block.json +1 -0
  966. package/src/rss/block.json +1 -0
  967. package/src/search/block.json +8 -1
  968. package/src/search/edit.js +2 -1
  969. package/src/search/edit.native.js +2 -5
  970. package/src/search/index.php +21 -11
  971. package/src/search/test/__snapshots__/edit.native.js.snap +7 -15
  972. package/src/search/test/edit.native.js +32 -24
  973. package/src/separator/block.json +1 -0
  974. package/src/shortcode/block.json +1 -0
  975. package/src/site-logo/block.json +1 -0
  976. package/src/site-logo/edit.js +1 -32
  977. package/src/site-logo/index.js +2 -0
  978. package/src/site-logo/index.php +1 -1
  979. package/src/site-logo/transforms.js +21 -0
  980. package/src/site-tagline/block.json +2 -1
  981. package/src/site-tagline/index.php +1 -1
  982. package/src/site-title/block.json +1 -0
  983. package/src/site-title/index.js +2 -0
  984. package/src/site-title/index.php +4 -4
  985. package/src/site-title/transforms.js +21 -0
  986. package/src/social-link/block.json +2 -1
  987. package/src/social-link/index.php +3 -3
  988. package/src/social-links/block.json +3 -8
  989. package/src/social-links/edit.js +29 -26
  990. package/src/social-links/editor.scss +7 -0
  991. package/src/social-links/style.scss +3 -0
  992. package/src/spacer/block.json +4 -3
  993. package/src/spacer/controls.js +108 -0
  994. package/src/spacer/controls.native.js +82 -0
  995. package/src/spacer/deprecated.js +41 -0
  996. package/src/spacer/edit.js +133 -132
  997. package/src/spacer/edit.native.js +68 -0
  998. package/src/spacer/editor.scss +6 -0
  999. package/src/spacer/index.js +2 -0
  1000. package/src/spacer/save.js +5 -2
  1001. package/src/style.scss +3 -2
  1002. package/src/table/block.json +7 -1
  1003. package/src/table/style.scss +1 -0
  1004. package/src/table-of-contents/block.json +1 -0
  1005. package/src/table-of-contents/index.php +3 -3
  1006. package/src/tag-cloud/block.json +1 -0
  1007. package/src/tag-cloud/index.php +9 -0
  1008. package/src/tag-cloud/style.scss +9 -0
  1009. package/src/template-part/block.json +1 -0
  1010. package/src/template-part/index.php +6 -6
  1011. package/src/term-description/block.json +1 -0
  1012. package/src/text-columns/block.json +1 -0
  1013. package/src/verse/block.json +1 -0
  1014. package/src/verse/test/edit.native.js +7 -10
  1015. package/src/video/block.json +1 -0
  1016. package/build/comments-query-loop/toolbar.js +0 -58
  1017. package/build/comments-query-loop/toolbar.js.map +0 -1
  1018. package/build/embed/embed-bottom-sheet.native.js +0 -85
  1019. package/build/embed/embed-bottom-sheet.native.js.map +0 -1
  1020. package/build/query/edit/query-inspector-controls.js +0 -275
  1021. package/build/query/edit/query-inspector-controls.js.map +0 -1
  1022. package/build-module/comments-query-loop/toolbar.js +0 -48
  1023. package/build-module/comments-query-loop/toolbar.js.map +0 -1
  1024. package/build-module/embed/embed-bottom-sheet.native.js +0 -74
  1025. package/build-module/embed/embed-bottom-sheet.native.js.map +0 -1
  1026. package/build-module/query/edit/query-inspector-controls.js +0 -261
  1027. package/build-module/query/edit/query-inspector-controls.js.map +0 -1
  1028. package/src/comments-query-loop/toolbar.js +0 -57
  1029. package/src/embed/embed-bottom-sheet.native.js +0 -78
  1030. package/src/home-link/style.scss +0 -51
  1031. package/src/query/edit/query-inspector-controls.js +0 -281
@@ -134,7 +134,7 @@ function LinkSettings( {
134
134
  url: {
135
135
  valueMask,
136
136
  autoFocus: false,
137
- autoFill: true,
137
+ autoFill: false,
138
138
  },
139
139
  openInNewTab: {
140
140
  label: __( 'Open in new tab' ),
@@ -490,7 +490,7 @@ export class ImageEdit extends Component {
490
490
  footerNote={
491
491
  <>
492
492
  { __(
493
- 'Describe the purpose of the image. Leave empty if the image is purely decorative. '
493
+ 'Describe the purpose of the image. Leave empty if the image is purely decorative.'
494
494
  ) }
495
495
  <FooterMessageLink
496
496
  href={
@@ -524,7 +524,7 @@ export class ImageEdit extends Component {
524
524
 
525
525
  const removeFeaturedButton = () => (
526
526
  <BottomSheet.Cell
527
- label={ __( 'Remove as Featured Image ' ) }
527
+ label={ __( 'Remove as Featured Image' ) }
528
528
  labelStyle={ [
529
529
  setFeaturedButtonStyle,
530
530
  styles.removeFeaturedButton,
@@ -539,7 +539,7 @@ export class ImageEdit extends Component {
539
539
 
540
540
  const setFeaturedButton = () => (
541
541
  <BottomSheet.Cell
542
- label={ __( 'Set as Featured Image ' ) }
542
+ label={ __( 'Set as Featured Image' ) }
543
543
  labelStyle={ setFeaturedButtonStyle }
544
544
  cellContainerStyle={ styles.setFeaturedButtonCellContainer }
545
545
  separatorType={ 'none' }
@@ -43,7 +43,7 @@ import { store as coreStore } from '@wordpress/core-data';
43
43
  */
44
44
  import { createUpgradedEmbedBlock } from '../embed/util';
45
45
  import useClientWidth from './use-client-width';
46
- import { isExternalImage } from './edit';
46
+ import { isExternalImage, isMediaDestroyed } from './edit';
47
47
 
48
48
  /**
49
49
  * Module constants
@@ -72,12 +72,14 @@ export default function Image( {
72
72
  isSelected,
73
73
  insertBlocksAfter,
74
74
  onReplace,
75
+ onCloseModal,
75
76
  onSelectImage,
76
77
  onSelectURL,
77
78
  onUploadError,
78
79
  containerRef,
79
80
  context,
80
81
  clientId,
82
+ onImageLoadError,
81
83
  } ) {
82
84
  const imageRef = useRef();
83
85
  const captionRef = useRef();
@@ -213,11 +215,16 @@ export default function Image( {
213
215
  }
214
216
 
215
217
  function onImageError() {
216
- // Check if there's an embed block that handles this URL.
218
+ // Check if there's an embed block that handles this URL, e.g., instagram URL.
219
+ // See: https://github.com/WordPress/gutenberg/pull/11472
217
220
  const embedBlock = createUpgradedEmbedBlock( { attributes: { url } } );
218
- if ( undefined !== embedBlock ) {
221
+ const shouldReplace = undefined !== embedBlock;
222
+
223
+ if ( shouldReplace ) {
219
224
  onReplace( embedBlock );
220
225
  }
226
+
227
+ onImageLoadError( shouldReplace );
221
228
  }
222
229
 
223
230
  function onSetHref( props ) {
@@ -289,6 +296,9 @@ export default function Image( {
289
296
  if ( ! isSelected ) {
290
297
  setIsEditingImage( false );
291
298
  }
299
+ if ( isSelected && isMediaDestroyed( id ) ) {
300
+ onImageLoadError();
301
+ }
292
302
  }, [ isSelected ] );
293
303
 
294
304
  const canEditImage = id && naturalWidth && naturalHeight && imageEditing;
@@ -352,6 +362,7 @@ export default function Image( {
352
362
  onSelect={ onSelectImage }
353
363
  onSelectURL={ onSelectURL }
354
364
  onError={ onUploadError }
365
+ onCloseModal={ onCloseModal }
355
366
  />
356
367
  </BlockControls>
357
368
  ) }
@@ -9,8 +9,8 @@
9
9
  * Renders the `core/image` block on the server,
10
10
  * adding a data-id attribute to the element if core/gallery has added on pre-render.
11
11
  *
12
- * @param array $attributes The block attributes.
13
- * @param array $content The block content.
12
+ * @param array $attributes The block attributes.
13
+ * @param string $content The block content.
14
14
  * @return string Returns the block content with the data-id attribute added.
15
15
  */
16
16
  function render_block_core_image( $attributes, $content ) {
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import { act, fireEvent, initializeEditor, getEditorHtml } from 'test/helpers';
5
5
  import { Image } from 'react-native';
6
+ import Clipboard from '@react-native-clipboard/clipboard';
6
7
 
7
8
  /**
8
9
  * WordPress dependencies
@@ -23,9 +24,22 @@ jest.mock( '@wordpress/data-controls', () => {
23
24
  };
24
25
  } );
25
26
 
27
+ /**
28
+ * Immediately invoke delayed functions. A better alternative would be using
29
+ * fake timers and test the delay itself. However, fake timers does not work
30
+ * with our custom waitFor implementation.
31
+ */
32
+ jest.mock( 'lodash', () => {
33
+ const actual = jest.requireActual( 'lodash' );
34
+ return { ...actual, delay: ( cb ) => cb() };
35
+ } );
36
+
26
37
  const apiFetchPromise = Promise.resolve( {} );
27
38
  apiFetch.mockImplementation( () => apiFetchPromise );
28
39
 
40
+ const clipboardPromise = Promise.resolve( '' );
41
+ Clipboard.getString.mockImplementation( () => clipboardPromise );
42
+
29
43
  beforeAll( () => {
30
44
  registerCoreBlocks();
31
45
 
@@ -53,7 +67,7 @@ describe( 'Image Block', () => {
53
67
  </a>
54
68
  <figcaption>Mountain</figcaption></figure>
55
69
  <!-- /wp:image -->`;
56
- const screen = await initializeEditor( { initialHtml } );
70
+ const screen = initializeEditor( { initialHtml } );
57
71
  // We must await the image fetch via `getMedia`
58
72
  await act( () => apiFetchPromise );
59
73
 
@@ -79,7 +93,7 @@ describe( 'Image Block', () => {
79
93
  <img src="https://cldup.com/cXyG__fTLN.jpg" alt="" class="wp-image-1"/>
80
94
  <figcaption>Mountain</figcaption></figure>
81
95
  <!-- /wp:image -->`;
82
- const screen = await initializeEditor( { initialHtml } );
96
+ const screen = initializeEditor( { initialHtml } );
83
97
  // We must await the image fetch via `getMedia`
84
98
  await act( () => apiFetchPromise );
85
99
 
@@ -105,7 +119,7 @@ describe( 'Image Block', () => {
105
119
  <img src="https://cldup.com/cXyG__fTLN.jpg" alt="" class="wp-image-1"/>
106
120
  <figcaption>Mountain</figcaption></figure>
107
121
  <!-- /wp:image -->`;
108
- const screen = await initializeEditor( { initialHtml } );
122
+ const screen = initializeEditor( { initialHtml } );
109
123
  // We must await the image fetch via `getMedia`
110
124
  await act( () => apiFetchPromise );
111
125
 
@@ -117,6 +131,8 @@ describe( 'Image Block', () => {
117
131
  );
118
132
  fireEvent.press( screen.getByText( 'None' ) );
119
133
  fireEvent.press( screen.getByText( 'Custom URL' ) );
134
+ // Await asynchronous fetch of clipboard
135
+ await act( () => clipboardPromise );
120
136
  fireEvent.changeText(
121
137
  screen.getByPlaceholderText( 'Search or type URL' ),
122
138
  'wordpress.org'
@@ -136,7 +152,7 @@ describe( 'Image Block', () => {
136
152
  <img src="https://cldup.com/cXyG__fTLN.jpg" alt="" class="wp-image-1"/>
137
153
  <figcaption>Mountain</figcaption></figure>
138
154
  <!-- /wp:image -->`;
139
- const screen = await initializeEditor( { initialHtml } );
155
+ const screen = initializeEditor( { initialHtml } );
140
156
  // We must await the image fetch via `getMedia`
141
157
  await act( () => apiFetchPromise );
142
158
 
@@ -149,12 +165,16 @@ describe( 'Image Block', () => {
149
165
  fireEvent.press( screen.getByText( 'None' ) );
150
166
  fireEvent.press( screen.getByText( 'Media File' ) );
151
167
  fireEvent.press( screen.getByText( 'Custom URL' ) );
168
+ // Await asynchronous fetch of clipboard
169
+ await act( () => clipboardPromise );
152
170
  fireEvent.changeText(
153
171
  screen.getByPlaceholderText( 'Search or type URL' ),
154
172
  'wordpress.org'
155
173
  );
156
174
  fireEvent.press( screen.getByA11yLabel( 'Apply' ) );
157
175
  fireEvent.press( screen.getByText( 'Custom URL' ) );
176
+ // Await asynchronous fetch of clipboard
177
+ await act( () => clipboardPromise );
158
178
  fireEvent.press( screen.getByText( 'Media File' ) );
159
179
 
160
180
  const expectedHtml = `<!-- wp:image {"id":1,"sizeSlug":"large","linkDestination":"media","className":"is-style-default"} -->
@@ -172,7 +192,7 @@ describe( 'Image Block', () => {
172
192
  </a>
173
193
  <figcaption>Mountain</figcaption></figure>
174
194
  <!-- /wp:image -->`;
175
- const screen = await initializeEditor( { initialHtml } );
195
+ const screen = initializeEditor( { initialHtml } );
176
196
  // We must await the image fetch via `getMedia`
177
197
  await act( () => apiFetchPromise );
178
198
 
@@ -196,7 +216,7 @@ describe( 'Image Block', () => {
196
216
  </a>
197
217
  <figcaption>Mountain</figcaption></figure>
198
218
  <!-- /wp:image -->`;
199
- const screen = await initializeEditor( { initialHtml } );
219
+ const screen = initializeEditor( { initialHtml } );
200
220
  // We must await the image fetch via `getMedia`
201
221
  await act( () => apiFetchPromise );
202
222
 
@@ -227,7 +247,7 @@ describe( 'Image Block', () => {
227
247
  <figcaption>Mountain</figcaption>
228
248
  </figure>
229
249
  <!-- /wp:image -->`;
230
- const screen = await initializeEditor( { initialHtml } );
250
+ const screen = initializeEditor( { initialHtml } );
231
251
  // We must await the image fetch via `getMedia`
232
252
  await act( () => apiFetchPromise );
233
253
 
package/src/index.js CHANGED
@@ -29,7 +29,11 @@ import * as commentDate from './comment-date';
29
29
  import * as commentEditLink from './comment-edit-link';
30
30
  import * as commentReplyLink from './comment-reply-link';
31
31
  import * as commentTemplate from './comment-template';
32
+ import * as commentsPaginationPrevious from './comments-pagination-previous';
32
33
  import * as commentsQueryLoop from './comments-query-loop';
34
+ import * as commentsPagination from './comments-pagination';
35
+ import * as commentsPaginationNext from './comments-pagination-next';
36
+ import * as commentsPaginationNumbers from './comments-pagination-numbers';
33
37
  import * as cover from './cover';
34
38
  import * as embed from './embed';
35
39
  import * as file from './file';
@@ -55,6 +59,7 @@ import * as pattern from './pattern';
55
59
  import * as pageList from './page-list';
56
60
  import * as paragraph from './paragraph';
57
61
  import * as postAuthor from './post-author';
62
+ import * as postAuthorName from './post-author-name';
58
63
  import * as postComment from './post-comment';
59
64
  import * as postComments from './post-comments';
60
65
  import * as postCommentsCount from './post-comments-count';
@@ -198,6 +203,7 @@ export const __experimentalGetCoreBlocks = () => [
198
203
  logInOut,
199
204
  termDescription,
200
205
  queryTitle,
206
+ postAuthorName,
201
207
  ];
202
208
 
203
209
  /**
@@ -254,6 +260,10 @@ export const __experimentalRegisterExperimentalCoreBlocks =
254
260
  commentReplyLink,
255
261
  commentTemplate,
256
262
  commentsQueryLoop,
263
+ commentsPagination,
264
+ commentsPaginationNext,
265
+ commentsPaginationNumbers,
266
+ commentsPaginationPrevious,
257
267
  navigationArea,
258
268
  postComment,
259
269
  postCommentsCount,
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
2
3
  "apiVersion": 2,
3
4
  "name": "core/latest-comments",
4
5
  "title": "Latest Comments",
@@ -30,7 +30,7 @@ function wp_latest_comments_draft_or_post_title( $post = 0 ) {
30
30
  if ( empty( $title ) ) {
31
31
  $title = __( '(no title)' );
32
32
  }
33
- return esc_html( $title );
33
+ return $title;
34
34
  }
35
35
 
36
36
  /**
@@ -86,14 +86,14 @@ function render_block_core_latest_comments( $attributes = array() ) {
86
86
 
87
87
  $author_markup = '';
88
88
  if ( $author_url ) {
89
- $author_markup .= '<a class="wp-block-latest-comments__comment-author" href="' . esc_url( $author_url ) . '">' . get_comment_author( $comment ) . '</a>';
89
+ $author_markup .= '<a class="wp-block-latest-comments__comment-author" href="' . esc_url( $author_url ) . '">' . esc_html( get_comment_author( $comment ) ) . '</a>';
90
90
  } else {
91
- $author_markup .= '<span class="wp-block-latest-comments__comment-author">' . get_comment_author( $comment ) . '</span>';
91
+ $author_markup .= '<span class="wp-block-latest-comments__comment-author">' . esc_html( get_comment_author( $comment ) ) . '</span>';
92
92
  }
93
93
 
94
94
  // `_draft_or_post_title` calls `esc_html()` so we don't need to wrap that call in
95
95
  // `esc_html`.
96
- $post_title = '<a class="wp-block-latest-comments__comment-link" href="' . esc_url( get_comment_link( $comment ) ) . '">' . wp_latest_comments_draft_or_post_title( $comment->comment_post_ID ) . '</a>';
96
+ $post_title = '<a class="wp-block-latest-comments__comment-link" href="' . esc_url( get_comment_link( $comment ) ) . '">' . esc_html( wp_latest_comments_draft_or_post_title( $comment->comment_post_ID ) ) . '</a>';
97
97
 
98
98
  $list_items_markup .= sprintf(
99
99
  /* translators: 1: author name (inside <a> or <span> tag, based on if they have a URL), 2: post title related to this comment */
@@ -106,7 +106,7 @@ function render_block_core_latest_comments( $attributes = array() ) {
106
106
  $list_items_markup .= sprintf(
107
107
  '<time datetime="%1$s" class="wp-block-latest-comments__comment-date">%2$s</time>',
108
108
  esc_attr( get_comment_date( 'c', $comment ) ),
109
- date_i18n( get_option( 'date_format' ), get_comment_date( 'U', $comment ) )
109
+ esc_html( date_i18n( get_option( 'date_format' ), get_comment_date( 'U', $comment ) ) )
110
110
  );
111
111
  }
112
112
  $list_items_markup .= '</footer>';
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
2
3
  "apiVersion": 2,
3
4
  "name": "core/latest-posts",
4
5
  "title": "Latest Posts",
@@ -299,7 +299,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
299
299
  } )
300
300
  }
301
301
  />
302
- <BaseControl className="block-editor-image-alignment-control__row">
302
+ <BaseControl className="editor-latest-posts-image-alignment-control">
303
303
  <BaseControl.VisualLabel>
304
304
  { __( 'Image alignment' ) }
305
305
  </BaseControl.VisualLabel>
@@ -12,3 +12,13 @@
12
12
  .edit-post-visual-editor .wp-block-latest-posts.is-grid li {
13
13
  margin-bottom: 20px;
14
14
  }
15
+
16
+ .editor-latest-posts-image-alignment-control {
17
+ .components-base-control__label {
18
+ display: block;
19
+ }
20
+
21
+ .components-toolbar {
22
+ border-radius: $radius-block-ui;
23
+ }
24
+ }
@@ -60,6 +60,11 @@ function render_block_core_latest_posts( $attributes ) {
60
60
 
61
61
  foreach ( $recent_posts as $post ) {
62
62
  $post_link = esc_url( get_permalink( $post ) );
63
+ $title = get_the_title( $post );
64
+
65
+ if ( ! $title ) {
66
+ $title = __( '(no title)' );
67
+ }
63
68
 
64
69
  $list_items_markup .= '<li>';
65
70
 
@@ -81,30 +86,27 @@ function render_block_core_latest_posts( $attributes ) {
81
86
  $post,
82
87
  $attributes['featuredImageSizeSlug'],
83
88
  array(
84
- 'style' => $image_style,
89
+ 'style' => esc_attr( $image_style ),
85
90
  )
86
91
  );
87
92
  if ( $attributes['addLinkToFeaturedImage'] ) {
88
93
  $featured_image = sprintf(
89
- '<a href="%1$s">%2$s</a>',
90
- $post_link,
94
+ '<a href="%1$s" aria-label="%2$s">%3$s</a>',
95
+ esc_url( $post_link ),
96
+ esc_attr( $title ),
91
97
  $featured_image
92
98
  );
93
99
  }
94
100
  $list_items_markup .= sprintf(
95
101
  '<div class="%1$s">%2$s</div>',
96
- $image_classes,
102
+ esc_attr( $image_classes ),
97
103
  $featured_image
98
104
  );
99
105
  }
100
106
 
101
- $title = get_the_title( $post );
102
- if ( ! $title ) {
103
- $title = __( '(no title)' );
104
- }
105
107
  $list_items_markup .= sprintf(
106
108
  '<a href="%1$s">%2$s</a>',
107
- $post_link,
109
+ esc_url( $post_link ),
108
110
  $title
109
111
  );
110
112
 
@@ -141,14 +143,14 @@ function render_block_core_latest_posts( $attributes ) {
141
143
 
142
144
  $list_items_markup .= sprintf(
143
145
  '<div class="wp-block-latest-posts__post-excerpt">%1$s</div>',
144
- $trimmed_excerpt
146
+ esc_html( $trimmed_excerpt )
145
147
  );
146
148
  }
147
149
 
148
150
  if ( isset( $attributes['displayPostContent'] ) && $attributes['displayPostContent']
149
151
  && isset( $attributes['displayPostContentRadio'] ) && 'full_post' === $attributes['displayPostContentRadio'] ) {
150
152
 
151
- $post_content = wp_kses_post( html_entity_decode( $post->post_content, ENT_QUOTES, get_option( 'blog_charset' ) ) );
153
+ $post_content = html_entity_decode( $post->post_content, ENT_QUOTES, get_option( 'blog_charset' ) );
152
154
 
153
155
  if ( post_password_required( $post ) ) {
154
156
  $post_content = __( 'This content is password protected.' );
@@ -156,7 +158,7 @@ function render_block_core_latest_posts( $attributes ) {
156
158
 
157
159
  $list_items_markup .= sprintf(
158
160
  '<div class="wp-block-latest-posts__post-full-content">%1$s</div>',
159
- $post_content
161
+ wp_kses_post( $post_content )
160
162
  );
161
163
  }
162
164
 
@@ -73,15 +73,3 @@
73
73
  text-align: center;
74
74
  }
75
75
  }
76
-
77
- .block-editor-image-alignment-control__row {
78
- .components-base-control__field {
79
- display: flex;
80
- justify-content: space-between;
81
- align-items: center;
82
-
83
- .components-base-control__label {
84
- margin-bottom: 0;
85
- }
86
- }
87
- }
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
2
3
  "apiVersion": 2,
3
4
  "name": "core/list",
4
5
  "title": "List",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import { shallow } from 'enzyme';
4
+ import { render } from 'test/helpers';
5
5
 
6
6
  /**
7
7
  * Internal dependencies
@@ -10,7 +10,7 @@ import ListEdit from '../edit';
10
10
 
11
11
  describe( 'ListEdit component', () => {
12
12
  it( 'renders without crashing', () => {
13
- const wrapper = shallow( <ListEdit attributes={ {} } /> );
14
- expect( wrapper ).toBeTruthy();
13
+ const screen = render( <ListEdit attributes={ {} } /> );
14
+ expect( screen.container ).toBeTruthy();
15
15
  } );
16
16
  } );
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
2
3
  "apiVersion": 2,
3
4
  "name": "core/loginout",
4
5
  "title": "Login/out",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
2
3
  "apiVersion": 2,
3
4
  "name": "core/media-text",
4
5
  "title": "Media & Text",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
2
3
  "apiVersion": 2,
3
4
  "name": "core/missing",
4
5
  "title": "Unsupported",
@@ -5,6 +5,11 @@ exports[`Missing block renders without crashing 1`] = `
5
5
  accessibilityHint="Tap here to show help"
6
6
  accessibilityLabel="Help button"
7
7
  accessibilityRole="button"
8
+ accessibilityState={
9
+ Object {
10
+ "disabled": true,
11
+ }
12
+ }
8
13
  accessible={true}
9
14
  focusable={true}
10
15
  onClick={[Function]}
@@ -40,7 +40,7 @@ describe( 'Unsupported block', () => {
40
40
  const initialHtml = `<!-- wp:table -->
41
41
  <figure class="wp-block-table"><table><tbody><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr></tbody></table></figure>
42
42
  <!-- /wp:table -->`;
43
- const { getByA11yLabel } = await initializeEditor( {
43
+ const { getByA11yLabel } = initializeEditor( {
44
44
  initialHtml,
45
45
  } );
46
46
 
@@ -59,7 +59,7 @@ describe( 'Unsupported block', () => {
59
59
  const initialHtml = `<!-- wp:table -->
60
60
  <figure class="wp-block-table"><table><tbody><tr><td>1</td><td>2</td></tr><tr><td>3</td><td>4</td></tr></tbody></table></figure>
61
61
  <!-- /wp:table -->`;
62
- const { getByA11yLabel, getByText } = await initializeEditor( {
62
+ const { getByA11yLabel, getByText } = initializeEditor( {
63
63
  initialHtml,
64
64
  } );
65
65
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import renderer from 'react-test-renderer';
4
+ import { render } from 'test/helpers';
5
5
  import { Text } from 'react-native';
6
6
 
7
7
  /**
@@ -23,9 +23,7 @@ const defaultAttributes = {
23
23
  };
24
24
 
25
25
  const getTestComponentWithContent = ( attributes = defaultAttributes ) => {
26
- return renderer.create(
27
- <UnsupportedBlockEdit attributes={ attributes } />
28
- );
26
+ return render( <UnsupportedBlockEdit attributes={ attributes } /> );
29
27
  };
30
28
 
31
29
  describe( 'Missing block', () => {
@@ -34,33 +32,30 @@ describe( 'Missing block', () => {
34
32
  } );
35
33
 
36
34
  it( 'renders without crashing', () => {
37
- const component = getTestComponentWithContent();
38
- const rendered = component.toJSON();
35
+ const testInstance = getTestComponentWithContent();
36
+ const rendered = testInstance.toJSON();
39
37
  expect( rendered ).toMatchSnapshot();
40
38
  } );
41
39
 
42
40
  describe( 'help modal', () => {
43
41
  it( 'renders help icon', () => {
44
- const component = getTestComponentWithContent();
45
- const testInstance = component.root;
46
- const icons = testInstance.findAllByType( Icon );
42
+ const testInstance = getTestComponentWithContent();
43
+ const icons = testInstance.UNSAFE_getAllByType( Icon );
47
44
  expect( icons.length ).toBe( 2 );
48
45
  expect( icons[ 0 ].props.icon ).toBe( help );
49
46
  } );
50
47
 
51
48
  it( 'renders info icon on modal', () => {
52
- const component = getTestComponentWithContent();
53
- const testInstance = component.root;
54
- const bottomSheet = testInstance.findByType( BottomSheet );
49
+ const testInstance = getTestComponentWithContent();
50
+ const bottomSheet = testInstance.UNSAFE_getByType( BottomSheet );
55
51
  const children = bottomSheet.props.children[ 0 ].props.children;
56
52
  expect( children.length ).toBe( 3 ); // 4 children in the bottom sheet: the icon, the "isn't yet supported" title and the "We are working hard..." message
57
53
  expect( children[ 0 ].props.icon ).toBe( help );
58
54
  } );
59
55
 
60
56
  it( 'renders unsupported text on modal', () => {
61
- const component = getTestComponentWithContent();
62
- const testInstance = component.root;
63
- const bottomSheet = testInstance.findByType( BottomSheet );
57
+ const testInstance = getTestComponentWithContent();
58
+ const bottomSheet = testInstance.UNSAFE_getByType( BottomSheet );
64
59
  const children = bottomSheet.props.children[ 0 ].props.children;
65
60
  expect( children[ 1 ].props.children ).toBe(
66
61
  "'" +
@@ -78,9 +73,10 @@ describe( 'Missing block', () => {
78
73
  } );
79
74
 
80
75
  it( 'renders edit action if UBE is available', () => {
81
- const component = getTestComponentWithContent();
82
- const testInstance = component.root;
83
- const bottomSheet = testInstance.findByType( BottomSheet );
76
+ const testInstance = getTestComponentWithContent();
77
+ const bottomSheet = testInstance.UNSAFE_getByType(
78
+ BottomSheet
79
+ );
84
80
  const bottomSheetCells = bottomSheet.props.children[ 1 ];
85
81
  expect( bottomSheetCells ).toBeTruthy();
86
82
  expect( bottomSheetCells.props.children.length ).toBe( 2 );
@@ -94,35 +90,35 @@ describe( 'Missing block', () => {
94
90
  unsupportedBlockEditor: false,
95
91
  } );
96
92
 
97
- const component = getTestComponentWithContent();
98
- const testInstance = component.root;
99
- const bottomSheet = testInstance.findByType( BottomSheet );
93
+ const testInstance = getTestComponentWithContent();
94
+ const bottomSheet = testInstance.UNSAFE_getByType(
95
+ BottomSheet
96
+ );
100
97
  expect( bottomSheet.props.children[ 1 ] ).toBeFalsy();
101
98
  } );
102
99
 
103
100
  it( 'does not render edit action if the block is incompatible with UBE', () => {
104
- const component = getTestComponentWithContent( {
101
+ const testInstance = getTestComponentWithContent( {
105
102
  originalName: 'core/block',
106
103
  } );
107
- const testInstance = component.root;
108
- const bottomSheet = testInstance.findByType( BottomSheet );
104
+ const bottomSheet = testInstance.UNSAFE_getByType(
105
+ BottomSheet
106
+ );
109
107
  expect( bottomSheet.props.children[ 1 ] ).toBeFalsy();
110
108
  } );
111
109
  } );
112
110
  } );
113
111
 
114
112
  it( 'renders admin plugins icon', () => {
115
- const component = getTestComponentWithContent();
116
- const testInstance = component.root;
117
- const icons = testInstance.findAllByType( Icon );
113
+ const testInstance = getTestComponentWithContent();
114
+ const icons = testInstance.UNSAFE_getAllByType( Icon );
118
115
  expect( icons.length ).toBe( 2 );
119
116
  expect( icons[ 1 ].props.icon ).toBe( plugins );
120
117
  } );
121
118
 
122
119
  it( 'renders title text without crashing', () => {
123
- const component = getTestComponentWithContent();
124
- const testInstance = component.root;
125
- const texts = testInstance.findAllByType( Text );
120
+ const testInstance = getTestComponentWithContent();
121
+ const texts = testInstance.UNSAFE_getAllByType( Text );
126
122
  expect( texts.length ).toBe( 2 );
127
123
  expect( texts[ 0 ].props.children ).toBe( 'missing/block/title' );
128
124
  expect( texts[ 1 ].props.children ).toBe( 'Unsupported' );
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "https://schemas.wp.org/trunk/block.json",
2
3
  "apiVersion": 2,
3
4
  "name": "core/more",
4
5
  "title": "More",
@@ -0,0 +1,13 @@
1
+ # Navigation block
2
+
3
+ The Navigation block is a container block for the collection of blocks that allow visitors to get around your site. See also the Navigation Link block and Navigation Submenu block.
4
+
5
+ ## CSS Classes
6
+
7
+ The structural CSS for the navigation block targets generic classnames across menu items of multiple types including those automatically generated by the Page List block. Here are some of the notable classnames and what they are used for:
8
+
9
+ - `.wp-block-navigation__submenu-container` is applied to submenus to main menu items.
10
+ - `.wp-block-navigation-item` is applied to every menu item.
11
+ - `.wp-block-navigation-item__content` is applied to the link inside a menu item.
12
+ - `.wp-block-navigation-item__label` is applied to the innermost container around the menu item text label.
13
+ - `.wp-block-navigation__submenu-icon` is applied to the submenu indicator (chevron).