@wordpress/block-editor 12.25.0 → 13.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 (1876) hide show
  1. package/CHANGELOG.md +15 -3
  2. package/README.md +7 -1
  3. package/build/autocompleters/block.js +7 -6
  4. package/build/autocompleters/block.js.map +1 -1
  5. package/build/autocompleters/link.js +10 -8
  6. package/build/autocompleters/link.js.map +1 -1
  7. package/build/components/alignment-control/index.js +3 -3
  8. package/build/components/alignment-control/index.js.map +1 -1
  9. package/build/components/alignment-control/ui.js +2 -2
  10. package/build/components/alignment-control/ui.js.map +1 -1
  11. package/build/components/audio-player/audio-url-parser.native.js +24 -0
  12. package/build/components/audio-player/audio-url-parser.native.js.map +1 -0
  13. package/build/components/audio-player/index.native.js +174 -0
  14. package/build/components/audio-player/index.native.js.map +1 -0
  15. package/build/components/autocomplete/index.js +3 -4
  16. package/build/components/autocomplete/index.js.map +1 -1
  17. package/build/components/block-actions/index.js +4 -2
  18. package/build/components/block-actions/index.js.map +1 -1
  19. package/build/components/block-alignment-control/index.js +3 -3
  20. package/build/components/block-alignment-control/index.js.map +1 -1
  21. package/build/components/block-alignment-control/ui.js +34 -31
  22. package/build/components/block-alignment-control/ui.js.map +1 -1
  23. package/build/components/block-alignment-control/ui.native.js +2 -2
  24. package/build/components/block-alignment-control/ui.native.js.map +1 -1
  25. package/build/components/block-alignment-matrix-control/index.js +5 -5
  26. package/build/components/block-alignment-matrix-control/index.js.map +1 -1
  27. package/build/components/block-bindings-toolbar-indicator/index.js +92 -11
  28. package/build/components/block-bindings-toolbar-indicator/index.js.map +1 -1
  29. package/build/components/block-breadcrumb/index.js +38 -34
  30. package/build/components/block-breadcrumb/index.js.map +1 -1
  31. package/build/components/block-canvas/index.js +36 -31
  32. package/build/components/block-canvas/index.js.map +1 -1
  33. package/build/components/block-caption/index.native.js +15 -14
  34. package/build/components/block-caption/index.native.js.map +1 -1
  35. package/build/components/block-card/index.js +33 -28
  36. package/build/components/block-card/index.js.map +1 -1
  37. package/build/components/block-compare/block-view.js +27 -18
  38. package/build/components/block-compare/block-view.js.map +1 -1
  39. package/build/components/block-compare/index.js +25 -24
  40. package/build/components/block-compare/index.js.map +1 -1
  41. package/build/components/block-context/index.js +3 -4
  42. package/build/components/block-context/index.js.map +1 -1
  43. package/build/components/block-controls/fill.js +22 -16
  44. package/build/components/block-controls/fill.js.map +1 -1
  45. package/build/components/block-controls/index.js +3 -3
  46. package/build/components/block-controls/index.js.map +1 -1
  47. package/build/components/block-controls/slot.js +6 -4
  48. package/build/components/block-controls/slot.js.map +1 -1
  49. package/build/components/block-controls/slot.native.js +12 -9
  50. package/build/components/block-controls/slot.native.js.map +1 -1
  51. package/build/components/block-controls/use-has-block-controls.js +1 -1
  52. package/build/components/block-controls/use-has-block-controls.js.map +1 -1
  53. package/build/components/block-draggable/draggable-chip.js +27 -19
  54. package/build/components/block-draggable/draggable-chip.js.map +1 -1
  55. package/build/components/block-draggable/draggable-chip.native.js +9 -8
  56. package/build/components/block-draggable/draggable-chip.native.js.map +1 -1
  57. package/build/components/block-draggable/dropping-insertion-point.native.js +3 -4
  58. package/build/components/block-draggable/dropping-insertion-point.native.js.map +1 -1
  59. package/build/components/block-draggable/index.js +14 -13
  60. package/build/components/block-draggable/index.js.map +1 -1
  61. package/build/components/block-draggable/index.native.js +37 -30
  62. package/build/components/block-draggable/index.native.js.map +1 -1
  63. package/build/components/block-edit/edit.js +7 -8
  64. package/build/components/block-edit/edit.js.map +1 -1
  65. package/build/components/block-edit/edit.native.js +3 -4
  66. package/build/components/block-edit/edit.native.js.map +1 -1
  67. package/build/components/block-edit/index.js +17 -9
  68. package/build/components/block-edit/index.js.map +1 -1
  69. package/build/components/block-edit/multiple-usage-warning.js +47 -0
  70. package/build/components/block-edit/multiple-usage-warning.js.map +1 -0
  71. package/build/components/block-edit-visually-button/index.js +9 -6
  72. package/build/components/block-edit-visually-button/index.js.map +1 -1
  73. package/build/components/block-full-height-alignment-control/index.js +2 -2
  74. package/build/components/block-full-height-alignment-control/index.js.map +1 -1
  75. package/build/components/block-heading-level-dropdown/heading-level-icon.js +3 -5
  76. package/build/components/block-heading-level-dropdown/heading-level-icon.js.map +1 -1
  77. package/build/components/block-heading-level-dropdown/index.js +4 -4
  78. package/build/components/block-heading-level-dropdown/index.js.map +1 -1
  79. package/build/components/block-heading-level-dropdown/index.native.js +4 -4
  80. package/build/components/block-heading-level-dropdown/index.native.js.map +1 -1
  81. package/build/components/block-icon/index.js +8 -7
  82. package/build/components/block-icon/index.js.map +1 -1
  83. package/build/components/block-icon/index.native.js +6 -5
  84. package/build/components/block-icon/index.native.js.map +1 -1
  85. package/build/components/block-info-slot-fill/index.js +3 -3
  86. package/build/components/block-info-slot-fill/index.js.map +1 -1
  87. package/build/components/block-inspector/index.js +103 -89
  88. package/build/components/block-inspector/index.js.map +1 -1
  89. package/build/components/block-inspector/useBlockInspectorAnimationSettings.js +2 -2
  90. package/build/components/block-inspector/useBlockInspectorAnimationSettings.js.map +1 -1
  91. package/build/components/block-list/block-crash-warning.js +5 -4
  92. package/build/components/block-list/block-crash-warning.js.map +1 -1
  93. package/build/components/block-list/block-crash-warning.native.js +2 -2
  94. package/build/components/block-list/block-crash-warning.native.js.map +1 -1
  95. package/build/components/block-list/block-html.js +2 -2
  96. package/build/components/block-list/block-html.js.map +1 -1
  97. package/build/components/block-list/block-invalid-warning.js +25 -21
  98. package/build/components/block-list/block-invalid-warning.js.map +1 -1
  99. package/build/components/block-list/block-invalid-warning.native.js +12 -11
  100. package/build/components/block-list/block-invalid-warning.native.js.map +1 -1
  101. package/build/components/block-list/block-list-item-cell.native.js +5 -4
  102. package/build/components/block-list/block-list-item-cell.native.js.map +1 -1
  103. package/build/components/block-list/block-list-item.native.js +29 -28
  104. package/build/components/block-list/block-list-item.native.js.map +1 -1
  105. package/build/components/block-list/block-outline.native.js +2 -2
  106. package/build/components/block-list/block-outline.native.js.map +1 -1
  107. package/build/components/block-list/block-selection-button.native.js +35 -33
  108. package/build/components/block-list/block-selection-button.native.js.map +1 -1
  109. package/build/components/block-list/block.js +110 -65
  110. package/build/components/block-list/block.js.map +1 -1
  111. package/build/components/block-list/block.native.js +65 -56
  112. package/build/components/block-list/block.native.js.map +1 -1
  113. package/build/components/block-list/grid-item.native.js +5 -4
  114. package/build/components/block-list/grid-item.native.js.map +1 -1
  115. package/build/components/block-list/index.js +40 -36
  116. package/build/components/block-list/index.js.map +1 -1
  117. package/build/components/block-list/index.native.js +97 -85
  118. package/build/components/block-list/index.native.js.map +1 -1
  119. package/build/components/block-list/insertion-point.native.js +12 -10
  120. package/build/components/block-list/insertion-point.native.js.map +1 -1
  121. package/build/components/block-list/layout.js +7 -3
  122. package/build/components/block-list/layout.js.map +1 -1
  123. package/build/components/block-list/subdirectory-icon.js +8 -7
  124. package/build/components/block-list/subdirectory-icon.js.map +1 -1
  125. package/build/components/block-list/use-block-props/index.js +6 -3
  126. package/build/components/block-list/use-block-props/index.js.map +1 -1
  127. package/build/components/block-list/use-block-props/use-scroll-into-view.js +44 -0
  128. package/build/components/block-list/use-block-props/use-scroll-into-view.js.map +1 -0
  129. package/build/components/block-list-appender/index.js +11 -10
  130. package/build/components/block-list-appender/index.js.map +1 -1
  131. package/build/components/block-list-appender/index.native.js +4 -4
  132. package/build/components/block-list-appender/index.native.js.map +1 -1
  133. package/build/components/block-lock/menu-item.js +13 -10
  134. package/build/components/block-lock/menu-item.js.map +1 -1
  135. package/build/components/block-lock/modal.js +107 -90
  136. package/build/components/block-lock/modal.js.map +1 -1
  137. package/build/components/block-lock/toolbar.js +18 -15
  138. package/build/components/block-lock/toolbar.js.map +1 -1
  139. package/build/components/block-media-update-progress/index.native.js +17 -15
  140. package/build/components/block-media-update-progress/index.native.js.map +1 -1
  141. package/build/components/block-mover/button.js +20 -17
  142. package/build/components/block-mover/button.js.map +1 -1
  143. package/build/components/block-mover/index.js +36 -29
  144. package/build/components/block-mover/index.js.map +1 -1
  145. package/build/components/block-mover/index.native.js +29 -27
  146. package/build/components/block-mover/index.native.js.map +1 -1
  147. package/build/components/block-navigation/dropdown.js +11 -9
  148. package/build/components/block-navigation/dropdown.js.map +1 -1
  149. package/build/components/block-parent-selector/index.js +14 -15
  150. package/build/components/block-parent-selector/index.js.map +1 -1
  151. package/build/components/block-pattern-setup/index.js +88 -76
  152. package/build/components/block-pattern-setup/index.js.map +1 -1
  153. package/build/components/block-pattern-setup/setup-toolbar.js +50 -45
  154. package/build/components/block-pattern-setup/setup-toolbar.js.map +1 -1
  155. package/build/components/block-patterns-list/index.js +119 -88
  156. package/build/components/block-patterns-list/index.js.map +1 -1
  157. package/build/components/block-patterns-paging/index.js +70 -52
  158. package/build/components/block-patterns-paging/index.js.map +1 -1
  159. package/build/components/block-popover/cover.js +19 -13
  160. package/build/components/block-popover/cover.js.map +1 -1
  161. package/build/components/block-popover/drop-zone.js +11 -10
  162. package/build/components/block-popover/drop-zone.js.map +1 -1
  163. package/build/components/block-popover/inbetween.js +10 -9
  164. package/build/components/block-popover/inbetween.js.map +1 -1
  165. package/build/components/block-popover/index.js +28 -8
  166. package/build/components/block-popover/index.js.map +1 -1
  167. package/build/components/block-preview/auto.js +53 -47
  168. package/build/components/block-preview/auto.js.map +1 -1
  169. package/build/components/block-preview/index.js +18 -16
  170. package/build/components/block-preview/index.js.map +1 -1
  171. package/build/components/block-quick-navigation/index.js +24 -16
  172. package/build/components/block-quick-navigation/index.js.map +1 -1
  173. package/build/components/block-removal-warning-modal/index.js +18 -12
  174. package/build/components/block-removal-warning-modal/index.js.map +1 -1
  175. package/build/components/block-rename/modal.js +44 -37
  176. package/build/components/block-rename/modal.js.map +1 -1
  177. package/build/components/block-rename/rename-control.js +24 -21
  178. package/build/components/block-rename/rename-control.js.map +1 -1
  179. package/build/components/block-selection-clearer/index.js +2 -2
  180. package/build/components/block-selection-clearer/index.js.map +1 -1
  181. package/build/components/block-settings/button.native.js +13 -9
  182. package/build/components/block-settings/button.native.js.map +1 -1
  183. package/build/components/block-settings/container.native.js +40 -28
  184. package/build/components/block-settings/container.native.js.map +1 -1
  185. package/build/components/block-settings-menu/block-html-convert-button.js +5 -4
  186. package/build/components/block-settings-menu/block-html-convert-button.js.map +1 -1
  187. package/build/components/block-settings-menu/block-mode-toggle.js +5 -4
  188. package/build/components/block-settings-menu/block-mode-toggle.js.map +1 -1
  189. package/build/components/block-settings-menu/block-parent-selector-menu-item.js +7 -6
  190. package/build/components/block-settings-menu/block-parent-selector-menu-item.js.map +1 -1
  191. package/build/components/block-settings-menu/block-settings-dropdown.js +99 -78
  192. package/build/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
  193. package/build/components/block-settings-menu/index.js +10 -6
  194. package/build/components/block-settings-menu/index.js.map +1 -1
  195. package/build/components/block-settings-menu-controls/index.js +37 -29
  196. package/build/components/block-settings-menu-controls/index.js.map +1 -1
  197. package/build/components/block-styles/index.js +44 -39
  198. package/build/components/block-styles/index.js.map +1 -1
  199. package/build/components/block-styles/index.native.js +7 -7
  200. package/build/components/block-styles/index.native.js.map +1 -1
  201. package/build/components/block-styles/menu-items.js +17 -14
  202. package/build/components/block-styles/menu-items.js.map +1 -1
  203. package/build/components/block-styles/preview-panel.js +2 -2
  204. package/build/components/block-styles/preview-panel.js.map +1 -1
  205. package/build/components/block-styles/preview.native.js +24 -21
  206. package/build/components/block-styles/preview.native.js.map +1 -1
  207. package/build/components/block-switcher/block-styles-menu.js +8 -7
  208. package/build/components/block-switcher/block-styles-menu.js.map +1 -1
  209. package/build/components/block-switcher/block-transformations-menu.js +32 -30
  210. package/build/components/block-switcher/block-transformations-menu.js.map +1 -1
  211. package/build/components/block-switcher/block-transformations-menu.native.js +2 -2
  212. package/build/components/block-switcher/block-transformations-menu.native.js.map +1 -1
  213. package/build/components/block-switcher/block-variation-transformations.js +19 -17
  214. package/build/components/block-switcher/block-variation-transformations.js.map +1 -1
  215. package/build/components/block-switcher/index.js +85 -70
  216. package/build/components/block-switcher/index.js.map +1 -1
  217. package/build/components/block-switcher/pattern-transformations-menu.js +61 -51
  218. package/build/components/block-switcher/pattern-transformations-menu.js.map +1 -1
  219. package/build/components/block-switcher/preview-block-popover.js +22 -17
  220. package/build/components/block-switcher/preview-block-popover.js.map +1 -1
  221. package/build/components/block-toolbar/block-toolbar-menu.native.js +38 -34
  222. package/build/components/block-toolbar/block-toolbar-menu.native.js.map +1 -1
  223. package/build/components/block-toolbar/index.js +56 -46
  224. package/build/components/block-toolbar/index.js.map +1 -1
  225. package/build/components/block-toolbar/index.native.js +27 -21
  226. package/build/components/block-toolbar/index.native.js.map +1 -1
  227. package/build/components/block-toolbar/shuffle.js +7 -5
  228. package/build/components/block-toolbar/shuffle.js.map +1 -1
  229. package/build/components/block-tools/block-selection-button.js +63 -50
  230. package/build/components/block-tools/block-selection-button.js.map +1 -1
  231. package/build/components/block-tools/block-toolbar-breadcrumb.js +11 -10
  232. package/build/components/block-tools/block-toolbar-breadcrumb.js.map +1 -1
  233. package/build/components/block-tools/block-toolbar-popover.js +17 -16
  234. package/build/components/block-tools/block-toolbar-popover.js.map +1 -1
  235. package/build/components/block-tools/empty-block-inserter.js +15 -13
  236. package/build/components/block-tools/empty-block-inserter.js.map +1 -1
  237. package/build/components/block-tools/index.js +49 -27
  238. package/build/components/block-tools/index.js.map +1 -1
  239. package/build/components/block-tools/insertion-point.js +44 -42
  240. package/build/components/block-tools/insertion-point.js.map +1 -1
  241. package/build/components/block-tools/zoom-out-mode-inserters.js +70 -25
  242. package/build/components/block-tools/zoom-out-mode-inserters.js.map +1 -1
  243. package/build/components/block-types-list/index.js +15 -15
  244. package/build/components/block-types-list/index.js.map +1 -1
  245. package/build/components/block-types-list/index.native.js +30 -26
  246. package/build/components/block-types-list/index.native.js.map +1 -1
  247. package/build/components/block-variation-picker/index.js +32 -27
  248. package/build/components/block-variation-picker/index.js.map +1 -1
  249. package/build/components/block-variation-picker/index.native.js +32 -25
  250. package/build/components/block-variation-picker/index.native.js.map +1 -1
  251. package/build/components/block-variation-transforms/index.js +53 -47
  252. package/build/components/block-variation-transforms/index.js.map +1 -1
  253. package/build/components/block-vertical-alignment-control/icons.js +31 -26
  254. package/build/components/block-vertical-alignment-control/icons.js.map +1 -1
  255. package/build/components/block-vertical-alignment-control/index.js +3 -3
  256. package/build/components/block-vertical-alignment-control/index.js.map +1 -1
  257. package/build/components/block-vertical-alignment-control/ui.js +2 -2
  258. package/build/components/block-vertical-alignment-control/ui.js.map +1 -1
  259. package/build/components/border-radius-control/all-input-control.js +3 -3
  260. package/build/components/border-radius-control/all-input-control.js.map +1 -1
  261. package/build/components/border-radius-control/index.js +43 -38
  262. package/build/components/border-radius-control/index.js.map +1 -1
  263. package/build/components/border-radius-control/input-controls.js +23 -21
  264. package/build/components/border-radius-control/input-controls.js.map +1 -1
  265. package/build/components/border-radius-control/linked-button.js +12 -11
  266. package/build/components/border-radius-control/linked-button.js.map +1 -1
  267. package/build/components/button-block-appender/index.js +17 -14
  268. package/build/components/button-block-appender/index.js.map +1 -1
  269. package/build/components/button-block-appender/index.native.js +28 -24
  270. package/build/components/button-block-appender/index.native.js.map +1 -1
  271. package/build/components/caption/index.native.js +22 -21
  272. package/build/components/caption/index.native.js.map +1 -1
  273. package/build/components/child-layout-control/index.js +137 -129
  274. package/build/components/child-layout-control/index.js.map +1 -1
  275. package/build/components/color-palette/control.js +2 -2
  276. package/build/components/color-palette/control.js.map +1 -1
  277. package/build/components/color-palette/with-color-context.js +2 -2
  278. package/build/components/color-palette/with-color-context.js.map +1 -1
  279. package/build/components/color-style-selector/index.js +29 -20
  280. package/build/components/color-style-selector/index.js.map +1 -1
  281. package/build/components/colors/utils.js +3 -3
  282. package/build/components/colors/utils.js.map +1 -1
  283. package/build/components/colors/with-colors.js +8 -7
  284. package/build/components/colors/with-colors.js.map +1 -1
  285. package/build/components/colors-gradients/control.js +54 -40
  286. package/build/components/colors-gradients/control.js.map +1 -1
  287. package/build/components/colors-gradients/dropdown.js +72 -63
  288. package/build/components/colors-gradients/dropdown.js.map +1 -1
  289. package/build/components/colors-gradients/panel-color-gradient-settings.js +23 -20
  290. package/build/components/colors-gradients/panel-color-gradient-settings.js.map +1 -1
  291. package/build/components/colors-gradients/panel-color-gradient-settings.native.js +11 -7
  292. package/build/components/colors-gradients/panel-color-gradient-settings.native.js.map +1 -1
  293. package/build/components/contrast-checker/index.js +10 -8
  294. package/build/components/contrast-checker/index.js.map +1 -1
  295. package/build/components/contrast-checker/index.native.js +12 -10
  296. package/build/components/contrast-checker/index.native.js.map +1 -1
  297. package/build/components/convert-to-group-buttons/index.js +22 -12
  298. package/build/components/convert-to-group-buttons/index.js.map +1 -1
  299. package/build/components/convert-to-group-buttons/toolbar.js +20 -18
  300. package/build/components/convert-to-group-buttons/toolbar.js.map +1 -1
  301. package/build/components/copy-handler/index.js +2 -2
  302. package/build/components/copy-handler/index.js.map +1 -1
  303. package/build/components/date-format-picker/index.js +44 -40
  304. package/build/components/date-format-picker/index.js.map +1 -1
  305. package/build/components/default-block-appender/index.js +34 -32
  306. package/build/components/default-block-appender/index.js.map +1 -1
  307. package/build/components/default-block-appender/index.native.js +14 -12
  308. package/build/components/default-block-appender/index.native.js.map +1 -1
  309. package/build/components/dimensions-tool/aspect-ratio-tool.js +42 -49
  310. package/build/components/dimensions-tool/aspect-ratio-tool.js.map +1 -1
  311. package/build/components/dimensions-tool/index.js +116 -115
  312. package/build/components/dimensions-tool/index.js.map +1 -1
  313. package/build/components/dimensions-tool/scale-tool.js +16 -16
  314. package/build/components/dimensions-tool/scale-tool.js.map +1 -1
  315. package/build/components/dimensions-tool/width-height-tool.js +37 -33
  316. package/build/components/dimensions-tool/width-height-tool.js.map +1 -1
  317. package/build/components/duotone-control/index.js +21 -18
  318. package/build/components/duotone-control/index.js.map +1 -1
  319. package/build/components/editable-text/index.js +6 -5
  320. package/build/components/editable-text/index.js.map +1 -1
  321. package/build/components/editor-styles/index.js +23 -21
  322. package/build/components/editor-styles/index.js.map +1 -1
  323. package/build/components/floating-toolbar/index.native.js +18 -16
  324. package/build/components/floating-toolbar/index.native.js.map +1 -1
  325. package/build/components/floating-toolbar/nav-up-icon.js +14 -13
  326. package/build/components/floating-toolbar/nav-up-icon.js.map +1 -1
  327. package/build/components/font-appearance-control/index.js +2 -2
  328. package/build/components/font-appearance-control/index.js.map +1 -1
  329. package/build/components/font-family/index.js +2 -2
  330. package/build/components/font-family/index.js.map +1 -1
  331. package/build/components/font-sizes/font-size-picker.js +2 -2
  332. package/build/components/font-sizes/font-size-picker.js.map +1 -1
  333. package/build/components/font-sizes/utils.js +4 -3
  334. package/build/components/font-sizes/utils.js.map +1 -1
  335. package/build/components/font-sizes/with-font-sizes.js +3 -3
  336. package/build/components/font-sizes/with-font-sizes.js.map +1 -1
  337. package/build/components/global-styles/advanced-panel.js +17 -15
  338. package/build/components/global-styles/advanced-panel.js.map +1 -1
  339. package/build/components/global-styles/background-panel.js +189 -123
  340. package/build/components/global-styles/background-panel.js.map +1 -1
  341. package/build/components/global-styles/border-panel.js +62 -56
  342. package/build/components/global-styles/border-panel.js.map +1 -1
  343. package/build/components/global-styles/color-panel.js +113 -89
  344. package/build/components/global-styles/color-panel.js.map +1 -1
  345. package/build/components/global-styles/color-panel.native.js +14 -11
  346. package/build/components/global-styles/color-panel.native.js.map +1 -1
  347. package/build/components/global-styles/dimensions-panel.js +184 -172
  348. package/build/components/global-styles/dimensions-panel.js.map +1 -1
  349. package/build/components/global-styles/filters-panel.js +79 -66
  350. package/build/components/global-styles/filters-panel.js.map +1 -1
  351. package/build/components/global-styles/hooks.js +14 -2
  352. package/build/components/global-styles/hooks.js.map +1 -1
  353. package/build/components/global-styles/image-settings-panel.js +26 -22
  354. package/build/components/global-styles/image-settings-panel.js.map +1 -1
  355. package/build/components/global-styles/index.js +18 -0
  356. package/build/components/global-styles/index.js.map +1 -1
  357. package/build/components/global-styles/shadow-panel-components.js +78 -69
  358. package/build/components/global-styles/shadow-panel-components.js.map +1 -1
  359. package/build/components/global-styles/theme-file-uri-utils.js +80 -0
  360. package/build/components/global-styles/theme-file-uri-utils.js.map +1 -0
  361. package/build/components/global-styles/typography-panel.js +175 -134
  362. package/build/components/global-styles/typography-panel.js.map +1 -1
  363. package/build/components/global-styles/use-global-styles-context.native.js +450 -0
  364. package/build/components/global-styles/use-global-styles-context.native.js.map +1 -0
  365. package/build/components/global-styles/use-global-styles-output.js +114 -79
  366. package/build/components/global-styles/use-global-styles-output.js.map +1 -1
  367. package/build/components/gradients/with-gradient.js +2 -2
  368. package/build/components/gradients/with-gradient.js.map +1 -1
  369. package/build/components/grid-visualizer/grid-item-resizer.js +161 -43
  370. package/build/components/grid-visualizer/grid-item-resizer.js.map +1 -1
  371. package/build/components/grid-visualizer/grid-visualizer.js +30 -19
  372. package/build/components/grid-visualizer/grid-visualizer.js.map +1 -1
  373. package/build/components/height-control/index.js +39 -32
  374. package/build/components/height-control/index.js.map +1 -1
  375. package/build/components/iframe/index.js +118 -71
  376. package/build/components/iframe/index.js.map +1 -1
  377. package/build/components/image-editor/aspect-ratio-dropdown.js +95 -74
  378. package/build/components/image-editor/aspect-ratio-dropdown.js.map +1 -1
  379. package/build/components/image-editor/context.js +5 -4
  380. package/build/components/image-editor/context.js.map +1 -1
  381. package/build/components/image-editor/cropper.js +26 -23
  382. package/build/components/image-editor/cropper.js.map +1 -1
  383. package/build/components/image-editor/form-controls.js +11 -7
  384. package/build/components/image-editor/form-controls.js.map +1 -1
  385. package/build/components/image-editor/index.js +23 -14
  386. package/build/components/image-editor/index.js.map +1 -1
  387. package/build/components/image-editor/rotation-button.js +2 -2
  388. package/build/components/image-editor/rotation-button.js.map +1 -1
  389. package/build/components/image-editor/zoom-dropdown.js +4 -4
  390. package/build/components/image-editor/zoom-dropdown.js.map +1 -1
  391. package/build/components/image-link-destinations/index.native.js +37 -27
  392. package/build/components/image-link-destinations/index.native.js.map +1 -1
  393. package/build/components/image-size-control/index.js +53 -45
  394. package/build/components/image-size-control/index.js.map +1 -1
  395. package/build/components/index.js +8 -0
  396. package/build/components/index.js.map +1 -1
  397. package/build/components/index.native.js +37 -0
  398. package/build/components/index.native.js.map +1 -1
  399. package/build/components/inner-blocks/button-block-appender.js +4 -4
  400. package/build/components/inner-blocks/button-block-appender.js.map +1 -1
  401. package/build/components/inner-blocks/default-block-appender.js +2 -2
  402. package/build/components/inner-blocks/default-block-appender.js.map +1 -1
  403. package/build/components/inner-blocks/index.js +41 -37
  404. package/build/components/inner-blocks/index.js.map +1 -1
  405. package/build/components/inner-blocks/index.native.js +31 -29
  406. package/build/components/inner-blocks/index.native.js.map +1 -1
  407. package/build/components/inner-blocks/use-nested-settings-update.js +10 -13
  408. package/build/components/inner-blocks/use-nested-settings-update.js.map +1 -1
  409. package/build/components/inner-blocks/warning-max-depth-exceeded.native.js +20 -17
  410. package/build/components/inner-blocks/warning-max-depth-exceeded.native.js.map +1 -1
  411. package/build/components/inner-blocks/with-client-id.js +2 -2
  412. package/build/components/inner-blocks/with-client-id.js.map +1 -1
  413. package/build/components/inserter/block-patterns-explorer/index.js +22 -20
  414. package/build/components/inserter/block-patterns-explorer/index.js.map +1 -1
  415. package/build/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js +39 -36
  416. package/build/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js.map +1 -1
  417. package/build/components/inserter/block-patterns-explorer/pattern-list.js +26 -20
  418. package/build/components/inserter/block-patterns-explorer/pattern-list.js.map +1 -1
  419. package/build/components/inserter/block-patterns-tab/index.js +44 -28
  420. package/build/components/inserter/block-patterns-tab/index.js.map +1 -1
  421. package/build/components/inserter/block-patterns-tab/pattern-category-preview-panel.js +21 -4
  422. package/build/components/inserter/block-patterns-tab/pattern-category-preview-panel.js.map +1 -1
  423. package/build/components/inserter/block-patterns-tab/pattern-category-previews.js +43 -32
  424. package/build/components/inserter/block-patterns-tab/pattern-category-previews.js.map +1 -1
  425. package/build/components/inserter/block-patterns-tab/patterns-filter.js +54 -42
  426. package/build/components/inserter/block-patterns-tab/patterns-filter.js.map +1 -1
  427. package/build/components/inserter/block-types-tab.js +108 -64
  428. package/build/components/inserter/block-types-tab.js.map +1 -1
  429. package/build/components/inserter/block-types-tab.native.js +2 -2
  430. package/build/components/inserter/block-types-tab.native.js.map +1 -1
  431. package/build/components/inserter/category-tabs/index.js +26 -20
  432. package/build/components/inserter/category-tabs/index.js.map +1 -1
  433. package/build/components/inserter/hooks/use-block-types-state.js +9 -4
  434. package/build/components/inserter/hooks/use-block-types-state.js.map +1 -1
  435. package/build/components/inserter/hooks/use-insertion-point.js +44 -7
  436. package/build/components/inserter/hooks/use-insertion-point.js.map +1 -1
  437. package/build/components/inserter/hooks/use-patterns-state.js +12 -5
  438. package/build/components/inserter/hooks/use-patterns-state.js.map +1 -1
  439. package/build/components/inserter/index.js +8 -8
  440. package/build/components/inserter/index.js.map +1 -1
  441. package/build/components/inserter/index.native.js +21 -19
  442. package/build/components/inserter/index.native.js.map +1 -1
  443. package/build/components/inserter/library.js +22 -9
  444. package/build/components/inserter/library.js.map +1 -1
  445. package/build/components/inserter/media-tab/media-list.js +9 -9
  446. package/build/components/inserter/media-tab/media-list.js.map +1 -1
  447. package/build/components/inserter/media-tab/media-panel.js +19 -17
  448. package/build/components/inserter/media-tab/media-panel.js.map +1 -1
  449. package/build/components/inserter/media-tab/media-preview.js +93 -67
  450. package/build/components/inserter/media-tab/media-preview.js.map +1 -1
  451. package/build/components/inserter/media-tab/media-tab.js +44 -36
  452. package/build/components/inserter/media-tab/media-tab.js.map +1 -1
  453. package/build/components/inserter/media-tab/utils.js +2 -2
  454. package/build/components/inserter/media-tab/utils.js.map +1 -1
  455. package/build/components/inserter/menu.js +138 -105
  456. package/build/components/inserter/menu.js.map +1 -1
  457. package/build/components/inserter/menu.native.js +34 -28
  458. package/build/components/inserter/menu.native.js.map +1 -1
  459. package/build/components/inserter/mobile-tab-navigation.js +56 -40
  460. package/build/components/inserter/mobile-tab-navigation.js.map +1 -1
  461. package/build/components/inserter/no-results.js +10 -7
  462. package/build/components/inserter/no-results.js.map +1 -1
  463. package/build/components/inserter/no-results.native.js +13 -8
  464. package/build/components/inserter/no-results.native.js.map +1 -1
  465. package/build/components/inserter/panel.js +15 -10
  466. package/build/components/inserter/panel.js.map +1 -1
  467. package/build/components/inserter/preview-panel.js +24 -20
  468. package/build/components/inserter/preview-panel.js.map +1 -1
  469. package/build/components/inserter/quick-inserter.js +37 -33
  470. package/build/components/inserter/quick-inserter.js.map +1 -1
  471. package/build/components/inserter/reusable-block-rename-hint.js +20 -18
  472. package/build/components/inserter/reusable-block-rename-hint.js.map +1 -1
  473. package/build/components/inserter/reusable-blocks-tab.native.js +2 -2
  474. package/build/components/inserter/reusable-blocks-tab.native.js.map +1 -1
  475. package/build/components/inserter/search-results.js +52 -41
  476. package/build/components/inserter/search-results.js.map +1 -1
  477. package/build/components/inserter/search-results.native.js +3 -3
  478. package/build/components/inserter/search-results.native.js.map +1 -1
  479. package/build/components/inserter/tabs.js +34 -18
  480. package/build/components/inserter/tabs.js.map +1 -1
  481. package/build/components/inserter/tabs.native.js +20 -18
  482. package/build/components/inserter/tabs.native.js.map +1 -1
  483. package/build/components/inserter/tips.js +7 -5
  484. package/build/components/inserter/tips.js.map +1 -1
  485. package/build/components/inserter-button/index.native.js +28 -23
  486. package/build/components/inserter-button/index.native.js.map +1 -1
  487. package/build/components/inserter-button/sparkles.js +8 -7
  488. package/build/components/inserter-button/sparkles.js.map +1 -1
  489. package/build/components/inserter-draggable-blocks/index.js +14 -13
  490. package/build/components/inserter-draggable-blocks/index.js.map +1 -1
  491. package/build/components/inserter-list-item/index.js +69 -63
  492. package/build/components/inserter-list-item/index.js.map +1 -1
  493. package/build/components/inserter-listbox/group.js +2 -2
  494. package/build/components/inserter-listbox/group.js.map +1 -1
  495. package/build/components/inserter-listbox/index.js +5 -4
  496. package/build/components/inserter-listbox/index.js.map +1 -1
  497. package/build/components/inserter-listbox/item.js +10 -8
  498. package/build/components/inserter-listbox/item.js.map +1 -1
  499. package/build/components/inserter-listbox/row.js +2 -2
  500. package/build/components/inserter-listbox/row.js.map +1 -1
  501. package/build/components/inspector-controls/block-support-slot-container.js +2 -2
  502. package/build/components/inspector-controls/block-support-slot-container.js.map +1 -1
  503. package/build/components/inspector-controls/block-support-tools-panel.js +5 -5
  504. package/build/components/inspector-controls/block-support-tools-panel.js.map +1 -1
  505. package/build/components/inspector-controls/fill.js +22 -17
  506. package/build/components/inspector-controls/fill.js.map +1 -1
  507. package/build/components/inspector-controls/fill.native.js +12 -5
  508. package/build/components/inspector-controls/fill.native.js.map +1 -1
  509. package/build/components/inspector-controls/index.js +3 -3
  510. package/build/components/inspector-controls/index.js.map +1 -1
  511. package/build/components/inspector-controls/slot.js +11 -10
  512. package/build/components/inspector-controls/slot.js.map +1 -1
  513. package/build/components/inspector-controls/slot.native.js +3 -3
  514. package/build/components/inspector-controls/slot.native.js.map +1 -1
  515. package/build/components/inspector-controls-tabs/advanced-controls-panel.js +7 -6
  516. package/build/components/inspector-controls-tabs/advanced-controls-panel.js.map +1 -1
  517. package/build/components/inspector-controls-tabs/advanced-controls-panel.native.js +11 -9
  518. package/build/components/inspector-controls-tabs/advanced-controls-panel.native.js.map +1 -1
  519. package/build/components/inspector-controls-tabs/index.js +44 -32
  520. package/build/components/inspector-controls-tabs/index.js.map +1 -1
  521. package/build/components/inspector-controls-tabs/position-controls-panel.js +8 -7
  522. package/build/components/inspector-controls-tabs/position-controls-panel.js.map +1 -1
  523. package/build/components/inspector-controls-tabs/settings-tab-hint.js +20 -18
  524. package/build/components/inspector-controls-tabs/settings-tab-hint.js.map +1 -1
  525. package/build/components/inspector-controls-tabs/settings-tab.js +6 -2
  526. package/build/components/inspector-controls-tabs/settings-tab.js.map +1 -1
  527. package/build/components/inspector-controls-tabs/styles-tab.js +31 -26
  528. package/build/components/inspector-controls-tabs/styles-tab.js.map +1 -1
  529. package/build/components/inspector-popover-header/index.js +31 -26
  530. package/build/components/inspector-popover-header/index.js.map +1 -1
  531. package/build/components/justify-content-control/index.js +3 -3
  532. package/build/components/justify-content-control/index.js.map +1 -1
  533. package/build/components/justify-content-control/ui.js +2 -2
  534. package/build/components/justify-content-control/ui.js.map +1 -1
  535. package/build/components/keyboard-shortcuts/index.js +9 -0
  536. package/build/components/keyboard-shortcuts/index.js.map +1 -1
  537. package/build/components/letter-spacing-control/index.js +3 -4
  538. package/build/components/letter-spacing-control/index.js.map +1 -1
  539. package/build/components/line-height-control/index.js +17 -16
  540. package/build/components/line-height-control/index.js.map +1 -1
  541. package/build/components/line-height-control/index.native.js +2 -2
  542. package/build/components/line-height-control/index.native.js.map +1 -1
  543. package/build/components/link-control/index.js +102 -85
  544. package/build/components/link-control/index.js.map +1 -1
  545. package/build/components/link-control/link-preview.js +63 -51
  546. package/build/components/link-control/link-preview.js.map +1 -1
  547. package/build/components/link-control/search-create-button.js +6 -5
  548. package/build/components/link-control/search-create-button.js.map +1 -1
  549. package/build/components/link-control/search-input.js +32 -31
  550. package/build/components/link-control/search-input.js.map +1 -1
  551. package/build/components/link-control/search-item.js +12 -11
  552. package/build/components/link-control/search-item.js.map +1 -1
  553. package/build/components/link-control/search-results.js +52 -48
  554. package/build/components/link-control/search-results.js.map +1 -1
  555. package/build/components/link-control/settings-drawer.js +37 -30
  556. package/build/components/link-control/settings-drawer.js.map +1 -1
  557. package/build/components/link-control/settings.js +10 -9
  558. package/build/components/link-control/settings.js.map +1 -1
  559. package/build/components/list-view/appender.js +24 -22
  560. package/build/components/list-view/appender.js.map +1 -1
  561. package/build/components/list-view/aria-referenced-text.js +6 -6
  562. package/build/components/list-view/aria-referenced-text.js.map +1 -1
  563. package/build/components/list-view/block-contents.js +34 -31
  564. package/build/components/list-view/block-contents.js.map +1 -1
  565. package/build/components/list-view/block-select-button.js +60 -44
  566. package/build/components/list-view/block-select-button.js.map +1 -1
  567. package/build/components/list-view/block.js +131 -96
  568. package/build/components/list-view/block.js.map +1 -1
  569. package/build/components/list-view/branch.js +101 -95
  570. package/build/components/list-view/branch.js.map +1 -1
  571. package/build/components/list-view/drop-indicator.js +39 -32
  572. package/build/components/list-view/drop-indicator.js.map +1 -1
  573. package/build/components/list-view/expander.js +8 -6
  574. package/build/components/list-view/expander.js.map +1 -1
  575. package/build/components/list-view/index.js +43 -39
  576. package/build/components/list-view/index.js.map +1 -1
  577. package/build/components/list-view/leaf.js +7 -6
  578. package/build/components/list-view/leaf.js.map +1 -1
  579. package/build/components/media-placeholder/index.js +101 -81
  580. package/build/components/media-placeholder/index.js.map +1 -1
  581. package/build/components/media-placeholder/index.native.js +63 -52
  582. package/build/components/media-placeholder/index.native.js.map +1 -1
  583. package/build/components/media-replace-flow/index.js +73 -61
  584. package/build/components/media-replace-flow/index.js.map +1 -1
  585. package/build/components/media-replace-flow/index.native.js +2 -2
  586. package/build/components/media-replace-flow/index.native.js.map +1 -1
  587. package/build/components/media-upload/index.native.js +44 -40
  588. package/build/components/media-upload/index.native.js.map +1 -1
  589. package/build/components/media-upload-progress/index.native.js +39 -15
  590. package/build/components/media-upload-progress/index.native.js.map +1 -1
  591. package/build/components/multi-selection-inspector/index.js +19 -15
  592. package/build/components/multi-selection-inspector/index.js.map +1 -1
  593. package/build/components/navigable-toolbar/index.js +9 -7
  594. package/build/components/navigable-toolbar/index.js.map +1 -1
  595. package/build/components/observe-typing/index.js +6 -6
  596. package/build/components/observe-typing/index.js.map +1 -1
  597. package/build/components/panel-color-settings/index.js +2 -2
  598. package/build/components/panel-color-settings/index.js.map +1 -1
  599. package/build/components/plain-text/index.js +6 -7
  600. package/build/components/plain-text/index.js.map +1 -1
  601. package/build/components/plain-text/index.native.js +3 -3
  602. package/build/components/plain-text/index.native.js.map +1 -1
  603. package/build/components/provider/block-refs-provider.js +5 -4
  604. package/build/components/provider/block-refs-provider.js.map +1 -1
  605. package/build/components/provider/index.js +11 -7
  606. package/build/components/provider/index.js.map +1 -1
  607. package/build/components/provider/index.native.js +5 -5
  608. package/build/components/provider/index.native.js.map +1 -1
  609. package/build/components/provider/use-block-sync.js +18 -0
  610. package/build/components/provider/use-block-sync.js.map +1 -1
  611. package/build/components/provider/with-registry-provider.js +30 -26
  612. package/build/components/provider/with-registry-provider.js.map +1 -1
  613. package/build/components/publish-date-time-picker/index.js +36 -15
  614. package/build/components/publish-date-time-picker/index.js.map +1 -1
  615. package/build/components/recursion-provider/index.js +6 -5
  616. package/build/components/recursion-provider/index.js.map +1 -1
  617. package/build/components/resizable-box-popover/index.js +7 -6
  618. package/build/components/resizable-box-popover/index.js.map +1 -1
  619. package/build/components/resolution-tool/index.js +12 -11
  620. package/build/components/resolution-tool/index.js.map +1 -1
  621. package/build/components/responsive-block-control/index.js +31 -27
  622. package/build/components/responsive-block-control/index.js.map +1 -1
  623. package/build/components/responsive-block-control/label.js +11 -7
  624. package/build/components/responsive-block-control/label.js.map +1 -1
  625. package/build/components/rich-text/content.js +8 -5
  626. package/build/components/rich-text/content.js.map +1 -1
  627. package/build/components/rich-text/embed-handler-picker.native.js +2 -2
  628. package/build/components/rich-text/embed-handler-picker.native.js.map +1 -1
  629. package/build/components/rich-text/event-listeners/enter.js +33 -42
  630. package/build/components/rich-text/event-listeners/enter.js.map +1 -1
  631. package/build/components/rich-text/event-listeners/paste-handler.js +22 -42
  632. package/build/components/rich-text/event-listeners/paste-handler.js.map +1 -1
  633. package/build/components/rich-text/format-edit.js +5 -5
  634. package/build/components/rich-text/format-edit.js.map +1 -1
  635. package/build/components/rich-text/format-toolbar/index.js +38 -34
  636. package/build/components/rich-text/format-toolbar/index.js.map +1 -1
  637. package/build/components/rich-text/format-toolbar/index.native.js +8 -7
  638. package/build/components/rich-text/format-toolbar/index.native.js.map +1 -1
  639. package/build/components/rich-text/format-toolbar-container.js +17 -12
  640. package/build/components/rich-text/format-toolbar-container.js.map +1 -1
  641. package/build/components/rich-text/format-toolbar-container.native.js +5 -4
  642. package/build/components/rich-text/format-toolbar-container.native.js.map +1 -1
  643. package/build/components/rich-text/get-rich-text-values.js +4 -4
  644. package/build/components/rich-text/get-rich-text-values.js.map +1 -1
  645. package/build/components/rich-text/index.js +95 -77
  646. package/build/components/rich-text/index.js.map +1 -1
  647. package/build/components/rich-text/index.native.js +52 -48
  648. package/build/components/rich-text/index.native.js.map +1 -1
  649. package/build/components/rich-text/multiline.js +68 -40
  650. package/build/components/rich-text/multiline.js.map +1 -1
  651. package/build/components/rich-text/native/format-edit.js +3 -4
  652. package/build/components/rich-text/native/format-edit.js.map +1 -1
  653. package/build/components/rich-text/native/index.native.js +87 -80
  654. package/build/components/rich-text/native/index.native.js.map +1 -1
  655. package/build/components/rich-text/native/toolbar-button-with-options.native.js +19 -16
  656. package/build/components/rich-text/native/toolbar-button-with-options.native.js.map +1 -1
  657. package/build/components/rich-text/toolbar-button.js +8 -7
  658. package/build/components/rich-text/toolbar-button.js.map +1 -1
  659. package/build/components/rich-text/utils.js +5 -4
  660. package/build/components/rich-text/utils.js.map +1 -1
  661. package/build/components/rich-text/with-deprecations.js +2 -2
  662. package/build/components/rich-text/with-deprecations.js.map +1 -1
  663. package/build/components/segmented-text-control/index.js +21 -20
  664. package/build/components/segmented-text-control/index.js.map +1 -1
  665. package/build/components/skip-to-selected-block/index.js +6 -6
  666. package/build/components/skip-to-selected-block/index.js.map +1 -1
  667. package/build/components/spacing-sizes-control/hooks/use-spacing-sizes.js +29 -14
  668. package/build/components/spacing-sizes-control/hooks/use-spacing-sizes.js.map +1 -1
  669. package/build/components/spacing-sizes-control/index.js +23 -19
  670. package/build/components/spacing-sizes-control/index.js.map +1 -1
  671. package/build/components/spacing-sizes-control/input-controls/axial.js +19 -18
  672. package/build/components/spacing-sizes-control/input-controls/axial.js.map +1 -1
  673. package/build/components/spacing-sizes-control/input-controls/separated.js +18 -17
  674. package/build/components/spacing-sizes-control/input-controls/separated.js.map +1 -1
  675. package/build/components/spacing-sizes-control/input-controls/single.js +2 -2
  676. package/build/components/spacing-sizes-control/input-controls/single.js.map +1 -1
  677. package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js +103 -100
  678. package/build/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
  679. package/build/components/spacing-sizes-control/sides-dropdown/index.js +42 -34
  680. package/build/components/spacing-sizes-control/sides-dropdown/index.js.map +1 -1
  681. package/build/components/spacing-sizes-control/utils.js +2 -1
  682. package/build/components/spacing-sizes-control/utils.js.map +1 -1
  683. package/build/components/text-alignment-control/index.js +4 -4
  684. package/build/components/text-alignment-control/index.js.map +1 -1
  685. package/build/components/text-decoration-control/index.js +4 -4
  686. package/build/components/text-decoration-control/index.js.map +1 -1
  687. package/build/components/text-transform-control/index.js +4 -4
  688. package/build/components/text-transform-control/index.js.map +1 -1
  689. package/build/components/tool-selector/index.js +35 -26
  690. package/build/components/tool-selector/index.js.map +1 -1
  691. package/build/components/typewriter/index.js +5 -4
  692. package/build/components/typewriter/index.js.map +1 -1
  693. package/build/components/ungroup-button/index.native.js +8 -6
  694. package/build/components/ungroup-button/index.native.js.map +1 -1
  695. package/build/components/unit-control/index.js +2 -2
  696. package/build/components/unit-control/index.js.map +1 -1
  697. package/build/components/unsupported-block-details/index.native.js +31 -28
  698. package/build/components/unsupported-block-details/index.native.js.map +1 -1
  699. package/build/components/url-input/button.js +31 -28
  700. package/build/components/url-input/button.js.map +1 -1
  701. package/build/components/url-input/index.js +29 -24
  702. package/build/components/url-input/index.js.map +1 -1
  703. package/build/components/url-input/index.native.js +2 -2
  704. package/build/components/url-input/index.native.js.map +1 -1
  705. package/build/components/url-popover/image-url-input-ui.js +104 -91
  706. package/build/components/url-popover/image-url-input-ui.js.map +1 -1
  707. package/build/components/url-popover/index.js +24 -19
  708. package/build/components/url-popover/index.js.map +1 -1
  709. package/build/components/url-popover/link-editor.js +17 -16
  710. package/build/components/url-popover/link-editor.js.map +1 -1
  711. package/build/components/url-popover/link-viewer-url.js +8 -7
  712. package/build/components/url-popover/link-viewer-url.js.map +1 -1
  713. package/build/components/url-popover/link-viewer.js +16 -15
  714. package/build/components/url-popover/link-viewer.js.map +1 -1
  715. package/build/components/use-block-commands/index.js +2 -2
  716. package/build/components/use-block-commands/index.js.map +1 -1
  717. package/build/components/video-player/gridicon-play.native.js +8 -7
  718. package/build/components/video-player/gridicon-play.native.js.map +1 -1
  719. package/build/components/video-player/index.native.js +43 -40
  720. package/build/components/video-player/index.native.js.map +1 -1
  721. package/build/components/warning/index.js +35 -27
  722. package/build/components/warning/index.js.map +1 -1
  723. package/build/components/warning/index.native.js +17 -13
  724. package/build/components/warning/index.native.js.map +1 -1
  725. package/build/components/writing-flow/index.js +10 -7
  726. package/build/components/writing-flow/index.js.map +1 -1
  727. package/build/components/writing-flow/use-clipboard-handler.js +64 -14
  728. package/build/components/writing-flow/use-clipboard-handler.js.map +1 -1
  729. package/build/components/writing-flow/use-input.js +44 -2
  730. package/build/components/writing-flow/use-input.js.map +1 -1
  731. package/build/components/writing-flow/use-tab-nav.js +9 -4
  732. package/build/components/writing-flow/use-tab-nav.js.map +1 -1
  733. package/build/components/writing-mode-control/index.js +4 -4
  734. package/build/components/writing-mode-control/index.js.map +1 -1
  735. package/build/hooks/align.js +12 -12
  736. package/build/hooks/align.js.map +1 -1
  737. package/build/hooks/anchor.js +29 -24
  738. package/build/hooks/anchor.js.map +1 -1
  739. package/build/hooks/background.js +7 -6
  740. package/build/hooks/background.js.map +1 -1
  741. package/build/hooks/block-bindings.js +89 -0
  742. package/build/hooks/block-bindings.js.map +1 -0
  743. package/build/hooks/block-hooks.js +41 -33
  744. package/build/hooks/block-hooks.js.map +1 -1
  745. package/build/hooks/block-style-variation.js +142 -0
  746. package/build/hooks/block-style-variation.js.map +1 -0
  747. package/build/hooks/border.js +9 -8
  748. package/build/hooks/border.js.map +1 -1
  749. package/build/hooks/color.js +14 -12
  750. package/build/hooks/color.js.map +1 -1
  751. package/build/hooks/content-lock-ui.js +25 -40
  752. package/build/hooks/content-lock-ui.js.map +1 -1
  753. package/build/hooks/contrast-checker.js +2 -2
  754. package/build/hooks/contrast-checker.js.map +1 -1
  755. package/build/hooks/custom-class-name.js +19 -18
  756. package/build/hooks/custom-class-name.js.map +1 -1
  757. package/build/hooks/custom-class-name.native.js +2 -2
  758. package/build/hooks/custom-class-name.native.js.map +1 -1
  759. package/build/hooks/dimensions.js +26 -23
  760. package/build/hooks/dimensions.js.map +1 -1
  761. package/build/hooks/duotone.js +49 -45
  762. package/build/hooks/duotone.js.map +1 -1
  763. package/build/hooks/font-family.js +3 -3
  764. package/build/hooks/font-family.js.map +1 -1
  765. package/build/hooks/font-size.js +2 -2
  766. package/build/hooks/font-size.js.map +1 -1
  767. package/build/hooks/index.js +4 -2
  768. package/build/hooks/index.js.map +1 -1
  769. package/build/hooks/layout-child.js +35 -25
  770. package/build/hooks/layout-child.js.map +1 -1
  771. package/build/hooks/layout.js +63 -57
  772. package/build/hooks/layout.js.map +1 -1
  773. package/build/hooks/line-height.js +2 -2
  774. package/build/hooks/line-height.js.map +1 -1
  775. package/build/hooks/position.js +30 -28
  776. package/build/hooks/position.js.map +1 -1
  777. package/build/hooks/spacing-visualizer.js +10 -9
  778. package/build/hooks/spacing-visualizer.js.map +1 -1
  779. package/build/hooks/style.js +23 -13
  780. package/build/hooks/style.js.map +1 -1
  781. package/build/hooks/text-align.js +22 -21
  782. package/build/hooks/text-align.js.map +1 -1
  783. package/build/hooks/typography.js +6 -5
  784. package/build/hooks/typography.js.map +1 -1
  785. package/build/hooks/typography.native.js +11 -8
  786. package/build/hooks/typography.native.js.map +1 -1
  787. package/build/hooks/use-bindings-attributes.js +84 -26
  788. package/build/hooks/use-bindings-attributes.js.map +1 -1
  789. package/build/hooks/use-color-props.js +2 -2
  790. package/build/hooks/use-color-props.js.map +1 -1
  791. package/build/hooks/use-typography-props.js +6 -5
  792. package/build/hooks/use-typography-props.js.map +1 -1
  793. package/build/hooks/use-zoom-out.js +2 -2
  794. package/build/hooks/use-zoom-out.js.map +1 -1
  795. package/build/hooks/utils.js +20 -19
  796. package/build/hooks/utils.js.map +1 -1
  797. package/build/layouts/constrained.js +66 -58
  798. package/build/layouts/constrained.js.map +1 -1
  799. package/build/layouts/flex.js +75 -61
  800. package/build/layouts/flex.js.map +1 -1
  801. package/build/layouts/grid.js +152 -130
  802. package/build/layouts/grid.js.map +1 -1
  803. package/build/private-apis.js +10 -1
  804. package/build/private-apis.js.map +1 -1
  805. package/build/store/actions.js +170 -44
  806. package/build/store/actions.js.map +1 -1
  807. package/build/store/get-block-settings.js +2 -49
  808. package/build/store/get-block-settings.js.map +1 -1
  809. package/build/store/private-actions.js +26 -1
  810. package/build/store/private-actions.js.map +1 -1
  811. package/build/store/private-keys.js +2 -1
  812. package/build/store/private-keys.js.map +1 -1
  813. package/build/store/private-selectors.js +6 -0
  814. package/build/store/private-selectors.js.map +1 -1
  815. package/build/store/reducer.js +21 -14
  816. package/build/store/reducer.js.map +1 -1
  817. package/build/store/selectors.js +32 -2
  818. package/build/store/selectors.js.map +1 -1
  819. package/build/store/utils.js +2 -0
  820. package/build/store/utils.js.map +1 -1
  821. package/build/utils/selection.js +8 -0
  822. package/build/utils/selection.js.map +1 -1
  823. package/build/utils/transform-styles/index.js +12 -7
  824. package/build/utils/transform-styles/index.js.map +1 -1
  825. package/build-module/autocompleters/block.js +9 -6
  826. package/build-module/autocompleters/block.js.map +1 -1
  827. package/build-module/autocompleters/link.js +12 -8
  828. package/build-module/autocompleters/link.js.map +1 -1
  829. package/build-module/components/alignment-control/index.js +3 -3
  830. package/build-module/components/alignment-control/index.js.map +1 -1
  831. package/build-module/components/alignment-control/ui.js +2 -2
  832. package/build-module/components/alignment-control/ui.js.map +1 -1
  833. package/build-module/components/audio-player/audio-url-parser.native.js +16 -0
  834. package/build-module/components/audio-player/audio-url-parser.native.js.map +1 -0
  835. package/build-module/components/audio-player/index.native.js +167 -0
  836. package/build-module/components/audio-player/index.native.js.map +1 -0
  837. package/build-module/components/autocomplete/index.js +2 -2
  838. package/build-module/components/autocomplete/index.js.map +1 -1
  839. package/build-module/components/block-actions/index.js +4 -2
  840. package/build-module/components/block-actions/index.js.map +1 -1
  841. package/build-module/components/block-alignment-control/index.js +3 -3
  842. package/build-module/components/block-alignment-control/index.js.map +1 -1
  843. package/build-module/components/block-alignment-control/ui.js +35 -31
  844. package/build-module/components/block-alignment-control/ui.js.map +1 -1
  845. package/build-module/components/block-alignment-control/ui.native.js +2 -2
  846. package/build-module/components/block-alignment-control/ui.native.js.map +1 -1
  847. package/build-module/components/block-alignment-matrix-control/index.js +5 -5
  848. package/build-module/components/block-alignment-matrix-control/index.js.map +1 -1
  849. package/build-module/components/block-bindings-toolbar-indicator/index.js +94 -13
  850. package/build-module/components/block-bindings-toolbar-indicator/index.js.map +1 -1
  851. package/build-module/components/block-breadcrumb/index.js +38 -32
  852. package/build-module/components/block-breadcrumb/index.js.map +1 -1
  853. package/build-module/components/block-canvas/index.js +37 -31
  854. package/build-module/components/block-canvas/index.js.map +1 -1
  855. package/build-module/components/block-caption/index.native.js +15 -14
  856. package/build-module/components/block-caption/index.native.js.map +1 -1
  857. package/build-module/components/block-card/index.js +35 -29
  858. package/build-module/components/block-card/index.js.map +1 -1
  859. package/build-module/components/block-compare/block-view.js +28 -18
  860. package/build-module/components/block-compare/block-view.js.map +1 -1
  861. package/build-module/components/block-compare/index.js +26 -24
  862. package/build-module/components/block-compare/index.js.map +1 -1
  863. package/build-module/components/block-context/index.js +2 -2
  864. package/build-module/components/block-context/index.js.map +1 -1
  865. package/build-module/components/block-controls/fill.js +24 -16
  866. package/build-module/components/block-controls/fill.js.map +1 -1
  867. package/build-module/components/block-controls/index.js +3 -3
  868. package/build-module/components/block-controls/index.js.map +1 -1
  869. package/build-module/components/block-controls/slot.js +6 -4
  870. package/build-module/components/block-controls/slot.js.map +1 -1
  871. package/build-module/components/block-controls/slot.native.js +12 -9
  872. package/build-module/components/block-controls/slot.native.js.map +1 -1
  873. package/build-module/components/block-controls/use-has-block-controls.js +1 -1
  874. package/build-module/components/block-controls/use-has-block-controls.js.map +1 -1
  875. package/build-module/components/block-draggable/draggable-chip.js +28 -19
  876. package/build-module/components/block-draggable/draggable-chip.js.map +1 -1
  877. package/build-module/components/block-draggable/draggable-chip.native.js +10 -8
  878. package/build-module/components/block-draggable/draggable-chip.native.js.map +1 -1
  879. package/build-module/components/block-draggable/dropping-insertion-point.native.js +2 -2
  880. package/build-module/components/block-draggable/dropping-insertion-point.native.js.map +1 -1
  881. package/build-module/components/block-draggable/index.js +14 -13
  882. package/build-module/components/block-draggable/index.js.map +1 -1
  883. package/build-module/components/block-draggable/index.native.js +39 -30
  884. package/build-module/components/block-draggable/index.native.js.map +1 -1
  885. package/build-module/components/block-edit/edit.js +6 -6
  886. package/build-module/components/block-edit/edit.js.map +1 -1
  887. package/build-module/components/block-edit/edit.native.js +2 -2
  888. package/build-module/components/block-edit/edit.native.js.map +1 -1
  889. package/build-module/components/block-edit/index.js +19 -7
  890. package/build-module/components/block-edit/index.js.map +1 -1
  891. package/build-module/components/block-edit/multiple-usage-warning.js +40 -0
  892. package/build-module/components/block-edit/multiple-usage-warning.js.map +1 -0
  893. package/build-module/components/block-edit-visually-button/index.js +9 -6
  894. package/build-module/components/block-edit-visually-button/index.js.map +1 -1
  895. package/build-module/components/block-full-height-alignment-control/index.js +2 -2
  896. package/build-module/components/block-full-height-alignment-control/index.js.map +1 -1
  897. package/build-module/components/block-heading-level-dropdown/heading-level-icon.js +2 -3
  898. package/build-module/components/block-heading-level-dropdown/heading-level-icon.js.map +1 -1
  899. package/build-module/components/block-heading-level-dropdown/index.js +4 -4
  900. package/build-module/components/block-heading-level-dropdown/index.js.map +1 -1
  901. package/build-module/components/block-heading-level-dropdown/index.native.js +4 -4
  902. package/build-module/components/block-heading-level-dropdown/index.native.js.map +1 -1
  903. package/build-module/components/block-icon/index.js +8 -7
  904. package/build-module/components/block-icon/index.js.map +1 -1
  905. package/build-module/components/block-icon/index.native.js +6 -5
  906. package/build-module/components/block-icon/index.native.js.map +1 -1
  907. package/build-module/components/block-info-slot-fill/index.js +3 -3
  908. package/build-module/components/block-info-slot-fill/index.js.map +1 -1
  909. package/build-module/components/block-inspector/index.js +105 -89
  910. package/build-module/components/block-inspector/index.js.map +1 -1
  911. package/build-module/components/block-inspector/useBlockInspectorAnimationSettings.js +2 -2
  912. package/build-module/components/block-inspector/useBlockInspectorAnimationSettings.js.map +1 -1
  913. package/build-module/components/block-list/block-crash-warning.js +5 -4
  914. package/build-module/components/block-list/block-crash-warning.js.map +1 -1
  915. package/build-module/components/block-list/block-crash-warning.native.js +2 -2
  916. package/build-module/components/block-list/block-crash-warning.native.js.map +1 -1
  917. package/build-module/components/block-list/block-html.js +2 -2
  918. package/build-module/components/block-list/block-html.js.map +1 -1
  919. package/build-module/components/block-list/block-invalid-warning.js +27 -21
  920. package/build-module/components/block-list/block-invalid-warning.js.map +1 -1
  921. package/build-module/components/block-list/block-invalid-warning.native.js +12 -11
  922. package/build-module/components/block-list/block-invalid-warning.native.js.map +1 -1
  923. package/build-module/components/block-list/block-list-item-cell.native.js +5 -4
  924. package/build-module/components/block-list/block-list-item-cell.native.js.map +1 -1
  925. package/build-module/components/block-list/block-list-item.native.js +29 -26
  926. package/build-module/components/block-list/block-list-item.native.js.map +1 -1
  927. package/build-module/components/block-list/block-outline.native.js +2 -2
  928. package/build-module/components/block-list/block-outline.native.js.map +1 -1
  929. package/build-module/components/block-list/block-selection-button.native.js +36 -33
  930. package/build-module/components/block-list/block-selection-button.native.js.map +1 -1
  931. package/build-module/components/block-list/block.js +112 -64
  932. package/build-module/components/block-list/block.js.map +1 -1
  933. package/build-module/components/block-list/block.native.js +63 -53
  934. package/build-module/components/block-list/block.native.js.map +1 -1
  935. package/build-module/components/block-list/grid-item.native.js +5 -4
  936. package/build-module/components/block-list/grid-item.native.js.map +1 -1
  937. package/build-module/components/block-list/index.js +41 -36
  938. package/build-module/components/block-list/index.js.map +1 -1
  939. package/build-module/components/block-list/index.native.js +99 -85
  940. package/build-module/components/block-list/index.native.js.map +1 -1
  941. package/build-module/components/block-list/insertion-point.native.js +13 -10
  942. package/build-module/components/block-list/insertion-point.native.js.map +1 -1
  943. package/build-module/components/block-list/layout.js +7 -3
  944. package/build-module/components/block-list/layout.js.map +1 -1
  945. package/build-module/components/block-list/subdirectory-icon.js +8 -7
  946. package/build-module/components/block-list/subdirectory-icon.js.map +1 -1
  947. package/build-module/components/block-list/use-block-props/index.js +6 -3
  948. package/build-module/components/block-list/use-block-props/index.js.map +1 -1
  949. package/build-module/components/block-list/use-block-props/use-scroll-into-view.js +37 -0
  950. package/build-module/components/block-list/use-block-props/use-scroll-into-view.js.map +1 -0
  951. package/build-module/components/block-list-appender/index.js +11 -10
  952. package/build-module/components/block-list-appender/index.js.map +1 -1
  953. package/build-module/components/block-list-appender/index.native.js +4 -4
  954. package/build-module/components/block-list-appender/index.native.js.map +1 -1
  955. package/build-module/components/block-lock/menu-item.js +15 -10
  956. package/build-module/components/block-lock/menu-item.js.map +1 -1
  957. package/build-module/components/block-lock/modal.js +108 -90
  958. package/build-module/components/block-lock/modal.js.map +1 -1
  959. package/build-module/components/block-lock/toolbar.js +20 -15
  960. package/build-module/components/block-lock/toolbar.js.map +1 -1
  961. package/build-module/components/block-media-update-progress/index.native.js +18 -15
  962. package/build-module/components/block-media-update-progress/index.native.js.map +1 -1
  963. package/build-module/components/block-mover/button.js +22 -17
  964. package/build-module/components/block-mover/button.js.map +1 -1
  965. package/build-module/components/block-mover/index.js +37 -29
  966. package/build-module/components/block-mover/index.js.map +1 -1
  967. package/build-module/components/block-mover/index.native.js +30 -27
  968. package/build-module/components/block-mover/index.native.js.map +1 -1
  969. package/build-module/components/block-navigation/dropdown.js +12 -9
  970. package/build-module/components/block-navigation/dropdown.js.map +1 -1
  971. package/build-module/components/block-parent-selector/index.js +13 -13
  972. package/build-module/components/block-parent-selector/index.js.map +1 -1
  973. package/build-module/components/block-pattern-setup/index.js +90 -76
  974. package/build-module/components/block-pattern-setup/index.js.map +1 -1
  975. package/build-module/components/block-pattern-setup/setup-toolbar.js +51 -45
  976. package/build-module/components/block-pattern-setup/setup-toolbar.js.map +1 -1
  977. package/build-module/components/block-patterns-list/index.js +122 -89
  978. package/build-module/components/block-patterns-list/index.js.map +1 -1
  979. package/build-module/components/block-patterns-paging/index.js +71 -52
  980. package/build-module/components/block-patterns-paging/index.js.map +1 -1
  981. package/build-module/components/block-popover/cover.js +19 -12
  982. package/build-module/components/block-popover/cover.js.map +1 -1
  983. package/build-module/components/block-popover/drop-zone.js +11 -10
  984. package/build-module/components/block-popover/drop-zone.js.map +1 -1
  985. package/build-module/components/block-popover/inbetween.js +10 -9
  986. package/build-module/components/block-popover/inbetween.js.map +1 -1
  987. package/build-module/components/block-popover/index.js +27 -7
  988. package/build-module/components/block-popover/index.js.map +1 -1
  989. package/build-module/components/block-preview/auto.js +55 -47
  990. package/build-module/components/block-preview/auto.js.map +1 -1
  991. package/build-module/components/block-preview/index.js +19 -16
  992. package/build-module/components/block-preview/index.js.map +1 -1
  993. package/build-module/components/block-quick-navigation/index.js +25 -16
  994. package/build-module/components/block-quick-navigation/index.js.map +1 -1
  995. package/build-module/components/block-removal-warning-modal/index.js +19 -12
  996. package/build-module/components/block-removal-warning-modal/index.js.map +1 -1
  997. package/build-module/components/block-rename/modal.js +45 -37
  998. package/build-module/components/block-rename/modal.js.map +1 -1
  999. package/build-module/components/block-rename/rename-control.js +26 -21
  1000. package/build-module/components/block-rename/rename-control.js.map +1 -1
  1001. package/build-module/components/block-selection-clearer/index.js +2 -2
  1002. package/build-module/components/block-selection-clearer/index.js.map +1 -1
  1003. package/build-module/components/block-settings/button.native.js +13 -9
  1004. package/build-module/components/block-settings/button.native.js.map +1 -1
  1005. package/build-module/components/block-settings/container.native.js +42 -28
  1006. package/build-module/components/block-settings/container.native.js.map +1 -1
  1007. package/build-module/components/block-settings-menu/block-html-convert-button.js +5 -4
  1008. package/build-module/components/block-settings-menu/block-html-convert-button.js.map +1 -1
  1009. package/build-module/components/block-settings-menu/block-mode-toggle.js +5 -4
  1010. package/build-module/components/block-settings-menu/block-mode-toggle.js.map +1 -1
  1011. package/build-module/components/block-settings-menu/block-parent-selector-menu-item.js +7 -6
  1012. package/build-module/components/block-settings-menu/block-parent-selector-menu-item.js.map +1 -1
  1013. package/build-module/components/block-settings-menu/block-settings-dropdown.js +101 -78
  1014. package/build-module/components/block-settings-menu/block-settings-dropdown.js.map +1 -1
  1015. package/build-module/components/block-settings-menu/index.js +10 -6
  1016. package/build-module/components/block-settings-menu/index.js.map +1 -1
  1017. package/build-module/components/block-settings-menu-controls/index.js +38 -29
  1018. package/build-module/components/block-settings-menu-controls/index.js.map +1 -1
  1019. package/build-module/components/block-styles/index.js +45 -39
  1020. package/build-module/components/block-styles/index.js.map +1 -1
  1021. package/build-module/components/block-styles/index.native.js +7 -7
  1022. package/build-module/components/block-styles/index.native.js.map +1 -1
  1023. package/build-module/components/block-styles/menu-items.js +18 -14
  1024. package/build-module/components/block-styles/menu-items.js.map +1 -1
  1025. package/build-module/components/block-styles/preview-panel.js +2 -2
  1026. package/build-module/components/block-styles/preview-panel.js.map +1 -1
  1027. package/build-module/components/block-styles/preview.native.js +25 -21
  1028. package/build-module/components/block-styles/preview.native.js.map +1 -1
  1029. package/build-module/components/block-switcher/block-styles-menu.js +8 -7
  1030. package/build-module/components/block-switcher/block-styles-menu.js.map +1 -1
  1031. package/build-module/components/block-switcher/block-transformations-menu.js +33 -28
  1032. package/build-module/components/block-switcher/block-transformations-menu.js.map +1 -1
  1033. package/build-module/components/block-switcher/block-transformations-menu.native.js +2 -2
  1034. package/build-module/components/block-switcher/block-transformations-menu.native.js.map +1 -1
  1035. package/build-module/components/block-switcher/block-variation-transformations.js +21 -17
  1036. package/build-module/components/block-switcher/block-variation-transformations.js.map +1 -1
  1037. package/build-module/components/block-switcher/index.js +87 -70
  1038. package/build-module/components/block-switcher/index.js.map +1 -1
  1039. package/build-module/components/block-switcher/pattern-transformations-menu.js +62 -51
  1040. package/build-module/components/block-switcher/pattern-transformations-menu.js.map +1 -1
  1041. package/build-module/components/block-switcher/preview-block-popover.js +23 -17
  1042. package/build-module/components/block-switcher/preview-block-popover.js.map +1 -1
  1043. package/build-module/components/block-toolbar/block-toolbar-menu.native.js +39 -34
  1044. package/build-module/components/block-toolbar/block-toolbar-menu.native.js.map +1 -1
  1045. package/build-module/components/block-toolbar/index.js +58 -46
  1046. package/build-module/components/block-toolbar/index.js.map +1 -1
  1047. package/build-module/components/block-toolbar/index.native.js +29 -21
  1048. package/build-module/components/block-toolbar/index.native.js.map +1 -1
  1049. package/build-module/components/block-toolbar/shuffle.js +7 -5
  1050. package/build-module/components/block-toolbar/shuffle.js.map +1 -1
  1051. package/build-module/components/block-tools/block-selection-button.js +63 -48
  1052. package/build-module/components/block-tools/block-selection-button.js.map +1 -1
  1053. package/build-module/components/block-tools/block-toolbar-breadcrumb.js +11 -10
  1054. package/build-module/components/block-tools/block-toolbar-breadcrumb.js.map +1 -1
  1055. package/build-module/components/block-tools/block-toolbar-popover.js +17 -16
  1056. package/build-module/components/block-tools/block-toolbar-popover.js.map +1 -1
  1057. package/build-module/components/block-tools/empty-block-inserter.js +15 -13
  1058. package/build-module/components/block-tools/empty-block-inserter.js.map +1 -1
  1059. package/build-module/components/block-tools/index.js +50 -27
  1060. package/build-module/components/block-tools/index.js.map +1 -1
  1061. package/build-module/components/block-tools/insertion-point.js +45 -42
  1062. package/build-module/components/block-tools/insertion-point.js.map +1 -1
  1063. package/build-module/components/block-tools/zoom-out-mode-inserters.js +72 -26
  1064. package/build-module/components/block-tools/zoom-out-mode-inserters.js.map +1 -1
  1065. package/build-module/components/block-types-list/index.js +16 -15
  1066. package/build-module/components/block-types-list/index.js.map +1 -1
  1067. package/build-module/components/block-types-list/index.native.js +31 -26
  1068. package/build-module/components/block-types-list/index.native.js.map +1 -1
  1069. package/build-module/components/block-variation-picker/index.js +33 -27
  1070. package/build-module/components/block-variation-picker/index.js.map +1 -1
  1071. package/build-module/components/block-variation-picker/index.native.js +33 -25
  1072. package/build-module/components/block-variation-picker/index.native.js.map +1 -1
  1073. package/build-module/components/block-variation-transforms/index.js +54 -47
  1074. package/build-module/components/block-variation-transforms/index.js.map +1 -1
  1075. package/build-module/components/block-vertical-alignment-control/icons.js +31 -26
  1076. package/build-module/components/block-vertical-alignment-control/icons.js.map +1 -1
  1077. package/build-module/components/block-vertical-alignment-control/index.js +3 -3
  1078. package/build-module/components/block-vertical-alignment-control/index.js.map +1 -1
  1079. package/build-module/components/block-vertical-alignment-control/ui.js +2 -2
  1080. package/build-module/components/block-vertical-alignment-control/ui.js.map +1 -1
  1081. package/build-module/components/border-radius-control/all-input-control.js +3 -3
  1082. package/build-module/components/border-radius-control/all-input-control.js.map +1 -1
  1083. package/build-module/components/border-radius-control/index.js +45 -38
  1084. package/build-module/components/border-radius-control/index.js.map +1 -1
  1085. package/build-module/components/border-radius-control/input-controls.js +23 -21
  1086. package/build-module/components/border-radius-control/input-controls.js.map +1 -1
  1087. package/build-module/components/border-radius-control/linked-button.js +12 -11
  1088. package/build-module/components/border-radius-control/linked-button.js.map +1 -1
  1089. package/build-module/components/button-block-appender/index.js +18 -14
  1090. package/build-module/components/button-block-appender/index.js.map +1 -1
  1091. package/build-module/components/button-block-appender/index.native.js +29 -24
  1092. package/build-module/components/button-block-appender/index.native.js.map +1 -1
  1093. package/build-module/components/caption/index.native.js +22 -21
  1094. package/build-module/components/caption/index.native.js.map +1 -1
  1095. package/build-module/components/child-layout-control/index.js +139 -129
  1096. package/build-module/components/child-layout-control/index.js.map +1 -1
  1097. package/build-module/components/color-palette/control.js +2 -2
  1098. package/build-module/components/color-palette/control.js.map +1 -1
  1099. package/build-module/components/color-palette/with-color-context.js +2 -2
  1100. package/build-module/components/color-palette/with-color-context.js.map +1 -1
  1101. package/build-module/components/color-style-selector/index.js +29 -20
  1102. package/build-module/components/color-style-selector/index.js.map +1 -1
  1103. package/build-module/components/colors/utils.js +3 -3
  1104. package/build-module/components/colors/utils.js.map +1 -1
  1105. package/build-module/components/colors/with-colors.js +7 -7
  1106. package/build-module/components/colors/with-colors.js.map +1 -1
  1107. package/build-module/components/colors-gradients/control.js +55 -40
  1108. package/build-module/components/colors-gradients/control.js.map +1 -1
  1109. package/build-module/components/colors-gradients/dropdown.js +74 -63
  1110. package/build-module/components/colors-gradients/dropdown.js.map +1 -1
  1111. package/build-module/components/colors-gradients/panel-color-gradient-settings.js +25 -20
  1112. package/build-module/components/colors-gradients/panel-color-gradient-settings.js.map +1 -1
  1113. package/build-module/components/colors-gradients/panel-color-gradient-settings.native.js +13 -7
  1114. package/build-module/components/colors-gradients/panel-color-gradient-settings.native.js.map +1 -1
  1115. package/build-module/components/contrast-checker/index.js +10 -8
  1116. package/build-module/components/contrast-checker/index.js.map +1 -1
  1117. package/build-module/components/contrast-checker/index.native.js +13 -10
  1118. package/build-module/components/contrast-checker/index.native.js.map +1 -1
  1119. package/build-module/components/convert-to-group-buttons/index.js +25 -13
  1120. package/build-module/components/convert-to-group-buttons/index.js.map +1 -1
  1121. package/build-module/components/convert-to-group-buttons/toolbar.js +21 -18
  1122. package/build-module/components/convert-to-group-buttons/toolbar.js.map +1 -1
  1123. package/build-module/components/copy-handler/index.js +2 -2
  1124. package/build-module/components/copy-handler/index.js.map +1 -1
  1125. package/build-module/components/date-format-picker/index.js +45 -40
  1126. package/build-module/components/date-format-picker/index.js.map +1 -1
  1127. package/build-module/components/default-block-appender/index.js +35 -32
  1128. package/build-module/components/default-block-appender/index.js.map +1 -1
  1129. package/build-module/components/default-block-appender/index.native.js +14 -12
  1130. package/build-module/components/default-block-appender/index.native.js.map +1 -1
  1131. package/build-module/components/dimensions-tool/aspect-ratio-tool.js +41 -47
  1132. package/build-module/components/dimensions-tool/aspect-ratio-tool.js.map +1 -1
  1133. package/build-module/components/dimensions-tool/index.js +117 -113
  1134. package/build-module/components/dimensions-tool/index.js.map +1 -1
  1135. package/build-module/components/dimensions-tool/scale-tool.js +15 -14
  1136. package/build-module/components/dimensions-tool/scale-tool.js.map +1 -1
  1137. package/build-module/components/dimensions-tool/width-height-tool.js +39 -33
  1138. package/build-module/components/dimensions-tool/width-height-tool.js.map +1 -1
  1139. package/build-module/components/duotone-control/index.js +22 -18
  1140. package/build-module/components/duotone-control/index.js.map +1 -1
  1141. package/build-module/components/editable-text/index.js +6 -5
  1142. package/build-module/components/editable-text/index.js.map +1 -1
  1143. package/build-module/components/editor-styles/index.js +25 -21
  1144. package/build-module/components/editor-styles/index.js.map +1 -1
  1145. package/build-module/components/floating-toolbar/index.native.js +19 -16
  1146. package/build-module/components/floating-toolbar/index.native.js.map +1 -1
  1147. package/build-module/components/floating-toolbar/nav-up-icon.js +15 -13
  1148. package/build-module/components/floating-toolbar/nav-up-icon.js.map +1 -1
  1149. package/build-module/components/font-appearance-control/index.js +2 -2
  1150. package/build-module/components/font-appearance-control/index.js.map +1 -1
  1151. package/build-module/components/font-family/index.js +2 -2
  1152. package/build-module/components/font-family/index.js.map +1 -1
  1153. package/build-module/components/font-sizes/font-size-picker.js +2 -2
  1154. package/build-module/components/font-sizes/font-size-picker.js.map +1 -1
  1155. package/build-module/components/font-sizes/utils.js +3 -3
  1156. package/build-module/components/font-sizes/utils.js.map +1 -1
  1157. package/build-module/components/font-sizes/with-font-sizes.js +3 -3
  1158. package/build-module/components/font-sizes/with-font-sizes.js.map +1 -1
  1159. package/build-module/components/global-styles/advanced-panel.js +18 -15
  1160. package/build-module/components/global-styles/advanced-panel.js.map +1 -1
  1161. package/build-module/components/global-styles/background-panel.js +190 -123
  1162. package/build-module/components/global-styles/background-panel.js.map +1 -1
  1163. package/build-module/components/global-styles/border-panel.js +63 -56
  1164. package/build-module/components/global-styles/border-panel.js.map +1 -1
  1165. package/build-module/components/global-styles/color-panel.js +114 -89
  1166. package/build-module/components/global-styles/color-panel.js.map +1 -1
  1167. package/build-module/components/global-styles/color-panel.native.js +13 -10
  1168. package/build-module/components/global-styles/color-panel.native.js.map +1 -1
  1169. package/build-module/components/global-styles/dimensions-panel.js +185 -172
  1170. package/build-module/components/global-styles/dimensions-panel.js.map +1 -1
  1171. package/build-module/components/global-styles/filters-panel.js +80 -66
  1172. package/build-module/components/global-styles/filters-panel.js.map +1 -1
  1173. package/build-module/components/global-styles/hooks.js +13 -2
  1174. package/build-module/components/global-styles/hooks.js.map +1 -1
  1175. package/build-module/components/global-styles/image-settings-panel.js +27 -22
  1176. package/build-module/components/global-styles/image-settings-panel.js.map +1 -1
  1177. package/build-module/components/global-styles/index.js +2 -2
  1178. package/build-module/components/global-styles/index.js.map +1 -1
  1179. package/build-module/components/global-styles/shadow-panel-components.js +78 -67
  1180. package/build-module/components/global-styles/shadow-panel-components.js.map +1 -1
  1181. package/build-module/components/global-styles/theme-file-uri-utils.js +73 -0
  1182. package/build-module/components/global-styles/theme-file-uri-utils.js.map +1 -0
  1183. package/build-module/components/global-styles/typography-panel.js +177 -135
  1184. package/build-module/components/global-styles/typography-panel.js.map +1 -1
  1185. package/build-module/components/global-styles/use-global-styles-context.native.js +431 -0
  1186. package/build-module/components/global-styles/use-global-styles-context.native.js.map +1 -0
  1187. package/build-module/components/global-styles/use-global-styles-output.js +115 -79
  1188. package/build-module/components/global-styles/use-global-styles-output.js.map +1 -1
  1189. package/build-module/components/gradients/with-gradient.js +2 -2
  1190. package/build-module/components/gradients/with-gradient.js.map +1 -1
  1191. package/build-module/components/grid-visualizer/grid-item-resizer.js +161 -43
  1192. package/build-module/components/grid-visualizer/grid-item-resizer.js.map +1 -1
  1193. package/build-module/components/grid-visualizer/grid-visualizer.js +31 -20
  1194. package/build-module/components/grid-visualizer/grid-visualizer.js.map +1 -1
  1195. package/build-module/components/height-control/index.js +40 -32
  1196. package/build-module/components/height-control/index.js.map +1 -1
  1197. package/build-module/components/iframe/index.js +121 -72
  1198. package/build-module/components/iframe/index.js.map +1 -1
  1199. package/build-module/components/image-editor/aspect-ratio-dropdown.js +96 -74
  1200. package/build-module/components/image-editor/aspect-ratio-dropdown.js.map +1 -1
  1201. package/build-module/components/image-editor/context.js +5 -4
  1202. package/build-module/components/image-editor/context.js.map +1 -1
  1203. package/build-module/components/image-editor/cropper.js +28 -23
  1204. package/build-module/components/image-editor/cropper.js.map +1 -1
  1205. package/build-module/components/image-editor/form-controls.js +13 -7
  1206. package/build-module/components/image-editor/form-controls.js.map +1 -1
  1207. package/build-module/components/image-editor/index.js +24 -14
  1208. package/build-module/components/image-editor/index.js.map +1 -1
  1209. package/build-module/components/image-editor/rotation-button.js +2 -2
  1210. package/build-module/components/image-editor/rotation-button.js.map +1 -1
  1211. package/build-module/components/image-editor/zoom-dropdown.js +4 -4
  1212. package/build-module/components/image-editor/zoom-dropdown.js.map +1 -1
  1213. package/build-module/components/image-link-destinations/index.native.js +39 -27
  1214. package/build-module/components/image-link-destinations/index.native.js.map +1 -1
  1215. package/build-module/components/image-size-control/index.js +55 -45
  1216. package/build-module/components/image-size-control/index.js.map +1 -1
  1217. package/build-module/components/index.js +1 -0
  1218. package/build-module/components/index.js.map +1 -1
  1219. package/build-module/components/index.native.js +2 -0
  1220. package/build-module/components/index.native.js.map +1 -1
  1221. package/build-module/components/inner-blocks/button-block-appender.js +4 -4
  1222. package/build-module/components/inner-blocks/button-block-appender.js.map +1 -1
  1223. package/build-module/components/inner-blocks/default-block-appender.js +2 -2
  1224. package/build-module/components/inner-blocks/default-block-appender.js.map +1 -1
  1225. package/build-module/components/inner-blocks/index.js +41 -37
  1226. package/build-module/components/inner-blocks/index.js.map +1 -1
  1227. package/build-module/components/inner-blocks/index.native.js +31 -29
  1228. package/build-module/components/inner-blocks/index.native.js.map +1 -1
  1229. package/build-module/components/inner-blocks/use-nested-settings-update.js +11 -14
  1230. package/build-module/components/inner-blocks/use-nested-settings-update.js.map +1 -1
  1231. package/build-module/components/inner-blocks/warning-max-depth-exceeded.native.js +21 -17
  1232. package/build-module/components/inner-blocks/warning-max-depth-exceeded.native.js.map +1 -1
  1233. package/build-module/components/inner-blocks/with-client-id.js +2 -2
  1234. package/build-module/components/inner-blocks/with-client-id.js.map +1 -1
  1235. package/build-module/components/inserter/block-patterns-explorer/index.js +23 -20
  1236. package/build-module/components/inserter/block-patterns-explorer/index.js.map +1 -1
  1237. package/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js +40 -36
  1238. package/build-module/components/inserter/block-patterns-explorer/pattern-explorer-sidebar.js.map +1 -1
  1239. package/build-module/components/inserter/block-patterns-explorer/pattern-list.js +28 -20
  1240. package/build-module/components/inserter/block-patterns-explorer/pattern-list.js.map +1 -1
  1241. package/build-module/components/inserter/block-patterns-tab/index.js +47 -29
  1242. package/build-module/components/inserter/block-patterns-tab/index.js.map +1 -1
  1243. package/build-module/components/inserter/block-patterns-tab/pattern-category-preview-panel.js +21 -5
  1244. package/build-module/components/inserter/block-patterns-tab/pattern-category-preview-panel.js.map +1 -1
  1245. package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.js +45 -32
  1246. package/build-module/components/inserter/block-patterns-tab/pattern-category-previews.js.map +1 -1
  1247. package/build-module/components/inserter/block-patterns-tab/patterns-filter.js +56 -42
  1248. package/build-module/components/inserter/block-patterns-tab/patterns-filter.js.map +1 -1
  1249. package/build-module/components/inserter/block-types-tab.js +111 -66
  1250. package/build-module/components/inserter/block-types-tab.js.map +1 -1
  1251. package/build-module/components/inserter/block-types-tab.native.js +2 -2
  1252. package/build-module/components/inserter/block-types-tab.native.js.map +1 -1
  1253. package/build-module/components/inserter/category-tabs/index.js +27 -20
  1254. package/build-module/components/inserter/category-tabs/index.js.map +1 -1
  1255. package/build-module/components/inserter/hooks/use-block-types-state.js +9 -4
  1256. package/build-module/components/inserter/hooks/use-block-types-state.js.map +1 -1
  1257. package/build-module/components/inserter/hooks/use-insertion-point.js +44 -8
  1258. package/build-module/components/inserter/hooks/use-insertion-point.js.map +1 -1
  1259. package/build-module/components/inserter/hooks/use-patterns-state.js +12 -5
  1260. package/build-module/components/inserter/hooks/use-patterns-state.js.map +1 -1
  1261. package/build-module/components/inserter/index.js +8 -8
  1262. package/build-module/components/inserter/index.js.map +1 -1
  1263. package/build-module/components/inserter/index.native.js +23 -19
  1264. package/build-module/components/inserter/index.native.js.map +1 -1
  1265. package/build-module/components/inserter/library.js +21 -7
  1266. package/build-module/components/inserter/library.js.map +1 -1
  1267. package/build-module/components/inserter/media-tab/media-list.js +9 -9
  1268. package/build-module/components/inserter/media-tab/media-list.js.map +1 -1
  1269. package/build-module/components/inserter/media-tab/media-panel.js +20 -17
  1270. package/build-module/components/inserter/media-tab/media-panel.js.map +1 -1
  1271. package/build-module/components/inserter/media-tab/media-preview.js +95 -67
  1272. package/build-module/components/inserter/media-tab/media-preview.js.map +1 -1
  1273. package/build-module/components/inserter/media-tab/media-tab.js +46 -36
  1274. package/build-module/components/inserter/media-tab/media-tab.js.map +1 -1
  1275. package/build-module/components/inserter/media-tab/utils.js +2 -2
  1276. package/build-module/components/inserter/media-tab/utils.js.map +1 -1
  1277. package/build-module/components/inserter/menu.js +139 -104
  1278. package/build-module/components/inserter/menu.js.map +1 -1
  1279. package/build-module/components/inserter/menu.native.js +36 -28
  1280. package/build-module/components/inserter/menu.native.js.map +1 -1
  1281. package/build-module/components/inserter/mobile-tab-navigation.js +57 -40
  1282. package/build-module/components/inserter/mobile-tab-navigation.js.map +1 -1
  1283. package/build-module/components/inserter/no-results.js +11 -7
  1284. package/build-module/components/inserter/no-results.js.map +1 -1
  1285. package/build-module/components/inserter/no-results.native.js +14 -8
  1286. package/build-module/components/inserter/no-results.native.js.map +1 -1
  1287. package/build-module/components/inserter/panel.js +17 -10
  1288. package/build-module/components/inserter/panel.js.map +1 -1
  1289. package/build-module/components/inserter/preview-panel.js +25 -20
  1290. package/build-module/components/inserter/preview-panel.js.map +1 -1
  1291. package/build-module/components/inserter/quick-inserter.js +38 -33
  1292. package/build-module/components/inserter/quick-inserter.js.map +1 -1
  1293. package/build-module/components/inserter/reusable-block-rename-hint.js +21 -18
  1294. package/build-module/components/inserter/reusable-block-rename-hint.js.map +1 -1
  1295. package/build-module/components/inserter/reusable-blocks-tab.native.js +2 -2
  1296. package/build-module/components/inserter/reusable-blocks-tab.native.js.map +1 -1
  1297. package/build-module/components/inserter/search-results.js +53 -41
  1298. package/build-module/components/inserter/search-results.js.map +1 -1
  1299. package/build-module/components/inserter/search-results.native.js +3 -3
  1300. package/build-module/components/inserter/search-results.native.js.map +1 -1
  1301. package/build-module/components/inserter/tabs.js +36 -19
  1302. package/build-module/components/inserter/tabs.js.map +1 -1
  1303. package/build-module/components/inserter/tabs.native.js +20 -18
  1304. package/build-module/components/inserter/tabs.native.js.map +1 -1
  1305. package/build-module/components/inserter/tips.js +7 -5
  1306. package/build-module/components/inserter/tips.js.map +1 -1
  1307. package/build-module/components/inserter-button/index.native.js +29 -23
  1308. package/build-module/components/inserter-button/index.native.js.map +1 -1
  1309. package/build-module/components/inserter-button/sparkles.js +8 -7
  1310. package/build-module/components/inserter-button/sparkles.js.map +1 -1
  1311. package/build-module/components/inserter-draggable-blocks/index.js +14 -13
  1312. package/build-module/components/inserter-draggable-blocks/index.js.map +1 -1
  1313. package/build-module/components/inserter-list-item/index.js +70 -63
  1314. package/build-module/components/inserter-list-item/index.js.map +1 -1
  1315. package/build-module/components/inserter-listbox/group.js +2 -2
  1316. package/build-module/components/inserter-listbox/group.js.map +1 -1
  1317. package/build-module/components/inserter-listbox/index.js +6 -4
  1318. package/build-module/components/inserter-listbox/index.js.map +1 -1
  1319. package/build-module/components/inserter-listbox/item.js +10 -8
  1320. package/build-module/components/inserter-listbox/item.js.map +1 -1
  1321. package/build-module/components/inserter-listbox/row.js +2 -2
  1322. package/build-module/components/inserter-listbox/row.js.map +1 -1
  1323. package/build-module/components/inspector-controls/block-support-slot-container.js +2 -2
  1324. package/build-module/components/inspector-controls/block-support-slot-container.js.map +1 -1
  1325. package/build-module/components/inspector-controls/block-support-tools-panel.js +5 -5
  1326. package/build-module/components/inspector-controls/block-support-tools-panel.js.map +1 -1
  1327. package/build-module/components/inspector-controls/fill.js +22 -17
  1328. package/build-module/components/inspector-controls/fill.js.map +1 -1
  1329. package/build-module/components/inspector-controls/fill.native.js +14 -5
  1330. package/build-module/components/inspector-controls/fill.native.js.map +1 -1
  1331. package/build-module/components/inspector-controls/index.js +3 -3
  1332. package/build-module/components/inspector-controls/index.js.map +1 -1
  1333. package/build-module/components/inspector-controls/slot.js +11 -10
  1334. package/build-module/components/inspector-controls/slot.js.map +1 -1
  1335. package/build-module/components/inspector-controls/slot.native.js +3 -3
  1336. package/build-module/components/inspector-controls/slot.native.js.map +1 -1
  1337. package/build-module/components/inspector-controls-tabs/advanced-controls-panel.js +7 -6
  1338. package/build-module/components/inspector-controls-tabs/advanced-controls-panel.js.map +1 -1
  1339. package/build-module/components/inspector-controls-tabs/advanced-controls-panel.native.js +11 -9
  1340. package/build-module/components/inspector-controls-tabs/advanced-controls-panel.native.js.map +1 -1
  1341. package/build-module/components/inspector-controls-tabs/index.js +45 -32
  1342. package/build-module/components/inspector-controls-tabs/index.js.map +1 -1
  1343. package/build-module/components/inspector-controls-tabs/position-controls-panel.js +8 -7
  1344. package/build-module/components/inspector-controls-tabs/position-controls-panel.js.map +1 -1
  1345. package/build-module/components/inspector-controls-tabs/settings-tab-hint.js +21 -18
  1346. package/build-module/components/inspector-controls-tabs/settings-tab-hint.js.map +1 -1
  1347. package/build-module/components/inspector-controls-tabs/settings-tab.js +8 -2
  1348. package/build-module/components/inspector-controls-tabs/settings-tab.js.map +1 -1
  1349. package/build-module/components/inspector-controls-tabs/styles-tab.js +33 -26
  1350. package/build-module/components/inspector-controls-tabs/styles-tab.js.map +1 -1
  1351. package/build-module/components/inspector-popover-header/index.js +32 -26
  1352. package/build-module/components/inspector-popover-header/index.js.map +1 -1
  1353. package/build-module/components/justify-content-control/index.js +3 -3
  1354. package/build-module/components/justify-content-control/index.js.map +1 -1
  1355. package/build-module/components/justify-content-control/ui.js +2 -2
  1356. package/build-module/components/justify-content-control/ui.js.map +1 -1
  1357. package/build-module/components/keyboard-shortcuts/index.js +9 -0
  1358. package/build-module/components/keyboard-shortcuts/index.js.map +1 -1
  1359. package/build-module/components/letter-spacing-control/index.js +2 -2
  1360. package/build-module/components/letter-spacing-control/index.js.map +1 -1
  1361. package/build-module/components/line-height-control/index.js +17 -16
  1362. package/build-module/components/line-height-control/index.js.map +1 -1
  1363. package/build-module/components/line-height-control/index.native.js +2 -2
  1364. package/build-module/components/line-height-control/index.native.js.map +1 -1
  1365. package/build-module/components/link-control/index.js +103 -83
  1366. package/build-module/components/link-control/index.js.map +1 -1
  1367. package/build-module/components/link-control/link-preview.js +65 -51
  1368. package/build-module/components/link-control/link-preview.js.map +1 -1
  1369. package/build-module/components/link-control/search-create-button.js +6 -5
  1370. package/build-module/components/link-control/search-create-button.js.map +1 -1
  1371. package/build-module/components/link-control/search-input.js +33 -31
  1372. package/build-module/components/link-control/search-input.js.map +1 -1
  1373. package/build-module/components/link-control/search-item.js +12 -11
  1374. package/build-module/components/link-control/search-item.js.map +1 -1
  1375. package/build-module/components/link-control/search-results.js +53 -48
  1376. package/build-module/components/link-control/search-results.js.map +1 -1
  1377. package/build-module/components/link-control/settings-drawer.js +39 -30
  1378. package/build-module/components/link-control/settings-drawer.js.map +1 -1
  1379. package/build-module/components/link-control/settings.js +11 -9
  1380. package/build-module/components/link-control/settings.js.map +1 -1
  1381. package/build-module/components/list-view/appender.js +25 -22
  1382. package/build-module/components/list-view/appender.js.map +1 -1
  1383. package/build-module/components/list-view/aria-referenced-text.js +5 -4
  1384. package/build-module/components/list-view/aria-referenced-text.js.map +1 -1
  1385. package/build-module/components/list-view/block-contents.js +36 -31
  1386. package/build-module/components/list-view/block-contents.js.map +1 -1
  1387. package/build-module/components/list-view/block-select-button.js +61 -44
  1388. package/build-module/components/list-view/block-select-button.js.map +1 -1
  1389. package/build-module/components/list-view/block.js +134 -97
  1390. package/build-module/components/list-view/block.js.map +1 -1
  1391. package/build-module/components/list-view/branch.js +102 -93
  1392. package/build-module/components/list-view/branch.js.map +1 -1
  1393. package/build-module/components/list-view/drop-indicator.js +40 -32
  1394. package/build-module/components/list-view/drop-indicator.js.map +1 -1
  1395. package/build-module/components/list-view/expander.js +8 -6
  1396. package/build-module/components/list-view/expander.js.map +1 -1
  1397. package/build-module/components/list-view/index.js +44 -39
  1398. package/build-module/components/list-view/index.js.map +1 -1
  1399. package/build-module/components/list-view/leaf.js +7 -6
  1400. package/build-module/components/list-view/leaf.js.map +1 -1
  1401. package/build-module/components/media-placeholder/index.js +103 -81
  1402. package/build-module/components/media-placeholder/index.js.map +1 -1
  1403. package/build-module/components/media-placeholder/index.native.js +65 -52
  1404. package/build-module/components/media-placeholder/index.native.js.map +1 -1
  1405. package/build-module/components/media-replace-flow/index.js +75 -61
  1406. package/build-module/components/media-replace-flow/index.js.map +1 -1
  1407. package/build-module/components/media-replace-flow/index.native.js +2 -2
  1408. package/build-module/components/media-replace-flow/index.native.js.map +1 -1
  1409. package/build-module/components/media-upload/index.native.js +46 -40
  1410. package/build-module/components/media-upload/index.native.js.map +1 -1
  1411. package/build-module/components/media-upload-progress/index.native.js +41 -16
  1412. package/build-module/components/media-upload-progress/index.native.js.map +1 -1
  1413. package/build-module/components/multi-selection-inspector/index.js +20 -15
  1414. package/build-module/components/multi-selection-inspector/index.js.map +1 -1
  1415. package/build-module/components/navigable-toolbar/index.js +9 -7
  1416. package/build-module/components/navigable-toolbar/index.js.map +1 -1
  1417. package/build-module/components/observe-typing/index.js +5 -4
  1418. package/build-module/components/observe-typing/index.js.map +1 -1
  1419. package/build-module/components/panel-color-settings/index.js +2 -2
  1420. package/build-module/components/panel-color-settings/index.js.map +1 -1
  1421. package/build-module/components/plain-text/index.js +5 -5
  1422. package/build-module/components/plain-text/index.js.map +1 -1
  1423. package/build-module/components/plain-text/index.native.js +3 -3
  1424. package/build-module/components/plain-text/index.native.js.map +1 -1
  1425. package/build-module/components/provider/block-refs-provider.js +5 -4
  1426. package/build-module/components/provider/block-refs-provider.js.map +1 -1
  1427. package/build-module/components/provider/index.js +12 -8
  1428. package/build-module/components/provider/index.js.map +1 -1
  1429. package/build-module/components/provider/index.native.js +4 -3
  1430. package/build-module/components/provider/index.native.js.map +1 -1
  1431. package/build-module/components/provider/use-block-sync.js +19 -1
  1432. package/build-module/components/provider/use-block-sync.js.map +1 -1
  1433. package/build-module/components/provider/with-registry-provider.js +32 -28
  1434. package/build-module/components/provider/with-registry-provider.js.map +1 -1
  1435. package/build-module/components/publish-date-time-picker/index.js +37 -17
  1436. package/build-module/components/publish-date-time-picker/index.js.map +1 -1
  1437. package/build-module/components/recursion-provider/index.js +6 -5
  1438. package/build-module/components/recursion-provider/index.js.map +1 -1
  1439. package/build-module/components/resizable-box-popover/index.js +7 -6
  1440. package/build-module/components/resizable-box-popover/index.js.map +1 -1
  1441. package/build-module/components/resolution-tool/index.js +12 -11
  1442. package/build-module/components/resolution-tool/index.js.map +1 -1
  1443. package/build-module/components/responsive-block-control/index.js +32 -27
  1444. package/build-module/components/responsive-block-control/index.js.map +1 -1
  1445. package/build-module/components/responsive-block-control/label.js +13 -7
  1446. package/build-module/components/responsive-block-control/label.js.map +1 -1
  1447. package/build-module/components/rich-text/content.js +8 -5
  1448. package/build-module/components/rich-text/content.js.map +1 -1
  1449. package/build-module/components/rich-text/embed-handler-picker.native.js +2 -2
  1450. package/build-module/components/rich-text/embed-handler-picker.native.js.map +1 -1
  1451. package/build-module/components/rich-text/event-listeners/enter.js +33 -43
  1452. package/build-module/components/rich-text/event-listeners/enter.js.map +1 -1
  1453. package/build-module/components/rich-text/event-listeners/paste-handler.js +23 -43
  1454. package/build-module/components/rich-text/event-listeners/paste-handler.js.map +1 -1
  1455. package/build-module/components/rich-text/format-edit.js +5 -5
  1456. package/build-module/components/rich-text/format-edit.js.map +1 -1
  1457. package/build-module/components/rich-text/format-toolbar/index.js +40 -34
  1458. package/build-module/components/rich-text/format-toolbar/index.js.map +1 -1
  1459. package/build-module/components/rich-text/format-toolbar/index.native.js +10 -7
  1460. package/build-module/components/rich-text/format-toolbar/index.native.js.map +1 -1
  1461. package/build-module/components/rich-text/format-toolbar-container.js +17 -12
  1462. package/build-module/components/rich-text/format-toolbar-container.js.map +1 -1
  1463. package/build-module/components/rich-text/format-toolbar-container.native.js +5 -4
  1464. package/build-module/components/rich-text/format-toolbar-container.native.js.map +1 -1
  1465. package/build-module/components/rich-text/get-rich-text-values.js +3 -2
  1466. package/build-module/components/rich-text/get-rich-text-values.js.map +1 -1
  1467. package/build-module/components/rich-text/index.js +98 -78
  1468. package/build-module/components/rich-text/index.js.map +1 -1
  1469. package/build-module/components/rich-text/index.native.js +54 -48
  1470. package/build-module/components/rich-text/index.native.js.map +1 -1
  1471. package/build-module/components/rich-text/multiline.js +69 -41
  1472. package/build-module/components/rich-text/multiline.js.map +1 -1
  1473. package/build-module/components/rich-text/native/format-edit.js +3 -4
  1474. package/build-module/components/rich-text/native/format-edit.js.map +1 -1
  1475. package/build-module/components/rich-text/native/index.native.js +89 -80
  1476. package/build-module/components/rich-text/native/index.native.js.map +1 -1
  1477. package/build-module/components/rich-text/native/toolbar-button-with-options.native.js +20 -14
  1478. package/build-module/components/rich-text/native/toolbar-button-with-options.native.js.map +1 -1
  1479. package/build-module/components/rich-text/toolbar-button.js +8 -7
  1480. package/build-module/components/rich-text/toolbar-button.js.map +1 -1
  1481. package/build-module/components/rich-text/utils.js +5 -4
  1482. package/build-module/components/rich-text/utils.js.map +1 -1
  1483. package/build-module/components/rich-text/with-deprecations.js +2 -2
  1484. package/build-module/components/rich-text/with-deprecations.js.map +1 -1
  1485. package/build-module/components/segmented-text-control/index.js +21 -18
  1486. package/build-module/components/segmented-text-control/index.js.map +1 -1
  1487. package/build-module/components/skip-to-selected-block/index.js +5 -4
  1488. package/build-module/components/skip-to-selected-block/index.js.map +1 -1
  1489. package/build-module/components/spacing-sizes-control/hooks/use-spacing-sizes.js +29 -14
  1490. package/build-module/components/spacing-sizes-control/hooks/use-spacing-sizes.js.map +1 -1
  1491. package/build-module/components/spacing-sizes-control/index.js +24 -19
  1492. package/build-module/components/spacing-sizes-control/index.js.map +1 -1
  1493. package/build-module/components/spacing-sizes-control/input-controls/axial.js +20 -18
  1494. package/build-module/components/spacing-sizes-control/input-controls/axial.js.map +1 -1
  1495. package/build-module/components/spacing-sizes-control/input-controls/separated.js +19 -17
  1496. package/build-module/components/spacing-sizes-control/input-controls/separated.js.map +1 -1
  1497. package/build-module/components/spacing-sizes-control/input-controls/single.js +2 -2
  1498. package/build-module/components/spacing-sizes-control/input-controls/single.js.map +1 -1
  1499. package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js +106 -101
  1500. package/build-module/components/spacing-sizes-control/input-controls/spacing-input-control.js.map +1 -1
  1501. package/build-module/components/spacing-sizes-control/sides-dropdown/index.js +44 -34
  1502. package/build-module/components/spacing-sizes-control/sides-dropdown/index.js.map +1 -1
  1503. package/build-module/components/spacing-sizes-control/utils.js +1 -0
  1504. package/build-module/components/spacing-sizes-control/utils.js.map +1 -1
  1505. package/build-module/components/text-alignment-control/index.js +4 -4
  1506. package/build-module/components/text-alignment-control/index.js.map +1 -1
  1507. package/build-module/components/text-decoration-control/index.js +4 -4
  1508. package/build-module/components/text-decoration-control/index.js.map +1 -1
  1509. package/build-module/components/text-transform-control/index.js +4 -4
  1510. package/build-module/components/text-transform-control/index.js.map +1 -1
  1511. package/build-module/components/tool-selector/index.js +37 -26
  1512. package/build-module/components/tool-selector/index.js.map +1 -1
  1513. package/build-module/components/typewriter/index.js +5 -4
  1514. package/build-module/components/typewriter/index.js.map +1 -1
  1515. package/build-module/components/ungroup-button/index.native.js +8 -6
  1516. package/build-module/components/ungroup-button/index.native.js.map +1 -1
  1517. package/build-module/components/unit-control/index.js +2 -2
  1518. package/build-module/components/unit-control/index.js.map +1 -1
  1519. package/build-module/components/unsupported-block-details/index.native.js +32 -28
  1520. package/build-module/components/unsupported-block-details/index.native.js.map +1 -1
  1521. package/build-module/components/url-input/button.js +32 -28
  1522. package/build-module/components/url-input/button.js.map +1 -1
  1523. package/build-module/components/url-input/index.js +30 -22
  1524. package/build-module/components/url-input/index.js.map +1 -1
  1525. package/build-module/components/url-input/index.native.js +2 -2
  1526. package/build-module/components/url-input/index.native.js.map +1 -1
  1527. package/build-module/components/url-popover/image-url-input-ui.js +106 -91
  1528. package/build-module/components/url-popover/image-url-input-ui.js.map +1 -1
  1529. package/build-module/components/url-popover/index.js +25 -19
  1530. package/build-module/components/url-popover/index.js.map +1 -1
  1531. package/build-module/components/url-popover/link-editor.js +18 -16
  1532. package/build-module/components/url-popover/link-editor.js.map +1 -1
  1533. package/build-module/components/url-popover/link-viewer-url.js +8 -7
  1534. package/build-module/components/url-popover/link-viewer-url.js.map +1 -1
  1535. package/build-module/components/url-popover/link-viewer.js +17 -15
  1536. package/build-module/components/url-popover/link-viewer.js.map +1 -1
  1537. package/build-module/components/use-block-commands/index.js +2 -2
  1538. package/build-module/components/use-block-commands/index.js.map +1 -1
  1539. package/build-module/components/video-player/gridicon-play.native.js +8 -7
  1540. package/build-module/components/video-player/gridicon-play.native.js.map +1 -1
  1541. package/build-module/components/video-player/index.native.js +44 -40
  1542. package/build-module/components/video-player/index.native.js.map +1 -1
  1543. package/build-module/components/warning/index.js +36 -27
  1544. package/build-module/components/warning/index.js.map +1 -1
  1545. package/build-module/components/warning/index.native.js +18 -13
  1546. package/build-module/components/warning/index.native.js.map +1 -1
  1547. package/build-module/components/writing-flow/index.js +12 -7
  1548. package/build-module/components/writing-flow/index.js.map +1 -1
  1549. package/build-module/components/writing-flow/use-clipboard-handler.js +65 -15
  1550. package/build-module/components/writing-flow/use-clipboard-handler.js.map +1 -1
  1551. package/build-module/components/writing-flow/use-input.js +45 -3
  1552. package/build-module/components/writing-flow/use-input.js.map +1 -1
  1553. package/build-module/components/writing-flow/use-tab-nav.js +9 -4
  1554. package/build-module/components/writing-flow/use-tab-nav.js.map +1 -1
  1555. package/build-module/components/writing-mode-control/index.js +4 -4
  1556. package/build-module/components/writing-mode-control/index.js.map +1 -1
  1557. package/build-module/hooks/align.js +11 -10
  1558. package/build-module/hooks/align.js.map +1 -1
  1559. package/build-module/hooks/anchor.js +30 -22
  1560. package/build-module/hooks/anchor.js.map +1 -1
  1561. package/build-module/hooks/background.js +7 -6
  1562. package/build-module/hooks/background.js.map +1 -1
  1563. package/build-module/hooks/block-bindings.js +81 -0
  1564. package/build-module/hooks/block-bindings.js.map +1 -0
  1565. package/build-module/hooks/block-hooks.js +42 -33
  1566. package/build-module/hooks/block-hooks.js.map +1 -1
  1567. package/build-module/hooks/block-style-variation.js +136 -0
  1568. package/build-module/hooks/block-style-variation.js.map +1 -0
  1569. package/build-module/hooks/border.js +9 -8
  1570. package/build-module/hooks/border.js.map +1 -1
  1571. package/build-module/hooks/color.js +14 -12
  1572. package/build-module/hooks/color.js.map +1 -1
  1573. package/build-module/hooks/content-lock-ui.js +27 -40
  1574. package/build-module/hooks/content-lock-ui.js.map +1 -1
  1575. package/build-module/hooks/contrast-checker.js +2 -2
  1576. package/build-module/hooks/contrast-checker.js.map +1 -1
  1577. package/build-module/hooks/custom-class-name.js +19 -18
  1578. package/build-module/hooks/custom-class-name.js.map +1 -1
  1579. package/build-module/hooks/custom-class-name.native.js +2 -2
  1580. package/build-module/hooks/custom-class-name.native.js.map +1 -1
  1581. package/build-module/hooks/dimensions.js +28 -23
  1582. package/build-module/hooks/dimensions.js.map +1 -1
  1583. package/build-module/hooks/duotone.js +51 -45
  1584. package/build-module/hooks/duotone.js.map +1 -1
  1585. package/build-module/hooks/font-family.js +3 -3
  1586. package/build-module/hooks/font-family.js.map +1 -1
  1587. package/build-module/hooks/font-size.js +2 -2
  1588. package/build-module/hooks/font-size.js.map +1 -1
  1589. package/build-module/hooks/index.js +4 -2
  1590. package/build-module/hooks/index.js.map +1 -1
  1591. package/build-module/hooks/layout-child.js +37 -25
  1592. package/build-module/hooks/layout-child.js.map +1 -1
  1593. package/build-module/hooks/layout.js +65 -57
  1594. package/build-module/hooks/layout.js.map +1 -1
  1595. package/build-module/hooks/line-height.js +2 -2
  1596. package/build-module/hooks/line-height.js.map +1 -1
  1597. package/build-module/hooks/position.js +30 -28
  1598. package/build-module/hooks/position.js.map +1 -1
  1599. package/build-module/hooks/spacing-visualizer.js +10 -9
  1600. package/build-module/hooks/spacing-visualizer.js.map +1 -1
  1601. package/build-module/hooks/style.js +25 -13
  1602. package/build-module/hooks/style.js.map +1 -1
  1603. package/build-module/hooks/text-align.js +23 -22
  1604. package/build-module/hooks/text-align.js.map +1 -1
  1605. package/build-module/hooks/typography.js +6 -5
  1606. package/build-module/hooks/typography.js.map +1 -1
  1607. package/build-module/hooks/typography.native.js +12 -8
  1608. package/build-module/hooks/typography.native.js.map +1 -1
  1609. package/build-module/hooks/use-bindings-attributes.js +85 -25
  1610. package/build-module/hooks/use-bindings-attributes.js.map +1 -1
  1611. package/build-module/hooks/use-color-props.js +2 -2
  1612. package/build-module/hooks/use-color-props.js.map +1 -1
  1613. package/build-module/hooks/use-typography-props.js +5 -5
  1614. package/build-module/hooks/use-typography-props.js.map +1 -1
  1615. package/build-module/hooks/use-zoom-out.js +2 -2
  1616. package/build-module/hooks/use-zoom-out.js.map +1 -1
  1617. package/build-module/hooks/utils.js +20 -19
  1618. package/build-module/hooks/utils.js.map +1 -1
  1619. package/build-module/layouts/constrained.js +68 -58
  1620. package/build-module/layouts/constrained.js.map +1 -1
  1621. package/build-module/layouts/flex.js +77 -61
  1622. package/build-module/layouts/flex.js.map +1 -1
  1623. package/build-module/layouts/grid.js +154 -130
  1624. package/build-module/layouts/grid.js.map +1 -1
  1625. package/build-module/private-apis.js +11 -2
  1626. package/build-module/private-apis.js.map +1 -1
  1627. package/build-module/store/actions.js +172 -46
  1628. package/build-module/store/actions.js.map +1 -1
  1629. package/build-module/store/get-block-settings.js +2 -46
  1630. package/build-module/store/get-block-settings.js.map +1 -1
  1631. package/build-module/store/private-actions.js +24 -0
  1632. package/build-module/store/private-actions.js.map +1 -1
  1633. package/build-module/store/private-keys.js +1 -0
  1634. package/build-module/store/private-keys.js.map +1 -1
  1635. package/build-module/store/private-selectors.js +5 -0
  1636. package/build-module/store/private-selectors.js.map +1 -1
  1637. package/build-module/store/reducer.js +21 -14
  1638. package/build-module/store/reducer.js.map +1 -1
  1639. package/build-module/store/selectors.js +33 -3
  1640. package/build-module/store/selectors.js.map +1 -1
  1641. package/build-module/store/utils.js +1 -0
  1642. package/build-module/store/utils.js.map +1 -1
  1643. package/build-module/utils/selection.js +7 -0
  1644. package/build-module/utils/selection.js.map +1 -1
  1645. package/build-module/utils/transform-styles/index.js +12 -7
  1646. package/build-module/utils/transform-styles/index.js.map +1 -1
  1647. package/build-style/content-rtl.css +93 -96
  1648. package/build-style/content.css +93 -96
  1649. package/build-style/style-rtl.css +105 -76
  1650. package/build-style/style.css +105 -76
  1651. package/build-types/components/block-context/index.d.ts +1 -1
  1652. package/build-types/components/block-context/index.d.ts.map +1 -1
  1653. package/package.json +34 -33
  1654. package/src/components/alignment-control/test/index.js +1 -1
  1655. package/src/components/audio-player/audio-url-parser.native.js +20 -0
  1656. package/src/components/audio-player/index.native.js +221 -0
  1657. package/src/components/audio-player/styles.native.scss +114 -0
  1658. package/src/components/audio-player/test/audio-url-parser.native.js +53 -0
  1659. package/src/components/block-actions/index.js +5 -1
  1660. package/src/components/block-alignment-control/ui.js +2 -2
  1661. package/src/components/block-bindings-toolbar-indicator/index.js +125 -10
  1662. package/src/components/block-bindings-toolbar-indicator/style.scss +7 -8
  1663. package/src/components/block-canvas/style.scss +1 -5
  1664. package/src/components/block-card/index.js +11 -7
  1665. package/src/components/block-card/style.scss +0 -11
  1666. package/src/components/block-compare/index.js +2 -2
  1667. package/src/components/block-content-overlay/content.scss +4 -37
  1668. package/src/components/block-draggable/test/helpers.native.js +8 -8
  1669. package/src/components/block-edit/edit.js +2 -2
  1670. package/src/components/block-edit/index.js +13 -2
  1671. package/src/components/block-edit/multiple-usage-warning.js +46 -0
  1672. package/src/components/block-icon/index.js +2 -2
  1673. package/src/components/block-inspector/index.js +4 -5
  1674. package/src/components/block-inspector/useBlockInspectorAnimationSettings.js +2 -5
  1675. package/src/components/block-list/block-invalid-warning.native.js +1 -1
  1676. package/src/components/block-list/block.js +67 -21
  1677. package/src/components/block-list/block.native.js +19 -11
  1678. package/src/components/block-list/content.scss +46 -73
  1679. package/src/components/block-list/index.js +2 -2
  1680. package/src/components/block-list/use-block-props/index.js +4 -2
  1681. package/src/components/block-list/use-block-props/use-scroll-into-view.js +38 -0
  1682. package/src/components/block-list-appender/index.js +2 -2
  1683. package/src/components/block-mover/button.js +2 -2
  1684. package/src/components/block-mover/index.js +2 -2
  1685. package/src/components/block-patterns-list/index.js +33 -5
  1686. package/src/components/block-patterns-list/style.scss +23 -20
  1687. package/src/components/block-popover/README.md +1 -1
  1688. package/src/components/block-popover/cover.js +22 -7
  1689. package/src/components/block-popover/inbetween.js +2 -2
  1690. package/src/components/block-popover/index.js +24 -6
  1691. package/src/components/block-preview/index.js +2 -2
  1692. package/src/components/block-preview/style.scss +0 -26
  1693. package/src/components/block-settings/container.native.js +2 -0
  1694. package/src/components/block-settings-menu/block-settings-dropdown.js +14 -6
  1695. package/src/components/block-settings-menu-controls/index.js +25 -16
  1696. package/src/components/block-styles/index.js +2 -2
  1697. package/src/components/block-toolbar/index.js +4 -4
  1698. package/src/components/block-tools/block-selection-button.js +2 -2
  1699. package/src/components/block-tools/block-toolbar-breadcrumb.js +5 -5
  1700. package/src/components/block-tools/block-toolbar-popover.js +4 -7
  1701. package/src/components/block-tools/empty-block-inserter.js +2 -2
  1702. package/src/components/block-tools/index.js +30 -8
  1703. package/src/components/block-tools/insertion-point.js +4 -4
  1704. package/src/components/block-tools/style.scss +10 -2
  1705. package/src/components/block-tools/zoom-out-mode-inserters.js +75 -22
  1706. package/src/components/block-variation-picker/index.js +2 -2
  1707. package/src/components/border-radius-control/all-input-control.js +1 -1
  1708. package/src/components/border-radius-control/input-controls.js +1 -1
  1709. package/src/components/button-block-appender/index.js +2 -2
  1710. package/src/components/child-layout-control/index.js +26 -14
  1711. package/src/components/colors/utils.js +2 -2
  1712. package/src/components/colors/with-colors.js +2 -1
  1713. package/src/components/colors-gradients/control.js +6 -14
  1714. package/src/components/colors-gradients/dropdown.js +2 -2
  1715. package/src/components/colors-gradients/panel-color-gradient-settings.js +2 -2
  1716. package/src/components/colors-gradients/test/control.js +3 -3
  1717. package/src/components/contrast-checker/test/index.js +8 -8
  1718. package/src/components/convert-to-group-buttons/index.js +10 -1
  1719. package/src/components/default-block-appender/index.js +2 -2
  1720. package/src/components/dimensions-tool/aspect-ratio-tool.js +41 -68
  1721. package/src/components/dimensions-tool/scale-tool.js +1 -1
  1722. package/src/components/dimensions-tool/test/index.js +10 -0
  1723. package/src/components/dimensions-tool/width-height-tool.js +2 -2
  1724. package/src/components/editable-text/README.md +0 -4
  1725. package/src/components/font-sizes/utils.js +2 -1
  1726. package/src/components/global-styles/background-panel.js +119 -49
  1727. package/src/components/global-styles/border-panel.js +8 -5
  1728. package/src/components/global-styles/color-panel.js +30 -25
  1729. package/src/components/global-styles/color-panel.native.js +1 -1
  1730. package/src/components/global-styles/dimensions-panel.js +11 -12
  1731. package/src/components/global-styles/filters-panel.js +2 -2
  1732. package/src/components/global-styles/hooks.js +13 -1
  1733. package/src/components/global-styles/index.js +3 -0
  1734. package/src/components/global-styles/shadow-panel-components.js +17 -14
  1735. package/src/components/global-styles/test/get-global-styles-changes.js +0 -2
  1736. package/src/components/global-styles/test/theme-file-uri-utils.js +66 -0
  1737. package/src/components/global-styles/test/use-global-styles-context.native.js +434 -0
  1738. package/src/components/global-styles/test/use-global-styles-output.js +13 -12
  1739. package/src/components/global-styles/theme-file-uri-utils.js +77 -0
  1740. package/src/components/global-styles/typography-panel.js +50 -5
  1741. package/src/components/global-styles/use-global-styles-context.native.js +586 -0
  1742. package/src/components/global-styles/use-global-styles-output.js +200 -102
  1743. package/src/components/grid-visualizer/grid-item-resizer.js +169 -40
  1744. package/src/components/grid-visualizer/grid-visualizer.js +27 -7
  1745. package/src/components/grid-visualizer/style.scss +2 -1
  1746. package/src/components/height-control/index.js +1 -1
  1747. package/src/components/iframe/content.scss +67 -0
  1748. package/src/components/iframe/index.js +119 -39
  1749. package/src/components/image-editor/aspect-ratio-dropdown.js +91 -59
  1750. package/src/components/image-editor/cropper.js +2 -2
  1751. package/src/components/image-editor/index.js +1 -1
  1752. package/src/components/image-editor/test/index.js +22 -0
  1753. package/src/components/index.js +1 -0
  1754. package/src/components/index.native.js +7 -0
  1755. package/src/components/inner-blocks/button-block-appender.js +2 -2
  1756. package/src/components/inner-blocks/index.js +19 -17
  1757. package/src/components/inner-blocks/use-nested-settings-update.js +9 -16
  1758. package/src/components/inner-blocks/warning-max-depth-exceeded.native.js +1 -1
  1759. package/src/components/inserter/block-patterns-explorer/pattern-list.js +3 -2
  1760. package/src/components/inserter/block-patterns-tab/index.js +17 -1
  1761. package/src/components/inserter/block-patterns-tab/pattern-category-preview-panel.js +16 -2
  1762. package/src/components/inserter/block-patterns-tab/pattern-category-previews.js +8 -2
  1763. package/src/components/inserter/block-patterns-tab/patterns-filter.js +3 -2
  1764. package/src/components/inserter/block-types-tab.js +119 -79
  1765. package/src/components/inserter/category-tabs/index.js +1 -1
  1766. package/src/components/inserter/hooks/use-block-types-state.js +21 -5
  1767. package/src/components/inserter/hooks/use-insertion-point.js +68 -8
  1768. package/src/components/inserter/hooks/use-patterns-state.js +18 -5
  1769. package/src/components/inserter/index.js +4 -5
  1770. package/src/components/inserter/library.js +23 -7
  1771. package/src/components/inserter/media-tab/media-preview.js +2 -2
  1772. package/src/components/inserter/menu.js +135 -116
  1773. package/src/components/inserter/quick-inserter.js +5 -3
  1774. package/src/components/inserter/search-results.js +2 -1
  1775. package/src/components/inserter/style.scss +47 -26
  1776. package/src/components/inserter/tabs.js +29 -15
  1777. package/src/components/inserter-list-item/index.js +3 -3
  1778. package/src/components/inspector-controls/fill.native.js +3 -5
  1779. package/src/components/inspector-controls-tabs/index.js +15 -3
  1780. package/src/components/inspector-controls-tabs/style.scss +2 -10
  1781. package/src/components/keyboard-shortcuts/index.js +12 -0
  1782. package/src/components/line-height-control/test/index.js +16 -14
  1783. package/src/components/link-control/index.js +12 -3
  1784. package/src/components/link-control/link-preview.js +3 -3
  1785. package/src/components/link-control/search-results.js +2 -2
  1786. package/src/components/link-control/style.scss +9 -3
  1787. package/src/components/list-view/block-contents.js +3 -3
  1788. package/src/components/list-view/block-select-button.js +14 -3
  1789. package/src/components/list-view/block.js +54 -30
  1790. package/src/components/list-view/drop-indicator.js +3 -3
  1791. package/src/components/list-view/index.js +2 -2
  1792. package/src/components/list-view/leaf.js +2 -5
  1793. package/src/components/media-placeholder/index.js +5 -5
  1794. package/src/components/media-placeholder/index.native.js +2 -2
  1795. package/src/components/media-replace-flow/index.js +2 -2
  1796. package/src/components/media-upload-progress/index.native.js +22 -2
  1797. package/src/components/plain-text/index.js +2 -2
  1798. package/src/components/provider/use-block-sync.js +27 -1
  1799. package/src/components/provider/with-registry-provider.js +33 -38
  1800. package/src/components/publish-date-time-picker/index.js +43 -15
  1801. package/src/components/resolution-tool/index.js +1 -1
  1802. package/src/components/responsive-block-control/index.js +2 -2
  1803. package/src/components/rich-text/README.md +0 -8
  1804. package/src/components/rich-text/event-listeners/enter.js +28 -48
  1805. package/src/components/rich-text/event-listeners/paste-handler.js +21 -58
  1806. package/src/components/rich-text/format-toolbar/index.js +2 -2
  1807. package/src/components/rich-text/index.js +21 -8
  1808. package/src/components/rich-text/index.native.js +2 -2
  1809. package/src/components/rich-text/multiline.js +31 -3
  1810. package/src/components/rich-text/native/index.native.js +3 -2
  1811. package/src/components/rich-text/native/test/index.native.js +13 -13
  1812. package/src/components/segmented-text-control/index.js +2 -2
  1813. package/src/components/spacing-sizes-control/hooks/use-spacing-sizes.js +48 -16
  1814. package/src/components/spacing-sizes-control/input-controls/spacing-input-control.js +4 -3
  1815. package/src/components/spacing-sizes-control/utils.js +2 -0
  1816. package/src/components/text-alignment-control/index.js +2 -2
  1817. package/src/components/text-decoration-control/index.js +2 -2
  1818. package/src/components/text-transform-control/index.js +2 -2
  1819. package/src/components/url-input/index.js +4 -4
  1820. package/src/components/url-popover/link-editor.js +2 -2
  1821. package/src/components/url-popover/link-viewer-url.js +2 -2
  1822. package/src/components/url-popover/link-viewer.js +2 -2
  1823. package/src/components/video-player/index.native.js +1 -1
  1824. package/src/components/warning/index.js +2 -2
  1825. package/src/components/writing-flow/index.js +2 -2
  1826. package/src/components/writing-flow/use-clipboard-handler.js +96 -33
  1827. package/src/components/writing-flow/use-input.js +75 -1
  1828. package/src/components/writing-flow/use-tab-nav.js +10 -1
  1829. package/src/components/writing-mode-control/index.js +2 -5
  1830. package/src/content.scss +1 -0
  1831. package/src/hooks/align.js +2 -2
  1832. package/src/hooks/background.js +1 -1
  1833. package/src/hooks/block-bindings.js +92 -0
  1834. package/src/hooks/block-bindings.scss +3 -0
  1835. package/src/hooks/block-style-variation.js +156 -0
  1836. package/src/hooks/border.js +3 -3
  1837. package/src/hooks/color.js +12 -19
  1838. package/src/hooks/color.scss +1 -0
  1839. package/src/hooks/content-lock-ui.js +16 -33
  1840. package/src/hooks/custom-class-name.js +2 -2
  1841. package/src/hooks/custom-class-name.native.js +2 -2
  1842. package/src/hooks/dimensions.js +2 -2
  1843. package/src/hooks/font-family.js +1 -1
  1844. package/src/hooks/index.js +4 -0
  1845. package/src/hooks/layout-child.js +34 -20
  1846. package/src/hooks/layout.js +3 -4
  1847. package/src/hooks/position.js +3 -3
  1848. package/src/hooks/style.js +9 -1
  1849. package/src/hooks/text-align.js +20 -14
  1850. package/src/hooks/use-bindings-attributes.js +93 -18
  1851. package/src/hooks/use-color-props.js +2 -2
  1852. package/src/hooks/use-typography-props.js +4 -3
  1853. package/src/hooks/use-zoom-out.js +9 -2
  1854. package/src/hooks/utils.js +23 -6
  1855. package/src/layouts/flex.js +2 -2
  1856. package/src/layouts/grid.js +8 -12
  1857. package/src/private-apis.js +10 -0
  1858. package/src/store/actions.js +261 -73
  1859. package/src/store/get-block-settings.js +1 -46
  1860. package/src/store/private-actions.js +24 -0
  1861. package/src/store/private-keys.js +1 -0
  1862. package/src/store/private-selectors.js +15 -0
  1863. package/src/store/reducer.js +24 -11
  1864. package/src/store/selectors.js +65 -8
  1865. package/src/store/utils.js +2 -0
  1866. package/src/style.scss +1 -0
  1867. package/src/utils/selection.js +8 -0
  1868. package/src/utils/test/__snapshots__/transform-styles.js.snap +6 -0
  1869. package/src/utils/test/transform-styles.js +14 -0
  1870. package/src/utils/transform-styles/index.js +14 -9
  1871. package/tsconfig.tsbuildinfo +1 -1
  1872. package/build/components/rich-text/split-value.js +0 -81
  1873. package/build/components/rich-text/split-value.js.map +0 -1
  1874. package/build-module/components/rich-text/split-value.js +0 -75
  1875. package/build-module/components/rich-text/split-value.js.map +0 -1
  1876. package/src/components/rich-text/split-value.js +0 -64
@@ -1,8 +1,7 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
5
- import classnames from 'classnames';
4
+ import clsx from 'clsx';
6
5
 
7
6
  /**
8
7
  * WordPress dependencies
@@ -10,6 +9,8 @@ import classnames from 'classnames';
10
9
  import { __ } from '@wordpress/i18n';
11
10
  import { Button, Placeholder } from '@wordpress/components';
12
11
  import { layout } from '@wordpress/icons';
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { jsxs as _jsxs } from "react/jsx-runtime";
13
14
  function BlockVariationPicker({
14
15
  icon = layout,
15
16
  label = __('Choose variation'),
@@ -18,36 +19,41 @@ function BlockVariationPicker({
18
19
  onSelect,
19
20
  allowSkip
20
21
  }) {
21
- const classes = classnames('block-editor-block-variation-picker', {
22
+ const classes = clsx('block-editor-block-variation-picker', {
22
23
  'has-many-variations': variations.length > 4
23
24
  });
24
- return createElement(Placeholder, {
25
+ return /*#__PURE__*/_jsxs(Placeholder, {
25
26
  icon: icon,
26
27
  label: label,
27
28
  instructions: instructions,
28
- className: classes
29
- }, createElement("ul", {
30
- className: "block-editor-block-variation-picker__variations",
31
- role: "list",
32
- "aria-label": __('Block variations')
33
- }, variations.map(variation => createElement("li", {
34
- key: variation.name
35
- }, createElement(Button, {
36
- __next40pxDefaultSize: true,
37
- variant: "tertiary",
38
- icon: variation.icon && variation.icon.src ? variation.icon.src : variation.icon,
39
- iconSize: 48,
40
- onClick: () => onSelect(variation),
41
- className: "block-editor-block-variation-picker__variation",
42
- label: variation.description || variation.title
43
- }), createElement("span", {
44
- className: "block-editor-block-variation-picker__variation-label"
45
- }, variation.title)))), allowSkip && createElement("div", {
46
- className: "block-editor-block-variation-picker__skip"
47
- }, createElement(Button, {
48
- variant: "link",
49
- onClick: () => onSelect()
50
- }, __('Skip'))));
29
+ className: classes,
30
+ children: [/*#__PURE__*/_jsx("ul", {
31
+ className: "block-editor-block-variation-picker__variations",
32
+ role: "list",
33
+ "aria-label": __('Block variations'),
34
+ children: variations.map(variation => /*#__PURE__*/_jsxs("li", {
35
+ children: [/*#__PURE__*/_jsx(Button, {
36
+ __next40pxDefaultSize: true,
37
+ variant: "tertiary",
38
+ icon: variation.icon && variation.icon.src ? variation.icon.src : variation.icon,
39
+ iconSize: 48,
40
+ onClick: () => onSelect(variation),
41
+ className: "block-editor-block-variation-picker__variation",
42
+ label: variation.description || variation.title
43
+ }), /*#__PURE__*/_jsx("span", {
44
+ className: "block-editor-block-variation-picker__variation-label",
45
+ children: variation.title
46
+ })]
47
+ }, variation.name))
48
+ }), allowSkip && /*#__PURE__*/_jsx("div", {
49
+ className: "block-editor-block-variation-picker__skip",
50
+ children: /*#__PURE__*/_jsx(Button, {
51
+ variant: "link",
52
+ onClick: () => onSelect(),
53
+ children: __('Skip')
54
+ })
55
+ })]
56
+ });
51
57
  }
52
58
  export default BlockVariationPicker;
53
59
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["classnames","__","Button","Placeholder","layout","BlockVariationPicker","icon","label","instructions","variations","onSelect","allowSkip","classes","length","createElement","className","role","map","variation","key","name","__next40pxDefaultSize","variant","src","iconSize","onClick","description","title"],"sources":["@wordpress/block-editor/src/components/block-variation-picker/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Button, Placeholder } from '@wordpress/components';\nimport { layout } from '@wordpress/icons';\n\nfunction BlockVariationPicker( {\n\ticon = layout,\n\tlabel = __( 'Choose variation' ),\n\tinstructions = __( 'Select a variation to start with:' ),\n\tvariations,\n\tonSelect,\n\tallowSkip,\n} ) {\n\tconst classes = classnames( 'block-editor-block-variation-picker', {\n\t\t'has-many-variations': variations.length > 4,\n\t} );\n\n\treturn (\n\t\t<Placeholder\n\t\t\ticon={ icon }\n\t\t\tlabel={ label }\n\t\t\tinstructions={ instructions }\n\t\t\tclassName={ classes }\n\t\t>\n\t\t\t{ /*\n\t\t\t * Disable reason: The `list` ARIA role is redundant but\n\t\t\t * Safari+VoiceOver won't announce the list otherwise.\n\t\t\t */\n\t\t\t/* eslint-disable jsx-a11y/no-redundant-roles */ }\n\t\t\t<ul\n\t\t\t\tclassName=\"block-editor-block-variation-picker__variations\"\n\t\t\t\trole=\"list\"\n\t\t\t\taria-label={ __( 'Block variations' ) }\n\t\t\t>\n\t\t\t\t{ variations.map( ( variation ) => (\n\t\t\t\t\t<li key={ variation.name }>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t\tvariation.icon && variation.icon.src\n\t\t\t\t\t\t\t\t\t? variation.icon.src\n\t\t\t\t\t\t\t\t\t: variation.icon\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ticonSize={ 48 }\n\t\t\t\t\t\t\tonClick={ () => onSelect( variation ) }\n\t\t\t\t\t\t\tclassName=\"block-editor-block-variation-picker__variation\"\n\t\t\t\t\t\t\tlabel={ variation.description || variation.title }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span className=\"block-editor-block-variation-picker__variation-label\">\n\t\t\t\t\t\t\t{ variation.title }\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</li>\n\t\t\t\t) ) }\n\t\t\t</ul>\n\t\t\t{ /* eslint-enable jsx-a11y/no-redundant-roles */ }\n\t\t\t{ allowSkip && (\n\t\t\t\t<div className=\"block-editor-block-variation-picker__skip\">\n\t\t\t\t\t<Button variant=\"link\" onClick={ () => onSelect() }>\n\t\t\t\t\t\t{ __( 'Skip' ) }\n\t\t\t\t\t</Button>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</Placeholder>\n\t);\n}\n\nexport default BlockVariationPicker;\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,UAAU,MAAM,YAAY;;AAEnC;AACA;AACA;AACA,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,MAAM,EAAEC,WAAW,QAAQ,uBAAuB;AAC3D,SAASC,MAAM,QAAQ,kBAAkB;AAEzC,SAASC,oBAAoBA,CAAE;EAC9BC,IAAI,GAAGF,MAAM;EACbG,KAAK,GAAGN,EAAE,CAAE,kBAAmB,CAAC;EAChCO,YAAY,GAAGP,EAAE,CAAE,mCAAoC,CAAC;EACxDQ,UAAU;EACVC,QAAQ;EACRC;AACD,CAAC,EAAG;EACH,MAAMC,OAAO,GAAGZ,UAAU,CAAE,qCAAqC,EAAE;IAClE,qBAAqB,EAAES,UAAU,CAACI,MAAM,GAAG;EAC5C,CAAE,CAAC;EAEH,OACCC,aAAA,CAACX,WAAW;IACXG,IAAI,EAAGA,IAAM;IACbC,KAAK,EAAGA,KAAO;IACfC,YAAY,EAAGA,YAAc;IAC7BO,SAAS,EAAGH;EAAS,GAOrBE,aAAA;IACCC,SAAS,EAAC,iDAAiD;IAC3DC,IAAI,EAAC,MAAM;IACX,cAAaf,EAAE,CAAE,kBAAmB;EAAG,GAErCQ,UAAU,CAACQ,GAAG,CAAIC,SAAS,IAC5BJ,aAAA;IAAIK,GAAG,EAAGD,SAAS,CAACE;EAAM,GACzBN,aAAA,CAACZ,MAAM;IACNmB,qBAAqB;IACrBC,OAAO,EAAC,UAAU;IAClBhB,IAAI,EACHY,SAAS,CAACZ,IAAI,IAAIY,SAAS,CAACZ,IAAI,CAACiB,GAAG,GACjCL,SAAS,CAACZ,IAAI,CAACiB,GAAG,GAClBL,SAAS,CAACZ,IACb;IACDkB,QAAQ,EAAG,EAAI;IACfC,OAAO,EAAGA,CAAA,KAAMf,QAAQ,CAAEQ,SAAU,CAAG;IACvCH,SAAS,EAAC,gDAAgD;IAC1DR,KAAK,EAAGW,SAAS,CAACQ,WAAW,IAAIR,SAAS,CAACS;EAAO,CAClD,CAAC,EACFb,aAAA;IAAMC,SAAS,EAAC;EAAsD,GACnEG,SAAS,CAACS,KACP,CACH,CACH,CACC,CAAC,EAEHhB,SAAS,IACVG,aAAA;IAAKC,SAAS,EAAC;EAA2C,GACzDD,aAAA,CAACZ,MAAM;IAACoB,OAAO,EAAC,MAAM;IAACG,OAAO,EAAGA,CAAA,KAAMf,QAAQ,CAAC;EAAG,GAChDT,EAAE,CAAE,MAAO,CACN,CACJ,CAEM,CAAC;AAEhB;AAEA,eAAeI,oBAAoB","ignoreList":[]}
1
+ {"version":3,"names":["clsx","__","Button","Placeholder","layout","jsx","_jsx","jsxs","_jsxs","BlockVariationPicker","icon","label","instructions","variations","onSelect","allowSkip","classes","length","className","children","role","map","variation","__next40pxDefaultSize","variant","src","iconSize","onClick","description","title","name"],"sources":["@wordpress/block-editor/src/components/block-variation-picker/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { Button, Placeholder } from '@wordpress/components';\nimport { layout } from '@wordpress/icons';\n\nfunction BlockVariationPicker( {\n\ticon = layout,\n\tlabel = __( 'Choose variation' ),\n\tinstructions = __( 'Select a variation to start with:' ),\n\tvariations,\n\tonSelect,\n\tallowSkip,\n} ) {\n\tconst classes = clsx( 'block-editor-block-variation-picker', {\n\t\t'has-many-variations': variations.length > 4,\n\t} );\n\n\treturn (\n\t\t<Placeholder\n\t\t\ticon={ icon }\n\t\t\tlabel={ label }\n\t\t\tinstructions={ instructions }\n\t\t\tclassName={ classes }\n\t\t>\n\t\t\t{ /*\n\t\t\t * Disable reason: The `list` ARIA role is redundant but\n\t\t\t * Safari+VoiceOver won't announce the list otherwise.\n\t\t\t */\n\t\t\t/* eslint-disable jsx-a11y/no-redundant-roles */ }\n\t\t\t<ul\n\t\t\t\tclassName=\"block-editor-block-variation-picker__variations\"\n\t\t\t\trole=\"list\"\n\t\t\t\taria-label={ __( 'Block variations' ) }\n\t\t\t>\n\t\t\t\t{ variations.map( ( variation ) => (\n\t\t\t\t\t<li key={ variation.name }>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t__next40pxDefaultSize\n\t\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t\tvariation.icon && variation.icon.src\n\t\t\t\t\t\t\t\t\t? variation.icon.src\n\t\t\t\t\t\t\t\t\t: variation.icon\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ticonSize={ 48 }\n\t\t\t\t\t\t\tonClick={ () => onSelect( variation ) }\n\t\t\t\t\t\t\tclassName=\"block-editor-block-variation-picker__variation\"\n\t\t\t\t\t\t\tlabel={ variation.description || variation.title }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<span className=\"block-editor-block-variation-picker__variation-label\">\n\t\t\t\t\t\t\t{ variation.title }\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</li>\n\t\t\t\t) ) }\n\t\t\t</ul>\n\t\t\t{ /* eslint-enable jsx-a11y/no-redundant-roles */ }\n\t\t\t{ allowSkip && (\n\t\t\t\t<div className=\"block-editor-block-variation-picker__skip\">\n\t\t\t\t\t<Button variant=\"link\" onClick={ () => onSelect() }>\n\t\t\t\t\t\t{ __( 'Skip' ) }\n\t\t\t\t\t</Button>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</Placeholder>\n\t);\n}\n\nexport default BlockVariationPicker;\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASC,MAAM,EAAEC,WAAW,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G,SAAS,CAACO;QAAK,CACZ,CAAC;MAAA,GAhBEP,SAAS,CAACQ,IAiBhB,CACH;IAAC,CACA,CAAC,EAEHf,SAAS,iBACVT,IAAA;MAAKY,SAAS,EAAC,2CAA2C;MAAAC,QAAA,eACzDb,IAAA,CAACJ,MAAM;QAACsB,OAAO,EAAC,MAAM;QAACG,OAAO,EAAGA,CAAA,KAAMb,QAAQ,CAAC,CAAG;QAAAK,QAAA,EAChDlB,EAAE,CAAE,MAAO;MAAC,CACP;IAAC,CACL,CACL;EAAA,CACW,CAAC;AAEhB;AAEA,eAAeQ,oBAAoB","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -20,6 +19,8 @@ import { Icon, close } from '@wordpress/icons';
20
19
  import styles from './style.scss';
21
20
  import { store as blockEditorStore } from '../../store';
22
21
  import InserterButton from '../inserter-button';
22
+ import { jsx as _jsx } from "react/jsx-runtime";
23
+ import { jsxs as _jsxs } from "react/jsx-runtime";
23
24
  const hitSlop = {
24
25
  top: 22,
25
26
  bottom: 22,
@@ -37,40 +38,47 @@ function BlockVariationPicker({
37
38
  } = useDispatch(blockEditorStore);
38
39
  const isIOS = Platform.OS === 'ios';
39
40
  const cancelButtonStyle = usePreferredColorSchemeStyle(styles.cancelButton, styles.cancelButtonDark);
40
- const leftButton = createElement(TouchableWithoutFeedback, {
41
+ const leftButton = /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
41
42
  onPress: onClose,
42
- hitSlop: hitSlop
43
- }, createElement(View, null, isIOS ? createElement(Text, {
44
- style: cancelButtonStyle,
45
- maxFontSizeMultiplier: 2
46
- }, __('Cancel')) : createElement(Icon, {
47
- icon: close,
48
- size: 24,
49
- style: styles.closeIcon
50
- })));
43
+ hitSlop: hitSlop,
44
+ children: /*#__PURE__*/_jsx(View, {
45
+ children: isIOS ? /*#__PURE__*/_jsx(Text, {
46
+ style: cancelButtonStyle,
47
+ maxFontSizeMultiplier: 2,
48
+ children: __('Cancel')
49
+ }) : /*#__PURE__*/_jsx(Icon, {
50
+ icon: close,
51
+ size: 24,
52
+ style: styles.closeIcon
53
+ })
54
+ })
55
+ });
51
56
  const onVariationSelect = variation => {
52
57
  replaceInnerBlocks(clientId, createBlocksFromInnerBlocksTemplate(variation.innerBlocks));
53
58
  onClose();
54
59
  };
55
- return createElement(BottomSheet, {
60
+ return /*#__PURE__*/_jsxs(BottomSheet, {
56
61
  isVisible: isVisible,
57
62
  onClose: onClose,
58
63
  title: __('Select a layout'),
59
64
  contentStyle: styles.contentStyle,
60
65
  leftButton: leftButton,
61
- testID: "block-variation-modal"
62
- }, createElement(ScrollView, {
63
- horizontal: true,
64
- showsHorizontalScrollIndicator: false,
65
- contentContainerStyle: styles.contentContainerStyle,
66
- style: styles.containerStyle
67
- }, variations.map(v => createElement(InserterButton, {
68
- item: v,
69
- key: v.name,
70
- onSelect: () => onVariationSelect(v)
71
- }))), createElement(PanelBody, null, createElement(FooterMessageControl, {
72
- label: __('Note: Column layout may vary between themes and screen sizes')
73
- })));
66
+ testID: "block-variation-modal",
67
+ children: [/*#__PURE__*/_jsx(ScrollView, {
68
+ horizontal: true,
69
+ showsHorizontalScrollIndicator: false,
70
+ contentContainerStyle: styles.contentContainerStyle,
71
+ style: styles.containerStyle,
72
+ children: variations.map(v => /*#__PURE__*/_jsx(InserterButton, {
73
+ item: v,
74
+ onSelect: () => onVariationSelect(v)
75
+ }, v.name))
76
+ }), /*#__PURE__*/_jsx(PanelBody, {
77
+ children: /*#__PURE__*/_jsx(FooterMessageControl, {
78
+ label: __('Note: Column layout may vary between themes and screen sizes')
79
+ })
80
+ })]
81
+ });
74
82
  }
75
83
  export default BlockVariationPicker;
76
84
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ScrollView","View","Text","TouchableWithoutFeedback","Platform","useDispatch","usePreferredColorSchemeStyle","createBlocksFromInnerBlocksTemplate","__","PanelBody","BottomSheet","FooterMessageControl","Icon","close","styles","store","blockEditorStore","InserterButton","hitSlop","top","bottom","left","right","BlockVariationPicker","isVisible","onClose","clientId","variations","replaceInnerBlocks","isIOS","OS","cancelButtonStyle","cancelButton","cancelButtonDark","leftButton","createElement","onPress","style","maxFontSizeMultiplier","icon","size","closeIcon","onVariationSelect","variation","innerBlocks","title","contentStyle","testID","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","containerStyle","map","v","item","key","name","onSelect","label"],"sources":["@wordpress/block-editor/src/components/block-variation-picker/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport {\n\tScrollView,\n\tView,\n\tText,\n\tTouchableWithoutFeedback,\n\tPlatform,\n} from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { useDispatch } from '@wordpress/data';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\nimport { createBlocksFromInnerBlocksTemplate } from '@wordpress/blocks';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tPanelBody,\n\tBottomSheet,\n\tFooterMessageControl,\n} from '@wordpress/components';\nimport { Icon, close } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\nimport { store as blockEditorStore } from '../../store';\nimport InserterButton from '../inserter-button';\n\nconst hitSlop = { top: 22, bottom: 22, left: 22, right: 22 };\n\nfunction BlockVariationPicker( { isVisible, onClose, clientId, variations } ) {\n\tconst { replaceInnerBlocks } = useDispatch( blockEditorStore );\n\tconst isIOS = Platform.OS === 'ios';\n\n\tconst cancelButtonStyle = usePreferredColorSchemeStyle(\n\t\tstyles.cancelButton,\n\t\tstyles.cancelButtonDark\n\t);\n\n\tconst leftButton = (\n\t\t<TouchableWithoutFeedback onPress={ onClose } hitSlop={ hitSlop }>\n\t\t\t<View>\n\t\t\t\t{ isIOS ? (\n\t\t\t\t\t<Text\n\t\t\t\t\t\tstyle={ cancelButtonStyle }\n\t\t\t\t\t\tmaxFontSizeMultiplier={ 2 }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Cancel' ) }\n\t\t\t\t\t</Text>\n\t\t\t\t) : (\n\t\t\t\t\t<Icon\n\t\t\t\t\t\ticon={ close }\n\t\t\t\t\t\tsize={ 24 }\n\t\t\t\t\t\tstyle={ styles.closeIcon }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t</View>\n\t\t</TouchableWithoutFeedback>\n\t);\n\n\tconst onVariationSelect = ( variation ) => {\n\t\treplaceInnerBlocks(\n\t\t\tclientId,\n\t\t\tcreateBlocksFromInnerBlocksTemplate( variation.innerBlocks )\n\t\t);\n\t\tonClose();\n\t};\n\n\treturn (\n\t\t<BottomSheet\n\t\t\tisVisible={ isVisible }\n\t\t\tonClose={ onClose }\n\t\t\ttitle={ __( 'Select a layout' ) }\n\t\t\tcontentStyle={ styles.contentStyle }\n\t\t\tleftButton={ leftButton }\n\t\t\ttestID=\"block-variation-modal\"\n\t\t>\n\t\t\t<ScrollView\n\t\t\t\thorizontal\n\t\t\t\tshowsHorizontalScrollIndicator={ false }\n\t\t\t\tcontentContainerStyle={ styles.contentContainerStyle }\n\t\t\t\tstyle={ styles.containerStyle }\n\t\t\t>\n\t\t\t\t{ variations.map( ( v ) => (\n\t\t\t\t\t<InserterButton\n\t\t\t\t\t\titem={ v }\n\t\t\t\t\t\tkey={ v.name }\n\t\t\t\t\t\tonSelect={ () => onVariationSelect( v ) }\n\t\t\t\t\t/>\n\t\t\t\t) ) }\n\t\t\t</ScrollView>\n\t\t\t<PanelBody>\n\t\t\t\t<FooterMessageControl\n\t\t\t\t\tlabel={ __(\n\t\t\t\t\t\t'Note: Column layout may vary between themes and screen sizes'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t</PanelBody>\n\t\t</BottomSheet>\n\t);\n}\n\nexport default BlockVariationPicker;\n"],"mappings":";AAAA;AACA;AACA;AACA,SACCA,UAAU,EACVC,IAAI,EACJC,IAAI,EACJC,wBAAwB,EACxBC,QAAQ,QACF,cAAc;;AAErB;AACA;AACA;AACA,SAASC,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B;EAED,MAAMC,iBAAiB,GAAKC,SAAS,IAAM;IAC1Cf,kBAAkB,CACjBF,QAAQ,EACRnB,mCAAmC,CAAEoC,SAAS,CAACC,WAAY,CAC5D,CAAC;IACDnB,OAAO,CAAC,CAAC;EACV,CAAC;EAED,OACCU,aAAA,CAACzB,WAAW;IACXc,SAAS,EAAGA,SAAW;IACvBC,OAAO,EAAGA,OAAS;IACnBoB,KAAK,EAAGrC,EAAE,CAAE,iBAAkB,CAAG;IACjCsC,YAAY,EAAGhC,MAAM,CAACgC,YAAc;IACpCZ,UAAU,EAAGA,UAAY;IACzBa,MAAM,EAAC;EAAuB,GAE9BZ,aAAA,CAACnC,UAAU;IACVgD,UAAU;IACVC,8BAA8B,EAAG,KAAO;IACxCC,qBAAqB,EAAGpC,MAAM,CAACoC,qBAAuB;IACtDb,KAAK,EAAGvB,MAAM,CAACqC;EAAgB,GAE7BxB,UAAU,CAACyB,GAAG,CAAIC,CAAC,IACpBlB,aAAA,CAAClB,cAAc;IACdqC,IAAI,EAAGD,CAAG;IACVE,GAAG,EAAGF,CAAC,CAACG,IAAM;IACdC,QAAQ,EAAGA,CAAA,KAAMf,iBAAiB,CAAEW,CAAE;EAAG,CACzC,CACA,CACS,CAAC,EACblB,aAAA,CAAC1B,SAAS,QACT0B,aAAA,CAACxB,oBAAoB;IACpB+C,KAAK,EAAGlD,EAAE,CACT,8DACD;EAAG,CACH,CACS,CACC,CAAC;AAEhB;AAEA,eAAee,oBAAoB","ignoreList":[]}
1
+ {"version":3,"names":["ScrollView","View","Text","TouchableWithoutFeedback","Platform","useDispatch","usePreferredColorSchemeStyle","createBlocksFromInnerBlocksTemplate","__","PanelBody","BottomSheet","FooterMessageControl","Icon","close","styles","store","blockEditorStore","InserterButton","jsx","_jsx","jsxs","_jsxs","hitSlop","top","bottom","left","right","BlockVariationPicker","isVisible","onClose","clientId","variations","replaceInnerBlocks","isIOS","OS","cancelButtonStyle","cancelButton","cancelButtonDark","leftButton","onPress","children","style","maxFontSizeMultiplier","icon","size","closeIcon","onVariationSelect","variation","innerBlocks","title","contentStyle","testID","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","containerStyle","map","v","item","onSelect","name","label"],"sources":["@wordpress/block-editor/src/components/block-variation-picker/index.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport {\n\tScrollView,\n\tView,\n\tText,\n\tTouchableWithoutFeedback,\n\tPlatform,\n} from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { useDispatch } from '@wordpress/data';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\nimport { createBlocksFromInnerBlocksTemplate } from '@wordpress/blocks';\nimport { __ } from '@wordpress/i18n';\nimport {\n\tPanelBody,\n\tBottomSheet,\n\tFooterMessageControl,\n} from '@wordpress/components';\nimport { Icon, close } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport styles from './style.scss';\nimport { store as blockEditorStore } from '../../store';\nimport InserterButton from '../inserter-button';\n\nconst hitSlop = { top: 22, bottom: 22, left: 22, right: 22 };\n\nfunction BlockVariationPicker( { isVisible, onClose, clientId, variations } ) {\n\tconst { replaceInnerBlocks } = useDispatch( blockEditorStore );\n\tconst isIOS = Platform.OS === 'ios';\n\n\tconst cancelButtonStyle = usePreferredColorSchemeStyle(\n\t\tstyles.cancelButton,\n\t\tstyles.cancelButtonDark\n\t);\n\n\tconst leftButton = (\n\t\t<TouchableWithoutFeedback onPress={ onClose } hitSlop={ hitSlop }>\n\t\t\t<View>\n\t\t\t\t{ isIOS ? (\n\t\t\t\t\t<Text\n\t\t\t\t\t\tstyle={ cancelButtonStyle }\n\t\t\t\t\t\tmaxFontSizeMultiplier={ 2 }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Cancel' ) }\n\t\t\t\t\t</Text>\n\t\t\t\t) : (\n\t\t\t\t\t<Icon\n\t\t\t\t\t\ticon={ close }\n\t\t\t\t\t\tsize={ 24 }\n\t\t\t\t\t\tstyle={ styles.closeIcon }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t</View>\n\t\t</TouchableWithoutFeedback>\n\t);\n\n\tconst onVariationSelect = ( variation ) => {\n\t\treplaceInnerBlocks(\n\t\t\tclientId,\n\t\t\tcreateBlocksFromInnerBlocksTemplate( variation.innerBlocks )\n\t\t);\n\t\tonClose();\n\t};\n\n\treturn (\n\t\t<BottomSheet\n\t\t\tisVisible={ isVisible }\n\t\t\tonClose={ onClose }\n\t\t\ttitle={ __( 'Select a layout' ) }\n\t\t\tcontentStyle={ styles.contentStyle }\n\t\t\tleftButton={ leftButton }\n\t\t\ttestID=\"block-variation-modal\"\n\t\t>\n\t\t\t<ScrollView\n\t\t\t\thorizontal\n\t\t\t\tshowsHorizontalScrollIndicator={ false }\n\t\t\t\tcontentContainerStyle={ styles.contentContainerStyle }\n\t\t\t\tstyle={ styles.containerStyle }\n\t\t\t>\n\t\t\t\t{ variations.map( ( v ) => (\n\t\t\t\t\t<InserterButton\n\t\t\t\t\t\titem={ v }\n\t\t\t\t\t\tkey={ v.name }\n\t\t\t\t\t\tonSelect={ () => onVariationSelect( v ) }\n\t\t\t\t\t/>\n\t\t\t\t) ) }\n\t\t\t</ScrollView>\n\t\t\t<PanelBody>\n\t\t\t\t<FooterMessageControl\n\t\t\t\t\tlabel={ __(\n\t\t\t\t\t\t'Note: Column layout may vary between themes and screen sizes'\n\t\t\t\t\t) }\n\t\t\t\t/>\n\t\t\t</PanelBody>\n\t\t</BottomSheet>\n\t);\n}\n\nexport default BlockVariationPicker;\n"],"mappings":"AAAA;AACA;AACA;AACA,SACCA,UAAU,EACVC,IAAI,EACJC,IAAI,EACJC,wBAAwB,EACxBC,QAAQ,QACF,cAAc;;AAErB;AACA;AACA;AACA,SAASC,WAAW,QAAQ,iBAAiB;AAC7C,SAASC,4BAA4B,QAAQ,oBAAoB;AACjE,SAASC,mCAAmC,QAAQ,mBAAmB;AACvE,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SACCC,SAAS,EACTC,WAAW,EACXC,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;IAC1Cf,kBAAkB,CACjBF,QAAQ,EACRvB,mCAAmC,CAAEwC,SAAS,CAACC,WAAY,CAC5D,CAAC;IACDnB,OAAO,CAAC,CAAC;EACV,CAAC;EAED,oBACCR,KAAA,CAACX,WAAW;IACXkB,SAAS,EAAGA,SAAW;IACvBC,OAAO,EAAGA,OAAS;IACnBoB,KAAK,EAAGzC,EAAE,CAAE,iBAAkB,CAAG;IACjC0C,YAAY,EAAGpC,MAAM,CAACoC,YAAc;IACpCZ,UAAU,EAAGA,UAAY;IACzBa,MAAM,EAAC,uBAAuB;IAAAX,QAAA,gBAE9BrB,IAAA,CAACnB,UAAU;MACVoD,UAAU;MACVC,8BAA8B,EAAG,KAAO;MACxCC,qBAAqB,EAAGxC,MAAM,CAACwC,qBAAuB;MACtDb,KAAK,EAAG3B,MAAM,CAACyC,cAAgB;MAAAf,QAAA,EAE7BT,UAAU,CAACyB,GAAG,CAAIC,CAAC,iBACpBtC,IAAA,CAACF,cAAc;QACdyC,IAAI,EAAGD,CAAG;QAEVE,QAAQ,EAAGA,CAAA,KAAMb,iBAAiB,CAAEW,CAAE;MAAG,GADnCA,CAAC,CAACG,IAER,CACA;IAAC,CACQ,CAAC,eACbzC,IAAA,CAACV,SAAS;MAAA+B,QAAA,eACTrB,IAAA,CAACR,oBAAoB;QACpBkD,KAAK,EAAGrD,EAAE,CACT,8DACD;MAAG,CACH;IAAC,CACQ,CAAC;EAAA,CACA,CAAC;AAEhB;AAEA,eAAemB,oBAAoB","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
@@ -14,29 +13,32 @@ import { chevronDown } from '@wordpress/icons';
14
13
  */
15
14
  import BlockIcon from '../block-icon';
16
15
  import { store as blockEditorStore } from '../../store';
16
+ import { jsx as _jsx } from "react/jsx-runtime";
17
+ import { jsxs as _jsxs } from "react/jsx-runtime";
17
18
  function VariationsButtons({
18
19
  className,
19
20
  onSelectVariation,
20
21
  selectedValue,
21
22
  variations
22
23
  }) {
23
- return createElement("fieldset", {
24
- className: className
25
- }, createElement(VisuallyHidden, {
26
- as: "legend"
27
- }, __('Transform to variation')), variations.map(variation => createElement(Button, {
28
- key: variation.name,
29
- icon: createElement(BlockIcon, {
30
- icon: variation.icon,
31
- showColors: true
32
- }),
33
- isPressed: selectedValue === variation.name,
34
- label: selectedValue === variation.name ? variation.title : sprintf( /* translators: %s: Name of the block variation */
35
- __('Transform to %s'), variation.title),
36
- onClick: () => onSelectVariation(variation.name),
37
- "aria-label": variation.title,
38
- showTooltip: true
39
- })));
24
+ return /*#__PURE__*/_jsxs("fieldset", {
25
+ className: className,
26
+ children: [/*#__PURE__*/_jsx(VisuallyHidden, {
27
+ as: "legend",
28
+ children: __('Transform to variation')
29
+ }), variations.map(variation => /*#__PURE__*/_jsx(Button, {
30
+ icon: /*#__PURE__*/_jsx(BlockIcon, {
31
+ icon: variation.icon,
32
+ showColors: true
33
+ }),
34
+ isPressed: selectedValue === variation.name,
35
+ label: selectedValue === variation.name ? variation.title : sprintf( /* translators: %s: Name of the block variation */
36
+ __('Transform to %s'), variation.title),
37
+ onClick: () => onSelectVariation(variation.name),
38
+ "aria-label": variation.title,
39
+ showTooltip: true
40
+ }, variation.name))]
41
+ });
40
42
  }
41
43
  function VariationsDropdown({
42
44
  className,
@@ -53,7 +55,7 @@ function VariationsDropdown({
53
55
  label: title,
54
56
  info: description
55
57
  }));
56
- return createElement(DropdownMenu, {
58
+ return /*#__PURE__*/_jsx(DropdownMenu, {
57
59
  className: className,
58
60
  label: __('Transform to variation'),
59
61
  text: __('Transform to variation'),
@@ -64,14 +66,18 @@ function VariationsDropdown({
64
66
  icon: chevronDown,
65
67
  toggleProps: {
66
68
  iconPosition: 'right'
67
- }
68
- }, () => createElement("div", {
69
- className: `${className}__container`
70
- }, createElement(MenuGroup, null, createElement(MenuItemsChoice, {
71
- choices: selectOptions,
72
- value: selectedValue,
73
- onSelect: onSelectVariation
74
- }))));
69
+ },
70
+ children: () => /*#__PURE__*/_jsx("div", {
71
+ className: `${className}__container`,
72
+ children: /*#__PURE__*/_jsx(MenuGroup, {
73
+ children: /*#__PURE__*/_jsx(MenuItemsChoice, {
74
+ choices: selectOptions,
75
+ value: selectedValue,
76
+ onSelect: onSelectVariation
77
+ })
78
+ })
79
+ })
80
+ });
75
81
  }
76
82
  function VariationsToggleGroupControl({
77
83
  className,
@@ -79,25 +85,26 @@ function VariationsToggleGroupControl({
79
85
  selectedValue,
80
86
  variations
81
87
  }) {
82
- return createElement("div", {
83
- className: className
84
- }, createElement(ToggleGroupControl, {
85
- label: __('Transform to variation'),
86
- value: selectedValue,
87
- hideLabelFromVision: true,
88
- onChange: onSelectVariation,
89
- __next40pxDefaultSize: true,
90
- __nextHasNoMarginBottom: true
91
- }, variations.map(variation => createElement(ToggleGroupControlOptionIcon, {
92
- key: variation.name,
93
- icon: createElement(BlockIcon, {
94
- icon: variation.icon,
95
- showColors: true
96
- }),
97
- value: variation.name,
98
- label: selectedValue === variation.name ? variation.title : sprintf( /* translators: %s: Name of the block variation */
99
- __('Transform to %s'), variation.title)
100
- }))));
88
+ return /*#__PURE__*/_jsx("div", {
89
+ className: className,
90
+ children: /*#__PURE__*/_jsx(ToggleGroupControl, {
91
+ label: __('Transform to variation'),
92
+ value: selectedValue,
93
+ hideLabelFromVision: true,
94
+ onChange: onSelectVariation,
95
+ __next40pxDefaultSize: true,
96
+ __nextHasNoMarginBottom: true,
97
+ children: variations.map(variation => /*#__PURE__*/_jsx(ToggleGroupControlOptionIcon, {
98
+ icon: /*#__PURE__*/_jsx(BlockIcon, {
99
+ icon: variation.icon,
100
+ showColors: true
101
+ }),
102
+ value: variation.name,
103
+ label: selectedValue === variation.name ? variation.title : sprintf( /* translators: %s: Name of the block variation */
104
+ __('Transform to %s'), variation.title)
105
+ }, variation.name))
106
+ })
107
+ });
101
108
  }
102
109
  function __experimentalBlockVariationTransforms({
103
110
  blockClientId
@@ -156,7 +163,7 @@ function __experimentalBlockVariationTransforms({
156
163
  const showButtons = variations.length > 5;
157
164
  const ButtonComponent = showButtons ? VariationsButtons : VariationsToggleGroupControl;
158
165
  const Component = hasUniqueIcons ? ButtonComponent : VariationsDropdown;
159
- return createElement(Component, {
166
+ return /*#__PURE__*/_jsx(Component, {
160
167
  className: baseClass,
161
168
  onSelectVariation: onSelectVariation,
162
169
  selectedValue: selectedValue,
@@ -1 +1 @@
1
- {"version":3,"names":["store","blocksStore","__","sprintf","Button","DropdownMenu","MenuGroup","MenuItemsChoice","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOptionIcon","ToggleGroupControlOptionIcon","VisuallyHidden","useSelect","useDispatch","useMemo","chevronDown","BlockIcon","blockEditorStore","VariationsButtons","className","onSelectVariation","selectedValue","variations","createElement","as","map","variation","key","name","icon","showColors","isPressed","label","title","onClick","showTooltip","VariationsDropdown","selectOptions","description","value","info","text","popoverProps","position","toggleProps","iconPosition","choices","onSelect","VariationsToggleGroupControl","hideLabelFromVision","onChange","__next40pxDefaultSize","__nextHasNoMarginBottom","__experimentalBlockVariationTransforms","blockClientId","updateBlockAttributes","activeBlockVariation","select","getActiveBlockVariation","getBlockVariations","getBlockName","getBlockAttributes","hasUniqueIcons","variationIcons","Set","forEach","add","src","size","length","variationName","find","attributes","baseClass","showButtons","ButtonComponent","Component"],"sources":["@wordpress/block-editor/src/components/block-variation-transforms/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { store as blocksStore } from '@wordpress/blocks';\nimport { __, sprintf } from '@wordpress/i18n';\nimport {\n\tButton,\n\tDropdownMenu,\n\tMenuGroup,\n\tMenuItemsChoice,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOptionIcon as ToggleGroupControlOptionIcon,\n\tVisuallyHidden,\n} from '@wordpress/components';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { useMemo } from '@wordpress/element';\nimport { chevronDown } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport BlockIcon from '../block-icon';\nimport { store as blockEditorStore } from '../../store';\n\nfunction VariationsButtons( {\n\tclassName,\n\tonSelectVariation,\n\tselectedValue,\n\tvariations,\n} ) {\n\treturn (\n\t\t<fieldset className={ className }>\n\t\t\t<VisuallyHidden as=\"legend\">\n\t\t\t\t{ __( 'Transform to variation' ) }\n\t\t\t</VisuallyHidden>\n\t\t\t{ variations.map( ( variation ) => (\n\t\t\t\t<Button\n\t\t\t\t\tkey={ variation.name }\n\t\t\t\t\ticon={ <BlockIcon icon={ variation.icon } showColors /> }\n\t\t\t\t\tisPressed={ selectedValue === variation.name }\n\t\t\t\t\tlabel={\n\t\t\t\t\t\tselectedValue === variation.name\n\t\t\t\t\t\t\t? variation.title\n\t\t\t\t\t\t\t: sprintf(\n\t\t\t\t\t\t\t\t\t/* translators: %s: Name of the block variation */\n\t\t\t\t\t\t\t\t\t__( 'Transform to %s' ),\n\t\t\t\t\t\t\t\t\tvariation.title\n\t\t\t\t\t\t\t )\n\t\t\t\t\t}\n\t\t\t\t\tonClick={ () => onSelectVariation( variation.name ) }\n\t\t\t\t\taria-label={ variation.title }\n\t\t\t\t\tshowTooltip\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t</fieldset>\n\t);\n}\n\nfunction VariationsDropdown( {\n\tclassName,\n\tonSelectVariation,\n\tselectedValue,\n\tvariations,\n} ) {\n\tconst selectOptions = variations.map(\n\t\t( { name, title, description } ) => ( {\n\t\t\tvalue: name,\n\t\t\tlabel: title,\n\t\t\tinfo: description,\n\t\t} )\n\t);\n\n\treturn (\n\t\t<DropdownMenu\n\t\t\tclassName={ className }\n\t\t\tlabel={ __( 'Transform to variation' ) }\n\t\t\ttext={ __( 'Transform to variation' ) }\n\t\t\tpopoverProps={ {\n\t\t\t\tposition: 'bottom center',\n\t\t\t\tclassName: `${ className }__popover`,\n\t\t\t} }\n\t\t\ticon={ chevronDown }\n\t\t\ttoggleProps={ { iconPosition: 'right' } }\n\t\t>\n\t\t\t{ () => (\n\t\t\t\t<div className={ `${ className }__container` }>\n\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t<MenuItemsChoice\n\t\t\t\t\t\t\tchoices={ selectOptions }\n\t\t\t\t\t\t\tvalue={ selectedValue }\n\t\t\t\t\t\t\tonSelect={ onSelectVariation }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</MenuGroup>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</DropdownMenu>\n\t);\n}\n\nfunction VariationsToggleGroupControl( {\n\tclassName,\n\tonSelectVariation,\n\tselectedValue,\n\tvariations,\n} ) {\n\treturn (\n\t\t<div className={ className }>\n\t\t\t<ToggleGroupControl\n\t\t\t\tlabel={ __( 'Transform to variation' ) }\n\t\t\t\tvalue={ selectedValue }\n\t\t\t\thideLabelFromVision\n\t\t\t\tonChange={ onSelectVariation }\n\t\t\t\t__next40pxDefaultSize\n\t\t\t\t__nextHasNoMarginBottom\n\t\t\t>\n\t\t\t\t{ variations.map( ( variation ) => (\n\t\t\t\t\t<ToggleGroupControlOptionIcon\n\t\t\t\t\t\tkey={ variation.name }\n\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t<BlockIcon icon={ variation.icon } showColors />\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalue={ variation.name }\n\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\tselectedValue === variation.name\n\t\t\t\t\t\t\t\t? variation.title\n\t\t\t\t\t\t\t\t: sprintf(\n\t\t\t\t\t\t\t\t\t\t/* translators: %s: Name of the block variation */\n\t\t\t\t\t\t\t\t\t\t__( 'Transform to %s' ),\n\t\t\t\t\t\t\t\t\t\tvariation.title\n\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t) ) }\n\t\t\t</ToggleGroupControl>\n\t\t</div>\n\t);\n}\n\nfunction __experimentalBlockVariationTransforms( { blockClientId } ) {\n\tconst { updateBlockAttributes } = useDispatch( blockEditorStore );\n\tconst { activeBlockVariation, variations } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getActiveBlockVariation, getBlockVariations } =\n\t\t\t\tselect( blocksStore );\n\t\t\tconst { getBlockName, getBlockAttributes } =\n\t\t\t\tselect( blockEditorStore );\n\t\t\tconst name = blockClientId && getBlockName( blockClientId );\n\t\t\treturn {\n\t\t\t\tactiveBlockVariation: getActiveBlockVariation(\n\t\t\t\t\tname,\n\t\t\t\t\tgetBlockAttributes( blockClientId )\n\t\t\t\t),\n\t\t\t\tvariations: name && getBlockVariations( name, 'transform' ),\n\t\t\t};\n\t\t},\n\t\t[ blockClientId ]\n\t);\n\n\tconst selectedValue = activeBlockVariation?.name;\n\n\t// Check if each variation has a unique icon.\n\tconst hasUniqueIcons = useMemo( () => {\n\t\tconst variationIcons = new Set();\n\t\tif ( ! variations ) {\n\t\t\treturn false;\n\t\t}\n\t\tvariations.forEach( ( variation ) => {\n\t\t\tif ( variation.icon ) {\n\t\t\t\tvariationIcons.add( variation.icon?.src || variation.icon );\n\t\t\t}\n\t\t} );\n\t\treturn variationIcons.size === variations.length;\n\t}, [ variations ] );\n\n\tconst onSelectVariation = ( variationName ) => {\n\t\tupdateBlockAttributes( blockClientId, {\n\t\t\t...variations.find( ( { name } ) => name === variationName )\n\t\t\t\t.attributes,\n\t\t} );\n\t};\n\n\t// Skip rendering if there are no variations\n\tif ( ! variations?.length ) {\n\t\treturn null;\n\t}\n\n\tconst baseClass = 'block-editor-block-variation-transforms';\n\n\t// Show buttons if there are more than 5 variations because the ToggleGroupControl does not wrap\n\tconst showButtons = variations.length > 5;\n\n\tconst ButtonComponent = showButtons\n\t\t? VariationsButtons\n\t\t: VariationsToggleGroupControl;\n\n\tconst Component = hasUniqueIcons ? ButtonComponent : VariationsDropdown;\n\n\treturn (\n\t\t<Component\n\t\t\tclassName={ baseClass }\n\t\t\tonSelectVariation={ onSelectVariation }\n\t\t\tselectedValue={ selectedValue }\n\t\t\tvariations={ variations }\n\t\t/>\n\t);\n}\n\nexport default __experim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,MAAMiD,cAAc,GAAG,IAAIC,GAAG,CAAC,CAAC;IAChC,IAAK,CAAE1C,UAAU,EAAG;MACnB,OAAO,KAAK;IACb;IACAA,UAAU,CAAC2C,OAAO,CAAIvC,SAAS,IAAM;MACpC,IAAKA,SAAS,CAACG,IAAI,EAAG;QACrBkC,cAAc,CAACG,GAAG,CAAExC,SAAS,CAACG,IAAI,EAAEsC,GAAG,IAAIzC,SAAS,CAACG,IAAK,CAAC;MAC5D;IACD,CAAE,CAAC;IACH,OAAOkC,cAAc,CAACK,IAAI,KAAK9C,UAAU,CAAC+C,MAAM;EACjD,CAAC,EAAE,CAAE/C,UAAU,CAAG,CAAC;EAEnB,MAAMF,iBAAiB,GAAKkD,aAAa,IAAM;IAC9Cf,qBAAqB,CAAED,aAAa,EAAE;MACrC,GAAGhC,UAAU,CAACiD,IAAI,CAAE,CAAE;QAAE3C;MAAK,CAAC,KAAMA,IAAI,KAAK0C,aAAc,CAAC,CAC1DE;IACH,CAAE,CAAC;EACJ,CAAC;;EAED;EACA,IAAK,CAAElD,UAAU,EAAE+C,MAAM,EAAG;IAC3B,OAAO,IAAI;EACZ;EAEA,MAAMI,SAAS,GAAG,yCAAyC;;EAE3D;EACA,MAAMC,WAAW,GAAGpD,UAAU,CAAC+C,MAAM,GAAG,CAAC;EAEzC,MAAMM,eAAe,GAAGD,WAAW,GAChCxD,iBAAiB,GACjB8B,4BAA4B;EAE/B,MAAM4B,SAAS,GAAGd,cAAc,GAAGa,eAAe,GAAGvC,kBAAkB;EAEvE,OACCb,aAAA,CAACqD,SAAS;IACTzD,SAAS,EAAGsD,SAAW;IACvBrD,iBAAiB,EAAGA,iBAAmB;IACvCC,aAAa,EAAGA,aAAe;IAC/BC,UAAU,EAAGA;EAAY,CACzB,CAAC;AAEJ;AAEA,eAAe+B,sCAAsC","ignoreList":[]}
1
+ {"version":3,"names":["store","blocksStore","__","sprintf","Button","DropdownMenu","MenuGroup","MenuItemsChoice","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOptionIcon","ToggleGroupControlOptionIcon","VisuallyHidden","useSelect","useDispatch","useMemo","chevronDown","BlockIcon","blockEditorStore","jsx","_jsx","jsxs","_jsxs","VariationsButtons","className","onSelectVariation","selectedValue","variations","children","as","map","variation","icon","showColors","isPressed","name","label","title","onClick","showTooltip","VariationsDropdown","selectOptions","description","value","info","text","popoverProps","position","toggleProps","iconPosition","choices","onSelect","VariationsToggleGroupControl","hideLabelFromVision","onChange","__next40pxDefaultSize","__nextHasNoMarginBottom","__experimentalBlockVariationTransforms","blockClientId","updateBlockAttributes","activeBlockVariation","select","getActiveBlockVariation","getBlockVariations","getBlockName","getBlockAttributes","hasUniqueIcons","variationIcons","Set","forEach","add","src","size","length","variationName","find","attributes","baseClass","showButtons","ButtonComponent","Component"],"sources":["@wordpress/block-editor/src/components/block-variation-transforms/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { store as blocksStore } from '@wordpress/blocks';\nimport { __, sprintf } from '@wordpress/i18n';\nimport {\n\tButton,\n\tDropdownMenu,\n\tMenuGroup,\n\tMenuItemsChoice,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOptionIcon as ToggleGroupControlOptionIcon,\n\tVisuallyHidden,\n} from '@wordpress/components';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { useMemo } from '@wordpress/element';\nimport { chevronDown } from '@wordpress/icons';\n\n/**\n * Internal dependencies\n */\nimport BlockIcon from '../block-icon';\nimport { store as blockEditorStore } from '../../store';\n\nfunction VariationsButtons( {\n\tclassName,\n\tonSelectVariation,\n\tselectedValue,\n\tvariations,\n} ) {\n\treturn (\n\t\t<fieldset className={ className }>\n\t\t\t<VisuallyHidden as=\"legend\">\n\t\t\t\t{ __( 'Transform to variation' ) }\n\t\t\t</VisuallyHidden>\n\t\t\t{ variations.map( ( variation ) => (\n\t\t\t\t<Button\n\t\t\t\t\tkey={ variation.name }\n\t\t\t\t\ticon={ <BlockIcon icon={ variation.icon } showColors /> }\n\t\t\t\t\tisPressed={ selectedValue === variation.name }\n\t\t\t\t\tlabel={\n\t\t\t\t\t\tselectedValue === variation.name\n\t\t\t\t\t\t\t? variation.title\n\t\t\t\t\t\t\t: sprintf(\n\t\t\t\t\t\t\t\t\t/* translators: %s: Name of the block variation */\n\t\t\t\t\t\t\t\t\t__( 'Transform to %s' ),\n\t\t\t\t\t\t\t\t\tvariation.title\n\t\t\t\t\t\t\t )\n\t\t\t\t\t}\n\t\t\t\t\tonClick={ () => onSelectVariation( variation.name ) }\n\t\t\t\t\taria-label={ variation.title }\n\t\t\t\t\tshowTooltip\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t</fieldset>\n\t);\n}\n\nfunction VariationsDropdown( {\n\tclassName,\n\tonSelectVariation,\n\tselectedValue,\n\tvariations,\n} ) {\n\tconst selectOptions = variations.map(\n\t\t( { name, title, description } ) => ( {\n\t\t\tvalue: name,\n\t\t\tlabel: title,\n\t\t\tinfo: description,\n\t\t} )\n\t);\n\n\treturn (\n\t\t<DropdownMenu\n\t\t\tclassName={ className }\n\t\t\tlabel={ __( 'Transform to variation' ) }\n\t\t\ttext={ __( 'Transform to variation' ) }\n\t\t\tpopoverProps={ {\n\t\t\t\tposition: 'bottom center',\n\t\t\t\tclassName: `${ className }__popover`,\n\t\t\t} }\n\t\t\ticon={ chevronDown }\n\t\t\ttoggleProps={ { iconPosition: 'right' } }\n\t\t>\n\t\t\t{ () => (\n\t\t\t\t<div className={ `${ className }__container` }>\n\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t<MenuItemsChoice\n\t\t\t\t\t\t\tchoices={ selectOptions }\n\t\t\t\t\t\t\tvalue={ selectedValue }\n\t\t\t\t\t\t\tonSelect={ onSelectVariation }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</MenuGroup>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</DropdownMenu>\n\t);\n}\n\nfunction VariationsToggleGroupControl( {\n\tclassName,\n\tonSelectVariation,\n\tselectedValue,\n\tvariations,\n} ) {\n\treturn (\n\t\t<div className={ className }>\n\t\t\t<ToggleGroupControl\n\t\t\t\tlabel={ __( 'Transform to variation' ) }\n\t\t\t\tvalue={ selectedValue }\n\t\t\t\thideLabelFromVision\n\t\t\t\tonChange={ onSelectVariation }\n\t\t\t\t__next40pxDefaultSize\n\t\t\t\t__nextHasNoMarginBottom\n\t\t\t>\n\t\t\t\t{ variations.map( ( variation ) => (\n\t\t\t\t\t<ToggleGroupControlOptionIcon\n\t\t\t\t\t\tkey={ variation.name }\n\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t<BlockIcon icon={ variation.icon } showColors />\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvalue={ variation.name }\n\t\t\t\t\t\tlabel={\n\t\t\t\t\t\t\tselectedValue === variation.name\n\t\t\t\t\t\t\t\t? variation.title\n\t\t\t\t\t\t\t\t: sprintf(\n\t\t\t\t\t\t\t\t\t\t/* translators: %s: Name of the block variation */\n\t\t\t\t\t\t\t\t\t\t__( 'Transform to %s' ),\n\t\t\t\t\t\t\t\t\t\tvariation.title\n\t\t\t\t\t\t\t\t )\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t) ) }\n\t\t\t</ToggleGroupControl>\n\t\t</div>\n\t);\n}\n\nfunction __experimentalBlockVariationTransforms( { blockClientId } ) {\n\tconst { updateBlockAttributes } = useDispatch( blockEditorStore );\n\tconst { activeBlockVariation, variations } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getActiveBlockVariation, getBlockVariations } =\n\t\t\t\tselect( blocksStore );\n\t\t\tconst { getBlockName, getBlockAttributes } =\n\t\t\t\tselect( blockEditorStore );\n\t\t\tconst name = blockClientId && getBlockName( blockClientId );\n\t\t\treturn {\n\t\t\t\tactiveBlockVariation: getActiveBlockVariation(\n\t\t\t\t\tname,\n\t\t\t\t\tgetBlockAttributes( blockClientId )\n\t\t\t\t),\n\t\t\t\tvariations: name && getBlockVariations( name, 'transform' ),\n\t\t\t};\n\t\t},\n\t\t[ blockClientId ]\n\t);\n\n\tconst selectedValue = activeBlockVariation?.name;\n\n\t// Check if each variation has a unique icon.\n\tconst hasUniqueIcons = useMemo( () => {\n\t\tconst variationIcons = new Set();\n\t\tif ( ! variations ) {\n\t\t\treturn false;\n\t\t}\n\t\tvariations.forEach( ( variation ) => {\n\t\t\tif ( variation.icon ) {\n\t\t\t\tvariationIcons.add( variation.icon?.src || variation.icon );\n\t\t\t}\n\t\t} );\n\t\treturn variationIcons.size === variations.length;\n\t}, [ variations ] );\n\n\tconst onSelectVariation = ( variationName ) => {\n\t\tupdateBlockAttributes( blockClientId, {\n\t\t\t...variations.find( ( { name } ) => name === variationName )\n\t\t\t\t.attributes,\n\t\t} );\n\t};\n\n\t// Skip rendering if there are no variations\n\tif ( ! variations?.length ) {\n\t\treturn null;\n\t}\n\n\tconst baseClass = 'block-editor-block-variation-transforms';\n\n\t// Show buttons if there are more than 5 variations because the ToggleGroupControl does not wrap\n\tconst showButtons = variations.length > 5;\n\n\tconst ButtonComponent = showButtons\n\t\t? VariationsButtons\n\t\t: VariationsToggleGroupControl;\n\n\tconst Component = hasUniqueIcons ? ButtonComponent : VariationsDropdown;\n\n\treturn (\n\t\t<Component\n\t\t\tclassName={ baseClass }\n\t\t\tonSelectVariation={ onSelectVariation }\n\t\t\tselectedValue={ selectedValue }\n\t\t\tvariations={ variations }\n\t\t/>\n\t);\n}\n\nexport default __experimentalBlockVariationTransforms;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,KAAK,IAAIC,WAAW,QAAQ,mBAAmB;AACxD,SAASC,EAAE,EAAEC,OAAO,QAAQ,iBAAiB;AAC7C,SACCC,MAAM,EACNC,YAAY,EACZC,SAAS,EACTC,eAAe,EACfC,gCAAgC,IAAIC,kBAAkB,EACtDC,0CAA0C,IAAIC,4BAA4B,EAC1EC,cAAc,QACR,uBAAuB;AAC9B,SAASC,SAAS,EAAEC,WAAW,QAAQ,iBAAiB;AACx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;MACpC,IAAKA,SAAS,CAACC,IAAI,EAAG;QACrBmC,cAAc,CAACG,GAAG,CAAEvC,SAAS,CAACC,IAAI,EAAEuC,GAAG,IAAIxC,SAAS,CAACC,IAAK,CAAC;MAC5D;IACD,CAAE,CAAC;IACH,OAAOmC,cAAc,CAACK,IAAI,KAAK7C,UAAU,CAAC8C,MAAM;EACjD,CAAC,EAAE,CAAE9C,UAAU,CAAG,CAAC;EAEnB,MAAMF,iBAAiB,GAAKiD,aAAa,IAAM;IAC9Cf,qBAAqB,CAAED,aAAa,EAAE;MACrC,GAAG/B,UAAU,CAACgD,IAAI,CAAE,CAAE;QAAExC;MAAK,CAAC,KAAMA,IAAI,KAAKuC,aAAc,CAAC,CAC1DE;IACH,CAAE,CAAC;EACJ,CAAC;;EAED;EACA,IAAK,CAAEjD,UAAU,EAAE8C,MAAM,EAAG;IAC3B,OAAO,IAAI;EACZ;EAEA,MAAMI,SAAS,GAAG,yCAAyC;;EAE3D;EACA,MAAMC,WAAW,GAAGnD,UAAU,CAAC8C,MAAM,GAAG,CAAC;EAEzC,MAAMM,eAAe,GAAGD,WAAW,GAChCvD,iBAAiB,GACjB6B,4BAA4B;EAE/B,MAAM4B,SAAS,GAAGd,cAAc,GAAGa,eAAe,GAAGvC,kBAAkB;EAEvE,oBACCpB,IAAA,CAAC4D,SAAS;IACTxD,SAAS,EAAGqD,SAAW;IACvBpD,iBAAiB,EAAGA,iBAAmB;IACvCC,aAAa,EAAGA,aAAe;IAC/BC,UAAU,EAAGA;EAAY,CACzB,CAAC;AAEJ;AAEA,eAAe8B,sCAAsC","ignoreList":[]}
@@ -1,36 +1,41 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
5
4
  import { Path, SVG } from '@wordpress/components';
6
- export const alignBottom = createElement(SVG, {
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const alignBottom = /*#__PURE__*/_jsx(SVG, {
7
7
  xmlns: "http://www.w3.org/2000/svg",
8
- viewBox: "0 0 24 24"
9
- }, createElement(Path, {
10
- d: "M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"
11
- }));
12
- export const alignCenter = createElement(SVG, {
8
+ viewBox: "0 0 24 24",
9
+ children: /*#__PURE__*/_jsx(Path, {
10
+ d: "M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"
11
+ })
12
+ });
13
+ export const alignCenter = /*#__PURE__*/_jsx(SVG, {
13
14
  xmlns: "http://www.w3.org/2000/svg",
14
- viewBox: "0 0 24 24"
15
- }, createElement(Path, {
16
- d: "M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"
17
- }));
18
- export const alignTop = createElement(SVG, {
15
+ viewBox: "0 0 24 24",
16
+ children: /*#__PURE__*/_jsx(Path, {
17
+ d: "M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"
18
+ })
19
+ });
20
+ export const alignTop = /*#__PURE__*/_jsx(SVG, {
19
21
  xmlns: "http://www.w3.org/2000/svg",
20
- viewBox: "0 0 24 24"
21
- }, createElement(Path, {
22
- d: "M9 20h6V9H9v11zM4 4v1.5h16V4H4z"
23
- }));
24
- export const alignStretch = createElement(SVG, {
22
+ viewBox: "0 0 24 24",
23
+ children: /*#__PURE__*/_jsx(Path, {
24
+ d: "M9 20h6V9H9v11zM4 4v1.5h16V4H4z"
25
+ })
26
+ });
27
+ export const alignStretch = /*#__PURE__*/_jsx(SVG, {
25
28
  xmlns: "http://www.w3.org/2000/svg",
26
- viewBox: "0 0 24 24"
27
- }, createElement(Path, {
28
- d: "M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"
29
- }));
30
- export const spaceBetween = createElement(SVG, {
29
+ viewBox: "0 0 24 24",
30
+ children: /*#__PURE__*/_jsx(Path, {
31
+ d: "M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"
32
+ })
33
+ });
34
+ export const spaceBetween = /*#__PURE__*/_jsx(SVG, {
31
35
  xmlns: "http://www.w3.org/2000/svg",
32
- viewBox: "0 0 24 24"
33
- }, createElement(Path, {
34
- d: "M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"
35
- }));
36
+ viewBox: "0 0 24 24",
37
+ children: /*#__PURE__*/_jsx(Path, {
38
+ d: "M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"
39
+ })
40
+ });
36
41
  //# sourceMappingURL=icons.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Path","SVG","alignBottom","createElement","xmlns","viewBox","d","alignCenter","alignTop","alignStretch","spaceBetween"],"sources":["@wordpress/block-editor/src/components/block-vertical-alignment-control/icons.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Path, SVG } from '@wordpress/components';\n\nexport const alignBottom = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z\" />\n\t</SVG>\n);\n\nexport const alignCenter = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z\" />\n\t</SVG>\n);\n\nexport const alignTop = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M9 20h6V9H9v11zM4 4v1.5h16V4H4z\" />\n\t</SVG>\n);\n\nexport const alignStretch = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z\" />\n\t</SVG>\n);\n\nexport const spaceBetween = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z\" />\n\t</SVG>\n);\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,IAAI,EAAEC,GAAG,QAAQ,uBAAuB;AAEjD,OAAO,MAAMC,WAAW,GACvBC,aAAA,CAACF,GAAG;EAACG,KAAK,EAAC,4BAA4B;EAACC,OAAO,EAAC;AAAW,GAC1DF,aAAA,CAACH,IAAI;EAACM,CAAC,EAAC;AAAsC,CAAE,CAC5C,CACL;AAED,OAAO,MAAMC,WAAW,GACvBJ,aAAA,CAACF,GAAG;EAACG,KAAK,EAAC,4BAA4B;EAACC,OAAO,EAAC;AAAW,GAC1DF,aAAA,CAACH,IAAI;EAACM,CAAC,EAAC;AAAsC,CAAE,CAC5C,CACL;AAED,OAAO,MAAME,QAAQ,GACpBL,aAAA,CAACF,GAAG;EAACG,KAAK,EAAC,4BAA4B;EAACC,OAAO,EAAC;AAAW,GAC1DF,aAAA,CAACH,IAAI;EAACM,CAAC,EAAC;AAAiC,CAAE,CACvC,CACL;AAED,OAAO,MAAMG,YAAY,GACxBN,aAAA,CAACF,GAAG;EAACG,KAAK,EAAC,4BAA4B;EAACC,OAAO,EAAC;AAAW,GAC1DF,aAAA,CAACH,IAAI;EAACM,CAAC,EAAC;AAA4F,CAAE,CAClG,CACL;AAED,OAAO,MAAMI,YAAY,GACxBP,aAAA,CAACF,GAAG;EAACG,KAAK,EAAC,4BAA4B;EAACC,OAAO,EAAC;AAAW,GAC1DF,aAAA,CAACH,IAAI;EAACM,CAAC,EAAC;AAAoE,CAAE,CAC1E,CACL","ignoreList":[]}
1
+ {"version":3,"names":["Path","SVG","jsx","_jsx","alignBottom","xmlns","viewBox","children","d","alignCenter","alignTop","alignStretch","spaceBetween"],"sources":["@wordpress/block-editor/src/components/block-vertical-alignment-control/icons.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Path, SVG } from '@wordpress/components';\n\nexport const alignBottom = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z\" />\n\t</SVG>\n);\n\nexport const alignCenter = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z\" />\n\t</SVG>\n);\n\nexport const alignTop = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M9 20h6V9H9v11zM4 4v1.5h16V4H4z\" />\n\t</SVG>\n);\n\nexport const alignStretch = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z\" />\n\t</SVG>\n);\n\nexport const spaceBetween = (\n\t<SVG xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n\t\t<Path d=\"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z\" />\n\t</SVG>\n);\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,IAAI,EAAEC,GAAG,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAElD,OAAO,MAAMC,WAAW,gBACvBD,IAAA,CAACF,GAAG;EAACI,KAAK,EAAC,4BAA4B;EAACC,OAAO,EAAC,WAAW;EAAAC,QAAA,eAC1DJ,IAAA,CAACH,IAAI;IAACQ,CAAC,EAAC;EAAsC,CAAE;AAAC,CAC7C,CACL;AAED,OAAO,MAAMC,WAAW,gBACvBN,IAAA,CAACF,GAAG;EAACI,KAAK,EAAC,4BAA4B;EAACC,OAAO,EAAC,WAAW;EAAAC,QAAA,eAC1DJ,IAAA,CAACH,IAAI;IAACQ,CAAC,EAAC;EAAsC,CAAE;AAAC,CAC7C,CACL;AAED,OAAO,MAAME,QAAQ,gBACpBP,IAAA,CAACF,GAAG;EAACI,KAAK,EAAC,4BAA4B;EAACC,OAAO,EAAC,WAAW;EAAAC,QAAA,eAC1DJ,IAAA,CAACH,IAAI;IAACQ,CAAC,EAAC;EAAiC,CAAE;AAAC,CACxC,CACL;AAED,OAAO,MAAMG,YAAY,gBACxBR,IAAA,CAACF,GAAG;EAACI,KAAK,EAAC,4BAA4B;EAACC,OAAO,EAAC,WAAW;EAAAC,QAAA,eAC1DJ,IAAA,CAACH,IAAI;IAACQ,CAAC,EAAC;EAA4F,CAAE;AAAC,CACnG,CACL;AAED,OAAO,MAAMI,YAAY,gBACxBT,IAAA,CAACF,GAAG;EAACI,KAAK,EAAC,4BAA4B;EAACC,OAAO,EAAC,WAAW;EAAAC,QAAA,eAC1DJ,IAAA,CAACH,IAAI;IAACQ,CAAC,EAAC;EAAoE,CAAE;AAAC,CAC3E,CACL","ignoreList":[]}
@@ -1,16 +1,16 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * Internal dependencies
4
3
  */
5
4
  import BlockVerticalAlignmentUI from './ui';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  const BlockVerticalAlignmentControl = props => {
7
- return createElement(BlockVerticalAlignmentUI, {
7
+ return /*#__PURE__*/_jsx(BlockVerticalAlignmentUI, {
8
8
  ...props,
9
9
  isToolbar: false
10
10
  });
11
11
  };
12
12
  const BlockVerticalAlignmentToolbar = props => {
13
- return createElement(BlockVerticalAlignmentUI, {
13
+ return /*#__PURE__*/_jsx(BlockVerticalAlignmentUI, {
14
14
  ...props,
15
15
  isToolbar: true
16
16
  });
@@ -1 +1 @@
1
- {"version":3,"names":["BlockVerticalAlignmentUI","BlockVerticalAlignmentControl","props","createElement","isToolbar","BlockVerticalAlignmentToolbar"],"sources":["@wordpress/block-editor/src/components/block-vertical-alignment-control/index.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport BlockVerticalAlignmentUI from './ui';\n\nconst BlockVerticalAlignmentControl = ( props ) => {\n\treturn <BlockVerticalAlignmentUI { ...props } isToolbar={ false } />;\n};\n\nconst BlockVerticalAlignmentToolbar = ( props ) => {\n\treturn <BlockVerticalAlignmentUI { ...props } isToolbar />;\n};\n\n/**\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/block-vertical-alignment-control/README.md\n */\nexport { BlockVerticalAlignmentControl, BlockVerticalAlignmentToolbar };\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,wBAAwB,MAAM,MAAM;AAE3C,MAAMC,6BAA6B,GAAKC,KAAK,IAAM;EAClD,OAAOC,aAAA,CAACH,wBAAwB;IAAA,GAAME,KAAK;IAAGE,SAAS,EAAG;EAAO,CAAE,CAAC;AACrE,CAAC;AAED,MAAMC,6BAA6B,GAAKH,KAAK,IAAM;EAClD,OAAOC,aAAA,CAACH,wBAAwB;IAAA,GAAME,KAAK;IAAGE,SAAS;EAAA,CAAE,CAAC;AAC3D,CAAC;;AAED;AACA;AACA;AACA,SAASH,6BAA6B,EAAEI,6BAA6B","ignoreList":[]}
1
+ {"version":3,"names":["BlockVerticalAlignmentUI","jsx","_jsx","BlockVerticalAlignmentControl","props","isToolbar","BlockVerticalAlignmentToolbar"],"sources":["@wordpress/block-editor/src/components/block-vertical-alignment-control/index.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport BlockVerticalAlignmentUI from './ui';\n\nconst BlockVerticalAlignmentControl = ( props ) => {\n\treturn <BlockVerticalAlignmentUI { ...props } isToolbar={ false } />;\n};\n\nconst BlockVerticalAlignmentToolbar = ( props ) => {\n\treturn <BlockVerticalAlignmentUI { ...props } isToolbar />;\n};\n\n/**\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/block-vertical-alignment-control/README.md\n */\nexport { BlockVerticalAlignmentControl, BlockVerticalAlignmentToolbar };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,wBAAwB,MAAM,MAAM;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5C,MAAMC,6BAA6B,GAAKC,KAAK,IAAM;EAClD,oBAAOF,IAAA,CAACF,wBAAwB;IAAA,GAAMI,KAAK;IAAGC,SAAS,EAAG;EAAO,CAAE,CAAC;AACrE,CAAC;AAED,MAAMC,6BAA6B,GAAKF,KAAK,IAAM;EAClD,oBAAOF,IAAA,CAACF,wBAAwB;IAAA,GAAMI,KAAK;IAAGC,SAAS;EAAA,CAAE,CAAC;AAC3D,CAAC;;AAED;AACA;AACA;AACA,SAASF,6BAA6B,EAAEG,6BAA6B","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
@@ -9,6 +8,7 @@ import { ToolbarGroup, ToolbarDropdownMenu } from '@wordpress/components';
9
8
  * Internal dependencies
10
9
  */
11
10
  import { alignTop, alignCenter, alignBottom, alignStretch, spaceBetween } from './icons';
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
12
  const BLOCK_ALIGNMENTS_CONTROLS = {
13
13
  top: {
14
14
  icon: alignTop,
@@ -49,7 +49,7 @@ function BlockVerticalAlignmentUI({
49
49
  const extraProps = isToolbar ? {
50
50
  isCollapsed
51
51
  } : {};
52
- return createElement(UIComponent, {
52
+ return /*#__PURE__*/_jsx(UIComponent, {
53
53
  icon: activeAlignment ? activeAlignment.icon : defaultAlignmentControl.icon,
54
54
  label: _x('Change vertical alignment', 'Block vertical alignment setting label'),
55
55
  controls: controls.map(control => {
@@ -1 +1 @@
1
- {"version":3,"names":["_x","ToolbarGroup","ToolbarDropdownMenu","alignTop","alignCenter","alignBottom","alignStretch","spaceBetween","BLOCK_ALIGNMENTS_CONTROLS","top","icon","title","center","bottom","stretch","DEFAULT_CONTROLS","DEFAULT_CONTROL","BlockVerticalAlignmentUI","value","onChange","controls","isCollapsed","isToolbar","applyOrUnset","align","undefined","activeAlignment","defaultAlignmentControl","UIComponent","extraProps","createElement","label","map","control","isActive","role","onClick"],"sources":["@wordpress/block-editor/src/components/block-vertical-alignment-control/ui.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { _x } from '@wordpress/i18n';\nimport { ToolbarGroup, ToolbarDropdownMenu } from '@wordpress/components';\n\n/**\n * Internal dependencies\n */\nimport {\n\talignTop,\n\talignCenter,\n\talignBottom,\n\talignStretch,\n\tspaceBetween,\n} from './icons';\n\nconst BLOCK_ALIGNMENTS_CONTROLS = {\n\ttop: {\n\t\ticon: alignTop,\n\t\ttitle: _x( 'Align top', 'Block vertical alignment setting' ),\n\t},\n\tcenter: {\n\t\ticon: alignCenter,\n\t\ttitle: _x( 'Align middle', 'Block vertical alignment setting' ),\n\t},\n\tbottom: {\n\t\ticon: alignBottom,\n\t\ttitle: _x( 'Align bottom', 'Block vertical alignment setting' ),\n\t},\n\tstretch: {\n\t\ticon: alignStretch,\n\t\ttitle: _x( 'Stretch to fill', 'Block vertical alignment setting' ),\n\t},\n\t'space-between': {\n\t\ticon: spaceBetween,\n\t\ttitle: _x( 'Space between', 'Block vertical alignment setting' ),\n\t},\n};\n\nconst DEFAULT_CONTROLS = [ 'top', 'center', 'bottom' ];\nconst DEFAULT_CONTROL = 'top';\n\nfunction BlockVerticalAlignmentUI( {\n\tvalue,\n\tonChange,\n\tcontrols = DEFAULT_CONTROLS,\n\tisCollapsed = true,\n\tisToolbar,\n} ) {\n\tfunction applyOrUnset( align ) {\n\t\treturn () => onChange( value === align ? undefined : align );\n\t}\n\n\tconst activeAlignment = BLOCK_ALIGNMENTS_CONTROLS[ value ];\n\tconst defaultAlignmentControl =\n\t\tBLOCK_ALIGNMENTS_CONTROLS[ DEFAULT_CONTROL ];\n\n\tconst UIComponent = isToolbar ? ToolbarGroup : ToolbarDropdownMenu;\n\tconst extraProps = isToolbar ? { isCollapsed } : {};\n\n\treturn (\n\t\t<UIComponent\n\t\t\ticon={\n\t\t\t\tactiveAlignment\n\t\t\t\t\t? activeAlignment.icon\n\t\t\t\t\t: defaultAlignmentControl.icon\n\t\t\t}\n\t\t\tlabel={ _x(\n\t\t\t\t'Change vertical alignment',\n\t\t\t\t'Block vertical alignment setting label'\n\t\t\t) }\n\t\t\tcontrols={ controls.map( ( control ) => {\n\t\t\t\treturn {\n\t\t\t\t\t...BLOCK_ALIGNMENTS_CONTROLS[ control ],\n\t\t\t\t\tisActive: value === control,\n\t\t\t\t\trole: isCollapsed ? 'menuitemradio' : undefined,\n\t\t\t\t\tonClick: applyOrUnset( control ),\n\t\t\t\t};\n\t\t\t} ) }\n\t\t\t{ ...extraProps }\n\t\t/>\n\t);\n}\n\n/**\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/block-vertical-alignment-toolbar/README.md\n */\nexport default BlockVerticalAlignmentUI;\n"],"mappings":";AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;AACpC,SAASC,YAAY,EAAEC,mBAAmB,QAAQ,uBAAuB;;AAEzE;AACA;AACA;AACA,SACCC,QAAQ,EACRC,WAAW,EACXC,WAAW,EACXC,YAAY,EACZC,YAAY,QACN,SAAS;AAEhB,MAAMC,yBAAyB,GAAG;EACjCC,GAAG,EAAE;IACJC,IAAI,EAAEP,QAAQ;IACdQ,KAAK,EAAEX,EAAE,CAAE,WAAW,EAAE,kCAAmC;EAC5D,CAAC;EACDY,MAAM,EAAE;IACPF,IAAI,EAAEN,WAAW;IACjBO,KAAK,EAAEX,EAAE,CAAE,cAAc,EAAE,kCAAmC;EAC/D,CAAC;EACDa,MAAM,EAAE;IACPH,IAAI,EAAEL,WAAW;IACjBM,KAAK,EAAEX,EAAE,CAAE,cAAc,EAAE,kCAAmC;EAC/D,CAAC;EACDc,OAAO,EAAE;IACRJ,IAAI,EAAEJ,YAAY;IAClBK,KAAK,EAAEX,EAAE,CAAE,iBAAiB,EAAE,k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CAAC;AAEJ;;AAEA;AACA;AACA;AACA,eAAeZ,wBAAwB","ignoreList":[]}
1
+ {"version":3,"names":["_x","ToolbarGroup","ToolbarDropdownMenu","alignTop","alignCenter","alignBottom","alignStretch","spaceBetween","jsx","_jsx","BLOCK_ALIGNMENTS_CONTROLS","top","icon","title","center","bottom","stretch","DEFAULT_CONTROLS","DEFAULT_CONTROL","BlockVerticalAlignmentUI","value","onChange","controls","isCollapsed","isToolbar","applyOrUnset","align","undefined","activeAlignment","defaultAlignmentControl","UIComponent","extraProps","label","map","control","isActive","role","onClick"],"sources":["@wordpress/block-editor/src/components/block-vertical-alignment-control/ui.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { _x } from '@wordpress/i18n';\nimport { ToolbarGroup, ToolbarDropdownMenu } from '@wordpress/components';\n\n/**\n * Internal dependencies\n */\nimport {\n\talignTop,\n\talignCenter,\n\talignBottom,\n\talignStretch,\n\tspaceBetween,\n} from './icons';\n\nconst BLOCK_ALIGNMENTS_CONTROLS = {\n\ttop: {\n\t\ticon: alignTop,\n\t\ttitle: _x( 'Align top', 'Block vertical alignment setting' ),\n\t},\n\tcenter: {\n\t\ticon: alignCenter,\n\t\ttitle: _x( 'Align middle', 'Block vertical alignment setting' ),\n\t},\n\tbottom: {\n\t\ticon: alignBottom,\n\t\ttitle: _x( 'Align bottom', 'Block vertical alignment setting' ),\n\t},\n\tstretch: {\n\t\ticon: alignStretch,\n\t\ttitle: _x( 'Stretch to fill', 'Block vertical alignment setting' ),\n\t},\n\t'space-between': {\n\t\ticon: spaceBetween,\n\t\ttitle: _x( 'Space between', 'Block vertical alignment setting' ),\n\t},\n};\n\nconst DEFAULT_CONTROLS = [ 'top', 'center', 'bottom' ];\nconst DEFAULT_CONTROL = 'top';\n\nfunction BlockVerticalAlignmentUI( {\n\tvalue,\n\tonChange,\n\tcontrols = DEFAULT_CONTROLS,\n\tisCollapsed = true,\n\tisToolbar,\n} ) {\n\tfunction applyOrUnset( align ) {\n\t\treturn () => onChange( value === align ? undefined : align );\n\t}\n\n\tconst activeAlignment = BLOCK_ALIGNMENTS_CONTROLS[ value ];\n\tconst defaultAlignmentControl =\n\t\tBLOCK_ALIGNMENTS_CONTROLS[ DEFAULT_CONTROL ];\n\n\tconst UIComponent = isToolbar ? ToolbarGroup : ToolbarDropdownMenu;\n\tconst extraProps = isToolbar ? { isCollapsed } : {};\n\n\treturn (\n\t\t<UIComponent\n\t\t\ticon={\n\t\t\t\tactiveAlignment\n\t\t\t\t\t? activeAlignment.icon\n\t\t\t\t\t: defaultAlignmentControl.icon\n\t\t\t}\n\t\t\tlabel={ _x(\n\t\t\t\t'Change vertical alignment',\n\t\t\t\t'Block vertical alignment setting label'\n\t\t\t) }\n\t\t\tcontrols={ controls.map( ( control ) => {\n\t\t\t\treturn {\n\t\t\t\t\t...BLOCK_ALIGNMENTS_CONTROLS[ control ],\n\t\t\t\t\tisActive: value === control,\n\t\t\t\t\trole: isCollapsed ? 'menuitemradio' : undefined,\n\t\t\t\t\tonClick: applyOrUnset( control ),\n\t\t\t\t};\n\t\t\t} ) }\n\t\t\t{ ...extraProps }\n\t\t/>\n\t);\n}\n\n/**\n * @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/block-vertical-alignment-toolbar/README.md\n */\nexport default BlockVerticalAlignmentUI;\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;AACpC,SAASC,YAAY,EAAEC,mBAAmB,QAAQ,uBAAuB;;AAEzE;AACA;AACA;AACA,SACCC,QAAQ,EACRC,WAAW,EACXC,WAAW,EACXC,YAAY,EACZC,YAAY,QACN,SAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEjB,MAAMC,yBAAyB,GAAG;EACjCC,GAAG,EAAE;IACJC,IAAI,EAAET,QAAQ;IACdU,KAAK,EAAEb,EAAE,CAAE,WAAW,EAAE,kCAAmC;EAC5D,CAAC;EACDc,MAAM,EAAE;IACPF,IAAI,EAAER,WA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