@wordpress/block-library 8.35.0 → 9.0.1

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 (1719) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/README.md +1 -1
  3. package/build/archives/edit.js +59 -51
  4. package/build/archives/edit.js.map +1 -1
  5. package/build/audio/deprecated.js +13 -11
  6. package/build/audio/deprecated.js.map +1 -1
  7. package/build/audio/edit.js +83 -74
  8. package/build/audio/edit.js.map +1 -1
  9. package/build/audio/edit.native.js +97 -83
  10. package/build/audio/edit.native.js.map +1 -1
  11. package/build/audio/save.js +15 -14
  12. package/build/audio/save.js.map +1 -1
  13. package/build/avatar/edit.js +120 -109
  14. package/build/avatar/edit.js.map +1 -1
  15. package/build/avatar/user-control.js +2 -2
  16. package/build/avatar/user-control.js.map +1 -1
  17. package/build/block/edit-title.native.js +29 -24
  18. package/build/block/edit-title.native.js.map +1 -1
  19. package/build/block/edit.js +46 -32
  20. package/build/block/edit.js.map +1 -1
  21. package/build/block/edit.native.js +50 -39
  22. package/build/block/edit.native.js.map +1 -1
  23. package/build/button/color-background.native.js +14 -13
  24. package/build/button/color-background.native.js.map +1 -1
  25. package/build/button/deprecated.js +118 -105
  26. package/build/button/deprecated.js.map +1 -1
  27. package/build/button/edit.js +124 -109
  28. package/build/button/edit.js.map +1 -1
  29. package/build/button/edit.native.js +85 -71
  30. package/build/button/edit.native.js.map +1 -1
  31. package/build/button/save.js +14 -16
  32. package/build/button/save.js.map +1 -1
  33. package/build/buttons/deprecated.js +9 -7
  34. package/build/buttons/deprecated.js.map +1 -1
  35. package/build/buttons/edit.js +2 -2
  36. package/build/buttons/edit.js.map +1 -1
  37. package/build/buttons/edit.native.js +38 -34
  38. package/build/buttons/edit.native.js.map +1 -1
  39. package/build/buttons/save.js +2 -2
  40. package/build/buttons/save.js.map +1 -1
  41. package/build/calendar/edit.js +22 -18
  42. package/build/calendar/edit.js.map +1 -1
  43. package/build/categories/edit.js +71 -56
  44. package/build/categories/edit.js.map +1 -1
  45. package/build/code/edit.js +19 -18
  46. package/build/code/edit.js.map +1 -1
  47. package/build/code/edit.native.js +22 -21
  48. package/build/code/edit.native.js.map +1 -1
  49. package/build/code/save.js +14 -13
  50. package/build/code/save.js.map +1 -1
  51. package/build/column/column-preview.native.js +14 -15
  52. package/build/column/column-preview.native.js.map +1 -1
  53. package/build/column/deprecated.js +5 -4
  54. package/build/column/deprecated.js.map +1 -1
  55. package/build/column/edit.js +33 -26
  56. package/build/column/edit.js.map +1 -1
  57. package/build/column/edit.native.js +52 -38
  58. package/build/column/edit.native.js.map +1 -1
  59. package/build/column/save.js +2 -2
  60. package/build/column/save.js.map +1 -1
  61. package/build/columns/deprecated.js +14 -12
  62. package/build/columns/deprecated.js.map +1 -1
  63. package/build/columns/edit.js +61 -50
  64. package/build/columns/edit.js.map +1 -1
  65. package/build/columns/edit.native.js +68 -56
  66. package/build/columns/edit.native.js.map +1 -1
  67. package/build/columns/save.js +2 -2
  68. package/build/columns/save.js.map +1 -1
  69. package/build/columns/variations.js +38 -33
  70. package/build/columns/variations.js.map +1 -1
  71. package/build/comment-author-avatar/edit.js +33 -26
  72. package/build/comment-author-avatar/edit.js.map +1 -1
  73. package/build/comment-author-name/edit.js +40 -33
  74. package/build/comment-author-name/edit.js.map +1 -1
  75. package/build/comment-content/edit.js +28 -18
  76. package/build/comment-content/edit.js.map +1 -1
  77. package/build/comment-date/edit.js +36 -27
  78. package/build/comment-date/edit.js.map +1 -1
  79. package/build/comment-edit-link/edit.js +32 -24
  80. package/build/comment-edit-link/edit.js.map +1 -1
  81. package/build/comment-reply-link/edit.js +20 -16
  82. package/build/comment-reply-link/edit.js.map +1 -1
  83. package/build/comment-template/edit.js +50 -46
  84. package/build/comment-template/edit.js.map +1 -1
  85. package/build/comment-template/save.js +2 -2
  86. package/build/comment-template/save.js.map +1 -1
  87. package/build/comments/deprecated.js +5 -4
  88. package/build/comments/deprecated.js.map +1 -1
  89. package/build/comments/edit/comments-inspector-controls.js +26 -23
  90. package/build/comments/edit/comments-inspector-controls.js.map +1 -1
  91. package/build/comments/edit/comments-legacy.js +27 -22
  92. package/build/comments/edit/comments-legacy.js.map +1 -1
  93. package/build/comments/edit/index.js +10 -8
  94. package/build/comments/edit/index.js.map +1 -1
  95. package/build/comments/edit/placeholder.js +109 -77
  96. package/build/comments/edit/placeholder.js.map +1 -1
  97. package/build/comments/save.js +2 -2
  98. package/build/comments/save.js.map +1 -1
  99. package/build/comments-pagination/comments-pagination-arrow-controls.js +14 -13
  100. package/build/comments-pagination/comments-pagination-arrow-controls.js.map +1 -1
  101. package/build/comments-pagination/edit.js +21 -14
  102. package/build/comments-pagination/edit.js.map +1 -1
  103. package/build/comments-pagination/save.js +2 -2
  104. package/build/comments-pagination/save.js.map +1 -1
  105. package/build/comments-pagination-next/edit.js +17 -15
  106. package/build/comments-pagination-next/edit.js.map +1 -1
  107. package/build/comments-pagination-numbers/edit.js +30 -27
  108. package/build/comments-pagination-numbers/edit.js.map +1 -1
  109. package/build/comments-pagination-previous/edit.js +17 -15
  110. package/build/comments-pagination-previous/edit.js.map +1 -1
  111. package/build/comments-title/edit.js +40 -33
  112. package/build/comments-title/edit.js.map +1 -1
  113. package/build/cover/controls.native.js +124 -113
  114. package/build/cover/controls.native.js.map +1 -1
  115. package/build/cover/deprecated.js +380 -363
  116. package/build/cover/deprecated.js.map +1 -1
  117. package/build/cover/edit/block-controls.js +30 -26
  118. package/build/cover/edit/block-controls.js.map +1 -1
  119. package/build/cover/edit/cover-placeholder.js +6 -5
  120. package/build/cover/edit/cover-placeholder.js.map +1 -1
  121. package/build/cover/edit/index.js +92 -84
  122. package/build/cover/edit/index.js.map +1 -1
  123. package/build/cover/edit/inspector-controls.js +167 -147
  124. package/build/cover/edit/inspector-controls.js.map +1 -1
  125. package/build/cover/edit/resizable-cover-popover.js +2 -2
  126. package/build/cover/edit/resizable-cover-popover.js.map +1 -1
  127. package/build/cover/edit.native.js +236 -197
  128. package/build/cover/edit.native.js.map +1 -1
  129. package/build/cover/focal-point-settings-button.native.js +10 -8
  130. package/build/cover/focal-point-settings-button.native.js.map +1 -1
  131. package/build/cover/index.js +1 -0
  132. package/build/cover/index.js.map +1 -1
  133. package/build/cover/overlay-color-settings.native.js +4 -5
  134. package/build/cover/overlay-color-settings.native.js.map +1 -1
  135. package/build/cover/save.js +49 -48
  136. package/build/cover/save.js.map +1 -1
  137. package/build/details/edit.js +32 -25
  138. package/build/details/edit.js.map +1 -1
  139. package/build/details/save.js +9 -6
  140. package/build/details/save.js.map +1 -1
  141. package/build/embed/deprecated.js +18 -15
  142. package/build/embed/deprecated.js.map +1 -1
  143. package/build/embed/edit.js +60 -55
  144. package/build/embed/edit.js.map +1 -1
  145. package/build/embed/edit.native.js +65 -56
  146. package/build/embed/edit.native.js.map +1 -1
  147. package/build/embed/embed-controls.js +25 -16
  148. package/build/embed/embed-controls.js.map +1 -1
  149. package/build/embed/embed-controls.native.js +24 -18
  150. package/build/embed/embed-controls.native.js.map +1 -1
  151. package/build/embed/embed-link-settings.native.js +3 -3
  152. package/build/embed/embed-link-settings.native.js.map +1 -1
  153. package/build/embed/embed-loading.js +5 -4
  154. package/build/embed/embed-loading.js.map +1 -1
  155. package/build/embed/embed-loading.native.js +7 -6
  156. package/build/embed/embed-loading.native.js.map +1 -1
  157. package/build/embed/embed-no-preview.native.js +87 -70
  158. package/build/embed/embed-no-preview.native.js.map +1 -1
  159. package/build/embed/embed-placeholder.js +46 -36
  160. package/build/embed/embed-placeholder.js.map +1 -1
  161. package/build/embed/embed-placeholder.native.js +58 -44
  162. package/build/embed/embed-placeholder.native.js.map +1 -1
  163. package/build/embed/embed-preview.js +44 -38
  164. package/build/embed/embed-preview.js.map +1 -1
  165. package/build/embed/embed-preview.native.js +46 -39
  166. package/build/embed/embed-preview.native.js.map +1 -1
  167. package/build/embed/icons.js +164 -135
  168. package/build/embed/icons.js.map +1 -1
  169. package/build/embed/save.js +12 -10
  170. package/build/embed/save.js.map +1 -1
  171. package/build/embed/util.js +15 -12
  172. package/build/embed/util.js.map +1 -1
  173. package/build/embed/variations.js +0 -10
  174. package/build/embed/variations.js.map +1 -1
  175. package/build/embed/wp-embed-preview.js +10 -11
  176. package/build/embed/wp-embed-preview.js.map +1 -1
  177. package/build/embed/wp-embed-preview.native.js +3 -4
  178. package/build/embed/wp-embed-preview.native.js.map +1 -1
  179. package/build/file/deprecated.js +92 -77
  180. package/build/file/deprecated.js.map +1 -1
  181. package/build/file/edit.js +110 -101
  182. package/build/file/edit.js.map +1 -1
  183. package/build/file/edit.native.js +106 -92
  184. package/build/file/edit.native.js.map +1 -1
  185. package/build/file/inspector.js +42 -36
  186. package/build/file/inspector.js.map +1 -1
  187. package/build/file/save.js +32 -27
  188. package/build/file/save.js.map +1 -1
  189. package/build/footnotes/edit.js +69 -63
  190. package/build/footnotes/edit.js.map +1 -1
  191. package/build/footnotes/format.js +2 -2
  192. package/build/footnotes/format.js.map +1 -1
  193. package/build/form/edit.js +79 -73
  194. package/build/form/edit.js.map +1 -1
  195. package/build/form/save.js +9 -9
  196. package/build/form/save.js.map +1 -1
  197. package/build/form-input/deprecated.js +19 -17
  198. package/build/form-input/deprecated.js.map +1 -1
  199. package/build/form-input/edit.js +86 -76
  200. package/build/form-input/edit.js.map +1 -1
  201. package/build/form-input/save.js +24 -22
  202. package/build/form-input/save.js.map +1 -1
  203. package/build/form-submission-notification/edit.js +2 -2
  204. package/build/form-submission-notification/edit.js.map +1 -1
  205. package/build/form-submission-notification/save.js +2 -2
  206. package/build/form-submission-notification/save.js.map +1 -1
  207. package/build/form-submit-button/edit.js +2 -2
  208. package/build/form-submit-button/edit.js.map +1 -1
  209. package/build/form-submit-button/save.js +8 -8
  210. package/build/form-submit-button/save.js.map +1 -1
  211. package/build/freeform/convert-to-blocks-button.js +5 -4
  212. package/build/freeform/convert-to-blocks-button.js.map +1 -1
  213. package/build/freeform/edit.js +37 -26
  214. package/build/freeform/edit.js.map +1 -1
  215. package/build/freeform/edit.native.js +2 -2
  216. package/build/freeform/edit.native.js.map +1 -1
  217. package/build/freeform/modal.js +52 -35
  218. package/build/freeform/modal.js.map +1 -1
  219. package/build/freeform/save.js +4 -2
  220. package/build/freeform/save.js.map +1 -1
  221. package/build/gallery/deprecated.js +225 -199
  222. package/build/gallery/deprecated.js.map +1 -1
  223. package/build/gallery/edit-wrapper.js +4 -5
  224. package/build/gallery/edit-wrapper.js.map +1 -1
  225. package/build/gallery/edit.js +89 -76
  226. package/build/gallery/edit.js.map +1 -1
  227. package/build/gallery/gallery.js +17 -15
  228. package/build/gallery/gallery.js.map +1 -1
  229. package/build/gallery/gallery.native.js +21 -19
  230. package/build/gallery/gallery.native.js.map +1 -1
  231. package/build/gallery/save.js +9 -8
  232. package/build/gallery/save.js.map +1 -1
  233. package/build/gallery/shared-icon.js +2 -2
  234. package/build/gallery/shared-icon.js.map +1 -1
  235. package/build/gallery/v1/edit.js +57 -51
  236. package/build/gallery/v1/edit.js.map +1 -1
  237. package/build/gallery/v1/gallery-button.native.js +10 -9
  238. package/build/gallery/v1/gallery-button.native.js.map +1 -1
  239. package/build/gallery/v1/gallery-image.js +84 -64
  240. package/build/gallery/v1/gallery-image.js.map +1 -1
  241. package/build/gallery/v1/gallery-image.native.js +75 -65
  242. package/build/gallery/v1/gallery-image.native.js.map +1 -1
  243. package/build/gallery/v1/gallery.js +44 -42
  244. package/build/gallery/v1/gallery.js.map +1 -1
  245. package/build/gallery/v1/gallery.native.js +46 -44
  246. package/build/gallery/v1/gallery.native.js.map +1 -1
  247. package/build/gallery/v1/save.js +42 -37
  248. package/build/gallery/v1/save.js.map +1 -1
  249. package/build/gallery/v1/tiles.native.js +9 -7
  250. package/build/gallery/v1/tiles.native.js.map +1 -1
  251. package/build/group/deprecated.js +27 -20
  252. package/build/group/deprecated.js.map +1 -1
  253. package/build/group/edit.js +55 -50
  254. package/build/group/edit.js.map +1 -1
  255. package/build/group/edit.native.js +14 -12
  256. package/build/group/edit.native.js.map +1 -1
  257. package/build/group/placeholder.js +48 -42
  258. package/build/group/placeholder.js.map +1 -1
  259. package/build/group/save.js +2 -2
  260. package/build/group/save.js.map +1 -1
  261. package/build/heading/deprecated.js +14 -12
  262. package/build/heading/deprecated.js.map +1 -1
  263. package/build/heading/edit.js +33 -30
  264. package/build/heading/edit.js.map +1 -1
  265. package/build/heading/edit.native.js +49 -46
  266. package/build/heading/edit.native.js.map +1 -1
  267. package/build/heading/save.js +6 -5
  268. package/build/heading/save.js.map +1 -1
  269. package/build/home-link/edit.js +25 -21
  270. package/build/home-link/edit.js.map +1 -1
  271. package/build/home-link/save.js +2 -2
  272. package/build/home-link/save.js.map +1 -1
  273. package/build/html/edit.js +32 -22
  274. package/build/html/edit.js.map +1 -1
  275. package/build/html/preview.js +11 -9
  276. package/build/html/preview.js.map +1 -1
  277. package/build/html/save.js +4 -2
  278. package/build/html/save.js.map +1 -1
  279. package/build/image/deprecated.js +130 -103
  280. package/build/image/deprecated.js.map +1 -1
  281. package/build/image/edit.js +51 -44
  282. package/build/image/edit.js.map +1 -1
  283. package/build/image/edit.native.js +153 -132
  284. package/build/image/edit.native.js.map +1 -1
  285. package/build/image/image.js +275 -205
  286. package/build/image/image.js.map +1 -1
  287. package/build/image/save.js +19 -15
  288. package/build/image/save.js.map +1 -1
  289. package/build/index.js +1 -1
  290. package/build/index.js.map +1 -1
  291. package/build/latest-comments/edit.js +55 -50
  292. package/build/latest-comments/edit.js.map +1 -1
  293. package/build/latest-posts/edit.js +238 -212
  294. package/build/latest-posts/edit.js.map +1 -1
  295. package/build/latest-posts/edit.native.js +78 -66
  296. package/build/latest-posts/edit.native.js.map +1 -1
  297. package/build/list/deprecated.js +21 -17
  298. package/build/list/deprecated.js.map +1 -1
  299. package/build/list/edit.js +49 -44
  300. package/build/list/edit.js.map +1 -1
  301. package/build/list/ordered-list-settings.js +53 -50
  302. package/build/list/ordered-list-settings.js.map +1 -1
  303. package/build/list/save.js +5 -4
  304. package/build/list/save.js.map +1 -1
  305. package/build/list/tag-name.js +2 -2
  306. package/build/list/tag-name.js.map +1 -1
  307. package/build/list/tag-name.native.js +2 -2
  308. package/build/list/tag-name.native.js.map +1 -1
  309. package/build/list-item/edit.js +38 -32
  310. package/build/list-item/edit.js.map +1 -1
  311. package/build/list-item/edit.native.js +46 -41
  312. package/build/list-item/edit.native.js.map +1 -1
  313. package/build/list-item/icons.native.js +29 -26
  314. package/build/list-item/icons.native.js.map +1 -1
  315. package/build/list-item/list-style-type.native.js +17 -14
  316. package/build/list-item/list-style-type.native.js.map +1 -1
  317. package/build/list-item/save.js +7 -6
  318. package/build/list-item/save.js.map +1 -1
  319. package/build/loginout/edit.js +31 -24
  320. package/build/loginout/edit.js.map +1 -1
  321. package/build/media-text/deprecated.js +121 -98
  322. package/build/media-text/deprecated.js.map +1 -1
  323. package/build/media-text/edit.js +183 -107
  324. package/build/media-text/edit.js.map +1 -1
  325. package/build/media-text/edit.native.js +55 -31
  326. package/build/media-text/edit.native.js.map +1 -1
  327. package/build/media-text/icon-retry.native.js +10 -9
  328. package/build/media-text/icon-retry.native.js.map +1 -1
  329. package/build/media-text/media-container.js +36 -35
  330. package/build/media-text/media-container.js.map +1 -1
  331. package/build/media-text/media-container.native.js +98 -72
  332. package/build/media-text/media-container.native.js.map +1 -1
  333. package/build/media-text/save.js +31 -26
  334. package/build/media-text/save.js.map +1 -1
  335. package/build/missing/edit.js +14 -10
  336. package/build/missing/edit.js.map +1 -1
  337. package/build/missing/edit.native.js +34 -28
  338. package/build/missing/edit.native.js.map +1 -1
  339. package/build/missing/save.js +4 -2
  340. package/build/missing/save.js.map +1 -1
  341. package/build/more/edit.js +26 -19
  342. package/build/more/edit.js.map +1 -1
  343. package/build/more/edit.native.js +2 -2
  344. package/build/more/edit.native.js.map +1 -1
  345. package/build/more/index.js +2 -1
  346. package/build/more/index.js.map +1 -1
  347. package/build/more/save.js +4 -2
  348. package/build/more/save.js.map +1 -1
  349. package/build/navigation/deprecated.js +7 -7
  350. package/build/navigation/deprecated.js.map +1 -1
  351. package/build/navigation/edit/accessible-description.js +8 -5
  352. package/build/navigation/edit/accessible-description.js.map +1 -1
  353. package/build/navigation/edit/accessible-menu-description.js +5 -4
  354. package/build/navigation/edit/accessible-menu-description.js.map +1 -1
  355. package/build/navigation/edit/deleted-navigation-warning.js +8 -6
  356. package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
  357. package/build/navigation/edit/index.js +277 -229
  358. package/build/navigation/edit/index.js.map +1 -1
  359. package/build/navigation/edit/inner-blocks.js +3 -3
  360. package/build/navigation/edit/inner-blocks.js.map +1 -1
  361. package/build/navigation/edit/leaf-more-menu.js +44 -33
  362. package/build/navigation/edit/leaf-more-menu.js.map +1 -1
  363. package/build/navigation/edit/manage-menus-button.js +5 -4
  364. package/build/navigation/edit/manage-menus-button.js.map +1 -1
  365. package/build/navigation/edit/menu-inspector-controls.js +44 -39
  366. package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
  367. package/build/navigation/edit/navigation-menu-delete-control.js +25 -21
  368. package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  369. package/build/navigation/edit/navigation-menu-name-control.js +2 -2
  370. package/build/navigation/edit/navigation-menu-name-control.js.map +1 -1
  371. package/build/navigation/edit/navigation-menu-selector.js +46 -39
  372. package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
  373. package/build/navigation/edit/overlay-menu-icon.js +16 -15
  374. package/build/navigation/edit/overlay-menu-icon.js.map +1 -1
  375. package/build/navigation/edit/overlay-menu-preview.js +33 -30
  376. package/build/navigation/edit/overlay-menu-preview.js.map +1 -1
  377. package/build/navigation/edit/placeholder/index.js +30 -23
  378. package/build/navigation/edit/placeholder/index.js.map +1 -1
  379. package/build/navigation/edit/placeholder/placeholder-preview.js +10 -8
  380. package/build/navigation/edit/placeholder/placeholder-preview.js.map +1 -1
  381. package/build/navigation/edit/responsive-wrapper.js +35 -27
  382. package/build/navigation/edit/responsive-wrapper.js.map +1 -1
  383. package/build/navigation/edit/unsaved-inner-blocks.js +2 -2
  384. package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  385. package/build/navigation/save.js +2 -2
  386. package/build/navigation/save.js.map +1 -1
  387. package/build/navigation/view.js +1 -1
  388. package/build/navigation/view.js.map +1 -1
  389. package/build/navigation-link/edit.js +183 -150
  390. package/build/navigation-link/edit.js.map +1 -1
  391. package/build/navigation-link/icons.js +8 -7
  392. package/build/navigation-link/icons.js.map +1 -1
  393. package/build/navigation-link/index.js +2 -2
  394. package/build/navigation-link/index.js.map +1 -1
  395. package/build/navigation-link/link-ui.js +104 -89
  396. package/build/navigation-link/link-ui.js.map +1 -1
  397. package/build/navigation-link/save.js +2 -2
  398. package/build/navigation-link/save.js.map +1 -1
  399. package/build/navigation-submenu/edit.js +139 -127
  400. package/build/navigation-submenu/edit.js.map +1 -1
  401. package/build/navigation-submenu/icons.js +8 -7
  402. package/build/navigation-submenu/icons.js.map +1 -1
  403. package/build/navigation-submenu/save.js +2 -2
  404. package/build/navigation-submenu/save.js.map +1 -1
  405. package/build/nextpage/edit.js +7 -4
  406. package/build/nextpage/edit.js.map +1 -1
  407. package/build/nextpage/edit.native.js +11 -10
  408. package/build/nextpage/edit.native.js.map +1 -1
  409. package/build/nextpage/save.js +4 -2
  410. package/build/nextpage/save.js.map +1 -1
  411. package/build/page-list/convert-to-links-modal.js +24 -17
  412. package/build/page-list/convert-to-links-modal.js.map +1 -1
  413. package/build/page-list/edit.js +91 -65
  414. package/build/page-list/edit.js.map +1 -1
  415. package/build/page-list-item/edit.js +29 -21
  416. package/build/page-list-item/edit.js.map +1 -1
  417. package/build/paragraph/deprecated.js +16 -12
  418. package/build/paragraph/deprecated.js.map +1 -1
  419. package/build/paragraph/edit.js +56 -51
  420. package/build/paragraph/edit.js.map +1 -1
  421. package/build/paragraph/edit.native.js +42 -39
  422. package/build/paragraph/edit.native.js.map +1 -1
  423. package/build/paragraph/save.js +6 -5
  424. package/build/paragraph/save.js.map +1 -1
  425. package/build/pattern/edit.js +10 -7
  426. package/build/pattern/edit.js.map +1 -1
  427. package/build/post-author/edit.js +104 -93
  428. package/build/post-author/edit.js.map +1 -1
  429. package/build/post-author-biography/edit.js +19 -16
  430. package/build/post-author-biography/edit.js.map +1 -1
  431. package/build/post-author-name/edit.js +40 -32
  432. package/build/post-author-name/edit.js.map +1 -1
  433. package/build/post-comment/edit.js +23 -20
  434. package/build/post-comment/edit.js.map +1 -1
  435. package/build/post-comment/save.js +2 -2
  436. package/build/post-comment/save.js.map +1 -1
  437. package/build/post-comments-count/edit.js +20 -14
  438. package/build/post-comments-count/edit.js.map +1 -1
  439. package/build/post-comments-form/edit.js +23 -18
  440. package/build/post-comments-form/edit.js.map +1 -1
  441. package/build/post-comments-form/form.js +50 -38
  442. package/build/post-comments-form/form.js.map +1 -1
  443. package/build/post-comments-link/edit.js +23 -16
  444. package/build/post-comments-link/edit.js.map +1 -1
  445. package/build/post-content/edit.js +36 -22
  446. package/build/post-content/edit.js.map +1 -1
  447. package/build/post-date/edit.js +82 -71
  448. package/build/post-date/edit.js.map +1 -1
  449. package/build/post-excerpt/edit.js +66 -46
  450. package/build/post-excerpt/edit.js.map +1 -1
  451. package/build/post-featured-image/dimension-controls.js +119 -109
  452. package/build/post-featured-image/dimension-controls.js.map +1 -1
  453. package/build/post-featured-image/edit.js +109 -86
  454. package/build/post-featured-image/edit.js.map +1 -1
  455. package/build/post-featured-image/overlay-controls.js +44 -41
  456. package/build/post-featured-image/overlay-controls.js.map +1 -1
  457. package/build/post-featured-image/overlay.js +2 -2
  458. package/build/post-featured-image/overlay.js.map +1 -1
  459. package/build/post-navigation-link/edit.js +88 -74
  460. package/build/post-navigation-link/edit.js.map +1 -1
  461. package/build/post-template/edit.js +32 -25
  462. package/build/post-template/edit.js.map +1 -1
  463. package/build/post-template/save.js +2 -2
  464. package/build/post-template/save.js.map +1 -1
  465. package/build/post-terms/edit.js +64 -53
  466. package/build/post-terms/edit.js.map +1 -1
  467. package/build/post-time-to-read/edit.js +18 -15
  468. package/build/post-time-to-read/edit.js.map +1 -1
  469. package/build/post-time-to-read/icon.js +7 -6
  470. package/build/post-time-to-read/icon.js.map +1 -1
  471. package/build/post-title/edit.js +80 -67
  472. package/build/post-title/edit.js.map +1 -1
  473. package/build/preformatted/edit.js +2 -2
  474. package/build/preformatted/edit.js.map +1 -1
  475. package/build/preformatted/edit.native.js +7 -6
  476. package/build/preformatted/edit.native.js.map +1 -1
  477. package/build/preformatted/save.js +7 -6
  478. package/build/preformatted/save.js.map +1 -1
  479. package/build/pullquote/blockquote.native.js +4 -2
  480. package/build/pullquote/blockquote.native.js.map +1 -1
  481. package/build/pullquote/deprecated.js +72 -60
  482. package/build/pullquote/deprecated.js.map +1 -1
  483. package/build/pullquote/edit.js +49 -43
  484. package/build/pullquote/edit.js.map +1 -1
  485. package/build/pullquote/edit.native.js +44 -39
  486. package/build/pullquote/edit.native.js.map +1 -1
  487. package/build/pullquote/figure.native.js +5 -4
  488. package/build/pullquote/figure.native.js.map +1 -1
  489. package/build/pullquote/save.js +12 -9
  490. package/build/pullquote/save.js.map +1 -1
  491. package/build/query/deprecated.js +6 -6
  492. package/build/query/deprecated.js.map +1 -1
  493. package/build/query/edit/enhanced-pagination-modal.js +16 -12
  494. package/build/query/edit/enhanced-pagination-modal.js.map +1 -1
  495. package/build/query/edit/index.js +11 -9
  496. package/build/query/edit/index.js.map +1 -1
  497. package/build/query/edit/inspector-controls/author-control.js +2 -2
  498. package/build/query/edit/inspector-controls/author-control.js.map +1 -1
  499. package/build/query/edit/inspector-controls/create-new-post-link.js +10 -9
  500. package/build/query/edit/inspector-controls/create-new-post-link.js.map +1 -1
  501. package/build/query/edit/inspector-controls/enhanced-pagination-control.js +14 -12
  502. package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  503. package/build/query/edit/inspector-controls/index.js +109 -96
  504. package/build/query/edit/inspector-controls/index.js.map +1 -1
  505. package/build/query/edit/inspector-controls/order-control.js +2 -2
  506. package/build/query/edit/inspector-controls/order-control.js.map +1 -1
  507. package/build/query/edit/inspector-controls/parent-control.js +2 -2
  508. package/build/query/edit/inspector-controls/parent-control.js.map +1 -1
  509. package/build/query/edit/inspector-controls/sticky-control.js +2 -2
  510. package/build/query/edit/inspector-controls/sticky-control.js.map +1 -1
  511. package/build/query/edit/inspector-controls/taxonomy-controls.js +29 -27
  512. package/build/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
  513. package/build/query/edit/pattern-selection-modal.js +24 -20
  514. package/build/query/edit/pattern-selection-modal.js.map +1 -1
  515. package/build/query/edit/query-content.js +51 -44
  516. package/build/query/edit/query-content.js.map +1 -1
  517. package/build/query/edit/query-placeholder.js +43 -38
  518. package/build/query/edit/query-placeholder.js.map +1 -1
  519. package/build/query/edit/query-toolbar.js +83 -70
  520. package/build/query/edit/query-toolbar.js.map +1 -1
  521. package/build/query/icons.js +25 -21
  522. package/build/query/icons.js.map +1 -1
  523. package/build/query/save.js +4 -4
  524. package/build/query/save.js.map +1 -1
  525. package/build/query/variations.js +1 -6
  526. package/build/query/variations.js.map +1 -1
  527. package/build/query-no-results/edit.js +2 -2
  528. package/build/query-no-results/edit.js.map +1 -1
  529. package/build/query-no-results/save.js +4 -4
  530. package/build/query-no-results/save.js.map +1 -1
  531. package/build/query-pagination/deprecated.js +5 -4
  532. package/build/query-pagination/deprecated.js.map +1 -1
  533. package/build/query-pagination/edit.js +25 -20
  534. package/build/query-pagination/edit.js.map +1 -1
  535. package/build/query-pagination/query-pagination-arrow-controls.js +14 -13
  536. package/build/query-pagination/query-pagination-arrow-controls.js.map +1 -1
  537. package/build/query-pagination/query-pagination-label-control.js +2 -2
  538. package/build/query-pagination/query-pagination-label-control.js.map +1 -1
  539. package/build/query-pagination/save.js +2 -2
  540. package/build/query-pagination/save.js.map +1 -1
  541. package/build/query-pagination-next/edit.js +18 -16
  542. package/build/query-pagination-next/edit.js.map +1 -1
  543. package/build/query-pagination-numbers/edit.js +30 -22
  544. package/build/query-pagination-numbers/edit.js.map +1 -1
  545. package/build/query-pagination-previous/edit.js +18 -16
  546. package/build/query-pagination-previous/edit.js.map +1 -1
  547. package/build/query-title/edit.js +61 -43
  548. package/build/query-title/edit.js.map +1 -1
  549. package/build/quote/deprecated.js +48 -43
  550. package/build/quote/deprecated.js.map +1 -1
  551. package/build/quote/edit.js +40 -36
  552. package/build/quote/edit.js.map +1 -1
  553. package/build/quote/save.js +8 -7
  554. package/build/quote/save.js.map +1 -1
  555. package/build/read-more/edit.js +28 -23
  556. package/build/read-more/edit.js.map +1 -1
  557. package/build/rss/edit.js +97 -83
  558. package/build/rss/edit.js.map +1 -1
  559. package/build/search/edit.js +146 -122
  560. package/build/search/edit.js.map +1 -1
  561. package/build/search/edit.native.js +129 -121
  562. package/build/search/edit.native.js.map +1 -1
  563. package/build/search/icons.js +103 -97
  564. package/build/search/icons.js.map +1 -1
  565. package/build/separator/deprecated.js +2 -2
  566. package/build/separator/deprecated.js.map +1 -1
  567. package/build/separator/edit.js +8 -6
  568. package/build/separator/edit.js.map +1 -1
  569. package/build/separator/save.js +2 -2
  570. package/build/separator/save.js.map +1 -1
  571. package/build/shortcode/edit.js +17 -15
  572. package/build/shortcode/edit.js.map +1 -1
  573. package/build/shortcode/edit.native.js +21 -17
  574. package/build/shortcode/edit.native.js.map +1 -1
  575. package/build/shortcode/save.js +4 -2
  576. package/build/shortcode/save.js.map +1 -1
  577. package/build/site-logo/edit.js +209 -171
  578. package/build/site-logo/edit.js.map +1 -1
  579. package/build/site-tagline/edit.js +23 -19
  580. package/build/site-tagline/edit.js.map +1 -1
  581. package/build/site-tagline/icon.js +7 -6
  582. package/build/site-tagline/icon.js.map +1 -1
  583. package/build/site-title/edit.js +61 -50
  584. package/build/site-title/edit.js.map +1 -1
  585. package/build/social-link/edit.js +83 -69
  586. package/build/social-link/edit.js.map +1 -1
  587. package/build/social-link/edit.native.js +48 -39
  588. package/build/social-link/edit.native.js.map +1 -1
  589. package/build/social-link/icons/amazon.js +7 -6
  590. package/build/social-link/icons/amazon.js.map +1 -1
  591. package/build/social-link/icons/bandcamp.js +7 -6
  592. package/build/social-link/icons/bandcamp.js.map +1 -1
  593. package/build/social-link/icons/behance.js +7 -6
  594. package/build/social-link/icons/behance.js.map +1 -1
  595. package/build/social-link/icons/bluesky.js +23 -0
  596. package/build/social-link/icons/bluesky.js.map +1 -0
  597. package/build/social-link/icons/chain.js +7 -6
  598. package/build/social-link/icons/chain.js.map +1 -1
  599. package/build/social-link/icons/codepen.js +7 -6
  600. package/build/social-link/icons/codepen.js.map +1 -1
  601. package/build/social-link/icons/deviantart.js +7 -6
  602. package/build/social-link/icons/deviantart.js.map +1 -1
  603. package/build/social-link/icons/dribbble.js +7 -6
  604. package/build/social-link/icons/dribbble.js.map +1 -1
  605. package/build/social-link/icons/dropbox.js +7 -6
  606. package/build/social-link/icons/dropbox.js.map +1 -1
  607. package/build/social-link/icons/etsy.js +7 -6
  608. package/build/social-link/icons/etsy.js.map +1 -1
  609. package/build/social-link/icons/facebook.js +7 -6
  610. package/build/social-link/icons/facebook.js.map +1 -1
  611. package/build/social-link/icons/feed.js +7 -6
  612. package/build/social-link/icons/feed.js.map +1 -1
  613. package/build/social-link/icons/fivehundredpx.js +7 -6
  614. package/build/social-link/icons/fivehundredpx.js.map +1 -1
  615. package/build/social-link/icons/flickr.js +7 -6
  616. package/build/social-link/icons/flickr.js.map +1 -1
  617. package/build/social-link/icons/foursquare.js +7 -6
  618. package/build/social-link/icons/foursquare.js.map +1 -1
  619. package/build/social-link/icons/github.js +7 -6
  620. package/build/social-link/icons/github.js.map +1 -1
  621. package/build/social-link/icons/goodreads.js +7 -6
  622. package/build/social-link/icons/goodreads.js.map +1 -1
  623. package/build/social-link/icons/google.js +7 -6
  624. package/build/social-link/icons/google.js.map +1 -1
  625. package/build/social-link/icons/gravatar.js +7 -6
  626. package/build/social-link/icons/gravatar.js.map +1 -1
  627. package/build/social-link/icons/index.js +11 -0
  628. package/build/social-link/icons/index.js.map +1 -1
  629. package/build/social-link/icons/instagram.js +7 -6
  630. package/build/social-link/icons/instagram.js.map +1 -1
  631. package/build/social-link/icons/lastfm.js +7 -6
  632. package/build/social-link/icons/lastfm.js.map +1 -1
  633. package/build/social-link/icons/linkedin.js +7 -6
  634. package/build/social-link/icons/linkedin.js.map +1 -1
  635. package/build/social-link/icons/mail.js +7 -6
  636. package/build/social-link/icons/mail.js.map +1 -1
  637. package/build/social-link/icons/mastodon.js +7 -6
  638. package/build/social-link/icons/mastodon.js.map +1 -1
  639. package/build/social-link/icons/medium.js +7 -6
  640. package/build/social-link/icons/medium.js.map +1 -1
  641. package/build/social-link/icons/meetup.js +7 -6
  642. package/build/social-link/icons/meetup.js.map +1 -1
  643. package/build/social-link/icons/patreon.js +7 -6
  644. package/build/social-link/icons/patreon.js.map +1 -1
  645. package/build/social-link/icons/pinterest.js +7 -6
  646. package/build/social-link/icons/pinterest.js.map +1 -1
  647. package/build/social-link/icons/pocket.js +7 -6
  648. package/build/social-link/icons/pocket.js.map +1 -1
  649. package/build/social-link/icons/reddit.js +7 -6
  650. package/build/social-link/icons/reddit.js.map +1 -1
  651. package/build/social-link/icons/skype.js +7 -6
  652. package/build/social-link/icons/skype.js.map +1 -1
  653. package/build/social-link/icons/snapchat.js +7 -6
  654. package/build/social-link/icons/snapchat.js.map +1 -1
  655. package/build/social-link/icons/soundcloud.js +7 -6
  656. package/build/social-link/icons/soundcloud.js.map +1 -1
  657. package/build/social-link/icons/spotify.js +7 -6
  658. package/build/social-link/icons/spotify.js.map +1 -1
  659. package/build/social-link/icons/telegram.js +7 -6
  660. package/build/social-link/icons/telegram.js.map +1 -1
  661. package/build/social-link/icons/threads.js +7 -6
  662. package/build/social-link/icons/threads.js.map +1 -1
  663. package/build/social-link/icons/tiktok.js +7 -6
  664. package/build/social-link/icons/tiktok.js.map +1 -1
  665. package/build/social-link/icons/tumblr.js +7 -6
  666. package/build/social-link/icons/tumblr.js.map +1 -1
  667. package/build/social-link/icons/twitch.js +7 -6
  668. package/build/social-link/icons/twitch.js.map +1 -1
  669. package/build/social-link/icons/twitter.js +7 -6
  670. package/build/social-link/icons/twitter.js.map +1 -1
  671. package/build/social-link/icons/vimeo.js +7 -6
  672. package/build/social-link/icons/vimeo.js.map +1 -1
  673. package/build/social-link/icons/vk.js +7 -6
  674. package/build/social-link/icons/vk.js.map +1 -1
  675. package/build/social-link/icons/whatsapp.js +7 -6
  676. package/build/social-link/icons/whatsapp.js.map +1 -1
  677. package/build/social-link/icons/wordpress.js +7 -6
  678. package/build/social-link/icons/wordpress.js.map +1 -1
  679. package/build/social-link/icons/x.js +7 -6
  680. package/build/social-link/icons/x.js.map +1 -1
  681. package/build/social-link/icons/yelp.js +7 -6
  682. package/build/social-link/icons/yelp.js.map +1 -1
  683. package/build/social-link/icons/youtube.js +7 -6
  684. package/build/social-link/icons/youtube.js.map +1 -1
  685. package/build/social-link/variations.js +7 -0
  686. package/build/social-link/variations.js.map +1 -1
  687. package/build/social-links/deprecated.js +6 -6
  688. package/build/social-links/deprecated.js.map +1 -1
  689. package/build/social-links/edit.js +92 -80
  690. package/build/social-links/edit.js.map +1 -1
  691. package/build/social-links/edit.native.js +16 -15
  692. package/build/social-links/edit.native.js.map +1 -1
  693. package/build/social-links/save.js +2 -2
  694. package/build/social-links/save.js.map +1 -1
  695. package/build/spacer/controls.js +58 -46
  696. package/build/spacer/controls.js.map +1 -1
  697. package/build/spacer/controls.native.js +16 -13
  698. package/build/spacer/controls.native.js.map +1 -1
  699. package/build/spacer/deprecated.js +2 -2
  700. package/build/spacer/deprecated.js.map +1 -1
  701. package/build/spacer/edit.js +47 -38
  702. package/build/spacer/edit.js.map +1 -1
  703. package/build/spacer/edit.native.js +12 -9
  704. package/build/spacer/edit.native.js.map +1 -1
  705. package/build/spacer/save.js +2 -2
  706. package/build/spacer/save.js.map +1 -1
  707. package/build/spacer/save.native.js +2 -2
  708. package/build/spacer/save.native.js.map +1 -1
  709. package/build/table/deprecated.js +168 -157
  710. package/build/table/deprecated.js.map +1 -1
  711. package/build/table/edit.js +143 -129
  712. package/build/table/edit.js.map +1 -1
  713. package/build/table/save.js +52 -49
  714. package/build/table/save.js.map +1 -1
  715. package/build/table-of-contents/edit.js +53 -38
  716. package/build/table-of-contents/edit.js.map +1 -1
  717. package/build/table-of-contents/list.js +28 -22
  718. package/build/table-of-contents/list.js.map +1 -1
  719. package/build/table-of-contents/save.js +9 -6
  720. package/build/table-of-contents/save.js.map +1 -1
  721. package/build/tag-cloud/edit.js +71 -60
  722. package/build/tag-cloud/edit.js.map +1 -1
  723. package/build/template-part/edit/advanced-controls.js +59 -55
  724. package/build/template-part/edit/advanced-controls.js.map +1 -1
  725. package/build/template-part/edit/import-controls.js +33 -27
  726. package/build/template-part/edit/import-controls.js.map +1 -1
  727. package/build/template-part/edit/index.js +110 -89
  728. package/build/template-part/edit/index.js.map +1 -1
  729. package/build/template-part/edit/inner-blocks.js +4 -4
  730. package/build/template-part/edit/inner-blocks.js.map +1 -1
  731. package/build/template-part/edit/placeholder.js +21 -18
  732. package/build/template-part/edit/placeholder.js.map +1 -1
  733. package/build/template-part/edit/selection-modal.js +29 -20
  734. package/build/template-part/edit/selection-modal.js.map +1 -1
  735. package/build/template-part/edit/title-modal.js +25 -20
  736. package/build/template-part/edit/title-modal.js.map +1 -1
  737. package/build/term-description/edit.js +22 -15
  738. package/build/term-description/edit.js.map +1 -1
  739. package/build/text-columns/edit.js +53 -44
  740. package/build/text-columns/edit.js.map +1 -1
  741. package/build/text-columns/save.js +13 -12
  742. package/build/text-columns/save.js.map +1 -1
  743. package/build/utils/caption.js +34 -31
  744. package/build/utils/caption.js.map +1 -1
  745. package/build/utils/hooks.js +9 -0
  746. package/build/utils/hooks.js.map +1 -1
  747. package/build/verse/deprecated.js +7 -6
  748. package/build/verse/deprecated.js.map +1 -1
  749. package/build/verse/edit.js +31 -27
  750. package/build/verse/edit.js.map +1 -1
  751. package/build/verse/save.js +6 -5
  752. package/build/verse/save.js.map +1 -1
  753. package/build/video/deprecated.js +20 -18
  754. package/build/video/deprecated.js.map +1 -1
  755. package/build/video/edit-common-settings.js +39 -35
  756. package/build/video/edit-common-settings.js.map +1 -1
  757. package/build/video/edit.js +103 -80
  758. package/build/video/edit.js.map +1 -1
  759. package/build/video/edit.native.js +100 -85
  760. package/build/video/edit.native.js.map +1 -1
  761. package/build/video/icon-retry.native.js +10 -9
  762. package/build/video/icon-retry.native.js.map +1 -1
  763. package/build/video/save.js +21 -19
  764. package/build/video/save.js.map +1 -1
  765. package/build/video/tracks-editor.js +188 -158
  766. package/build/video/tracks-editor.js.map +1 -1
  767. package/build/video/tracks.js +3 -4
  768. package/build/video/tracks.js.map +1 -1
  769. package/build-module/archives/edit.js +61 -51
  770. package/build-module/archives/edit.js.map +1 -1
  771. package/build-module/audio/deprecated.js +14 -11
  772. package/build-module/audio/deprecated.js.map +1 -1
  773. package/build-module/audio/edit.js +85 -74
  774. package/build-module/audio/edit.js.map +1 -1
  775. package/build-module/audio/edit.native.js +101 -85
  776. package/build-module/audio/edit.native.js.map +1 -1
  777. package/build-module/audio/save.js +16 -14
  778. package/build-module/audio/save.js.map +1 -1
  779. package/build-module/avatar/edit.js +122 -109
  780. package/build-module/avatar/edit.js.map +1 -1
  781. package/build-module/avatar/user-control.js +2 -2
  782. package/build-module/avatar/user-control.js.map +1 -1
  783. package/build-module/block/edit-title.native.js +30 -24
  784. package/build-module/block/edit-title.native.js.map +1 -1
  785. package/build-module/block/edit.js +48 -32
  786. package/build-module/block/edit.js.map +1 -1
  787. package/build-module/block/edit.native.js +51 -39
  788. package/build-module/block/edit.native.js.map +1 -1
  789. package/build-module/button/color-background.native.js +15 -13
  790. package/build-module/button/color-background.native.js.map +1 -1
  791. package/build-module/button/deprecated.js +118 -105
  792. package/build-module/button/deprecated.js.map +1 -1
  793. package/build-module/button/edit.js +126 -109
  794. package/build-module/button/edit.js.map +1 -1
  795. package/build-module/button/edit.native.js +87 -71
  796. package/build-module/button/edit.native.js.map +1 -1
  797. package/build-module/button/save.js +14 -16
  798. package/build-module/button/save.js.map +1 -1
  799. package/build-module/buttons/deprecated.js +8 -5
  800. package/build-module/buttons/deprecated.js.map +1 -1
  801. package/build-module/buttons/edit.js +2 -2
  802. package/build-module/buttons/edit.js.map +1 -1
  803. package/build-module/buttons/edit.native.js +40 -34
  804. package/build-module/buttons/edit.native.js.map +1 -1
  805. package/build-module/buttons/save.js +2 -2
  806. package/build-module/buttons/save.js.map +1 -1
  807. package/build-module/calendar/edit.js +21 -16
  808. package/build-module/calendar/edit.js.map +1 -1
  809. package/build-module/categories/edit.js +73 -56
  810. package/build-module/categories/edit.js.map +1 -1
  811. package/build-module/code/edit.js +19 -18
  812. package/build-module/code/edit.js.map +1 -1
  813. package/build-module/code/edit.native.js +22 -21
  814. package/build-module/code/edit.native.js.map +1 -1
  815. package/build-module/code/save.js +14 -13
  816. package/build-module/code/save.js.map +1 -1
  817. package/build-module/column/column-preview.native.js +14 -15
  818. package/build-module/column/column-preview.native.js.map +1 -1
  819. package/build-module/column/deprecated.js +5 -4
  820. package/build-module/column/deprecated.js.map +1 -1
  821. package/build-module/column/edit.js +35 -26
  822. package/build-module/column/edit.js.map +1 -1
  823. package/build-module/column/edit.native.js +54 -38
  824. package/build-module/column/edit.native.js.map +1 -1
  825. package/build-module/column/save.js +2 -2
  826. package/build-module/column/save.js.map +1 -1
  827. package/build-module/columns/deprecated.js +13 -10
  828. package/build-module/columns/deprecated.js.map +1 -1
  829. package/build-module/columns/edit.js +63 -50
  830. package/build-module/columns/edit.js.map +1 -1
  831. package/build-module/columns/edit.native.js +72 -57
  832. package/build-module/columns/edit.native.js.map +1 -1
  833. package/build-module/columns/save.js +2 -2
  834. package/build-module/columns/save.js.map +1 -1
  835. package/build-module/columns/variations.js +37 -31
  836. package/build-module/columns/variations.js.map +1 -1
  837. package/build-module/comment-author-avatar/edit.js +35 -26
  838. package/build-module/comment-author-avatar/edit.js.map +1 -1
  839. package/build-module/comment-author-name/edit.js +41 -31
  840. package/build-module/comment-author-name/edit.js.map +1 -1
  841. package/build-module/comment-content/edit.js +29 -16
  842. package/build-module/comment-content/edit.js.map +1 -1
  843. package/build-module/comment-date/edit.js +37 -25
  844. package/build-module/comment-date/edit.js.map +1 -1
  845. package/build-module/comment-edit-link/edit.js +34 -24
  846. package/build-module/comment-edit-link/edit.js.map +1 -1
  847. package/build-module/comment-reply-link/edit.js +21 -14
  848. package/build-module/comment-reply-link/edit.js.map +1 -1
  849. package/build-module/comment-template/edit.js +51 -46
  850. package/build-module/comment-template/edit.js.map +1 -1
  851. package/build-module/comment-template/save.js +2 -2
  852. package/build-module/comment-template/save.js.map +1 -1
  853. package/build-module/comments/deprecated.js +5 -4
  854. package/build-module/comments/deprecated.js.map +1 -1
  855. package/build-module/comments/edit/comments-inspector-controls.js +26 -23
  856. package/build-module/comments/edit/comments-inspector-controls.js.map +1 -1
  857. package/build-module/comments/edit/comments-legacy.js +29 -22
  858. package/build-module/comments/edit/comments-legacy.js.map +1 -1
  859. package/build-module/comments/edit/index.js +12 -8
  860. package/build-module/comments/edit/index.js.map +1 -1
  861. package/build-module/comments/edit/placeholder.js +110 -77
  862. package/build-module/comments/edit/placeholder.js.map +1 -1
  863. package/build-module/comments/save.js +2 -2
  864. package/build-module/comments/save.js.map +1 -1
  865. package/build-module/comments-pagination/comments-pagination-arrow-controls.js +15 -13
  866. package/build-module/comments-pagination/comments-pagination-arrow-controls.js.map +1 -1
  867. package/build-module/comments-pagination/edit.js +23 -14
  868. package/build-module/comments-pagination/edit.js.map +1 -1
  869. package/build-module/comments-pagination/save.js +2 -2
  870. package/build-module/comments-pagination/save.js.map +1 -1
  871. package/build-module/comments-pagination-next/edit.js +18 -15
  872. package/build-module/comments-pagination-next/edit.js.map +1 -1
  873. package/build-module/comments-pagination-numbers/edit.js +31 -27
  874. package/build-module/comments-pagination-numbers/edit.js.map +1 -1
  875. package/build-module/comments-pagination-previous/edit.js +18 -15
  876. package/build-module/comments-pagination-previous/edit.js.map +1 -1
  877. package/build-module/comments-title/edit.js +42 -33
  878. package/build-module/comments-title/edit.js.map +1 -1
  879. package/build-module/cover/controls.native.js +126 -113
  880. package/build-module/cover/controls.native.js.map +1 -1
  881. package/build-module/cover/deprecated.js +381 -363
  882. package/build-module/cover/deprecated.js.map +1 -1
  883. package/build-module/cover/edit/block-controls.js +32 -26
  884. package/build-module/cover/edit/block-controls.js.map +1 -1
  885. package/build-module/cover/edit/cover-placeholder.js +6 -5
  886. package/build-module/cover/edit/cover-placeholder.js.map +1 -1
  887. package/build-module/cover/edit/index.js +94 -84
  888. package/build-module/cover/edit/index.js.map +1 -1
  889. package/build-module/cover/edit/inspector-controls.js +169 -147
  890. package/build-module/cover/edit/inspector-controls.js.map +1 -1
  891. package/build-module/cover/edit/resizable-cover-popover.js +2 -2
  892. package/build-module/cover/edit/resizable-cover-popover.js.map +1 -1
  893. package/build-module/cover/edit.native.js +237 -195
  894. package/build-module/cover/edit.native.js.map +1 -1
  895. package/build-module/cover/focal-point-settings-button.native.js +10 -8
  896. package/build-module/cover/focal-point-settings-button.native.js.map +1 -1
  897. package/build-module/cover/index.js +1 -0
  898. package/build-module/cover/index.js.map +1 -1
  899. package/build-module/cover/overlay-color-settings.native.js +3 -4
  900. package/build-module/cover/overlay-color-settings.native.js.map +1 -1
  901. package/build-module/cover/save.js +50 -48
  902. package/build-module/cover/save.js.map +1 -1
  903. package/build-module/details/edit.js +34 -25
  904. package/build-module/details/edit.js.map +1 -1
  905. package/build-module/details/save.js +10 -6
  906. package/build-module/details/save.js.map +1 -1
  907. package/build-module/embed/deprecated.js +19 -15
  908. package/build-module/embed/deprecated.js.map +1 -1
  909. package/build-module/embed/edit.js +62 -55
  910. package/build-module/embed/edit.js.map +1 -1
  911. package/build-module/embed/edit.native.js +67 -56
  912. package/build-module/embed/edit.native.js.map +1 -1
  913. package/build-module/embed/embed-controls.js +27 -16
  914. package/build-module/embed/embed-controls.js.map +1 -1
  915. package/build-module/embed/embed-controls.native.js +26 -18
  916. package/build-module/embed/embed-controls.native.js.map +1 -1
  917. package/build-module/embed/embed-link-settings.native.js +3 -3
  918. package/build-module/embed/embed-link-settings.native.js.map +1 -1
  919. package/build-module/embed/embed-loading.js +5 -4
  920. package/build-module/embed/embed-loading.js.map +1 -1
  921. package/build-module/embed/embed-loading.native.js +7 -6
  922. package/build-module/embed/embed-loading.native.js.map +1 -1
  923. package/build-module/embed/embed-no-preview.native.js +89 -70
  924. package/build-module/embed/embed-no-preview.native.js.map +1 -1
  925. package/build-module/embed/embed-placeholder.js +47 -36
  926. package/build-module/embed/embed-placeholder.js.map +1 -1
  927. package/build-module/embed/embed-placeholder.native.js +60 -44
  928. package/build-module/embed/embed-placeholder.native.js.map +1 -1
  929. package/build-module/embed/embed-preview.js +45 -38
  930. package/build-module/embed/embed-preview.js.map +1 -1
  931. package/build-module/embed/embed-preview.native.js +48 -39
  932. package/build-module/embed/embed-preview.native.js.map +1 -1
  933. package/build-module/embed/icons.js +165 -135
  934. package/build-module/embed/icons.js.map +1 -1
  935. package/build-module/embed/save.js +13 -10
  936. package/build-module/embed/save.js.map +1 -1
  937. package/build-module/embed/util.js +15 -12
  938. package/build-module/embed/util.js.map +1 -1
  939. package/build-module/embed/variations.js +0 -10
  940. package/build-module/embed/variations.js.map +1 -1
  941. package/build-module/embed/wp-embed-preview.js +9 -9
  942. package/build-module/embed/wp-embed-preview.js.map +1 -1
  943. package/build-module/embed/wp-embed-preview.native.js +2 -2
  944. package/build-module/embed/wp-embed-preview.native.js.map +1 -1
  945. package/build-module/file/deprecated.js +94 -77
  946. package/build-module/file/deprecated.js.map +1 -1
  947. package/build-module/file/edit.js +112 -101
  948. package/build-module/file/edit.js.map +1 -1
  949. package/build-module/file/edit.native.js +107 -92
  950. package/build-module/file/edit.native.js.map +1 -1
  951. package/build-module/file/inspector.js +44 -36
  952. package/build-module/file/inspector.js.map +1 -1
  953. package/build-module/file/save.js +34 -27
  954. package/build-module/file/save.js.map +1 -1
  955. package/build-module/footnotes/edit.js +70 -63
  956. package/build-module/footnotes/edit.js.map +1 -1
  957. package/build-module/footnotes/format.js +2 -2
  958. package/build-module/footnotes/format.js.map +1 -1
  959. package/build-module/form/edit.js +81 -73
  960. package/build-module/form/edit.js.map +1 -1
  961. package/build-module/form/save.js +8 -8
  962. package/build-module/form/save.js.map +1 -1
  963. package/build-module/form-input/deprecated.js +20 -17
  964. package/build-module/form-input/deprecated.js.map +1 -1
  965. package/build-module/form-input/edit.js +88 -76
  966. package/build-module/form-input/edit.js.map +1 -1
  967. package/build-module/form-input/save.js +24 -20
  968. package/build-module/form-input/save.js.map +1 -1
  969. package/build-module/form-submission-notification/edit.js +2 -2
  970. package/build-module/form-submission-notification/edit.js.map +1 -1
  971. package/build-module/form-submission-notification/save.js +2 -2
  972. package/build-module/form-submission-notification/save.js.map +1 -1
  973. package/build-module/form-submit-button/edit.js +2 -2
  974. package/build-module/form-submit-button/edit.js.map +1 -1
  975. package/build-module/form-submit-button/save.js +7 -7
  976. package/build-module/form-submit-button/save.js.map +1 -1
  977. package/build-module/freeform/convert-to-blocks-button.js +5 -4
  978. package/build-module/freeform/convert-to-blocks-button.js.map +1 -1
  979. package/build-module/freeform/edit.js +39 -26
  980. package/build-module/freeform/edit.js.map +1 -1
  981. package/build-module/freeform/edit.native.js +2 -2
  982. package/build-module/freeform/edit.native.js.map +1 -1
  983. package/build-module/freeform/modal.js +54 -35
  984. package/build-module/freeform/modal.js.map +1 -1
  985. package/build-module/freeform/save.js +4 -2
  986. package/build-module/freeform/save.js.map +1 -1
  987. package/build-module/gallery/deprecated.js +226 -199
  988. package/build-module/gallery/deprecated.js.map +1 -1
  989. package/build-module/gallery/edit-wrapper.js +3 -3
  990. package/build-module/gallery/edit-wrapper.js.map +1 -1
  991. package/build-module/gallery/edit.js +91 -76
  992. package/build-module/gallery/edit.js.map +1 -1
  993. package/build-module/gallery/gallery.js +18 -15
  994. package/build-module/gallery/gallery.js.map +1 -1
  995. package/build-module/gallery/gallery.native.js +22 -19
  996. package/build-module/gallery/gallery.native.js.map +1 -1
  997. package/build-module/gallery/save.js +10 -8
  998. package/build-module/gallery/save.js.map +1 -1
  999. package/build-module/gallery/shared-icon.js +2 -2
  1000. package/build-module/gallery/shared-icon.js.map +1 -1
  1001. package/build-module/gallery/v1/edit.js +59 -51
  1002. package/build-module/gallery/v1/edit.js.map +1 -1
  1003. package/build-module/gallery/v1/gallery-button.native.js +10 -9
  1004. package/build-module/gallery/v1/gallery-button.native.js.map +1 -1
  1005. package/build-module/gallery/v1/gallery-image.js +86 -64
  1006. package/build-module/gallery/v1/gallery-image.js.map +1 -1
  1007. package/build-module/gallery/v1/gallery-image.native.js +77 -65
  1008. package/build-module/gallery/v1/gallery-image.native.js.map +1 -1
  1009. package/build-module/gallery/v1/gallery.js +45 -42
  1010. package/build-module/gallery/v1/gallery.js.map +1 -1
  1011. package/build-module/gallery/v1/gallery.native.js +47 -44
  1012. package/build-module/gallery/v1/gallery.native.js.map +1 -1
  1013. package/build-module/gallery/v1/save.js +43 -37
  1014. package/build-module/gallery/v1/save.js.map +1 -1
  1015. package/build-module/gallery/v1/tiles.native.js +9 -7
  1016. package/build-module/gallery/v1/tiles.native.js.map +1 -1
  1017. package/build-module/group/deprecated.js +27 -20
  1018. package/build-module/group/deprecated.js.map +1 -1
  1019. package/build-module/group/edit.js +56 -48
  1020. package/build-module/group/edit.js.map +1 -1
  1021. package/build-module/group/edit.native.js +15 -12
  1022. package/build-module/group/edit.native.js.map +1 -1
  1023. package/build-module/group/placeholder.js +47 -40
  1024. package/build-module/group/placeholder.js.map +1 -1
  1025. package/build-module/group/save.js +2 -2
  1026. package/build-module/group/save.js.map +1 -1
  1027. package/build-module/heading/deprecated.js +14 -12
  1028. package/build-module/heading/deprecated.js.map +1 -1
  1029. package/build-module/heading/edit.js +35 -30
  1030. package/build-module/heading/edit.js.map +1 -1
  1031. package/build-module/heading/edit.native.js +51 -46
  1032. package/build-module/heading/edit.native.js.map +1 -1
  1033. package/build-module/heading/save.js +6 -5
  1034. package/build-module/heading/save.js.map +1 -1
  1035. package/build-module/home-link/edit.js +26 -21
  1036. package/build-module/home-link/edit.js.map +1 -1
  1037. package/build-module/home-link/save.js +2 -2
  1038. package/build-module/home-link/save.js.map +1 -1
  1039. package/build-module/html/edit.js +34 -22
  1040. package/build-module/html/edit.js.map +1 -1
  1041. package/build-module/html/preview.js +13 -9
  1042. package/build-module/html/preview.js.map +1 -1
  1043. package/build-module/html/save.js +4 -2
  1044. package/build-module/html/save.js.map +1 -1
  1045. package/build-module/image/deprecated.js +131 -101
  1046. package/build-module/image/deprecated.js.map +1 -1
  1047. package/build-module/image/edit.js +52 -44
  1048. package/build-module/image/edit.js.map +1 -1
  1049. package/build-module/image/edit.native.js +155 -132
  1050. package/build-module/image/edit.native.js.map +1 -1
  1051. package/build-module/image/image.js +277 -205
  1052. package/build-module/image/image.js.map +1 -1
  1053. package/build-module/image/save.js +21 -15
  1054. package/build-module/image/save.js.map +1 -1
  1055. package/build-module/index.js +1 -1
  1056. package/build-module/index.js.map +1 -1
  1057. package/build-module/latest-comments/edit.js +55 -48
  1058. package/build-module/latest-comments/edit.js.map +1 -1
  1059. package/build-module/latest-posts/edit.js +239 -210
  1060. package/build-module/latest-posts/edit.js.map +1 -1
  1061. package/build-module/latest-posts/edit.native.js +80 -66
  1062. package/build-module/latest-posts/edit.native.js.map +1 -1
  1063. package/build-module/list/deprecated.js +21 -17
  1064. package/build-module/list/deprecated.js.map +1 -1
  1065. package/build-module/list/edit.js +51 -44
  1066. package/build-module/list/edit.js.map +1 -1
  1067. package/build-module/list/ordered-list-settings.js +54 -50
  1068. package/build-module/list/ordered-list-settings.js.map +1 -1
  1069. package/build-module/list/save.js +5 -4
  1070. package/build-module/list/save.js.map +1 -1
  1071. package/build-module/list/tag-name.js +2 -2
  1072. package/build-module/list/tag-name.js.map +1 -1
  1073. package/build-module/list/tag-name.native.js +2 -2
  1074. package/build-module/list/tag-name.native.js.map +1 -1
  1075. package/build-module/list-item/edit.js +40 -32
  1076. package/build-module/list-item/edit.js.map +1 -1
  1077. package/build-module/list-item/edit.native.js +47 -41
  1078. package/build-module/list-item/edit.native.js.map +1 -1
  1079. package/build-module/list-item/icons.native.js +29 -26
  1080. package/build-module/list-item/icons.native.js.map +1 -1
  1081. package/build-module/list-item/list-style-type.native.js +18 -14
  1082. package/build-module/list-item/list-style-type.native.js.map +1 -1
  1083. package/build-module/list-item/save.js +8 -6
  1084. package/build-module/list-item/save.js.map +1 -1
  1085. package/build-module/loginout/edit.js +33 -24
  1086. package/build-module/loginout/edit.js.map +1 -1
  1087. package/build-module/media-text/deprecated.js +122 -98
  1088. package/build-module/media-text/deprecated.js.map +1 -1
  1089. package/build-module/media-text/edit.js +186 -109
  1090. package/build-module/media-text/edit.js.map +1 -1
  1091. package/build-module/media-text/edit.native.js +57 -31
  1092. package/build-module/media-text/edit.native.js.map +1 -1
  1093. package/build-module/media-text/icon-retry.native.js +11 -9
  1094. package/build-module/media-text/icon-retry.native.js.map +1 -1
  1095. package/build-module/media-text/media-container.js +36 -33
  1096. package/build-module/media-text/media-container.js.map +1 -1
  1097. package/build-module/media-text/media-container.native.js +99 -70
  1098. package/build-module/media-text/media-container.native.js.map +1 -1
  1099. package/build-module/media-text/save.js +32 -26
  1100. package/build-module/media-text/save.js.map +1 -1
  1101. package/build-module/missing/edit.js +15 -10
  1102. package/build-module/missing/edit.js.map +1 -1
  1103. package/build-module/missing/edit.native.js +35 -28
  1104. package/build-module/missing/edit.native.js.map +1 -1
  1105. package/build-module/missing/save.js +4 -2
  1106. package/build-module/missing/save.js.map +1 -1
  1107. package/build-module/more/edit.js +28 -19
  1108. package/build-module/more/edit.js.map +1 -1
  1109. package/build-module/more/edit.native.js +2 -2
  1110. package/build-module/more/edit.native.js.map +1 -1
  1111. package/build-module/more/index.js +2 -1
  1112. package/build-module/more/index.js.map +1 -1
  1113. package/build-module/more/save.js +4 -2
  1114. package/build-module/more/save.js.map +1 -1
  1115. package/build-module/navigation/deprecated.js +7 -7
  1116. package/build-module/navigation/deprecated.js.map +1 -1
  1117. package/build-module/navigation/edit/accessible-description.js +8 -5
  1118. package/build-module/navigation/edit/accessible-description.js.map +1 -1
  1119. package/build-module/navigation/edit/accessible-menu-description.js +5 -4
  1120. package/build-module/navigation/edit/accessible-menu-description.js.map +1 -1
  1121. package/build-module/navigation/edit/deleted-navigation-warning.js +8 -6
  1122. package/build-module/navigation/edit/deleted-navigation-warning.js.map +1 -1
  1123. package/build-module/navigation/edit/index.js +279 -229
  1124. package/build-module/navigation/edit/index.js.map +1 -1
  1125. package/build-module/navigation/edit/inner-blocks.js +3 -3
  1126. package/build-module/navigation/edit/inner-blocks.js.map +1 -1
  1127. package/build-module/navigation/edit/leaf-more-menu.js +46 -33
  1128. package/build-module/navigation/edit/leaf-more-menu.js.map +1 -1
  1129. package/build-module/navigation/edit/manage-menus-button.js +5 -4
  1130. package/build-module/navigation/edit/manage-menus-button.js.map +1 -1
  1131. package/build-module/navigation/edit/menu-inspector-controls.js +44 -37
  1132. package/build-module/navigation/edit/menu-inspector-controls.js.map +1 -1
  1133. package/build-module/navigation/edit/navigation-menu-delete-control.js +27 -21
  1134. package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  1135. package/build-module/navigation/edit/navigation-menu-name-control.js +2 -2
  1136. package/build-module/navigation/edit/navigation-menu-name-control.js.map +1 -1
  1137. package/build-module/navigation/edit/navigation-menu-selector.js +48 -39
  1138. package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -1
  1139. package/build-module/navigation/edit/overlay-menu-icon.js +17 -15
  1140. package/build-module/navigation/edit/overlay-menu-icon.js.map +1 -1
  1141. package/build-module/navigation/edit/overlay-menu-preview.js +35 -30
  1142. package/build-module/navigation/edit/overlay-menu-preview.js.map +1 -1
  1143. package/build-module/navigation/edit/placeholder/index.js +32 -23
  1144. package/build-module/navigation/edit/placeholder/index.js.map +1 -1
  1145. package/build-module/navigation/edit/placeholder/placeholder-preview.js +11 -8
  1146. package/build-module/navigation/edit/placeholder/placeholder-preview.js.map +1 -1
  1147. package/build-module/navigation/edit/responsive-wrapper.js +37 -27
  1148. package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
  1149. package/build-module/navigation/edit/unsaved-inner-blocks.js +2 -2
  1150. package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  1151. package/build-module/navigation/save.js +2 -2
  1152. package/build-module/navigation/save.js.map +1 -1
  1153. package/build-module/navigation/view.js +1 -1
  1154. package/build-module/navigation/view.js.map +1 -1
  1155. package/build-module/navigation-link/edit.js +185 -150
  1156. package/build-module/navigation-link/edit.js.map +1 -1
  1157. package/build-module/navigation-link/icons.js +8 -7
  1158. package/build-module/navigation-link/icons.js.map +1 -1
  1159. package/build-module/navigation-link/index.js +2 -2
  1160. package/build-module/navigation-link/index.js.map +1 -1
  1161. package/build-module/navigation-link/link-ui.js +105 -88
  1162. package/build-module/navigation-link/link-ui.js.map +1 -1
  1163. package/build-module/navigation-link/save.js +2 -2
  1164. package/build-module/navigation-link/save.js.map +1 -1
  1165. package/build-module/navigation-submenu/edit.js +141 -127
  1166. package/build-module/navigation-submenu/edit.js.map +1 -1
  1167. package/build-module/navigation-submenu/icons.js +8 -7
  1168. package/build-module/navigation-submenu/icons.js.map +1 -1
  1169. package/build-module/navigation-submenu/save.js +2 -2
  1170. package/build-module/navigation-submenu/save.js.map +1 -1
  1171. package/build-module/nextpage/edit.js +7 -4
  1172. package/build-module/nextpage/edit.js.map +1 -1
  1173. package/build-module/nextpage/edit.native.js +11 -10
  1174. package/build-module/nextpage/edit.native.js.map +1 -1
  1175. package/build-module/nextpage/save.js +4 -2
  1176. package/build-module/nextpage/save.js.map +1 -1
  1177. package/build-module/page-list/convert-to-links-modal.js +25 -17
  1178. package/build-module/page-list/convert-to-links-modal.js.map +1 -1
  1179. package/build-module/page-list/edit.js +93 -65
  1180. package/build-module/page-list/edit.js.map +1 -1
  1181. package/build-module/page-list-item/edit.js +31 -21
  1182. package/build-module/page-list-item/edit.js.map +1 -1
  1183. package/build-module/paragraph/deprecated.js +16 -12
  1184. package/build-module/paragraph/deprecated.js.map +1 -1
  1185. package/build-module/paragraph/edit.js +58 -51
  1186. package/build-module/paragraph/edit.js.map +1 -1
  1187. package/build-module/paragraph/edit.native.js +44 -39
  1188. package/build-module/paragraph/edit.native.js.map +1 -1
  1189. package/build-module/paragraph/save.js +6 -5
  1190. package/build-module/paragraph/save.js.map +1 -1
  1191. package/build-module/pattern/edit.js +10 -7
  1192. package/build-module/pattern/edit.js.map +1 -1
  1193. package/build-module/post-author/edit.js +106 -93
  1194. package/build-module/post-author/edit.js.map +1 -1
  1195. package/build-module/post-author-biography/edit.js +21 -16
  1196. package/build-module/post-author-biography/edit.js.map +1 -1
  1197. package/build-module/post-author-name/edit.js +42 -32
  1198. package/build-module/post-author-name/edit.js.map +1 -1
  1199. package/build-module/post-comment/edit.js +24 -20
  1200. package/build-module/post-comment/edit.js.map +1 -1
  1201. package/build-module/post-comment/save.js +2 -2
  1202. package/build-module/post-comment/save.js.map +1 -1
  1203. package/build-module/post-comments-count/edit.js +22 -14
  1204. package/build-module/post-comments-count/edit.js.map +1 -1
  1205. package/build-module/post-comments-form/edit.js +25 -18
  1206. package/build-module/post-comments-form/edit.js.map +1 -1
  1207. package/build-module/post-comments-form/form.js +51 -38
  1208. package/build-module/post-comments-form/form.js.map +1 -1
  1209. package/build-module/post-comments-link/edit.js +25 -16
  1210. package/build-module/post-comments-link/edit.js.map +1 -1
  1211. package/build-module/post-content/edit.js +37 -22
  1212. package/build-module/post-content/edit.js.map +1 -1
  1213. package/build-module/post-date/edit.js +84 -71
  1214. package/build-module/post-date/edit.js.map +1 -1
  1215. package/build-module/post-excerpt/edit.js +68 -46
  1216. package/build-module/post-excerpt/edit.js.map +1 -1
  1217. package/build-module/post-featured-image/dimension-controls.js +121 -109
  1218. package/build-module/post-featured-image/dimension-controls.js.map +1 -1
  1219. package/build-module/post-featured-image/edit.js +111 -86
  1220. package/build-module/post-featured-image/edit.js.map +1 -1
  1221. package/build-module/post-featured-image/overlay-controls.js +46 -41
  1222. package/build-module/post-featured-image/overlay-controls.js.map +1 -1
  1223. package/build-module/post-featured-image/overlay.js +2 -2
  1224. package/build-module/post-featured-image/overlay.js.map +1 -1
  1225. package/build-module/post-navigation-link/edit.js +90 -74
  1226. package/build-module/post-navigation-link/edit.js.map +1 -1
  1227. package/build-module/post-template/edit.js +34 -25
  1228. package/build-module/post-template/edit.js.map +1 -1
  1229. package/build-module/post-template/save.js +2 -2
  1230. package/build-module/post-template/save.js.map +1 -1
  1231. package/build-module/post-terms/edit.js +66 -53
  1232. package/build-module/post-terms/edit.js.map +1 -1
  1233. package/build-module/post-time-to-read/edit.js +19 -13
  1234. package/build-module/post-time-to-read/edit.js.map +1 -1
  1235. package/build-module/post-time-to-read/icon.js +7 -6
  1236. package/build-module/post-time-to-read/icon.js.map +1 -1
  1237. package/build-module/post-title/edit.js +82 -67
  1238. package/build-module/post-title/edit.js.map +1 -1
  1239. package/build-module/preformatted/edit.js +2 -2
  1240. package/build-module/preformatted/edit.js.map +1 -1
  1241. package/build-module/preformatted/edit.native.js +7 -6
  1242. package/build-module/preformatted/edit.native.js.map +1 -1
  1243. package/build-module/preformatted/save.js +7 -6
  1244. package/build-module/preformatted/save.js.map +1 -1
  1245. package/build-module/pullquote/blockquote.native.js +4 -2
  1246. package/build-module/pullquote/blockquote.native.js.map +1 -1
  1247. package/build-module/pullquote/deprecated.js +73 -60
  1248. package/build-module/pullquote/deprecated.js.map +1 -1
  1249. package/build-module/pullquote/edit.js +51 -43
  1250. package/build-module/pullquote/edit.js.map +1 -1
  1251. package/build-module/pullquote/edit.native.js +46 -39
  1252. package/build-module/pullquote/edit.native.js.map +1 -1
  1253. package/build-module/pullquote/figure.native.js +5 -4
  1254. package/build-module/pullquote/figure.native.js.map +1 -1
  1255. package/build-module/pullquote/save.js +13 -9
  1256. package/build-module/pullquote/save.js.map +1 -1
  1257. package/build-module/query/deprecated.js +6 -6
  1258. package/build-module/query/deprecated.js.map +1 -1
  1259. package/build-module/query/edit/enhanced-pagination-modal.js +17 -12
  1260. package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -1
  1261. package/build-module/query/edit/index.js +13 -9
  1262. package/build-module/query/edit/index.js.map +1 -1
  1263. package/build-module/query/edit/inspector-controls/author-control.js +2 -2
  1264. package/build-module/query/edit/inspector-controls/author-control.js.map +1 -1
  1265. package/build-module/query/edit/inspector-controls/create-new-post-link.js +10 -9
  1266. package/build-module/query/edit/inspector-controls/create-new-post-link.js.map +1 -1
  1267. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +15 -12
  1268. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  1269. package/build-module/query/edit/inspector-controls/index.js +111 -96
  1270. package/build-module/query/edit/inspector-controls/index.js.map +1 -1
  1271. package/build-module/query/edit/inspector-controls/order-control.js +2 -2
  1272. package/build-module/query/edit/inspector-controls/order-control.js.map +1 -1
  1273. package/build-module/query/edit/inspector-controls/parent-control.js +2 -2
  1274. package/build-module/query/edit/inspector-controls/parent-control.js.map +1 -1
  1275. package/build-module/query/edit/inspector-controls/sticky-control.js +2 -2
  1276. package/build-module/query/edit/inspector-controls/sticky-control.js.map +1 -1
  1277. package/build-module/query/edit/inspector-controls/taxonomy-controls.js +30 -27
  1278. package/build-module/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
  1279. package/build-module/query/edit/pattern-selection-modal.js +25 -20
  1280. package/build-module/query/edit/pattern-selection-modal.js.map +1 -1
  1281. package/build-module/query/edit/query-content.js +53 -44
  1282. package/build-module/query/edit/query-content.js.map +1 -1
  1283. package/build-module/query/edit/query-placeholder.js +44 -38
  1284. package/build-module/query/edit/query-placeholder.js.map +1 -1
  1285. package/build-module/query/edit/query-toolbar.js +85 -70
  1286. package/build-module/query/edit/query-toolbar.js.map +1 -1
  1287. package/build-module/query/icons.js +25 -21
  1288. package/build-module/query/icons.js.map +1 -1
  1289. package/build-module/query/save.js +3 -3
  1290. package/build-module/query/save.js.map +1 -1
  1291. package/build-module/query/variations.js +1 -6
  1292. package/build-module/query/variations.js.map +1 -1
  1293. package/build-module/query-no-results/edit.js +2 -2
  1294. package/build-module/query-no-results/edit.js.map +1 -1
  1295. package/build-module/query-no-results/save.js +3 -3
  1296. package/build-module/query-no-results/save.js.map +1 -1
  1297. package/build-module/query-pagination/deprecated.js +5 -4
  1298. package/build-module/query-pagination/deprecated.js.map +1 -1
  1299. package/build-module/query-pagination/edit.js +27 -20
  1300. package/build-module/query-pagination/edit.js.map +1 -1
  1301. package/build-module/query-pagination/query-pagination-arrow-controls.js +15 -13
  1302. package/build-module/query-pagination/query-pagination-arrow-controls.js.map +1 -1
  1303. package/build-module/query-pagination/query-pagination-label-control.js +2 -2
  1304. package/build-module/query-pagination/query-pagination-label-control.js.map +1 -1
  1305. package/build-module/query-pagination/save.js +2 -2
  1306. package/build-module/query-pagination/save.js.map +1 -1
  1307. package/build-module/query-pagination-next/edit.js +19 -16
  1308. package/build-module/query-pagination-next/edit.js.map +1 -1
  1309. package/build-module/query-pagination-numbers/edit.js +32 -22
  1310. package/build-module/query-pagination-numbers/edit.js.map +1 -1
  1311. package/build-module/query-pagination-previous/edit.js +19 -16
  1312. package/build-module/query-pagination-previous/edit.js.map +1 -1
  1313. package/build-module/query-title/edit.js +63 -43
  1314. package/build-module/query-title/edit.js.map +1 -1
  1315. package/build-module/quote/deprecated.js +49 -43
  1316. package/build-module/quote/deprecated.js.map +1 -1
  1317. package/build-module/quote/edit.js +42 -36
  1318. package/build-module/quote/edit.js.map +1 -1
  1319. package/build-module/quote/save.js +9 -7
  1320. package/build-module/quote/save.js.map +1 -1
  1321. package/build-module/read-more/edit.js +30 -23
  1322. package/build-module/read-more/edit.js.map +1 -1
  1323. package/build-module/rss/edit.js +99 -83
  1324. package/build-module/rss/edit.js.map +1 -1
  1325. package/build-module/search/edit.js +148 -122
  1326. package/build-module/search/edit.js.map +1 -1
  1327. package/build-module/search/edit.native.js +129 -119
  1328. package/build-module/search/edit.native.js.map +1 -1
  1329. package/build-module/search/icons.js +104 -97
  1330. package/build-module/search/icons.js.map +1 -1
  1331. package/build-module/separator/deprecated.js +2 -2
  1332. package/build-module/separator/deprecated.js.map +1 -1
  1333. package/build-module/separator/edit.js +9 -6
  1334. package/build-module/separator/edit.js.map +1 -1
  1335. package/build-module/separator/save.js +2 -2
  1336. package/build-module/separator/save.js.map +1 -1
  1337. package/build-module/shortcode/edit.js +17 -15
  1338. package/build-module/shortcode/edit.js.map +1 -1
  1339. package/build-module/shortcode/edit.native.js +22 -17
  1340. package/build-module/shortcode/edit.native.js.map +1 -1
  1341. package/build-module/shortcode/save.js +4 -2
  1342. package/build-module/shortcode/save.js.map +1 -1
  1343. package/build-module/site-logo/edit.js +211 -171
  1344. package/build-module/site-logo/edit.js.map +1 -1
  1345. package/build-module/site-tagline/edit.js +25 -19
  1346. package/build-module/site-tagline/edit.js.map +1 -1
  1347. package/build-module/site-tagline/icon.js +7 -6
  1348. package/build-module/site-tagline/icon.js.map +1 -1
  1349. package/build-module/site-title/edit.js +63 -50
  1350. package/build-module/site-title/edit.js.map +1 -1
  1351. package/build-module/social-link/edit.js +85 -69
  1352. package/build-module/social-link/edit.js.map +1 -1
  1353. package/build-module/social-link/edit.native.js +50 -39
  1354. package/build-module/social-link/edit.native.js.map +1 -1
  1355. package/build-module/social-link/icons/amazon.js +7 -6
  1356. package/build-module/social-link/icons/amazon.js.map +1 -1
  1357. package/build-module/social-link/icons/bandcamp.js +7 -6
  1358. package/build-module/social-link/icons/bandcamp.js.map +1 -1
  1359. package/build-module/social-link/icons/behance.js +7 -6
  1360. package/build-module/social-link/icons/behance.js.map +1 -1
  1361. package/build-module/social-link/icons/bluesky.js +15 -0
  1362. package/build-module/social-link/icons/bluesky.js.map +1 -0
  1363. package/build-module/social-link/icons/chain.js +7 -6
  1364. package/build-module/social-link/icons/chain.js.map +1 -1
  1365. package/build-module/social-link/icons/codepen.js +7 -6
  1366. package/build-module/social-link/icons/codepen.js.map +1 -1
  1367. package/build-module/social-link/icons/deviantart.js +7 -6
  1368. package/build-module/social-link/icons/deviantart.js.map +1 -1
  1369. package/build-module/social-link/icons/dribbble.js +7 -6
  1370. package/build-module/social-link/icons/dribbble.js.map +1 -1
  1371. package/build-module/social-link/icons/dropbox.js +7 -6
  1372. package/build-module/social-link/icons/dropbox.js.map +1 -1
  1373. package/build-module/social-link/icons/etsy.js +7 -6
  1374. package/build-module/social-link/icons/etsy.js.map +1 -1
  1375. package/build-module/social-link/icons/facebook.js +7 -6
  1376. package/build-module/social-link/icons/facebook.js.map +1 -1
  1377. package/build-module/social-link/icons/feed.js +7 -6
  1378. package/build-module/social-link/icons/feed.js.map +1 -1
  1379. package/build-module/social-link/icons/fivehundredpx.js +7 -6
  1380. package/build-module/social-link/icons/fivehundredpx.js.map +1 -1
  1381. package/build-module/social-link/icons/flickr.js +7 -6
  1382. package/build-module/social-link/icons/flickr.js.map +1 -1
  1383. package/build-module/social-link/icons/foursquare.js +7 -6
  1384. package/build-module/social-link/icons/foursquare.js.map +1 -1
  1385. package/build-module/social-link/icons/github.js +7 -6
  1386. package/build-module/social-link/icons/github.js.map +1 -1
  1387. package/build-module/social-link/icons/goodreads.js +7 -6
  1388. package/build-module/social-link/icons/goodreads.js.map +1 -1
  1389. package/build-module/social-link/icons/google.js +7 -6
  1390. package/build-module/social-link/icons/google.js.map +1 -1
  1391. package/build-module/social-link/icons/gravatar.js +7 -6
  1392. package/build-module/social-link/icons/gravatar.js.map +1 -1
  1393. package/build-module/social-link/icons/index.js +1 -0
  1394. package/build-module/social-link/icons/index.js.map +1 -1
  1395. package/build-module/social-link/icons/instagram.js +7 -6
  1396. package/build-module/social-link/icons/instagram.js.map +1 -1
  1397. package/build-module/social-link/icons/lastfm.js +7 -6
  1398. package/build-module/social-link/icons/lastfm.js.map +1 -1
  1399. package/build-module/social-link/icons/linkedin.js +7 -6
  1400. package/build-module/social-link/icons/linkedin.js.map +1 -1
  1401. package/build-module/social-link/icons/mail.js +7 -6
  1402. package/build-module/social-link/icons/mail.js.map +1 -1
  1403. package/build-module/social-link/icons/mastodon.js +7 -6
  1404. package/build-module/social-link/icons/mastodon.js.map +1 -1
  1405. package/build-module/social-link/icons/medium.js +7 -6
  1406. package/build-module/social-link/icons/medium.js.map +1 -1
  1407. package/build-module/social-link/icons/meetup.js +7 -6
  1408. package/build-module/social-link/icons/meetup.js.map +1 -1
  1409. package/build-module/social-link/icons/patreon.js +7 -6
  1410. package/build-module/social-link/icons/patreon.js.map +1 -1
  1411. package/build-module/social-link/icons/pinterest.js +7 -6
  1412. package/build-module/social-link/icons/pinterest.js.map +1 -1
  1413. package/build-module/social-link/icons/pocket.js +7 -6
  1414. package/build-module/social-link/icons/pocket.js.map +1 -1
  1415. package/build-module/social-link/icons/reddit.js +7 -6
  1416. package/build-module/social-link/icons/reddit.js.map +1 -1
  1417. package/build-module/social-link/icons/skype.js +7 -6
  1418. package/build-module/social-link/icons/skype.js.map +1 -1
  1419. package/build-module/social-link/icons/snapchat.js +7 -6
  1420. package/build-module/social-link/icons/snapchat.js.map +1 -1
  1421. package/build-module/social-link/icons/soundcloud.js +7 -6
  1422. package/build-module/social-link/icons/soundcloud.js.map +1 -1
  1423. package/build-module/social-link/icons/spotify.js +7 -6
  1424. package/build-module/social-link/icons/spotify.js.map +1 -1
  1425. package/build-module/social-link/icons/telegram.js +7 -6
  1426. package/build-module/social-link/icons/telegram.js.map +1 -1
  1427. package/build-module/social-link/icons/threads.js +7 -6
  1428. package/build-module/social-link/icons/threads.js.map +1 -1
  1429. package/build-module/social-link/icons/tiktok.js +7 -6
  1430. package/build-module/social-link/icons/tiktok.js.map +1 -1
  1431. package/build-module/social-link/icons/tumblr.js +7 -6
  1432. package/build-module/social-link/icons/tumblr.js.map +1 -1
  1433. package/build-module/social-link/icons/twitch.js +7 -6
  1434. package/build-module/social-link/icons/twitch.js.map +1 -1
  1435. package/build-module/social-link/icons/twitter.js +7 -6
  1436. package/build-module/social-link/icons/twitter.js.map +1 -1
  1437. package/build-module/social-link/icons/vimeo.js +7 -6
  1438. package/build-module/social-link/icons/vimeo.js.map +1 -1
  1439. package/build-module/social-link/icons/vk.js +7 -6
  1440. package/build-module/social-link/icons/vk.js.map +1 -1
  1441. package/build-module/social-link/icons/whatsapp.js +7 -6
  1442. package/build-module/social-link/icons/whatsapp.js.map +1 -1
  1443. package/build-module/social-link/icons/wordpress.js +7 -6
  1444. package/build-module/social-link/icons/wordpress.js.map +1 -1
  1445. package/build-module/social-link/icons/x.js +7 -6
  1446. package/build-module/social-link/icons/x.js.map +1 -1
  1447. package/build-module/social-link/icons/yelp.js +7 -6
  1448. package/build-module/social-link/icons/yelp.js.map +1 -1
  1449. package/build-module/social-link/icons/youtube.js +7 -6
  1450. package/build-module/social-link/icons/youtube.js.map +1 -1
  1451. package/build-module/social-link/variations.js +8 -1
  1452. package/build-module/social-link/variations.js.map +1 -1
  1453. package/build-module/social-links/deprecated.js +5 -4
  1454. package/build-module/social-links/deprecated.js.map +1 -1
  1455. package/build-module/social-links/edit.js +94 -80
  1456. package/build-module/social-links/edit.js.map +1 -1
  1457. package/build-module/social-links/edit.native.js +16 -15
  1458. package/build-module/social-links/edit.native.js.map +1 -1
  1459. package/build-module/social-links/save.js +2 -2
  1460. package/build-module/social-links/save.js.map +1 -1
  1461. package/build-module/spacer/controls.js +61 -47
  1462. package/build-module/spacer/controls.js.map +1 -1
  1463. package/build-module/spacer/controls.native.js +17 -13
  1464. package/build-module/spacer/controls.native.js.map +1 -1
  1465. package/build-module/spacer/deprecated.js +2 -2
  1466. package/build-module/spacer/deprecated.js.map +1 -1
  1467. package/build-module/spacer/edit.js +50 -39
  1468. package/build-module/spacer/edit.js.map +1 -1
  1469. package/build-module/spacer/edit.native.js +12 -9
  1470. package/build-module/spacer/edit.native.js.map +1 -1
  1471. package/build-module/spacer/save.js +2 -2
  1472. package/build-module/spacer/save.js.map +1 -1
  1473. package/build-module/spacer/save.native.js +2 -2
  1474. package/build-module/spacer/save.native.js.map +1 -1
  1475. package/build-module/table/deprecated.js +169 -157
  1476. package/build-module/table/deprecated.js.map +1 -1
  1477. package/build-module/table/edit.js +145 -129
  1478. package/build-module/table/edit.js.map +1 -1
  1479. package/build-module/table/save.js +53 -49
  1480. package/build-module/table/save.js.map +1 -1
  1481. package/build-module/table-of-contents/edit.js +54 -36
  1482. package/build-module/table-of-contents/edit.js.map +1 -1
  1483. package/build-module/table-of-contents/list.js +30 -22
  1484. package/build-module/table-of-contents/list.js.map +1 -1
  1485. package/build-module/table-of-contents/save.js +9 -6
  1486. package/build-module/table-of-contents/save.js.map +1 -1
  1487. package/build-module/tag-cloud/edit.js +72 -58
  1488. package/build-module/tag-cloud/edit.js.map +1 -1
  1489. package/build-module/template-part/edit/advanced-controls.js +61 -55
  1490. package/build-module/template-part/edit/advanced-controls.js.map +1 -1
  1491. package/build-module/template-part/edit/import-controls.js +34 -27
  1492. package/build-module/template-part/edit/import-controls.js.map +1 -1
  1493. package/build-module/template-part/edit/index.js +112 -89
  1494. package/build-module/template-part/edit/index.js.map +1 -1
  1495. package/build-module/template-part/edit/inner-blocks.js +4 -4
  1496. package/build-module/template-part/edit/inner-blocks.js.map +1 -1
  1497. package/build-module/template-part/edit/placeholder.js +22 -18
  1498. package/build-module/template-part/edit/placeholder.js.map +1 -1
  1499. package/build-module/template-part/edit/selection-modal.js +30 -20
  1500. package/build-module/template-part/edit/selection-modal.js.map +1 -1
  1501. package/build-module/template-part/edit/title-modal.js +26 -20
  1502. package/build-module/template-part/edit/title-modal.js.map +1 -1
  1503. package/build-module/term-description/edit.js +24 -15
  1504. package/build-module/term-description/edit.js.map +1 -1
  1505. package/build-module/text-columns/edit.js +55 -44
  1506. package/build-module/text-columns/edit.js.map +1 -1
  1507. package/build-module/text-columns/save.js +13 -12
  1508. package/build-module/text-columns/save.js.map +1 -1
  1509. package/build-module/utils/caption.js +36 -31
  1510. package/build-module/utils/caption.js.map +1 -1
  1511. package/build-module/utils/hooks.js +9 -0
  1512. package/build-module/utils/hooks.js.map +1 -1
  1513. package/build-module/verse/deprecated.js +7 -6
  1514. package/build-module/verse/deprecated.js.map +1 -1
  1515. package/build-module/verse/edit.js +33 -27
  1516. package/build-module/verse/edit.js.map +1 -1
  1517. package/build-module/verse/save.js +6 -5
  1518. package/build-module/verse/save.js.map +1 -1
  1519. package/build-module/video/deprecated.js +21 -18
  1520. package/build-module/video/deprecated.js.map +1 -1
  1521. package/build-module/video/edit-common-settings.js +41 -35
  1522. package/build-module/video/edit-common-settings.js.map +1 -1
  1523. package/build-module/video/edit.js +105 -80
  1524. package/build-module/video/edit.js.map +1 -1
  1525. package/build-module/video/edit.native.js +101 -85
  1526. package/build-module/video/edit.native.js.map +1 -1
  1527. package/build-module/video/icon-retry.native.js +11 -9
  1528. package/build-module/video/icon-retry.native.js.map +1 -1
  1529. package/build-module/video/save.js +22 -19
  1530. package/build-module/video/save.js.map +1 -1
  1531. package/build-module/video/tracks-editor.js +190 -158
  1532. package/build-module/video/tracks-editor.js.map +1 -1
  1533. package/build-module/video/tracks.js +3 -4
  1534. package/build-module/video/tracks.js.map +1 -1
  1535. package/build-style/audio/theme-rtl.css +1 -1
  1536. package/build-style/audio/theme.css +1 -1
  1537. package/build-style/button/editor-rtl.css +0 -31
  1538. package/build-style/button/editor.css +0 -31
  1539. package/build-style/button/style-rtl.css +6 -39
  1540. package/build-style/button/style.css +6 -39
  1541. package/build-style/cover/editor-rtl.css +0 -4
  1542. package/build-style/cover/editor.css +0 -4
  1543. package/build-style/cover/style-rtl.css +12 -34
  1544. package/build-style/cover/style.css +12 -34
  1545. package/build-style/editor-rtl.css +38 -101
  1546. package/build-style/editor.css +39 -101
  1547. package/build-style/embed/theme-rtl.css +1 -1
  1548. package/build-style/embed/theme.css +1 -1
  1549. package/build-style/gallery/editor-rtl.css +12 -12
  1550. package/build-style/gallery/editor.css +12 -12
  1551. package/build-style/html/editor-rtl.css +1 -0
  1552. package/build-style/html/editor.css +2 -0
  1553. package/build-style/image/style-rtl.css +3 -33
  1554. package/build-style/image/style.css +3 -33
  1555. package/build-style/image/theme-rtl.css +3 -3
  1556. package/build-style/image/theme.css +3 -3
  1557. package/build-style/latest-posts/editor-rtl.css +9 -10
  1558. package/build-style/latest-posts/editor.css +9 -10
  1559. package/build-style/latest-posts/style-rtl.css +8 -2
  1560. package/build-style/latest-posts/style.css +8 -2
  1561. package/build-style/list/style-rtl.css +2 -2
  1562. package/build-style/list/style.css +2 -2
  1563. package/build-style/media-text/style-rtl.css +17 -17
  1564. package/build-style/media-text/style.css +17 -17
  1565. package/build-style/navigation/editor-rtl.css +0 -4
  1566. package/build-style/navigation/editor.css +0 -4
  1567. package/build-style/paragraph/style-rtl.css +1 -1
  1568. package/build-style/paragraph/style.css +1 -1
  1569. package/build-style/pullquote/style-rtl.css +2 -5
  1570. package/build-style/pullquote/style.css +2 -5
  1571. package/build-style/pullquote/theme-rtl.css +1 -2
  1572. package/build-style/pullquote/theme.css +1 -2
  1573. package/build-style/query/editor-rtl.css +2 -1
  1574. package/build-style/query/editor.css +2 -1
  1575. package/build-style/quote/theme-rtl.css +6 -6
  1576. package/build-style/quote/theme.css +6 -6
  1577. package/build-style/separator/editor-rtl.css +0 -4
  1578. package/build-style/separator/editor.css +0 -4
  1579. package/build-style/separator/style-rtl.css +12 -9
  1580. package/build-style/separator/style.css +12 -9
  1581. package/build-style/site-logo/style-rtl.css +2 -1
  1582. package/build-style/site-logo/style.css +2 -1
  1583. package/build-style/site-title/editor-rtl.css +1 -1
  1584. package/build-style/site-title/editor.css +1 -1
  1585. package/build-style/site-title/style-rtl.css +1 -1
  1586. package/build-style/site-title/style.css +1 -1
  1587. package/build-style/social-link/editor-rtl.css +2 -2
  1588. package/build-style/social-link/editor.css +2 -2
  1589. package/build-style/social-links/editor-rtl.css +11 -11
  1590. package/build-style/social-links/editor.css +11 -11
  1591. package/build-style/social-links/style-rtl.css +17 -7
  1592. package/build-style/social-links/style.css +17 -7
  1593. package/build-style/style-rtl.css +87 -153
  1594. package/build-style/style.css +87 -153
  1595. package/build-style/table/theme-rtl.css +3 -4
  1596. package/build-style/table/theme.css +3 -4
  1597. package/build-style/tag-cloud/style-rtl.css +4 -2
  1598. package/build-style/tag-cloud/style.css +4 -2
  1599. package/build-style/template-part/theme-rtl.css +1 -1
  1600. package/build-style/template-part/theme.css +1 -1
  1601. package/build-style/theme-rtl.css +17 -19
  1602. package/build-style/theme.css +17 -19
  1603. package/build-style/video/theme-rtl.css +1 -1
  1604. package/build-style/video/theme.css +1 -1
  1605. package/package.json +37 -36
  1606. package/src/audio/edit.native.js +1 -1
  1607. package/src/audio/theme.scss +1 -1
  1608. package/src/block/edit-title.native.js +2 -1
  1609. package/src/block/edit.js +2 -10
  1610. package/src/block/edit.native.js +1 -1
  1611. package/src/block/index.php +1 -1
  1612. package/src/button/edit.js +8 -4
  1613. package/src/button/edit.native.js +1 -1
  1614. package/src/button/editor.scss +0 -35
  1615. package/src/button/index.php +80 -0
  1616. package/src/button/save.js +0 -4
  1617. package/src/button/style.scss +20 -52
  1618. package/src/buttons/test/__snapshots__/edit.native.js.snap +30 -10
  1619. package/src/buttons/test/edit.native.js +6 -5
  1620. package/src/columns/edit.native.js +2 -3
  1621. package/src/comments/index.php +1 -1
  1622. package/src/cover/block.json +1 -0
  1623. package/src/cover/controls.native.js +2 -2
  1624. package/src/cover/edit/inspector-controls.js +9 -2
  1625. package/src/cover/edit.native.js +22 -6
  1626. package/src/cover/editor.scss +0 -7
  1627. package/src/cover/overlay-color-settings.native.js +1 -1
  1628. package/src/cover/style.scss +14 -32
  1629. package/src/editor.scss +0 -1
  1630. package/src/embed/embed-no-preview.native.js +2 -2
  1631. package/src/embed/embed-placeholder.native.js +2 -2
  1632. package/src/embed/theme.scss +1 -1
  1633. package/src/embed/util.js +1 -1
  1634. package/src/embed/variations.js +0 -8
  1635. package/src/file/edit.js +2 -6
  1636. package/src/form/save.js +2 -3
  1637. package/src/form-submit-button/save.js +2 -3
  1638. package/src/freeform/edit.js +6 -2
  1639. package/src/gallery/edit.js +2 -2
  1640. package/src/gallery/editor.scss +4 -1
  1641. package/src/gallery/v1/gallery-button.native.js +1 -1
  1642. package/src/gallery/v1/gallery-image.js +8 -0
  1643. package/src/gallery/v1/gallery-image.native.js +1 -1
  1644. package/src/heading/test/__snapshots__/index.native.js.snap +12 -0
  1645. package/src/heading/test/index.native.js +65 -0
  1646. package/src/html/editor.scss +3 -0
  1647. package/src/image/edit.js +9 -8
  1648. package/src/image/edit.native.js +6 -3
  1649. package/src/image/image.js +60 -28
  1650. package/src/image/index.php +9 -9
  1651. package/src/image/style.scss +8 -43
  1652. package/src/image/theme.scss +2 -2
  1653. package/src/index.js +16 -16
  1654. package/src/latest-posts/edit.native.js +1 -1
  1655. package/src/latest-posts/editor.scss +10 -9
  1656. package/src/latest-posts/style.scss +12 -4
  1657. package/src/list/style.scss +3 -3
  1658. package/src/media-text/edit.js +131 -66
  1659. package/src/media-text/edit.native.js +10 -0
  1660. package/src/media-text/icon-retry.native.js +1 -1
  1661. package/src/media-text/media-container.native.js +16 -3
  1662. package/src/media-text/style.scss +16 -15
  1663. package/src/missing/edit.native.js +2 -2
  1664. package/src/more/block.json +2 -1
  1665. package/src/more/edit.js +1 -2
  1666. package/src/navigation/editor.scss +0 -4
  1667. package/src/navigation/index.php +26 -14
  1668. package/src/navigation/view.js +1 -1
  1669. package/src/navigation-link/edit.js +16 -2
  1670. package/src/navigation-link/link-ui.js +5 -1
  1671. package/src/navigation-submenu/edit.js +25 -27
  1672. package/src/page-list/convert-to-links-modal.js +13 -3
  1673. package/src/page-list/edit.js +4 -3
  1674. package/src/paragraph/style.scss +2 -1
  1675. package/src/paragraph/test/__snapshots__/edit.native.js.snap +6 -0
  1676. package/src/paragraph/test/edit.native.js +26 -0
  1677. package/src/pullquote/editor.scss +2 -0
  1678. package/src/pullquote/style.scss +4 -6
  1679. package/src/pullquote/theme.scss +1 -3
  1680. package/src/query/editor.scss +2 -1
  1681. package/src/query/save.js +1 -1
  1682. package/src/query/variations.js +1 -3
  1683. package/src/query-no-results/save.js +1 -1
  1684. package/src/query-pagination-next/index.php +1 -1
  1685. package/src/query-pagination-previous/index.php +1 -1
  1686. package/src/quote/theme.scss +1 -1
  1687. package/src/search/edit.js +9 -3
  1688. package/src/search/index.php +2 -2
  1689. package/src/separator/editor.scss +0 -7
  1690. package/src/separator/style.scss +28 -24
  1691. package/src/site-logo/edit.js +1 -2
  1692. package/src/site-logo/style.scss +6 -6
  1693. package/src/site-title/editor.scss +2 -4
  1694. package/src/site-title/style.scss +2 -4
  1695. package/src/social-link/edit.native.js +1 -1
  1696. package/src/social-link/editor.scss +2 -2
  1697. package/src/social-link/icons/bluesky.js +10 -0
  1698. package/src/social-link/icons/index.js +1 -0
  1699. package/src/social-link/index.php +4 -0
  1700. package/src/social-link/socials-with-bg.scss +5 -0
  1701. package/src/social-link/socials-without-bg.scss +4 -0
  1702. package/src/social-link/variations.js +7 -0
  1703. package/src/social-links/edit.native.js +1 -1
  1704. package/src/social-links/editor.scss +11 -14
  1705. package/src/social-links/style.scss +15 -14
  1706. package/src/spacer/controls.js +6 -4
  1707. package/src/spacer/edit.js +5 -2
  1708. package/src/table/style.scss +3 -0
  1709. package/src/table/theme.scss +2 -4
  1710. package/src/tag-cloud/style.scss +15 -13
  1711. package/src/template-part/edit/title-modal.js +1 -1
  1712. package/src/template-part/theme.scss +5 -7
  1713. package/src/utils/hooks.js +11 -0
  1714. package/src/video/edit-common-settings.js +4 -0
  1715. package/src/video/theme.scss +1 -1
  1716. package/tsconfig.tsbuildinfo +1 -1
  1717. package/build-style/block/editor-rtl.css +0 -108
  1718. package/build-style/block/editor.css +0 -108
  1719. package/src/block/editor.scss +0 -35
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _react = require("react");
9
8
  var _clsx = _interopRequireDefault(require("clsx"));
10
9
  var _i18n = require("@wordpress/i18n");
11
10
  var _blockEditor = require("@wordpress/block-editor");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
12
  /**
13
13
  * External dependencies
14
14
  */
@@ -26,8 +26,7 @@ var _blockEditor = require("@wordpress/block-editor");
26
26
  * @param {string} props.attributes.textAlign The `textAlign` attribute.
27
27
  *
28
28
  * @return {JSX.Element} React element.
29
- */
30
- function Edit({
29
+ */function Edit({
31
30
  setAttributes,
32
31
  attributes: {
33
32
  textAlign
@@ -38,20 +37,25 @@ function Edit({
38
37
  [`has-text-align-${textAlign}`]: textAlign
39
38
  })
40
39
  });
41
- const blockControls = (0, _react.createElement)(_blockEditor.BlockControls, {
42
- group: "block"
43
- }, (0, _react.createElement)(_blockEditor.AlignmentControl, {
44
- value: textAlign,
45
- onChange: newAlign => setAttributes({
46
- textAlign: newAlign
40
+ const blockControls = /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.BlockControls, {
41
+ group: "block",
42
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.AlignmentControl, {
43
+ value: textAlign,
44
+ onChange: newAlign => setAttributes({
45
+ textAlign: newAlign
46
+ })
47
47
  })
48
- }));
49
- return (0, _react.createElement)(_react.Fragment, null, blockControls, (0, _react.createElement)("div", {
50
- ...blockProps
51
- }, (0, _react.createElement)("a", {
52
- href: "#comment-reply-pseudo-link",
53
- onClick: event => event.preventDefault()
54
- }, (0, _i18n.__)('Reply'))));
48
+ });
49
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
50
+ children: [blockControls, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
51
+ ...blockProps,
52
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
53
+ href: "#comment-reply-pseudo-link",
54
+ onClick: event => event.preventDefault(),
55
+ children: (0, _i18n.__)('Reply')
56
+ })
57
+ })]
58
+ });
55
59
  }
56
60
  var _default = exports.default = Edit;
57
61
  //# sourceMappingURL=edit.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_clsx","_interopRequireDefault","require","_i18n","_blockEditor","Edit","setAttributes","attributes","textAlign","blockProps","useBlockProps","className","clsx","blockControls","_react","createElement","BlockControls","group","AlignmentControl","value","onChange","newAlign","Fragment","href","onClick","event","preventDefault","__","_default","exports","default"],"sources":["@wordpress/block-library/src/comment-reply-link/edit.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport {\n\tAlignmentControl,\n\tBlockControls,\n\tuseBlockProps,\n} from '@wordpress/block-editor';\n\n/**\n * Renders the `core/comment-reply-link` block on the editor.\n *\n * @param {Object} props React props.\n * @param {Object} props.setAttributes Callback for updating block attributes.\n * @param {Object} props.attributes Block attributes.\n * @param {string} props.attributes.textAlign The `textAlign` attribute.\n *\n * @return {JSX.Element} React element.\n */\nfunction Edit( { setAttributes, attributes: { textAlign } } ) {\n\tconst blockProps = useBlockProps( {\n\t\tclassName: clsx( {\n\t\t\t[ `has-text-align-${ textAlign }` ]: textAlign,\n\t\t} ),\n\t} );\n\n\tconst blockControls = (\n\t\t<BlockControls group=\"block\">\n\t\t\t<AlignmentControl\n\t\t\t\tvalue={ textAlign }\n\t\t\t\tonChange={ ( newAlign ) =>\n\t\t\t\t\tsetAttributes( { textAlign: newAlign } )\n\t\t\t\t}\n\t\t\t/>\n\t\t</BlockControls>\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{ blockControls }\n\t\t\t<div { ...blockProps }>\n\t\t\t\t<a\n\t\t\t\t\thref=\"#comment-reply-pseudo-link\"\n\t\t\t\t\tonClick={ ( event ) => event.preventDefault() }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Reply' ) }\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</>\n\t);\n}\n\nexport default Edit;\n"],"mappings":";;;;;;;;AAGA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AATA;AACA;AACA;;AAGA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASG,IAAIA,CAAE;EAAEC,aAAa;EAAEC,UAAU,EAAE;IAAEC;EAAU;AAAE,CAAC,EAAG;EAC7D,MAAMC,UAAU,GAAG,IAAAC,0BAAa,EAAE;IACjCC,SAAS,EAAE,IAAAC,aAAI,EAAE;MAChB,CAAG,kBAAkBJ,SAAW,EAAC,GAAIA;IACtC,CAAE;EACH,CAAE,CAAC;EAEH,MAAMK,aAAa,GAClB,IAAAC,MAAA,CAAAC,aAAA,EAACX,YAAA,CAAAY,aAAa;IAACC,KAAK,EAAC;EAAO,GAC3B,IAAAH,MAAA,CAAAC,aAAA,EAACX,YAAA,CAAAc,gBAAgB;IAChBC,KAAK,EAAGX,SAAW;IACnBY,QAAQ,EAAKC,QAAQ,IACpBf,aAAa,CAAE;MAAEE,SAAS,EAAEa;IAAS,CAAE;EACvC,CACD,CACa,CACf;EAED,OACC,IAAAP,MAAA,CAAAC,aAAA,EAAAD,MAAA,CAAAQ,QAAA,QACGT,aAAa,EACf,IAAAC,MAAA,CAAAC,aAAA;IAAA,GAAUN;EAAU,GACnB,IAAAK,MAAA,CAAAC,aAAA;IACCQ,IAAI,EAAC,4BAA4B;IACjCC,OAAO,EAAKC,KAAK,IAAMA,KAAK,CAACC,cAAc,CAAC;EAAG,GAE7C,IAAAC,QAAE,EAAE,OAAQ,CACZ,CACC,CACJ,CAAC;AAEL;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEczB,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["_clsx","_interopRequireDefault","require","_i18n","_blockEditor","_jsxRuntime","Edit","setAttributes","attributes","textAlign","blockProps","useBlockProps","className","clsx","blockControls","jsx","BlockControls","group","children","AlignmentControl","value","onChange","newAlign","jsxs","Fragment","href","onClick","event","preventDefault","__","_default","exports","default"],"sources":["@wordpress/block-library/src/comment-reply-link/edit.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport {\n\tAlignmentControl,\n\tBlockControls,\n\tuseBlockProps,\n} from '@wordpress/block-editor';\n\n/**\n * Renders the `core/comment-reply-link` block on the editor.\n *\n * @param {Object} props React props.\n * @param {Object} props.setAttributes Callback for updating block attributes.\n * @param {Object} props.attributes Block attributes.\n * @param {string} props.attributes.textAlign The `textAlign` attribute.\n *\n * @return {JSX.Element} React element.\n */\nfunction Edit( { setAttributes, attributes: { textAlign } } ) {\n\tconst blockProps = useBlockProps( {\n\t\tclassName: clsx( {\n\t\t\t[ `has-text-align-${ textAlign }` ]: textAlign,\n\t\t} ),\n\t} );\n\n\tconst blockControls = (\n\t\t<BlockControls group=\"block\">\n\t\t\t<AlignmentControl\n\t\t\t\tvalue={ textAlign }\n\t\t\t\tonChange={ ( newAlign ) =>\n\t\t\t\t\tsetAttributes( { textAlign: newAlign } )\n\t\t\t\t}\n\t\t\t/>\n\t\t</BlockControls>\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{ blockControls }\n\t\t\t<div { ...blockProps }>\n\t\t\t\t<a\n\t\t\t\t\thref=\"#comment-reply-pseudo-link\"\n\t\t\t\t\tonClick={ ( event ) => event.preventDefault() }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Reply' ) }\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</>\n\t);\n}\n\nexport default Edit;\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAIiC,IAAAG,WAAA,GAAAH,OAAA;AAbjC;AACA;AACA;;AAGA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACA,SAASI,IAAIA,CAAE;EAAEC,aAAa;EAAEC,UAAU,EAAE;IAAEC;EAAU;AAAE,CAAC,EAAG;EAC7D,MAAMC,UAAU,GAAG,IAAAC,0BAAa,EAAE;IACjCC,SAAS,EAAE,IAAAC,aAAI,EAAE;MAChB,CAAG,kBAAkBJ,SAAW,EAAC,GAAIA;IACtC,CAAE;EACH,CAAE,CAAC;EAEH,MAAMK,aAAa,gBAClB,IAAAT,WAAA,CAAAU,GAAA,EAACX,YAAA,CAAAY,aAAa;IAACC,KAAK,EAAC,OAAO;IAAAC,QAAA,eAC3B,IAAAb,WAAA,CAAAU,GAAA,EAACX,YAAA,CAAAe,gBAAgB;MAChBC,KAAK,EAAGX,SAAW;MACnBY,QAAQ,EAAKC,QAAQ,IACpBf,aAAa,CAAE;QAAEE,SAAS,EAAEa;MAAS,CAAE;IACvC,CACD;EAAC,CACY,CACf;EAED,oBACC,IAAAjB,WAAA,CAAAkB,IAAA,EAAAlB,WAAA,CAAAmB,QAAA;IAAAN,QAAA,GACGJ,aAAa,eACf,IAAAT,WAAA,CAAAU,GAAA;MAAA,GAAUL,UAAU;MAAAQ,QAAA,eACnB,IAAAb,WAAA,CAAAU,GAAA;QACCU,IAAI,EAAC,4BAA4B;QACjCC,OAAO,EAAKC,KAAK,IAAMA,KAAK,CAACC,cAAc,CAAC,CAAG;QAAAV,QAAA,EAE7C,IAAAW,QAAE,EAAE,OAAQ;MAAC,CACb;IAAC,CACA,CAAC;EAAA,CACL,CAAC;AAEL;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEc1B,IAAI","ignoreList":[]}
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = CommentTemplateEdit;
7
- var _react = require("react");
8
7
  var _element = require("@wordpress/element");
9
8
  var _data = require("@wordpress/data");
10
9
  var _i18n = require("@wordpress/i18n");
@@ -12,6 +11,7 @@ var _blockEditor = require("@wordpress/block-editor");
12
11
  var _components = require("@wordpress/components");
13
12
  var _coreData = require("@wordpress/core-data");
14
13
  var _hooks = require("./hooks");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
15
  /**
16
16
  * WordPress dependencies
17
17
  */
@@ -109,20 +109,21 @@ function CommentTemplateInnerBlocks({
109
109
  } = (0, _blockEditor.useInnerBlocksProps)({}, {
110
110
  template: TEMPLATE
111
111
  });
112
- return (0, _react.createElement)("li", {
113
- ...innerBlocksProps
114
- }, comment.commentId === (activeCommentId || firstCommentId) ? children : null, (0, _react.createElement)(MemoizedCommentTemplatePreview, {
115
- blocks: blocks,
116
- commentId: comment.commentId,
117
- setActiveCommentId: setActiveCommentId,
118
- isHidden: comment.commentId === (activeCommentId || firstCommentId)
119
- }), comment?.children?.length > 0 ? (0, _react.createElement)(CommentsList, {
120
- comments: comment.children,
121
- activeCommentId: activeCommentId,
122
- setActiveCommentId: setActiveCommentId,
123
- blocks: blocks,
124
- firstCommentId: firstCommentId
125
- }) : null);
112
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
113
+ ...innerBlocksProps,
114
+ children: [comment.commentId === (activeCommentId || firstCommentId) ? children : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(MemoizedCommentTemplatePreview, {
115
+ blocks: blocks,
116
+ commentId: comment.commentId,
117
+ setActiveCommentId: setActiveCommentId,
118
+ isHidden: comment.commentId === (activeCommentId || firstCommentId)
119
+ }), comment?.children?.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(CommentsList, {
120
+ comments: comment.children,
121
+ activeCommentId: activeCommentId,
122
+ setActiveCommentId: setActiveCommentId,
123
+ blocks: blocks,
124
+ firstCommentId: firstCommentId
125
+ }) : null]
126
+ });
126
127
  }
127
128
  const CommentTemplatePreview = ({
128
129
  blocks,
@@ -145,7 +146,7 @@ const CommentTemplatePreview = ({
145
146
  const style = {
146
147
  display: isHidden ? 'none' : undefined
147
148
  };
148
- return (0, _react.createElement)("div", {
149
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
149
150
  ...blockPreviewProps,
150
151
  tabIndex: 0,
151
152
  role: "button",
@@ -178,31 +179,32 @@ const CommentsList = ({
178
179
  setActiveCommentId,
179
180
  blocks,
180
181
  firstCommentId
181
- }) => (0, _react.createElement)("ol", {
182
- ...blockProps
183
- }, comments && comments.map(({
184
- commentId,
185
- ...comment
186
- }, index) => (0, _react.createElement)(_blockEditor.BlockContextProvider, {
187
- key: comment.commentId || index,
188
- value: {
189
- // If the commentId is negative it means that this comment is a
190
- // "placeholder" and that the block is most likely being used in the
191
- // site editor. In this case, we have to set the commentId to `null`
192
- // because otherwise the (non-existent) comment with a negative ID
193
- // would be reqested from the REST API.
194
- commentId: commentId < 0 ? null : commentId
195
- }
196
- }, (0, _react.createElement)(CommentTemplateInnerBlocks, {
197
- comment: {
182
+ }) => /*#__PURE__*/(0, _jsxRuntime.jsx)("ol", {
183
+ ...blockProps,
184
+ children: comments && comments.map(({
198
185
  commentId,
199
186
  ...comment
200
- },
201
- activeCommentId: activeCommentId,
202
- setActiveCommentId: setActiveCommentId,
203
- blocks: blocks,
204
- firstCommentId: firstCommentId
205
- }))));
187
+ }, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.BlockContextProvider, {
188
+ value: {
189
+ // If the commentId is negative it means that this comment is a
190
+ // "placeholder" and that the block is most likely being used in the
191
+ // site editor. In this case, we have to set the commentId to `null`
192
+ // because otherwise the (non-existent) comment with a negative ID
193
+ // would be reqested from the REST API.
194
+ commentId: commentId < 0 ? null : commentId
195
+ },
196
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CommentTemplateInnerBlocks, {
197
+ comment: {
198
+ commentId,
199
+ ...comment
200
+ },
201
+ activeCommentId: activeCommentId,
202
+ setActiveCommentId: setActiveCommentId,
203
+ blocks: blocks,
204
+ firstCommentId: firstCommentId
205
+ })
206
+ }, comment.commentId || index))
207
+ });
206
208
  function CommentTemplateEdit({
207
209
  clientId,
208
210
  context: {
@@ -248,9 +250,10 @@ function CommentTemplateEdit({
248
250
  // Reverse the order of top comments if needed.
249
251
  commentOrder === 'desc' && topLevelComments ? [...topLevelComments].reverse() : topLevelComments);
250
252
  if (!topLevelComments) {
251
- return (0, _react.createElement)("p", {
252
- ...blockProps
253
- }, (0, _react.createElement)(_components.Spinner, null));
253
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
254
+ ...blockProps,
255
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Spinner, {})
256
+ });
254
257
  }
255
258
  if (!postId) {
256
259
  commentTree = getCommentsPlaceholder({
@@ -261,11 +264,12 @@ function CommentTemplateEdit({
261
264
  });
262
265
  }
263
266
  if (!commentTree.length) {
264
- return (0, _react.createElement)("p", {
265
- ...blockProps
266
- }, (0, _i18n.__)('No results found.'));
267
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
268
+ ...blockProps,
269
+ children: (0, _i18n.__)('No results found.')
270
+ });
267
271
  }
268
- return (0, _react.createElement)(CommentsList, {
272
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(CommentsList, {
269
273
  comments: commentTree,
270
274
  blockProps: blockProps,
271
275
  blocks: blocks,
@@ -1 +1 @@
1
- {"version":3,"names":["_element","require","_data","_i18n","_blockEditor","_components","_coreData","_hooks","TEMPLATE","getCommentsPlaceholder","perPage","pageComments","threadComments","threadCommentsDepth","commentsDepth","Math","min","buildChildrenComment","commentsLevel","nextLevel","commentId","children","placeholderComments","push","CommentTemplateInnerBlocks","comment","activeCommentId","setActiveCommentId","firstCommentId","blocks","innerBlocksProps","useInnerBlocksProps","template","_react","createElement","MemoizedCommentTemplatePreview","isHidden","length","CommentsList","comments","CommentTemplatePreview","blockPreviewProps","useBlockPreview","handleOnClick","style","display","undefined","tabIndex","role","onClick","onKeyPress","memo","blockProps","map","index","BlockContextProvider","key","value","CommentTemplateEdit","clientId","context","postId","useBlockProps","useState","commentOrder","commentsPerPage","useSelect","select","getSettings","blockEditorStore","__experimentalDiscussionSettings","commentQuery","useCommentQueryArgs","topLevelComments","getEntityRecords","coreStore","getBlocks","commentTree","useCommentTree","reverse","Spinner","__"],"sources":["@wordpress/block-library/src/comment-template/edit.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useState, memo } from '@wordpress/element';\nimport { useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tBlockContextProvider,\n\tuseBlockProps,\n\tuseInnerBlocksProps,\n\tstore as blockEditorStore,\n\t__experimentalUseBlockPreview as useBlockPreview,\n} from '@wordpress/block-editor';\nimport { Spinner } from '@wordpress/components';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport { useCommentQueryArgs, useCommentTree } from './hooks';\n\nconst TEMPLATE = [\n\t[ 'core/avatar' ],\n\t[ 'core/comment-author-name' ],\n\t[ 'core/comment-date' ],\n\t[ 'core/comment-content' ],\n\t[ 'core/comment-reply-link' ],\n\t[ 'core/comment-edit-link' ],\n];\n\n/**\n * Function that returns a comment structure that will be rendered with default placehoders.\n *\n * Each comment has a `commentId` property that is always a negative number in\n * case of the placeholders. This is to ensure that the comment does not\n * conflict with the actual (real) comments.\n *\n * @param {Object} settings Discussion Settings.\n * @param {number} [settings.perPage] - Comments per page setting or block attribute.\n * @param {boolean} [settings.pageComments] - Enable break comments into pages setting.\n * @param {boolean} [settings.threadComments] - Enable threaded (nested) comments setting.\n * @param {number} [settings.threadCommentsDepth] - Level deep of threaded comments.\n *\n * @typedef {{id: null, children: EmptyComment[]}} EmptyComment\n * @return {EmptyComment[]} \t\tInner blocks of the Comment Template\n */\nconst getCommentsPlaceholder = ( {\n\tperPage,\n\tpageComments,\n\tthreadComments,\n\tthreadCommentsDepth,\n} ) => {\n\t// Limit commentsDepth to 3\n\tconst commentsDepth = ! threadComments\n\t\t? 1\n\t\t: Math.min( threadCommentsDepth, 3 );\n\n\tconst buildChildrenComment = ( commentsLevel ) => {\n\t\t// Render children comments until commentsDepth is reached\n\t\tif ( commentsLevel < commentsDepth ) {\n\t\t\tconst nextLevel = commentsLevel + 1;\n\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\tcommentId: -( commentsLevel + 3 ),\n\t\t\t\t\tchildren: buildChildrenComment( nextLevel ),\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\t\treturn [];\n\t};\n\n\t// Add the first comment and its children\n\tconst placeholderComments = [\n\t\t{ commentId: -1, children: buildChildrenComment( 1 ) },\n\t];\n\n\t// Add a second comment unless the break comments setting is active and set to less than 2, and there is one nested comment max\n\tif ( ( ! pageComments || perPage >= 2 ) && commentsDepth < 3 ) {\n\t\tplaceholderComments.push( {\n\t\t\tcommentId: -2,\n\t\t\tchildren: [],\n\t\t} );\n\t}\n\n\t// Add a third comment unless the break comments setting is active and set to less than 3, and there aren't nested comments\n\tif ( ( ! pageComments || perPage >= 3 ) && commentsDepth < 2 ) {\n\t\tplaceholderComments.push( {\n\t\t\tcommentId: -3,\n\t\t\tchildren: [],\n\t\t} );\n\t}\n\n\t// In case that the value is set but larger than 3 we truncate it to 3.\n\treturn placeholderComments;\n};\n\n/**\n * Component which renders the inner blocks of the Comment Template.\n *\n * @param {Object} props Component props.\n * @param {Array} [props.comment] - A comment object.\n * @param {Array} [props.activeCommentId] - The ID of the comment that is currently active.\n * @param {Array} [props.setActiveCommentId] - The setter for activeCommentId.\n * @param {Array} [props.firstCommentId] - ID of the first comment in the array.\n * @param {Array} [props.blocks] - Array of blocks returned from\n * getBlocks() in parent .\n * @return {Element} \t\tInner blocks of the Comment Template\n */\nfunction CommentTemplateInnerBlocks( {\n\tcomment,\n\tactiveCommentId,\n\tsetActiveCommentId,\n\tfirstCommentId,\n\tblocks,\n} ) {\n\tconst { children, ...innerBlocksProps } = useInnerBlocksProps(\n\t\t{},\n\t\t{ template: TEMPLATE }\n\t);\n\n\treturn (\n\t\t<li { ...innerBlocksProps }>\n\t\t\t{ comment.commentId === ( activeCommentId || firstCommentId )\n\t\t\t\t? children\n\t\t\t\t: null }\n\n\t\t\t{ /* To avoid flicker when switching active block contexts, a preview\n\t\t\t is ALWAYS rendered and the preview for the active block is hidden.\n\t\t\t This ensures that when switching the active block, the component is not\n\t\t\t mounted again but rather it only toggles the `isHidden` prop.\n\t\t\t The same strategy is used for preventing the flicker in the Post Template\n\t\t\t block. */ }\n\t\t\t<MemoizedCommentTemplatePreview\n\t\t\t\tblocks={ blocks }\n\t\t\t\tcommentId={ comment.commentId }\n\t\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\t\tisHidden={\n\t\t\t\t\tcomment.commentId === ( activeCommentId || firstCommentId )\n\t\t\t\t}\n\t\t\t/>\n\n\t\t\t{ comment?.children?.length > 0 ? (\n\t\t\t\t<CommentsList\n\t\t\t\t\tcomments={ comment.children }\n\t\t\t\t\tactiveCommentId={ activeCommentId }\n\t\t\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\t\t\tblocks={ blocks }\n\t\t\t\t\tfirstCommentId={ firstCommentId }\n\t\t\t\t/>\n\t\t\t) : null }\n\t\t</li>\n\t);\n}\n\nconst CommentTemplatePreview = ( {\n\tblocks,\n\tcommentId,\n\tsetActiveCommentId,\n\tisHidden,\n} ) => {\n\tconst blockPreviewProps = useBlockPreview( {\n\t\tblocks,\n\t} );\n\n\tconst handleOnClick = () => {\n\t\tsetActiveCommentId( commentId );\n\t};\n\n\t// We have to hide the preview block if the `comment` props points to\n\t// the curently active block!\n\n\t// Or, to put it differently, every preview block is visible unless it is the\n\t// currently active block - in this case we render its inner blocks.\n\tconst style = {\n\t\tdisplay: isHidden ? 'none' : undefined,\n\t};\n\n\treturn (\n\t\t<div\n\t\t\t{ ...blockPreviewProps }\n\t\t\ttabIndex={ 0 }\n\t\t\trole=\"button\"\n\t\t\tstyle={ style }\n\t\t\t// eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role\n\t\t\tonClick={ handleOnClick }\n\t\t\tonKeyPress={ handleOnClick }\n\t\t/>\n\t);\n};\n\nconst MemoizedCommentTemplatePreview = memo( CommentTemplatePreview );\n\n/**\n * Component that renders a list of (nested) comments. It is called recursively.\n *\n * @param {Object} props Component props.\n * @param {Array} [props.comments] - Array of comment objects.\n * @param {Array} [props.blockProps] - Props from parent's `useBlockProps()`.\n * @param {Array} [props.activeCommentId] - The ID of the comment that is currently active.\n * @param {Array} [props.setActiveCommentId] - The setter for activeCommentId.\n * @param {Array} [props.blocks] - Array of blocks returned from getBlocks() in parent.\n * @param {Object} [props.firstCommentId] - The ID of the first comment in the array of\n * comment objects.\n * @return {Element} \t\tList of comments.\n */\nconst CommentsList = ( {\n\tcomments,\n\tblockProps,\n\tactiveCommentId,\n\tsetActiveCommentId,\n\tblocks,\n\tfirstCommentId,\n} ) => (\n\t<ol { ...blockProps }>\n\t\t{ comments &&\n\t\t\tcomments.map( ( { commentId, ...comment }, index ) => (\n\t\t\t\t<BlockContextProvider\n\t\t\t\t\tkey={ comment.commentId || index }\n\t\t\t\t\tvalue={ {\n\t\t\t\t\t\t// If the commentId is negative it means that this comment is a\n\t\t\t\t\t\t// \"placeholder\" and that the block is most likely being used in the\n\t\t\t\t\t\t// site editor. In this case, we have to set the commentId to `null`\n\t\t\t\t\t\t// because otherwise the (non-existent) comment with a negative ID\n\t\t\t\t\t\t// would be reqested from the REST API.\n\t\t\t\t\t\tcommentId: commentId < 0 ? null : commentId,\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<CommentTemplateInnerBlocks\n\t\t\t\t\t\tcomment={ { commentId, ...comment } }\n\t\t\t\t\t\tactiveCommentId={ activeCommentId }\n\t\t\t\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\t\t\t\tblocks={ blocks }\n\t\t\t\t\t\tfirstCommentId={ firstCommentId }\n\t\t\t\t\t/>\n\t\t\t\t</BlockContextProvider>\n\t\t\t) ) }\n\t</ol>\n);\n\nexport default function CommentTemplateEdit( {\n\tclientId,\n\tcontext: { postId },\n} ) {\n\tconst blockProps = useBlockProps();\n\n\tconst [ activeCommentId, setActiveCommentId ] = useState();\n\tconst {\n\t\tcommentOrder,\n\t\tthreadCommentsDepth,\n\t\tthreadComments,\n\t\tcommentsPerPage,\n\t\tpageComments,\n\t} = useSelect( ( select ) => {\n\t\tconst { getSettings } = select( blockEditorStore );\n\t\treturn getSettings().__experimentalDiscussionSettings;\n\t} );\n\n\tconst commentQuery = useCommentQueryArgs( {\n\t\tpostId,\n\t} );\n\n\tconst { topLevelComments, blocks } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecords } = select( coreStore );\n\t\t\tconst { getBlocks } = select( blockEditorStore );\n\t\t\treturn {\n\t\t\t\t// Request only top-level comments. Replies are embedded.\n\t\t\t\ttopLevelComments: commentQuery\n\t\t\t\t\t? getEntityRecords( 'root', 'comment', commentQuery )\n\t\t\t\t\t: null,\n\t\t\t\tblocks: getBlocks( clientId ),\n\t\t\t};\n\t\t},\n\t\t[ clientId, commentQuery ]\n\t);\n\n\t// Generate a tree structure of comment IDs.\n\tlet commentTree = useCommentTree(\n\t\t// Reverse the order of top comments if needed.\n\t\tcommentOrder === 'desc' && topLevelComments\n\t\t\t? [ ...topLevelComments ].reverse()\n\t\t\t: topLevelComments\n\t);\n\n\tif ( ! topLevelComments ) {\n\t\treturn (\n\t\t\t<p { ...blockProps }>\n\t\t\t\t<Spinner />\n\t\t\t</p>\n\t\t);\n\t}\n\n\tif ( ! postId ) {\n\t\tcommentTree = getCommentsPlaceholder( {\n\t\t\tperPage: commentsPerPage,\n\t\t\tpageComments,\n\t\t\tthreadComments,\n\t\t\tthreadCommentsDepth,\n\t\t} );\n\t}\n\n\tif ( ! commentTree.length ) {\n\t\treturn <p { ...blockProps }>{ __( 'No results found.' ) }</p>;\n\t}\n\n\treturn (\n\t\t<CommentsList\n\t\t\tcomments={ commentTree }\n\t\t\tblockProps={ blockProps }\n\t\t\tblocks={ blocks }\n\t\t\tactiveCommentId={ activeCommentId }\n\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\tfirstCommentId={ commentTree[ 0 ]?.commentId }\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,I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AE+C,SAAS,CAAEjB,QAAS;IAC7B,CAAC;EACF,CAAC,EACD,CAAEA,QAAQ,EAAEY,YAAY,CACzB,CAAC;;EAED;EACA,IAAIM,WAAW,GAAG,IAAAC,qBAAc;EAC/B;EACAd,YAAY,KAAK,MAAM,IAAIS,gBAAgB,GACxC,CAAE,GAAGA,gBAAgB,CAAE,CAACM,OAAO,CAAC,CAAC,GACjCN,gBACJ,CAAC;EAED,IAAK,CAAEA,gBAAgB,EAAG;IACzB,OACC,IAAAxC,MAAA,CAAAC,aAAA;MAAA,GAAQkB;IAAU,GACjB,IAAAnB,MAAA,CAAAC,aAAA,EAAC7B,WAAA,CAAA2E,OAAO,MAAE,CACR,CAAC;EAEN;EAEA,IAAK,CAAEnB,MAAM,EAAG;IACfgB,WAAW,GAAGpE,sBAAsB,CAAE;MACrCC,OAAO,EAAEuD,eAAe;MACxBtD,YAAY;MACZC,cAAc;MACdC;IACD,CAAE,CAAC;EACJ;EAEA,IAAK,CAAEgE,WAAW,CAACxC,MAAM,EAAG;IAC3B,OAAO,IAAAJ,MAAA,CAAAC,aAAA;MAAA,GAAQkB;IAAU,GAAK,IAAA6B,QAAE,EAAE,mBAAoB,CAAM,CAAC;EAC9D;EAEA,OACC,IAAAhD,MAAA,CAAAC,aAAA,EAACI,YAAY;IACZC,QAAQ,EAAGsC,WAAa;IACxBzB,UAAU,EAAGA,UAAY;IACzBvB,MAAM,EAAGA,MAAQ;IACjBH,eAAe,EAAGA,eAAiB;IACnCC,kBAAkB,EAAGA,kBAAoB;IACzCC,cAAc,EAAGiD,WAAW,CAAE,CAAC,CAAE,EAAEzD;EAAW,CAC9C,CAAC;AAEJ","ignoreList":[]}
1
+ {"version":3,"names":["_element","require","_data","_i18n","_blockEditor","_components","_coreData","_hooks","_jsxRuntime","TEMPLATE","getCommentsPlaceholder","perPage","pageComments","threadComments","threadCommentsDepth","commentsDepth","Math","min","buildChildrenComment","commentsLevel","nextLevel","commentId","children","placeholderComments","push","CommentTemplateInnerBlocks","comment","activeCommentId","setActiveCommentId","firstCommentId","blocks","innerBlocksProps","useInnerBlocksProps","template","jsxs","jsx","MemoizedCommentTemplatePreview","isHidden","length","CommentsList","comments","CommentTemplatePreview","blockPreviewProps","useBlockPreview","handleOnClick","style","display","undefined","tabIndex","role","onClick","onKeyPress","memo","blockProps","map","index","BlockContextProvider","value","CommentTemplateEdit","clientId","context","postId","useBlockProps","useState","commentOrder","commentsPerPage","useSelect","select","getSettings","blockEditorStore","__experimentalDiscussionSettings","commentQuery","useCommentQueryArgs","topLevelComments","getEntityRecords","coreStore","getBlocks","commentTree","useCommentTree","reverse","Spinner","__"],"sources":["@wordpress/block-library/src/comment-template/edit.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useState, memo } from '@wordpress/element';\nimport { useSelect } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tBlockContextProvider,\n\tuseBlockProps,\n\tuseInnerBlocksProps,\n\tstore as blockEditorStore,\n\t__experimentalUseBlockPreview as useBlockPreview,\n} from '@wordpress/block-editor';\nimport { Spinner } from '@wordpress/components';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport { useCommentQueryArgs, useCommentTree } from './hooks';\n\nconst TEMPLATE = [\n\t[ 'core/avatar' ],\n\t[ 'core/comment-author-name' ],\n\t[ 'core/comment-date' ],\n\t[ 'core/comment-content' ],\n\t[ 'core/comment-reply-link' ],\n\t[ 'core/comment-edit-link' ],\n];\n\n/**\n * Function that returns a comment structure that will be rendered with default placehoders.\n *\n * Each comment has a `commentId` property that is always a negative number in\n * case of the placeholders. This is to ensure that the comment does not\n * conflict with the actual (real) comments.\n *\n * @param {Object} settings Discussion Settings.\n * @param {number} [settings.perPage] - Comments per page setting or block attribute.\n * @param {boolean} [settings.pageComments] - Enable break comments into pages setting.\n * @param {boolean} [settings.threadComments] - Enable threaded (nested) comments setting.\n * @param {number} [settings.threadCommentsDepth] - Level deep of threaded comments.\n *\n * @typedef {{id: null, children: EmptyComment[]}} EmptyComment\n * @return {EmptyComment[]} \t\tInner blocks of the Comment Template\n */\nconst getCommentsPlaceholder = ( {\n\tperPage,\n\tpageComments,\n\tthreadComments,\n\tthreadCommentsDepth,\n} ) => {\n\t// Limit commentsDepth to 3\n\tconst commentsDepth = ! threadComments\n\t\t? 1\n\t\t: Math.min( threadCommentsDepth, 3 );\n\n\tconst buildChildrenComment = ( commentsLevel ) => {\n\t\t// Render children comments until commentsDepth is reached\n\t\tif ( commentsLevel < commentsDepth ) {\n\t\t\tconst nextLevel = commentsLevel + 1;\n\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\tcommentId: -( commentsLevel + 3 ),\n\t\t\t\t\tchildren: buildChildrenComment( nextLevel ),\n\t\t\t\t},\n\t\t\t];\n\t\t}\n\t\treturn [];\n\t};\n\n\t// Add the first comment and its children\n\tconst placeholderComments = [\n\t\t{ commentId: -1, children: buildChildrenComment( 1 ) },\n\t];\n\n\t// Add a second comment unless the break comments setting is active and set to less than 2, and there is one nested comment max\n\tif ( ( ! pageComments || perPage >= 2 ) && commentsDepth < 3 ) {\n\t\tplaceholderComments.push( {\n\t\t\tcommentId: -2,\n\t\t\tchildren: [],\n\t\t} );\n\t}\n\n\t// Add a third comment unless the break comments setting is active and set to less than 3, and there aren't nested comments\n\tif ( ( ! pageComments || perPage >= 3 ) && commentsDepth < 2 ) {\n\t\tplaceholderComments.push( {\n\t\t\tcommentId: -3,\n\t\t\tchildren: [],\n\t\t} );\n\t}\n\n\t// In case that the value is set but larger than 3 we truncate it to 3.\n\treturn placeholderComments;\n};\n\n/**\n * Component which renders the inner blocks of the Comment Template.\n *\n * @param {Object} props Component props.\n * @param {Array} [props.comment] - A comment object.\n * @param {Array} [props.activeCommentId] - The ID of the comment that is currently active.\n * @param {Array} [props.setActiveCommentId] - The setter for activeCommentId.\n * @param {Array} [props.firstCommentId] - ID of the first comment in the array.\n * @param {Array} [props.blocks] - Array of blocks returned from\n * getBlocks() in parent .\n * @return {Element} \t\tInner blocks of the Comment Template\n */\nfunction CommentTemplateInnerBlocks( {\n\tcomment,\n\tactiveCommentId,\n\tsetActiveCommentId,\n\tfirstCommentId,\n\tblocks,\n} ) {\n\tconst { children, ...innerBlocksProps } = useInnerBlocksProps(\n\t\t{},\n\t\t{ template: TEMPLATE }\n\t);\n\n\treturn (\n\t\t<li { ...innerBlocksProps }>\n\t\t\t{ comment.commentId === ( activeCommentId || firstCommentId )\n\t\t\t\t? children\n\t\t\t\t: null }\n\n\t\t\t{ /* To avoid flicker when switching active block contexts, a preview\n\t\t\t is ALWAYS rendered and the preview for the active block is hidden.\n\t\t\t This ensures that when switching the active block, the component is not\n\t\t\t mounted again but rather it only toggles the `isHidden` prop.\n\t\t\t The same strategy is used for preventing the flicker in the Post Template\n\t\t\t block. */ }\n\t\t\t<MemoizedCommentTemplatePreview\n\t\t\t\tblocks={ blocks }\n\t\t\t\tcommentId={ comment.commentId }\n\t\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\t\tisHidden={\n\t\t\t\t\tcomment.commentId === ( activeCommentId || firstCommentId )\n\t\t\t\t}\n\t\t\t/>\n\n\t\t\t{ comment?.children?.length > 0 ? (\n\t\t\t\t<CommentsList\n\t\t\t\t\tcomments={ comment.children }\n\t\t\t\t\tactiveCommentId={ activeCommentId }\n\t\t\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\t\t\tblocks={ blocks }\n\t\t\t\t\tfirstCommentId={ firstCommentId }\n\t\t\t\t/>\n\t\t\t) : null }\n\t\t</li>\n\t);\n}\n\nconst CommentTemplatePreview = ( {\n\tblocks,\n\tcommentId,\n\tsetActiveCommentId,\n\tisHidden,\n} ) => {\n\tconst blockPreviewProps = useBlockPreview( {\n\t\tblocks,\n\t} );\n\n\tconst handleOnClick = () => {\n\t\tsetActiveCommentId( commentId );\n\t};\n\n\t// We have to hide the preview block if the `comment` props points to\n\t// the curently active block!\n\n\t// Or, to put it differently, every preview block is visible unless it is the\n\t// currently active block - in this case we render its inner blocks.\n\tconst style = {\n\t\tdisplay: isHidden ? 'none' : undefined,\n\t};\n\n\treturn (\n\t\t<div\n\t\t\t{ ...blockPreviewProps }\n\t\t\ttabIndex={ 0 }\n\t\t\trole=\"button\"\n\t\t\tstyle={ style }\n\t\t\t// eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role\n\t\t\tonClick={ handleOnClick }\n\t\t\tonKeyPress={ handleOnClick }\n\t\t/>\n\t);\n};\n\nconst MemoizedCommentTemplatePreview = memo( CommentTemplatePreview );\n\n/**\n * Component that renders a list of (nested) comments. It is called recursively.\n *\n * @param {Object} props Component props.\n * @param {Array} [props.comments] - Array of comment objects.\n * @param {Array} [props.blockProps] - Props from parent's `useBlockProps()`.\n * @param {Array} [props.activeCommentId] - The ID of the comment that is currently active.\n * @param {Array} [props.setActiveCommentId] - The setter for activeCommentId.\n * @param {Array} [props.blocks] - Array of blocks returned from getBlocks() in parent.\n * @param {Object} [props.firstCommentId] - The ID of the first comment in the array of\n * comment objects.\n * @return {Element} \t\tList of comments.\n */\nconst CommentsList = ( {\n\tcomments,\n\tblockProps,\n\tactiveCommentId,\n\tsetActiveCommentId,\n\tblocks,\n\tfirstCommentId,\n} ) => (\n\t<ol { ...blockProps }>\n\t\t{ comments &&\n\t\t\tcomments.map( ( { commentId, ...comment }, index ) => (\n\t\t\t\t<BlockContextProvider\n\t\t\t\t\tkey={ comment.commentId || index }\n\t\t\t\t\tvalue={ {\n\t\t\t\t\t\t// If the commentId is negative it means that this comment is a\n\t\t\t\t\t\t// \"placeholder\" and that the block is most likely being used in the\n\t\t\t\t\t\t// site editor. In this case, we have to set the commentId to `null`\n\t\t\t\t\t\t// because otherwise the (non-existent) comment with a negative ID\n\t\t\t\t\t\t// would be reqested from the REST API.\n\t\t\t\t\t\tcommentId: commentId < 0 ? null : commentId,\n\t\t\t\t\t} }\n\t\t\t\t>\n\t\t\t\t\t<CommentTemplateInnerBlocks\n\t\t\t\t\t\tcomment={ { commentId, ...comment } }\n\t\t\t\t\t\tactiveCommentId={ activeCommentId }\n\t\t\t\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\t\t\t\tblocks={ blocks }\n\t\t\t\t\t\tfirstCommentId={ firstCommentId }\n\t\t\t\t\t/>\n\t\t\t\t</BlockContextProvider>\n\t\t\t) ) }\n\t</ol>\n);\n\nexport default function CommentTemplateEdit( {\n\tclientId,\n\tcontext: { postId },\n} ) {\n\tconst blockProps = useBlockProps();\n\n\tconst [ activeCommentId, setActiveCommentId ] = useState();\n\tconst {\n\t\tcommentOrder,\n\t\tthreadCommentsDepth,\n\t\tthreadComments,\n\t\tcommentsPerPage,\n\t\tpageComments,\n\t} = useSelect( ( select ) => {\n\t\tconst { getSettings } = select( blockEditorStore );\n\t\treturn getSettings().__experimentalDiscussionSettings;\n\t} );\n\n\tconst commentQuery = useCommentQueryArgs( {\n\t\tpostId,\n\t} );\n\n\tconst { topLevelComments, blocks } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getEntityRecords } = select( coreStore );\n\t\t\tconst { getBlocks } = select( blockEditorStore );\n\t\t\treturn {\n\t\t\t\t// Request only top-level comments. Replies are embedded.\n\t\t\t\ttopLevelComments: commentQuery\n\t\t\t\t\t? getEntityRecords( 'root', 'comment', commentQuery )\n\t\t\t\t\t: null,\n\t\t\t\tblocks: getBlocks( clientId ),\n\t\t\t};\n\t\t},\n\t\t[ clientId, commentQuery ]\n\t);\n\n\t// Generate a tree structure of comment IDs.\n\tlet commentTree = useCommentTree(\n\t\t// Reverse the order of top comments if needed.\n\t\tcommentOrder === 'desc' && topLevelComments\n\t\t\t? [ ...topLevelComments ].reverse()\n\t\t\t: topLevelComments\n\t);\n\n\tif ( ! topLevelComments ) {\n\t\treturn (\n\t\t\t<p { ...blockProps }>\n\t\t\t\t<Spinner />\n\t\t\t</p>\n\t\t);\n\t}\n\n\tif ( ! postId ) {\n\t\tcommentTree = getCommentsPlaceholder( {\n\t\t\tperPage: commentsPerPage,\n\t\t\tpageComments,\n\t\t\tthreadComments,\n\t\t\tthreadCommentsDepth,\n\t\t} );\n\t}\n\n\tif ( ! commentTree.length ) {\n\t\treturn <p { ...blockProps }>{ __( 'No results found.' ) }</p>;\n\t}\n\n\treturn (\n\t\t<CommentsList\n\t\t\tcomments={ commentTree }\n\t\t\tblockProps={ blockProps }\n\t\t\tblocks={ blocks }\n\t\t\tactiveCommentId={ activeCommentId }\n\t\t\tsetActiveCommentId={ setActiveCommentId }\n\t\t\tfirstCommentId={ commentTree[ 0 ]?.commentId }\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;;AAGA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAOA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAKA,IAAAM,MAAA,GAAAN,OAAA;AAA8D,IAAAO,WAAA,GAAAP,OAAA;AAnB9D;AACA;AACA;;AAcA;AACA;AACA;;AAGA,MAAMQ,QAAQ,GAAG,CAChB,CAAE,aAAa,CAAE,EACjB,CAAE,0BAA0B,CAAE,EAC9B,CAAE,mBAAmB,CAAE,EACvB,CAAE,sBAAsB,CAAE,EAC1B,CAAE,yBAAyB,CAAE,EAC7B,CAAE,wBAAwB,CAAE,CAC5B;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,sBAAsB,GAAGA,CAAE;EAChCC,OAAO;EACPC,YAAY;EACZC,cAAc;EACdC;AACD,CAAC,KAAM;EACN;EACA,MAAMC,aAAa,GAAG,CAAEF,cAAc,GACnC,CAAC,GACDG,IAAI,CAACC,GAAG,CAAEH,mBAAmB,EAAE,CAAE,CAAC;EAErC,MAAMI,oBAAoB,GAAKC,aAAa,IAAM;IACjD;IACA,IAAKA,aAAa,GAAGJ,aAAa,EAAG;MAC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,QAAE,EAAE,mBAAoB;IAAC,CAAK,CAAC;EAC9D;EAEA,oBACC,IAAAzE,WAAA,CAAA2B,GAAA,EAACI,YAAY;IACZC,QAAQ,EAAGqC,WAAa;IACxBxB,UAAU,EAAGA,UAAY;IACzBvB,MAAM,EAAGA,MAAQ;IACjBH,eAAe,EAAGA,eAAiB;IACnCC,kBAAkB,EAAGA,kBAAoB;IACzCC,cAAc,EAAGgD,WAAW,CAAE,CAAC,CAAE,EAAExD;EAAW,CAC9C,CAAC;AAEJ","ignoreList":[]}
@@ -4,13 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = CommentTemplateSave;
7
- var _react = require("react");
8
7
  var _blockEditor = require("@wordpress/block-editor");
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
9
  /**
10
10
  * WordPress dependencies
11
11
  */
12
12
 
13
13
  function CommentTemplateSave() {
14
- return (0, _react.createElement)(_blockEditor.InnerBlocks.Content, null);
14
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.InnerBlocks.Content, {});
15
15
  }
16
16
  //# sourceMappingURL=save.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_blockEditor","require","CommentTemplateSave","_react","createElement","InnerBlocks","Content"],"sources":["@wordpress/block-library/src/comment-template/save.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { InnerBlocks } from '@wordpress/block-editor';\n\nexport default function CommentTemplateSave() {\n\treturn <InnerBlocks.Content />;\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGe,SAASC,mBAAmBA,CAAA,EAAG;EAC7C,OAAO,IAAAC,MAAA,CAAAC,aAAA,EAACJ,YAAA,CAAAK,WAAW,CAACC,OAAO,MAAE,CAAC;AAC/B","ignoreList":[]}
1
+ {"version":3,"names":["_blockEditor","require","_jsxRuntime","CommentTemplateSave","jsx","InnerBlocks","Content"],"sources":["@wordpress/block-library/src/comment-template/save.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { InnerBlocks } from '@wordpress/block-editor';\n\nexport default function CommentTemplateSave() {\n\treturn <InnerBlocks.Content />;\n}\n"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAAsD,IAAAC,WAAA,GAAAD,OAAA;AAHtD;AACA;AACA;;AAGe,SAASE,mBAAmBA,CAAA,EAAG;EAC7C,oBAAO,IAAAD,WAAA,CAAAE,GAAA,EAACJ,YAAA,CAAAK,WAAW,CAACC,OAAO,IAAE,CAAC;AAC/B","ignoreList":[]}
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _react = require("react");
8
7
  var _blockEditor = require("@wordpress/block-editor");
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
9
  /**
10
10
  * WordPress dependencies
11
11
  */
@@ -52,9 +52,10 @@ const v1 = {
52
52
  ...blockProps,
53
53
  className: newClasses.join(' ')
54
54
  };
55
- return (0, _react.createElement)(Tag, {
56
- ...newBlockProps
57
- }, (0, _react.createElement)(_blockEditor.InnerBlocks.Content, null));
55
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
56
+ ...newBlockProps,
57
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.InnerBlocks.Content, {})
58
+ });
58
59
  }
59
60
  };
60
61
  var _default = exports.default = [v1];
@@ -1 +1 @@
1
- {"version":3,"names":["_blockEditor","require","v1","attributes","tagName","type","default","apiVersion","supports","align","html","color","gradients","link","__experimentalDefaultControls","background","text","save","Tag","blockProps","useBlockProps","className","classes","split","newClasses","filter","cls","newBlockProps","join","_react","createElement","InnerBlocks","Content","_default","exports"],"sources":["@wordpress/block-library/src/comments/deprecated.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { InnerBlocks, useBlockProps } from '@wordpress/block-editor';\n\n// v1: Deprecate the initial version of the block which was called \"Comments\n// Query Loop\" instead of \"Comments\".\nconst v1 = {\n\tattributes: {\n\t\ttagName: {\n\t\t\ttype: 'string',\n\t\t\tdefault: 'div',\n\t\t},\n\t},\n\tapiVersion: 3,\n\tsupports: {\n\t\talign: [ 'wide', 'full' ],\n\t\thtml: false,\n\t\tcolor: {\n\t\t\tgradients: true,\n\t\t\tlink: true,\n\t\t\t__experimentalDefaultControls: {\n\t\t\t\tbackground: true,\n\t\t\t\ttext: true,\n\t\t\t\tlink: true,\n\t\t\t},\n\t\t},\n\t},\n\tsave( { attributes: { tagName: Tag } } ) {\n\t\tconst blockProps = useBlockProps.save();\n\t\tconst { className } = blockProps;\n\t\tconst classes = className?.split( ' ' ) || [];\n\n\t\t// The ID of the previous version of the block\n\t\t// didn't have the `wp-block-comments` class,\n\t\t// so we need to remove it here in order to mimic it.\n\t\tconst newClasses = classes?.filter(\n\t\t\t( cls ) => cls !== 'wp-block-comments'\n\t\t);\n\t\tconst newBlockProps = {\n\t\t\t...blockProps,\n\t\t\tclassName: newClasses.join( ' ' ),\n\t\t};\n\n\t\treturn (\n\t\t\t<Tag { ...newBlockProps }>\n\t\t\t\t<InnerBlocks.Content />\n\t\t\t</Tag>\n\t\t);\n\t},\n};\n\nexport default [ v1 ];\n"],"mappings":";;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGA;AACA;AACA,MAAMC,EAAE,GAAG;EACVC,UAAU,EAAE;IACXC,OAAO,EAAE;MACRC,IAAI,EAAE,QAAQ;MACdC,OAAO,EAAE;IACV;EACD,CAAC;EACDC,UAAU,EAAE,CAAC;EACbC,QAAQ,EAAE;IACTC,KAAK,EAAE,CAAE,MAAM,EAAE,MAAM,CAAE;IACzBC,IAAI,EAAE,KAAK;IACXC,KAAK,EAAE;MACNC,SAAS,EAAE,IAAI;MACfC,IAAI,EAAE,IAAI;MACVC,6BAA6B,EAAE;QAC9BC,UAAU,EAAE,IAAI;QAChBC,IAAI,EAAE,IAAI;QACVH,IAAI,EAAE;MACP;IACD;EACD,CAAC;EACDI,IAAIA,CAAE;IAAEd,UAAU,EAAE;MAAEC,OAAO,EAAEc;IAAI;EAAE,CAAC,EAAG;IACxC,MAAMC,UAAU,GAAGC,0BAAa,CAACH,IAAI,CAAC,CAAC;IACvC,MAAM;MAAEI;IAAU,CAAC,GAAGF,UAAU;IAChC,MAAMG,OAAO,GAAGD,SAAS,EAAEE,KAAK,CAAE,GAAI,CAAC,IAAI,EAAE;;IAE7C;IACA;IACA;IACA,MAAMC,UAAU,GAAGF,OAAO,EAAEG,MAAM,CAC/BC,GAAG,IAAMA,GAAG,KAAK,mBACpB,CAAC;IACD,MAAMC,aAAa,GAAG;MACrB,GAAGR,UAAU;MACbE,SAAS,EAAEG,UAAU,CAACI,IAAI,CAAE,GAAI;IACjC,CAAC;IAED,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACZ,GAAG;MAAA,GAAMS;IAAa,GACtB,IAAAE,MAAA,CAAAC,aAAA,EAAC9B,YAAA,CAAA+B,WAAW,CAACC,OAAO,MAAE,CAClB,CAAC;EAER;AACD,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA5B,OAAA,GAEa,CAAEJ,EAAE,CAAE","ignoreList":[]}
1
+ {"version":3,"names":["_blockEditor","require","_jsxRuntime","v1","attributes","tagName","type","default","apiVersion","supports","align","html","color","gradients","link","__experimentalDefaultControls","background","text","save","Tag","blockProps","useBlockProps","className","classes","split","newClasses","filter","cls","newBlockProps","join","jsx","children","InnerBlocks","Content","_default","exports"],"sources":["@wordpress/block-library/src/comments/deprecated.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { InnerBlocks, useBlockProps } from '@wordpress/block-editor';\n\n// v1: Deprecate the initial version of the block which was called \"Comments\n// Query Loop\" instead of \"Comments\".\nconst v1 = {\n\tattributes: {\n\t\ttagName: {\n\t\t\ttype: 'string',\n\t\t\tdefault: 'div',\n\t\t},\n\t},\n\tapiVersion: 3,\n\tsupports: {\n\t\talign: [ 'wide', 'full' ],\n\t\thtml: false,\n\t\tcolor: {\n\t\t\tgradients: true,\n\t\t\tlink: true,\n\t\t\t__experimentalDefaultControls: {\n\t\t\t\tbackground: true,\n\t\t\t\ttext: true,\n\t\t\t\tlink: true,\n\t\t\t},\n\t\t},\n\t},\n\tsave( { attributes: { tagName: Tag } } ) {\n\t\tconst blockProps = useBlockProps.save();\n\t\tconst { className } = blockProps;\n\t\tconst classes = className?.split( ' ' ) || [];\n\n\t\t// The ID of the previous version of the block\n\t\t// didn't have the `wp-block-comments` class,\n\t\t// so we need to remove it here in order to mimic it.\n\t\tconst newClasses = classes?.filter(\n\t\t\t( cls ) => cls !== 'wp-block-comments'\n\t\t);\n\t\tconst newBlockProps = {\n\t\t\t...blockProps,\n\t\t\tclassName: newClasses.join( ' ' ),\n\t\t};\n\n\t\treturn (\n\t\t\t<Tag { ...newBlockProps }>\n\t\t\t\t<InnerBlocks.Content />\n\t\t\t</Tag>\n\t\t);\n\t},\n};\n\nexport default [ v1 ];\n"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAAqE,IAAAC,WAAA,GAAAD,OAAA;AAHrE;AACA;AACA;;AAGA;AACA;AACA,MAAME,EAAE,GAAG;EACVC,UAAU,EAAE;IACXC,OAAO,EAAE;MACRC,IAAI,EAAE,QAAQ;MACdC,OAAO,EAAE;IACV;EACD,CAAC;EACDC,UAAU,EAAE,CAAC;EACbC,QAAQ,EAAE;IACTC,KAAK,EAAE,CAAE,MAAM,EAAE,MAAM,CAAE;IACzBC,IAAI,EAAE,KAAK;IACXC,KAAK,EAAE;MACNC,SAAS,EAAE,IAAI;MACfC,IAAI,EAAE,IAAI;MACVC,6BAA6B,EAAE;QAC9BC,UAAU,EAAE,IAAI;QAChBC,IAAI,EAAE,IAAI;QACVH,IAAI,EAAE;MACP;IACD;EACD,CAAC;EACDI,IAAIA,CAAE;IAAEd,UAAU,EAAE;MAAEC,OAAO,EAAEc;IAAI;EAAE,CAAC,EAAG;IACxC,MAAMC,UAAU,GAAGC,0BAAa,CAACH,IAAI,CAAC,CAAC;IACvC,MAAM;MAAEI;IAAU,CAAC,GAAGF,UAAU;IAChC,MAAMG,OAAO,GAAGD,SAAS,EAAEE,KAAK,CAAE,GAAI,CAAC,IAAI,EAAE;;IAE7C;IACA;IACA;IACA,MAAMC,UAAU,GAAGF,OAAO,EAAEG,MAAM,CAC/BC,GAAG,IAAMA,GAAG,KAAK,mBACpB,CAAC;IACD,MAAMC,aAAa,GAAG;MACrB,GAAGR,UAAU;MACbE,SAAS,EAAEG,UAAU,CAACI,IAAI,CAAE,GAAI;IACjC,CAAC;IAED,oBACC,IAAA3B,WAAA,CAAA4B,GAAA,EAACX,GAAG;MAAA,GAAMS,aAAa;MAAAG,QAAA,eACtB,IAAA7B,WAAA,CAAA4B,GAAA,EAAC9B,YAAA,CAAAgC,WAAW,CAACC,OAAO,IAAE;IAAC,CACnB,CAAC;EAER;AACD,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA5B,OAAA,GAEa,CAAEJ,EAAE,CAAE","ignoreList":[]}
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = CommentsInspectorControls;
7
- var _react = require("react");
8
7
  var _components = require("@wordpress/components");
9
8
  var _i18n = require("@wordpress/i18n");
10
9
  var _blockEditor = require("@wordpress/block-editor");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
11
  /**
12
12
  * WordPress dependencies
13
13
  */
@@ -22,27 +22,30 @@ function CommentsInspectorControls({
22
22
  section: (0, _i18n.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),
23
23
  aside: (0, _i18n.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")
24
24
  };
25
- return (0, _react.createElement)(_blockEditor.InspectorControls, null, (0, _react.createElement)(_blockEditor.InspectorControls, {
26
- group: "advanced"
27
- }, (0, _react.createElement)(_components.SelectControl, {
28
- __nextHasNoMarginBottom: true,
29
- __next40pxDefaultSize: true,
30
- label: (0, _i18n.__)('HTML element'),
31
- options: [{
32
- label: (0, _i18n.__)('Default (<div>)'),
33
- value: 'div'
34
- }, {
35
- label: '<section>',
36
- value: 'section'
37
- }, {
38
- label: '<aside>',
39
- value: 'aside'
40
- }],
41
- value: tagName,
42
- onChange: value => setAttributes({
43
- tagName: value
44
- }),
45
- help: htmlElementMessages[tagName]
46
- })));
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.InspectorControls, {
26
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.InspectorControls, {
27
+ group: "advanced",
28
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SelectControl, {
29
+ __nextHasNoMarginBottom: true,
30
+ __next40pxDefaultSize: true,
31
+ label: (0, _i18n.__)('HTML element'),
32
+ options: [{
33
+ label: (0, _i18n.__)('Default (<div>)'),
34
+ value: 'div'
35
+ }, {
36
+ label: '<section>',
37
+ value: 'section'
38
+ }, {
39
+ label: '<aside>',
40
+ value: 'aside'
41
+ }],
42
+ value: tagName,
43
+ onChange: value => setAttributes({
44
+ tagName: value
45
+ }),
46
+ help: htmlElementMessages[tagName]
47
+ })
48
+ })
49
+ });
47
50
  }
48
51
  //# sourceMappingURL=comments-inspector-controls.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","_i18n","_blockEditor","CommentsInspectorControls","attributes","tagName","setAttributes","htmlElementMessages","section","__","aside","_react","createElement","InspectorControls","group","SelectControl","__nextHasNoMarginBottom","__next40pxDefaultSize","label","options","value","onChange","help"],"sources":["@wordpress/block-library/src/comments/edit/comments-inspector-controls.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { SelectControl } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { InspectorControls } from '@wordpress/block-editor';\n\nexport default function CommentsInspectorControls( {\n\tattributes: { tagName },\n\tsetAttributes,\n} ) {\n\tconst htmlElementMessages = {\n\t\tsection: __(\n\t\t\t\"The <section> element should represent a standalone portion of the document that can't be better represented by another element.\"\n\t\t),\n\t\taside: __(\n\t\t\t\"The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.\"\n\t\t),\n\t};\n\treturn (\n\t\t<InspectorControls>\n\t\t\t<InspectorControls group=\"advanced\">\n\t\t\t\t<SelectControl\n\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\tlabel={ __( 'HTML element' ) }\n\t\t\t\t\toptions={ [\n\t\t\t\t\t\t{ label: __( 'Default (<div>)' ), value: 'div' },\n\t\t\t\t\t\t{ label: '<section>', value: 'section' },\n\t\t\t\t\t\t{ label: '<aside>', value: 'aside' },\n\t\t\t\t\t] }\n\t\t\t\t\tvalue={ tagName }\n\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\tsetAttributes( { tagName: value } )\n\t\t\t\t\t}\n\t\t\t\t\thelp={ htmlElementMessages[ tagName ] }\n\t\t\t\t/>\n\t\t\t</InspectorControls>\n\t\t</InspectorControls>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AALA;AACA;AACA;;AAKe,SAASG,yBAAyBA,CAAE;EAClDC,UAAU,EAAE;IAAEC;EAAQ,CAAC;EACvBC;AACD,CAAC,EAAG;EACH,MAAMC,mBAAmB,GAAG;IAC3BC,OAAO,EAAE,IAAAC,QAAE,EACV,kIACD,CAAC;IACDC,KAAK,EAAE,IAAAD,QAAE,EACR,uIACD;EACD,CAAC;EACD,OACC,IAAAE,MAAA,CAAAC,aAAA,EAACV,YAAA,CAAAW,iBAAiB,QACjB,IAAAF,MAAA,CAAAC,aAAA,EAACV,YAAA,CAAAW,iBAAiB;IAACC,KAAK,EAAC;EAAU,GAClC,IAAAH,MAAA,CAAAC,aAAA,EAACb,WAAA,CAAAgB,aAAa;IACbC,uBAAuB;IACvBC,qBAAqB;IACrBC,KAAK,EAAG,IAAAT,QAAE,EAAE,cAAe,CAAG;IAC9BU,OAAO,EAAG,CACT;MAAED,KAAK,EAAE,IAAAT,QAAE,EAAE,iBAAkB,CAAC;MAAEW,KAAK,EAAE;IAAM,CAAC,EAChD;MAAEF,KAAK,EAAE,WAAW;MAAEE,KAAK,EAAE;IAAU,CAAC,EACxC;MAAEF,KAAK,EAAE,SAAS;MAAEE,KAAK,EAAE;IAAQ,CAAC,CAClC;IACHA,KAAK,EAAGf,OAAS;IACjBgB,QAAQ,EAAKD,KAAK,IACjBd,aAAa,CAAE;MAAED,OAAO,EAAEe;IAAM,CAAE,CAClC;IACDE,IAAI,EAAGf,mBAAmB,CAAEF,OAAO;EAAI,CACvC,CACiB,CACD,CAAC;AAEtB","ignoreList":[]}
1
+ {"version":3,"names":["_components","require","_i18n","_blockEditor","_jsxRuntime","CommentsInspectorControls","attributes","tagName","setAttributes","htmlElementMessages","section","__","aside","jsx","InspectorControls","children","group","SelectControl","__nextHasNoMarginBottom","__next40pxDefaultSize","label","options","value","onChange","help"],"sources":["@wordpress/block-library/src/comments/edit/comments-inspector-controls.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { SelectControl } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { InspectorControls } from '@wordpress/block-editor';\n\nexport default function CommentsInspectorControls( {\n\tattributes: { tagName },\n\tsetAttributes,\n} ) {\n\tconst htmlElementMessages = {\n\t\tsection: __(\n\t\t\t\"The <section> element should represent a standalone portion of the document that can't be better represented by another element.\"\n\t\t),\n\t\taside: __(\n\t\t\t\"The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.\"\n\t\t),\n\t};\n\treturn (\n\t\t<InspectorControls>\n\t\t\t<InspectorControls group=\"advanced\">\n\t\t\t\t<SelectControl\n\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\tlabel={ __( 'HTML element' ) }\n\t\t\t\t\toptions={ [\n\t\t\t\t\t\t{ label: __( 'Default (<div>)' ), value: 'div' },\n\t\t\t\t\t\t{ label: '<section>', value: 'section' },\n\t\t\t\t\t\t{ label: '<aside>', value: 'aside' },\n\t\t\t\t\t] }\n\t\t\t\t\tvalue={ tagName }\n\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\tsetAttributes( { tagName: value } )\n\t\t\t\t\t}\n\t\t\t\t\thelp={ htmlElementMessages[ tagName ] }\n\t\t\t\t/>\n\t\t\t</InspectorControls>\n\t\t</InspectorControls>\n\t);\n}\n"],"mappings":";;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAA4D,IAAAG,WAAA,GAAAH,OAAA;AAL5D;AACA;AACA;;AAKe,SAASI,yBAAyBA,CAAE;EAClDC,UAAU,EAAE;IAAEC;EAAQ,CAAC;EACvBC;AACD,CAAC,EAAG;EACH,MAAMC,mBAAmB,GAAG;IAC3BC,OAAO,EAAE,IAAAC,QAAE,EACV,kIACD,CAAC;IACDC,KAAK,EAAE,IAAAD,QAAE,EACR,uIACD;EACD,CAAC;EACD,oBACC,IAAAP,WAAA,CAAAS,GAAA,EAACV,YAAA,CAAAW,iBAAiB;IAAAC,QAAA,eACjB,IAAAX,WAAA,CAAAS,GAAA,EAACV,YAAA,CAAAW,iBAAiB;MAACE,KAAK,EAAC,UAAU;MAAAD,QAAA,eAClC,IAAAX,WAAA,CAAAS,GAAA,EAACb,WAAA,CAAAiB,aAAa;QACbC,uBAAuB;QACvBC,qBAAqB;QACrBC,KAAK,EAAG,IAAAT,QAAE,EAAE,cAAe,CAAG;QAC9BU,OAAO,EAAG,CACT;UAAED,KAAK,EAAE,IAAAT,QAAE,EAAE,iBAAkB,CAAC;UAAEW,KAAK,EAAE;QAAM,CAAC,EAChD;UAAEF,KAAK,EAAE,WAAW;UAAEE,KAAK,EAAE;QAAU,CAAC,EACxC;UAAEF,KAAK,EAAE,SAAS;UAAEE,KAAK,EAAE;QAAQ,CAAC,CAClC;QACHA,KAAK,EAAGf,OAAS;QACjBgB,QAAQ,EAAKD,KAAK,IACjBd,aAAa,CAAE;UAAED,OAAO,EAAEe;QAAM,CAAE,CAClC;QACDE,IAAI,EAAGf,mBAAmB,CAAEF,OAAO;MAAI,CACvC;IAAC,CACgB;EAAC,CACF,CAAC;AAEtB","ignoreList":[]}
@@ -5,12 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = CommentsLegacy;
8
- var _react = require("react");
9
8
  var _clsx = _interopRequireDefault(require("clsx"));
10
9
  var _blockEditor = require("@wordpress/block-editor");
11
10
  var _i18n = require("@wordpress/i18n");
12
11
  var _components = require("@wordpress/components");
13
12
  var _placeholder = _interopRequireDefault(require("./placeholder"));
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
14
  /**
15
15
  * External dependencies
16
16
  */
@@ -34,34 +34,39 @@ function CommentsLegacy({
34
34
  const {
35
35
  textAlign
36
36
  } = attributes;
37
- const actions = [(0, _react.createElement)(_components.Button, {
38
- key: "convert",
37
+ const actions = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
39
38
  onClick: () => void setAttributes({
40
39
  legacy: false
41
40
  }),
42
- variant: "primary"
43
- }, (0, _i18n.__)('Switch to editable mode'))];
41
+ variant: "primary",
42
+ children: (0, _i18n.__)('Switch to editable mode')
43
+ }, "convert")];
44
44
  const blockProps = (0, _blockEditor.useBlockProps)({
45
45
  className: (0, _clsx.default)({
46
46
  [`has-text-align-${textAlign}`]: textAlign
47
47
  })
48
48
  });
49
- return (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)(_blockEditor.BlockControls, {
50
- group: "block"
51
- }, (0, _react.createElement)(_blockEditor.AlignmentControl, {
52
- value: textAlign,
53
- onChange: nextAlign => {
54
- setAttributes({
55
- textAlign: nextAlign
56
- });
57
- }
58
- })), (0, _react.createElement)("div", {
59
- ...blockProps
60
- }, (0, _react.createElement)(_blockEditor.Warning, {
61
- actions: actions
62
- }, (0, _i18n.__)('Comments block: You’re currently using the legacy version of the block. ' + 'The following is just a placeholder - the final styling will likely look different. ' + 'For a better representation and more customization options, ' + 'switch the block to its editable mode.')), (0, _react.createElement)(_placeholder.default, {
63
- postId: postId,
64
- postType: postType
65
- })));
49
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
50
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.BlockControls, {
51
+ group: "block",
52
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.AlignmentControl, {
53
+ value: textAlign,
54
+ onChange: nextAlign => {
55
+ setAttributes({
56
+ textAlign: nextAlign
57
+ });
58
+ }
59
+ })
60
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
61
+ ...blockProps,
62
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_blockEditor.Warning, {
63
+ actions: actions,
64
+ children: (0, _i18n.__)('Comments block: You’re currently using the legacy version of the block. ' + 'The following is just a placeholder - the final styling will likely look different. ' + 'For a better representation and more customization options, ' + 'switch the block to its editable mode.')
65
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_placeholder.default, {
66
+ postId: postId,
67
+ postType: postType
68
+ })]
69
+ })]
70
+ });
66
71
  }
67
72
  //# sourceMappingURL=comments-legacy.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_clsx","_interopRequireDefault","require","_blockEditor","_i18n","_components","_placeholder","CommentsLegacy","attributes","setAttributes","context","postType","postId","textAlign","actions","_react","createElement","Button","key","onClick","legacy","variant","__","blockProps","useBlockProps","className","clsx","Fragment","BlockControls","group","AlignmentControl","value","onChange","nextAlign","Warning","default"],"sources":["@wordpress/block-library/src/comments/edit/comments-legacy.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tAlignmentControl,\n\tBlockControls,\n\tWarning,\n\tuseBlockProps,\n} from '@wordpress/block-editor';\nimport { __ } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\n\n/**\n * Internal dependencies\n */\nimport Placeholder from './placeholder';\n\nexport default function CommentsLegacy( {\n\tattributes,\n\tsetAttributes,\n\tcontext: { postType, postId },\n} ) {\n\tconst { textAlign } = attributes;\n\n\tconst actions = [\n\t\t<Button\n\t\t\tkey=\"convert\"\n\t\t\tonClick={ () => void setAttributes( { legacy: false } ) }\n\t\t\tvariant=\"primary\"\n\t\t>\n\t\t\t{ __( 'Switch to editable mode' ) }\n\t\t</Button>,\n\t];\n\n\tconst blockProps = useBlockProps( {\n\t\tclassName: clsx( {\n\t\t\t[ `has-text-align-${ textAlign }` ]: textAlign,\n\t\t} ),\n\t} );\n\n\treturn (\n\t\t<>\n\t\t\t<BlockControls group=\"block\">\n\t\t\t\t<AlignmentControl\n\t\t\t\t\tvalue={ textAlign }\n\t\t\t\t\tonChange={ ( nextAlign ) => {\n\t\t\t\t\t\tsetAttributes( { textAlign: nextAlign } );\n\t\t\t\t\t} }\n\t\t\t\t/>\n\t\t\t</BlockControls>\n\n\t\t\t<div { ...blockProps }>\n\t\t\t\t<Warning actions={ actions }>\n\t\t\t\t\t{ __(\n\t\t\t\t\t\t'Comments block: You’re currently using the legacy version of the block. ' +\n\t\t\t\t\t\t\t'The following is just a placeholder - the final styling will likely look different. ' +\n\t\t\t\t\t\t\t'For a better representation and more customization options, ' +\n\t\t\t\t\t\t\t'switch the block to its editable mode.'\n\t\t\t\t\t) }\n\t\t\t\t</Warning>\n\t\t\t\t<Placeholder postId={ postId } postType={ postType } />\n\t\t\t</div>\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;A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F,8DAA8D,GAC9D,wCACF,CACQ,CAAC,EACV,IAAAP,MAAA,CAAAC,aAAA,EAACV,YAAA,CAAA6B,OAAW;IAACvB,MAAM,EAAGA,MAAQ;IAACD,QAAQ,EAAGA;EAAU,CAAE,CAClD,CACJ,CAAC;AAEL","ignoreList":[]}
1
+ {"version":3,"names":["_clsx","_interopRequireDefault","require","_blockEditor","_i18n","_components","_placeholder","_jsxRuntime","CommentsLegacy","attributes","setAttributes","context","postType","postId","textAlign","actions","jsx","Button","onClick","legacy","variant","children","__","blockProps","useBlockProps","className","clsx","jsxs","Fragment","BlockControls","group","AlignmentControl","value","onChange","nextAlign","Warning","default"],"sources":["@wordpress/block-library/src/comments/edit/comments-legacy.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tAlignmentControl,\n\tBlockControls,\n\tWarning,\n\tuseBlockProps,\n} from '@wordpress/block-editor';\nimport { __ } from '@wordpress/i18n';\nimport { Button } from '@wordpress/components';\n\n/**\n * Internal dependencies\n */\nimport Placeholder from './placeholder';\n\nexport default function CommentsLegacy( {\n\tattributes,\n\tsetAttributes,\n\tcontext: { postType, postId },\n} ) {\n\tconst { textAlign } = attributes;\n\n\tconst actions = [\n\t\t<Button\n\t\t\tkey=\"convert\"\n\t\t\tonClick={ () => void setAttributes( { legacy: false } ) }\n\t\t\tvariant=\"primary\"\n\t\t>\n\t\t\t{ __( 'Switch to editable mode' ) }\n\t\t</Button>,\n\t];\n\n\tconst blockProps = useBlockProps( {\n\t\tclassName: clsx( {\n\t\t\t[ `has-text-align-${ textAlign }` ]: textAlign,\n\t\t} ),\n\t} );\n\n\treturn (\n\t\t<>\n\t\t\t<BlockControls group=\"block\">\n\t\t\t\t<AlignmentControl\n\t\t\t\t\tvalue={ textAlign }\n\t\t\t\t\tonChange={ ( nextAlign ) => {\n\t\t\t\t\t\tsetAttributes( { textAlign: nextAlign } );\n\t\t\t\t\t} }\n\t\t\t\t/>\n\t\t\t</BlockControls>\n\n\t\t\t<div { ...blockProps }>\n\t\t\t\t<Warning actions={ actions }>\n\t\t\t\t\t{ __(\n\t\t\t\t\t\t'Comments block: You’re currently using the legacy version of the block. ' +\n\t\t\t\t\t\t\t'The following is just a placeholder - the final styling will likely look different. ' +\n\t\t\t\t\t\t\t'For a better representation and more customization options, ' +\n\t\t\t\t\t\t\t'switch the block to its editable mode.'\n\t\t\t\t\t) }\n\t\t\t\t</Warning>\n\t\t\t\t<Placeholder postId={ postId } postType={ postType } />\n\t\t\t</div>\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAKA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AAAwC,IAAAK,WAAA,GAAAL,OAAA;AApBxC;AACA;AACA;;AAGA;AACA;AACA;;AAUA;AACA;AACA;;AAGe,SAASM,cAAcA,CAAE;EACvCC,UAAU;EACVC,aAAa;EACbC,OAAO,EAAE;IAAEC,QAAQ;IAAEC;EAAO;AAC7B,CAAC,EAAG;EACH,MAAM;IAAEC;EAAU,CAAC,GAAGL,UAAU;EAEhC,MAAMM,OAAO,GAAG,cACf,IAAAR,WAAA,CAAAS,GAAA,EAACX,WAAA,CAAAY,MAAM;IAENC,OAAO,EAAGA,CAAA,KAAM,KAAKR,aAAa,CAAE;MAAES,MAAM,EAAE;IAAM,CAAE,CAAG;IACzDC,OAAO,EAAC,SAAS;IAAAC,QAAA,EAEf,IAAAC,QAAE,EAAE,yBAA0B;EAAC,GAJ7B,SAKG,CAAC,CACT;EAED,MAAMC,UAAU,GAAG,IAAAC,0BAAa,EAAE;IACjCC,SAAS,EAAE,IAAAC,aAAI,EAAE;MAChB,CAAG,kBAAkBZ,SAAW,EAAC,GAAIA;IACtC,CAAE;EACH,CAAE,CAAC;EAEH,oBACC,IAAAP,WAAA,CAAAoB,IAAA,EAAApB,WAAA,CAAAqB,QAAA;IAAAP,QAAA,gBACC,IAAAd,WAAA,CAAAS,GAAA,EAACb,YAAA,CAAA0B,aAAa;MAACC,KAAK,EAAC,OAAO;MAAAT,QAAA,eAC3B,IAAAd,WAAA,CAAAS,GAAA,EAACb,YAAA,CAAA4B,gBAAgB;QAChBC,KAAK,EAAGlB,SAAW;QACnBmB,QAAQ,EAAKC,SAAS,IAAM;UAC3BxB,aAAa,CAAE;YAAEI,SAAS,EAAEoB;UAAU,CAAE,CAAC;QAC1C;MAAG,CACH;IAAC,CACY,CAAC,eAEhB,IAAA3B,WAAA,CAAAoB,IAAA;MAAA,GAAUJ,UAAU;MAAAF,QAAA,gBACnB,IAAAd,WAAA,CAAAS,GAAA,EAACb,YAAA,CAAAgC,OAAO;QAACpB,OAAO,EAAGA,OAAS;QAAAM,QAAA,EACzB,IAAAC,QAAE,EACH,0EAA0E,GACzE,sFAAsF,GACtF,8DAA8D,GAC9D,wCACF;MAAC,CACO,CAAC,eACV,IAAAf,WAAA,CAAAS,GAAA,EAACV,YAAA,CAAA8B,OAAW;QAACvB,MAAM,EAAGA,MAAQ;QAACD,QAAQ,EAAGA;MAAU,CAAE,CAAC;IAAA,CACnD,CAAC;EAAA,CACL,CAAC;AAEL","ignoreList":[]}
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = CommentsEdit;
8
- var _react = require("react");
9
8
  var _blockEditor = require("@wordpress/block-editor");
10
9
  var _commentsInspectorControls = _interopRequireDefault(require("./comments-inspector-controls"));
11
10
  var _commentsLegacy = _interopRequireDefault(require("./comments-legacy"));
12
11
  var _template = _interopRequireDefault(require("./template"));
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
13
  /**
14
14
  * WordPress dependencies
15
15
  */
@@ -32,15 +32,17 @@ function CommentsEdit(props) {
32
32
  template: _template.default
33
33
  });
34
34
  if (legacy) {
35
- return (0, _react.createElement)(_commentsLegacy.default, {
35
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_commentsLegacy.default, {
36
36
  ...props
37
37
  });
38
38
  }
39
- return (0, _react.createElement)(_react.Fragment, null, (0, _react.createElement)(_commentsInspectorControls.default, {
40
- attributes: attributes,
41
- setAttributes: setAttributes
42
- }), (0, _react.createElement)(TagName, {
43
- ...innerBlocksProps
44
- }));
39
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
40
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_commentsInspectorControls.default, {
41
+ attributes: attributes,
42
+ setAttributes: setAttributes
43
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(TagName, {
44
+ ...innerBlocksProps
45
+ })]
46
+ });
45
47
  }
46
48
  //# sourceMappingURL=index.js.map