@wordpress/block-library 8.35.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1691) 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 -13
  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/wp-embed-preview.js +10 -11
  174. package/build/embed/wp-embed-preview.js.map +1 -1
  175. package/build/embed/wp-embed-preview.native.js +3 -4
  176. package/build/embed/wp-embed-preview.native.js.map +1 -1
  177. package/build/file/deprecated.js +92 -77
  178. package/build/file/deprecated.js.map +1 -1
  179. package/build/file/edit.js +110 -101
  180. package/build/file/edit.js.map +1 -1
  181. package/build/file/edit.native.js +106 -92
  182. package/build/file/edit.native.js.map +1 -1
  183. package/build/file/inspector.js +42 -36
  184. package/build/file/inspector.js.map +1 -1
  185. package/build/file/save.js +32 -27
  186. package/build/file/save.js.map +1 -1
  187. package/build/footnotes/edit.js +69 -63
  188. package/build/footnotes/edit.js.map +1 -1
  189. package/build/footnotes/format.js +2 -2
  190. package/build/footnotes/format.js.map +1 -1
  191. package/build/form/edit.js +79 -73
  192. package/build/form/edit.js.map +1 -1
  193. package/build/form/save.js +9 -9
  194. package/build/form/save.js.map +1 -1
  195. package/build/form-input/deprecated.js +19 -17
  196. package/build/form-input/deprecated.js.map +1 -1
  197. package/build/form-input/edit.js +86 -76
  198. package/build/form-input/edit.js.map +1 -1
  199. package/build/form-input/save.js +24 -22
  200. package/build/form-input/save.js.map +1 -1
  201. package/build/form-submission-notification/edit.js +2 -2
  202. package/build/form-submission-notification/edit.js.map +1 -1
  203. package/build/form-submission-notification/save.js +2 -2
  204. package/build/form-submission-notification/save.js.map +1 -1
  205. package/build/form-submit-button/edit.js +2 -2
  206. package/build/form-submit-button/edit.js.map +1 -1
  207. package/build/form-submit-button/save.js +8 -8
  208. package/build/form-submit-button/save.js.map +1 -1
  209. package/build/freeform/convert-to-blocks-button.js +5 -4
  210. package/build/freeform/convert-to-blocks-button.js.map +1 -1
  211. package/build/freeform/edit.js +37 -26
  212. package/build/freeform/edit.js.map +1 -1
  213. package/build/freeform/edit.native.js +2 -2
  214. package/build/freeform/edit.native.js.map +1 -1
  215. package/build/freeform/modal.js +52 -35
  216. package/build/freeform/modal.js.map +1 -1
  217. package/build/freeform/save.js +4 -2
  218. package/build/freeform/save.js.map +1 -1
  219. package/build/gallery/deprecated.js +225 -199
  220. package/build/gallery/deprecated.js.map +1 -1
  221. package/build/gallery/edit-wrapper.js +4 -5
  222. package/build/gallery/edit-wrapper.js.map +1 -1
  223. package/build/gallery/edit.js +89 -76
  224. package/build/gallery/edit.js.map +1 -1
  225. package/build/gallery/gallery.js +17 -15
  226. package/build/gallery/gallery.js.map +1 -1
  227. package/build/gallery/gallery.native.js +21 -19
  228. package/build/gallery/gallery.native.js.map +1 -1
  229. package/build/gallery/save.js +9 -8
  230. package/build/gallery/save.js.map +1 -1
  231. package/build/gallery/shared-icon.js +2 -2
  232. package/build/gallery/shared-icon.js.map +1 -1
  233. package/build/gallery/v1/edit.js +57 -51
  234. package/build/gallery/v1/edit.js.map +1 -1
  235. package/build/gallery/v1/gallery-button.native.js +10 -9
  236. package/build/gallery/v1/gallery-button.native.js.map +1 -1
  237. package/build/gallery/v1/gallery-image.js +72 -64
  238. package/build/gallery/v1/gallery-image.js.map +1 -1
  239. package/build/gallery/v1/gallery-image.native.js +75 -65
  240. package/build/gallery/v1/gallery-image.native.js.map +1 -1
  241. package/build/gallery/v1/gallery.js +44 -42
  242. package/build/gallery/v1/gallery.js.map +1 -1
  243. package/build/gallery/v1/gallery.native.js +46 -44
  244. package/build/gallery/v1/gallery.native.js.map +1 -1
  245. package/build/gallery/v1/save.js +42 -37
  246. package/build/gallery/v1/save.js.map +1 -1
  247. package/build/gallery/v1/tiles.native.js +9 -7
  248. package/build/gallery/v1/tiles.native.js.map +1 -1
  249. package/build/group/deprecated.js +27 -20
  250. package/build/group/deprecated.js.map +1 -1
  251. package/build/group/edit.js +55 -50
  252. package/build/group/edit.js.map +1 -1
  253. package/build/group/edit.native.js +14 -12
  254. package/build/group/edit.native.js.map +1 -1
  255. package/build/group/placeholder.js +48 -42
  256. package/build/group/placeholder.js.map +1 -1
  257. package/build/group/save.js +2 -2
  258. package/build/group/save.js.map +1 -1
  259. package/build/heading/deprecated.js +14 -12
  260. package/build/heading/deprecated.js.map +1 -1
  261. package/build/heading/edit.js +33 -30
  262. package/build/heading/edit.js.map +1 -1
  263. package/build/heading/edit.native.js +49 -46
  264. package/build/heading/edit.native.js.map +1 -1
  265. package/build/heading/save.js +6 -5
  266. package/build/heading/save.js.map +1 -1
  267. package/build/home-link/edit.js +25 -21
  268. package/build/home-link/edit.js.map +1 -1
  269. package/build/home-link/save.js +2 -2
  270. package/build/home-link/save.js.map +1 -1
  271. package/build/html/edit.js +32 -22
  272. package/build/html/edit.js.map +1 -1
  273. package/build/html/preview.js +11 -9
  274. package/build/html/preview.js.map +1 -1
  275. package/build/html/save.js +4 -2
  276. package/build/html/save.js.map +1 -1
  277. package/build/image/deprecated.js +130 -103
  278. package/build/image/deprecated.js.map +1 -1
  279. package/build/image/edit.js +51 -44
  280. package/build/image/edit.js.map +1 -1
  281. package/build/image/edit.native.js +153 -132
  282. package/build/image/edit.native.js.map +1 -1
  283. package/build/image/image.js +275 -205
  284. package/build/image/image.js.map +1 -1
  285. package/build/image/save.js +19 -15
  286. package/build/image/save.js.map +1 -1
  287. package/build/index.js +1 -1
  288. package/build/index.js.map +1 -1
  289. package/build/latest-comments/edit.js +55 -50
  290. package/build/latest-comments/edit.js.map +1 -1
  291. package/build/latest-posts/edit.js +238 -212
  292. package/build/latest-posts/edit.js.map +1 -1
  293. package/build/latest-posts/edit.native.js +78 -66
  294. package/build/latest-posts/edit.native.js.map +1 -1
  295. package/build/list/deprecated.js +21 -17
  296. package/build/list/deprecated.js.map +1 -1
  297. package/build/list/edit.js +49 -44
  298. package/build/list/edit.js.map +1 -1
  299. package/build/list/ordered-list-settings.js +53 -50
  300. package/build/list/ordered-list-settings.js.map +1 -1
  301. package/build/list/save.js +5 -4
  302. package/build/list/save.js.map +1 -1
  303. package/build/list/tag-name.js +2 -2
  304. package/build/list/tag-name.js.map +1 -1
  305. package/build/list/tag-name.native.js +2 -2
  306. package/build/list/tag-name.native.js.map +1 -1
  307. package/build/list-item/edit.js +38 -32
  308. package/build/list-item/edit.js.map +1 -1
  309. package/build/list-item/edit.native.js +46 -41
  310. package/build/list-item/edit.native.js.map +1 -1
  311. package/build/list-item/icons.native.js +29 -26
  312. package/build/list-item/icons.native.js.map +1 -1
  313. package/build/list-item/list-style-type.native.js +17 -14
  314. package/build/list-item/list-style-type.native.js.map +1 -1
  315. package/build/list-item/save.js +7 -6
  316. package/build/list-item/save.js.map +1 -1
  317. package/build/loginout/edit.js +31 -24
  318. package/build/loginout/edit.js.map +1 -1
  319. package/build/media-text/deprecated.js +121 -98
  320. package/build/media-text/deprecated.js.map +1 -1
  321. package/build/media-text/edit.js +183 -107
  322. package/build/media-text/edit.js.map +1 -1
  323. package/build/media-text/edit.native.js +55 -31
  324. package/build/media-text/edit.native.js.map +1 -1
  325. package/build/media-text/icon-retry.native.js +10 -9
  326. package/build/media-text/icon-retry.native.js.map +1 -1
  327. package/build/media-text/media-container.js +36 -35
  328. package/build/media-text/media-container.js.map +1 -1
  329. package/build/media-text/media-container.native.js +98 -72
  330. package/build/media-text/media-container.native.js.map +1 -1
  331. package/build/media-text/save.js +31 -26
  332. package/build/media-text/save.js.map +1 -1
  333. package/build/missing/edit.js +14 -10
  334. package/build/missing/edit.js.map +1 -1
  335. package/build/missing/edit.native.js +34 -28
  336. package/build/missing/edit.native.js.map +1 -1
  337. package/build/missing/save.js +4 -2
  338. package/build/missing/save.js.map +1 -1
  339. package/build/more/edit.js +26 -19
  340. package/build/more/edit.js.map +1 -1
  341. package/build/more/edit.native.js +2 -2
  342. package/build/more/edit.native.js.map +1 -1
  343. package/build/more/index.js +2 -1
  344. package/build/more/index.js.map +1 -1
  345. package/build/more/save.js +4 -2
  346. package/build/more/save.js.map +1 -1
  347. package/build/navigation/deprecated.js +7 -7
  348. package/build/navigation/deprecated.js.map +1 -1
  349. package/build/navigation/edit/accessible-description.js +8 -5
  350. package/build/navigation/edit/accessible-description.js.map +1 -1
  351. package/build/navigation/edit/accessible-menu-description.js +5 -4
  352. package/build/navigation/edit/accessible-menu-description.js.map +1 -1
  353. package/build/navigation/edit/deleted-navigation-warning.js +8 -6
  354. package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
  355. package/build/navigation/edit/index.js +277 -229
  356. package/build/navigation/edit/index.js.map +1 -1
  357. package/build/navigation/edit/inner-blocks.js +3 -3
  358. package/build/navigation/edit/inner-blocks.js.map +1 -1
  359. package/build/navigation/edit/leaf-more-menu.js +44 -33
  360. package/build/navigation/edit/leaf-more-menu.js.map +1 -1
  361. package/build/navigation/edit/manage-menus-button.js +5 -4
  362. package/build/navigation/edit/manage-menus-button.js.map +1 -1
  363. package/build/navigation/edit/menu-inspector-controls.js +44 -39
  364. package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
  365. package/build/navigation/edit/navigation-menu-delete-control.js +25 -21
  366. package/build/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  367. package/build/navigation/edit/navigation-menu-name-control.js +2 -2
  368. package/build/navigation/edit/navigation-menu-name-control.js.map +1 -1
  369. package/build/navigation/edit/navigation-menu-selector.js +46 -39
  370. package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
  371. package/build/navigation/edit/overlay-menu-icon.js +16 -15
  372. package/build/navigation/edit/overlay-menu-icon.js.map +1 -1
  373. package/build/navigation/edit/overlay-menu-preview.js +33 -30
  374. package/build/navigation/edit/overlay-menu-preview.js.map +1 -1
  375. package/build/navigation/edit/placeholder/index.js +30 -23
  376. package/build/navigation/edit/placeholder/index.js.map +1 -1
  377. package/build/navigation/edit/placeholder/placeholder-preview.js +10 -8
  378. package/build/navigation/edit/placeholder/placeholder-preview.js.map +1 -1
  379. package/build/navigation/edit/responsive-wrapper.js +35 -27
  380. package/build/navigation/edit/responsive-wrapper.js.map +1 -1
  381. package/build/navigation/edit/unsaved-inner-blocks.js +2 -2
  382. package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  383. package/build/navigation/save.js +2 -2
  384. package/build/navigation/save.js.map +1 -1
  385. package/build/navigation-link/edit.js +183 -150
  386. package/build/navigation-link/edit.js.map +1 -1
  387. package/build/navigation-link/icons.js +8 -7
  388. package/build/navigation-link/icons.js.map +1 -1
  389. package/build/navigation-link/index.js +2 -2
  390. package/build/navigation-link/index.js.map +1 -1
  391. package/build/navigation-link/link-ui.js +104 -89
  392. package/build/navigation-link/link-ui.js.map +1 -1
  393. package/build/navigation-link/save.js +2 -2
  394. package/build/navigation-link/save.js.map +1 -1
  395. package/build/navigation-submenu/edit.js +139 -127
  396. package/build/navigation-submenu/edit.js.map +1 -1
  397. package/build/navigation-submenu/icons.js +8 -7
  398. package/build/navigation-submenu/icons.js.map +1 -1
  399. package/build/navigation-submenu/save.js +2 -2
  400. package/build/navigation-submenu/save.js.map +1 -1
  401. package/build/nextpage/edit.js +7 -4
  402. package/build/nextpage/edit.js.map +1 -1
  403. package/build/nextpage/edit.native.js +11 -10
  404. package/build/nextpage/edit.native.js.map +1 -1
  405. package/build/nextpage/save.js +4 -2
  406. package/build/nextpage/save.js.map +1 -1
  407. package/build/page-list/convert-to-links-modal.js +23 -17
  408. package/build/page-list/convert-to-links-modal.js.map +1 -1
  409. package/build/page-list/edit.js +90 -65
  410. package/build/page-list/edit.js.map +1 -1
  411. package/build/page-list-item/edit.js +29 -21
  412. package/build/page-list-item/edit.js.map +1 -1
  413. package/build/paragraph/deprecated.js +16 -12
  414. package/build/paragraph/deprecated.js.map +1 -1
  415. package/build/paragraph/edit.js +56 -51
  416. package/build/paragraph/edit.js.map +1 -1
  417. package/build/paragraph/edit.native.js +42 -39
  418. package/build/paragraph/edit.native.js.map +1 -1
  419. package/build/paragraph/save.js +6 -5
  420. package/build/paragraph/save.js.map +1 -1
  421. package/build/pattern/edit.js +10 -7
  422. package/build/pattern/edit.js.map +1 -1
  423. package/build/post-author/edit.js +104 -93
  424. package/build/post-author/edit.js.map +1 -1
  425. package/build/post-author-biography/edit.js +19 -16
  426. package/build/post-author-biography/edit.js.map +1 -1
  427. package/build/post-author-name/edit.js +40 -32
  428. package/build/post-author-name/edit.js.map +1 -1
  429. package/build/post-comment/edit.js +23 -20
  430. package/build/post-comment/edit.js.map +1 -1
  431. package/build/post-comment/save.js +2 -2
  432. package/build/post-comment/save.js.map +1 -1
  433. package/build/post-comments-count/edit.js +20 -14
  434. package/build/post-comments-count/edit.js.map +1 -1
  435. package/build/post-comments-form/edit.js +23 -18
  436. package/build/post-comments-form/edit.js.map +1 -1
  437. package/build/post-comments-form/form.js +50 -38
  438. package/build/post-comments-form/form.js.map +1 -1
  439. package/build/post-comments-link/edit.js +23 -16
  440. package/build/post-comments-link/edit.js.map +1 -1
  441. package/build/post-content/edit.js +36 -22
  442. package/build/post-content/edit.js.map +1 -1
  443. package/build/post-date/edit.js +82 -71
  444. package/build/post-date/edit.js.map +1 -1
  445. package/build/post-excerpt/edit.js +66 -46
  446. package/build/post-excerpt/edit.js.map +1 -1
  447. package/build/post-featured-image/dimension-controls.js +119 -109
  448. package/build/post-featured-image/dimension-controls.js.map +1 -1
  449. package/build/post-featured-image/edit.js +109 -86
  450. package/build/post-featured-image/edit.js.map +1 -1
  451. package/build/post-featured-image/overlay-controls.js +44 -41
  452. package/build/post-featured-image/overlay-controls.js.map +1 -1
  453. package/build/post-featured-image/overlay.js +2 -2
  454. package/build/post-featured-image/overlay.js.map +1 -1
  455. package/build/post-navigation-link/edit.js +88 -74
  456. package/build/post-navigation-link/edit.js.map +1 -1
  457. package/build/post-template/edit.js +32 -25
  458. package/build/post-template/edit.js.map +1 -1
  459. package/build/post-template/save.js +2 -2
  460. package/build/post-template/save.js.map +1 -1
  461. package/build/post-terms/edit.js +64 -53
  462. package/build/post-terms/edit.js.map +1 -1
  463. package/build/post-time-to-read/edit.js +18 -15
  464. package/build/post-time-to-read/edit.js.map +1 -1
  465. package/build/post-time-to-read/icon.js +7 -6
  466. package/build/post-time-to-read/icon.js.map +1 -1
  467. package/build/post-title/edit.js +80 -67
  468. package/build/post-title/edit.js.map +1 -1
  469. package/build/preformatted/edit.js +2 -2
  470. package/build/preformatted/edit.js.map +1 -1
  471. package/build/preformatted/edit.native.js +7 -6
  472. package/build/preformatted/edit.native.js.map +1 -1
  473. package/build/preformatted/save.js +7 -6
  474. package/build/preformatted/save.js.map +1 -1
  475. package/build/pullquote/blockquote.native.js +4 -2
  476. package/build/pullquote/blockquote.native.js.map +1 -1
  477. package/build/pullquote/deprecated.js +72 -60
  478. package/build/pullquote/deprecated.js.map +1 -1
  479. package/build/pullquote/edit.js +49 -43
  480. package/build/pullquote/edit.js.map +1 -1
  481. package/build/pullquote/edit.native.js +44 -39
  482. package/build/pullquote/edit.native.js.map +1 -1
  483. package/build/pullquote/figure.native.js +5 -4
  484. package/build/pullquote/figure.native.js.map +1 -1
  485. package/build/pullquote/save.js +12 -9
  486. package/build/pullquote/save.js.map +1 -1
  487. package/build/query/deprecated.js +6 -6
  488. package/build/query/deprecated.js.map +1 -1
  489. package/build/query/edit/enhanced-pagination-modal.js +16 -12
  490. package/build/query/edit/enhanced-pagination-modal.js.map +1 -1
  491. package/build/query/edit/index.js +11 -9
  492. package/build/query/edit/index.js.map +1 -1
  493. package/build/query/edit/inspector-controls/author-control.js +2 -2
  494. package/build/query/edit/inspector-controls/author-control.js.map +1 -1
  495. package/build/query/edit/inspector-controls/create-new-post-link.js +10 -9
  496. package/build/query/edit/inspector-controls/create-new-post-link.js.map +1 -1
  497. package/build/query/edit/inspector-controls/enhanced-pagination-control.js +14 -12
  498. package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  499. package/build/query/edit/inspector-controls/index.js +109 -96
  500. package/build/query/edit/inspector-controls/index.js.map +1 -1
  501. package/build/query/edit/inspector-controls/order-control.js +2 -2
  502. package/build/query/edit/inspector-controls/order-control.js.map +1 -1
  503. package/build/query/edit/inspector-controls/parent-control.js +2 -2
  504. package/build/query/edit/inspector-controls/parent-control.js.map +1 -1
  505. package/build/query/edit/inspector-controls/sticky-control.js +2 -2
  506. package/build/query/edit/inspector-controls/sticky-control.js.map +1 -1
  507. package/build/query/edit/inspector-controls/taxonomy-controls.js +29 -27
  508. package/build/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
  509. package/build/query/edit/pattern-selection-modal.js +24 -20
  510. package/build/query/edit/pattern-selection-modal.js.map +1 -1
  511. package/build/query/edit/query-content.js +51 -44
  512. package/build/query/edit/query-content.js.map +1 -1
  513. package/build/query/edit/query-placeholder.js +43 -38
  514. package/build/query/edit/query-placeholder.js.map +1 -1
  515. package/build/query/edit/query-toolbar.js +83 -70
  516. package/build/query/edit/query-toolbar.js.map +1 -1
  517. package/build/query/icons.js +25 -21
  518. package/build/query/icons.js.map +1 -1
  519. package/build/query/save.js +4 -4
  520. package/build/query/save.js.map +1 -1
  521. package/build/query/variations.js +1 -6
  522. package/build/query/variations.js.map +1 -1
  523. package/build/query-no-results/edit.js +2 -2
  524. package/build/query-no-results/edit.js.map +1 -1
  525. package/build/query-no-results/save.js +4 -4
  526. package/build/query-no-results/save.js.map +1 -1
  527. package/build/query-pagination/deprecated.js +5 -4
  528. package/build/query-pagination/deprecated.js.map +1 -1
  529. package/build/query-pagination/edit.js +25 -20
  530. package/build/query-pagination/edit.js.map +1 -1
  531. package/build/query-pagination/query-pagination-arrow-controls.js +14 -13
  532. package/build/query-pagination/query-pagination-arrow-controls.js.map +1 -1
  533. package/build/query-pagination/query-pagination-label-control.js +2 -2
  534. package/build/query-pagination/query-pagination-label-control.js.map +1 -1
  535. package/build/query-pagination/save.js +2 -2
  536. package/build/query-pagination/save.js.map +1 -1
  537. package/build/query-pagination-next/edit.js +18 -16
  538. package/build/query-pagination-next/edit.js.map +1 -1
  539. package/build/query-pagination-numbers/edit.js +30 -22
  540. package/build/query-pagination-numbers/edit.js.map +1 -1
  541. package/build/query-pagination-previous/edit.js +18 -16
  542. package/build/query-pagination-previous/edit.js.map +1 -1
  543. package/build/query-title/edit.js +61 -43
  544. package/build/query-title/edit.js.map +1 -1
  545. package/build/quote/deprecated.js +48 -43
  546. package/build/quote/deprecated.js.map +1 -1
  547. package/build/quote/edit.js +40 -36
  548. package/build/quote/edit.js.map +1 -1
  549. package/build/quote/save.js +8 -7
  550. package/build/quote/save.js.map +1 -1
  551. package/build/read-more/edit.js +28 -23
  552. package/build/read-more/edit.js.map +1 -1
  553. package/build/rss/edit.js +97 -83
  554. package/build/rss/edit.js.map +1 -1
  555. package/build/search/edit.js +146 -122
  556. package/build/search/edit.js.map +1 -1
  557. package/build/search/edit.native.js +129 -121
  558. package/build/search/edit.native.js.map +1 -1
  559. package/build/search/icons.js +103 -97
  560. package/build/search/icons.js.map +1 -1
  561. package/build/separator/deprecated.js +2 -2
  562. package/build/separator/deprecated.js.map +1 -1
  563. package/build/separator/edit.js +8 -6
  564. package/build/separator/edit.js.map +1 -1
  565. package/build/separator/save.js +2 -2
  566. package/build/separator/save.js.map +1 -1
  567. package/build/shortcode/edit.js +17 -15
  568. package/build/shortcode/edit.js.map +1 -1
  569. package/build/shortcode/edit.native.js +21 -17
  570. package/build/shortcode/edit.native.js.map +1 -1
  571. package/build/shortcode/save.js +4 -2
  572. package/build/shortcode/save.js.map +1 -1
  573. package/build/site-logo/edit.js +209 -171
  574. package/build/site-logo/edit.js.map +1 -1
  575. package/build/site-tagline/edit.js +23 -19
  576. package/build/site-tagline/edit.js.map +1 -1
  577. package/build/site-tagline/icon.js +7 -6
  578. package/build/site-tagline/icon.js.map +1 -1
  579. package/build/site-title/edit.js +61 -50
  580. package/build/site-title/edit.js.map +1 -1
  581. package/build/social-link/edit.js +83 -69
  582. package/build/social-link/edit.js.map +1 -1
  583. package/build/social-link/edit.native.js +48 -39
  584. package/build/social-link/edit.native.js.map +1 -1
  585. package/build/social-link/icons/amazon.js +7 -6
  586. package/build/social-link/icons/amazon.js.map +1 -1
  587. package/build/social-link/icons/bandcamp.js +7 -6
  588. package/build/social-link/icons/bandcamp.js.map +1 -1
  589. package/build/social-link/icons/behance.js +7 -6
  590. package/build/social-link/icons/behance.js.map +1 -1
  591. package/build/social-link/icons/bluesky.js +23 -0
  592. package/build/social-link/icons/bluesky.js.map +1 -0
  593. package/build/social-link/icons/chain.js +7 -6
  594. package/build/social-link/icons/chain.js.map +1 -1
  595. package/build/social-link/icons/codepen.js +7 -6
  596. package/build/social-link/icons/codepen.js.map +1 -1
  597. package/build/social-link/icons/deviantart.js +7 -6
  598. package/build/social-link/icons/deviantart.js.map +1 -1
  599. package/build/social-link/icons/dribbble.js +7 -6
  600. package/build/social-link/icons/dribbble.js.map +1 -1
  601. package/build/social-link/icons/dropbox.js +7 -6
  602. package/build/social-link/icons/dropbox.js.map +1 -1
  603. package/build/social-link/icons/etsy.js +7 -6
  604. package/build/social-link/icons/etsy.js.map +1 -1
  605. package/build/social-link/icons/facebook.js +7 -6
  606. package/build/social-link/icons/facebook.js.map +1 -1
  607. package/build/social-link/icons/feed.js +7 -6
  608. package/build/social-link/icons/feed.js.map +1 -1
  609. package/build/social-link/icons/fivehundredpx.js +7 -6
  610. package/build/social-link/icons/fivehundredpx.js.map +1 -1
  611. package/build/social-link/icons/flickr.js +7 -6
  612. package/build/social-link/icons/flickr.js.map +1 -1
  613. package/build/social-link/icons/foursquare.js +7 -6
  614. package/build/social-link/icons/foursquare.js.map +1 -1
  615. package/build/social-link/icons/github.js +7 -6
  616. package/build/social-link/icons/github.js.map +1 -1
  617. package/build/social-link/icons/goodreads.js +7 -6
  618. package/build/social-link/icons/goodreads.js.map +1 -1
  619. package/build/social-link/icons/google.js +7 -6
  620. package/build/social-link/icons/google.js.map +1 -1
  621. package/build/social-link/icons/gravatar.js +7 -6
  622. package/build/social-link/icons/gravatar.js.map +1 -1
  623. package/build/social-link/icons/index.js +11 -0
  624. package/build/social-link/icons/index.js.map +1 -1
  625. package/build/social-link/icons/instagram.js +7 -6
  626. package/build/social-link/icons/instagram.js.map +1 -1
  627. package/build/social-link/icons/lastfm.js +7 -6
  628. package/build/social-link/icons/lastfm.js.map +1 -1
  629. package/build/social-link/icons/linkedin.js +7 -6
  630. package/build/social-link/icons/linkedin.js.map +1 -1
  631. package/build/social-link/icons/mail.js +7 -6
  632. package/build/social-link/icons/mail.js.map +1 -1
  633. package/build/social-link/icons/mastodon.js +7 -6
  634. package/build/social-link/icons/mastodon.js.map +1 -1
  635. package/build/social-link/icons/medium.js +7 -6
  636. package/build/social-link/icons/medium.js.map +1 -1
  637. package/build/social-link/icons/meetup.js +7 -6
  638. package/build/social-link/icons/meetup.js.map +1 -1
  639. package/build/social-link/icons/patreon.js +7 -6
  640. package/build/social-link/icons/patreon.js.map +1 -1
  641. package/build/social-link/icons/pinterest.js +7 -6
  642. package/build/social-link/icons/pinterest.js.map +1 -1
  643. package/build/social-link/icons/pocket.js +7 -6
  644. package/build/social-link/icons/pocket.js.map +1 -1
  645. package/build/social-link/icons/reddit.js +7 -6
  646. package/build/social-link/icons/reddit.js.map +1 -1
  647. package/build/social-link/icons/skype.js +7 -6
  648. package/build/social-link/icons/skype.js.map +1 -1
  649. package/build/social-link/icons/snapchat.js +7 -6
  650. package/build/social-link/icons/snapchat.js.map +1 -1
  651. package/build/social-link/icons/soundcloud.js +7 -6
  652. package/build/social-link/icons/soundcloud.js.map +1 -1
  653. package/build/social-link/icons/spotify.js +7 -6
  654. package/build/social-link/icons/spotify.js.map +1 -1
  655. package/build/social-link/icons/telegram.js +7 -6
  656. package/build/social-link/icons/telegram.js.map +1 -1
  657. package/build/social-link/icons/threads.js +7 -6
  658. package/build/social-link/icons/threads.js.map +1 -1
  659. package/build/social-link/icons/tiktok.js +7 -6
  660. package/build/social-link/icons/tiktok.js.map +1 -1
  661. package/build/social-link/icons/tumblr.js +7 -6
  662. package/build/social-link/icons/tumblr.js.map +1 -1
  663. package/build/social-link/icons/twitch.js +7 -6
  664. package/build/social-link/icons/twitch.js.map +1 -1
  665. package/build/social-link/icons/twitter.js +7 -6
  666. package/build/social-link/icons/twitter.js.map +1 -1
  667. package/build/social-link/icons/vimeo.js +7 -6
  668. package/build/social-link/icons/vimeo.js.map +1 -1
  669. package/build/social-link/icons/vk.js +7 -6
  670. package/build/social-link/icons/vk.js.map +1 -1
  671. package/build/social-link/icons/whatsapp.js +7 -6
  672. package/build/social-link/icons/whatsapp.js.map +1 -1
  673. package/build/social-link/icons/wordpress.js +7 -6
  674. package/build/social-link/icons/wordpress.js.map +1 -1
  675. package/build/social-link/icons/x.js +7 -6
  676. package/build/social-link/icons/x.js.map +1 -1
  677. package/build/social-link/icons/yelp.js +7 -6
  678. package/build/social-link/icons/yelp.js.map +1 -1
  679. package/build/social-link/icons/youtube.js +7 -6
  680. package/build/social-link/icons/youtube.js.map +1 -1
  681. package/build/social-link/variations.js +7 -0
  682. package/build/social-link/variations.js.map +1 -1
  683. package/build/social-links/deprecated.js +6 -6
  684. package/build/social-links/deprecated.js.map +1 -1
  685. package/build/social-links/edit.js +92 -80
  686. package/build/social-links/edit.js.map +1 -1
  687. package/build/social-links/edit.native.js +16 -15
  688. package/build/social-links/edit.native.js.map +1 -1
  689. package/build/social-links/save.js +2 -2
  690. package/build/social-links/save.js.map +1 -1
  691. package/build/spacer/controls.js +58 -46
  692. package/build/spacer/controls.js.map +1 -1
  693. package/build/spacer/controls.native.js +16 -13
  694. package/build/spacer/controls.native.js.map +1 -1
  695. package/build/spacer/deprecated.js +2 -2
  696. package/build/spacer/deprecated.js.map +1 -1
  697. package/build/spacer/edit.js +47 -38
  698. package/build/spacer/edit.js.map +1 -1
  699. package/build/spacer/edit.native.js +12 -9
  700. package/build/spacer/edit.native.js.map +1 -1
  701. package/build/spacer/save.js +2 -2
  702. package/build/spacer/save.js.map +1 -1
  703. package/build/spacer/save.native.js +2 -2
  704. package/build/spacer/save.native.js.map +1 -1
  705. package/build/table/deprecated.js +168 -157
  706. package/build/table/deprecated.js.map +1 -1
  707. package/build/table/edit.js +143 -129
  708. package/build/table/edit.js.map +1 -1
  709. package/build/table/save.js +52 -49
  710. package/build/table/save.js.map +1 -1
  711. package/build/table-of-contents/edit.js +53 -38
  712. package/build/table-of-contents/edit.js.map +1 -1
  713. package/build/table-of-contents/list.js +28 -22
  714. package/build/table-of-contents/list.js.map +1 -1
  715. package/build/table-of-contents/save.js +9 -6
  716. package/build/table-of-contents/save.js.map +1 -1
  717. package/build/tag-cloud/edit.js +71 -60
  718. package/build/tag-cloud/edit.js.map +1 -1
  719. package/build/template-part/edit/advanced-controls.js +59 -55
  720. package/build/template-part/edit/advanced-controls.js.map +1 -1
  721. package/build/template-part/edit/import-controls.js +33 -27
  722. package/build/template-part/edit/import-controls.js.map +1 -1
  723. package/build/template-part/edit/index.js +110 -89
  724. package/build/template-part/edit/index.js.map +1 -1
  725. package/build/template-part/edit/inner-blocks.js +4 -4
  726. package/build/template-part/edit/inner-blocks.js.map +1 -1
  727. package/build/template-part/edit/placeholder.js +21 -18
  728. package/build/template-part/edit/placeholder.js.map +1 -1
  729. package/build/template-part/edit/selection-modal.js +29 -20
  730. package/build/template-part/edit/selection-modal.js.map +1 -1
  731. package/build/template-part/edit/title-modal.js +25 -20
  732. package/build/template-part/edit/title-modal.js.map +1 -1
  733. package/build/term-description/edit.js +22 -15
  734. package/build/term-description/edit.js.map +1 -1
  735. package/build/text-columns/edit.js +53 -44
  736. package/build/text-columns/edit.js.map +1 -1
  737. package/build/text-columns/save.js +13 -12
  738. package/build/text-columns/save.js.map +1 -1
  739. package/build/utils/caption.js +34 -31
  740. package/build/utils/caption.js.map +1 -1
  741. package/build/utils/hooks.js +9 -0
  742. package/build/utils/hooks.js.map +1 -1
  743. package/build/verse/deprecated.js +7 -6
  744. package/build/verse/deprecated.js.map +1 -1
  745. package/build/verse/edit.js +31 -27
  746. package/build/verse/edit.js.map +1 -1
  747. package/build/verse/save.js +6 -5
  748. package/build/verse/save.js.map +1 -1
  749. package/build/video/deprecated.js +20 -18
  750. package/build/video/deprecated.js.map +1 -1
  751. package/build/video/edit-common-settings.js +39 -35
  752. package/build/video/edit-common-settings.js.map +1 -1
  753. package/build/video/edit.js +103 -80
  754. package/build/video/edit.js.map +1 -1
  755. package/build/video/edit.native.js +100 -85
  756. package/build/video/edit.native.js.map +1 -1
  757. package/build/video/icon-retry.native.js +10 -9
  758. package/build/video/icon-retry.native.js.map +1 -1
  759. package/build/video/save.js +21 -19
  760. package/build/video/save.js.map +1 -1
  761. package/build/video/tracks-editor.js +188 -158
  762. package/build/video/tracks-editor.js.map +1 -1
  763. package/build/video/tracks.js +3 -4
  764. package/build/video/tracks.js.map +1 -1
  765. package/build-module/archives/edit.js +61 -51
  766. package/build-module/archives/edit.js.map +1 -1
  767. package/build-module/audio/deprecated.js +14 -11
  768. package/build-module/audio/deprecated.js.map +1 -1
  769. package/build-module/audio/edit.js +85 -74
  770. package/build-module/audio/edit.js.map +1 -1
  771. package/build-module/audio/edit.native.js +101 -85
  772. package/build-module/audio/edit.native.js.map +1 -1
  773. package/build-module/audio/save.js +16 -14
  774. package/build-module/audio/save.js.map +1 -1
  775. package/build-module/avatar/edit.js +122 -109
  776. package/build-module/avatar/edit.js.map +1 -1
  777. package/build-module/avatar/user-control.js +2 -2
  778. package/build-module/avatar/user-control.js.map +1 -1
  779. package/build-module/block/edit-title.native.js +30 -24
  780. package/build-module/block/edit-title.native.js.map +1 -1
  781. package/build-module/block/edit.js +48 -32
  782. package/build-module/block/edit.js.map +1 -1
  783. package/build-module/block/edit.native.js +51 -39
  784. package/build-module/block/edit.native.js.map +1 -1
  785. package/build-module/button/color-background.native.js +15 -13
  786. package/build-module/button/color-background.native.js.map +1 -1
  787. package/build-module/button/deprecated.js +118 -105
  788. package/build-module/button/deprecated.js.map +1 -1
  789. package/build-module/button/edit.js +126 -109
  790. package/build-module/button/edit.js.map +1 -1
  791. package/build-module/button/edit.native.js +87 -71
  792. package/build-module/button/edit.native.js.map +1 -1
  793. package/build-module/button/save.js +14 -13
  794. package/build-module/button/save.js.map +1 -1
  795. package/build-module/buttons/deprecated.js +8 -5
  796. package/build-module/buttons/deprecated.js.map +1 -1
  797. package/build-module/buttons/edit.js +2 -2
  798. package/build-module/buttons/edit.js.map +1 -1
  799. package/build-module/buttons/edit.native.js +40 -34
  800. package/build-module/buttons/edit.native.js.map +1 -1
  801. package/build-module/buttons/save.js +2 -2
  802. package/build-module/buttons/save.js.map +1 -1
  803. package/build-module/calendar/edit.js +21 -16
  804. package/build-module/calendar/edit.js.map +1 -1
  805. package/build-module/categories/edit.js +73 -56
  806. package/build-module/categories/edit.js.map +1 -1
  807. package/build-module/code/edit.js +19 -18
  808. package/build-module/code/edit.js.map +1 -1
  809. package/build-module/code/edit.native.js +22 -21
  810. package/build-module/code/edit.native.js.map +1 -1
  811. package/build-module/code/save.js +14 -13
  812. package/build-module/code/save.js.map +1 -1
  813. package/build-module/column/column-preview.native.js +14 -15
  814. package/build-module/column/column-preview.native.js.map +1 -1
  815. package/build-module/column/deprecated.js +5 -4
  816. package/build-module/column/deprecated.js.map +1 -1
  817. package/build-module/column/edit.js +35 -26
  818. package/build-module/column/edit.js.map +1 -1
  819. package/build-module/column/edit.native.js +54 -38
  820. package/build-module/column/edit.native.js.map +1 -1
  821. package/build-module/column/save.js +2 -2
  822. package/build-module/column/save.js.map +1 -1
  823. package/build-module/columns/deprecated.js +13 -10
  824. package/build-module/columns/deprecated.js.map +1 -1
  825. package/build-module/columns/edit.js +63 -50
  826. package/build-module/columns/edit.js.map +1 -1
  827. package/build-module/columns/edit.native.js +72 -57
  828. package/build-module/columns/edit.native.js.map +1 -1
  829. package/build-module/columns/save.js +2 -2
  830. package/build-module/columns/save.js.map +1 -1
  831. package/build-module/columns/variations.js +37 -31
  832. package/build-module/columns/variations.js.map +1 -1
  833. package/build-module/comment-author-avatar/edit.js +35 -26
  834. package/build-module/comment-author-avatar/edit.js.map +1 -1
  835. package/build-module/comment-author-name/edit.js +41 -31
  836. package/build-module/comment-author-name/edit.js.map +1 -1
  837. package/build-module/comment-content/edit.js +29 -16
  838. package/build-module/comment-content/edit.js.map +1 -1
  839. package/build-module/comment-date/edit.js +37 -25
  840. package/build-module/comment-date/edit.js.map +1 -1
  841. package/build-module/comment-edit-link/edit.js +34 -24
  842. package/build-module/comment-edit-link/edit.js.map +1 -1
  843. package/build-module/comment-reply-link/edit.js +21 -14
  844. package/build-module/comment-reply-link/edit.js.map +1 -1
  845. package/build-module/comment-template/edit.js +51 -46
  846. package/build-module/comment-template/edit.js.map +1 -1
  847. package/build-module/comment-template/save.js +2 -2
  848. package/build-module/comment-template/save.js.map +1 -1
  849. package/build-module/comments/deprecated.js +5 -4
  850. package/build-module/comments/deprecated.js.map +1 -1
  851. package/build-module/comments/edit/comments-inspector-controls.js +26 -23
  852. package/build-module/comments/edit/comments-inspector-controls.js.map +1 -1
  853. package/build-module/comments/edit/comments-legacy.js +29 -22
  854. package/build-module/comments/edit/comments-legacy.js.map +1 -1
  855. package/build-module/comments/edit/index.js +12 -8
  856. package/build-module/comments/edit/index.js.map +1 -1
  857. package/build-module/comments/edit/placeholder.js +110 -77
  858. package/build-module/comments/edit/placeholder.js.map +1 -1
  859. package/build-module/comments/save.js +2 -2
  860. package/build-module/comments/save.js.map +1 -1
  861. package/build-module/comments-pagination/comments-pagination-arrow-controls.js +15 -13
  862. package/build-module/comments-pagination/comments-pagination-arrow-controls.js.map +1 -1
  863. package/build-module/comments-pagination/edit.js +23 -14
  864. package/build-module/comments-pagination/edit.js.map +1 -1
  865. package/build-module/comments-pagination/save.js +2 -2
  866. package/build-module/comments-pagination/save.js.map +1 -1
  867. package/build-module/comments-pagination-next/edit.js +18 -15
  868. package/build-module/comments-pagination-next/edit.js.map +1 -1
  869. package/build-module/comments-pagination-numbers/edit.js +31 -27
  870. package/build-module/comments-pagination-numbers/edit.js.map +1 -1
  871. package/build-module/comments-pagination-previous/edit.js +18 -15
  872. package/build-module/comments-pagination-previous/edit.js.map +1 -1
  873. package/build-module/comments-title/edit.js +42 -33
  874. package/build-module/comments-title/edit.js.map +1 -1
  875. package/build-module/cover/controls.native.js +126 -113
  876. package/build-module/cover/controls.native.js.map +1 -1
  877. package/build-module/cover/deprecated.js +381 -363
  878. package/build-module/cover/deprecated.js.map +1 -1
  879. package/build-module/cover/edit/block-controls.js +32 -26
  880. package/build-module/cover/edit/block-controls.js.map +1 -1
  881. package/build-module/cover/edit/cover-placeholder.js +6 -5
  882. package/build-module/cover/edit/cover-placeholder.js.map +1 -1
  883. package/build-module/cover/edit/index.js +94 -84
  884. package/build-module/cover/edit/index.js.map +1 -1
  885. package/build-module/cover/edit/inspector-controls.js +169 -147
  886. package/build-module/cover/edit/inspector-controls.js.map +1 -1
  887. package/build-module/cover/edit/resizable-cover-popover.js +2 -2
  888. package/build-module/cover/edit/resizable-cover-popover.js.map +1 -1
  889. package/build-module/cover/edit.native.js +237 -195
  890. package/build-module/cover/edit.native.js.map +1 -1
  891. package/build-module/cover/focal-point-settings-button.native.js +10 -8
  892. package/build-module/cover/focal-point-settings-button.native.js.map +1 -1
  893. package/build-module/cover/index.js +1 -0
  894. package/build-module/cover/index.js.map +1 -1
  895. package/build-module/cover/overlay-color-settings.native.js +3 -4
  896. package/build-module/cover/overlay-color-settings.native.js.map +1 -1
  897. package/build-module/cover/save.js +50 -48
  898. package/build-module/cover/save.js.map +1 -1
  899. package/build-module/details/edit.js +34 -25
  900. package/build-module/details/edit.js.map +1 -1
  901. package/build-module/details/save.js +10 -6
  902. package/build-module/details/save.js.map +1 -1
  903. package/build-module/embed/deprecated.js +19 -15
  904. package/build-module/embed/deprecated.js.map +1 -1
  905. package/build-module/embed/edit.js +62 -55
  906. package/build-module/embed/edit.js.map +1 -1
  907. package/build-module/embed/edit.native.js +67 -56
  908. package/build-module/embed/edit.native.js.map +1 -1
  909. package/build-module/embed/embed-controls.js +27 -16
  910. package/build-module/embed/embed-controls.js.map +1 -1
  911. package/build-module/embed/embed-controls.native.js +26 -18
  912. package/build-module/embed/embed-controls.native.js.map +1 -1
  913. package/build-module/embed/embed-link-settings.native.js +3 -3
  914. package/build-module/embed/embed-link-settings.native.js.map +1 -1
  915. package/build-module/embed/embed-loading.js +5 -4
  916. package/build-module/embed/embed-loading.js.map +1 -1
  917. package/build-module/embed/embed-loading.native.js +7 -6
  918. package/build-module/embed/embed-loading.native.js.map +1 -1
  919. package/build-module/embed/embed-no-preview.native.js +89 -70
  920. package/build-module/embed/embed-no-preview.native.js.map +1 -1
  921. package/build-module/embed/embed-placeholder.js +47 -36
  922. package/build-module/embed/embed-placeholder.js.map +1 -1
  923. package/build-module/embed/embed-placeholder.native.js +60 -44
  924. package/build-module/embed/embed-placeholder.native.js.map +1 -1
  925. package/build-module/embed/embed-preview.js +45 -38
  926. package/build-module/embed/embed-preview.js.map +1 -1
  927. package/build-module/embed/embed-preview.native.js +48 -39
  928. package/build-module/embed/embed-preview.native.js.map +1 -1
  929. package/build-module/embed/icons.js +165 -135
  930. package/build-module/embed/icons.js.map +1 -1
  931. package/build-module/embed/save.js +13 -10
  932. package/build-module/embed/save.js.map +1 -1
  933. package/build-module/embed/util.js +15 -12
  934. package/build-module/embed/util.js.map +1 -1
  935. package/build-module/embed/wp-embed-preview.js +9 -9
  936. package/build-module/embed/wp-embed-preview.js.map +1 -1
  937. package/build-module/embed/wp-embed-preview.native.js +2 -2
  938. package/build-module/embed/wp-embed-preview.native.js.map +1 -1
  939. package/build-module/file/deprecated.js +94 -77
  940. package/build-module/file/deprecated.js.map +1 -1
  941. package/build-module/file/edit.js +112 -101
  942. package/build-module/file/edit.js.map +1 -1
  943. package/build-module/file/edit.native.js +107 -92
  944. package/build-module/file/edit.native.js.map +1 -1
  945. package/build-module/file/inspector.js +44 -36
  946. package/build-module/file/inspector.js.map +1 -1
  947. package/build-module/file/save.js +34 -27
  948. package/build-module/file/save.js.map +1 -1
  949. package/build-module/footnotes/edit.js +70 -63
  950. package/build-module/footnotes/edit.js.map +1 -1
  951. package/build-module/footnotes/format.js +2 -2
  952. package/build-module/footnotes/format.js.map +1 -1
  953. package/build-module/form/edit.js +81 -73
  954. package/build-module/form/edit.js.map +1 -1
  955. package/build-module/form/save.js +8 -8
  956. package/build-module/form/save.js.map +1 -1
  957. package/build-module/form-input/deprecated.js +20 -17
  958. package/build-module/form-input/deprecated.js.map +1 -1
  959. package/build-module/form-input/edit.js +88 -76
  960. package/build-module/form-input/edit.js.map +1 -1
  961. package/build-module/form-input/save.js +24 -20
  962. package/build-module/form-input/save.js.map +1 -1
  963. package/build-module/form-submission-notification/edit.js +2 -2
  964. package/build-module/form-submission-notification/edit.js.map +1 -1
  965. package/build-module/form-submission-notification/save.js +2 -2
  966. package/build-module/form-submission-notification/save.js.map +1 -1
  967. package/build-module/form-submit-button/edit.js +2 -2
  968. package/build-module/form-submit-button/edit.js.map +1 -1
  969. package/build-module/form-submit-button/save.js +7 -7
  970. package/build-module/form-submit-button/save.js.map +1 -1
  971. package/build-module/freeform/convert-to-blocks-button.js +5 -4
  972. package/build-module/freeform/convert-to-blocks-button.js.map +1 -1
  973. package/build-module/freeform/edit.js +39 -26
  974. package/build-module/freeform/edit.js.map +1 -1
  975. package/build-module/freeform/edit.native.js +2 -2
  976. package/build-module/freeform/edit.native.js.map +1 -1
  977. package/build-module/freeform/modal.js +54 -35
  978. package/build-module/freeform/modal.js.map +1 -1
  979. package/build-module/freeform/save.js +4 -2
  980. package/build-module/freeform/save.js.map +1 -1
  981. package/build-module/gallery/deprecated.js +226 -199
  982. package/build-module/gallery/deprecated.js.map +1 -1
  983. package/build-module/gallery/edit-wrapper.js +3 -3
  984. package/build-module/gallery/edit-wrapper.js.map +1 -1
  985. package/build-module/gallery/edit.js +91 -76
  986. package/build-module/gallery/edit.js.map +1 -1
  987. package/build-module/gallery/gallery.js +18 -15
  988. package/build-module/gallery/gallery.js.map +1 -1
  989. package/build-module/gallery/gallery.native.js +22 -19
  990. package/build-module/gallery/gallery.native.js.map +1 -1
  991. package/build-module/gallery/save.js +10 -8
  992. package/build-module/gallery/save.js.map +1 -1
  993. package/build-module/gallery/shared-icon.js +2 -2
  994. package/build-module/gallery/shared-icon.js.map +1 -1
  995. package/build-module/gallery/v1/edit.js +59 -51
  996. package/build-module/gallery/v1/edit.js.map +1 -1
  997. package/build-module/gallery/v1/gallery-button.native.js +10 -9
  998. package/build-module/gallery/v1/gallery-button.native.js.map +1 -1
  999. package/build-module/gallery/v1/gallery-image.js +74 -64
  1000. package/build-module/gallery/v1/gallery-image.js.map +1 -1
  1001. package/build-module/gallery/v1/gallery-image.native.js +77 -65
  1002. package/build-module/gallery/v1/gallery-image.native.js.map +1 -1
  1003. package/build-module/gallery/v1/gallery.js +45 -42
  1004. package/build-module/gallery/v1/gallery.js.map +1 -1
  1005. package/build-module/gallery/v1/gallery.native.js +47 -44
  1006. package/build-module/gallery/v1/gallery.native.js.map +1 -1
  1007. package/build-module/gallery/v1/save.js +43 -37
  1008. package/build-module/gallery/v1/save.js.map +1 -1
  1009. package/build-module/gallery/v1/tiles.native.js +9 -7
  1010. package/build-module/gallery/v1/tiles.native.js.map +1 -1
  1011. package/build-module/group/deprecated.js +27 -20
  1012. package/build-module/group/deprecated.js.map +1 -1
  1013. package/build-module/group/edit.js +56 -48
  1014. package/build-module/group/edit.js.map +1 -1
  1015. package/build-module/group/edit.native.js +15 -12
  1016. package/build-module/group/edit.native.js.map +1 -1
  1017. package/build-module/group/placeholder.js +47 -40
  1018. package/build-module/group/placeholder.js.map +1 -1
  1019. package/build-module/group/save.js +2 -2
  1020. package/build-module/group/save.js.map +1 -1
  1021. package/build-module/heading/deprecated.js +14 -12
  1022. package/build-module/heading/deprecated.js.map +1 -1
  1023. package/build-module/heading/edit.js +35 -30
  1024. package/build-module/heading/edit.js.map +1 -1
  1025. package/build-module/heading/edit.native.js +51 -46
  1026. package/build-module/heading/edit.native.js.map +1 -1
  1027. package/build-module/heading/save.js +6 -5
  1028. package/build-module/heading/save.js.map +1 -1
  1029. package/build-module/home-link/edit.js +26 -21
  1030. package/build-module/home-link/edit.js.map +1 -1
  1031. package/build-module/home-link/save.js +2 -2
  1032. package/build-module/home-link/save.js.map +1 -1
  1033. package/build-module/html/edit.js +34 -22
  1034. package/build-module/html/edit.js.map +1 -1
  1035. package/build-module/html/preview.js +13 -9
  1036. package/build-module/html/preview.js.map +1 -1
  1037. package/build-module/html/save.js +4 -2
  1038. package/build-module/html/save.js.map +1 -1
  1039. package/build-module/image/deprecated.js +131 -101
  1040. package/build-module/image/deprecated.js.map +1 -1
  1041. package/build-module/image/edit.js +52 -44
  1042. package/build-module/image/edit.js.map +1 -1
  1043. package/build-module/image/edit.native.js +155 -132
  1044. package/build-module/image/edit.native.js.map +1 -1
  1045. package/build-module/image/image.js +277 -205
  1046. package/build-module/image/image.js.map +1 -1
  1047. package/build-module/image/save.js +21 -15
  1048. package/build-module/image/save.js.map +1 -1
  1049. package/build-module/index.js +1 -1
  1050. package/build-module/index.js.map +1 -1
  1051. package/build-module/latest-comments/edit.js +55 -48
  1052. package/build-module/latest-comments/edit.js.map +1 -1
  1053. package/build-module/latest-posts/edit.js +239 -210
  1054. package/build-module/latest-posts/edit.js.map +1 -1
  1055. package/build-module/latest-posts/edit.native.js +80 -66
  1056. package/build-module/latest-posts/edit.native.js.map +1 -1
  1057. package/build-module/list/deprecated.js +21 -17
  1058. package/build-module/list/deprecated.js.map +1 -1
  1059. package/build-module/list/edit.js +51 -44
  1060. package/build-module/list/edit.js.map +1 -1
  1061. package/build-module/list/ordered-list-settings.js +54 -50
  1062. package/build-module/list/ordered-list-settings.js.map +1 -1
  1063. package/build-module/list/save.js +5 -4
  1064. package/build-module/list/save.js.map +1 -1
  1065. package/build-module/list/tag-name.js +2 -2
  1066. package/build-module/list/tag-name.js.map +1 -1
  1067. package/build-module/list/tag-name.native.js +2 -2
  1068. package/build-module/list/tag-name.native.js.map +1 -1
  1069. package/build-module/list-item/edit.js +40 -32
  1070. package/build-module/list-item/edit.js.map +1 -1
  1071. package/build-module/list-item/edit.native.js +47 -41
  1072. package/build-module/list-item/edit.native.js.map +1 -1
  1073. package/build-module/list-item/icons.native.js +29 -26
  1074. package/build-module/list-item/icons.native.js.map +1 -1
  1075. package/build-module/list-item/list-style-type.native.js +18 -14
  1076. package/build-module/list-item/list-style-type.native.js.map +1 -1
  1077. package/build-module/list-item/save.js +8 -6
  1078. package/build-module/list-item/save.js.map +1 -1
  1079. package/build-module/loginout/edit.js +33 -24
  1080. package/build-module/loginout/edit.js.map +1 -1
  1081. package/build-module/media-text/deprecated.js +122 -98
  1082. package/build-module/media-text/deprecated.js.map +1 -1
  1083. package/build-module/media-text/edit.js +186 -109
  1084. package/build-module/media-text/edit.js.map +1 -1
  1085. package/build-module/media-text/edit.native.js +57 -31
  1086. package/build-module/media-text/edit.native.js.map +1 -1
  1087. package/build-module/media-text/icon-retry.native.js +11 -9
  1088. package/build-module/media-text/icon-retry.native.js.map +1 -1
  1089. package/build-module/media-text/media-container.js +36 -33
  1090. package/build-module/media-text/media-container.js.map +1 -1
  1091. package/build-module/media-text/media-container.native.js +99 -70
  1092. package/build-module/media-text/media-container.native.js.map +1 -1
  1093. package/build-module/media-text/save.js +32 -26
  1094. package/build-module/media-text/save.js.map +1 -1
  1095. package/build-module/missing/edit.js +15 -10
  1096. package/build-module/missing/edit.js.map +1 -1
  1097. package/build-module/missing/edit.native.js +35 -28
  1098. package/build-module/missing/edit.native.js.map +1 -1
  1099. package/build-module/missing/save.js +4 -2
  1100. package/build-module/missing/save.js.map +1 -1
  1101. package/build-module/more/edit.js +28 -19
  1102. package/build-module/more/edit.js.map +1 -1
  1103. package/build-module/more/edit.native.js +2 -2
  1104. package/build-module/more/edit.native.js.map +1 -1
  1105. package/build-module/more/index.js +2 -1
  1106. package/build-module/more/index.js.map +1 -1
  1107. package/build-module/more/save.js +4 -2
  1108. package/build-module/more/save.js.map +1 -1
  1109. package/build-module/navigation/deprecated.js +7 -7
  1110. package/build-module/navigation/deprecated.js.map +1 -1
  1111. package/build-module/navigation/edit/accessible-description.js +8 -5
  1112. package/build-module/navigation/edit/accessible-description.js.map +1 -1
  1113. package/build-module/navigation/edit/accessible-menu-description.js +5 -4
  1114. package/build-module/navigation/edit/accessible-menu-description.js.map +1 -1
  1115. package/build-module/navigation/edit/deleted-navigation-warning.js +8 -6
  1116. package/build-module/navigation/edit/deleted-navigation-warning.js.map +1 -1
  1117. package/build-module/navigation/edit/index.js +279 -229
  1118. package/build-module/navigation/edit/index.js.map +1 -1
  1119. package/build-module/navigation/edit/inner-blocks.js +3 -3
  1120. package/build-module/navigation/edit/inner-blocks.js.map +1 -1
  1121. package/build-module/navigation/edit/leaf-more-menu.js +46 -33
  1122. package/build-module/navigation/edit/leaf-more-menu.js.map +1 -1
  1123. package/build-module/navigation/edit/manage-menus-button.js +5 -4
  1124. package/build-module/navigation/edit/manage-menus-button.js.map +1 -1
  1125. package/build-module/navigation/edit/menu-inspector-controls.js +44 -37
  1126. package/build-module/navigation/edit/menu-inspector-controls.js.map +1 -1
  1127. package/build-module/navigation/edit/navigation-menu-delete-control.js +27 -21
  1128. package/build-module/navigation/edit/navigation-menu-delete-control.js.map +1 -1
  1129. package/build-module/navigation/edit/navigation-menu-name-control.js +2 -2
  1130. package/build-module/navigation/edit/navigation-menu-name-control.js.map +1 -1
  1131. package/build-module/navigation/edit/navigation-menu-selector.js +48 -39
  1132. package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -1
  1133. package/build-module/navigation/edit/overlay-menu-icon.js +17 -15
  1134. package/build-module/navigation/edit/overlay-menu-icon.js.map +1 -1
  1135. package/build-module/navigation/edit/overlay-menu-preview.js +35 -30
  1136. package/build-module/navigation/edit/overlay-menu-preview.js.map +1 -1
  1137. package/build-module/navigation/edit/placeholder/index.js +32 -23
  1138. package/build-module/navigation/edit/placeholder/index.js.map +1 -1
  1139. package/build-module/navigation/edit/placeholder/placeholder-preview.js +11 -8
  1140. package/build-module/navigation/edit/placeholder/placeholder-preview.js.map +1 -1
  1141. package/build-module/navigation/edit/responsive-wrapper.js +37 -27
  1142. package/build-module/navigation/edit/responsive-wrapper.js.map +1 -1
  1143. package/build-module/navigation/edit/unsaved-inner-blocks.js +2 -2
  1144. package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  1145. package/build-module/navigation/save.js +2 -2
  1146. package/build-module/navigation/save.js.map +1 -1
  1147. package/build-module/navigation-link/edit.js +185 -150
  1148. package/build-module/navigation-link/edit.js.map +1 -1
  1149. package/build-module/navigation-link/icons.js +8 -7
  1150. package/build-module/navigation-link/icons.js.map +1 -1
  1151. package/build-module/navigation-link/index.js +2 -2
  1152. package/build-module/navigation-link/index.js.map +1 -1
  1153. package/build-module/navigation-link/link-ui.js +105 -88
  1154. package/build-module/navigation-link/link-ui.js.map +1 -1
  1155. package/build-module/navigation-link/save.js +2 -2
  1156. package/build-module/navigation-link/save.js.map +1 -1
  1157. package/build-module/navigation-submenu/edit.js +141 -127
  1158. package/build-module/navigation-submenu/edit.js.map +1 -1
  1159. package/build-module/navigation-submenu/icons.js +8 -7
  1160. package/build-module/navigation-submenu/icons.js.map +1 -1
  1161. package/build-module/navigation-submenu/save.js +2 -2
  1162. package/build-module/navigation-submenu/save.js.map +1 -1
  1163. package/build-module/nextpage/edit.js +7 -4
  1164. package/build-module/nextpage/edit.js.map +1 -1
  1165. package/build-module/nextpage/edit.native.js +11 -10
  1166. package/build-module/nextpage/edit.native.js.map +1 -1
  1167. package/build-module/nextpage/save.js +4 -2
  1168. package/build-module/nextpage/save.js.map +1 -1
  1169. package/build-module/page-list/convert-to-links-modal.js +24 -17
  1170. package/build-module/page-list/convert-to-links-modal.js.map +1 -1
  1171. package/build-module/page-list/edit.js +92 -65
  1172. package/build-module/page-list/edit.js.map +1 -1
  1173. package/build-module/page-list-item/edit.js +31 -21
  1174. package/build-module/page-list-item/edit.js.map +1 -1
  1175. package/build-module/paragraph/deprecated.js +16 -12
  1176. package/build-module/paragraph/deprecated.js.map +1 -1
  1177. package/build-module/paragraph/edit.js +58 -51
  1178. package/build-module/paragraph/edit.js.map +1 -1
  1179. package/build-module/paragraph/edit.native.js +44 -39
  1180. package/build-module/paragraph/edit.native.js.map +1 -1
  1181. package/build-module/paragraph/save.js +6 -5
  1182. package/build-module/paragraph/save.js.map +1 -1
  1183. package/build-module/pattern/edit.js +10 -7
  1184. package/build-module/pattern/edit.js.map +1 -1
  1185. package/build-module/post-author/edit.js +106 -93
  1186. package/build-module/post-author/edit.js.map +1 -1
  1187. package/build-module/post-author-biography/edit.js +21 -16
  1188. package/build-module/post-author-biography/edit.js.map +1 -1
  1189. package/build-module/post-author-name/edit.js +42 -32
  1190. package/build-module/post-author-name/edit.js.map +1 -1
  1191. package/build-module/post-comment/edit.js +24 -20
  1192. package/build-module/post-comment/edit.js.map +1 -1
  1193. package/build-module/post-comment/save.js +2 -2
  1194. package/build-module/post-comment/save.js.map +1 -1
  1195. package/build-module/post-comments-count/edit.js +22 -14
  1196. package/build-module/post-comments-count/edit.js.map +1 -1
  1197. package/build-module/post-comments-form/edit.js +25 -18
  1198. package/build-module/post-comments-form/edit.js.map +1 -1
  1199. package/build-module/post-comments-form/form.js +51 -38
  1200. package/build-module/post-comments-form/form.js.map +1 -1
  1201. package/build-module/post-comments-link/edit.js +25 -16
  1202. package/build-module/post-comments-link/edit.js.map +1 -1
  1203. package/build-module/post-content/edit.js +37 -22
  1204. package/build-module/post-content/edit.js.map +1 -1
  1205. package/build-module/post-date/edit.js +84 -71
  1206. package/build-module/post-date/edit.js.map +1 -1
  1207. package/build-module/post-excerpt/edit.js +68 -46
  1208. package/build-module/post-excerpt/edit.js.map +1 -1
  1209. package/build-module/post-featured-image/dimension-controls.js +121 -109
  1210. package/build-module/post-featured-image/dimension-controls.js.map +1 -1
  1211. package/build-module/post-featured-image/edit.js +111 -86
  1212. package/build-module/post-featured-image/edit.js.map +1 -1
  1213. package/build-module/post-featured-image/overlay-controls.js +46 -41
  1214. package/build-module/post-featured-image/overlay-controls.js.map +1 -1
  1215. package/build-module/post-featured-image/overlay.js +2 -2
  1216. package/build-module/post-featured-image/overlay.js.map +1 -1
  1217. package/build-module/post-navigation-link/edit.js +90 -74
  1218. package/build-module/post-navigation-link/edit.js.map +1 -1
  1219. package/build-module/post-template/edit.js +34 -25
  1220. package/build-module/post-template/edit.js.map +1 -1
  1221. package/build-module/post-template/save.js +2 -2
  1222. package/build-module/post-template/save.js.map +1 -1
  1223. package/build-module/post-terms/edit.js +66 -53
  1224. package/build-module/post-terms/edit.js.map +1 -1
  1225. package/build-module/post-time-to-read/edit.js +19 -13
  1226. package/build-module/post-time-to-read/edit.js.map +1 -1
  1227. package/build-module/post-time-to-read/icon.js +7 -6
  1228. package/build-module/post-time-to-read/icon.js.map +1 -1
  1229. package/build-module/post-title/edit.js +82 -67
  1230. package/build-module/post-title/edit.js.map +1 -1
  1231. package/build-module/preformatted/edit.js +2 -2
  1232. package/build-module/preformatted/edit.js.map +1 -1
  1233. package/build-module/preformatted/edit.native.js +7 -6
  1234. package/build-module/preformatted/edit.native.js.map +1 -1
  1235. package/build-module/preformatted/save.js +7 -6
  1236. package/build-module/preformatted/save.js.map +1 -1
  1237. package/build-module/pullquote/blockquote.native.js +4 -2
  1238. package/build-module/pullquote/blockquote.native.js.map +1 -1
  1239. package/build-module/pullquote/deprecated.js +73 -60
  1240. package/build-module/pullquote/deprecated.js.map +1 -1
  1241. package/build-module/pullquote/edit.js +51 -43
  1242. package/build-module/pullquote/edit.js.map +1 -1
  1243. package/build-module/pullquote/edit.native.js +46 -39
  1244. package/build-module/pullquote/edit.native.js.map +1 -1
  1245. package/build-module/pullquote/figure.native.js +5 -4
  1246. package/build-module/pullquote/figure.native.js.map +1 -1
  1247. package/build-module/pullquote/save.js +13 -9
  1248. package/build-module/pullquote/save.js.map +1 -1
  1249. package/build-module/query/deprecated.js +6 -6
  1250. package/build-module/query/deprecated.js.map +1 -1
  1251. package/build-module/query/edit/enhanced-pagination-modal.js +17 -12
  1252. package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -1
  1253. package/build-module/query/edit/index.js +13 -9
  1254. package/build-module/query/edit/index.js.map +1 -1
  1255. package/build-module/query/edit/inspector-controls/author-control.js +2 -2
  1256. package/build-module/query/edit/inspector-controls/author-control.js.map +1 -1
  1257. package/build-module/query/edit/inspector-controls/create-new-post-link.js +10 -9
  1258. package/build-module/query/edit/inspector-controls/create-new-post-link.js.map +1 -1
  1259. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +15 -12
  1260. package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -1
  1261. package/build-module/query/edit/inspector-controls/index.js +111 -96
  1262. package/build-module/query/edit/inspector-controls/index.js.map +1 -1
  1263. package/build-module/query/edit/inspector-controls/order-control.js +2 -2
  1264. package/build-module/query/edit/inspector-controls/order-control.js.map +1 -1
  1265. package/build-module/query/edit/inspector-controls/parent-control.js +2 -2
  1266. package/build-module/query/edit/inspector-controls/parent-control.js.map +1 -1
  1267. package/build-module/query/edit/inspector-controls/sticky-control.js +2 -2
  1268. package/build-module/query/edit/inspector-controls/sticky-control.js.map +1 -1
  1269. package/build-module/query/edit/inspector-controls/taxonomy-controls.js +30 -27
  1270. package/build-module/query/edit/inspector-controls/taxonomy-controls.js.map +1 -1
  1271. package/build-module/query/edit/pattern-selection-modal.js +25 -20
  1272. package/build-module/query/edit/pattern-selection-modal.js.map +1 -1
  1273. package/build-module/query/edit/query-content.js +53 -44
  1274. package/build-module/query/edit/query-content.js.map +1 -1
  1275. package/build-module/query/edit/query-placeholder.js +44 -38
  1276. package/build-module/query/edit/query-placeholder.js.map +1 -1
  1277. package/build-module/query/edit/query-toolbar.js +85 -70
  1278. package/build-module/query/edit/query-toolbar.js.map +1 -1
  1279. package/build-module/query/icons.js +25 -21
  1280. package/build-module/query/icons.js.map +1 -1
  1281. package/build-module/query/save.js +3 -3
  1282. package/build-module/query/save.js.map +1 -1
  1283. package/build-module/query/variations.js +1 -6
  1284. package/build-module/query/variations.js.map +1 -1
  1285. package/build-module/query-no-results/edit.js +2 -2
  1286. package/build-module/query-no-results/edit.js.map +1 -1
  1287. package/build-module/query-no-results/save.js +3 -3
  1288. package/build-module/query-no-results/save.js.map +1 -1
  1289. package/build-module/query-pagination/deprecated.js +5 -4
  1290. package/build-module/query-pagination/deprecated.js.map +1 -1
  1291. package/build-module/query-pagination/edit.js +27 -20
  1292. package/build-module/query-pagination/edit.js.map +1 -1
  1293. package/build-module/query-pagination/query-pagination-arrow-controls.js +15 -13
  1294. package/build-module/query-pagination/query-pagination-arrow-controls.js.map +1 -1
  1295. package/build-module/query-pagination/query-pagination-label-control.js +2 -2
  1296. package/build-module/query-pagination/query-pagination-label-control.js.map +1 -1
  1297. package/build-module/query-pagination/save.js +2 -2
  1298. package/build-module/query-pagination/save.js.map +1 -1
  1299. package/build-module/query-pagination-next/edit.js +19 -16
  1300. package/build-module/query-pagination-next/edit.js.map +1 -1
  1301. package/build-module/query-pagination-numbers/edit.js +32 -22
  1302. package/build-module/query-pagination-numbers/edit.js.map +1 -1
  1303. package/build-module/query-pagination-previous/edit.js +19 -16
  1304. package/build-module/query-pagination-previous/edit.js.map +1 -1
  1305. package/build-module/query-title/edit.js +63 -43
  1306. package/build-module/query-title/edit.js.map +1 -1
  1307. package/build-module/quote/deprecated.js +49 -43
  1308. package/build-module/quote/deprecated.js.map +1 -1
  1309. package/build-module/quote/edit.js +42 -36
  1310. package/build-module/quote/edit.js.map +1 -1
  1311. package/build-module/quote/save.js +9 -7
  1312. package/build-module/quote/save.js.map +1 -1
  1313. package/build-module/read-more/edit.js +30 -23
  1314. package/build-module/read-more/edit.js.map +1 -1
  1315. package/build-module/rss/edit.js +99 -83
  1316. package/build-module/rss/edit.js.map +1 -1
  1317. package/build-module/search/edit.js +148 -122
  1318. package/build-module/search/edit.js.map +1 -1
  1319. package/build-module/search/edit.native.js +129 -119
  1320. package/build-module/search/edit.native.js.map +1 -1
  1321. package/build-module/search/icons.js +104 -97
  1322. package/build-module/search/icons.js.map +1 -1
  1323. package/build-module/separator/deprecated.js +2 -2
  1324. package/build-module/separator/deprecated.js.map +1 -1
  1325. package/build-module/separator/edit.js +9 -6
  1326. package/build-module/separator/edit.js.map +1 -1
  1327. package/build-module/separator/save.js +2 -2
  1328. package/build-module/separator/save.js.map +1 -1
  1329. package/build-module/shortcode/edit.js +17 -15
  1330. package/build-module/shortcode/edit.js.map +1 -1
  1331. package/build-module/shortcode/edit.native.js +22 -17
  1332. package/build-module/shortcode/edit.native.js.map +1 -1
  1333. package/build-module/shortcode/save.js +4 -2
  1334. package/build-module/shortcode/save.js.map +1 -1
  1335. package/build-module/site-logo/edit.js +211 -171
  1336. package/build-module/site-logo/edit.js.map +1 -1
  1337. package/build-module/site-tagline/edit.js +25 -19
  1338. package/build-module/site-tagline/edit.js.map +1 -1
  1339. package/build-module/site-tagline/icon.js +7 -6
  1340. package/build-module/site-tagline/icon.js.map +1 -1
  1341. package/build-module/site-title/edit.js +63 -50
  1342. package/build-module/site-title/edit.js.map +1 -1
  1343. package/build-module/social-link/edit.js +85 -69
  1344. package/build-module/social-link/edit.js.map +1 -1
  1345. package/build-module/social-link/edit.native.js +50 -39
  1346. package/build-module/social-link/edit.native.js.map +1 -1
  1347. package/build-module/social-link/icons/amazon.js +7 -6
  1348. package/build-module/social-link/icons/amazon.js.map +1 -1
  1349. package/build-module/social-link/icons/bandcamp.js +7 -6
  1350. package/build-module/social-link/icons/bandcamp.js.map +1 -1
  1351. package/build-module/social-link/icons/behance.js +7 -6
  1352. package/build-module/social-link/icons/behance.js.map +1 -1
  1353. package/build-module/social-link/icons/bluesky.js +15 -0
  1354. package/build-module/social-link/icons/bluesky.js.map +1 -0
  1355. package/build-module/social-link/icons/chain.js +7 -6
  1356. package/build-module/social-link/icons/chain.js.map +1 -1
  1357. package/build-module/social-link/icons/codepen.js +7 -6
  1358. package/build-module/social-link/icons/codepen.js.map +1 -1
  1359. package/build-module/social-link/icons/deviantart.js +7 -6
  1360. package/build-module/social-link/icons/deviantart.js.map +1 -1
  1361. package/build-module/social-link/icons/dribbble.js +7 -6
  1362. package/build-module/social-link/icons/dribbble.js.map +1 -1
  1363. package/build-module/social-link/icons/dropbox.js +7 -6
  1364. package/build-module/social-link/icons/dropbox.js.map +1 -1
  1365. package/build-module/social-link/icons/etsy.js +7 -6
  1366. package/build-module/social-link/icons/etsy.js.map +1 -1
  1367. package/build-module/social-link/icons/facebook.js +7 -6
  1368. package/build-module/social-link/icons/facebook.js.map +1 -1
  1369. package/build-module/social-link/icons/feed.js +7 -6
  1370. package/build-module/social-link/icons/feed.js.map +1 -1
  1371. package/build-module/social-link/icons/fivehundredpx.js +7 -6
  1372. package/build-module/social-link/icons/fivehundredpx.js.map +1 -1
  1373. package/build-module/social-link/icons/flickr.js +7 -6
  1374. package/build-module/social-link/icons/flickr.js.map +1 -1
  1375. package/build-module/social-link/icons/foursquare.js +7 -6
  1376. package/build-module/social-link/icons/foursquare.js.map +1 -1
  1377. package/build-module/social-link/icons/github.js +7 -6
  1378. package/build-module/social-link/icons/github.js.map +1 -1
  1379. package/build-module/social-link/icons/goodreads.js +7 -6
  1380. package/build-module/social-link/icons/goodreads.js.map +1 -1
  1381. package/build-module/social-link/icons/google.js +7 -6
  1382. package/build-module/social-link/icons/google.js.map +1 -1
  1383. package/build-module/social-link/icons/gravatar.js +7 -6
  1384. package/build-module/social-link/icons/gravatar.js.map +1 -1
  1385. package/build-module/social-link/icons/index.js +1 -0
  1386. package/build-module/social-link/icons/index.js.map +1 -1
  1387. package/build-module/social-link/icons/instagram.js +7 -6
  1388. package/build-module/social-link/icons/instagram.js.map +1 -1
  1389. package/build-module/social-link/icons/lastfm.js +7 -6
  1390. package/build-module/social-link/icons/lastfm.js.map +1 -1
  1391. package/build-module/social-link/icons/linkedin.js +7 -6
  1392. package/build-module/social-link/icons/linkedin.js.map +1 -1
  1393. package/build-module/social-link/icons/mail.js +7 -6
  1394. package/build-module/social-link/icons/mail.js.map +1 -1
  1395. package/build-module/social-link/icons/mastodon.js +7 -6
  1396. package/build-module/social-link/icons/mastodon.js.map +1 -1
  1397. package/build-module/social-link/icons/medium.js +7 -6
  1398. package/build-module/social-link/icons/medium.js.map +1 -1
  1399. package/build-module/social-link/icons/meetup.js +7 -6
  1400. package/build-module/social-link/icons/meetup.js.map +1 -1
  1401. package/build-module/social-link/icons/patreon.js +7 -6
  1402. package/build-module/social-link/icons/patreon.js.map +1 -1
  1403. package/build-module/social-link/icons/pinterest.js +7 -6
  1404. package/build-module/social-link/icons/pinterest.js.map +1 -1
  1405. package/build-module/social-link/icons/pocket.js +7 -6
  1406. package/build-module/social-link/icons/pocket.js.map +1 -1
  1407. package/build-module/social-link/icons/reddit.js +7 -6
  1408. package/build-module/social-link/icons/reddit.js.map +1 -1
  1409. package/build-module/social-link/icons/skype.js +7 -6
  1410. package/build-module/social-link/icons/skype.js.map +1 -1
  1411. package/build-module/social-link/icons/snapchat.js +7 -6
  1412. package/build-module/social-link/icons/snapchat.js.map +1 -1
  1413. package/build-module/social-link/icons/soundcloud.js +7 -6
  1414. package/build-module/social-link/icons/soundcloud.js.map +1 -1
  1415. package/build-module/social-link/icons/spotify.js +7 -6
  1416. package/build-module/social-link/icons/spotify.js.map +1 -1
  1417. package/build-module/social-link/icons/telegram.js +7 -6
  1418. package/build-module/social-link/icons/telegram.js.map +1 -1
  1419. package/build-module/social-link/icons/threads.js +7 -6
  1420. package/build-module/social-link/icons/threads.js.map +1 -1
  1421. package/build-module/social-link/icons/tiktok.js +7 -6
  1422. package/build-module/social-link/icons/tiktok.js.map +1 -1
  1423. package/build-module/social-link/icons/tumblr.js +7 -6
  1424. package/build-module/social-link/icons/tumblr.js.map +1 -1
  1425. package/build-module/social-link/icons/twitch.js +7 -6
  1426. package/build-module/social-link/icons/twitch.js.map +1 -1
  1427. package/build-module/social-link/icons/twitter.js +7 -6
  1428. package/build-module/social-link/icons/twitter.js.map +1 -1
  1429. package/build-module/social-link/icons/vimeo.js +7 -6
  1430. package/build-module/social-link/icons/vimeo.js.map +1 -1
  1431. package/build-module/social-link/icons/vk.js +7 -6
  1432. package/build-module/social-link/icons/vk.js.map +1 -1
  1433. package/build-module/social-link/icons/whatsapp.js +7 -6
  1434. package/build-module/social-link/icons/whatsapp.js.map +1 -1
  1435. package/build-module/social-link/icons/wordpress.js +7 -6
  1436. package/build-module/social-link/icons/wordpress.js.map +1 -1
  1437. package/build-module/social-link/icons/x.js +7 -6
  1438. package/build-module/social-link/icons/x.js.map +1 -1
  1439. package/build-module/social-link/icons/yelp.js +7 -6
  1440. package/build-module/social-link/icons/yelp.js.map +1 -1
  1441. package/build-module/social-link/icons/youtube.js +7 -6
  1442. package/build-module/social-link/icons/youtube.js.map +1 -1
  1443. package/build-module/social-link/variations.js +8 -1
  1444. package/build-module/social-link/variations.js.map +1 -1
  1445. package/build-module/social-links/deprecated.js +5 -4
  1446. package/build-module/social-links/deprecated.js.map +1 -1
  1447. package/build-module/social-links/edit.js +94 -80
  1448. package/build-module/social-links/edit.js.map +1 -1
  1449. package/build-module/social-links/edit.native.js +16 -15
  1450. package/build-module/social-links/edit.native.js.map +1 -1
  1451. package/build-module/social-links/save.js +2 -2
  1452. package/build-module/social-links/save.js.map +1 -1
  1453. package/build-module/spacer/controls.js +61 -47
  1454. package/build-module/spacer/controls.js.map +1 -1
  1455. package/build-module/spacer/controls.native.js +17 -13
  1456. package/build-module/spacer/controls.native.js.map +1 -1
  1457. package/build-module/spacer/deprecated.js +2 -2
  1458. package/build-module/spacer/deprecated.js.map +1 -1
  1459. package/build-module/spacer/edit.js +50 -39
  1460. package/build-module/spacer/edit.js.map +1 -1
  1461. package/build-module/spacer/edit.native.js +12 -9
  1462. package/build-module/spacer/edit.native.js.map +1 -1
  1463. package/build-module/spacer/save.js +2 -2
  1464. package/build-module/spacer/save.js.map +1 -1
  1465. package/build-module/spacer/save.native.js +2 -2
  1466. package/build-module/spacer/save.native.js.map +1 -1
  1467. package/build-module/table/deprecated.js +169 -157
  1468. package/build-module/table/deprecated.js.map +1 -1
  1469. package/build-module/table/edit.js +145 -129
  1470. package/build-module/table/edit.js.map +1 -1
  1471. package/build-module/table/save.js +53 -49
  1472. package/build-module/table/save.js.map +1 -1
  1473. package/build-module/table-of-contents/edit.js +54 -36
  1474. package/build-module/table-of-contents/edit.js.map +1 -1
  1475. package/build-module/table-of-contents/list.js +30 -22
  1476. package/build-module/table-of-contents/list.js.map +1 -1
  1477. package/build-module/table-of-contents/save.js +9 -6
  1478. package/build-module/table-of-contents/save.js.map +1 -1
  1479. package/build-module/tag-cloud/edit.js +72 -58
  1480. package/build-module/tag-cloud/edit.js.map +1 -1
  1481. package/build-module/template-part/edit/advanced-controls.js +61 -55
  1482. package/build-module/template-part/edit/advanced-controls.js.map +1 -1
  1483. package/build-module/template-part/edit/import-controls.js +34 -27
  1484. package/build-module/template-part/edit/import-controls.js.map +1 -1
  1485. package/build-module/template-part/edit/index.js +112 -89
  1486. package/build-module/template-part/edit/index.js.map +1 -1
  1487. package/build-module/template-part/edit/inner-blocks.js +4 -4
  1488. package/build-module/template-part/edit/inner-blocks.js.map +1 -1
  1489. package/build-module/template-part/edit/placeholder.js +22 -18
  1490. package/build-module/template-part/edit/placeholder.js.map +1 -1
  1491. package/build-module/template-part/edit/selection-modal.js +30 -20
  1492. package/build-module/template-part/edit/selection-modal.js.map +1 -1
  1493. package/build-module/template-part/edit/title-modal.js +26 -20
  1494. package/build-module/template-part/edit/title-modal.js.map +1 -1
  1495. package/build-module/term-description/edit.js +24 -15
  1496. package/build-module/term-description/edit.js.map +1 -1
  1497. package/build-module/text-columns/edit.js +55 -44
  1498. package/build-module/text-columns/edit.js.map +1 -1
  1499. package/build-module/text-columns/save.js +13 -12
  1500. package/build-module/text-columns/save.js.map +1 -1
  1501. package/build-module/utils/caption.js +36 -31
  1502. package/build-module/utils/caption.js.map +1 -1
  1503. package/build-module/utils/hooks.js +9 -0
  1504. package/build-module/utils/hooks.js.map +1 -1
  1505. package/build-module/verse/deprecated.js +7 -6
  1506. package/build-module/verse/deprecated.js.map +1 -1
  1507. package/build-module/verse/edit.js +33 -27
  1508. package/build-module/verse/edit.js.map +1 -1
  1509. package/build-module/verse/save.js +6 -5
  1510. package/build-module/verse/save.js.map +1 -1
  1511. package/build-module/video/deprecated.js +21 -18
  1512. package/build-module/video/deprecated.js.map +1 -1
  1513. package/build-module/video/edit-common-settings.js +41 -35
  1514. package/build-module/video/edit-common-settings.js.map +1 -1
  1515. package/build-module/video/edit.js +105 -80
  1516. package/build-module/video/edit.js.map +1 -1
  1517. package/build-module/video/edit.native.js +101 -85
  1518. package/build-module/video/edit.native.js.map +1 -1
  1519. package/build-module/video/icon-retry.native.js +11 -9
  1520. package/build-module/video/icon-retry.native.js.map +1 -1
  1521. package/build-module/video/save.js +22 -19
  1522. package/build-module/video/save.js.map +1 -1
  1523. package/build-module/video/tracks-editor.js +190 -158
  1524. package/build-module/video/tracks-editor.js.map +1 -1
  1525. package/build-module/video/tracks.js +3 -4
  1526. package/build-module/video/tracks.js.map +1 -1
  1527. package/build-style/audio/theme-rtl.css +1 -1
  1528. package/build-style/audio/theme.css +1 -1
  1529. package/build-style/button/editor-rtl.css +0 -31
  1530. package/build-style/button/editor.css +0 -31
  1531. package/build-style/button/style-rtl.css +6 -39
  1532. package/build-style/button/style.css +6 -39
  1533. package/build-style/cover/editor-rtl.css +0 -4
  1534. package/build-style/cover/editor.css +0 -4
  1535. package/build-style/cover/style-rtl.css +12 -34
  1536. package/build-style/cover/style.css +12 -34
  1537. package/build-style/editor-rtl.css +36 -96
  1538. package/build-style/editor.css +37 -96
  1539. package/build-style/embed/theme-rtl.css +1 -1
  1540. package/build-style/embed/theme.css +1 -1
  1541. package/build-style/gallery/editor-rtl.css +12 -12
  1542. package/build-style/gallery/editor.css +12 -12
  1543. package/build-style/html/editor-rtl.css +1 -0
  1544. package/build-style/html/editor.css +2 -0
  1545. package/build-style/image/style-rtl.css +3 -33
  1546. package/build-style/image/style.css +3 -33
  1547. package/build-style/image/theme-rtl.css +3 -3
  1548. package/build-style/image/theme.css +3 -3
  1549. package/build-style/latest-posts/editor-rtl.css +9 -10
  1550. package/build-style/latest-posts/editor.css +9 -10
  1551. package/build-style/latest-posts/style-rtl.css +8 -2
  1552. package/build-style/latest-posts/style.css +8 -2
  1553. package/build-style/list/style-rtl.css +2 -2
  1554. package/build-style/list/style.css +2 -2
  1555. package/build-style/paragraph/style-rtl.css +1 -1
  1556. package/build-style/paragraph/style.css +1 -1
  1557. package/build-style/pullquote/style-rtl.css +2 -5
  1558. package/build-style/pullquote/style.css +2 -5
  1559. package/build-style/pullquote/theme-rtl.css +1 -2
  1560. package/build-style/pullquote/theme.css +1 -2
  1561. package/build-style/quote/theme-rtl.css +6 -6
  1562. package/build-style/quote/theme.css +6 -6
  1563. package/build-style/separator/editor-rtl.css +0 -4
  1564. package/build-style/separator/editor.css +0 -4
  1565. package/build-style/separator/style-rtl.css +12 -9
  1566. package/build-style/separator/style.css +12 -9
  1567. package/build-style/site-logo/style-rtl.css +2 -1
  1568. package/build-style/site-logo/style.css +2 -1
  1569. package/build-style/site-title/editor-rtl.css +1 -1
  1570. package/build-style/site-title/editor.css +1 -1
  1571. package/build-style/site-title/style-rtl.css +1 -1
  1572. package/build-style/site-title/style.css +1 -1
  1573. package/build-style/social-link/editor-rtl.css +2 -2
  1574. package/build-style/social-link/editor.css +2 -2
  1575. package/build-style/social-links/editor-rtl.css +11 -11
  1576. package/build-style/social-links/editor.css +11 -11
  1577. package/build-style/social-links/style-rtl.css +17 -7
  1578. package/build-style/social-links/style.css +17 -7
  1579. package/build-style/style-rtl.css +70 -136
  1580. package/build-style/style.css +70 -136
  1581. package/build-style/table/theme-rtl.css +3 -4
  1582. package/build-style/table/theme.css +3 -4
  1583. package/build-style/tag-cloud/style-rtl.css +4 -2
  1584. package/build-style/tag-cloud/style.css +4 -2
  1585. package/build-style/template-part/theme-rtl.css +1 -1
  1586. package/build-style/template-part/theme.css +1 -1
  1587. package/build-style/theme-rtl.css +17 -19
  1588. package/build-style/theme.css +17 -19
  1589. package/build-style/video/theme-rtl.css +1 -1
  1590. package/build-style/video/theme.css +1 -1
  1591. package/package.json +37 -36
  1592. package/src/audio/edit.native.js +1 -1
  1593. package/src/audio/theme.scss +1 -1
  1594. package/src/block/edit-title.native.js +2 -1
  1595. package/src/block/edit.js +2 -10
  1596. package/src/block/edit.native.js +1 -1
  1597. package/src/block/index.php +1 -1
  1598. package/src/button/edit.js +8 -4
  1599. package/src/button/edit.native.js +1 -1
  1600. package/src/button/editor.scss +0 -35
  1601. package/src/button/style.scss +20 -52
  1602. package/src/columns/edit.native.js +2 -3
  1603. package/src/comments/index.php +1 -1
  1604. package/src/cover/block.json +1 -0
  1605. package/src/cover/controls.native.js +2 -2
  1606. package/src/cover/edit/inspector-controls.js +9 -2
  1607. package/src/cover/edit.native.js +22 -6
  1608. package/src/cover/editor.scss +0 -7
  1609. package/src/cover/overlay-color-settings.native.js +1 -1
  1610. package/src/cover/style.scss +14 -32
  1611. package/src/editor.scss +0 -1
  1612. package/src/embed/embed-no-preview.native.js +2 -2
  1613. package/src/embed/embed-placeholder.native.js +2 -2
  1614. package/src/embed/theme.scss +1 -1
  1615. package/src/embed/util.js +1 -1
  1616. package/src/file/edit.js +2 -6
  1617. package/src/form/save.js +2 -3
  1618. package/src/form-submit-button/save.js +2 -3
  1619. package/src/freeform/edit.js +6 -2
  1620. package/src/gallery/edit.js +2 -2
  1621. package/src/gallery/editor.scss +4 -1
  1622. package/src/gallery/v1/gallery-button.native.js +1 -1
  1623. package/src/gallery/v1/gallery-image.native.js +1 -1
  1624. package/src/heading/test/__snapshots__/index.native.js.snap +12 -0
  1625. package/src/heading/test/index.native.js +65 -0
  1626. package/src/html/editor.scss +3 -0
  1627. package/src/image/edit.js +9 -8
  1628. package/src/image/edit.native.js +6 -3
  1629. package/src/image/image.js +60 -28
  1630. package/src/image/index.php +9 -9
  1631. package/src/image/style.scss +8 -43
  1632. package/src/image/theme.scss +2 -2
  1633. package/src/index.js +16 -16
  1634. package/src/latest-posts/edit.native.js +1 -1
  1635. package/src/latest-posts/editor.scss +10 -9
  1636. package/src/latest-posts/style.scss +12 -4
  1637. package/src/list/style.scss +3 -3
  1638. package/src/media-text/edit.js +131 -66
  1639. package/src/media-text/edit.native.js +10 -0
  1640. package/src/media-text/icon-retry.native.js +1 -1
  1641. package/src/media-text/media-container.native.js +16 -3
  1642. package/src/missing/edit.native.js +2 -2
  1643. package/src/more/block.json +2 -1
  1644. package/src/more/edit.js +1 -2
  1645. package/src/navigation/index.php +18 -6
  1646. package/src/navigation-link/edit.js +16 -2
  1647. package/src/navigation-link/link-ui.js +5 -1
  1648. package/src/navigation-submenu/edit.js +25 -27
  1649. package/src/page-list/convert-to-links-modal.js +12 -3
  1650. package/src/page-list/edit.js +3 -3
  1651. package/src/paragraph/style.scss +2 -1
  1652. package/src/paragraph/test/__snapshots__/edit.native.js.snap +6 -0
  1653. package/src/paragraph/test/edit.native.js +26 -0
  1654. package/src/pullquote/editor.scss +2 -0
  1655. package/src/pullquote/style.scss +4 -6
  1656. package/src/pullquote/theme.scss +1 -3
  1657. package/src/query/save.js +1 -1
  1658. package/src/query/variations.js +1 -3
  1659. package/src/query-no-results/save.js +1 -1
  1660. package/src/quote/theme.scss +1 -1
  1661. package/src/search/edit.js +9 -3
  1662. package/src/separator/editor.scss +0 -7
  1663. package/src/separator/style.scss +28 -24
  1664. package/src/site-logo/edit.js +1 -2
  1665. package/src/site-logo/style.scss +6 -6
  1666. package/src/site-title/editor.scss +2 -4
  1667. package/src/site-title/style.scss +2 -4
  1668. package/src/social-link/edit.native.js +1 -1
  1669. package/src/social-link/editor.scss +2 -2
  1670. package/src/social-link/icons/bluesky.js +10 -0
  1671. package/src/social-link/icons/index.js +1 -0
  1672. package/src/social-link/index.php +4 -0
  1673. package/src/social-link/socials-with-bg.scss +5 -0
  1674. package/src/social-link/socials-without-bg.scss +4 -0
  1675. package/src/social-link/variations.js +7 -0
  1676. package/src/social-links/edit.native.js +1 -1
  1677. package/src/social-links/editor.scss +11 -14
  1678. package/src/social-links/style.scss +15 -14
  1679. package/src/spacer/controls.js +6 -4
  1680. package/src/spacer/edit.js +5 -2
  1681. package/src/table/style.scss +3 -0
  1682. package/src/table/theme.scss +2 -4
  1683. package/src/tag-cloud/style.scss +15 -13
  1684. package/src/template-part/theme.scss +5 -7
  1685. package/src/utils/hooks.js +11 -0
  1686. package/src/video/edit-common-settings.js +4 -0
  1687. package/src/video/theme.scss +1 -1
  1688. package/tsconfig.tsbuildinfo +1 -1
  1689. package/build-style/block/editor-rtl.css +0 -108
  1690. package/build-style/block/editor.css +0 -108
  1691. package/src/block/editor.scss +0 -35
@@ -1 +1 @@
1
- {"version":3,"names":["useEntityProp","dateI18n","getSettings","getDateSettings","InspectorControls","useBlockProps","__experimentalDateFormatPicker","DateFormatPicker","PanelBody","ToggleControl","__","_x","Edit","attributes","format","isLink","context","commentId","setAttributes","blockProps","date","siteFormat","formats","inspectorControls","createElement","title","defaultFormat","onChange","nextFormat","__nextHasNoMarginBottom","label","checked","commentDate","Date","dateTime","href","onClick","event","preventDefault","Fragment"],"sources":["@wordpress/block-library/src/comment-date/edit.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useEntityProp } from '@wordpress/core-data';\nimport { dateI18n, getSettings as getDateSettings } from '@wordpress/date';\nimport {\n\tInspectorControls,\n\tuseBlockProps,\n\t__experimentalDateFormatPicker as DateFormatPicker,\n} from '@wordpress/block-editor';\nimport { PanelBody, ToggleControl } from '@wordpress/components';\nimport { __, _x } from '@wordpress/i18n';\n\n/**\n * Renders the `core/comment-date` 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.format Format of the date.\n * @param {string} props.attributes.isLink Whether the author name should be linked.\n * @param {Object} props.context Inherited context.\n * @param {string} props.context.commentId The comment ID.\n *\n * @return {JSX.Element} React element.\n */\nexport default function Edit( {\n\tattributes: { format, isLink },\n\tcontext: { commentId },\n\tsetAttributes,\n} ) {\n\tconst blockProps = useBlockProps();\n\tlet [ date ] = useEntityProp( 'root', 'comment', 'date', commentId );\n\tconst [ siteFormat = getDateSettings().formats.date ] = useEntityProp(\n\t\t'root',\n\t\t'site',\n\t\t'date_format'\n\t);\n\n\tconst inspectorControls = (\n\t\t<InspectorControls>\n\t\t\t<PanelBody title={ __( 'Settings' ) }>\n\t\t\t\t<DateFormatPicker\n\t\t\t\t\tformat={ format }\n\t\t\t\t\tdefaultFormat={ siteFormat }\n\t\t\t\t\tonChange={ ( nextFormat ) =>\n\t\t\t\t\t\tsetAttributes( { format: nextFormat } )\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t\t<ToggleControl\n\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\tlabel={ __( 'Link to comment' ) }\n\t\t\t\t\tonChange={ () => setAttributes( { isLink: ! isLink } ) }\n\t\t\t\t\tchecked={ isLink }\n\t\t\t\t/>\n\t\t\t</PanelBody>\n\t\t</InspectorControls>\n\t);\n\n\tif ( ! commentId || ! date ) {\n\t\tdate = _x( 'Comment Date', 'block title' );\n\t}\n\n\tlet commentDate =\n\t\tdate instanceof Date ? (\n\t\t\t<time dateTime={ dateI18n( 'c', date ) }>\n\t\t\t\t{ dateI18n( format || siteFormat, date ) }\n\t\t\t</time>\n\t\t) : (\n\t\t\t<time>{ date }</time>\n\t\t);\n\n\tif ( isLink ) {\n\t\tcommentDate = (\n\t\t\t<a\n\t\t\t\thref=\"#comment-date-pseudo-link\"\n\t\t\t\tonClick={ ( event ) => event.preventDefault() }\n\t\t\t>\n\t\t\t\t{ commentDate }\n\t\t\t</a>\n\t\t);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{ inspectorControls }\n\t\t\t<div { ...blockProps }>{ commentDate }</div>\n\t\t</>\n\t);\n}\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,sBAAsB;AACpD,SAASC,QAAQ,EAAEC,WAAW,IAAIC,eAAe,QAAQ,iBAAiB;AAC1E,SACCC,iBAAiB,EACjBC,aAAa,EACbC,8BAA8B,IAAIC,gBAAgB,QAC5C,yBAAyB;AAChC,SAASC,SAAS,EAAEC,aAAa,QAAQ,uBAAuB;AAChE,SAASC,EAAE,EAAEC,EAAE,QAAQ,iBAAiB;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,IAAIA,CAAE;EAC7BC,UAAU,EAAE;IAAEC,MAAM;IAAEC;EAAO,CAAC;EAC9BC,OAAO,EAAE;IAAEC;EAAU,CAAC;EACtBC;AACD,CAAC,EAAG;EACH,MAAMC,UAAU,GAAGd,aAAa,CAAC,CAAC;EAClC,IAAI,CAAEe,IAAI,CAAE,GAAGpB,aAAa,CAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAEiB,SAAU,CAAC;EACpE,MAAM,CAAEI,UAAU,GAAGlB,eAAe,CAAC,CAAC,CAACmB,OAAO,CAACF,IAAI,CAAE,GAAGpB,aAAa,CACpE,MAAM,EACN,MAAM,EACN,aACD,CAAC;EAED,MAAMuB,iBAAiB,GACtBC,aAAA,CAACpB,iBAAiB,QACjBoB,aAAA,CAAChB,SAAS;IAACiB,KAAK,EAAGf,EAAE,CAAE,UAAW;EAAG,GACpCc,aAAA,CAACjB,gBAAgB;IAChBO,MAAM,EAAGA,MAAQ;IACjBY,aAAa,EAAGL,UAAY;IAC5BM,QAAQ,EAAKC,UAAU,IACtBV,aAAa,CAAE;MAAEJ,MAAM,EAAEc;IAAW,CAAE;EACtC,CACD,CAAC,EACFJ,aAAA,CAACf,aAAa;IACboB,uBAAuB;IACvBC,KAAK,EAAGpB,EAAE,CAAE,iBAAkB,CAAG;IACjCiB,QAAQ,EAAGA,CAAA,KAAMT,aAAa,CAAE;MAAEH,MAAM,EAAE,CAAEA;IAAO,CAAE,CAAG;IACxDgB,OAAO,EAAGhB;EAAQ,CAClB,CACS,CACO,CACnB;EAED,IAAK,CAAEE,SAAS,IAAI,CAAEG,IAAI,EAAG;IAC5BA,IAAI,GAAGT,EAAE,CAAE,cAAc,EAAE,aAAc,CAAC;EAC3C;EAEA,IAAIqB,WAAW,GACdZ,IAAI,YAAYa,IAAI,GACnBT,aAAA;IAAMU,QAAQ,EAAGjC,QAAQ,CAAE,GAAG,EAAEmB,IAAK;EAAG,GACrCnB,QAAQ,CAAEa,MAAM,IAAIO,UAAU,EAAED,IAAK,CAClC,CAAC,GAEPI,aAAA,eAAQJ,IAAY,CACpB;EAEF,IAAKL,MAAM,EAAG;IACbiB,WAAW,GACVR,aAAA;MACCW,IAAI,EAAC,2BAA2B;MAChCC,OAAO,EAAKC,KAAK,IAAMA,KAAK,CAACC,cAAc,CAAC;IAAG,GAE7CN,WACA,CACH;EACF;EAEA,OACCR,aAAA,CAAAe,QAAA,QACGhB,iBAAiB,EACnBC,aAAA;IAAA,GAAUL;EAAU,GAAKa,WAAkB,CAC1C,CAAC;AAEL","ignoreList":[]}
1
+ {"version":3,"names":["useEntityProp","dateI18n","getSettings","getDateSettings","InspectorControls","useBlockProps","__experimentalDateFormatPicker","DateFormatPicker","PanelBody","ToggleControl","__","_x","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","format","isLink","context","commentId","setAttributes","blockProps","date","siteFormat","formats","inspectorControls","children","title","defaultFormat","onChange","nextFormat","__nextHasNoMarginBottom","label","checked","commentDate","Date","dateTime","href","onClick","event","preventDefault"],"sources":["@wordpress/block-library/src/comment-date/edit.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { useEntityProp } from '@wordpress/core-data';\nimport { dateI18n, getSettings as getDateSettings } from '@wordpress/date';\nimport {\n\tInspectorControls,\n\tuseBlockProps,\n\t__experimentalDateFormatPicker as DateFormatPicker,\n} from '@wordpress/block-editor';\nimport { PanelBody, ToggleControl } from '@wordpress/components';\nimport { __, _x } from '@wordpress/i18n';\n\n/**\n * Renders the `core/comment-date` 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.format Format of the date.\n * @param {string} props.attributes.isLink Whether the author name should be linked.\n * @param {Object} props.context Inherited context.\n * @param {string} props.context.commentId The comment ID.\n *\n * @return {JSX.Element} React element.\n */\nexport default function Edit( {\n\tattributes: { format, isLink },\n\tcontext: { commentId },\n\tsetAttributes,\n} ) {\n\tconst blockProps = useBlockProps();\n\tlet [ date ] = useEntityProp( 'root', 'comment', 'date', commentId );\n\tconst [ siteFormat = getDateSettings().formats.date ] = useEntityProp(\n\t\t'root',\n\t\t'site',\n\t\t'date_format'\n\t);\n\n\tconst inspectorControls = (\n\t\t<InspectorControls>\n\t\t\t<PanelBody title={ __( 'Settings' ) }>\n\t\t\t\t<DateFormatPicker\n\t\t\t\t\tformat={ format }\n\t\t\t\t\tdefaultFormat={ siteFormat }\n\t\t\t\t\tonChange={ ( nextFormat ) =>\n\t\t\t\t\t\tsetAttributes( { format: nextFormat } )\n\t\t\t\t\t}\n\t\t\t\t/>\n\t\t\t\t<ToggleControl\n\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\tlabel={ __( 'Link to comment' ) }\n\t\t\t\t\tonChange={ () => setAttributes( { isLink: ! isLink } ) }\n\t\t\t\t\tchecked={ isLink }\n\t\t\t\t/>\n\t\t\t</PanelBody>\n\t\t</InspectorControls>\n\t);\n\n\tif ( ! commentId || ! date ) {\n\t\tdate = _x( 'Comment Date', 'block title' );\n\t}\n\n\tlet commentDate =\n\t\tdate instanceof Date ? (\n\t\t\t<time dateTime={ dateI18n( 'c', date ) }>\n\t\t\t\t{ dateI18n( format || siteFormat, date ) }\n\t\t\t</time>\n\t\t) : (\n\t\t\t<time>{ date }</time>\n\t\t);\n\n\tif ( isLink ) {\n\t\tcommentDate = (\n\t\t\t<a\n\t\t\t\thref=\"#comment-date-pseudo-link\"\n\t\t\t\tonClick={ ( event ) => event.preventDefault() }\n\t\t\t>\n\t\t\t\t{ commentDate }\n\t\t\t</a>\n\t\t);\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{ inspectorControls }\n\t\t\t<div { ...blockProps }>{ commentDate }</div>\n\t\t</>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,sBAAsB;AACpD,SAASC,QAAQ,EAAEC,WAAW,IAAIC,eAAe,QAAQ,iBAAiB;AAC1E,SACCC,iBAAiB,EACjBC,aAAa,EACbC,8BAA8B,IAAIC,gBAAgB,QAC5C,yBAAyB;AAChC,SAASC,SAAS,EAAEC,aAAa,QAAQ,uBAAuB;AAChE,SAASC,EAAE,EAAEC,EAAE,QAAQ,iBAAiB;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAZA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAaA,eAAe,SAASC,IAAIA,CAAE;EAC7BC,UAAU,EAAE;IAAEC,MAAM;IAAEC;EAAO,CAAC;EAC9BC,OAAO,EAAE;IAAEC;EAAU,CAAC;EACtBC;AACD,CAAC,EAAG;EACH,MAAMC,UAAU,GAAGpB,aAAa,CAAC,CAAC;EAClC,IAAI,CAAEqB,IAAI,CAAE,GAAG1B,aAAa,CAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAEuB,SAAU,CAAC;EACpE,MAAM,CAAEI,UAAU,GAAGxB,eAAe,CAAC,CAAC,CAACyB,OAAO,CAACF,IAAI,CAAE,GAAG1B,aAAa,CACpE,MAAM,EACN,MAAM,EACN,aACD,CAAC;EAED,MAAM6B,iBAAiB,gBACtBhB,IAAA,CAACT,iBAAiB;IAAA0B,QAAA,eACjBf,KAAA,CAACP,SAAS;MAACuB,KAAK,EAAGrB,EAAE,CAAE,UAAW,CAAG;MAAAoB,QAAA,gBACpCjB,IAAA,CAACN,gBAAgB;QAChBa,MAAM,EAAGA,MAAQ;QACjBY,aAAa,EAAGL,UAAY;QAC5BM,QAAQ,EAAKC,UAAU,IACtBV,aAAa,CAAE;UAAEJ,MAAM,EAAEc;QAAW,CAAE;MACtC,CACD,CAAC,eACFrB,IAAA,CAACJ,aAAa;QACb0B,uBAAuB;QACvBC,KAAK,EAAG1B,EAAE,CAAE,iBAAkB,CAAG;QACjCuB,QAAQ,EAAGA,CAAA,KAAMT,aAAa,CAAE;UAAEH,MAAM,EAAE,CAAEA;QAAO,CAAE,CAAG;QACxDgB,OAAO,EAAGhB;MAAQ,CAClB,CAAC;IAAA,CACQ;EAAC,CACM,CACnB;EAED,IAAK,CAAEE,SAAS,IAAI,CAAEG,IAAI,EAAG;IAC5BA,IAAI,GAAGf,EAAE,CAAE,cAAc,EAAE,aAAc,CAAC;EAC3C;EAEA,IAAI2B,WAAW,GACdZ,IAAI,YAAYa,IAAI,gBACnB1B,IAAA;IAAM2B,QAAQ,EAAGvC,QAAQ,CAAE,GAAG,EAAEyB,IAAK,CAAG;IAAAI,QAAA,EACrC7B,QAAQ,CAAEmB,MAAM,IAAIO,UAAU,EAAED,IAAK;EAAC,CACnC,CAAC,gBAEPb,IAAA;IAAAiB,QAAA,EAAQJ;EAAI,CAAQ,CACpB;EAEF,IAAKL,MAAM,EAAG;IACbiB,WAAW,gBACVzB,IAAA;MACC4B,IAAI,EAAC,2BAA2B;MAChCC,OAAO,EAAKC,KAAK,IAAMA,KAAK,CAACC,cAAc,CAAC,CAAG;MAAAd,QAAA,EAE7CQ;IAAW,CACX,CACH;EACF;EAEA,oBACCvB,KAAA,CAAAE,SAAA;IAAAa,QAAA,GACGD,iBAAiB,eACnBhB,IAAA;MAAA,GAAUY,UAAU;MAAAK,QAAA,EAAKQ;IAAW,CAAO,CAAC;EAAA,CAC3C,CAAC;AAEL","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement, Fragment } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -10,6 +9,9 @@ import clsx from 'clsx';
10
9
  import { AlignmentControl, BlockControls, InspectorControls, useBlockProps } from '@wordpress/block-editor';
11
10
  import { PanelBody, ToggleControl } from '@wordpress/components';
12
11
  import { __ } from '@wordpress/i18n';
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { Fragment as _Fragment } from "react/jsx-runtime";
14
+ import { jsxs as _jsxs } from "react/jsx-runtime";
13
15
  export default function Edit({
14
16
  attributes: {
15
17
  linkTarget,
@@ -22,29 +24,37 @@ export default function Edit({
22
24
  [`has-text-align-${textAlign}`]: textAlign
23
25
  })
24
26
  });
25
- const blockControls = createElement(BlockControls, {
26
- group: "block"
27
- }, createElement(AlignmentControl, {
28
- value: textAlign,
29
- onChange: newAlign => setAttributes({
30
- textAlign: newAlign
27
+ const blockControls = /*#__PURE__*/_jsx(BlockControls, {
28
+ group: "block",
29
+ children: /*#__PURE__*/_jsx(AlignmentControl, {
30
+ value: textAlign,
31
+ onChange: newAlign => setAttributes({
32
+ textAlign: newAlign
33
+ })
31
34
  })
32
- }));
33
- const inspectorControls = createElement(InspectorControls, null, createElement(PanelBody, {
34
- title: __('Settings')
35
- }, createElement(ToggleControl, {
36
- __nextHasNoMarginBottom: true,
37
- label: __('Open in new tab'),
38
- onChange: value => setAttributes({
39
- linkTarget: value ? '_blank' : '_self'
40
- }),
41
- checked: linkTarget === '_blank'
42
- })));
43
- return createElement(Fragment, null, blockControls, inspectorControls, createElement("div", {
44
- ...blockProps
45
- }, createElement("a", {
46
- href: "#edit-comment-pseudo-link",
47
- onClick: event => event.preventDefault()
48
- }, __('Edit'))));
35
+ });
36
+ const inspectorControls = /*#__PURE__*/_jsx(InspectorControls, {
37
+ children: /*#__PURE__*/_jsx(PanelBody, {
38
+ title: __('Settings'),
39
+ children: /*#__PURE__*/_jsx(ToggleControl, {
40
+ __nextHasNoMarginBottom: true,
41
+ label: __('Open in new tab'),
42
+ onChange: value => setAttributes({
43
+ linkTarget: value ? '_blank' : '_self'
44
+ }),
45
+ checked: linkTarget === '_blank'
46
+ })
47
+ })
48
+ });
49
+ return /*#__PURE__*/_jsxs(_Fragment, {
50
+ children: [blockControls, inspectorControls, /*#__PURE__*/_jsx("div", {
51
+ ...blockProps,
52
+ children: /*#__PURE__*/_jsx("a", {
53
+ href: "#edit-comment-pseudo-link",
54
+ onClick: event => event.preventDefault(),
55
+ children: __('Edit')
56
+ })
57
+ })]
58
+ });
49
59
  }
50
60
  //# sourceMappingURL=edit.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["clsx","AlignmentControl","BlockControls","InspectorControls","useBlockProps","PanelBody","ToggleControl","__","Edit","attributes","linkTarget","textAlign","setAttributes","blockProps","className","blockControls","createElement","group","value","onChange","newAlign","inspectorControls","title","__nextHasNoMarginBottom","label","checked","Fragment","href","onClick","event","preventDefault"],"sources":["@wordpress/block-library/src/comment-edit-link/edit.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tAlignmentControl,\n\tBlockControls,\n\tInspectorControls,\n\tuseBlockProps,\n} from '@wordpress/block-editor';\nimport { PanelBody, ToggleControl } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\nexport default function Edit( {\n\tattributes: { linkTarget, textAlign },\n\tsetAttributes,\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\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\tconst inspectorControls = (\n\t\t<InspectorControls>\n\t\t\t<PanelBody title={ __( 'Settings' ) }>\n\t\t\t\t<ToggleControl\n\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\tlabel={ __( 'Open in new tab' ) }\n\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\tlinkTarget: value ? '_blank' : '_self',\n\t\t\t\t\t\t} )\n\t\t\t\t\t}\n\t\t\t\t\tchecked={ linkTarget === '_blank' }\n\t\t\t\t/>\n\t\t\t</PanelBody>\n\t\t</InspectorControls>\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{ blockControls }\n\t\t\t{ inspectorControls }\n\t\t\t<div { ...blockProps }>\n\t\t\t\t<a\n\t\t\t\t\thref=\"#edit-comment-pseudo-link\"\n\t\t\t\t\tonClick={ ( event ) => event.preventDefault() }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Edit' ) }\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</>\n\t);\n}\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SACCC,gBAAgB,EAChBC,aAAa,EACbC,iBAAiB,EACjBC,aAAa,QACP,yBAAyB;AAChC,SAASC,SAAS,EAAEC,aAAa,QAAQ,uBAAuB;AAChE,SAASC,EAAE,QAAQ,iBAAiB;AAEpC,eAAe,SAASC,IAAIA,CAAE;EAC7BC,UAAU,EAAE;IAAEC,UAAU;IAAEC;EAAU,CAAC;EACrCC;AACD,CAAC,EAAG;EACH,MAAMC,UAAU,GAAGT,aAAa,CAAE;IACjCU,SAAS,EAAEd,IAAI,CAAE;MAChB,CAAG,kBAAkBW,SAAW,EAAC,GAAIA;IACtC,CAAE;EACH,CAAE,CAAC;EAEH,MAAMI,aAAa,GAClBC,aAAA,CAACd,aAAa;IAACe,KAAK,EAAC;EAAO,GAC3BD,aAAA,CAACf,gBAAgB;IAChBiB,KAAK,EAAGP,SAAW;IACnBQ,QAAQ,EAAKC,QAAQ,IACpBR,aAAa,CAAE;MAAED,SAAS,EAAES;IAAS,CAAE;EACvC,CACD,CACa,CACf;EACD,MAAMC,iBAAiB,GACtBL,aAAA,CAACb,iBAAiB,QACjBa,aAAA,CAACX,SAAS;IAACiB,KAAK,EAAGf,EAAE,CAAE,UAAW;EAAG,GACpCS,aAAA,CAACV,aAAa;IACbiB,uBAAuB;IACvBC,KAAK,EAAGjB,EAAE,CAAE,iBAAkB,CAAG;IACjCY,QAAQ,EAAKD,KAAK,IACjBN,aAAa,CAAE;MACdF,UAAU,EAAEQ,KAAK,GAAG,QAAQ,GAAG;IAChC,CAAE,CACF;IACDO,OAAO,EAAGf,UAAU,KAAK;EAAU,CACnC,CACS,CACO,CACnB;EAED,OACCM,aAAA,CAAAU,QAAA,QACGX,aAAa,EACbM,iBAAiB,EACnBL,aAAA;IAAA,GAAUH;EAAU,GACnBG,aAAA;IACCW,IAAI,EAAC,2BAA2B;IAChCC,OAAO,EAAKC,KAAK,IAAMA,KAAK,CAACC,cAAc,CAAC;EAAG,GAE7CvB,EAAE,CAAE,MAAO,CACX,CACC,CACJ,CAAC;AAEL","ignoreList":[]}
1
+ {"version":3,"names":["clsx","AlignmentControl","BlockControls","InspectorControls","useBlockProps","PanelBody","ToggleControl","__","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","Edit","attributes","linkTarget","textAlign","setAttributes","blockProps","className","blockControls","group","children","value","onChange","newAlign","inspectorControls","title","__nextHasNoMarginBottom","label","checked","href","onClick","event","preventDefault"],"sources":["@wordpress/block-library/src/comment-edit-link/edit.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport {\n\tAlignmentControl,\n\tBlockControls,\n\tInspectorControls,\n\tuseBlockProps,\n} from '@wordpress/block-editor';\nimport { PanelBody, ToggleControl } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\nexport default function Edit( {\n\tattributes: { linkTarget, textAlign },\n\tsetAttributes,\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\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\tconst inspectorControls = (\n\t\t<InspectorControls>\n\t\t\t<PanelBody title={ __( 'Settings' ) }>\n\t\t\t\t<ToggleControl\n\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\tlabel={ __( 'Open in new tab' ) }\n\t\t\t\t\tonChange={ ( value ) =>\n\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\tlinkTarget: value ? '_blank' : '_self',\n\t\t\t\t\t\t} )\n\t\t\t\t\t}\n\t\t\t\t\tchecked={ linkTarget === '_blank' }\n\t\t\t\t/>\n\t\t\t</PanelBody>\n\t\t</InspectorControls>\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{ blockControls }\n\t\t\t{ inspectorControls }\n\t\t\t<div { ...blockProps }>\n\t\t\t\t<a\n\t\t\t\t\thref=\"#edit-comment-pseudo-link\"\n\t\t\t\t\tonClick={ ( event ) => event.preventDefault() }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Edit' ) }\n\t\t\t\t</a>\n\t\t\t</div>\n\t\t</>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SACCC,gBAAgB,EAChBC,aAAa,EACbC,iBAAiB,EACjBC,aAAa,QACP,yBAAyB;AAChC,SAASC,SAAS,EAAEC,aAAa,QAAQ,uBAAuB;AAChE,SAASC,EAAE,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAErC,eAAe,SAASC,IAAIA,CAAE;EAC7BC,UAAU,EAAE;IAAEC,UAAU;IAAEC;EAAU,CAAC;EACrCC;AACD,CAAC,EAAG;EACH,MAAMC,UAAU,GAAGf,aAAa,CAAE;IACjCgB,SAAS,EAAEpB,IAAI,CAAE;MAChB,CAAG,kBAAkBiB,SAAW,EAAC,GAAIA;IACtC,CAAE;EACH,CAAE,CAAC;EAEH,MAAMI,aAAa,gBAClBZ,IAAA,CAACP,aAAa;IAACoB,KAAK,EAAC,OAAO;IAAAC,QAAA,eAC3Bd,IAAA,CAACR,gBAAgB;MAChBuB,KAAK,EAAGP,SAAW;MACnBQ,QAAQ,EAAKC,QAAQ,IACpBR,aAAa,CAAE;QAAED,SAAS,EAAES;MAAS,CAAE;IACvC,CACD;EAAC,CACY,CACf;EACD,MAAMC,iBAAiB,gBACtBlB,IAAA,CAACN,iBAAiB;IAAAoB,QAAA,eACjBd,IAAA,CAACJ,SAAS;MAACuB,KAAK,EAAGrB,EAAE,CAAE,UAAW,CAAG;MAAAgB,QAAA,eACpCd,IAAA,CAACH,aAAa;QACbuB,uBAAuB;QACvBC,KAAK,EAAGvB,EAAE,CAAE,iBAAkB,CAAG;QACjCkB,QAAQ,EAAKD,KAAK,IACjBN,aAAa,CAAE;UACdF,UAAU,EAAEQ,KAAK,GAAG,QAAQ,GAAG;QAChC,CAAE,CACF;QACDO,OAAO,EAAGf,UAAU,KAAK;MAAU,CACnC;IAAC,CACQ;EAAC,CACM,CACnB;EAED,oBACCH,KAAA,CAAAF,SAAA;IAAAY,QAAA,GACGF,aAAa,EACbM,iBAAiB,eACnBlB,IAAA;MAAA,GAAUU,UAAU;MAAAI,QAAA,eACnBd,IAAA;QACCuB,IAAI,EAAC,2BAA2B;QAChCC,OAAO,EAAKC,KAAK,IAAMA,KAAK,CAACC,cAAc,CAAC,CAAG;QAAAZ,QAAA,EAE7ChB,EAAE,CAAE,MAAO;MAAC,CACZ;IAAC,CACA,CAAC;EAAA,CACL,CAAC;AAEL","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement, Fragment } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -20,6 +19,9 @@ import { AlignmentControl, BlockControls, useBlockProps } from '@wordpress/block
20
19
  *
21
20
  * @return {JSX.Element} React element.
22
21
  */
22
+ import { jsx as _jsx } from "react/jsx-runtime";
23
+ import { Fragment as _Fragment } from "react/jsx-runtime";
24
+ import { jsxs as _jsxs } from "react/jsx-runtime";
23
25
  function Edit({
24
26
  setAttributes,
25
27
  attributes: {
@@ -31,20 +33,25 @@ function Edit({
31
33
  [`has-text-align-${textAlign}`]: textAlign
32
34
  })
33
35
  });
34
- const blockControls = createElement(BlockControls, {
35
- group: "block"
36
- }, createElement(AlignmentControl, {
37
- value: textAlign,
38
- onChange: newAlign => setAttributes({
39
- textAlign: newAlign
36
+ const blockControls = /*#__PURE__*/_jsx(BlockControls, {
37
+ group: "block",
38
+ children: /*#__PURE__*/_jsx(AlignmentControl, {
39
+ value: textAlign,
40
+ onChange: newAlign => setAttributes({
41
+ textAlign: newAlign
42
+ })
40
43
  })
41
- }));
42
- return createElement(Fragment, null, blockControls, createElement("div", {
43
- ...blockProps
44
- }, createElement("a", {
45
- href: "#comment-reply-pseudo-link",
46
- onClick: event => event.preventDefault()
47
- }, __('Reply'))));
44
+ });
45
+ return /*#__PURE__*/_jsxs(_Fragment, {
46
+ children: [blockControls, /*#__PURE__*/_jsx("div", {
47
+ ...blockProps,
48
+ children: /*#__PURE__*/_jsx("a", {
49
+ href: "#comment-reply-pseudo-link",
50
+ onClick: event => event.preventDefault(),
51
+ children: __('Reply')
52
+ })
53
+ })]
54
+ });
48
55
  }
49
56
  export default Edit;
50
57
  //# sourceMappingURL=edit.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["clsx","__","AlignmentControl","BlockControls","useBlockProps","Edit","setAttributes","attributes","textAlign","blockProps","className","blockControls","createElement","group","value","onChange","newAlign","Fragment","href","onClick","event","preventDefault"],"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":";AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SACCC,gBAAgB,EAChBC,aAAa,EACbC,aAAa,QACP,yBAAyB;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,IAAIA,CAAE;EAAEC,aAAa;EAAEC,UAAU,EAAE;IAAEC;EAAU;AAAE,CAAC,EAAG;EAC7D,MAAMC,UAAU,GAAGL,aAAa,CAAE;IACjCM,SAAS,EAAEV,IAAI,CAAE;MAChB,CAAG,kBAAkBQ,SAAW,EAAC,GAAIA;IACtC,CAAE;EACH,CAAE,CAAC;EAEH,MAAMG,aAAa,GAClBC,aAAA,CAACT,aAAa;IAACU,KAAK,EAAC;EAAO,GAC3BD,aAAA,CAACV,gBAAgB;IAChBY,KAAK,EAAGN,SAAW;IACnBO,QAAQ,EAAKC,QAAQ,IACpBV,aAAa,CAAE;MAAEE,SAAS,EAAEQ;IAAS,CAAE;EACvC,CACD,CACa,CACf;EAED,OACCJ,aAAA,CAAAK,QAAA,QACGN,aAAa,EACfC,aAAA;IAAA,GAAUH;EAAU,GACnBG,aAAA;IACCM,IAAI,EAAC,4BAA4B;IACjCC,OAAO,EAAKC,KAAK,IAAMA,KAAK,CAACC,cAAc,CAAC;EAAG,GAE7CpB,EAAE,CAAE,OAAQ,CACZ,CACC,CACJ,CAAC;AAEL;AAEA,eAAeI,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["clsx","__","AlignmentControl","BlockControls","useBlockProps","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","Edit","setAttributes","attributes","textAlign","blockProps","className","blockControls","group","children","value","onChange","newAlign","href","onClick","event","preventDefault"],"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":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SACCC,gBAAgB,EAChBC,aAAa,EACbC,aAAa,QACP,yBAAyB;;AAEhC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAUA,SAASC,IAAIA,CAAE;EAAEC,aAAa;EAAEC,UAAU,EAAE;IAAEC;EAAU;AAAE,CAAC,EAAG;EAC7D,MAAMC,UAAU,GAAGX,aAAa,CAAE;IACjCY,SAAS,EAAEhB,IAAI,CAAE;MAChB,CAAG,kBAAkBc,SAAW,EAAC,GAAIA;IACtC,CAAE;EACH,CAAE,CAAC;EAEH,MAAMG,aAAa,gBAClBX,IAAA,CAACH,aAAa;IAACe,KAAK,EAAC,OAAO;IAAAC,QAAA,eAC3Bb,IAAA,CAACJ,gBAAgB;MAChBkB,KAAK,EAAGN,SAAW;MACnBO,QAAQ,EAAKC,QAAQ,IACpBV,aAAa,CAAE;QAAEE,SAAS,EAAEQ;MAAS,CAAE;IACvC,CACD;EAAC,CACY,CACf;EAED,oBACCZ,KAAA,CAAAF,SAAA;IAAAW,QAAA,GACGF,aAAa,eACfX,IAAA;MAAA,GAAUS,UAAU;MAAAI,QAAA,eACnBb,IAAA;QACCiB,IAAI,EAAC,4BAA4B;QACjCC,OAAO,EAAKC,KAAK,IAAMA,KAAK,CAACC,cAAc,CAAC,CAAG;QAAAP,QAAA,EAE7ClB,EAAE,CAAE,OAAQ;MAAC,CACb;IAAC,CACA,CAAC;EAAA,CACL,CAAC;AAEL;AAEA,eAAeU,IAAI","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
@@ -13,6 +12,8 @@ import { store as coreStore } from '@wordpress/core-data';
13
12
  * Internal dependencies
14
13
  */
15
14
  import { useCommentQueryArgs, useCommentTree } from './hooks';
15
+ import { jsx as _jsx } from "react/jsx-runtime";
16
+ import { jsxs as _jsxs } from "react/jsx-runtime";
16
17
  const TEMPLATE = [['core/avatar'], ['core/comment-author-name'], ['core/comment-date'], ['core/comment-content'], ['core/comment-reply-link'], ['core/comment-edit-link']];
17
18
 
18
19
  /**
@@ -102,20 +103,21 @@ function CommentTemplateInnerBlocks({
102
103
  } = useInnerBlocksProps({}, {
103
104
  template: TEMPLATE
104
105
  });
105
- return createElement("li", {
106
- ...innerBlocksProps
107
- }, comment.commentId === (activeCommentId || firstCommentId) ? children : null, createElement(MemoizedCommentTemplatePreview, {
108
- blocks: blocks,
109
- commentId: comment.commentId,
110
- setActiveCommentId: setActiveCommentId,
111
- isHidden: comment.commentId === (activeCommentId || firstCommentId)
112
- }), comment?.children?.length > 0 ? createElement(CommentsList, {
113
- comments: comment.children,
114
- activeCommentId: activeCommentId,
115
- setActiveCommentId: setActiveCommentId,
116
- blocks: blocks,
117
- firstCommentId: firstCommentId
118
- }) : null);
106
+ return /*#__PURE__*/_jsxs("li", {
107
+ ...innerBlocksProps,
108
+ children: [comment.commentId === (activeCommentId || firstCommentId) ? children : null, /*#__PURE__*/_jsx(MemoizedCommentTemplatePreview, {
109
+ blocks: blocks,
110
+ commentId: comment.commentId,
111
+ setActiveCommentId: setActiveCommentId,
112
+ isHidden: comment.commentId === (activeCommentId || firstCommentId)
113
+ }), comment?.children?.length > 0 ? /*#__PURE__*/_jsx(CommentsList, {
114
+ comments: comment.children,
115
+ activeCommentId: activeCommentId,
116
+ setActiveCommentId: setActiveCommentId,
117
+ blocks: blocks,
118
+ firstCommentId: firstCommentId
119
+ }) : null]
120
+ });
119
121
  }
120
122
  const CommentTemplatePreview = ({
121
123
  blocks,
@@ -138,7 +140,7 @@ const CommentTemplatePreview = ({
138
140
  const style = {
139
141
  display: isHidden ? 'none' : undefined
140
142
  };
141
- return createElement("div", {
143
+ return /*#__PURE__*/_jsx("div", {
142
144
  ...blockPreviewProps,
143
145
  tabIndex: 0,
144
146
  role: "button",
@@ -171,31 +173,32 @@ const CommentsList = ({
171
173
  setActiveCommentId,
172
174
  blocks,
173
175
  firstCommentId
174
- }) => createElement("ol", {
175
- ...blockProps
176
- }, comments && comments.map(({
177
- commentId,
178
- ...comment
179
- }, index) => createElement(BlockContextProvider, {
180
- key: comment.commentId || index,
181
- value: {
182
- // If the commentId is negative it means that this comment is a
183
- // "placeholder" and that the block is most likely being used in the
184
- // site editor. In this case, we have to set the commentId to `null`
185
- // because otherwise the (non-existent) comment with a negative ID
186
- // would be reqested from the REST API.
187
- commentId: commentId < 0 ? null : commentId
188
- }
189
- }, createElement(CommentTemplateInnerBlocks, {
190
- comment: {
176
+ }) => /*#__PURE__*/_jsx("ol", {
177
+ ...blockProps,
178
+ children: comments && comments.map(({
191
179
  commentId,
192
180
  ...comment
193
- },
194
- activeCommentId: activeCommentId,
195
- setActiveCommentId: setActiveCommentId,
196
- blocks: blocks,
197
- firstCommentId: firstCommentId
198
- }))));
181
+ }, index) => /*#__PURE__*/_jsx(BlockContextProvider, {
182
+ value: {
183
+ // If the commentId is negative it means that this comment is a
184
+ // "placeholder" and that the block is most likely being used in the
185
+ // site editor. In this case, we have to set the commentId to `null`
186
+ // because otherwise the (non-existent) comment with a negative ID
187
+ // would be reqested from the REST API.
188
+ commentId: commentId < 0 ? null : commentId
189
+ },
190
+ children: /*#__PURE__*/_jsx(CommentTemplateInnerBlocks, {
191
+ comment: {
192
+ commentId,
193
+ ...comment
194
+ },
195
+ activeCommentId: activeCommentId,
196
+ setActiveCommentId: setActiveCommentId,
197
+ blocks: blocks,
198
+ firstCommentId: firstCommentId
199
+ })
200
+ }, comment.commentId || index))
201
+ });
199
202
  export default function CommentTemplateEdit({
200
203
  clientId,
201
204
  context: {
@@ -241,9 +244,10 @@ export default function CommentTemplateEdit({
241
244
  // Reverse the order of top comments if needed.
242
245
  commentOrder === 'desc' && topLevelComments ? [...topLevelComments].reverse() : topLevelComments);
243
246
  if (!topLevelComments) {
244
- return createElement("p", {
245
- ...blockProps
246
- }, createElement(Spinner, null));
247
+ return /*#__PURE__*/_jsx("p", {
248
+ ...blockProps,
249
+ children: /*#__PURE__*/_jsx(Spinner, {})
250
+ });
247
251
  }
248
252
  if (!postId) {
249
253
  commentTree = getCommentsPlaceholder({
@@ -254,11 +258,12 @@ export default function CommentTemplateEdit({
254
258
  });
255
259
  }
256
260
  if (!commentTree.length) {
257
- return createElement("p", {
258
- ...blockProps
259
- }, __('No results found.'));
261
+ return /*#__PURE__*/_jsx("p", {
262
+ ...blockProps,
263
+ children: __('No results found.')
264
+ });
260
265
  }
261
- return createElement(CommentsList, {
266
+ return /*#__PURE__*/_jsx(CommentsList, {
262
267
  comments: commentTree,
263
268
  blockProps: blockProps,
264
269
  blocks: blocks,
@@ -1 +1 @@
1
- {"version":3,"names":["useState","memo","useSelect","__","BlockContextProvider","useBlockProps","useInnerBlocksProps","store","blockEditorStore","__experimentalUseBlockPreview","useBlockPreview","Spinner","coreStore","useCommentQueryArgs","useCommentTree","TEMPLATE","getCommentsPlaceholder","perPage","pageComments","threadComments","threadCommentsDepth","commentsDepth","Math","min","buildChildrenComment","commentsLevel","nextLevel","commentId","children","placeholderComments","push","CommentTemplateInnerBlocks","comment","activeCommentId","setActiveCommentId","firstCommentId","blocks","innerBlocksProps","template","createElement","MemoizedCommentTemplatePreview","isHidden","length","CommentsList","comments","CommentTemplatePreview","blockPreviewProps","handleOnClick","style","display","undefined","tabIndex","role","onClick","onKeyPress","blockProps","map","index","key","value","CommentTemplateEdit","clientId","context","postId","commentOrder","commentsPerPage","select","getSettings","__experimentalDiscussionSettings","commentQuery","topLevelComments","getEntityRecords","getBlocks","commentTree","reverse"],"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":"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","ignoreList":[]}
1
+ {"version":3,"names":["useState","memo","useSelect","__","BlockContextProvider","useBlockProps","useInnerBlocksProps","store","blockEditorStore","__experimentalUseBlockPreview","useBlockPreview","Spinner","coreStore","useCommentQueryArgs","useCommentTree","jsx","_jsx","jsxs","_jsxs","TEMPLATE","getCommentsPlaceholder","perPage","pageComments","threadComments","threadCommentsDepth","commentsDepth","Math","min","buildChildrenComment","commentsLevel","nextLevel","commentId","children","placeholderComments","push","CommentTemplateInnerBlocks","comment","activeCommentId","setActiveCommentId","firstCommentId","blocks","innerBlocksProps","template","MemoizedCommentTemplatePreview","isHidden","length","CommentsList","comments","CommentTemplatePreview","blockPreviewProps","handleOnClick","style","display","undefined","tabIndex","role","onClick","onKeyPress","blockProps","map","index","value","CommentTemplateEdit","clientId","context","postId","commentOrder","commentsPerPage","select","getSettings","__experimentalDiscussionSettings","commentQuery","topLevelComments","getEntityRecords","getBlocks","commentTree","reverse"],"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":"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","ignoreList":[]}
@@ -1,9 +1,9 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
5
4
  import { InnerBlocks } from '@wordpress/block-editor';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  export default function CommentTemplateSave() {
7
- return createElement(InnerBlocks.Content, null);
7
+ return /*#__PURE__*/_jsx(InnerBlocks.Content, {});
8
8
  }
9
9
  //# sourceMappingURL=save.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["InnerBlocks","CommentTemplateSave","createElement","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":";AAAA;AACA;AACA;AACA,SAASA,WAAW,QAAQ,yBAAyB;AAErD,eAAe,SAASC,mBAAmBA,CAAA,EAAG;EAC7C,OAAOC,aAAA,CAACF,WAAW,CAACG,OAAO,MAAE,CAAC;AAC/B","ignoreList":[]}
1
+ {"version":3,"names":["InnerBlocks","jsx","_jsx","CommentTemplateSave","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":"AAAA;AACA;AACA;AACA,SAASA,WAAW,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtD,eAAe,SAASC,mBAAmBA,CAAA,EAAG;EAC7C,oBAAOD,IAAA,CAACF,WAAW,CAACI,OAAO,IAAE,CAAC;AAC/B","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
@@ -6,6 +5,7 @@ import { InnerBlocks, useBlockProps } from '@wordpress/block-editor';
6
5
 
7
6
  // v1: Deprecate the initial version of the block which was called "Comments
8
7
  // Query Loop" instead of "Comments".
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
9
  const v1 = {
10
10
  attributes: {
11
11
  tagName: {
@@ -46,9 +46,10 @@ const v1 = {
46
46
  ...blockProps,
47
47
  className: newClasses.join(' ')
48
48
  };
49
- return createElement(Tag, {
50
- ...newBlockProps
51
- }, createElement(InnerBlocks.Content, null));
49
+ return /*#__PURE__*/_jsx(Tag, {
50
+ ...newBlockProps,
51
+ children: /*#__PURE__*/_jsx(InnerBlocks.Content, {})
52
+ });
52
53
  }
53
54
  };
54
55
  export default [v1];
@@ -1 +1 @@
1
- {"version":3,"names":["InnerBlocks","useBlockProps","v1","attributes","tagName","type","default","apiVersion","supports","align","html","color","gradients","link","__experimentalDefaultControls","background","text","save","Tag","blockProps","className","classes","split","newClasses","filter","cls","newBlockProps","join","createElement","Content"],"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":";AAAA;AACA;AACA;AACA,SAASA,WAAW,EAAEC,aAAa,QAAQ,yBAAyB;;AAEpE;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,GAAGlB,aAAa,CAACgB,IAAI,CAAC,CAAC;IACvC,MAAM;MAAEG;IAAU,CAAC,GAAGD,UAAU;IAChC,MAAME,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,GAAGP,UAAU;MACbC,SAAS,EAAEG,UAAU,CAACI,IAAI,CAAE,GAAI;IACjC,CAAC;IAED,OACCC,aAAA,CAACV,GAAG;MAAA,GAAMQ;IAAa,GACtBE,aAAA,CAAC5B,WAAW,CAAC6B,OAAO,MAAE,CAClB,CAAC;EAER;AACD,CAAC;AAED,eAAe,CAAE3B,EAAE,CAAE","ignoreList":[]}
1
+ {"version":3,"names":["InnerBlocks","useBlockProps","jsx","_jsx","v1","attributes","tagName","type","default","apiVersion","supports","align","html","color","gradients","link","__experimentalDefaultControls","background","text","save","Tag","blockProps","className","classes","split","newClasses","filter","cls","newBlockProps","join","children","Content"],"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":"AAAA;AACA;AACA;AACA,SAASA,WAAW,EAAEC,aAAa,QAAQ,yBAAyB;;AAEpE;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;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,GAAGpB,aAAa,CAACkB,IAAI,CAAC,CAAC;IACvC,MAAM;MAAEG;IAAU,CAAC,GAAGD,UAAU;IAChC,MAAME,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,GAAGP,UAAU;MACbC,SAAS,EAAEG,UAAU,CAACI,IAAI,CAAE,GAAI;IACjC,CAAC;IAED,oBACC1B,IAAA,CAACiB,GAAG;MAAA,GAAMQ,aAAa;MAAAE,QAAA,eACtB3B,IAAA,CAACH,WAAW,CAAC+B,OAAO,IAAE;IAAC,CACnB,CAAC;EAER;AACD,CAAC;AAED,eAAe,CAAE3B,EAAE,CAAE","ignoreList":[]}
@@ -1,10 +1,10 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
5
4
  import { SelectControl } from '@wordpress/components';
6
5
  import { __ } from '@wordpress/i18n';
7
6
  import { InspectorControls } from '@wordpress/block-editor';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
8
  export default function CommentsInspectorControls({
9
9
  attributes: {
10
10
  tagName
@@ -15,27 +15,30 @@ export default function CommentsInspectorControls({
15
15
  section: __("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),
16
16
  aside: __("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")
17
17
  };
18
- return createElement(InspectorControls, null, createElement(InspectorControls, {
19
- group: "advanced"
20
- }, createElement(SelectControl, {
21
- __nextHasNoMarginBottom: true,
22
- __next40pxDefaultSize: true,
23
- label: __('HTML element'),
24
- options: [{
25
- label: __('Default (<div>)'),
26
- value: 'div'
27
- }, {
28
- label: '<section>',
29
- value: 'section'
30
- }, {
31
- label: '<aside>',
32
- value: 'aside'
33
- }],
34
- value: tagName,
35
- onChange: value => setAttributes({
36
- tagName: value
37
- }),
38
- help: htmlElementMessages[tagName]
39
- })));
18
+ return /*#__PURE__*/_jsx(InspectorControls, {
19
+ children: /*#__PURE__*/_jsx(InspectorControls, {
20
+ group: "advanced",
21
+ children: /*#__PURE__*/_jsx(SelectControl, {
22
+ __nextHasNoMarginBottom: true,
23
+ __next40pxDefaultSize: true,
24
+ label: __('HTML element'),
25
+ options: [{
26
+ label: __('Default (<div>)'),
27
+ value: 'div'
28
+ }, {
29
+ label: '<section>',
30
+ value: 'section'
31
+ }, {
32
+ label: '<aside>',
33
+ value: 'aside'
34
+ }],
35
+ value: tagName,
36
+ onChange: value => setAttributes({
37
+ tagName: value
38
+ }),
39
+ help: htmlElementMessages[tagName]
40
+ })
41
+ })
42
+ });
40
43
  }
41
44
  //# sourceMappingURL=comments-inspector-controls.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SelectControl","__","InspectorControls","CommentsInspectorControls","attributes","tagName","setAttributes","htmlElementMessages","section","aside","createElement","group","__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":";AAAA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,uBAAuB;AACrD,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,iBAAiB,QAAQ,yBAAyB;AAE3D,eAAe,SAASC,yBAAyBA,CAAE;EAClDC,UAAU,EAAE;IAAEC;EAAQ,CAAC;EACvBC;AACD,CAAC,EAAG;EACH,MAAMC,mBAAmB,GAAG;IAC3BC,OAAO,EAAEP,EAAE,CACV,kIACD,CAAC;IACDQ,KAAK,EAAER,EAAE,CACR,uIACD;EACD,CAAC;EACD,OACCS,aAAA,CAACR,iBAAiB,QACjBQ,aAAA,CAACR,iBAAiB;IAACS,KAAK,EAAC;EAAU,GAClCD,aAAA,CAACV,aAAa;IACbY,uBAAuB;IACvBC,qBAAqB;IACrBC,KAAK,EAAGb,EAAE,CAAE,cAAe,CAAG;IAC9Bc,OAAO,EAAG,CACT;MAAED,KAAK,EAAEb,EAAE,CAAE,iBAAkB,CAAC;MAAEe,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,EAAGX,OAAS;IACjBY,QAAQ,EAAKD,KAAK,IACjBV,aAAa,CAAE;MAAED,OAAO,EAAEW;IAAM,CAAE,CAClC;IACDE,IAAI,EAAGX,mBAAmB,CAAEF,OAAO;EAAI,CACvC,CACiB,CACD,CAAC;AAEtB","ignoreList":[]}
1
+ {"version":3,"names":["SelectControl","__","InspectorControls","jsx","_jsx","CommentsInspectorControls","attributes","tagName","setAttributes","htmlElementMessages","section","aside","children","group","__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":"AAAA;AACA;AACA;AACA,SAASA,aAAa,QAAQ,uBAAuB;AACrD,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,iBAAiB,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5D,eAAe,SAASC,yBAAyBA,CAAE;EAClDC,UAAU,EAAE;IAAEC;EAAQ,CAAC;EACvBC;AACD,CAAC,EAAG;EACH,MAAMC,mBAAmB,GAAG;IAC3BC,OAAO,EAAET,EAAE,CACV,kIACD,CAAC;IACDU,KAAK,EAAEV,EAAE,CACR,uIACD;EACD,CAAC;EACD,oBACCG,IAAA,CAACF,iBAAiB;IAAAU,QAAA,eACjBR,IAAA,CAACF,iBAAiB;MAACW,KAAK,EAAC,UAAU;MAAAD,QAAA,eAClCR,IAAA,CAACJ,aAAa;QACbc,uBAAuB;QACvBC,qBAAqB;QACrBC,KAAK,EAAGf,EAAE,CAAE,cAAe,CAAG;QAC9BgB,OAAO,EAAG,CACT;UAAED,KAAK,EAAEf,EAAE,CAAE,iBAAkB,CAAC;UAAEiB,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,EAAGX,OAAS;QACjBY,QAAQ,EAAKD,KAAK,IACjBV,aAAa,CAAE;UAAED,OAAO,EAAEW;QAAM,CAAE,CAClC;QACDE,IAAI,EAAGX,mBAAmB,CAAEF,OAAO;MAAI,CACvC;IAAC,CACgB;EAAC,CACF,CAAC;AAEtB","ignoreList":[]}