@wordpress/edit-site 5.35.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (905) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/components/add-new-page/index.js +33 -27
  3. package/build/components/add-new-page/index.js.map +1 -1
  4. package/build/components/add-new-pattern/index.js +95 -78
  5. package/build/components/add-new-pattern/index.js.map +1 -1
  6. package/build/components/add-new-template/add-custom-generic-template-modal-content.js +35 -30
  7. package/build/components/add-new-template/add-custom-generic-template-modal-content.js.map +1 -1
  8. package/build/components/add-new-template/add-custom-template-modal-content.js +119 -95
  9. package/build/components/add-new-template/add-custom-template-modal-content.js.map +1 -1
  10. package/build/components/add-new-template/index.js +87 -71
  11. package/build/components/add-new-template/index.js.map +1 -1
  12. package/build/components/add-new-template/utils.js +36 -17
  13. package/build/components/add-new-template/utils.js.map +1 -1
  14. package/build/components/app/index.js +10 -4
  15. package/build/components/app/index.js.map +1 -1
  16. package/build/components/block-editor/block-inspector-button.js +5 -4
  17. package/build/components/block-editor/block-inspector-button.js.map +1 -1
  18. package/build/components/block-editor/inserter-media-categories.js +1 -1
  19. package/build/components/block-editor/inserter-media-categories.js.map +1 -1
  20. package/build/components/block-editor/use-editor-iframe-props.js +88 -0
  21. package/build/components/block-editor/use-editor-iframe-props.js.map +1 -0
  22. package/build/components/canvas-loader/index.js +13 -12
  23. package/build/components/canvas-loader/index.js.map +1 -1
  24. package/build/components/dataviews-actions/index.js +7 -4
  25. package/build/components/dataviews-actions/index.js.map +1 -1
  26. package/build/components/editor/index.js +86 -182
  27. package/build/components/editor/index.js.map +1 -1
  28. package/build/components/editor/use-editor-title.js +39 -0
  29. package/build/components/editor/use-editor-title.js.map +1 -0
  30. package/build/components/editor-canvas-container/index.js +27 -29
  31. package/build/components/editor-canvas-container/index.js.map +1 -1
  32. package/build/components/error-boundary/index.js +2 -2
  33. package/build/components/error-boundary/index.js.map +1 -1
  34. package/build/components/error-boundary/warning.js +13 -11
  35. package/build/components/error-boundary/warning.js.map +1 -1
  36. package/build/components/global-styles/background-panel.js +6 -5
  37. package/build/components/global-styles/background-panel.js.map +1 -1
  38. package/build/components/global-styles/block-preview-panel.js +19 -17
  39. package/build/components/global-styles/block-preview-panel.js.map +1 -1
  40. package/build/components/global-styles/color-indicator-wrapper.js +2 -2
  41. package/build/components/global-styles/color-indicator-wrapper.js.map +1 -1
  42. package/build/components/global-styles/color-palette-panel.js +30 -29
  43. package/build/components/global-styles/color-palette-panel.js.map +1 -1
  44. package/build/components/global-styles/dimensions-panel.js +2 -2
  45. package/build/components/global-styles/dimensions-panel.js.map +1 -1
  46. package/build/components/global-styles/font-families.js +55 -39
  47. package/build/components/global-styles/font-families.js.map +1 -1
  48. package/build/components/global-styles/font-family-item.js +17 -13
  49. package/build/components/global-styles/font-family-item.js.map +1 -1
  50. package/build/components/global-styles/font-library-modal/collection-font-variant.js +25 -22
  51. package/build/components/global-styles/font-library-modal/collection-font-variant.js.map +1 -1
  52. package/build/components/global-styles/font-library-modal/context.js +7 -30
  53. package/build/components/global-styles/font-library-modal/context.js.map +1 -1
  54. package/build/components/global-styles/font-library-modal/font-card.js +24 -16
  55. package/build/components/global-styles/font-library-modal/font-card.js.map +1 -1
  56. package/build/components/global-styles/font-library-modal/font-collection.js +195 -152
  57. package/build/components/global-styles/font-library-modal/font-collection.js.map +1 -1
  58. package/build/components/global-styles/font-library-modal/font-demo.js +14 -12
  59. package/build/components/global-styles/font-library-modal/font-demo.js.map +1 -1
  60. package/build/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js +29 -20
  61. package/build/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js.map +1 -1
  62. package/build/components/global-styles/font-library-modal/index.js +41 -36
  63. package/build/components/global-styles/font-library-modal/index.js.map +1 -1
  64. package/build/components/global-styles/font-library-modal/installed-fonts.js +153 -109
  65. package/build/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
  66. package/build/components/global-styles/font-library-modal/library-font-details.js +16 -14
  67. package/build/components/global-styles/font-library-modal/library-font-details.js.map +1 -1
  68. package/build/components/global-styles/font-library-modal/library-font-variant.js +25 -22
  69. package/build/components/global-styles/font-library-modal/library-font-variant.js.map +1 -1
  70. package/build/components/global-styles/font-library-modal/upload-fonts.js +40 -34
  71. package/build/components/global-styles/font-library-modal/upload-fonts.js.map +1 -1
  72. package/build/components/global-styles/font-library-modal/utils/index.js +3 -3
  73. package/build/components/global-styles/font-library-modal/utils/index.js.map +1 -1
  74. package/build/components/global-styles/gradients-palette-panel.js +41 -37
  75. package/build/components/global-styles/gradients-palette-panel.js.map +1 -1
  76. package/build/components/global-styles/header.js +37 -28
  77. package/build/components/global-styles/header.js.map +1 -1
  78. package/build/components/global-styles/highlighted-colors.js +3 -4
  79. package/build/components/global-styles/highlighted-colors.js.map +1 -1
  80. package/build/components/global-styles/hooks.js +11 -23
  81. package/build/components/global-styles/hooks.js.map +1 -1
  82. package/build/components/global-styles/icon-with-current-color.js +2 -2
  83. package/build/components/global-styles/icon-with-current-color.js.map +1 -1
  84. package/build/components/global-styles/navigation-button.js +15 -11
  85. package/build/components/global-styles/navigation-button.js.map +1 -1
  86. package/build/components/global-styles/palette.js +39 -32
  87. package/build/components/global-styles/palette.js.map +1 -1
  88. package/build/components/global-styles/preset-colors.js +3 -4
  89. package/build/components/global-styles/preset-colors.js.map +1 -1
  90. package/build/components/global-styles/preview-colors.js +22 -20
  91. package/build/components/global-styles/preview-colors.js.map +1 -1
  92. package/build/components/global-styles/preview-iframe.js +34 -29
  93. package/build/components/global-styles/preview-iframe.js.map +1 -1
  94. package/build/components/global-styles/preview-styles.js +95 -90
  95. package/build/components/global-styles/preview-styles.js.map +1 -1
  96. package/build/components/global-styles/root-menu.js +28 -21
  97. package/build/components/global-styles/root-menu.js.map +1 -1
  98. package/build/components/global-styles/screen-background.js +6 -4
  99. package/build/components/global-styles/screen-background.js.map +1 -1
  100. package/build/components/global-styles/screen-block-list.js +33 -27
  101. package/build/components/global-styles/screen-block-list.js.map +1 -1
  102. package/build/components/global-styles/screen-block.js +62 -53
  103. package/build/components/global-styles/screen-block.js.map +1 -1
  104. package/build/components/global-styles/screen-color-palette.js +29 -19
  105. package/build/components/global-styles/screen-color-palette.js.map +1 -1
  106. package/build/components/global-styles/screen-colors.js +18 -14
  107. package/build/components/global-styles/screen-colors.js.map +1 -1
  108. package/build/components/global-styles/screen-css.js +20 -14
  109. package/build/components/global-styles/screen-css.js.map +1 -1
  110. package/build/components/global-styles/screen-layout.js +9 -4
  111. package/build/components/global-styles/screen-layout.js.map +1 -1
  112. package/build/components/global-styles/screen-revisions/index.js +52 -42
  113. package/build/components/global-styles/screen-revisions/index.js.map +1 -1
  114. package/build/components/global-styles/screen-revisions/revisions-buttons.js +81 -70
  115. package/build/components/global-styles/screen-revisions/revisions-buttons.js.map +1 -1
  116. package/build/components/global-styles/screen-revisions/use-global-styles-revisions.js +1 -0
  117. package/build/components/global-styles/screen-revisions/use-global-styles-revisions.js.map +1 -1
  118. package/build/components/global-styles/screen-root.js +76 -42
  119. package/build/components/global-styles/screen-root.js.map +1 -1
  120. package/build/components/global-styles/screen-shadows.js +22 -0
  121. package/build/components/global-styles/screen-shadows.js.map +1 -0
  122. package/build/components/global-styles/screen-style-variations.js +14 -9
  123. package/build/components/global-styles/screen-style-variations.js.map +1 -1
  124. package/build/components/global-styles/screen-typography-element.js +50 -45
  125. package/build/components/global-styles/screen-typography-element.js.map +1 -1
  126. package/build/components/global-styles/screen-typography.js +15 -11
  127. package/build/components/global-styles/screen-typography.js.map +1 -1
  128. package/build/components/global-styles/shadow-utils.js +230 -0
  129. package/build/components/global-styles/shadow-utils.js.map +1 -0
  130. package/build/components/global-styles/shadows-edit-panel.js +458 -0
  131. package/build/components/global-styles/shadows-edit-panel.js.map +1 -0
  132. package/build/components/global-styles/shadows-panel.js +128 -0
  133. package/build/components/global-styles/shadows-panel.js.map +1 -0
  134. package/build/components/global-styles/style-variations-container.js +67 -18
  135. package/build/components/global-styles/style-variations-container.js.map +1 -1
  136. package/build/components/global-styles/subtitle.js +5 -4
  137. package/build/components/global-styles/subtitle.js.map +1 -1
  138. package/build/components/global-styles/typography-elements.js +53 -45
  139. package/build/components/global-styles/typography-elements.js.map +1 -1
  140. package/build/components/global-styles/typography-example.js +11 -8
  141. package/build/components/global-styles/typography-example.js.map +1 -1
  142. package/build/components/global-styles/typography-panel.js +2 -2
  143. package/build/components/global-styles/typography-panel.js.map +1 -1
  144. package/build/components/global-styles/typography-preview.js +5 -4
  145. package/build/components/global-styles/typography-preview.js.map +1 -1
  146. package/build/components/global-styles/ui.js +124 -92
  147. package/build/components/global-styles/ui.js.map +1 -1
  148. package/build/components/global-styles/utils.js +28 -0
  149. package/build/components/global-styles/utils.js.map +1 -1
  150. package/build/components/global-styles/variations/variation.js +27 -22
  151. package/build/components/global-styles/variations/variation.js.map +1 -1
  152. package/build/components/global-styles/variations/variations-color.js +18 -13
  153. package/build/components/global-styles/variations/variations-color.js.map +1 -1
  154. package/build/components/global-styles/variations/variations-panel.js +27 -17
  155. package/build/components/global-styles/variations/variations-panel.js.map +1 -1
  156. package/build/components/global-styles/variations/variations-typography.js +37 -31
  157. package/build/components/global-styles/variations/variations-typography.js.map +1 -1
  158. package/build/components/global-styles-renderer/index.js +5 -1
  159. package/build/components/global-styles-renderer/index.js.map +1 -1
  160. package/build/components/global-styles-sidebar/default-sidebar.js +22 -18
  161. package/build/components/global-styles-sidebar/default-sidebar.js.map +1 -1
  162. package/build/components/global-styles-sidebar/index.js +36 -26
  163. package/build/components/global-styles-sidebar/index.js.map +1 -1
  164. package/build/components/layout/index.js +92 -118
  165. package/build/components/layout/index.js.map +1 -1
  166. package/build/components/layout/router.js +83 -103
  167. package/build/components/layout/router.js.map +1 -1
  168. package/build/components/media/index.js +2 -2
  169. package/build/components/media/index.js.map +1 -1
  170. package/build/components/{header-edit-mode/more-menu → more-menu}/index.js +7 -3
  171. package/build/components/more-menu/index.js.map +1 -0
  172. package/build/components/{header-edit-mode/more-menu → more-menu}/site-export.js +5 -4
  173. package/build/components/more-menu/site-export.js.map +1 -0
  174. package/build/components/{header-edit-mode/more-menu → more-menu}/welcome-guide-menu-item.js +5 -4
  175. package/build/components/more-menu/welcome-guide-menu-item.js.map +1 -0
  176. package/build/components/page/header.js +24 -20
  177. package/build/components/page/header.js.map +1 -1
  178. package/build/components/page/index.js +12 -10
  179. package/build/components/page/index.js.map +1 -1
  180. package/build/components/page-pages/index.js +133 -52
  181. package/build/components/page-pages/index.js.map +1 -1
  182. package/build/components/page-patterns/delete-category-menu-item.js +23 -20
  183. package/build/components/page-patterns/delete-category-menu-item.js.map +1 -1
  184. package/build/components/page-patterns/header.js +47 -32
  185. package/build/components/page-patterns/header.js.map +1 -1
  186. package/build/components/page-patterns/index.js +116 -110
  187. package/build/components/page-patterns/index.js.map +1 -1
  188. package/build/components/page-patterns/rename-category-menu-item.js +14 -11
  189. package/build/components/page-patterns/rename-category-menu-item.js.map +1 -1
  190. package/build/components/page-patterns/use-patterns.js +7 -6
  191. package/build/components/page-patterns/use-patterns.js.map +1 -1
  192. package/build/components/page-templates/index.js +78 -59
  193. package/build/components/page-templates/index.js.map +1 -1
  194. package/build/components/pagination/index.js +59 -41
  195. package/build/components/pagination/index.js.map +1 -1
  196. package/build/components/plugin-template-setting-panel/index.js +4 -2
  197. package/build/components/plugin-template-setting-panel/index.js.map +1 -1
  198. package/build/components/resizable-frame/index.js +38 -32
  199. package/build/components/resizable-frame/index.js.map +1 -1
  200. package/build/components/revisions/index.js +26 -20
  201. package/build/components/revisions/index.js.map +1 -1
  202. package/build/components/routes/link.js +5 -4
  203. package/build/components/routes/link.js.map +1 -1
  204. package/build/components/save-button/index.js +5 -4
  205. package/build/components/save-button/index.js.map +1 -1
  206. package/build/components/save-hub/index.js +12 -11
  207. package/build/components/save-hub/index.js.map +1 -1
  208. package/build/components/save-panel/index.js +34 -28
  209. package/build/components/save-panel/index.js.map +1 -1
  210. package/build/components/sidebar/index.js +14 -11
  211. package/build/components/sidebar/index.js.map +1 -1
  212. package/build/components/sidebar-button/index.js +2 -2
  213. package/build/components/sidebar-button/index.js.map +1 -1
  214. package/build/components/sidebar-dataviews/add-new-view.js +56 -48
  215. package/build/components/sidebar-dataviews/add-new-view.js.map +1 -1
  216. package/build/components/sidebar-dataviews/custom-dataviews-list.js +106 -89
  217. package/build/components/sidebar-dataviews/custom-dataviews-list.js.map +1 -1
  218. package/build/components/sidebar-dataviews/dataview-item.js +18 -12
  219. package/build/components/sidebar-dataviews/dataview-item.js.map +1 -1
  220. package/build/components/sidebar-dataviews/default-views.js +48 -0
  221. package/build/components/sidebar-dataviews/default-views.js.map +1 -1
  222. package/build/components/sidebar-dataviews/index.js +21 -22
  223. package/build/components/sidebar-dataviews/index.js.map +1 -1
  224. package/build/components/sidebar-navigation-item/index.js +27 -25
  225. package/build/components/sidebar-navigation-item/index.js.map +1 -1
  226. package/build/components/sidebar-navigation-screen/index.js +51 -39
  227. package/build/components/sidebar-navigation-screen/index.js.map +1 -1
  228. package/build/components/sidebar-navigation-screen-details-footer/index.js +24 -17
  229. package/build/components/sidebar-navigation-screen-details-footer/index.js.map +1 -1
  230. package/build/components/sidebar-navigation-screen-details-panel/index.js +9 -7
  231. package/build/components/sidebar-navigation-screen-details-panel/index.js.map +1 -1
  232. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js +5 -4
  233. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js.map +1 -1
  234. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js +5 -5
  235. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js.map +1 -1
  236. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js +5 -4
  237. package/build/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js.map +1 -1
  238. package/build/components/sidebar-navigation-screen-global-styles/index.js +54 -45
  239. package/build/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
  240. package/build/components/sidebar-navigation-screen-main/index.js +45 -22
  241. package/build/components/sidebar-navigation-screen-main/index.js.map +1 -1
  242. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js +5 -4
  243. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js.map +1 -1
  244. package/build/components/sidebar-navigation-screen-navigation-menu/index.js +11 -10
  245. package/build/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
  246. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js +53 -42
  247. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
  248. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +10 -8
  249. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js.map +1 -1
  250. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +43 -36
  251. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +1 -1
  252. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +16 -13
  253. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +1 -1
  254. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +1 -1
  255. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
  256. package/build/components/sidebar-navigation-screen-navigation-menus/index.js +27 -23
  257. package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  258. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +50 -35
  259. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +1 -1
  260. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +12 -9
  261. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +1 -1
  262. package/build/components/sidebar-navigation-screen-patterns/category-item.js +12 -10
  263. package/build/components/sidebar-navigation-screen-patterns/category-item.js.map +1 -1
  264. package/build/components/sidebar-navigation-screen-patterns/index.js +59 -64
  265. package/build/components/sidebar-navigation-screen-patterns/index.js.map +1 -1
  266. package/build/components/sidebar-navigation-screen-templates-browse/content.js +17 -17
  267. package/build/components/sidebar-navigation-screen-templates-browse/content.js.map +1 -1
  268. package/build/components/sidebar-navigation-screen-templates-browse/index.js +4 -4
  269. package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
  270. package/build/components/site-hub/index.js +52 -133
  271. package/build/components/site-hub/index.js.map +1 -1
  272. package/build/components/site-icon/index.js +8 -7
  273. package/build/components/site-icon/index.js.map +1 -1
  274. package/build/components/style-book/index.js +115 -99
  275. package/build/components/style-book/index.js.map +1 -1
  276. package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js +10 -30
  277. package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
  278. package/build/components/table/index.js +23 -15
  279. package/build/components/table/index.js.map +1 -1
  280. package/build/components/template-part-converter/convert-to-regular.js +5 -4
  281. package/build/components/template-part-converter/convert-to-regular.js.map +1 -1
  282. package/build/components/template-part-converter/convert-to-template-part.js +23 -17
  283. package/build/components/template-part-converter/convert-to-template-part.js.map +1 -1
  284. package/build/components/template-part-converter/index.js +12 -10
  285. package/build/components/template-part-converter/index.js.map +1 -1
  286. package/build/components/welcome-guide/editor.js +20 -15
  287. package/build/components/welcome-guide/editor.js.map +1 -1
  288. package/build/components/welcome-guide/image.js +13 -12
  289. package/build/components/welcome-guide/image.js.map +1 -1
  290. package/build/components/welcome-guide/index.js +4 -2
  291. package/build/components/welcome-guide/index.js.map +1 -1
  292. package/build/components/welcome-guide/page.js +18 -13
  293. package/build/components/welcome-guide/page.js.map +1 -1
  294. package/build/components/welcome-guide/styles.js +45 -28
  295. package/build/components/welcome-guide/styles.js.map +1 -1
  296. package/build/components/welcome-guide/template.js +18 -13
  297. package/build/components/welcome-guide/template.js.map +1 -1
  298. package/build/deprecated.js +4 -4
  299. package/build/deprecated.js.map +1 -1
  300. package/build/hooks/commands/use-common-commands.js +12 -24
  301. package/build/hooks/commands/use-common-commands.js.map +1 -1
  302. package/build/hooks/commands/use-edit-mode-commands.js +2 -116
  303. package/build/hooks/commands/use-edit-mode-commands.js.map +1 -1
  304. package/build/hooks/index.js +0 -1
  305. package/build/hooks/index.js.map +1 -1
  306. package/build/hooks/push-changes-to-global-styles/index.js +26 -16
  307. package/build/hooks/push-changes-to-global-styles/index.js.map +1 -1
  308. package/build/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +2 -1
  309. package/build/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js.map +1 -1
  310. package/build/index.js +3 -3
  311. package/build/index.js.map +1 -1
  312. package/build/store/private-actions.js +34 -13
  313. package/build/store/private-actions.js.map +1 -1
  314. package/build/store/selectors.js +2 -2
  315. package/build/store/selectors.js.map +1 -1
  316. package/build/utils/template-part-create.js +0 -62
  317. package/build/utils/template-part-create.js.map +1 -1
  318. package/build/utils/use-activate-theme.js +4 -5
  319. package/build/utils/use-activate-theme.js.map +1 -1
  320. package/build-module/components/add-new-page/index.js +34 -27
  321. package/build-module/components/add-new-page/index.js.map +1 -1
  322. package/build-module/components/add-new-pattern/index.js +98 -78
  323. package/build-module/components/add-new-pattern/index.js.map +1 -1
  324. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js +36 -30
  325. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js.map +1 -1
  326. package/build-module/components/add-new-template/add-custom-template-modal-content.js +121 -95
  327. package/build-module/components/add-new-template/add-custom-template-modal-content.js.map +1 -1
  328. package/build-module/components/add-new-template/index.js +89 -71
  329. package/build-module/components/add-new-template/index.js.map +1 -1
  330. package/build-module/components/add-new-template/utils.js +36 -17
  331. package/build-module/components/add-new-template/utils.js.map +1 -1
  332. package/build-module/components/app/index.js +11 -4
  333. package/build-module/components/app/index.js.map +1 -1
  334. package/build-module/components/block-editor/block-inspector-button.js +5 -4
  335. package/build-module/components/block-editor/block-inspector-button.js.map +1 -1
  336. package/build-module/components/block-editor/inserter-media-categories.js +1 -1
  337. package/build-module/components/block-editor/inserter-media-categories.js.map +1 -1
  338. package/build-module/components/block-editor/use-editor-iframe-props.js +80 -0
  339. package/build-module/components/block-editor/use-editor-iframe-props.js.map +1 -0
  340. package/build-module/components/canvas-loader/index.js +14 -13
  341. package/build-module/components/canvas-loader/index.js.map +1 -1
  342. package/build-module/components/dataviews-actions/index.js +7 -4
  343. package/build-module/components/dataviews-actions/index.js.map +1 -1
  344. package/build-module/components/editor/index.js +91 -185
  345. package/build-module/components/editor/index.js.map +1 -1
  346. package/build-module/components/editor/use-editor-title.js +31 -0
  347. package/build-module/components/editor/use-editor-title.js.map +1 -0
  348. package/build-module/components/editor-canvas-container/index.js +29 -30
  349. package/build-module/components/editor-canvas-container/index.js.map +1 -1
  350. package/build-module/components/error-boundary/index.js +2 -2
  351. package/build-module/components/error-boundary/index.js.map +1 -1
  352. package/build-module/components/error-boundary/warning.js +13 -11
  353. package/build-module/components/error-boundary/warning.js.map +1 -1
  354. package/build-module/components/global-styles/background-panel.js +6 -5
  355. package/build-module/components/global-styles/background-panel.js.map +1 -1
  356. package/build-module/components/global-styles/block-preview-panel.js +19 -17
  357. package/build-module/components/global-styles/block-preview-panel.js.map +1 -1
  358. package/build-module/components/global-styles/color-indicator-wrapper.js +2 -2
  359. package/build-module/components/global-styles/color-indicator-wrapper.js.map +1 -1
  360. package/build-module/components/global-styles/color-palette-panel.js +31 -29
  361. package/build-module/components/global-styles/color-palette-panel.js.map +1 -1
  362. package/build-module/components/global-styles/dimensions-panel.js +2 -2
  363. package/build-module/components/global-styles/dimensions-panel.js.map +1 -1
  364. package/build-module/components/global-styles/font-families.js +58 -40
  365. package/build-module/components/global-styles/font-families.js.map +1 -1
  366. package/build-module/components/global-styles/font-family-item.js +18 -13
  367. package/build-module/components/global-styles/font-family-item.js.map +1 -1
  368. package/build-module/components/global-styles/font-library-modal/collection-font-variant.js +26 -22
  369. package/build-module/components/global-styles/font-library-modal/collection-font-variant.js.map +1 -1
  370. package/build-module/components/global-styles/font-library-modal/context.js +7 -30
  371. package/build-module/components/global-styles/font-library-modal/context.js.map +1 -1
  372. package/build-module/components/global-styles/font-library-modal/font-card.js +25 -16
  373. package/build-module/components/global-styles/font-library-modal/font-card.js.map +1 -1
  374. package/build-module/components/global-styles/font-library-modal/font-collection.js +198 -153
  375. package/build-module/components/global-styles/font-library-modal/font-collection.js.map +1 -1
  376. package/build-module/components/global-styles/font-library-modal/font-demo.js +14 -12
  377. package/build-module/components/global-styles/font-library-modal/font-demo.js.map +1 -1
  378. package/build-module/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js +30 -20
  379. package/build-module/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js.map +1 -1
  380. package/build-module/components/global-styles/font-library-modal/index.js +42 -36
  381. package/build-module/components/global-styles/font-library-modal/index.js.map +1 -1
  382. package/build-module/components/global-styles/font-library-modal/installed-fonts.js +157 -111
  383. package/build-module/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
  384. package/build-module/components/global-styles/font-library-modal/library-font-details.js +18 -14
  385. package/build-module/components/global-styles/font-library-modal/library-font-details.js.map +1 -1
  386. package/build-module/components/global-styles/font-library-modal/library-font-variant.js +26 -22
  387. package/build-module/components/global-styles/font-library-modal/library-font-variant.js.map +1 -1
  388. package/build-module/components/global-styles/font-library-modal/upload-fonts.js +42 -35
  389. package/build-module/components/global-styles/font-library-modal/upload-fonts.js.map +1 -1
  390. package/build-module/components/global-styles/font-library-modal/utils/index.js +3 -3
  391. package/build-module/components/global-styles/font-library-modal/utils/index.js.map +1 -1
  392. package/build-module/components/global-styles/gradients-palette-panel.js +42 -37
  393. package/build-module/components/global-styles/gradients-palette-panel.js.map +1 -1
  394. package/build-module/components/global-styles/header.js +38 -28
  395. package/build-module/components/global-styles/header.js.map +1 -1
  396. package/build-module/components/global-styles/highlighted-colors.js +3 -4
  397. package/build-module/components/global-styles/highlighted-colors.js.map +1 -1
  398. package/build-module/components/global-styles/hooks.js +11 -23
  399. package/build-module/components/global-styles/hooks.js.map +1 -1
  400. package/build-module/components/global-styles/icon-with-current-color.js +2 -2
  401. package/build-module/components/global-styles/icon-with-current-color.js.map +1 -1
  402. package/build-module/components/global-styles/navigation-button.js +16 -11
  403. package/build-module/components/global-styles/navigation-button.js.map +1 -1
  404. package/build-module/components/global-styles/palette.js +42 -34
  405. package/build-module/components/global-styles/palette.js.map +1 -1
  406. package/build-module/components/global-styles/preset-colors.js +3 -4
  407. package/build-module/components/global-styles/preset-colors.js.map +1 -1
  408. package/build-module/components/global-styles/preview-colors.js +22 -20
  409. package/build-module/components/global-styles/preview-colors.js.map +1 -1
  410. package/build-module/components/global-styles/preview-iframe.js +36 -29
  411. package/build-module/components/global-styles/preview-iframe.js.map +1 -1
  412. package/build-module/components/global-styles/preview-styles.js +96 -90
  413. package/build-module/components/global-styles/preview-styles.js.map +1 -1
  414. package/build-module/components/global-styles/root-menu.js +31 -22
  415. package/build-module/components/global-styles/root-menu.js.map +1 -1
  416. package/build-module/components/global-styles/screen-background.js +8 -4
  417. package/build-module/components/global-styles/screen-background.js.map +1 -1
  418. package/build-module/components/global-styles/screen-block-list.js +35 -27
  419. package/build-module/components/global-styles/screen-block-list.js.map +1 -1
  420. package/build-module/components/global-styles/screen-block.js +64 -53
  421. package/build-module/components/global-styles/screen-block.js.map +1 -1
  422. package/build-module/components/global-styles/screen-color-palette.js +31 -19
  423. package/build-module/components/global-styles/screen-color-palette.js.map +1 -1
  424. package/build-module/components/global-styles/screen-colors.js +20 -14
  425. package/build-module/components/global-styles/screen-colors.js.map +1 -1
  426. package/build-module/components/global-styles/screen-css.js +22 -14
  427. package/build-module/components/global-styles/screen-css.js.map +1 -1
  428. package/build-module/components/global-styles/screen-layout.js +11 -4
  429. package/build-module/components/global-styles/screen-layout.js.map +1 -1
  430. package/build-module/components/global-styles/screen-revisions/index.js +54 -42
  431. package/build-module/components/global-styles/screen-revisions/index.js.map +1 -1
  432. package/build-module/components/global-styles/screen-revisions/revisions-buttons.js +82 -70
  433. package/build-module/components/global-styles/screen-revisions/revisions-buttons.js.map +1 -1
  434. package/build-module/components/global-styles/screen-revisions/use-global-styles-revisions.js +1 -0
  435. package/build-module/components/global-styles/screen-revisions/use-global-styles-revisions.js.map +1 -1
  436. package/build-module/components/global-styles/screen-root.js +78 -42
  437. package/build-module/components/global-styles/screen-root.js.map +1 -1
  438. package/build-module/components/global-styles/screen-shadows.js +13 -0
  439. package/build-module/components/global-styles/screen-shadows.js.map +1 -0
  440. package/build-module/components/global-styles/screen-style-variations.js +16 -9
  441. package/build-module/components/global-styles/screen-style-variations.js.map +1 -1
  442. package/build-module/components/global-styles/screen-typography-element.js +52 -45
  443. package/build-module/components/global-styles/screen-typography-element.js.map +1 -1
  444. package/build-module/components/global-styles/screen-typography.js +17 -11
  445. package/build-module/components/global-styles/screen-typography.js.map +1 -1
  446. package/build-module/components/global-styles/shadow-utils.js +221 -0
  447. package/build-module/components/global-styles/shadow-utils.js.map +1 -0
  448. package/build-module/components/global-styles/shadows-edit-panel.js +452 -0
  449. package/build-module/components/global-styles/shadows-edit-panel.js.map +1 -0
  450. package/build-module/components/global-styles/shadows-panel.js +121 -0
  451. package/build-module/components/global-styles/shadows-panel.js.map +1 -0
  452. package/build-module/components/global-styles/style-variations-container.js +68 -19
  453. package/build-module/components/global-styles/style-variations-container.js.map +1 -1
  454. package/build-module/components/global-styles/subtitle.js +5 -4
  455. package/build-module/components/global-styles/subtitle.js.map +1 -1
  456. package/build-module/components/global-styles/typography-elements.js +54 -45
  457. package/build-module/components/global-styles/typography-elements.js.map +1 -1
  458. package/build-module/components/global-styles/typography-example.js +12 -8
  459. package/build-module/components/global-styles/typography-example.js.map +1 -1
  460. package/build-module/components/global-styles/typography-panel.js +2 -2
  461. package/build-module/components/global-styles/typography-panel.js.map +1 -1
  462. package/build-module/components/global-styles/typography-preview.js +5 -4
  463. package/build-module/components/global-styles/typography-preview.js.map +1 -1
  464. package/build-module/components/global-styles/ui.js +126 -92
  465. package/build-module/components/global-styles/ui.js.map +1 -1
  466. package/build-module/components/global-styles/utils.js +27 -0
  467. package/build-module/components/global-styles/utils.js.map +1 -1
  468. package/build-module/components/global-styles/variations/variation.js +27 -22
  469. package/build-module/components/global-styles/variations/variation.js.map +1 -1
  470. package/build-module/components/global-styles/variations/variations-color.js +20 -14
  471. package/build-module/components/global-styles/variations/variations-color.js.map +1 -1
  472. package/build-module/components/global-styles/variations/variations-panel.js +28 -18
  473. package/build-module/components/global-styles/variations/variations-panel.js.map +1 -1
  474. package/build-module/components/global-styles/variations/variations-typography.js +38 -31
  475. package/build-module/components/global-styles/variations/variations-typography.js.map +1 -1
  476. package/build-module/components/global-styles-renderer/index.js +5 -1
  477. package/build-module/components/global-styles-renderer/index.js.map +1 -1
  478. package/build-module/components/global-styles-sidebar/default-sidebar.js +24 -18
  479. package/build-module/components/global-styles-sidebar/default-sidebar.js.map +1 -1
  480. package/build-module/components/global-styles-sidebar/index.js +37 -26
  481. package/build-module/components/global-styles-sidebar/index.js.map +1 -1
  482. package/build-module/components/layout/index.js +97 -121
  483. package/build-module/components/layout/index.js.map +1 -1
  484. package/build-module/components/layout/router.js +83 -103
  485. package/build-module/components/layout/router.js.map +1 -1
  486. package/build-module/components/media/index.js +2 -2
  487. package/build-module/components/media/index.js.map +1 -1
  488. package/build-module/components/{header-edit-mode/more-menu → more-menu}/index.js +9 -3
  489. package/build-module/components/more-menu/index.js.map +1 -0
  490. package/build-module/components/{header-edit-mode/more-menu → more-menu}/site-export.js +5 -4
  491. package/build-module/components/more-menu/site-export.js.map +1 -0
  492. package/build-module/components/{header-edit-mode/more-menu → more-menu}/welcome-guide-menu-item.js +5 -4
  493. package/build-module/components/more-menu/welcome-guide-menu-item.js.map +1 -0
  494. package/build-module/components/page/header.js +25 -19
  495. package/build-module/components/page/header.js.map +1 -1
  496. package/build-module/components/page/index.js +14 -11
  497. package/build-module/components/page/index.js.map +1 -1
  498. package/build-module/components/page-pages/index.js +138 -55
  499. package/build-module/components/page-pages/index.js.map +1 -1
  500. package/build-module/components/page-patterns/delete-category-menu-item.js +25 -20
  501. package/build-module/components/page-patterns/delete-category-menu-item.js.map +1 -1
  502. package/build-module/components/page-patterns/header.js +48 -32
  503. package/build-module/components/page-patterns/header.js.map +1 -1
  504. package/build-module/components/page-patterns/index.js +117 -110
  505. package/build-module/components/page-patterns/index.js.map +1 -1
  506. package/build-module/components/page-patterns/rename-category-menu-item.js +16 -11
  507. package/build-module/components/page-patterns/rename-category-menu-item.js.map +1 -1
  508. package/build-module/components/page-patterns/use-patterns.js +7 -6
  509. package/build-module/components/page-patterns/use-patterns.js.map +1 -1
  510. package/build-module/components/page-templates/index.js +80 -59
  511. package/build-module/components/page-templates/index.js.map +1 -1
  512. package/build-module/components/pagination/index.js +60 -41
  513. package/build-module/components/pagination/index.js.map +1 -1
  514. package/build-module/components/plugin-template-setting-panel/index.js +4 -2
  515. package/build-module/components/plugin-template-setting-panel/index.js.map +1 -1
  516. package/build-module/components/resizable-frame/index.js +40 -32
  517. package/build-module/components/resizable-frame/index.js.map +1 -1
  518. package/build-module/components/revisions/index.js +27 -20
  519. package/build-module/components/revisions/index.js.map +1 -1
  520. package/build-module/components/routes/link.js +5 -4
  521. package/build-module/components/routes/link.js.map +1 -1
  522. package/build-module/components/save-button/index.js +5 -4
  523. package/build-module/components/save-button/index.js.map +1 -1
  524. package/build-module/components/save-hub/index.js +12 -11
  525. package/build-module/components/save-hub/index.js.map +1 -1
  526. package/build-module/components/save-panel/index.js +35 -28
  527. package/build-module/components/save-panel/index.js.map +1 -1
  528. package/build-module/components/sidebar/index.js +14 -11
  529. package/build-module/components/sidebar/index.js.map +1 -1
  530. package/build-module/components/sidebar-button/index.js +2 -2
  531. package/build-module/components/sidebar-button/index.js.map +1 -1
  532. package/build-module/components/sidebar-dataviews/add-new-view.js +58 -48
  533. package/build-module/components/sidebar-dataviews/add-new-view.js.map +1 -1
  534. package/build-module/components/sidebar-dataviews/custom-dataviews-list.js +108 -89
  535. package/build-module/components/sidebar-dataviews/custom-dataviews-list.js.map +1 -1
  536. package/build-module/components/sidebar-dataviews/dataview-item.js +19 -12
  537. package/build-module/components/sidebar-dataviews/dataview-item.js.map +1 -1
  538. package/build-module/components/sidebar-dataviews/default-views.js +49 -1
  539. package/build-module/components/sidebar-dataviews/default-views.js.map +1 -1
  540. package/build-module/components/sidebar-dataviews/index.js +23 -22
  541. package/build-module/components/sidebar-dataviews/index.js.map +1 -1
  542. package/build-module/components/sidebar-navigation-item/index.js +28 -25
  543. package/build-module/components/sidebar-navigation-item/index.js.map +1 -1
  544. package/build-module/components/sidebar-navigation-screen/index.js +53 -39
  545. package/build-module/components/sidebar-navigation-screen/index.js.map +1 -1
  546. package/build-module/components/sidebar-navigation-screen-details-footer/index.js +25 -17
  547. package/build-module/components/sidebar-navigation-screen-details-footer/index.js.map +1 -1
  548. package/build-module/components/sidebar-navigation-screen-details-panel/index.js +10 -7
  549. package/build-module/components/sidebar-navigation-screen-details-panel/index.js.map +1 -1
  550. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js +5 -4
  551. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-label.js.map +1 -1
  552. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js +5 -5
  553. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-row.js.map +1 -1
  554. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js +5 -4
  555. package/build-module/components/sidebar-navigation-screen-details-panel/sidebar-navigation-screen-details-panel-value.js.map +1 -1
  556. package/build-module/components/sidebar-navigation-screen-global-styles/index.js +56 -45
  557. package/build-module/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
  558. package/build-module/components/sidebar-navigation-screen-main/index.js +47 -22
  559. package/build-module/components/sidebar-navigation-screen-main/index.js.map +1 -1
  560. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js +5 -4
  561. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js.map +1 -1
  562. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js +11 -10
  563. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
  564. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js +55 -42
  565. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
  566. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +10 -8
  567. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js.map +1 -1
  568. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +44 -36
  569. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +1 -1
  570. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +17 -13
  571. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +1 -1
  572. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +1 -1
  573. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
  574. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +27 -23
  575. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  576. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +52 -35
  577. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +1 -1
  578. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +14 -9
  579. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +1 -1
  580. package/build-module/components/sidebar-navigation-screen-patterns/category-item.js +12 -10
  581. package/build-module/components/sidebar-navigation-screen-patterns/category-item.js.map +1 -1
  582. package/build-module/components/sidebar-navigation-screen-patterns/index.js +61 -64
  583. package/build-module/components/sidebar-navigation-screen-patterns/index.js.map +1 -1
  584. package/build-module/components/sidebar-navigation-screen-templates-browse/content.js +18 -17
  585. package/build-module/components/sidebar-navigation-screen-templates-browse/content.js.map +1 -1
  586. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +4 -4
  587. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
  588. package/build-module/components/site-hub/index.js +56 -136
  589. package/build-module/components/site-hub/index.js.map +1 -1
  590. package/build-module/components/site-icon/index.js +8 -7
  591. package/build-module/components/site-icon/index.js.map +1 -1
  592. package/build-module/components/style-book/index.js +116 -99
  593. package/build-module/components/style-book/index.js.map +1 -1
  594. package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js +10 -30
  595. package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
  596. package/build-module/components/table/index.js +24 -15
  597. package/build-module/components/table/index.js.map +1 -1
  598. package/build-module/components/template-part-converter/convert-to-regular.js +5 -4
  599. package/build-module/components/template-part-converter/convert-to-regular.js.map +1 -1
  600. package/build-module/components/template-part-converter/convert-to-template-part.js +25 -16
  601. package/build-module/components/template-part-converter/convert-to-template-part.js.map +1 -1
  602. package/build-module/components/template-part-converter/index.js +12 -10
  603. package/build-module/components/template-part-converter/index.js.map +1 -1
  604. package/build-module/components/welcome-guide/editor.js +22 -15
  605. package/build-module/components/welcome-guide/editor.js.map +1 -1
  606. package/build-module/components/welcome-guide/image.js +14 -12
  607. package/build-module/components/welcome-guide/image.js.map +1 -1
  608. package/build-module/components/welcome-guide/index.js +6 -2
  609. package/build-module/components/welcome-guide/index.js.map +1 -1
  610. package/build-module/components/welcome-guide/page.js +20 -13
  611. package/build-module/components/welcome-guide/page.js.map +1 -1
  612. package/build-module/components/welcome-guide/styles.js +47 -28
  613. package/build-module/components/welcome-guide/styles.js.map +1 -1
  614. package/build-module/components/welcome-guide/template.js +20 -13
  615. package/build-module/components/welcome-guide/template.js.map +1 -1
  616. package/build-module/deprecated.js +4 -4
  617. package/build-module/deprecated.js.map +1 -1
  618. package/build-module/hooks/commands/use-common-commands.js +12 -23
  619. package/build-module/hooks/commands/use-common-commands.js.map +1 -1
  620. package/build-module/hooks/commands/use-edit-mode-commands.js +4 -118
  621. package/build-module/hooks/commands/use-edit-mode-commands.js.map +1 -1
  622. package/build-module/hooks/index.js +0 -1
  623. package/build-module/hooks/index.js.map +1 -1
  624. package/build-module/hooks/push-changes-to-global-styles/index.js +28 -16
  625. package/build-module/hooks/push-changes-to-global-styles/index.js.map +1 -1
  626. package/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +2 -1
  627. package/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js.map +1 -1
  628. package/build-module/index.js +3 -3
  629. package/build-module/index.js.map +1 -1
  630. package/build-module/store/private-actions.js +34 -13
  631. package/build-module/store/private-actions.js.map +1 -1
  632. package/build-module/store/selectors.js +2 -2
  633. package/build-module/store/selectors.js.map +1 -1
  634. package/build-module/utils/template-part-create.js +0 -52
  635. package/build-module/utils/template-part-create.js.map +1 -1
  636. package/build-module/utils/use-activate-theme.js +4 -5
  637. package/build-module/utils/use-activate-theme.js.map +1 -1
  638. package/build-style/style-rtl.css +327 -634
  639. package/build-style/style.css +327 -634
  640. package/package.json +43 -44
  641. package/src/components/add-new-pattern/index.js +46 -37
  642. package/src/components/add-new-template/index.js +2 -0
  643. package/src/components/add-new-template/utils.js +77 -39
  644. package/src/components/block-editor/inserter-media-categories.js +1 -3
  645. package/src/components/block-editor/style.scss +12 -136
  646. package/src/components/block-editor/use-editor-iframe-props.js +79 -0
  647. package/src/components/canvas-loader/index.js +5 -2
  648. package/src/components/dataviews-actions/index.js +7 -2
  649. package/src/components/editor/index.js +116 -290
  650. package/src/components/editor/style.scss +1 -16
  651. package/src/components/editor/use-editor-title.js +35 -0
  652. package/src/components/editor-canvas-container/index.js +30 -35
  653. package/src/components/editor-canvas-container/style.scss +16 -0
  654. package/src/components/global-styles/background-panel.js +3 -2
  655. package/src/components/global-styles/color-palette-panel.js +1 -1
  656. package/src/components/global-styles/font-families.js +25 -18
  657. package/src/components/global-styles/font-family-item.js +2 -2
  658. package/src/components/global-styles/font-library-modal/collection-font-variant.js +2 -1
  659. package/src/components/global-styles/font-library-modal/context.js +6 -44
  660. package/src/components/global-styles/font-library-modal/font-collection.js +3 -5
  661. package/src/components/global-styles/font-library-modal/installed-fonts.js +42 -12
  662. package/src/components/global-styles/font-library-modal/library-font-variant.js +2 -1
  663. package/src/components/global-styles/font-library-modal/upload-fonts.js +1 -4
  664. package/src/components/global-styles/font-library-modal/utils/index.js +1 -1
  665. package/src/components/global-styles/hooks.js +10 -37
  666. package/src/components/global-styles/palette.js +9 -18
  667. package/src/components/global-styles/root-menu.js +16 -12
  668. package/src/components/global-styles/screen-block.js +1 -1
  669. package/src/components/global-styles/screen-css.js +1 -1
  670. package/src/components/global-styles/screen-layout.js +9 -2
  671. package/src/components/global-styles/screen-revisions/index.js +6 -0
  672. package/src/components/global-styles/screen-revisions/revisions-buttons.js +1 -1
  673. package/src/components/global-styles/screen-revisions/style.scss +4 -8
  674. package/src/components/global-styles/screen-revisions/use-global-styles-revisions.js +1 -0
  675. package/src/components/global-styles/screen-shadows.js +13 -0
  676. package/src/components/global-styles/screen-typography.js +1 -1
  677. package/src/components/global-styles/shadow-utils.js +158 -0
  678. package/src/components/global-styles/shadows-edit-panel.js +555 -0
  679. package/src/components/global-styles/shadows-panel.js +147 -0
  680. package/src/components/global-styles/style-variations-container.js +73 -10
  681. package/src/components/global-styles/style.scss +54 -5
  682. package/src/components/global-styles/test/shadow-utils.spec.js +251 -0
  683. package/src/components/global-styles/test/utils.spec.js +59 -0
  684. package/src/components/global-styles/ui.js +10 -6
  685. package/src/components/global-styles/utils.js +27 -0
  686. package/src/components/global-styles/variations/style.scss +7 -4
  687. package/src/components/global-styles/variations/variation.js +2 -0
  688. package/src/components/global-styles/variations/variations-color.js +8 -4
  689. package/src/components/global-styles/variations/variations-panel.js +16 -5
  690. package/src/components/global-styles/variations/variations-typography.js +2 -1
  691. package/src/components/global-styles-renderer/index.js +7 -1
  692. package/src/components/global-styles-sidebar/index.js +2 -0
  693. package/src/components/layout/index.js +24 -69
  694. package/src/components/layout/router.js +64 -79
  695. package/src/components/layout/style.scss +29 -66
  696. package/src/components/{header-edit-mode/more-menu → more-menu}/index.js +1 -1
  697. package/src/components/page/header.js +17 -13
  698. package/src/components/page/index.js +1 -5
  699. package/src/components/page/style.scss +21 -7
  700. package/src/components/page-pages/index.js +154 -30
  701. package/src/components/page-pages/style.scss +15 -0
  702. package/src/components/page-patterns/delete-category-menu-item.js +1 -2
  703. package/src/components/page-patterns/header.js +45 -33
  704. package/src/components/page-patterns/index.js +29 -63
  705. package/src/components/page-patterns/style.scss +21 -14
  706. package/src/components/page-patterns/use-patterns.js +13 -6
  707. package/src/components/pagination/index.js +21 -16
  708. package/src/components/resizable-frame/index.js +1 -1
  709. package/src/components/save-panel/index.js +2 -4
  710. package/src/components/sidebar-dataviews/add-new-view.js +5 -5
  711. package/src/components/sidebar-dataviews/custom-dataviews-list.js +5 -7
  712. package/src/components/sidebar-dataviews/dataview-item.js +8 -4
  713. package/src/components/sidebar-dataviews/default-views.js +61 -1
  714. package/src/components/sidebar-dataviews/index.js +4 -9
  715. package/src/components/sidebar-navigation-item/index.js +7 -7
  716. package/src/components/sidebar-navigation-screen/index.js +1 -1
  717. package/src/components/sidebar-navigation-screen/style.scss +2 -2
  718. package/src/components/sidebar-navigation-screen-global-styles/index.js +8 -2
  719. package/src/components/sidebar-navigation-screen-main/index.js +14 -4
  720. package/src/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +1 -0
  721. package/src/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +1 -1
  722. package/src/components/sidebar-navigation-screen-navigation-menus/index.js +1 -1
  723. package/src/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +6 -3
  724. package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +0 -61
  725. package/src/components/sidebar-navigation-screen-patterns/category-item.js +15 -4
  726. package/src/components/sidebar-navigation-screen-patterns/index.js +11 -17
  727. package/src/components/sidebar-navigation-screen-templates-browse/content.js +1 -1
  728. package/src/components/sidebar-navigation-screen-templates-browse/index.js +1 -1
  729. package/src/components/site-hub/index.js +56 -148
  730. package/src/components/site-hub/style.scss +47 -13
  731. package/src/components/site-icon/style.scss +0 -4
  732. package/src/components/style-book/index.js +1 -1
  733. package/src/components/sync-state-with-url/use-init-edited-entity-from-url.js +18 -23
  734. package/src/components/template-part-converter/convert-to-template-part.js +4 -1
  735. package/src/hooks/commands/use-common-commands.js +12 -23
  736. package/src/hooks/commands/use-edit-mode-commands.js +4 -118
  737. package/src/hooks/index.js +0 -1
  738. package/src/hooks/push-changes-to-global-styles/index.js +3 -1
  739. package/src/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +5 -1
  740. package/src/index.js +1 -1
  741. package/src/store/private-actions.js +59 -23
  742. package/src/store/selectors.js +2 -2
  743. package/src/style.scss +0 -6
  744. package/src/utils/template-part-create.js +0 -67
  745. package/src/utils/use-activate-theme.js +2 -2
  746. package/build/components/block-editor/editor-canvas.js +0 -139
  747. package/build/components/block-editor/editor-canvas.js.map +0 -1
  748. package/build/components/block-editor/resizable-editor.js +0 -86
  749. package/build/components/block-editor/resizable-editor.js.map +0 -1
  750. package/build/components/block-editor/resize-handle.js +0 -57
  751. package/build/components/block-editor/resize-handle.js.map +0 -1
  752. package/build/components/block-editor/site-editor-canvas.js +0 -95
  753. package/build/components/block-editor/site-editor-canvas.js.map +0 -1
  754. package/build/components/code-editor/index.js +0 -111
  755. package/build/components/code-editor/index.js.map +0 -1
  756. package/build/components/create-template-part-modal/index.js +0 -151
  757. package/build/components/create-template-part-modal/index.js.map +0 -1
  758. package/build/components/header-edit-mode/index.js +0 -50
  759. package/build/components/header-edit-mode/index.js.map +0 -1
  760. package/build/components/header-edit-mode/more-menu/index.js.map +0 -1
  761. package/build/components/header-edit-mode/more-menu/site-export.js.map +0 -1
  762. package/build/components/header-edit-mode/more-menu/welcome-guide-menu-item.js.map +0 -1
  763. package/build/components/page-patterns/dataviews-pattern-actions.js +0 -311
  764. package/build/components/page-patterns/dataviews-pattern-actions.js.map +0 -1
  765. package/build/components/pattern-modal/duplicate.js +0 -70
  766. package/build/components/pattern-modal/duplicate.js.map +0 -1
  767. package/build/components/pattern-modal/index.js +0 -23
  768. package/build/components/pattern-modal/index.js.map +0 -1
  769. package/build/components/pattern-modal/rename.js +0 -45
  770. package/build/components/pattern-modal/rename.js.map +0 -1
  771. package/build/components/rename-post-menu-item/index.js +0 -109
  772. package/build/components/rename-post-menu-item/index.js.map +0 -1
  773. package/build/components/sidebar-navigation-screen-page/index.js +0 -163
  774. package/build/components/sidebar-navigation-screen-page/index.js.map +0 -1
  775. package/build/components/sidebar-navigation-screen-page/page-details.js +0 -127
  776. package/build/components/sidebar-navigation-screen-page/page-details.js.map +0 -1
  777. package/build/components/sidebar-navigation-screen-page/status-label.js +0 -65
  778. package/build/components/sidebar-navigation-screen-page/status-label.js.map +0 -1
  779. package/build/components/sidebar-navigation-screen-pattern/index.js +0 -67
  780. package/build/components/sidebar-navigation-screen-pattern/index.js.map +0 -1
  781. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js +0 -38
  782. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js.map +0 -1
  783. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js +0 -29
  784. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js.map +0 -1
  785. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js +0 -37
  786. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js.map +0 -1
  787. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js +0 -45
  788. package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js.map +0 -1
  789. package/build/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js +0 -88
  790. package/build/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js.map +0 -1
  791. package/build/components/sidebar-navigation-screen-pattern/use-navigation-menu-title.js +0 -29
  792. package/build/components/sidebar-navigation-screen-pattern/use-navigation-menu-title.js.map +0 -1
  793. package/build/components/sidebar-navigation-screen-pattern/use-pattern-details.js +0 -138
  794. package/build/components/sidebar-navigation-screen-pattern/use-pattern-details.js.map +0 -1
  795. package/build/components/sidebar-navigation-screen-template/home-template-details.js +0 -110
  796. package/build/components/sidebar-navigation-screen-template/home-template-details.js.map +0 -1
  797. package/build/components/sidebar-navigation-screen-template/index.js +0 -121
  798. package/build/components/sidebar-navigation-screen-template/index.js.map +0 -1
  799. package/build/components/sidebar-navigation-screen-template/template-areas.js +0 -117
  800. package/build/components/sidebar-navigation-screen-template/template-areas.js.map +0 -1
  801. package/build/components/template-actions/index.js +0 -131
  802. package/build/components/template-actions/index.js.map +0 -1
  803. package/build/hooks/components.js +0 -10
  804. package/build/hooks/components.js.map +0 -1
  805. package/build/utils/get-is-list-page.js +0 -28
  806. package/build/utils/get-is-list-page.js.map +0 -1
  807. package/build-module/components/block-editor/editor-canvas.js +0 -131
  808. package/build-module/components/block-editor/editor-canvas.js.map +0 -1
  809. package/build-module/components/block-editor/resizable-editor.js +0 -79
  810. package/build-module/components/block-editor/resizable-editor.js.map +0 -1
  811. package/build-module/components/block-editor/resize-handle.js +0 -50
  812. package/build-module/components/block-editor/resize-handle.js.map +0 -1
  813. package/build-module/components/block-editor/site-editor-canvas.js +0 -86
  814. package/build-module/components/block-editor/site-editor-canvas.js.map +0 -1
  815. package/build-module/components/code-editor/index.js +0 -103
  816. package/build-module/components/code-editor/index.js.map +0 -1
  817. package/build-module/components/create-template-part-modal/index.js +0 -143
  818. package/build-module/components/create-template-part-modal/index.js.map +0 -1
  819. package/build-module/components/header-edit-mode/index.js +0 -42
  820. package/build-module/components/header-edit-mode/index.js.map +0 -1
  821. package/build-module/components/header-edit-mode/more-menu/index.js.map +0 -1
  822. package/build-module/components/header-edit-mode/more-menu/site-export.js.map +0 -1
  823. package/build-module/components/header-edit-mode/more-menu/welcome-guide-menu-item.js.map +0 -1
  824. package/build-module/components/page-patterns/dataviews-pattern-actions.js +0 -304
  825. package/build-module/components/page-patterns/dataviews-pattern-actions.js.map +0 -1
  826. package/build-module/components/pattern-modal/duplicate.js +0 -62
  827. package/build-module/components/pattern-modal/duplicate.js.map +0 -1
  828. package/build-module/components/pattern-modal/index.js +0 -14
  829. package/build-module/components/pattern-modal/index.js.map +0 -1
  830. package/build-module/components/pattern-modal/rename.js +0 -37
  831. package/build-module/components/pattern-modal/rename.js.map +0 -1
  832. package/build-module/components/rename-post-menu-item/index.js +0 -102
  833. package/build-module/components/rename-post-menu-item/index.js.map +0 -1
  834. package/build-module/components/sidebar-navigation-screen-page/index.js +0 -155
  835. package/build-module/components/sidebar-navigation-screen-page/index.js.map +0 -1
  836. package/build-module/components/sidebar-navigation-screen-page/page-details.js +0 -120
  837. package/build-module/components/sidebar-navigation-screen-page/page-details.js.map +0 -1
  838. package/build-module/components/sidebar-navigation-screen-page/status-label.js +0 -57
  839. package/build-module/components/sidebar-navigation-screen-page/status-label.js.map +0 -1
  840. package/build-module/components/sidebar-navigation-screen-pattern/index.js +0 -59
  841. package/build-module/components/sidebar-navigation-screen-pattern/index.js.map +0 -1
  842. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js +0 -30
  843. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js.map +0 -1
  844. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js +0 -20
  845. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js.map +0 -1
  846. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js +0 -29
  847. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js.map +0 -1
  848. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js +0 -36
  849. package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js.map +0 -1
  850. package/build-module/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js +0 -80
  851. package/build-module/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js.map +0 -1
  852. package/build-module/components/sidebar-navigation-screen-pattern/use-navigation-menu-title.js +0 -22
  853. package/build-module/components/sidebar-navigation-screen-pattern/use-navigation-menu-title.js.map +0 -1
  854. package/build-module/components/sidebar-navigation-screen-pattern/use-pattern-details.js +0 -130
  855. package/build-module/components/sidebar-navigation-screen-pattern/use-pattern-details.js.map +0 -1
  856. package/build-module/components/sidebar-navigation-screen-template/home-template-details.js +0 -103
  857. package/build-module/components/sidebar-navigation-screen-template/home-template-details.js.map +0 -1
  858. package/build-module/components/sidebar-navigation-screen-template/index.js +0 -113
  859. package/build-module/components/sidebar-navigation-screen-template/index.js.map +0 -1
  860. package/build-module/components/sidebar-navigation-screen-template/template-areas.js +0 -109
  861. package/build-module/components/sidebar-navigation-screen-template/template-areas.js.map +0 -1
  862. package/build-module/components/template-actions/index.js +0 -123
  863. package/build-module/components/template-actions/index.js.map +0 -1
  864. package/build-module/hooks/components.js +0 -7
  865. package/build-module/hooks/components.js.map +0 -1
  866. package/build-module/utils/get-is-list-page.js +0 -22
  867. package/build-module/utils/get-is-list-page.js.map +0 -1
  868. package/src/components/block-editor/editor-canvas.js +0 -158
  869. package/src/components/block-editor/resizable-editor.js +0 -82
  870. package/src/components/block-editor/resize-handle.js +0 -66
  871. package/src/components/block-editor/site-editor-canvas.js +0 -107
  872. package/src/components/code-editor/index.js +0 -94
  873. package/src/components/code-editor/style.scss +0 -95
  874. package/src/components/create-template-part-modal/index.js +0 -199
  875. package/src/components/create-template-part-modal/style.scss +0 -69
  876. package/src/components/header-edit-mode/index.js +0 -51
  877. package/src/components/header-edit-mode/style.scss +0 -3
  878. package/src/components/page-patterns/dataviews-pattern-actions.js +0 -350
  879. package/src/components/pattern-modal/duplicate.js +0 -55
  880. package/src/components/pattern-modal/index.js +0 -19
  881. package/src/components/pattern-modal/rename.js +0 -30
  882. package/src/components/rename-post-menu-item/index.js +0 -138
  883. package/src/components/sidebar-navigation-screen-page/index.js +0 -204
  884. package/src/components/sidebar-navigation-screen-page/page-details.js +0 -161
  885. package/src/components/sidebar-navigation-screen-page/status-label.js +0 -71
  886. package/src/components/sidebar-navigation-screen-page/style.scss +0 -69
  887. package/src/components/sidebar-navigation-screen-pattern/index.js +0 -57
  888. package/src/components/sidebar-navigation-screen-pattern/style.scss +0 -26
  889. package/src/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list-item.js +0 -31
  890. package/src/components/sidebar-navigation-screen-pattern/template-part-navigation-menu-list.js +0 -21
  891. package/src/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js +0 -33
  892. package/src/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js +0 -36
  893. package/src/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js +0 -98
  894. package/src/components/sidebar-navigation-screen-pattern/use-navigation-menu-title.js +0 -32
  895. package/src/components/sidebar-navigation-screen-pattern/use-pattern-details.js +0 -205
  896. package/src/components/sidebar-navigation-screen-template/home-template-details.js +0 -144
  897. package/src/components/sidebar-navigation-screen-template/index.js +0 -134
  898. package/src/components/sidebar-navigation-screen-template/style.scss +0 -53
  899. package/src/components/sidebar-navigation-screen-template/template-areas.js +0 -135
  900. package/src/components/template-actions/index.js +0 -165
  901. package/src/hooks/components.js +0 -11
  902. package/src/utils/get-is-list-page.js +0 -23
  903. package/src/utils/test/template-part-create.js +0 -63
  904. /package/src/components/{header-edit-mode/more-menu → more-menu}/site-export.js +0 -0
  905. /package/src/components/{header-edit-mode/more-menu → more-menu}/welcome-guide-menu-item.js +0 -0
@@ -1,4 +1,3 @@
1
- import { createElement, Fragment } from "react";
2
1
  /**
3
2
  * WordPress dependencies
4
3
  */
@@ -22,14 +21,17 @@ import ScreenTypography from './screen-typography';
22
21
  import ScreenTypographyElement from './screen-typography-element';
23
22
  import ScreenColors from './screen-colors';
24
23
  import ScreenColorPalette from './screen-color-palette';
24
+ import { ScreenShadows, ScreenShadowsEdit } from './screen-shadows';
25
25
  import ScreenLayout from './screen-layout';
26
26
  import ScreenStyleVariations from './screen-style-variations';
27
27
  import StyleBook from '../style-book';
28
28
  import ScreenCSS from './screen-css';
29
29
  import ScreenRevisions from './screen-revisions';
30
- import ScreenBackground from './screen-background';
31
30
  import { unlock } from '../../lock-unlock';
32
31
  import { store as editSiteStore } from '../../store';
32
+ import { jsx as _jsx } from "react/jsx-runtime";
33
+ import { jsxs as _jsxs } from "react/jsx-runtime";
34
+ import { Fragment as _Fragment } from "react/jsx-runtime";
33
35
  const SLOT_FILL_NAME = 'GlobalStylesMenu';
34
36
  const {
35
37
  useGlobalStylesReset
@@ -66,34 +68,46 @@ function GlobalStylesActionMenu() {
66
68
  setEditorCanvasContainerView('global-styles-css');
67
69
  goTo('/css');
68
70
  };
69
- return createElement(GlobalStylesMenuFill, null, createElement(DropdownMenu, {
70
- icon: moreVertical,
71
- label: __('More'),
72
- toggleProps: {
73
- size: 'compact'
74
- }
75
- }, ({
76
- onClose
77
- }) => createElement(Fragment, null, createElement(MenuGroup, null, canEditCSS && createElement(MenuItem, {
78
- onClick: loadCustomCSS
79
- }, __('Additional CSS')), createElement(MenuItem, {
80
- onClick: () => {
81
- toggle('core/edit-site', 'welcomeGuideStyles');
82
- onClose();
83
- }
84
- }, __('Welcome Guide'))), createElement(MenuGroup, null, createElement(MenuItem, {
85
- onClick: () => {
86
- onReset();
87
- onClose();
88
- },
89
- disabled: !canReset
90
- }, __('Reset styles'))))));
71
+ return /*#__PURE__*/_jsx(GlobalStylesMenuFill, {
72
+ children: /*#__PURE__*/_jsx(DropdownMenu, {
73
+ icon: moreVertical,
74
+ label: __('More'),
75
+ toggleProps: {
76
+ size: 'compact'
77
+ },
78
+ children: ({
79
+ onClose
80
+ }) => /*#__PURE__*/_jsxs(_Fragment, {
81
+ children: [/*#__PURE__*/_jsxs(MenuGroup, {
82
+ children: [canEditCSS && /*#__PURE__*/_jsx(MenuItem, {
83
+ onClick: loadCustomCSS,
84
+ children: __('Additional CSS')
85
+ }), /*#__PURE__*/_jsx(MenuItem, {
86
+ onClick: () => {
87
+ toggle('core/edit-site', 'welcomeGuideStyles');
88
+ onClose();
89
+ },
90
+ children: __('Welcome Guide')
91
+ })]
92
+ }), /*#__PURE__*/_jsx(MenuGroup, {
93
+ children: /*#__PURE__*/_jsx(MenuItem, {
94
+ onClick: () => {
95
+ onReset();
96
+ onClose();
97
+ },
98
+ disabled: !canReset,
99
+ children: __('Reset styles')
100
+ })
101
+ })]
102
+ })
103
+ })
104
+ });
91
105
  }
92
106
  function GlobalStylesNavigationScreen({
93
107
  className,
94
108
  ...props
95
109
  }) {
96
- return createElement(NavigatorScreen, {
110
+ return /*#__PURE__*/_jsx(NavigatorScreen, {
97
111
  className: ['edit-site-global-styles-sidebar__navigator-screen', className].filter(Boolean).join(' '),
98
112
  ...props
99
113
  });
@@ -103,13 +117,13 @@ function BlockStylesNavigationScreens({
103
117
  blockStyles,
104
118
  blockName
105
119
  }) {
106
- return blockStyles.map((style, index) => createElement(GlobalStylesNavigationScreen, {
107
- key: index,
108
- path: parentMenu + '/variations/' + style.name
109
- }, createElement(ScreenBlock, {
110
- name: blockName,
111
- variation: style.name
112
- })));
120
+ return blockStyles.map((style, index) => /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
121
+ path: parentMenu + '/variations/' + style.name,
122
+ children: /*#__PURE__*/_jsx(ScreenBlock, {
123
+ name: blockName,
124
+ variation: style.name
125
+ })
126
+ }, index));
113
127
  }
114
128
  function ContextScreens({
115
129
  name,
@@ -121,22 +135,25 @@ function ContextScreens({
121
135
  } = select(blocksStore);
122
136
  return getBlockStyles(name);
123
137
  }, [name]);
124
- return createElement(Fragment, null, createElement(GlobalStylesNavigationScreen, {
125
- path: parentMenu + '/colors/palette'
126
- }, createElement(ScreenColorPalette, {
127
- name: name
128
- })), !!blockStyleVariations?.length && createElement(BlockStylesNavigationScreens, {
129
- parentMenu: parentMenu,
130
- blockStyles: blockStyleVariations,
131
- blockName: name
132
- }));
138
+ return /*#__PURE__*/_jsxs(_Fragment, {
139
+ children: [/*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
140
+ path: parentMenu + '/colors/palette',
141
+ children: /*#__PURE__*/_jsx(ScreenColorPalette, {
142
+ name: name
143
+ })
144
+ }), !!blockStyleVariations?.length && /*#__PURE__*/_jsx(BlockStylesNavigationScreens, {
145
+ parentMenu: parentMenu,
146
+ blockStyles: blockStyleVariations,
147
+ blockName: name
148
+ })]
149
+ });
133
150
  }
134
151
  function GlobalStylesStyleBook() {
135
152
  const navigator = useNavigator();
136
153
  const {
137
154
  path
138
155
  } = navigator.location;
139
- return createElement(StyleBook, {
156
+ return /*#__PURE__*/_jsx(StyleBook, {
140
157
  isSelected: blockName =>
141
158
  // Match '/blocks/core%2Fbutton' and
142
159
  // '/blocks/core%2Fbutton/typography', but not
@@ -236,57 +253,74 @@ function GlobalStylesEditorCanvasContainerLink() {
236
253
  function GlobalStylesUI() {
237
254
  const blocks = getBlockTypes();
238
255
  const editorCanvasContainerView = useSelect(select => unlock(select(editSiteStore)).getEditorCanvasContainerView(), []);
239
- return createElement(NavigatorProvider, {
256
+ return /*#__PURE__*/_jsxs(NavigatorProvider, {
240
257
  className: "edit-site-global-styles-sidebar__navigator-provider",
241
- initialPath: "/"
242
- }, createElement(GlobalStylesNavigationScreen, {
243
- path: "/"
244
- }, createElement(ScreenRoot, null)), createElement(GlobalStylesNavigationScreen, {
245
- path: "/variations"
246
- }, createElement(ScreenStyleVariations, null)), createElement(GlobalStylesNavigationScreen, {
247
- path: "/blocks"
248
- }, createElement(ScreenBlockList, null)), createElement(GlobalStylesNavigationScreen, {
249
- path: "/typography"
250
- }, createElement(ScreenTypography, null)), createElement(GlobalStylesNavigationScreen, {
251
- path: "/typography/text"
252
- }, createElement(ScreenTypographyElement, {
253
- element: "text"
254
- })), createElement(GlobalStylesNavigationScreen, {
255
- path: "/typography/link"
256
- }, createElement(ScreenTypographyElement, {
257
- element: "link"
258
- })), createElement(GlobalStylesNavigationScreen, {
259
- path: "/typography/heading"
260
- }, createElement(ScreenTypographyElement, {
261
- element: "heading"
262
- })), createElement(GlobalStylesNavigationScreen, {
263
- path: "/typography/caption"
264
- }, createElement(ScreenTypographyElement, {
265
- element: "caption"
266
- })), createElement(GlobalStylesNavigationScreen, {
267
- path: "/typography/button"
268
- }, createElement(ScreenTypographyElement, {
269
- element: "button"
270
- })), createElement(GlobalStylesNavigationScreen, {
271
- path: "/colors"
272
- }, createElement(ScreenColors, null)), createElement(GlobalStylesNavigationScreen, {
273
- path: "/layout"
274
- }, createElement(ScreenLayout, null)), createElement(GlobalStylesNavigationScreen, {
275
- path: "/css"
276
- }, createElement(ScreenCSS, null)), createElement(GlobalStylesNavigationScreen, {
277
- path: '/revisions'
278
- }, createElement(ScreenRevisions, null)), createElement(GlobalStylesNavigationScreen, {
279
- path: '/background'
280
- }, createElement(ScreenBackground, null)), blocks.map(block => createElement(GlobalStylesNavigationScreen, {
281
- key: 'menu-block-' + block.name,
282
- path: '/blocks/' + encodeURIComponent(block.name)
283
- }, createElement(ScreenBlock, {
284
- name: block.name
285
- }))), createElement(ContextScreens, null), blocks.map(block => createElement(ContextScreens, {
286
- key: 'screens-block-' + block.name,
287
- name: block.name,
288
- parentMenu: '/blocks/' + encodeURIComponent(block.name)
289
- })), 'style-book' === editorCanvasContainerView && createElement(GlobalStylesStyleBook, null), createElement(GlobalStylesActionMenu, null), createElement(GlobalStylesBlockLink, null), createElement(GlobalStylesEditorCanvasContainerLink, null));
258
+ initialPath: "/",
259
+ children: [/*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
260
+ path: "/",
261
+ children: /*#__PURE__*/_jsx(ScreenRoot, {})
262
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
263
+ path: "/variations",
264
+ children: /*#__PURE__*/_jsx(ScreenStyleVariations, {})
265
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
266
+ path: "/blocks",
267
+ children: /*#__PURE__*/_jsx(ScreenBlockList, {})
268
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
269
+ path: "/typography",
270
+ children: /*#__PURE__*/_jsx(ScreenTypography, {})
271
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
272
+ path: "/typography/text",
273
+ children: /*#__PURE__*/_jsx(ScreenTypographyElement, {
274
+ element: "text"
275
+ })
276
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
277
+ path: "/typography/link",
278
+ children: /*#__PURE__*/_jsx(ScreenTypographyElement, {
279
+ element: "link"
280
+ })
281
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
282
+ path: "/typography/heading",
283
+ children: /*#__PURE__*/_jsx(ScreenTypographyElement, {
284
+ element: "heading"
285
+ })
286
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
287
+ path: "/typography/caption",
288
+ children: /*#__PURE__*/_jsx(ScreenTypographyElement, {
289
+ element: "caption"
290
+ })
291
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
292
+ path: "/typography/button",
293
+ children: /*#__PURE__*/_jsx(ScreenTypographyElement, {
294
+ element: "button"
295
+ })
296
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
297
+ path: "/colors",
298
+ children: /*#__PURE__*/_jsx(ScreenColors, {})
299
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
300
+ path: "/shadows",
301
+ children: /*#__PURE__*/_jsx(ScreenShadows, {})
302
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
303
+ path: "/shadows/edit/:category/:slug",
304
+ children: /*#__PURE__*/_jsx(ScreenShadowsEdit, {})
305
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
306
+ path: "/layout",
307
+ children: /*#__PURE__*/_jsx(ScreenLayout, {})
308
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
309
+ path: "/css",
310
+ children: /*#__PURE__*/_jsx(ScreenCSS, {})
311
+ }), /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
312
+ path: "/revisions",
313
+ children: /*#__PURE__*/_jsx(ScreenRevisions, {})
314
+ }), blocks.map(block => /*#__PURE__*/_jsx(GlobalStylesNavigationScreen, {
315
+ path: '/blocks/' + encodeURIComponent(block.name),
316
+ children: /*#__PURE__*/_jsx(ScreenBlock, {
317
+ name: block.name
318
+ })
319
+ }, 'menu-block-' + block.name)), /*#__PURE__*/_jsx(ContextScreens, {}), blocks.map(block => /*#__PURE__*/_jsx(ContextScreens, {
320
+ name: block.name,
321
+ parentMenu: '/blocks/' + encodeURIComponent(block.name)
322
+ }, 'screens-block-' + block.name)), 'style-book' === editorCanvasContainerView && /*#__PURE__*/_jsx(GlobalStylesStyleBook, {}), /*#__PURE__*/_jsx(GlobalStylesActionMenu, {}), /*#__PURE__*/_jsx(GlobalStylesBlockLink, {}), /*#__PURE__*/_jsx(GlobalStylesEditorCanvasContainerLink, {})]
323
+ });
290
324
  }
291
325
  export { GlobalStylesMenuSlot };
292
326
  export default GlobalStylesUI;
@@ -1 +1 @@
1
- {"version":3,"names":["__experimentalNavigatorProvider","NavigatorProvider","__experimentalNavigatorScreen","NavigatorScreen","__experimentalUseNavigator","useNavigator","createSlotFill","DropdownMenu","MenuGroup","MenuItem","getBlockTypes","store","blocksStore","useSelect","useDispatch","privateApis","blockEditorPrivateApis","blockEditorStore","__","preferencesStore","moreVertical","coreStore","useEffect","ScreenRoot","useBlockHasGlobalStyles","default","ScreenBlockList","ScreenBlock","ScreenTypography","ScreenTypographyElement","ScreenColors","ScreenColorPalette","ScreenLayout","ScreenStyleVariations","StyleBook","ScreenCSS","ScreenRevisions","ScreenBackground","unlock","editSiteStore","SLOT_FILL_NAME","useGlobalStylesReset","Slot","GlobalStylesMenuSlot","Fill","GlobalStylesMenuFill","GlobalStylesActionMenu","canReset","onReset","toggle","canEditCSS","select","getEntityRecord","__experimentalGetCurrentGlobalStylesId","globalStylesId","globalStyles","undefined","_links","setEditorCanvasContainerView","goTo","loadCustomCSS","createElement","icon","label","toggleProps","size","onClose","Fragment","onClick","disabled","GlobalStylesNavigationScreen","className","props","filter","Boolean","join","BlockStylesNavigationScreens","parentMenu","blockStyles","blockName","map","style","index","key","path","name","variation","ContextScreens","blockStyleVariations","getBlockStyles","length","GlobalStylesStyleBook","navigator","location","isSelected","encodeURIComponent","startsWith","onSelect","GlobalStylesBlockLink","selectedBlockName","selectedBlockClientId","getSelectedBlockClientId","getBlockName","clientId","blockHasGlobalStyles","currentPath","newPath","skipFocus","GlobalStylesEditorCanvasContainerLink","editorCanvasContainerView","getEditorCanvasContainerView","isRevisionsOpen","GlobalStylesUI","blocks","initialPath","element","block"],"sources":["@wordpress/edit-site/src/components/global-styles/ui.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalNavigatorProvider as NavigatorProvider,\n\t__experimentalNavigatorScreen as NavigatorScreen,\n\t__experimentalUseNavigator as useNavigator,\n\tcreateSlotFill,\n\tDropdownMenu,\n\tMenuGroup,\n\tMenuItem,\n} from '@wordpress/components';\nimport { getBlockTypes, store as blocksStore } from '@wordpress/blocks';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport {\n\tprivateApis as blockEditorPrivateApis,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { __ } from '@wordpress/i18n';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { moreVertical } from '@wordpress/icons';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useEffect } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport ScreenRoot from './screen-root';\nimport {\n\tuseBlockHasGlobalStyles,\n\tdefault as ScreenBlockList,\n} from './screen-block-list';\nimport ScreenBlock from './screen-block';\nimport ScreenTypography from './screen-typography';\nimport ScreenTypographyElement from './screen-typography-element';\nimport ScreenColors from './screen-colors';\nimport ScreenColorPalette from './screen-color-palette';\nimport ScreenLayout from './screen-layout';\nimport ScreenStyleVariations from './screen-style-variations';\nimport StyleBook from '../style-book';\nimport ScreenCSS from './screen-css';\nimport ScreenRevisions from './screen-revisions';\nimport ScreenBackground from './screen-background';\nimport { unlock } from '../../lock-unlock';\nimport { store as editSiteStore } from '../../store';\n\nconst SLOT_FILL_NAME = 'GlobalStylesMenu';\nconst { useGlobalStylesReset } = unlock( blockEditorPrivateApis );\nconst { Slot: GlobalStylesMenuSlot, Fill: GlobalStylesMenuFill } =\n\tcreateSlotFill( SLOT_FILL_NAME );\n\nfunction GlobalStylesActionMenu() {\n\tconst [ canReset, onReset ] = useGlobalStylesReset();\n\tconst { toggle } = useDispatch( preferencesStore );\n\tconst { canEditCSS } = useSelect( ( select ) => {\n\t\tconst { getEntityRecord, __experimentalGetCurrentGlobalStylesId } =\n\t\t\tselect( coreStore );\n\n\t\tconst globalStylesId = __experimentalGetCurrentGlobalStylesId();\n\t\tconst globalStyles = globalStylesId\n\t\t\t? getEntityRecord( 'root', 'globalStyles', globalStylesId )\n\t\t\t: undefined;\n\n\t\treturn {\n\t\t\tcanEditCSS: !! globalStyles?._links?.[ 'wp:action-edit-css' ],\n\t\t};\n\t}, [] );\n\tconst { setEditorCanvasContainerView } = unlock(\n\t\tuseDispatch( editSiteStore )\n\t);\n\tconst { goTo } = useNavigator();\n\tconst loadCustomCSS = () => {\n\t\tsetEditorCanvasContainerView( 'global-styles-css' );\n\t\tgoTo( '/css' );\n\t};\n\n\treturn (\n\t\t<GlobalStylesMenuFill>\n\t\t\t<DropdownMenu\n\t\t\t\ticon={ moreVertical }\n\t\t\t\tlabel={ __( 'More' ) }\n\t\t\t\ttoggleProps={ { size: 'compact' } }\n\t\t\t>\n\t\t\t\t{ ( { onClose } ) => (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t\t{ canEditCSS && (\n\t\t\t\t\t\t\t\t<MenuItem onClick={ loadCustomCSS }>\n\t\t\t\t\t\t\t\t\t{ __( 'Additional CSS' ) }\n\t\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\ttoggle(\n\t\t\t\t\t\t\t\t\t\t'core/edit-site',\n\t\t\t\t\t\t\t\t\t\t'welcomeGuideStyles'\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Welcome Guide' ) }\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\tonReset();\n\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tdisabled={ ! canReset }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Reset styles' ) }\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t</DropdownMenu>\n\t\t</GlobalStylesMenuFill>\n\t);\n}\n\nfunction GlobalStylesNavigationScreen( { className, ...props } ) {\n\treturn (\n\t\t<NavigatorScreen\n\t\t\tclassName={ [\n\t\t\t\t'edit-site-global-styles-sidebar__navigator-screen',\n\t\t\t\tclassName,\n\t\t\t]\n\t\t\t\t.filter( Boolean )\n\t\t\t\t.join( ' ' ) }\n\t\t\t{ ...props }\n\t\t/>\n\t);\n}\n\nfunction BlockStylesNavigationScreens( {\n\tparentMenu,\n\tblockStyles,\n\tblockName,\n} ) {\n\treturn blockStyles.map( ( style, index ) => (\n\t\t<GlobalStylesNavigationScreen\n\t\t\tkey={ index }\n\t\t\tpath={ parentMenu + '/variations/' + style.name }\n\t\t>\n\t\t\t<ScreenBlock name={ blockName } variation={ style.name } />\n\t\t</GlobalStylesNavigationScreen>\n\t) );\n}\n\nfunction ContextScreens( { name, parentMenu = '' } ) {\n\tconst blockStyleVariations = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getBlockStyles } = select( blocksStore );\n\t\t\treturn getBlockStyles( name );\n\t\t},\n\t\t[ name ]\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<GlobalStylesNavigationScreen\n\t\t\t\tpath={ parentMenu + '/colors/palette' }\n\t\t\t>\n\t\t\t\t<ScreenColorPalette name={ name } />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t{ !! blockStyleVariations?.length && (\n\t\t\t\t<BlockStylesNavigationScreens\n\t\t\t\t\tparentMenu={ parentMenu }\n\t\t\t\t\tblockStyles={ blockStyleVariations }\n\t\t\t\t\tblockName={ name }\n\t\t\t\t/>\n\t\t\t) }\n\t\t</>\n\t);\n}\n\nfunction GlobalStylesStyleBook() {\n\tconst navigator = useNavigator();\n\tconst { path } = navigator.location;\n\treturn (\n\t\t<StyleBook\n\t\t\tisSelected={ ( blockName ) =>\n\t\t\t\t// Match '/blocks/core%2Fbutton' and\n\t\t\t\t// '/blocks/core%2Fbutton/typography', but not\n\t\t\t\t// '/blocks/core%2Fbuttons'.\n\t\t\t\tpath === `/blocks/${ encodeURIComponent( blockName ) }` ||\n\t\t\t\tpath.startsWith(\n\t\t\t\t\t`/blocks/${ encodeURIComponent( blockName ) }/`\n\t\t\t\t)\n\t\t\t}\n\t\t\tonSelect={ ( blockName ) => {\n\t\t\t\t// Now go to the selected block.\n\t\t\t\tnavigator.goTo( '/blocks/' + encodeURIComponent( blockName ) );\n\t\t\t} }\n\t\t/>\n\t);\n}\n\nfunction GlobalStylesBlockLink() {\n\tconst navigator = useNavigator();\n\tconst { selectedBlockName, selectedBlockClientId } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getSelectedBlockClientId, getBlockName } =\n\t\t\t\tselect( blockEditorStore );\n\t\t\tconst clientId = getSelectedBlockClientId();\n\t\t\treturn {\n\t\t\t\tselectedBlockName: getBlockName( clientId ),\n\t\t\t\tselectedBlockClientId: clientId,\n\t\t\t};\n\t\t},\n\t\t[]\n\t);\n\tconst blockHasGlobalStyles = useBlockHasGlobalStyles( selectedBlockName );\n\t// When we're in the `Blocks` screen enable deep linking to the selected block.\n\tuseEffect( () => {\n\t\tif ( ! selectedBlockClientId || ! blockHasGlobalStyles ) {\n\t\t\treturn;\n\t\t}\n\t\tconst currentPath = navigator.location.path;\n\t\tif (\n\t\t\tcurrentPath !== '/blocks' &&\n\t\t\t! currentPath.startsWith( '/blocks/' )\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconst newPath = '/blocks/' + encodeURIComponent( selectedBlockName );\n\t\t// Avoid navigating to the same path. This can happen when selecting\n\t\t// a new block of the same type.\n\t\tif ( newPath !== currentPath ) {\n\t\t\tnavigator.goTo( newPath, { skipFocus: true } );\n\t\t}\n\t}, [ selectedBlockClientId, selectedBlockName, blockHasGlobalStyles ] );\n}\n\nfunction GlobalStylesEditorCanvasContainerLink() {\n\tconst { goTo, location } = useNavigator();\n\tconst editorCanvasContainerView = useSelect(\n\t\t( select ) =>\n\t\t\tunlock( select( editSiteStore ) ).getEditorCanvasContainerView(),\n\t\t[]\n\t);\n\tconst path = location?.path;\n\tconst isRevisionsOpen = path === '/revisions';\n\n\t// If the user switches the editor canvas container view, redirect\n\t// to the appropriate screen. This effectively allows deep linking to the\n\t// desired screens from outside the global styles navigation provider.\n\tuseEffect( () => {\n\t\tswitch ( editorCanvasContainerView ) {\n\t\t\tcase 'global-styles-revisions':\n\t\t\tcase 'global-styles-revisions:style-book':\n\t\t\t\tgoTo( '/revisions' );\n\t\t\t\tbreak;\n\t\t\tcase 'global-styles-css':\n\t\t\t\tgoTo( '/css' );\n\t\t\t\tbreak;\n\t\t\tcase 'style-book':\n\t\t\t\t/*\n\t\t\t\t * The stand-alone style book is open\n\t\t\t\t * and the revisions panel is open,\n\t\t\t\t * close the revisions panel.\n\t\t\t\t * Otherwise keep the style book open while\n\t\t\t\t * browsing global styles panel.\n\t\t\t\t */\n\t\t\t\tif ( isRevisionsOpen ) {\n\t\t\t\t\tgoTo( '/' );\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t/*\n\t\t\t\t * Example: the user has navigated to \"Browse styles\" or elsewhere\n\t\t\t\t * and changes the editorCanvasContainerView, e.g., closes the style book.\n\t\t\t\t * The panel should not be affected.\n\t\t\t\t * Exclude revisions panel from this behavior,\n\t\t\t\t * as it should close when the editorCanvasContainerView doesn't correspond.\n\t\t\t\t */\n\t\t\t\tif ( path !== '/' && ! isRevisionsOpen ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tgoTo( '/' );\n\t\t\t\tbreak;\n\t\t}\n\t}, [ editorCanvasContainerView, isRevisionsOpen, goTo ] );\n}\n\nfunction GlobalStylesUI() {\n\tconst blocks = getBlockTypes();\n\tconst editorCanvasContainerView = useSelect(\n\t\t( select ) =>\n\t\t\tunlock( select( editSiteStore ) ).getEditorCanvasContainerView(),\n\t\t[]\n\t);\n\treturn (\n\t\t<NavigatorProvider\n\t\t\tclassName=\"edit-site-global-styles-sidebar__navigator-provider\"\n\t\t\tinitialPath=\"/\"\n\t\t>\n\t\t\t<GlobalStylesNavigationScreen path=\"/\">\n\t\t\t\t<ScreenRoot />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/variations\">\n\t\t\t\t<ScreenStyleVariations />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/blocks\">\n\t\t\t\t<ScreenBlockList />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/typography\">\n\t\t\t\t<ScreenTypography />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/typography/text\">\n\t\t\t\t<ScreenTypographyElement element=\"text\" />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/typography/link\">\n\t\t\t\t<ScreenTypographyElement element=\"link\" />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/typography/heading\">\n\t\t\t\t<ScreenTypographyElement element=\"heading\" />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/typography/caption\">\n\t\t\t\t<ScreenTypographyElement element=\"caption\" />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/typography/button\">\n\t\t\t\t<ScreenTypographyElement element=\"button\" />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/colors\">\n\t\t\t\t<ScreenColors />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/layout\">\n\t\t\t\t<ScreenLayout />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/css\">\n\t\t\t\t<ScreenCSS />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path={ '/revisions' }>\n\t\t\t\t<ScreenRevisions />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path={ '/background' }>\n\t\t\t\t<ScreenBackground />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t{ blocks.map( ( block ) => (\n\t\t\t\t<GlobalStylesNavigationScreen\n\t\t\t\t\tkey={ 'menu-block-' + block.name }\n\t\t\t\t\tpath={ '/blocks/' + encodeURIComponent( block.name ) }\n\t\t\t\t>\n\t\t\t\t\t<ScreenBlock name={ block.name } />\n\t\t\t\t</GlobalStylesNavigationScreen>\n\t\t\t) ) }\n\n\t\t\t<ContextScreens />\n\n\t\t\t{ blocks.map( ( block ) => (\n\t\t\t\t<ContextScreens\n\t\t\t\t\tkey={ 'screens-block-' + block.name }\n\t\t\t\t\tname={ block.name }\n\t\t\t\t\tparentMenu={ '/blocks/' + encodeURIComponent( block.name ) }\n\t\t\t\t/>\n\t\t\t) ) }\n\n\t\t\t{ 'style-book' === editorCanvasContainerView && (\n\t\t\t\t<GlobalStylesStyleBook />\n\t\t\t) }\n\n\t\t\t<GlobalStylesActionMenu />\n\t\t\t<GlobalStylesBlockLink />\n\t\t\t<GlobalStylesEditorCanvasContainerLink />\n\t\t</NavigatorProvider>\n\t);\n}\nexport { GlobalStylesMenuSlot };\nexport default GlobalStylesUI;\n"],"mappings":";AAAA;AACA;AACA;AACA,SACCA,+BAA+B,IAAIC,iBAAiB,EACpDC,6BAA6B,IAAIC,eAAe,EAChDC,0BAA0B,IAAIC,YAAY,EAC1CC,cAAc,EACdC,YAAY,EACZC,SAAS,EACTC,QAAQ,QACF,uBAAuB;AAC9B,SAASC,aAAa,EAAEC,KAAK,IAAIC,WAAW,QAAQ,mBAAmB;AACvE,SAASC,SAAS,EAAEC,WAAW,QAAQ,iBAAiB;AACxD,SACCC,WAAW,IAAIC,sBAAsB,EACrCL,KAAK,IAAIM,gBAAgB,QACnB,yBAAyB;AAChC,SAASC,EAAE,QAAQ,iBAAiB;AACpC,SAASP,KAAK,IAAIQ,gBAAgB,QAAQ,wBAAwB;AAClE,SAASC,YAAY,QAAQ,kBAAkB;AAC/C,SAAST,KAAK,IAAIU,SAAS,QAAQ,sBAAsB;AACzD,SAASC,SAAS,QAAQ,oBAAoB;;AAE9C;AACA;AACA;AACA,OAAOC,UAAU,MAAM,eAAe;AACtC,SACCC,uBAAuB,EACvBC,OAAO,IAAIC,eAAe,QACpB,qBAAqB;AAC5B,OAAOC,WAAW,MAAM,gBAAgB;AACxC,OAAOC,gBAAgB,MA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AAC,EACzBrC,aAAA,CAAC+C,qCAAqC,MAAE,CACtB,CAAC;AAEtB;AACA,SAASjE,oBAAoB;AAC7B,eAAeqE,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["__experimentalNavigatorProvider","NavigatorProvider","__experimentalNavigatorScreen","NavigatorScreen","__experimentalUseNavigator","useNavigator","createSlotFill","DropdownMenu","MenuGroup","MenuItem","getBlockTypes","store","blocksStore","useSelect","useDispatch","privateApis","blockEditorPrivateApis","blockEditorStore","__","preferencesStore","moreVertical","coreStore","useEffect","ScreenRoot","useBlockHasGlobalStyles","default","ScreenBlockList","ScreenBlock","ScreenTypography","ScreenTypographyElement","ScreenColors","ScreenColorPalette","ScreenShadows","ScreenShadowsEdit","ScreenLayout","ScreenStyleVariations","StyleBook","ScreenCSS","ScreenRevisions","unlock","editSiteStore","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","SLOT_FILL_NAME","useGlobalStylesReset","Slot","GlobalStylesMenuSlot","Fill","GlobalStylesMenuFill","GlobalStylesActionMenu","canReset","onReset","toggle","canEditCSS","select","getEntityRecord","__experimentalGetCurrentGlobalStylesId","globalStylesId","globalStyles","undefined","_links","setEditorCanvasContainerView","goTo","loadCustomCSS","children","icon","label","toggleProps","size","onClose","onClick","disabled","GlobalStylesNavigationScreen","className","props","filter","Boolean","join","BlockStylesNavigationScreens","parentMenu","blockStyles","blockName","map","style","index","path","name","variation","ContextScreens","blockStyleVariations","getBlockStyles","length","GlobalStylesStyleBook","navigator","location","isSelected","encodeURIComponent","startsWith","onSelect","GlobalStylesBlockLink","selectedBlockName","selectedBlockClientId","getSelectedBlockClientId","getBlockName","clientId","blockHasGlobalStyles","currentPath","newPath","skipFocus","GlobalStylesEditorCanvasContainerLink","editorCanvasContainerView","getEditorCanvasContainerView","isRevisionsOpen","GlobalStylesUI","blocks","initialPath","element","block"],"sources":["@wordpress/edit-site/src/components/global-styles/ui.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport {\n\t__experimentalNavigatorProvider as NavigatorProvider,\n\t__experimentalNavigatorScreen as NavigatorScreen,\n\t__experimentalUseNavigator as useNavigator,\n\tcreateSlotFill,\n\tDropdownMenu,\n\tMenuGroup,\n\tMenuItem,\n} from '@wordpress/components';\nimport { getBlockTypes, store as blocksStore } from '@wordpress/blocks';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport {\n\tprivateApis as blockEditorPrivateApis,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { __ } from '@wordpress/i18n';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { moreVertical } from '@wordpress/icons';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { useEffect } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport ScreenRoot from './screen-root';\nimport {\n\tuseBlockHasGlobalStyles,\n\tdefault as ScreenBlockList,\n} from './screen-block-list';\nimport ScreenBlock from './screen-block';\nimport ScreenTypography from './screen-typography';\nimport ScreenTypographyElement from './screen-typography-element';\nimport ScreenColors from './screen-colors';\nimport ScreenColorPalette from './screen-color-palette';\nimport { ScreenShadows, ScreenShadowsEdit } from './screen-shadows';\nimport ScreenLayout from './screen-layout';\nimport ScreenStyleVariations from './screen-style-variations';\nimport StyleBook from '../style-book';\nimport ScreenCSS from './screen-css';\nimport ScreenRevisions from './screen-revisions';\nimport { unlock } from '../../lock-unlock';\nimport { store as editSiteStore } from '../../store';\n\nconst SLOT_FILL_NAME = 'GlobalStylesMenu';\nconst { useGlobalStylesReset } = unlock( blockEditorPrivateApis );\nconst { Slot: GlobalStylesMenuSlot, Fill: GlobalStylesMenuFill } =\n\tcreateSlotFill( SLOT_FILL_NAME );\n\nfunction GlobalStylesActionMenu() {\n\tconst [ canReset, onReset ] = useGlobalStylesReset();\n\tconst { toggle } = useDispatch( preferencesStore );\n\tconst { canEditCSS } = useSelect( ( select ) => {\n\t\tconst { getEntityRecord, __experimentalGetCurrentGlobalStylesId } =\n\t\t\tselect( coreStore );\n\n\t\tconst globalStylesId = __experimentalGetCurrentGlobalStylesId();\n\t\tconst globalStyles = globalStylesId\n\t\t\t? getEntityRecord( 'root', 'globalStyles', globalStylesId )\n\t\t\t: undefined;\n\n\t\treturn {\n\t\t\tcanEditCSS: !! globalStyles?._links?.[ 'wp:action-edit-css' ],\n\t\t};\n\t}, [] );\n\tconst { setEditorCanvasContainerView } = unlock(\n\t\tuseDispatch( editSiteStore )\n\t);\n\tconst { goTo } = useNavigator();\n\tconst loadCustomCSS = () => {\n\t\tsetEditorCanvasContainerView( 'global-styles-css' );\n\t\tgoTo( '/css' );\n\t};\n\n\treturn (\n\t\t<GlobalStylesMenuFill>\n\t\t\t<DropdownMenu\n\t\t\t\ticon={ moreVertical }\n\t\t\t\tlabel={ __( 'More' ) }\n\t\t\t\ttoggleProps={ { size: 'compact' } }\n\t\t\t>\n\t\t\t\t{ ( { onClose } ) => (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t\t{ canEditCSS && (\n\t\t\t\t\t\t\t\t<MenuItem onClick={ loadCustomCSS }>\n\t\t\t\t\t\t\t\t\t{ __( 'Additional CSS' ) }\n\t\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\ttoggle(\n\t\t\t\t\t\t\t\t\t\t'core/edit-site',\n\t\t\t\t\t\t\t\t\t\t'welcomeGuideStyles'\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Welcome Guide' ) }\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t\t<MenuGroup>\n\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\tonClick={ () => {\n\t\t\t\t\t\t\t\t\tonReset();\n\t\t\t\t\t\t\t\t\tonClose();\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\tdisabled={ ! canReset }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Reset styles' ) }\n\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t</MenuGroup>\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t</DropdownMenu>\n\t\t</GlobalStylesMenuFill>\n\t);\n}\n\nfunction GlobalStylesNavigationScreen( { className, ...props } ) {\n\treturn (\n\t\t<NavigatorScreen\n\t\t\tclassName={ [\n\t\t\t\t'edit-site-global-styles-sidebar__navigator-screen',\n\t\t\t\tclassName,\n\t\t\t]\n\t\t\t\t.filter( Boolean )\n\t\t\t\t.join( ' ' ) }\n\t\t\t{ ...props }\n\t\t/>\n\t);\n}\n\nfunction BlockStylesNavigationScreens( {\n\tparentMenu,\n\tblockStyles,\n\tblockName,\n} ) {\n\treturn blockStyles.map( ( style, index ) => (\n\t\t<GlobalStylesNavigationScreen\n\t\t\tkey={ index }\n\t\t\tpath={ parentMenu + '/variations/' + style.name }\n\t\t>\n\t\t\t<ScreenBlock name={ blockName } variation={ style.name } />\n\t\t</GlobalStylesNavigationScreen>\n\t) );\n}\n\nfunction ContextScreens( { name, parentMenu = '' } ) {\n\tconst blockStyleVariations = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getBlockStyles } = select( blocksStore );\n\t\t\treturn getBlockStyles( name );\n\t\t},\n\t\t[ name ]\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t<GlobalStylesNavigationScreen\n\t\t\t\tpath={ parentMenu + '/colors/palette' }\n\t\t\t>\n\t\t\t\t<ScreenColorPalette name={ name } />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t{ !! blockStyleVariations?.length && (\n\t\t\t\t<BlockStylesNavigationScreens\n\t\t\t\t\tparentMenu={ parentMenu }\n\t\t\t\t\tblockStyles={ blockStyleVariations }\n\t\t\t\t\tblockName={ name }\n\t\t\t\t/>\n\t\t\t) }\n\t\t</>\n\t);\n}\n\nfunction GlobalStylesStyleBook() {\n\tconst navigator = useNavigator();\n\tconst { path } = navigator.location;\n\treturn (\n\t\t<StyleBook\n\t\t\tisSelected={ ( blockName ) =>\n\t\t\t\t// Match '/blocks/core%2Fbutton' and\n\t\t\t\t// '/blocks/core%2Fbutton/typography', but not\n\t\t\t\t// '/blocks/core%2Fbuttons'.\n\t\t\t\tpath === `/blocks/${ encodeURIComponent( blockName ) }` ||\n\t\t\t\tpath.startsWith(\n\t\t\t\t\t`/blocks/${ encodeURIComponent( blockName ) }/`\n\t\t\t\t)\n\t\t\t}\n\t\t\tonSelect={ ( blockName ) => {\n\t\t\t\t// Now go to the selected block.\n\t\t\t\tnavigator.goTo( '/blocks/' + encodeURIComponent( blockName ) );\n\t\t\t} }\n\t\t/>\n\t);\n}\n\nfunction GlobalStylesBlockLink() {\n\tconst navigator = useNavigator();\n\tconst { selectedBlockName, selectedBlockClientId } = useSelect(\n\t\t( select ) => {\n\t\t\tconst { getSelectedBlockClientId, getBlockName } =\n\t\t\t\tselect( blockEditorStore );\n\t\t\tconst clientId = getSelectedBlockClientId();\n\t\t\treturn {\n\t\t\t\tselectedBlockName: getBlockName( clientId ),\n\t\t\t\tselectedBlockClientId: clientId,\n\t\t\t};\n\t\t},\n\t\t[]\n\t);\n\tconst blockHasGlobalStyles = useBlockHasGlobalStyles( selectedBlockName );\n\t// When we're in the `Blocks` screen enable deep linking to the selected block.\n\tuseEffect( () => {\n\t\tif ( ! selectedBlockClientId || ! blockHasGlobalStyles ) {\n\t\t\treturn;\n\t\t}\n\t\tconst currentPath = navigator.location.path;\n\t\tif (\n\t\t\tcurrentPath !== '/blocks' &&\n\t\t\t! currentPath.startsWith( '/blocks/' )\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconst newPath = '/blocks/' + encodeURIComponent( selectedBlockName );\n\t\t// Avoid navigating to the same path. This can happen when selecting\n\t\t// a new block of the same type.\n\t\tif ( newPath !== currentPath ) {\n\t\t\tnavigator.goTo( newPath, { skipFocus: true } );\n\t\t}\n\t}, [ selectedBlockClientId, selectedBlockName, blockHasGlobalStyles ] );\n}\n\nfunction GlobalStylesEditorCanvasContainerLink() {\n\tconst { goTo, location } = useNavigator();\n\tconst editorCanvasContainerView = useSelect(\n\t\t( select ) =>\n\t\t\tunlock( select( editSiteStore ) ).getEditorCanvasContainerView(),\n\t\t[]\n\t);\n\tconst path = location?.path;\n\tconst isRevisionsOpen = path === '/revisions';\n\n\t// If the user switches the editor canvas container view, redirect\n\t// to the appropriate screen. This effectively allows deep linking to the\n\t// desired screens from outside the global styles navigation provider.\n\tuseEffect( () => {\n\t\tswitch ( editorCanvasContainerView ) {\n\t\t\tcase 'global-styles-revisions':\n\t\t\tcase 'global-styles-revisions:style-book':\n\t\t\t\tgoTo( '/revisions' );\n\t\t\t\tbreak;\n\t\t\tcase 'global-styles-css':\n\t\t\t\tgoTo( '/css' );\n\t\t\t\tbreak;\n\t\t\tcase 'style-book':\n\t\t\t\t/*\n\t\t\t\t * The stand-alone style book is open\n\t\t\t\t * and the revisions panel is open,\n\t\t\t\t * close the revisions panel.\n\t\t\t\t * Otherwise keep the style book open while\n\t\t\t\t * browsing global styles panel.\n\t\t\t\t */\n\t\t\t\tif ( isRevisionsOpen ) {\n\t\t\t\t\tgoTo( '/' );\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t/*\n\t\t\t\t * Example: the user has navigated to \"Browse styles\" or elsewhere\n\t\t\t\t * and changes the editorCanvasContainerView, e.g., closes the style book.\n\t\t\t\t * The panel should not be affected.\n\t\t\t\t * Exclude revisions panel from this behavior,\n\t\t\t\t * as it should close when the editorCanvasContainerView doesn't correspond.\n\t\t\t\t */\n\t\t\t\tif ( path !== '/' && ! isRevisionsOpen ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tgoTo( '/' );\n\t\t\t\tbreak;\n\t\t}\n\t}, [ editorCanvasContainerView, isRevisionsOpen, goTo ] );\n}\n\nfunction GlobalStylesUI() {\n\tconst blocks = getBlockTypes();\n\tconst editorCanvasContainerView = useSelect(\n\t\t( select ) =>\n\t\t\tunlock( select( editSiteStore ) ).getEditorCanvasContainerView(),\n\t\t[]\n\t);\n\treturn (\n\t\t<NavigatorProvider\n\t\t\tclassName=\"edit-site-global-styles-sidebar__navigator-provider\"\n\t\t\tinitialPath=\"/\"\n\t\t>\n\t\t\t<GlobalStylesNavigationScreen path=\"/\">\n\t\t\t\t<ScreenRoot />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/variations\">\n\t\t\t\t<ScreenStyleVariations />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/blocks\">\n\t\t\t\t<ScreenBlockList />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/typography\">\n\t\t\t\t<ScreenTypography />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/typography/text\">\n\t\t\t\t<ScreenTypographyElement element=\"text\" />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/typography/link\">\n\t\t\t\t<ScreenTypographyElement element=\"link\" />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/typography/heading\">\n\t\t\t\t<ScreenTypographyElement element=\"heading\" />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/typography/caption\">\n\t\t\t\t<ScreenTypographyElement element=\"caption\" />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/typography/button\">\n\t\t\t\t<ScreenTypographyElement element=\"button\" />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/colors\">\n\t\t\t\t<ScreenColors />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/shadows\">\n\t\t\t\t<ScreenShadows />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/shadows/edit/:category/:slug\">\n\t\t\t\t<ScreenShadowsEdit />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/layout\">\n\t\t\t\t<ScreenLayout />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/css\">\n\t\t\t\t<ScreenCSS />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t<GlobalStylesNavigationScreen path=\"/revisions\">\n\t\t\t\t<ScreenRevisions />\n\t\t\t</GlobalStylesNavigationScreen>\n\n\t\t\t{ blocks.map( ( block ) => (\n\t\t\t\t<GlobalStylesNavigationScreen\n\t\t\t\t\tkey={ 'menu-block-' + block.name }\n\t\t\t\t\tpath={ '/blocks/' + encodeURIComponent( block.name ) }\n\t\t\t\t>\n\t\t\t\t\t<ScreenBlock name={ block.name } />\n\t\t\t\t</GlobalStylesNavigationScreen>\n\t\t\t) ) }\n\n\t\t\t<ContextScreens />\n\n\t\t\t{ blocks.map( ( block ) => (\n\t\t\t\t<ContextScreens\n\t\t\t\t\tkey={ 'screens-block-' + block.name }\n\t\t\t\t\tname={ block.name }\n\t\t\t\t\tparentMenu={ '/blocks/' + encodeURIComponent( block.name ) }\n\t\t\t\t/>\n\t\t\t) ) }\n\n\t\t\t{ 'style-book' === editorCanvasContainerView && (\n\t\t\t\t<GlobalStylesStyleBook />\n\t\t\t) }\n\n\t\t\t<GlobalStylesActionMenu />\n\t\t\t<GlobalStylesBlockLink />\n\t\t\t<GlobalStylesEditorCanvasContainerLink />\n\t\t</NavigatorProvider>\n\t);\n}\nexport { GlobalStylesMenuSlot };\nexport default GlobalStylesUI;\n"],"mappings":"AAA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EqB,KAAK,CAAC/B,IAAK;IAAG,GAFtD,gBAAgB,GAAG+B,KAAK,CAAC/B,IAG/B,CACA,CAAC,EAED,YAAY,KAAKwB,yBAAyB,iBAC3CxE,IAAA,CAACsD,qBAAqB,IAAE,CACxB,eAEDtD,IAAA,CAACW,sBAAsB,IAAE,CAAC,eAC1BX,IAAA,CAAC6D,qBAAqB,IAAE,CAAC,eACzB7D,IAAA,CAACuE,qCAAqC,IAAE,CAAC;EAAA,CACvB,CAAC;AAEtB;AACA,SAAS/D,oBAAoB;AAC7B,eAAemE,cAAc","ignoreList":[]}
@@ -10,6 +10,33 @@ export function getVariationClassName(variation) {
10
10
  }
11
11
  return `is-style-${variation}`;
12
12
  }
13
+
14
+ /**
15
+ * Iterates through the presets array and searches for slugs that start with the specified
16
+ * slugPrefix followed by a numerical suffix. It identifies the highest numerical suffix found
17
+ * and returns one greater than the highest found suffix, ensuring that the new index is unique.
18
+ *
19
+ * @param {Array} presets The array of preset objects, each potentially containing a slug property.
20
+ * @param {string} slugPrefix The prefix to look for in the preset slugs.
21
+ *
22
+ * @return {number} The next available index for a preset with the specified slug prefix, or 1 if no matching slugs are found.
23
+ */
24
+ export function getNewIndexFromPresets(presets, slugPrefix) {
25
+ const nameRegex = new RegExp(`^${slugPrefix}([\\d]+)$`);
26
+ const highestPresetValue = presets.reduce((currentHighest, preset) => {
27
+ if (typeof preset?.slug === 'string') {
28
+ const matches = preset?.slug.match(nameRegex);
29
+ if (matches) {
30
+ const id = parseInt(matches[1], 10);
31
+ if (id > currentHighest) {
32
+ return id;
33
+ }
34
+ }
35
+ }
36
+ return currentHighest;
37
+ }, 0);
38
+ return highestPresetValue + 1;
39
+ }
13
40
  function getFontFamilyFromSetting(fontFamilies, setting) {
14
41
  if (!Array.isArray(fontFamilies) || !setting) {
15
42
  return null;
@@ -1 +1 @@
1
- {"version":3,"names":["getVariationClassName","variation","getFontFamilyFromSetting","fontFamilies","setting","Array","isArray","fontFamilyVariable","replace","fontFamilySlug","split","slice","find","fontFamily","slug","getFontFamilies","themeJson","settings","typography","theme","bodyFontFamilySetting","styles","bodyFontFamily","headingFontFamilySetting","elements","heading","headingFontFamily"],"sources":["@wordpress/edit-site/src/components/global-styles/utils.js"],"sourcesContent":["/**\n *\n * @param {string} variation The variation name.\n *\n * @return {string} The variation class name.\n */\nexport function getVariationClassName( variation ) {\n\tif ( ! variation ) {\n\t\treturn '';\n\t}\n\treturn `is-style-${ variation }`;\n}\n\nfunction getFontFamilyFromSetting( fontFamilies, setting ) {\n\tif ( ! Array.isArray( fontFamilies ) || ! setting ) {\n\t\treturn null;\n\t}\n\n\tconst fontFamilyVariable = setting.replace( 'var(', '' ).replace( ')', '' );\n\tconst fontFamilySlug = fontFamilyVariable?.split( '--' ).slice( -1 )[ 0 ];\n\n\treturn fontFamilies.find(\n\t\t( fontFamily ) => fontFamily.slug === fontFamilySlug\n\t);\n}\n\nexport function getFontFamilies( themeJson ) {\n\tconst fontFamilies = themeJson?.settings?.typography?.fontFamilies?.theme; // TODO this could not be under theme.\n\tconst bodyFontFamilySetting = themeJson?.styles?.typography?.fontFamily;\n\tconst bodyFontFamily = getFontFamilyFromSetting(\n\t\tfontFamilies,\n\t\tbodyFontFamilySetting\n\t);\n\n\tconst headingFontFamilySetting =\n\t\tthemeJson?.styles?.elements?.heading?.typography?.fontFamily;\n\n\tlet headingFontFamily;\n\tif ( ! headingFontFamilySetting ) {\n\t\theadingFontFamily = bodyFontFamily;\n\t} else {\n\t\theadingFontFamily = getFontFamilyFromSetting(\n\t\t\tfontFamilies,\n\t\t\tthemeJson?.styles?.elements?.heading?.typography?.fontFamily\n\t\t);\n\t}\n\n\treturn [ bodyFontFamily, headingFontFamily ];\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,qBAAqBA,CAAEC,SAAS,EAAG;EAClD,IAAK,CAAEA,SAAS,EAAG;IAClB,OAAO,EAAE;EACV;EACA,OAAQ,YAAYA,SAAW,EAAC;AACj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ewIndexFromPresets","presets","slugPrefix","nameRegex","RegExp","highestPresetValue","reduce","currentHighest","preset","slug","matches","match","id","parseInt","getFontFamilyFromSetting","fontFamilies","setting","Array","isArray","fontFamilyVariable","replace","fontFamilySlug","split","slice","find","fontFamily","getFontFamilies","themeJson","settings","typography","theme","bodyFontFamilySetting","styles","bodyFontFamily","headingFontFamilySetting","elements","heading","headingFontFamily"],"sources":["@wordpress/edit-site/src/components/global-styles/utils.js"],"sourcesContent":["/**\n *\n * @param {string} variation The variation name.\n *\n * @return {string} The variation class name.\n */\nexport function getVariationClassName( variation ) {\n\tif ( ! variation ) {\n\t\treturn '';\n\t}\n\treturn `is-style-${ variation }`;\n}\n\n/**\n * Iterates through the presets array and searches for slugs that start with the specified\n * slugPrefix followed by a numerical suffix. It identifies the highest numerical suffix found\n * and returns one greater than the highest found suffix, ensuring that the new index is unique.\n *\n * @param {Array} presets The array of preset objects, each potentially containing a slug property.\n * @param {string} slugPrefix The prefix to look for in the preset slugs.\n *\n * @return {number} The next available index for a preset with the specified slug prefix, or 1 if no matching slugs are found.\n */\nexport function getNewIndexFromPresets( presets, slugPrefix ) {\n\tconst nameRegex = new RegExp( `^${ slugPrefix }([\\\\d]+)$` );\n\tconst highestPresetValue = presets.reduce( ( currentHighest, preset ) => {\n\t\tif ( typeof preset?.slug === 'string' ) {\n\t\t\tconst matches = preset?.slug.match( nameRegex );\n\t\t\tif ( matches ) {\n\t\t\t\tconst id = parseInt( matches[ 1 ], 10 );\n\t\t\t\tif ( id > currentHighest ) {\n\t\t\t\t\treturn id;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn currentHighest;\n\t}, 0 );\n\treturn highestPresetValue + 1;\n}\n\nfunction getFontFamilyFromSetting( fontFamilies, setting ) {\n\tif ( ! Array.isArray( fontFamilies ) || ! setting ) {\n\t\treturn null;\n\t}\n\n\tconst fontFamilyVariable = setting.replace( 'var(', '' ).replace( ')', '' );\n\tconst fontFamilySlug = fontFamilyVariable?.split( '--' ).slice( -1 )[ 0 ];\n\n\treturn fontFamilies.find(\n\t\t( fontFamily ) => fontFamily.slug === fontFamilySlug\n\t);\n}\n\nexport function getFontFamilies( themeJson ) {\n\tconst fontFamilies = themeJson?.settings?.typography?.fontFamilies?.theme; // TODO this could not be under theme.\n\tconst bodyFontFamilySetting = themeJson?.styles?.typography?.fontFamily;\n\tconst bodyFontFamily = getFontFamilyFromSetting(\n\t\tfontFamilies,\n\t\tbodyFontFamilySetting\n\t);\n\n\tconst headingFontFamilySetting =\n\t\tthemeJson?.styles?.elements?.heading?.typography?.fontFamily;\n\n\tlet headingFontFamily;\n\tif ( ! headingFontFamilySetting ) {\n\t\theadingFontFamily = bodyFontFamily;\n\t} else {\n\t\theadingFontFamily = getFontFamilyFromSetting(\n\t\t\tfontFamilies,\n\t\t\tthemeJson?.styles?.elements?.heading?.typography?.fontFamily\n\t\t);\n\t}\n\n\treturn [ bodyFontFamily, headingFontFamily ];\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,qBAAqBA,CAAEC,SAAS,EAAG;EAClD,IAAK,CAAEA,SAAS,EAAG;IAClB,OAAO,EAAE;EACV;EACA,OAAQ,YAAYA,SAAW,EAAC;AACjC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,sBAAsBA,CAAEC,OAAO,EAAEC,UAAU,EAAG;EAC7D,MAAMC,SAAS,GAAG,IAAIC,MAAM,CAAG,IAAIF,UAAY,WAAW,CAAC;EAC3D,MAAMG,kBAAkB,GAAGJ,OAAO,CAACK,MAAM,CAAE,CAAEC,cAAc,EAAEC,MAAM,KAAM;IACxE,IAAK,OAAOA,MAAM,EAAEC,IAAI,KAAK,QAAQ,EAAG;MACvC,MAAMC,OAAO,GAAGF,MAAM,EAAEC,IAAI,CAACE,KAAK,CAAER,SAAU,CAAC;MAC/C,IAAKO,OAAO,EAAG;QACd,MAAME,EAAE,GAAGC,QAAQ,CAAE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AAwB,CAC3CC,YAAY,EACZY,SAAS,EAAEK,MAAM,EAAEG,QAAQ,EAAEC,OAAO,EAAEP,UAAU,EAAEJ,UACnD,CAAC;EACF;EAEA,OAAO,CAAEQ,cAAc,EAAEI,iBAAiB,CAAE;AAC7C","ignoreList":[]}
@@ -1,4 +1,3 @@
1
- import { createElement } from "react";
2
1
  /**
3
2
  * External dependencies
4
3
  */
@@ -17,6 +16,7 @@ import { privateApis as editorPrivateApis } from '@wordpress/editor';
17
16
  * Internal dependencies
18
17
  */
19
18
  import { unlock } from '../../../lock-unlock';
19
+ import { jsx as _jsx } from "react/jsx-runtime";
20
20
  const {
21
21
  mergeBaseAndUserConfigs
22
22
  } = unlock(editorPrivateApis);
@@ -36,11 +36,12 @@ export default function Variation({
36
36
  setUserConfig
37
37
  } = useContext(GlobalStylesContext);
38
38
  const context = useMemo(() => {
39
- var _variation$settings, _variation$styles;
39
+ var _variation$settings, _variation$styles, _variation$_links;
40
40
  return {
41
41
  user: {
42
42
  settings: (_variation$settings = variation.settings) !== null && _variation$settings !== void 0 ? _variation$settings : {},
43
- styles: (_variation$styles = variation.styles) !== null && _variation$styles !== void 0 ? _variation$styles : {}
43
+ styles: (_variation$styles = variation.styles) !== null && _variation$styles !== void 0 ? _variation$styles : {},
44
+ _links: (_variation$_links = variation._links) !== null && _variation$_links !== void 0 ? _variation$_links : {}
44
45
  },
45
46
  base,
46
47
  merged: mergeBaseAndUserConfigs(base, variation),
@@ -50,7 +51,8 @@ export default function Variation({
50
51
  const selectVariation = () => {
51
52
  setUserConfig(() => ({
52
53
  settings: variation.settings,
53
- styles: variation.styles
54
+ styles: variation.styles,
55
+ _links: variation._links
54
56
  }));
55
57
  };
56
58
  const selectOnEnter = event => {
@@ -65,24 +67,27 @@ export default function Variation({
65
67
  label = sprintf( /* translators: %1$s: variation title. %2$s variation description. */
66
68
  __('%1$s (%2$s)'), variation?.title, variation?.description);
67
69
  }
68
- return createElement(GlobalStylesContext.Provider, {
69
- value: context
70
- }, createElement("div", {
71
- className: clsx('edit-site-global-styles-variations_item', {
72
- 'is-active': isActive
73
- }),
74
- role: "button",
75
- onClick: selectVariation,
76
- onKeyDown: selectOnEnter,
77
- tabIndex: "0",
78
- "aria-label": label,
79
- "aria-current": isActive,
80
- onFocus: () => setIsFocused(true),
81
- onBlur: () => setIsFocused(false)
82
- }, createElement("div", {
83
- className: clsx('edit-site-global-styles-variations_item-preview', {
84
- 'is-pill': isPill
70
+ return /*#__PURE__*/_jsx(GlobalStylesContext.Provider, {
71
+ value: context,
72
+ children: /*#__PURE__*/_jsx("div", {
73
+ className: clsx('edit-site-global-styles-variations_item', {
74
+ 'is-active': isActive
75
+ }),
76
+ role: "button",
77
+ onClick: selectVariation,
78
+ onKeyDown: selectOnEnter,
79
+ tabIndex: "0",
80
+ "aria-label": label,
81
+ "aria-current": isActive,
82
+ onFocus: () => setIsFocused(true),
83
+ onBlur: () => setIsFocused(false),
84
+ children: /*#__PURE__*/_jsx("div", {
85
+ className: clsx('edit-site-global-styles-variations_item-preview', {
86
+ 'is-pill': isPill
87
+ }),
88
+ children: children(isFocused)
89
+ })
85
90
  })
86
- }, children(isFocused))));
91
+ });
87
92
  }
88
93
  //# sourceMappingURL=variation.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["clsx","useMemo","useContext","useState","ENTER","__","sprintf","privateApis","blockEditorPrivateApis","editorPrivateApis","unlock","mergeBaseAndUserConfigs","GlobalStylesContext","areGlobalStyleConfigsEqual","Variation","variation","children","isPill","isFocused","setIsFocused","base","user","setUserConfig","context","_variation$settings","_variation$styles","settings","styles","merged","selectVariation","selectOnEnter","event","keyCode","preventDefault","isActive","label","title","description","createElement","Provider","value","className","role","onClick","onKeyDown","tabIndex","onFocus","onBlur"],"sources":["@wordpress/edit-site/src/components/global-styles/variations/variation.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useMemo, useContext, useState } from '@wordpress/element';\nimport { ENTER } from '@wordpress/keycodes';\nimport { __, sprintf } from '@wordpress/i18n';\nimport { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../../lock-unlock';\n\nconst { mergeBaseAndUserConfigs } = unlock( editorPrivateApis );\nconst { GlobalStylesContext, areGlobalStyleConfigsEqual } = unlock(\n\tblockEditorPrivateApis\n);\n\nexport default function Variation( { variation, children, isPill } ) {\n\tconst [ isFocused, setIsFocused ] = useState( false );\n\tconst { base, user, setUserConfig } = useContext( GlobalStylesContext );\n\tconst context = useMemo(\n\t\t() => ( {\n\t\t\tuser: {\n\t\t\t\tsettings: variation.settings ?? {},\n\t\t\t\tstyles: variation.styles ?? {},\n\t\t\t},\n\t\t\tbase,\n\t\t\tmerged: mergeBaseAndUserConfigs( base, variation ),\n\t\t\tsetUserConfig: () => {},\n\t\t} ),\n\t\t[ variation, base ]\n\t);\n\n\tconst selectVariation = () => {\n\t\tsetUserConfig( () => ( {\n\t\t\tsettings: variation.settings,\n\t\t\tstyles: variation.styles,\n\t\t} ) );\n\t};\n\n\tconst selectOnEnter = ( event ) => {\n\t\tif ( event.keyCode === ENTER ) {\n\t\t\tevent.preventDefault();\n\t\t\tselectVariation();\n\t\t}\n\t};\n\n\tconst isActive = useMemo(\n\t\t() => areGlobalStyleConfigsEqual( user, variation ),\n\t\t[ user, variation ]\n\t);\n\n\tlet label = variation?.title;\n\tif ( variation?.description ) {\n\t\tlabel = sprintf(\n\t\t\t/* translators: %1$s: variation title. %2$s variation description. */\n\t\t\t__( '%1$s (%2$s)' ),\n\t\t\tvariation?.title,\n\t\t\tvariation?.description\n\t\t);\n\t}\n\n\treturn (\n\t\t<GlobalStylesContext.Provider value={ context }>\n\t\t\t<div\n\t\t\t\tclassName={ clsx( 'edit-site-global-styles-variations_item', {\n\t\t\t\t\t'is-active': isActive,\n\t\t\t\t} ) }\n\t\t\t\trole=\"button\"\n\t\t\t\tonClick={ selectVariation }\n\t\t\t\tonKeyDown={ selectOnEnter }\n\t\t\t\ttabIndex=\"0\"\n\t\t\t\taria-label={ label }\n\t\t\t\taria-current={ isActive }\n\t\t\t\tonFocus={ () => setIsFocused( true ) }\n\t\t\t\tonBlur={ () => setIsFocused( false ) }\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclassName={ clsx(\n\t\t\t\t\t\t'edit-site-global-styles-variations_item-preview',\n\t\t\t\t\t\t{ 'is-pill': isPill }\n\t\t\t\t\t) }\n\t\t\t\t>\n\t\t\t\t\t{ children( isFocused ) }\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</GlobalStylesContext.Provider>\n\t);\n}\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,OAAO,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,oBAAoB;AAClE,SAASC,KAAK,QAAQ,qBAAqB;AAC3C,SAASC,EAAE,EAAEC,OAAO,QAAQ,iBAAiB;AAC7C,SAASC,WAAW,IAAIC,sBAAsB,QAAQ,yBAAyB;AAC/E,SAASD,WAAW,IAAIE,iBAAiB,QAAQ,mBAAmB;;AAEpE;AACA;AACA;AACA,SAASC,MAAM,QAAQ,sBAAsB;AAE7C,MAAM;EAAEC;AAAwB,CAAC,GAAGD,MAAM,CAAED,iBAAkB,CAAC;AAC/D,MAAM;EAAEG,mBAAmB;EAAEC;AAA2B,CAAC,GAAGH,MAAM,CACjEF,sBACD,CAAC;AAED,eAAe,SAASM,SAASA,CAAE;EAAEC,SAAS;EAAEC,QAAQ;EAAEC;AAAO,CAAC,EAAG;EACpE,MAAM,CAAEC,SAAS,EAAEC,YAAY,CAAE,GAAGhB,QAAQ,CAAE,KAAM,CAAC;EACrD,MAAM;IAAEiB,IAAI;IAAEC,IAAI;IAAEC;EAAc,CAAC,GAAGpB,UAAU,CAAEU,mBAAoB,CAAC;EACvE,MAAMW,OAAO,GAA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AAK,EAAGjB;EAAS,GAC9Ce,aAAA;IACCG,SAAS,EAAGzC,IAAI,CAAE,yCAAyC,EAAE;MAC5D,WAAW,EAAEkC;IACd,CAAE,CAAG;IACLQ,IAAI,EAAC,QAAQ;IACbC,OAAO,EAAGd,eAAiB;IAC3Be,SAAS,EAAGd,aAAe;IAC3Be,QAAQ,EAAC,GAAG;IACZ,cAAaV,KAAO;IACpB,gBAAeD,QAAU;IACzBY,OAAO,EAAGA,CAAA,KAAM3B,YAAY,CAAE,IAAK,CAAG;IACtC4B,MAAM,EAAGA,CAAA,KAAM5B,YAAY,CAAE,KAAM;EAAG,GAEtCmB,aAAA;IACCG,SAAS,EAAGzC,IAAI,CACf,iDAAiD,EACjD;MAAE,SAAS,EAAEiB;IAAO,CACrB;EAAG,GAEDD,QAAQ,CAAEE,SAAU,CAClB,CACD,CACwB,CAAC;AAEjC","ignoreList":[]}
1
+ {"version":3,"names":["clsx","useMemo","useContext","useState","ENTER","__","sprintf","privateApis","blockEditorPrivateApis","editorPrivateApis","unlock","jsx","_jsx","mergeBaseAndUserConfigs","GlobalStylesContext","areGlobalStyleConfigsEqual","Variation","variation","children","isPill","isFocused","setIsFocused","base","user","setUserConfig","context","_variation$settings","_variation$styles","_variation$_links","settings","styles","_links","merged","selectVariation","selectOnEnter","event","keyCode","preventDefault","isActive","label","title","description","Provider","value","className","role","onClick","onKeyDown","tabIndex","onFocus","onBlur"],"sources":["@wordpress/edit-site/src/components/global-styles/variations/variation.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport clsx from 'clsx';\n\n/**\n * WordPress dependencies\n */\nimport { useMemo, useContext, useState } from '@wordpress/element';\nimport { ENTER } from '@wordpress/keycodes';\nimport { __, sprintf } from '@wordpress/i18n';\nimport { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../../lock-unlock';\n\nconst { mergeBaseAndUserConfigs } = unlock( editorPrivateApis );\nconst { GlobalStylesContext, areGlobalStyleConfigsEqual } = unlock(\n\tblockEditorPrivateApis\n);\n\nexport default function Variation( { variation, children, isPill } ) {\n\tconst [ isFocused, setIsFocused ] = useState( false );\n\tconst { base, user, setUserConfig } = useContext( GlobalStylesContext );\n\tconst context = useMemo(\n\t\t() => ( {\n\t\t\tuser: {\n\t\t\t\tsettings: variation.settings ?? {},\n\t\t\t\tstyles: variation.styles ?? {},\n\t\t\t\t_links: variation._links ?? {},\n\t\t\t},\n\t\t\tbase,\n\t\t\tmerged: mergeBaseAndUserConfigs( base, variation ),\n\t\t\tsetUserConfig: () => {},\n\t\t} ),\n\t\t[ variation, base ]\n\t);\n\n\tconst selectVariation = () => {\n\t\tsetUserConfig( () => ( {\n\t\t\tsettings: variation.settings,\n\t\t\tstyles: variation.styles,\n\t\t\t_links: variation._links,\n\t\t} ) );\n\t};\n\n\tconst selectOnEnter = ( event ) => {\n\t\tif ( event.keyCode === ENTER ) {\n\t\t\tevent.preventDefault();\n\t\t\tselectVariation();\n\t\t}\n\t};\n\n\tconst isActive = useMemo(\n\t\t() => areGlobalStyleConfigsEqual( user, variation ),\n\t\t[ user, variation ]\n\t);\n\n\tlet label = variation?.title;\n\tif ( variation?.description ) {\n\t\tlabel = sprintf(\n\t\t\t/* translators: %1$s: variation title. %2$s variation description. */\n\t\t\t__( '%1$s (%2$s)' ),\n\t\t\tvariation?.title,\n\t\t\tvariation?.description\n\t\t);\n\t}\n\n\treturn (\n\t\t<GlobalStylesContext.Provider value={ context }>\n\t\t\t<div\n\t\t\t\tclassName={ clsx( 'edit-site-global-styles-variations_item', {\n\t\t\t\t\t'is-active': isActive,\n\t\t\t\t} ) }\n\t\t\t\trole=\"button\"\n\t\t\t\tonClick={ selectVariation }\n\t\t\t\tonKeyDown={ selectOnEnter }\n\t\t\t\ttabIndex=\"0\"\n\t\t\t\taria-label={ label }\n\t\t\t\taria-current={ isActive }\n\t\t\t\tonFocus={ () => setIsFocused( true ) }\n\t\t\t\tonBlur={ () => setIsFocused( false ) }\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclassName={ clsx(\n\t\t\t\t\t\t'edit-site-global-styles-variations_item-preview',\n\t\t\t\t\t\t{ 'is-pill': isPill }\n\t\t\t\t\t) }\n\t\t\t\t>\n\t\t\t\t\t{ children( isFocused ) }\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</GlobalStylesContext.Provider>\n\t);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,IAAI,MAAM,MAAM;;AAEvB;AACA;AACA;AACA,SAASC,OAAO,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,oBAAoB;AAClE,SAASC,KAAK,QAAQ,qBAAqB;AAC3C,SAASC,EAAE,EAAEC,OAAO,QAAQ,iBAAiB;AAC7C,SAASC,WAAW,IAAIC,sBAAsB,QAAQ,yBAAyB;AAC/E,SAASD,WAAW,IAAIE,iBAAiB,QAAQ,mBAAmB;;AAEpE;AACA;AACA;AACA,SAASC,MAAM,QAAQ,sBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE9C,MAAM;EAAEC;AAAwB,CAAC,GAAGH,MAAM,CAAED,iBAAkB,CAAC;AAC/D,MAAM;EAAEK,mBAAmB;EAAEC;AAA2B,CAAC,GAAGL,MAAM,CACjEF,sBACD,CAAC;AAED,eAAe,SAASQ,SAASA,CAAE;EAAEC,SAAS;EAAEC,QAAQ;EAAEC;AAAO,CAAC,EAAG;EACpE,MAAM,CAAEC,SAAS,EAAEC,YAAY,CAAE,GAAGlB,QAAQ,CAAE,KAAM,CAAC;EACrD,MAAM;IAAEmB,IAAI;IAAEC,IAAI;IAAEC;EAAc,CAAC,GAAGtB,UAAU,CAAEY,mBAAoB,CAAC;EACvE,MAAMW,OAAO,GAAGxB,OAAO,CACtB;IAAA,IAAAyB,mBAAA,EAAAC,iBAAA,EAAAC,iBAAA;IAAA,OAAQ;MACPL,IAAI,EAAE;QACLM,QAAQ,GAAAH,mB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