@wordpress/edit-site 6.32.0 → 6.32.1-next.b8c8708f3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (991) hide show
  1. package/build/components/add-new-pattern/index.js +153 -141
  2. package/build/components/add-new-pattern/index.js.map +7 -1
  3. package/build/components/add-new-post/index.js +114 -89
  4. package/build/components/add-new-post/index.js.map +7 -1
  5. package/build/components/add-new-template/add-custom-generic-template-modal-content.js +80 -60
  6. package/build/components/add-new-template/add-custom-generic-template-modal-content.js.map +7 -1
  7. package/build/components/add-new-template/add-custom-template-modal-content.js +284 -207
  8. package/build/components/add-new-template/add-custom-template-modal-content.js.map +7 -1
  9. package/build/components/add-new-template/index.js +309 -248
  10. package/build/components/add-new-template/index.js.map +7 -1
  11. package/build/components/add-new-template/utils.js +459 -446
  12. package/build/components/add-new-template/utils.js.map +7 -1
  13. package/build/components/app/index.js +72 -63
  14. package/build/components/app/index.js.map +7 -1
  15. package/build/components/block-editor/use-editor-iframe-props.js +63 -66
  16. package/build/components/block-editor/use-editor-iframe-props.js.map +7 -1
  17. package/build/components/block-editor/use-navigate-to-entity-record.js +34 -22
  18. package/build/components/block-editor/use-navigate-to-entity-record.js.map +7 -1
  19. package/build/components/block-editor/use-site-editor-settings.js +64 -51
  20. package/build/components/block-editor/use-site-editor-settings.js.map +7 -1
  21. package/build/components/canvas-loader/index.js +41 -56
  22. package/build/components/canvas-loader/index.js.map +7 -1
  23. package/build/components/dataviews-actions/index.js +96 -83
  24. package/build/components/dataviews-actions/index.js.map +7 -1
  25. package/build/components/editor/index.js +288 -235
  26. package/build/components/editor/index.js.map +7 -1
  27. package/build/components/editor/site-preview.js +55 -42
  28. package/build/components/editor/site-preview.js.map +7 -1
  29. package/build/components/editor/use-adapt-editor-to-canvas.js +49 -31
  30. package/build/components/editor/use-adapt-editor-to-canvas.js.map +7 -1
  31. package/build/components/editor/use-editor-title.js +79 -61
  32. package/build/components/editor/use-editor-title.js.map +7 -1
  33. package/build/components/editor/use-resolve-edited-entity.js +112 -140
  34. package/build/components/editor/use-resolve-edited-entity.js.map +7 -1
  35. package/build/components/editor-canvas-container/index.js +101 -91
  36. package/build/components/editor-canvas-container/index.js.map +7 -1
  37. package/build/components/global-styles/background-panel.js +46 -39
  38. package/build/components/global-styles/background-panel.js.map +7 -1
  39. package/build/components/global-styles/block-preview-panel.js +58 -52
  40. package/build/components/global-styles/block-preview-panel.js.map +7 -1
  41. package/build/components/global-styles/color-indicator-wrapper.js +47 -26
  42. package/build/components/global-styles/color-indicator-wrapper.js.map +7 -1
  43. package/build/components/global-styles/color-palette-panel.js +130 -81
  44. package/build/components/global-styles/color-palette-panel.js.map +7 -1
  45. package/build/components/global-styles/confirm-reset-shadow-dialog.js +38 -22
  46. package/build/components/global-styles/confirm-reset-shadow-dialog.js.map +7 -1
  47. package/build/components/global-styles/dimensions-panel.js +46 -41
  48. package/build/components/global-styles/dimensions-panel.js.map +7 -1
  49. package/build/components/global-styles/font-families.js +106 -102
  50. package/build/components/global-styles/font-families.js.map +7 -1
  51. package/build/components/global-styles/font-family-item.js +41 -43
  52. package/build/components/global-styles/font-family-item.js.map +7 -1
  53. package/build/components/global-styles/font-library-modal/collection-font-variant.js +55 -39
  54. package/build/components/global-styles/font-library-modal/collection-font-variant.js.map +7 -1
  55. package/build/components/global-styles/font-library-modal/context.js +228 -243
  56. package/build/components/global-styles/font-library-modal/context.js.map +7 -1
  57. package/build/components/global-styles/font-library-modal/font-card.js +70 -59
  58. package/build/components/global-styles/font-library-modal/font-card.js.map +7 -1
  59. package/build/components/global-styles/font-library-modal/font-collection.js +407 -321
  60. package/build/components/global-styles/font-library-modal/font-collection.js.map +7 -1
  61. package/build/components/global-styles/font-library-modal/font-demo.js +54 -50
  62. package/build/components/global-styles/font-library-modal/font-demo.js.map +7 -1
  63. package/build/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js +52 -44
  64. package/build/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js.map +7 -1
  65. package/build/components/global-styles/font-library-modal/index.js +90 -87
  66. package/build/components/global-styles/font-library-modal/index.js.map +7 -1
  67. package/build/components/global-styles/font-library-modal/installed-fonts.js +369 -255
  68. package/build/components/global-styles/font-library-modal/installed-fonts.js.map +7 -1
  69. package/build/components/global-styles/font-library-modal/library-font-details.js +60 -42
  70. package/build/components/global-styles/font-library-modal/library-font-details.js.map +7 -1
  71. package/build/components/global-styles/font-library-modal/library-font-variant.js +64 -49
  72. package/build/components/global-styles/font-library-modal/library-font-variant.js.map +7 -1
  73. package/build/components/global-styles/font-library-modal/resolvers.js +64 -31
  74. package/build/components/global-styles/font-library-modal/resolvers.js.map +7 -1
  75. package/build/components/global-styles/font-library-modal/upload-fonts.js +133 -145
  76. package/build/components/global-styles/font-library-modal/upload-fonts.js.map +7 -1
  77. package/build/components/global-styles/font-library-modal/utils/constants.js +45 -24
  78. package/build/components/global-styles/font-library-modal/utils/constants.js.map +7 -1
  79. package/build/components/global-styles/font-library-modal/utils/filter-fonts.js +30 -27
  80. package/build/components/global-styles/font-library-modal/utils/filter-fonts.js.map +7 -1
  81. package/build/components/global-styles/font-library-modal/utils/fonts-outline.js +41 -13
  82. package/build/components/global-styles/font-library-modal/utils/fonts-outline.js.map +7 -1
  83. package/build/components/global-styles/font-library-modal/utils/index.js +127 -161
  84. package/build/components/global-styles/font-library-modal/utils/index.js.map +7 -1
  85. package/build/components/global-styles/font-library-modal/utils/make-families-from-faces.js +25 -18
  86. package/build/components/global-styles/font-library-modal/utils/make-families-from-faces.js.map +7 -1
  87. package/build/components/global-styles/font-library-modal/utils/preview-styles.js +55 -74
  88. package/build/components/global-styles/font-library-modal/utils/preview-styles.js.map +7 -1
  89. package/build/components/global-styles/font-library-modal/utils/sort-font-faces.js +32 -16
  90. package/build/components/global-styles/font-library-modal/utils/sort-font-faces.js.map +7 -1
  91. package/build/components/global-styles/font-library-modal/utils/toggleFont.js +43 -72
  92. package/build/components/global-styles/font-library-modal/utils/toggleFont.js.map +7 -1
  93. package/build/components/global-styles/font-sizes/confirm-delete-font-size-dialog.js +44 -23
  94. package/build/components/global-styles/font-sizes/confirm-delete-font-size-dialog.js.map +7 -1
  95. package/build/components/global-styles/font-sizes/confirm-reset-font-sizes-dialog.js +38 -22
  96. package/build/components/global-styles/font-sizes/confirm-reset-font-sizes-dialog.js.map +7 -1
  97. package/build/components/global-styles/font-sizes/font-size-preview.js +42 -35
  98. package/build/components/global-styles/font-sizes/font-size-preview.js.map +7 -1
  99. package/build/components/global-styles/font-sizes/font-size.js +207 -170
  100. package/build/components/global-styles/font-sizes/font-size.js.map +7 -1
  101. package/build/components/global-styles/font-sizes/font-sizes-count.js +46 -45
  102. package/build/components/global-styles/font-sizes/font-sizes-count.js.map +7 -1
  103. package/build/components/global-styles/font-sizes/font-sizes.js +199 -136
  104. package/build/components/global-styles/font-sizes/font-sizes.js.map +7 -1
  105. package/build/components/global-styles/font-sizes/rename-font-size-dialog.js +81 -58
  106. package/build/components/global-styles/font-sizes/rename-font-size-dialog.js.map +7 -1
  107. package/build/components/global-styles/gradients-palette-panel.js +140 -85
  108. package/build/components/global-styles/gradients-palette-panel.js.map +7 -1
  109. package/build/components/global-styles/header.js +51 -48
  110. package/build/components/global-styles/header.js.map +7 -1
  111. package/build/components/global-styles/highlighted-colors.js +48 -40
  112. package/build/components/global-styles/highlighted-colors.js.map +7 -1
  113. package/build/components/global-styles/hooks.js +89 -68
  114. package/build/components/global-styles/hooks.js.map +7 -1
  115. package/build/components/global-styles/icon-with-current-color.js +50 -25
  116. package/build/components/global-styles/icon-with-current-color.js.map +7 -1
  117. package/build/components/global-styles/index.js +36 -11
  118. package/build/components/global-styles/index.js.map +7 -1
  119. package/build/components/global-styles/navigation-button.js +41 -42
  120. package/build/components/global-styles/navigation-button.js.map +7 -1
  121. package/build/components/global-styles/palette.js +82 -73
  122. package/build/components/global-styles/palette.js.map +7 -1
  123. package/build/components/global-styles/preset-colors.js +36 -24
  124. package/build/components/global-styles/preset-colors.js.map +7 -1
  125. package/build/components/global-styles/preview-colors.js +68 -46
  126. package/build/components/global-styles/preview-colors.js.map +7 -1
  127. package/build/components/global-styles/preview-styles.js +182 -136
  128. package/build/components/global-styles/preview-styles.js.map +7 -1
  129. package/build/components/global-styles/preview-typography.js +65 -44
  130. package/build/components/global-styles/preview-typography.js.map +7 -1
  131. package/build/components/global-styles/preview-wrapper.js +70 -85
  132. package/build/components/global-styles/preview-wrapper.js.map +7 -1
  133. package/build/components/global-styles/root-menu.js +53 -52
  134. package/build/components/global-styles/root-menu.js.map +7 -1
  135. package/build/components/global-styles/screen-background.js +54 -35
  136. package/build/components/global-styles/screen-background.js.map +7 -1
  137. package/build/components/global-styles/screen-block-list.js +129 -118
  138. package/build/components/global-styles/screen-block-list.js.map +7 -1
  139. package/build/components/global-styles/screen-block.js +185 -182
  140. package/build/components/global-styles/screen-block.js.map +7 -1
  141. package/build/components/global-styles/screen-color-palette.js +61 -56
  142. package/build/components/global-styles/screen-color-palette.js.map +7 -1
  143. package/build/components/global-styles/screen-colors.js +64 -40
  144. package/build/components/global-styles/screen-colors.js.map +7 -1
  145. package/build/components/global-styles/screen-css.js +80 -50
  146. package/build/components/global-styles/screen-css.js.map +7 -1
  147. package/build/components/global-styles/screen-layout.js +45 -32
  148. package/build/components/global-styles/screen-layout.js.map +7 -1
  149. package/build/components/global-styles/screen-revisions/index.js +144 -116
  150. package/build/components/global-styles/screen-revisions/index.js.map +7 -1
  151. package/build/components/global-styles/screen-revisions/revisions-buttons.js +165 -166
  152. package/build/components/global-styles/screen-revisions/revisions-buttons.js.map +7 -1
  153. package/build/components/global-styles/screen-revisions/use-global-styles-revisions.js +93 -81
  154. package/build/components/global-styles/screen-revisions/use-global-styles-revisions.js.map +7 -1
  155. package/build/components/global-styles/screen-root.js +93 -84
  156. package/build/components/global-styles/screen-root.js.map +7 -1
  157. package/build/components/global-styles/screen-shadows.js +43 -16
  158. package/build/components/global-styles/screen-shadows.js.map +7 -1
  159. package/build/components/global-styles/screen-style-variations.js +64 -44
  160. package/build/components/global-styles/screen-style-variations.js.map +7 -1
  161. package/build/components/global-styles/screen-typography-element.js +146 -93
  162. package/build/components/global-styles/screen-typography-element.js.map +7 -1
  163. package/build/components/global-styles/screen-typography.js +64 -40
  164. package/build/components/global-styles/screen-typography.js.map +7 -1
  165. package/build/components/global-styles/shadow-utils.js +75 -180
  166. package/build/components/global-styles/shadow-utils.js.map +7 -1
  167. package/build/components/global-styles/shadows-edit-panel.js +433 -358
  168. package/build/components/global-styles/shadows-edit-panel.js.map +7 -1
  169. package/build/components/global-styles/shadows-panel.js +178 -131
  170. package/build/components/global-styles/shadows-panel.js.map +7 -1
  171. package/build/components/global-styles/size-control/index.js +66 -76
  172. package/build/components/global-styles/size-control/index.js.map +7 -1
  173. package/build/components/global-styles/style-variations-container.js +114 -102
  174. package/build/components/global-styles/style-variations-container.js.map +7 -1
  175. package/build/components/global-styles/subtitle.js +34 -21
  176. package/build/components/global-styles/subtitle.js.map +7 -1
  177. package/build/components/global-styles/typeset.js +73 -75
  178. package/build/components/global-styles/typeset.js.map +7 -1
  179. package/build/components/global-styles/typography-elements.js +109 -86
  180. package/build/components/global-styles/typography-elements.js.map +7 -1
  181. package/build/components/global-styles/typography-example.js +66 -65
  182. package/build/components/global-styles/typography-example.js.map +7 -1
  183. package/build/components/global-styles/typography-panel.js +57 -39
  184. package/build/components/global-styles/typography-panel.js.map +7 -1
  185. package/build/components/global-styles/typography-preview.js +73 -53
  186. package/build/components/global-styles/typography-preview.js.map +7 -1
  187. package/build/components/global-styles/ui.js +282 -314
  188. package/build/components/global-styles/ui.js.map +7 -1
  189. package/build/components/global-styles/utils.js +45 -31
  190. package/build/components/global-styles/utils.js.map +7 -1
  191. package/build/components/global-styles/variations/variation.js +90 -74
  192. package/build/components/global-styles/variations/variation.js.map +7 -1
  193. package/build/components/global-styles/variations/variations-color.js +52 -41
  194. package/build/components/global-styles/variations/variations-color.js.map +7 -1
  195. package/build/components/global-styles/variations/variations-panel.js +61 -51
  196. package/build/components/global-styles/variations/variations-panel.js.map +7 -1
  197. package/build/components/global-styles/variations/variations-typography.js +69 -49
  198. package/build/components/global-styles/variations/variations-typography.js.map +7 -1
  199. package/build/components/global-styles-renderer/index.js +39 -33
  200. package/build/components/global-styles-renderer/index.js.map +7 -1
  201. package/build/components/global-styles-sidebar/default-sidebar.js +53 -40
  202. package/build/components/global-styles-sidebar/default-sidebar.js.map +7 -1
  203. package/build/components/global-styles-sidebar/index.js +164 -141
  204. package/build/components/global-styles-sidebar/index.js.map +7 -1
  205. package/build/components/layout/animation.js +53 -78
  206. package/build/components/layout/animation.js.map +7 -1
  207. package/build/components/layout/hooks.js +40 -35
  208. package/build/components/layout/hooks.js.map +7 -1
  209. package/build/components/layout/index.js +220 -199
  210. package/build/components/layout/index.js.map +7 -1
  211. package/build/components/media/index.js +31 -26
  212. package/build/components/media/index.js.map +7 -1
  213. package/build/components/more-menu/index.js +45 -28
  214. package/build/components/more-menu/index.js.map +7 -1
  215. package/build/components/more-menu/site-export.js +69 -44
  216. package/build/components/more-menu/site-export.js.map +7 -1
  217. package/build/components/more-menu/welcome-guide-menu-item.js +29 -21
  218. package/build/components/more-menu/welcome-guide-menu-item.js.map +7 -1
  219. package/build/components/page-patterns/actions.js +82 -0
  220. package/build/components/page-patterns/actions.js.map +7 -0
  221. package/build/components/page-patterns/delete-category-menu-item.js +94 -82
  222. package/build/components/page-patterns/delete-category-menu-item.js.map +7 -1
  223. package/build/components/page-patterns/fields.js +135 -123
  224. package/build/components/page-patterns/fields.js.map +7 -1
  225. package/build/components/page-patterns/index.js +182 -148
  226. package/build/components/page-patterns/index.js.map +7 -1
  227. package/build/components/page-patterns/rename-category-menu-item.js +67 -62
  228. package/build/components/page-patterns/rename-category-menu-item.js.map +7 -1
  229. package/build/components/page-patterns/search-items.js +65 -89
  230. package/build/components/page-patterns/search-items.js.map +7 -1
  231. package/build/components/page-patterns/use-pattern-settings.js +45 -35
  232. package/build/components/page-patterns/use-pattern-settings.js.map +7 -1
  233. package/build/components/page-patterns/use-patterns.js +266 -200
  234. package/build/components/page-patterns/use-patterns.js.map +7 -1
  235. package/build/components/page-patterns/utils.js +27 -7
  236. package/build/components/page-patterns/utils.js.map +7 -1
  237. package/build/components/page-templates/fields.js +165 -159
  238. package/build/components/page-templates/fields.js.map +7 -1
  239. package/build/components/page-templates/hooks.js +66 -64
  240. package/build/components/page-templates/hooks.js.map +7 -1
  241. package/build/components/page-templates/index.js +211 -207
  242. package/build/components/page-templates/index.js.map +7 -1
  243. package/build/components/page-templates/view-utils.js +67 -0
  244. package/build/components/page-templates/view-utils.js.map +7 -0
  245. package/build/components/pagination/index.js +119 -82
  246. package/build/components/pagination/index.js.map +7 -1
  247. package/build/components/plugin-template-setting-panel/index.js +49 -56
  248. package/build/components/plugin-template-setting-panel/index.js.map +7 -1
  249. package/build/components/post-edit/index.js +171 -149
  250. package/build/components/post-edit/index.js.map +7 -1
  251. package/build/components/post-list/index.js +230 -301
  252. package/build/components/post-list/index.js.map +7 -1
  253. package/build/components/post-list/view-utils.js +167 -0
  254. package/build/components/post-list/view-utils.js.map +7 -0
  255. package/build/components/posts-app/index.js +44 -32
  256. package/build/components/posts-app/index.js.map +7 -1
  257. package/build/components/posts-app-routes/index.js +36 -25
  258. package/build/components/posts-app-routes/index.js.map +7 -1
  259. package/build/components/posts-app-routes/post-item.js +54 -35
  260. package/build/components/posts-app-routes/post-item.js.map +7 -1
  261. package/build/components/posts-app-routes/posts.js +91 -76
  262. package/build/components/posts-app-routes/posts.js.map +7 -1
  263. package/build/components/resizable-frame/index.js +200 -224
  264. package/build/components/resizable-frame/index.js.map +7 -1
  265. package/build/components/revisions/index.js +102 -71
  266. package/build/components/revisions/index.js.map +7 -1
  267. package/build/components/routes/use-title.js +45 -35
  268. package/build/components/routes/use-title.js.map +7 -1
  269. package/build/components/save-button/index.js +113 -111
  270. package/build/components/save-button/index.js.map +7 -1
  271. package/build/components/save-hub/index.js +52 -40
  272. package/build/components/save-hub/index.js.map +7 -1
  273. package/build/components/save-keyboard-shortcut/index.js +46 -52
  274. package/build/components/save-keyboard-shortcut/index.js.map +7 -1
  275. package/build/components/save-panel/index.js +155 -136
  276. package/build/components/save-panel/index.js.map +7 -1
  277. package/build/components/sidebar/index.js +81 -79
  278. package/build/components/sidebar/index.js.map +7 -1
  279. package/build/components/sidebar-button/index.js +43 -22
  280. package/build/components/sidebar-button/index.js.map +7 -1
  281. package/build/components/sidebar-dataviews/dataview-item.js +68 -55
  282. package/build/components/sidebar-dataviews/dataview-item.js.map +7 -1
  283. package/build/components/sidebar-dataviews/index.js +68 -54
  284. package/build/components/sidebar-dataviews/index.js.map +7 -1
  285. package/build/components/sidebar-global-styles-wrapper/index.js +125 -111
  286. package/build/components/sidebar-global-styles-wrapper/index.js.map +7 -1
  287. package/build/components/sidebar-navigation-item/index.js +79 -62
  288. package/build/components/sidebar-navigation-item/index.js.map +7 -1
  289. package/build/components/sidebar-navigation-screen/index.js +129 -104
  290. package/build/components/sidebar-navigation-screen/index.js.map +7 -1
  291. package/build/components/sidebar-navigation-screen-details-footer/index.js +63 -53
  292. package/build/components/sidebar-navigation-screen-details-footer/index.js.map +7 -1
  293. package/build/components/sidebar-navigation-screen-global-styles/content.js +50 -33
  294. package/build/components/sidebar-navigation-screen-global-styles/content.js.map +7 -1
  295. package/build/components/sidebar-navigation-screen-global-styles/index.js +94 -81
  296. package/build/components/sidebar-navigation-screen-global-styles/index.js.map +7 -1
  297. package/build/components/sidebar-navigation-screen-main/index.js +141 -90
  298. package/build/components/sidebar-navigation-screen-main/index.js.map +7 -1
  299. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js +40 -29
  300. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js.map +7 -1
  301. package/build/components/sidebar-navigation-screen-navigation-menu/index.js +124 -91
  302. package/build/components/sidebar-navigation-screen-navigation-menu/index.js.map +7 -1
  303. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js +116 -83
  304. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +7 -1
  305. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +57 -48
  306. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js.map +7 -1
  307. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +80 -66
  308. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +7 -1
  309. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +64 -38
  310. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +7 -1
  311. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +125 -96
  312. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +7 -1
  313. package/build/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js +33 -19
  314. package/build/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js.map +7 -1
  315. package/build/components/sidebar-navigation-screen-navigation-menus/constants.js +30 -16
  316. package/build/components/sidebar-navigation-screen-navigation-menus/constants.js.map +7 -1
  317. package/build/components/sidebar-navigation-screen-navigation-menus/index.js +119 -105
  318. package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +7 -1
  319. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +130 -121
  320. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +7 -1
  321. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +106 -88
  322. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +7 -1
  323. package/build/components/sidebar-navigation-screen-patterns/category-item.js +44 -21
  324. package/build/components/sidebar-navigation-screen-patterns/category-item.js.map +7 -1
  325. package/build/components/sidebar-navigation-screen-patterns/index.js +129 -106
  326. package/build/components/sidebar-navigation-screen-patterns/index.js.map +7 -1
  327. package/build/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js +36 -25
  328. package/build/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js.map +7 -1
  329. package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +81 -70
  330. package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +7 -1
  331. package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +42 -32
  332. package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.js.map +7 -1
  333. package/build/components/sidebar-navigation-screen-patterns/use-theme-patterns.js +41 -28
  334. package/build/components/sidebar-navigation-screen-patterns/use-theme-patterns.js.map +7 -1
  335. package/build/components/sidebar-navigation-screen-templates-browse/content.js +95 -76
  336. package/build/components/sidebar-navigation-screen-templates-browse/content.js.map +7 -1
  337. package/build/components/sidebar-navigation-screen-templates-browse/index.js +48 -27
  338. package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +7 -1
  339. package/build/components/sidebar-navigation-screen-unsupported/index.js +28 -20
  340. package/build/components/sidebar-navigation-screen-unsupported/index.js.map +7 -1
  341. package/build/components/site-editor-routes/home.js +50 -32
  342. package/build/components/site-editor-routes/home.js.map +7 -1
  343. package/build/components/site-editor-routes/index.js +62 -36
  344. package/build/components/site-editor-routes/index.js.map +7 -1
  345. package/build/components/site-editor-routes/navigation-item.js +55 -49
  346. package/build/components/site-editor-routes/navigation-item.js.map +7 -1
  347. package/build/components/site-editor-routes/navigation.js +55 -49
  348. package/build/components/site-editor-routes/navigation.js.map +7 -1
  349. package/build/components/site-editor-routes/notfound.js +54 -34
  350. package/build/components/site-editor-routes/notfound.js.map +7 -1
  351. package/build/components/site-editor-routes/page-item.js +58 -41
  352. package/build/components/site-editor-routes/page-item.js.map +7 -1
  353. package/build/components/site-editor-routes/pages.js +96 -86
  354. package/build/components/site-editor-routes/pages.js.map +7 -1
  355. package/build/components/site-editor-routes/pattern-item.js +48 -26
  356. package/build/components/site-editor-routes/pattern-item.js.map +7 -1
  357. package/build/components/site-editor-routes/patterns.js +51 -36
  358. package/build/components/site-editor-routes/patterns.js.map +7 -1
  359. package/build/components/site-editor-routes/stylebook.js +60 -43
  360. package/build/components/site-editor-routes/stylebook.js.map +7 -1
  361. package/build/components/site-editor-routes/styles.js +58 -46
  362. package/build/components/site-editor-routes/styles.js.map +7 -1
  363. package/build/components/site-editor-routes/template-item.js +54 -34
  364. package/build/components/site-editor-routes/template-item.js.map +7 -1
  365. package/build/components/site-editor-routes/template-part-item.js +45 -21
  366. package/build/components/site-editor-routes/template-part-item.js.map +7 -1
  367. package/build/components/site-editor-routes/templates.js +69 -44
  368. package/build/components/site-editor-routes/templates.js.map +7 -1
  369. package/build/components/site-editor-routes/utils.js +27 -13
  370. package/build/components/site-editor-routes/utils.js.map +7 -1
  371. package/build/components/site-hub/index.js +233 -222
  372. package/build/components/site-hub/index.js.map +7 -1
  373. package/build/components/site-icon/index.js +61 -49
  374. package/build/components/site-icon/index.js.map +7 -1
  375. package/build/components/style-book/categories.js +61 -52
  376. package/build/components/style-book/categories.js.map +7 -1
  377. package/build/components/style-book/color-examples.js +54 -40
  378. package/build/components/style-book/color-examples.js.map +7 -1
  379. package/build/components/style-book/constants.js +218 -144
  380. package/build/components/style-book/constants.js.map +7 -1
  381. package/build/components/style-book/duotone-examples.js +54 -40
  382. package/build/components/style-book/duotone-examples.js.map +7 -1
  383. package/build/components/style-book/examples.js +145 -120
  384. package/build/components/style-book/examples.js.map +7 -1
  385. package/build/components/style-book/index.js +454 -409
  386. package/build/components/style-book/index.js.map +7 -1
  387. package/build/components/style-book/types.js +16 -5
  388. package/build/components/style-book/types.js.map +7 -1
  389. package/build/components/welcome-guide/editor.js +87 -60
  390. package/build/components/welcome-guide/editor.js.map +7 -1
  391. package/build/components/welcome-guide/image.js +34 -22
  392. package/build/components/welcome-guide/image.js.map +7 -1
  393. package/build/components/welcome-guide/index.js +44 -21
  394. package/build/components/welcome-guide/index.js.map +7 -1
  395. package/build/components/welcome-guide/page.js +76 -52
  396. package/build/components/welcome-guide/page.js.map +7 -1
  397. package/build/components/welcome-guide/styles.js +135 -102
  398. package/build/components/welcome-guide/styles.js.map +7 -1
  399. package/build/components/welcome-guide/template.js +71 -59
  400. package/build/components/welcome-guide/template.js.map +7 -1
  401. package/build/deprecated.js +56 -46
  402. package/build/deprecated.js.map +7 -1
  403. package/build/hooks/commands/use-common-commands.js +117 -119
  404. package/build/hooks/commands/use-common-commands.js.map +7 -1
  405. package/build/hooks/commands/use-set-command-context.js +40 -50
  406. package/build/hooks/commands/use-set-command-context.js.map +7 -1
  407. package/build/hooks/index.js +2 -3
  408. package/build/hooks/index.js.map +7 -1
  409. package/build/hooks/push-changes-to-global-styles/index.js +236 -251
  410. package/build/hooks/push-changes-to-global-styles/index.js.map +7 -1
  411. package/build/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +78 -111
  412. package/build/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js.map +7 -1
  413. package/build/index.js +87 -112
  414. package/build/index.js.map +7 -1
  415. package/build/lock-unlock.js +31 -14
  416. package/build/lock-unlock.js.map +7 -1
  417. package/build/posts.js +67 -63
  418. package/build/posts.js.map +7 -1
  419. package/build/store/actions.js +199 -365
  420. package/build/store/actions.js.map +7 -1
  421. package/build/store/constants.js +27 -11
  422. package/build/store/constants.js.map +7 -1
  423. package/build/store/index.js +52 -30
  424. package/build/store/index.js.map +7 -1
  425. package/build/store/private-actions.js +34 -19
  426. package/build/store/private-actions.js.map +7 -1
  427. package/build/store/private-selectors.js +28 -13
  428. package/build/store/private-selectors.js.map +7 -1
  429. package/build/store/reducer.js +42 -57
  430. package/build/store/reducer.js.map +7 -1
  431. package/build/store/selectors.js +205 -301
  432. package/build/store/selectors.js.map +7 -1
  433. package/build/utils/constants.js +94 -53
  434. package/build/utils/constants.js.map +7 -1
  435. package/build/utils/get-filtered-template-parts.js +36 -42
  436. package/build/utils/get-filtered-template-parts.js.map +7 -1
  437. package/build/utils/is-previewing-theme.js +31 -13
  438. package/build/utils/is-previewing-theme.js.map +7 -1
  439. package/build/utils/is-template-removable.js +24 -17
  440. package/build/utils/is-template-removable.js.map +7 -1
  441. package/build/utils/is-template-revertable.js +24 -19
  442. package/build/utils/is-template-revertable.js.map +7 -1
  443. package/build/utils/set-nested-value.js +24 -25
  444. package/build/utils/set-nested-value.js.map +7 -1
  445. package/build/utils/template-part-create.js +1 -1
  446. package/build/utils/template-part-create.js.map +7 -1
  447. package/build/utils/use-activate-theme.js +40 -45
  448. package/build/utils/use-activate-theme.js.map +7 -1
  449. package/build/utils/use-actual-current-theme.js +47 -25
  450. package/build/utils/use-actual-current-theme.js.map +7 -1
  451. package/build-module/components/add-new-pattern/index.js +133 -127
  452. package/build-module/components/add-new-pattern/index.js.map +7 -1
  453. package/build-module/components/add-new-post/index.js +100 -82
  454. package/build-module/components/add-new-post/index.js.map +7 -1
  455. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js +63 -51
  456. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js.map +7 -1
  457. package/build-module/components/add-new-template/add-custom-template-modal-content.js +269 -196
  458. package/build-module/components/add-new-template/add-custom-template-modal-content.js.map +7 -1
  459. package/build-module/components/add-new-template/index.js +289 -219
  460. package/build-module/components/add-new-template/index.js.map +7 -1
  461. package/build-module/components/add-new-template/utils.js +430 -432
  462. package/build-module/components/add-new-template/utils.js.map +7 -1
  463. package/build-module/components/app/index.js +41 -51
  464. package/build-module/components/app/index.js.map +7 -1
  465. package/build-module/components/block-editor/use-editor-iframe-props.js +33 -58
  466. package/build-module/components/block-editor/use-editor-iframe-props.js.map +7 -1
  467. package/build-module/components/block-editor/use-navigate-to-entity-record.js +17 -18
  468. package/build-module/components/block-editor/use-navigate-to-entity-record.js.map +7 -1
  469. package/build-module/components/block-editor/use-site-editor-settings.js +28 -41
  470. package/build-module/components/block-editor/use-site-editor-settings.js.map +7 -1
  471. package/build-module/components/canvas-loader/index.js +25 -50
  472. package/build-module/components/canvas-loader/index.js.map +7 -1
  473. package/build-module/components/dataviews-actions/index.js +75 -78
  474. package/build-module/components/dataviews-actions/index.js.map +7 -1
  475. package/build-module/components/editor/index.js +261 -220
  476. package/build-module/components/editor/index.js.map +7 -1
  477. package/build-module/components/editor/site-preview.js +38 -38
  478. package/build-module/components/editor/site-preview.js.map +7 -1
  479. package/build-module/components/editor/use-adapt-editor-to-canvas.js +25 -24
  480. package/build-module/components/editor/use-adapt-editor-to-canvas.js.map +7 -1
  481. package/build-module/components/editor/use-editor-title.js +49 -53
  482. package/build-module/components/editor/use-editor-title.js.map +7 -1
  483. package/build-module/components/editor/use-resolve-edited-entity.js +89 -129
  484. package/build-module/components/editor/use-resolve-edited-entity.js.map +7 -1
  485. package/build-module/components/editor-canvas-container/index.js +79 -80
  486. package/build-module/components/editor-canvas-container/index.js.map +7 -1
  487. package/build-module/components/global-styles/background-panel.js +25 -35
  488. package/build-module/components/global-styles/background-panel.js.map +7 -1
  489. package/build-module/components/global-styles/block-preview-panel.js +36 -43
  490. package/build-module/components/global-styles/block-preview-panel.js.map +7 -1
  491. package/build-module/components/global-styles/color-indicator-wrapper.js +19 -20
  492. package/build-module/components/global-styles/color-indicator-wrapper.js.map +7 -1
  493. package/build-module/components/global-styles/color-palette-panel.js +105 -74
  494. package/build-module/components/global-styles/color-palette-panel.js.map +7 -1
  495. package/build-module/components/global-styles/confirm-reset-shadow-dialog.js +20 -17
  496. package/build-module/components/global-styles/confirm-reset-shadow-dialog.js.map +7 -1
  497. package/build-module/components/global-styles/dimensions-panel.js +26 -34
  498. package/build-module/components/global-styles/dimensions-panel.js.map +7 -1
  499. package/build-module/components/global-styles/font-families.js +86 -93
  500. package/build-module/components/global-styles/font-families.js.map +7 -1
  501. package/build-module/components/global-styles/font-family-item.js +26 -37
  502. package/build-module/components/global-styles/font-family-item.js.map +7 -1
  503. package/build-module/components/global-styles/font-library-modal/collection-font-variant.js +26 -32
  504. package/build-module/components/global-styles/font-library-modal/collection-font-variant.js.map +7 -1
  505. package/build-module/components/global-styles/font-library-modal/context.js +203 -224
  506. package/build-module/components/global-styles/font-library-modal/context.js.map +7 -1
  507. package/build-module/components/global-styles/font-library-modal/font-card.js +48 -52
  508. package/build-module/components/global-styles/font-library-modal/font-card.js.map +7 -1
  509. package/build-module/components/global-styles/font-library-modal/font-collection.js +397 -302
  510. package/build-module/components/global-styles/font-library-modal/font-collection.js.map +7 -1
  511. package/build-module/components/global-styles/font-library-modal/font-demo.js +32 -38
  512. package/build-module/components/global-styles/font-library-modal/font-demo.js.map +7 -1
  513. package/build-module/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js +41 -39
  514. package/build-module/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js.map +7 -1
  515. package/build-module/components/global-styles/font-library-modal/index.js +65 -81
  516. package/build-module/components/global-styles/font-library-modal/index.js.map +7 -1
  517. package/build-module/components/global-styles/font-library-modal/installed-fonts.js +354 -243
  518. package/build-module/components/global-styles/font-library-modal/installed-fonts.js.map +7 -1
  519. package/build-module/components/global-styles/font-library-modal/library-font-details.js +35 -36
  520. package/build-module/components/global-styles/font-library-modal/library-font-details.js.map +7 -1
  521. package/build-module/components/global-styles/font-library-modal/library-font-variant.js +35 -42
  522. package/build-module/components/global-styles/font-library-modal/library-font-variant.js.map +7 -1
  523. package/build-module/components/global-styles/font-library-modal/resolvers.js +27 -20
  524. package/build-module/components/global-styles/font-library-modal/resolvers.js.map +7 -1
  525. package/build-module/components/global-styles/font-library-modal/upload-fonts.js +111 -135
  526. package/build-module/components/global-styles/font-library-modal/upload-fonts.js.map +7 -1
  527. package/build-module/components/global-styles/font-library-modal/utils/constants.js +21 -19
  528. package/build-module/components/global-styles/font-library-modal/utils/constants.js.map +7 -1
  529. package/build-module/components/global-styles/font-library-modal/utils/filter-fonts.js +13 -24
  530. package/build-module/components/global-styles/font-library-modal/utils/filter-fonts.js.map +7 -1
  531. package/build-module/components/global-styles/font-library-modal/utils/fonts-outline.js +20 -10
  532. package/build-module/components/global-styles/font-library-modal/utils/fonts-outline.js.map +7 -1
  533. package/build-module/components/global-styles/font-library-modal/utils/index.js +102 -154
  534. package/build-module/components/global-styles/font-library-modal/utils/index.js.map +7 -1
  535. package/build-module/components/global-styles/font-library-modal/utils/make-families-from-faces.js +8 -14
  536. package/build-module/components/global-styles/font-library-modal/utils/make-families-from-faces.js.map +7 -1
  537. package/build-module/components/global-styles/font-library-modal/utils/preview-styles.js +34 -71
  538. package/build-module/components/global-styles/font-library-modal/utils/preview-styles.js.map +7 -1
  539. package/build-module/components/global-styles/font-library-modal/utils/sort-font-faces.js +11 -13
  540. package/build-module/components/global-styles/font-library-modal/utils/sort-font-faces.js.map +7 -1
  541. package/build-module/components/global-styles/font-library-modal/utils/toggleFont.js +22 -69
  542. package/build-module/components/global-styles/font-library-modal/utils/toggleFont.js.map +7 -1
  543. package/build-module/components/global-styles/font-sizes/confirm-delete-font-size-dialog.js +26 -18
  544. package/build-module/components/global-styles/font-sizes/confirm-delete-font-size-dialog.js.map +7 -1
  545. package/build-module/components/global-styles/font-sizes/confirm-reset-font-sizes-dialog.js +20 -17
  546. package/build-module/components/global-styles/font-sizes/confirm-reset-font-sizes-dialog.js.map +7 -1
  547. package/build-module/components/global-styles/font-sizes/font-size-preview.js +26 -29
  548. package/build-module/components/global-styles/font-sizes/font-size-preview.js.map +7 -1
  549. package/build-module/components/global-styles/font-sizes/font-size.js +185 -160
  550. package/build-module/components/global-styles/font-sizes/font-size.js.map +7 -1
  551. package/build-module/components/global-styles/font-sizes/font-sizes-count.js +23 -39
  552. package/build-module/components/global-styles/font-sizes/font-sizes-count.js.map +7 -1
  553. package/build-module/components/global-styles/font-sizes/font-sizes.js +184 -128
  554. package/build-module/components/global-styles/font-sizes/font-sizes.js.map +7 -1
  555. package/build-module/components/global-styles/font-sizes/rename-font-size-dialog.js +68 -52
  556. package/build-module/components/global-styles/font-sizes/rename-font-size-dialog.js.map +7 -1
  557. package/build-module/components/global-styles/gradients-palette-panel.js +117 -79
  558. package/build-module/components/global-styles/gradients-palette-panel.js.map +7 -1
  559. package/build-module/components/global-styles/header.js +40 -43
  560. package/build-module/components/global-styles/header.js.map +7 -1
  561. package/build-module/components/global-styles/highlighted-colors.js +31 -36
  562. package/build-module/components/global-styles/highlighted-colors.js.map +7 -1
  563. package/build-module/components/global-styles/hooks.js +56 -61
  564. package/build-module/components/global-styles/hooks.js.map +7 -1
  565. package/build-module/components/global-styles/icon-with-current-color.js +18 -19
  566. package/build-module/components/global-styles/icon-with-current-color.js.map +7 -1
  567. package/build-module/components/global-styles/index.js +5 -2
  568. package/build-module/components/global-styles/index.js.map +7 -1
  569. package/build-module/components/global-styles/navigation-button.js +23 -37
  570. package/build-module/components/global-styles/navigation-button.js.map +7 -1
  571. package/build-module/components/global-styles/palette.js +61 -67
  572. package/build-module/components/global-styles/palette.js.map +7 -1
  573. package/build-module/components/global-styles/preset-colors.js +19 -20
  574. package/build-module/components/global-styles/preset-colors.js.map +7 -1
  575. package/build-module/components/global-styles/preview-colors.js +43 -40
  576. package/build-module/components/global-styles/preview-colors.js.map +7 -1
  577. package/build-module/components/global-styles/preview-styles.js +158 -130
  578. package/build-module/components/global-styles/preview-styles.js.map +7 -1
  579. package/build-module/components/global-styles/preview-typography.js +37 -38
  580. package/build-module/components/global-styles/preview-typography.js.map +7 -1
  581. package/build-module/components/global-styles/preview-wrapper.js +51 -75
  582. package/build-module/components/global-styles/preview-wrapper.js.map +7 -1
  583. package/build-module/components/global-styles/root-menu.js +38 -44
  584. package/build-module/components/global-styles/root-menu.js.map +7 -1
  585. package/build-module/components/global-styles/screen-background.js +26 -29
  586. package/build-module/components/global-styles/screen-background.js.map +7 -1
  587. package/build-module/components/global-styles/screen-block-list.js +105 -105
  588. package/build-module/components/global-styles/screen-block-list.js.map +7 -1
  589. package/build-module/components/global-styles/screen-block.js +156 -169
  590. package/build-module/components/global-styles/screen-block.js.map +7 -1
  591. package/build-module/components/global-styles/screen-color-palette.js +33 -50
  592. package/build-module/components/global-styles/screen-color-palette.js.map +7 -1
  593. package/build-module/components/global-styles/screen-colors.js +35 -33
  594. package/build-module/components/global-styles/screen-colors.js.map +7 -1
  595. package/build-module/components/global-styles/screen-css.js +52 -44
  596. package/build-module/components/global-styles/screen-css.js.map +7 -1
  597. package/build-module/components/global-styles/screen-layout.js +17 -26
  598. package/build-module/components/global-styles/screen-layout.js.map +7 -1
  599. package/build-module/components/global-styles/screen-revisions/index.js +117 -105
  600. package/build-module/components/global-styles/screen-revisions/index.js.map +7 -1
  601. package/build-module/components/global-styles/screen-revisions/revisions-buttons.js +145 -158
  602. package/build-module/components/global-styles/screen-revisions/revisions-buttons.js.map +7 -1
  603. package/build-module/components/global-styles/screen-revisions/use-global-styles-revisions.js +74 -75
  604. package/build-module/components/global-styles/screen-revisions/use-global-styles-revisions.js.map +7 -1
  605. package/build-module/components/global-styles/screen-root.js +74 -77
  606. package/build-module/components/global-styles/screen-root.js.map +7 -1
  607. package/build-module/components/global-styles/screen-shadows.js +12 -11
  608. package/build-module/components/global-styles/screen-shadows.js.map +7 -1
  609. package/build-module/components/global-styles/screen-style-variations.js +38 -37
  610. package/build-module/components/global-styles/screen-style-variations.js.map +7 -1
  611. package/build-module/components/global-styles/screen-typography-element.js +122 -87
  612. package/build-module/components/global-styles/screen-typography-element.js.map +7 -1
  613. package/build-module/components/global-styles/screen-typography.js +36 -34
  614. package/build-module/components/global-styles/screen-typography.js.map +7 -1
  615. package/build-module/components/global-styles/shadow-utils.js +53 -176
  616. package/build-module/components/global-styles/shadow-utils.js.map +7 -1
  617. package/build-module/components/global-styles/shadows-edit-panel.js +426 -344
  618. package/build-module/components/global-styles/shadows-edit-panel.js.map +7 -1
  619. package/build-module/components/global-styles/shadows-panel.js +159 -124
  620. package/build-module/components/global-styles/shadows-panel.js.map +7 -1
  621. package/build-module/components/global-styles/size-control/index.js +57 -70
  622. package/build-module/components/global-styles/size-control/index.js.map +7 -1
  623. package/build-module/components/global-styles/style-variations-container.js +85 -95
  624. package/build-module/components/global-styles/style-variations-container.js.map +7 -1
  625. package/build-module/components/global-styles/subtitle.js +16 -16
  626. package/build-module/components/global-styles/subtitle.js.map +7 -1
  627. package/build-module/components/global-styles/typeset.js +50 -65
  628. package/build-module/components/global-styles/typeset.js.map +7 -1
  629. package/build-module/components/global-styles/typography-elements.js +86 -80
  630. package/build-module/components/global-styles/typography-elements.js.map +7 -1
  631. package/build-module/components/global-styles/typography-example.js +45 -57
  632. package/build-module/components/global-styles/typography-example.js.map +7 -1
  633. package/build-module/components/global-styles/typography-panel.js +38 -33
  634. package/build-module/components/global-styles/typography-panel.js.map +7 -1
  635. package/build-module/components/global-styles/typography-preview.js +55 -48
  636. package/build-module/components/global-styles/typography-preview.js.map +7 -1
  637. package/build-module/components/global-styles/ui.js +252 -295
  638. package/build-module/components/global-styles/ui.js.map +7 -1
  639. package/build-module/components/global-styles/utils.js +24 -28
  640. package/build-module/components/global-styles/utils.js.map +7 -1
  641. package/build-module/components/global-styles/variations/variation.js +59 -65
  642. package/build-module/components/global-styles/variations/variation.js.map +7 -1
  643. package/build-module/components/global-styles/variations/variations-color.js +26 -34
  644. package/build-module/components/global-styles/variations/variations-color.js.map +7 -1
  645. package/build-module/components/global-styles/variations/variations-panel.js +39 -46
  646. package/build-module/components/global-styles/variations/variations-panel.js.map +7 -1
  647. package/build-module/components/global-styles/variations/variations-typography.js +43 -42
  648. package/build-module/components/global-styles/variations/variations-typography.js.map +7 -1
  649. package/build-module/components/global-styles-renderer/index.js +16 -27
  650. package/build-module/components/global-styles-renderer/index.js.map +7 -1
  651. package/build-module/components/global-styles-sidebar/default-sidebar.js +36 -36
  652. package/build-module/components/global-styles-sidebar/default-sidebar.js.map +7 -1
  653. package/build-module/components/global-styles-sidebar/index.js +137 -133
  654. package/build-module/components/global-styles-sidebar/index.js.map +7 -1
  655. package/build-module/components/layout/animation.js +31 -69
  656. package/build-module/components/layout/animation.js.map +7 -1
  657. package/build-module/components/layout/hooks.js +16 -28
  658. package/build-module/components/layout/hooks.js.map +7 -1
  659. package/build-module/components/layout/index.js +199 -183
  660. package/build-module/components/layout/index.js.map +7 -1
  661. package/build-module/components/media/index.js +13 -21
  662. package/build-module/components/media/index.js.map +7 -1
  663. package/build-module/components/more-menu/index.js +18 -23
  664. package/build-module/components/more-menu/index.js.map +7 -1
  665. package/build-module/components/more-menu/site-export.js +41 -38
  666. package/build-module/components/more-menu/site-export.js.map +7 -1
  667. package/build-module/components/more-menu/welcome-guide-menu-item.js +12 -17
  668. package/build-module/components/more-menu/welcome-guide-menu-item.js.map +7 -1
  669. package/build-module/components/page-patterns/actions.js +52 -0
  670. package/build-module/components/page-patterns/actions.js.map +7 -0
  671. package/build-module/components/page-patterns/delete-category-menu-item.js +78 -76
  672. package/build-module/components/page-patterns/delete-category-menu-item.js.map +7 -1
  673. package/build-module/components/page-patterns/fields.js +103 -112
  674. package/build-module/components/page-patterns/fields.js.map +7 -1
  675. package/build-module/components/page-patterns/index.js +144 -120
  676. package/build-module/components/page-patterns/index.js.map +7 -1
  677. package/build-module/components/page-patterns/rename-category-menu-item.js +37 -53
  678. package/build-module/components/page-patterns/rename-category-menu-item.js.map +7 -1
  679. package/build-module/components/page-patterns/search-items.js +43 -77
  680. package/build-module/components/page-patterns/search-items.js.map +7 -1
  681. package/build-module/components/page-patterns/use-pattern-settings.js +27 -30
  682. package/build-module/components/page-patterns/use-pattern-settings.js.map +7 -1
  683. package/build-module/components/page-patterns/use-patterns.js +249 -192
  684. package/build-module/components/page-patterns/use-patterns.js.map +7 -1
  685. package/build-module/components/page-patterns/utils.js +5 -2
  686. package/build-module/components/page-patterns/utils.js.map +7 -1
  687. package/build-module/components/page-templates/fields.js +132 -147
  688. package/build-module/components/page-templates/fields.js.map +7 -1
  689. package/build-module/components/page-templates/hooks.js +44 -55
  690. package/build-module/components/page-templates/hooks.js.map +7 -1
  691. package/build-module/components/page-templates/index.js +189 -194
  692. package/build-module/components/page-templates/index.js.map +7 -1
  693. package/build-module/components/page-templates/view-utils.js +42 -0
  694. package/build-module/components/page-templates/view-utils.js.map +7 -0
  695. package/build-module/components/pagination/index.js +96 -77
  696. package/build-module/components/pagination/index.js.map +7 -1
  697. package/build-module/components/plugin-template-setting-panel/index.js +21 -50
  698. package/build-module/components/plugin-template-setting-panel/index.js.map +7 -1
  699. package/build-module/components/post-edit/index.js +136 -140
  700. package/build-module/components/post-edit/index.js.map +7 -1
  701. package/build-module/components/post-list/index.js +205 -291
  702. package/build-module/components/post-list/index.js.map +7 -1
  703. package/build-module/components/post-list/view-utils.js +149 -0
  704. package/build-module/components/post-list/view-utils.js.map +7 -0
  705. package/build-module/components/posts-app/index.js +15 -25
  706. package/build-module/components/posts-app/index.js.map +7 -1
  707. package/build-module/components/posts-app-routes/index.js +12 -18
  708. package/build-module/components/posts-app-routes/index.js.map +7 -1
  709. package/build-module/components/posts-app-routes/post-item.js +22 -29
  710. package/build-module/components/posts-app-routes/post-item.js.map +7 -1
  711. package/build-module/components/posts-app-routes/posts.js +59 -70
  712. package/build-module/components/posts-app-routes/posts.js.map +7 -1
  713. package/build-module/components/resizable-frame/index.js +169 -211
  714. package/build-module/components/resizable-frame/index.js.map +7 -1
  715. package/build-module/components/revisions/index.js +78 -64
  716. package/build-module/components/revisions/index.js.map +7 -1
  717. package/build-module/components/routes/use-title.js +25 -28
  718. package/build-module/components/routes/use-title.js.map +7 -1
  719. package/build-module/components/save-button/index.js +99 -104
  720. package/build-module/components/save-button/index.js.map +7 -1
  721. package/build-module/components/save-hub/index.js +23 -33
  722. package/build-module/components/save-hub/index.js.map +7 -1
  723. package/build-module/components/save-keyboard-shortcut/index.js +31 -47
  724. package/build-module/components/save-keyboard-shortcut/index.js.map +7 -1
  725. package/build-module/components/save-panel/index.js +125 -124
  726. package/build-module/components/save-panel/index.js.map +7 -1
  727. package/build-module/components/sidebar/index.js +47 -65
  728. package/build-module/components/sidebar/index.js.map +7 -1
  729. package/build-module/components/sidebar-button/index.js +16 -17
  730. package/build-module/components/sidebar-button/index.js.map +7 -1
  731. package/build-module/components/sidebar-dataviews/dataview-item.js +41 -50
  732. package/build-module/components/sidebar-dataviews/dataview-item.js.map +7 -1
  733. package/build-module/components/sidebar-dataviews/index.js +40 -48
  734. package/build-module/components/sidebar-dataviews/index.js.map +7 -1
  735. package/build-module/components/sidebar-global-styles-wrapper/index.js +100 -104
  736. package/build-module/components/sidebar-global-styles-wrapper/index.js.map +7 -1
  737. package/build-module/components/sidebar-navigation-item/index.js +56 -57
  738. package/build-module/components/sidebar-navigation-item/index.js.map +7 -1
  739. package/build-module/components/sidebar-navigation-screen/index.js +108 -98
  740. package/build-module/components/sidebar-navigation-screen/index.js.map +7 -1
  741. package/build-module/components/sidebar-navigation-screen-details-footer/index.js +36 -48
  742. package/build-module/components/sidebar-navigation-screen-details-footer/index.js.map +7 -1
  743. package/build-module/components/sidebar-navigation-screen-global-styles/content.js +23 -28
  744. package/build-module/components/sidebar-navigation-screen-global-styles/content.js.map +7 -1
  745. package/build-module/components/sidebar-navigation-screen-global-styles/index.js +61 -73
  746. package/build-module/components/sidebar-navigation-screen-global-styles/index.js.map +7 -1
  747. package/build-module/components/sidebar-navigation-screen-main/index.js +108 -82
  748. package/build-module/components/sidebar-navigation-screen-main/index.js.map +7 -1
  749. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js +22 -24
  750. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js.map +7 -1
  751. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js +92 -84
  752. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js.map +7 -1
  753. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js +87 -76
  754. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +7 -1
  755. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +28 -41
  756. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js.map +7 -1
  757. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +67 -60
  758. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +7 -1
  759. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +37 -32
  760. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +7 -1
  761. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +107 -91
  762. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +7 -1
  763. package/build-module/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js +14 -14
  764. package/build-module/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js.map +7 -1
  765. package/build-module/components/sidebar-navigation-screen-navigation-menus/constants.js +8 -12
  766. package/build-module/components/sidebar-navigation-screen-navigation-menus/constants.js.map +7 -1
  767. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +89 -98
  768. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +7 -1
  769. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +113 -117
  770. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +7 -1
  771. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +82 -82
  772. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +7 -1
  773. package/build-module/components/sidebar-navigation-screen-patterns/category-item.js +17 -16
  774. package/build-module/components/sidebar-navigation-screen-patterns/category-item.js.map +7 -1
  775. package/build-module/components/sidebar-navigation-screen-patterns/index.js +108 -99
  776. package/build-module/components/sidebar-navigation-screen-patterns/index.js.map +7 -1
  777. package/build-module/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js +19 -21
  778. package/build-module/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js.map +7 -1
  779. package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +53 -59
  780. package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +7 -1
  781. package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +27 -27
  782. package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js.map +7 -1
  783. package/build-module/components/sidebar-navigation-screen-patterns/use-theme-patterns.js +24 -24
  784. package/build-module/components/sidebar-navigation-screen-patterns/use-theme-patterns.js.map +7 -1
  785. package/build-module/components/sidebar-navigation-screen-templates-browse/content.js +67 -70
  786. package/build-module/components/sidebar-navigation-screen-templates-browse/content.js.map +7 -1
  787. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +20 -21
  788. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js.map +7 -1
  789. package/build-module/components/sidebar-navigation-screen-unsupported/index.js +11 -16
  790. package/build-module/components/sidebar-navigation-screen-unsupported/index.js.map +7 -1
  791. package/build-module/components/site-editor-routes/home.js +18 -26
  792. package/build-module/components/site-editor-routes/home.js.map +7 -1
  793. package/build-module/components/site-editor-routes/index.js +39 -30
  794. package/build-module/components/site-editor-routes/index.js.map +7 -1
  795. package/build-module/components/site-editor-routes/navigation-item.js +23 -43
  796. package/build-module/components/site-editor-routes/navigation-item.js.map +7 -1
  797. package/build-module/components/site-editor-routes/navigation.js +23 -43
  798. package/build-module/components/site-editor-routes/navigation.js.map +7 -1
  799. package/build-module/components/site-editor-routes/notfound.js +22 -28
  800. package/build-module/components/site-editor-routes/notfound.js.map +7 -1
  801. package/build-module/components/site-editor-routes/page-item.js +26 -35
  802. package/build-module/components/site-editor-routes/page-item.js.map +7 -1
  803. package/build-module/components/site-editor-routes/pages.js +64 -80
  804. package/build-module/components/site-editor-routes/pages.js.map +7 -1
  805. package/build-module/components/site-editor-routes/pattern-item.js +16 -20
  806. package/build-module/components/site-editor-routes/pattern-item.js.map +7 -1
  807. package/build-module/components/site-editor-routes/patterns.js +19 -30
  808. package/build-module/components/site-editor-routes/patterns.js.map +7 -1
  809. package/build-module/components/site-editor-routes/stylebook.js +28 -37
  810. package/build-module/components/site-editor-routes/stylebook.js.map +7 -1
  811. package/build-module/components/site-editor-routes/styles.js +26 -40
  812. package/build-module/components/site-editor-routes/styles.js.map +7 -1
  813. package/build-module/components/site-editor-routes/template-item.js +21 -28
  814. package/build-module/components/site-editor-routes/template-item.js.map +7 -1
  815. package/build-module/components/site-editor-routes/template-part-item.js +13 -15
  816. package/build-module/components/site-editor-routes/template-part-item.js.map +7 -1
  817. package/build-module/components/site-editor-routes/templates.js +37 -38
  818. package/build-module/components/site-editor-routes/templates.js.map +7 -1
  819. package/build-module/components/site-editor-routes/utils.js +6 -10
  820. package/build-module/components/site-editor-routes/utils.js.map +7 -1
  821. package/build-module/components/site-hub/index.js +204 -215
  822. package/build-module/components/site-hub/index.js.map +7 -1
  823. package/build-module/components/site-icon/index.js +33 -43
  824. package/build-module/components/site-icon/index.js.map +7 -1
  825. package/build-module/components/style-book/categories.js +41 -48
  826. package/build-module/components/style-book/categories.js.map +7 -1
  827. package/build-module/components/style-book/color-examples.js +29 -37
  828. package/build-module/components/style-book/color-examples.js.map +7 -1
  829. package/build-module/components/style-book/constants.js +191 -140
  830. package/build-module/components/style-book/constants.js.map +7 -1
  831. package/build-module/components/style-book/duotone-examples.js +36 -35
  832. package/build-module/components/style-book/duotone-examples.js.map +7 -1
  833. package/build-module/components/style-book/examples.js +114 -116
  834. package/build-module/components/style-book/examples.js.map +7 -1
  835. package/build-module/components/style-book/index.js +431 -384
  836. package/build-module/components/style-book/index.js.map +7 -1
  837. package/build-module/components/style-book/types.js +1 -2
  838. package/build-module/components/style-book/types.js.map +7 -1
  839. package/build-module/components/welcome-guide/editor.js +59 -54
  840. package/build-module/components/welcome-guide/editor.js.map +7 -1
  841. package/build-module/components/welcome-guide/image.js +16 -18
  842. package/build-module/components/welcome-guide/image.js.map +7 -1
  843. package/build-module/components/welcome-guide/index.js +16 -15
  844. package/build-module/components/welcome-guide/index.js.map +7 -1
  845. package/build-module/components/welcome-guide/page.js +59 -48
  846. package/build-module/components/welcome-guide/page.js.map +7 -1
  847. package/build-module/components/welcome-guide/styles.js +108 -97
  848. package/build-module/components/welcome-guide/styles.js.map +7 -1
  849. package/build-module/components/welcome-guide/template.js +54 -55
  850. package/build-module/components/welcome-guide/template.js.map +7 -1
  851. package/build-module/deprecated.js +28 -40
  852. package/build-module/deprecated.js.map +7 -1
  853. package/build-module/hooks/commands/use-common-commands.js +89 -108
  854. package/build-module/hooks/commands/use-common-commands.js.map +7 -1
  855. package/build-module/hooks/commands/use-set-command-context.js +21 -44
  856. package/build-module/hooks/commands/use-set-command-context.js.map +7 -1
  857. package/build-module/hooks/index.js +2 -5
  858. package/build-module/hooks/index.js.map +7 -1
  859. package/build-module/hooks/push-changes-to-global-styles/index.js +218 -243
  860. package/build-module/hooks/push-changes-to-global-styles/index.js.map +7 -1
  861. package/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +56 -105
  862. package/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js.map +7 -1
  863. package/build-module/index.js +55 -69
  864. package/build-module/index.js.map +7 -1
  865. package/build-module/lock-unlock.js +8 -7
  866. package/build-module/lock-unlock.js.map +7 -1
  867. package/build-module/posts.js +38 -54
  868. package/build-module/posts.js.map +7 -1
  869. package/build-module/store/actions.js +140 -320
  870. package/build-module/store/actions.js.map +7 -1
  871. package/build-module/store/constants.js +5 -7
  872. package/build-module/store/constants.js.map +7 -1
  873. package/build-module/store/index.js +15 -18
  874. package/build-module/store/index.js.map +7 -1
  875. package/build-module/store/private-actions.js +12 -14
  876. package/build-module/store/private-actions.js.map +7 -1
  877. package/build-module/store/private-selectors.js +7 -10
  878. package/build-module/store/private-selectors.js.map +7 -1
  879. package/build-module/store/reducer.js +21 -53
  880. package/build-module/store/reducer.js.map +7 -1
  881. package/build-module/store/selectors.js +151 -278
  882. package/build-module/store/selectors.js.map +7 -1
  883. package/build-module/utils/constants.js +53 -44
  884. package/build-module/utils/constants.js.map +7 -1
  885. package/build-module/utils/get-filtered-template-parts.js +18 -37
  886. package/build-module/utils/get-filtered-template-parts.js.map +7 -1
  887. package/build-module/utils/is-previewing-theme.js +10 -9
  888. package/build-module/utils/is-previewing-theme.js.map +7 -1
  889. package/build-module/utils/is-template-removable.js +6 -13
  890. package/build-module/utils/is-template-removable.js.map +7 -1
  891. package/build-module/utils/is-template-revertable.js +6 -15
  892. package/build-module/utils/is-template-revertable.js.map +7 -1
  893. package/build-module/utils/set-nested-value.js +7 -22
  894. package/build-module/utils/set-nested-value.js.map +7 -1
  895. package/build-module/utils/template-part-create.js +1 -2
  896. package/build-module/utils/template-part-create.js.map +7 -1
  897. package/build-module/utils/use-activate-theme.js +21 -40
  898. package/build-module/utils/use-activate-theme.js.map +7 -1
  899. package/build-module/utils/use-actual-current-theme.js +13 -17
  900. package/build-module/utils/use-actual-current-theme.js.map +7 -1
  901. package/build-style/posts-rtl.css +484 -214
  902. package/build-style/posts.css +484 -214
  903. package/build-style/style-rtl.css +629 -271
  904. package/build-style/style.css +629 -271
  905. package/package.json +52 -42
  906. package/src/components/add-new-template/index.js +5 -3
  907. package/src/components/add-new-template/style.scss +4 -0
  908. package/src/components/dataviews-actions/index.js +16 -9
  909. package/src/components/editor/style.scss +3 -0
  910. package/src/components/editor/use-resolve-edited-entity.js +4 -18
  911. package/src/components/editor-canvas-container/style.scss +4 -1
  912. package/src/components/global-styles/font-library-modal/style.scss +4 -0
  913. package/src/components/global-styles/screen-revisions/style.scss +4 -0
  914. package/src/components/global-styles/style.scss +3 -0
  915. package/src/components/global-styles/variations/style.scss +3 -0
  916. package/src/components/global-styles-sidebar/style.scss +3 -0
  917. package/src/components/layout/index.js +2 -1
  918. package/src/components/layout/style.scss +5 -0
  919. package/src/components/page-patterns/actions.js +54 -0
  920. package/src/components/page-patterns/index.js +79 -32
  921. package/src/components/page-patterns/style.scss +4 -0
  922. package/src/components/page-templates/fields.js +22 -1
  923. package/src/components/page-templates/index.js +71 -104
  924. package/src/components/page-templates/style.scss +4 -0
  925. package/src/components/page-templates/view-utils.js +41 -0
  926. package/src/components/pagination/style.scss +2 -0
  927. package/src/components/post-edit/index.js +4 -3
  928. package/src/components/post-edit/style.scss +3 -6
  929. package/src/components/post-list/index.js +76 -188
  930. package/src/components/post-list/style.scss +3 -0
  931. package/src/components/post-list/view-utils.js +155 -0
  932. package/src/components/posts-app-routes/posts.js +29 -16
  933. package/src/components/resizable-frame/style.scss +3 -0
  934. package/src/components/save-hub/style.scss +3 -0
  935. package/src/components/save-panel/index.js +2 -2
  936. package/src/components/save-panel/style.scss +2 -0
  937. package/src/components/sidebar/style.scss +4 -0
  938. package/src/components/sidebar-button/style.scss +2 -0
  939. package/src/components/sidebar-dataviews/dataview-item.js +5 -11
  940. package/src/components/sidebar-dataviews/index.js +17 -17
  941. package/src/components/sidebar-dataviews/style.scss +2 -16
  942. package/src/components/sidebar-global-styles-wrapper/index.js +16 -21
  943. package/src/components/sidebar-global-styles-wrapper/style.scss +4 -30
  944. package/src/components/sidebar-navigation-item/style.scss +3 -0
  945. package/src/components/sidebar-navigation-screen/style.scss +5 -0
  946. package/src/components/sidebar-navigation-screen-main/style.scss +2 -0
  947. package/src/components/sidebar-navigation-screen-navigation-menu/style.scss +2 -0
  948. package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +3 -0
  949. package/src/components/sidebar-navigation-screen-patterns/style.scss +3 -0
  950. package/src/components/sidebar-navigation-screen-templates-browse/style.scss +2 -0
  951. package/src/components/site-editor-routes/pages.js +29 -16
  952. package/src/components/site-editor-routes/templates.js +21 -4
  953. package/src/components/site-hub/style.scss +3 -0
  954. package/src/components/site-icon/style.scss +3 -0
  955. package/src/components/style-book/style.scss +3 -0
  956. package/src/components/welcome-guide/style.scss +2 -0
  957. package/src/posts.scss +14 -11
  958. package/src/style.scss +42 -39
  959. package/tsconfig.json +2 -0
  960. package/tsconfig.tsbuildinfo +1 -1
  961. package/build/components/page/header.js +0 -45
  962. package/build/components/page/header.js.map +0 -1
  963. package/build/components/page/index.js +0 -50
  964. package/build/components/page/index.js.map +0 -1
  965. package/build/components/page-patterns/header.js +0 -96
  966. package/build/components/page-patterns/header.js.map +0 -1
  967. package/build/components/sidebar-dataviews/add-new-view.js +0 -137
  968. package/build/components/sidebar-dataviews/add-new-view.js.map +0 -1
  969. package/build/components/sidebar-dataviews/custom-dataviews-list.js +0 -211
  970. package/build/components/sidebar-dataviews/custom-dataviews-list.js.map +0 -1
  971. package/build/components/sidebar-dataviews/default-views.js +0 -141
  972. package/build/components/sidebar-dataviews/default-views.js.map +0 -1
  973. package/build-module/components/page/header.js +0 -40
  974. package/build-module/components/page/header.js.map +0 -1
  975. package/build-module/components/page/index.js +0 -42
  976. package/build-module/components/page/index.js.map +0 -1
  977. package/build-module/components/page-patterns/header.js +0 -88
  978. package/build-module/components/page-patterns/header.js.map +0 -1
  979. package/build-module/components/sidebar-dataviews/add-new-view.js +0 -129
  980. package/build-module/components/sidebar-dataviews/add-new-view.js.map +0 -1
  981. package/build-module/components/sidebar-dataviews/custom-dataviews-list.js +0 -202
  982. package/build-module/components/sidebar-dataviews/custom-dataviews-list.js.map +0 -1
  983. package/build-module/components/sidebar-dataviews/default-views.js +0 -133
  984. package/build-module/components/sidebar-dataviews/default-views.js.map +0 -1
  985. package/src/components/page/header.js +0 -44
  986. package/src/components/page/index.js +0 -43
  987. package/src/components/page/style.scss +0 -56
  988. package/src/components/page-patterns/header.js +0 -120
  989. package/src/components/sidebar-dataviews/add-new-view.js +0 -143
  990. package/src/components/sidebar-dataviews/custom-dataviews-list.js +0 -233
  991. package/src/components/sidebar-dataviews/default-views.js +0 -168
@@ -1,31 +1,35 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var preview_wrapper_exports = {};
20
+ __export(preview_wrapper_exports, {
21
+ default: () => PreviewWrapper
5
22
  });
6
- exports.default = PreviewWrapper;
7
- var _blockEditor = require("@wordpress/block-editor");
8
- var _components = require("@wordpress/components");
9
- var _compose = require("@wordpress/compose");
10
- var _element = require("@wordpress/element");
11
- var _lockUnlock = require("../../lock-unlock");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- /**
14
- * WordPress dependencies
15
- */
16
-
17
- /**
18
- * Internal dependencies
19
- */
20
-
21
- const {
22
- useGlobalStyle
23
- } = (0, _lockUnlock.unlock)(_blockEditor.privateApis);
23
+ module.exports = __toCommonJS(preview_wrapper_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_block_editor = require("@wordpress/block-editor");
26
+ var import_components = require("@wordpress/components");
27
+ var import_compose = require("@wordpress/compose");
28
+ var import_element = require("@wordpress/element");
29
+ var import_lock_unlock = require("../../lock-unlock");
30
+ const { useGlobalStyle } = (0, import_lock_unlock.unlock)(import_block_editor.privateApis);
24
31
  const normalizedWidth = 248;
25
32
  const normalizedHeight = 152;
26
-
27
- // Throttle options for useThrottle. Must be defined outside of the component,
28
- // so that the object reference is the same on each render.
29
33
  const THROTTLE_OPTIONS = {
30
34
  leading: true,
31
35
  trailing: true
@@ -36,81 +40,62 @@ function PreviewWrapper({
36
40
  isFocused,
37
41
  withHoverView
38
42
  }) {
39
- const [backgroundColor = 'white'] = useGlobalStyle('color.background');
40
- const [gradientValue] = useGlobalStyle('color.gradient');
41
- const disableMotion = (0, _compose.useReducedMotion)();
42
- const [isHovered, setIsHovered] = (0, _element.useState)(false);
43
- const [containerResizeListener, {
44
- width
45
- }] = (0, _compose.useResizeObserver)();
46
- const [throttledWidth, setThrottledWidthState] = (0, _element.useState)(width);
47
- const [ratioState, setRatioState] = (0, _element.useState)();
48
- const setThrottledWidth = (0, _compose.useThrottle)(setThrottledWidthState, 250, THROTTLE_OPTIONS);
49
-
50
- // Must use useLayoutEffect to avoid a flash of the container at the wrong
51
- // size before the width is set.
52
- (0, _element.useLayoutEffect)(() => {
43
+ const [backgroundColor = "white"] = useGlobalStyle("color.background");
44
+ const [gradientValue] = useGlobalStyle("color.gradient");
45
+ const disableMotion = (0, import_compose.useReducedMotion)();
46
+ const [isHovered, setIsHovered] = (0, import_element.useState)(false);
47
+ const [containerResizeListener, { width }] = (0, import_compose.useResizeObserver)();
48
+ const [throttledWidth, setThrottledWidthState] = (0, import_element.useState)(width);
49
+ const [ratioState, setRatioState] = (0, import_element.useState)();
50
+ const setThrottledWidth = (0, import_compose.useThrottle)(
51
+ setThrottledWidthState,
52
+ 250,
53
+ THROTTLE_OPTIONS
54
+ );
55
+ (0, import_element.useLayoutEffect)(() => {
53
56
  if (width) {
54
57
  setThrottledWidth(width);
55
58
  }
56
59
  }, [width, setThrottledWidth]);
57
-
58
- // Must use useLayoutEffect to avoid a flash of the container at the wrong
59
- // size before the width is set.
60
- (0, _element.useLayoutEffect)(() => {
60
+ (0, import_element.useLayoutEffect)(() => {
61
61
  const newRatio = throttledWidth ? throttledWidth / normalizedWidth : 1;
62
62
  const ratioDiff = newRatio - (ratioState || 0);
63
-
64
- // Only update the ratio state if the difference is big enough
65
- // or if the ratio state is not yet set. This is to avoid an
66
- // endless loop of updates at particular viewport heights when the
67
- // presence of a scrollbar causes the width to change slightly.
68
63
  const isRatioDiffBigEnough = Math.abs(ratioDiff) > 0.1;
69
64
  if (isRatioDiffBigEnough || !ratioState) {
70
65
  setRatioState(newRatio);
71
66
  }
72
67
  }, [throttledWidth, ratioState]);
73
-
74
- // Set a fallbackRatio to use before the throttled ratio has been set.
75
68
  const fallbackRatio = width ? width / normalizedWidth : 1;
76
- /*
77
- * Use the throttled ratio if it has been calculated, otherwise
78
- * use the fallback ratio. The throttled ratio is used to avoid
79
- * an endless loop of updates at particular viewport heights.
80
- * See: https://github.com/WordPress/gutenberg/issues/55112
81
- */
82
69
  const ratio = ratioState ? ratioState : fallbackRatio;
83
70
  const isReady = !!width;
84
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
85
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
86
- style: {
87
- position: 'relative'
88
- },
89
- children: containerResizeListener
90
- }), isReady && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
91
- className: "edit-site-global-styles-preview__wrapper",
92
- style: {
93
- height: normalizedHeight * ratio
94
- },
95
- onMouseEnter: () => setIsHovered(true),
96
- onMouseLeave: () => setIsHovered(false),
97
- tabIndex: -1,
98
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.__unstableMotion.div, {
71
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
72
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { position: "relative" }, children: containerResizeListener }),
73
+ isReady && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
74
+ "div",
75
+ {
76
+ className: "edit-site-global-styles-preview__wrapper",
99
77
  style: {
100
- height: normalizedHeight * ratio,
101
- width: '100%',
102
- background: gradientValue !== null && gradientValue !== void 0 ? gradientValue : backgroundColor,
103
- cursor: withHoverView ? 'pointer' : undefined
78
+ height: normalizedHeight * ratio
104
79
  },
105
- initial: "start",
106
- animate: (isHovered || isFocused) && !disableMotion && label ? 'hover' : 'start',
107
- children: [].concat(children) // This makes sure children is always an array.
108
- .map((child, key) => child({
109
- ratio,
110
- key
111
- }))
112
- })
113
- })]
114
- });
80
+ onMouseEnter: () => setIsHovered(true),
81
+ onMouseLeave: () => setIsHovered(false),
82
+ tabIndex: -1,
83
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
84
+ import_components.__unstableMotion.div,
85
+ {
86
+ style: {
87
+ height: normalizedHeight * ratio,
88
+ width: "100%",
89
+ background: gradientValue ?? backgroundColor,
90
+ cursor: withHoverView ? "pointer" : void 0
91
+ },
92
+ initial: "start",
93
+ animate: (isHovered || isFocused) && !disableMotion && label ? "hover" : "start",
94
+ children: [].concat(children).map((child, key) => child({ ratio, key }))
95
+ }
96
+ )
97
+ }
98
+ )
99
+ ] });
115
100
  }
116
- //# sourceMappingURL=preview-wrapper.js.map
101
+ //# sourceMappingURL=preview-wrapper.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_blockEditor","require","_components","_compose","_element","_lockUnlock","_jsxRuntime","useGlobalStyle","unlock","blockEditorPrivateApis","normalizedWidth","normalizedHeight","THROTTLE_OPTIONS","leading","trailing","PreviewWrapper","children","label","isFocused","withHoverView","backgroundColor","gradientValue","disableMotion","useReducedMotion","isHovered","setIsHovered","useState","containerResizeListener","width","useResizeObserver","throttledWidth","setThrottledWidthState","ratioState","setRatioState","setThrottledWidth","useThrottle","useLayoutEffect","newRatio","ratioDiff","isRatioDiffBigEnough","Math","abs","fallbackRatio","ratio","isReady","jsxs","Fragment","jsx","style","position","className","height","onMouseEnter","onMouseLeave","tabIndex","__unstableMotion","div","background","cursor","undefined","initial","animate","concat","map","child","key"],"sources":["@wordpress/edit-site/src/components/global-styles/preview-wrapper.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';\nimport { __unstableMotion as motion } from '@wordpress/components';\nimport {\n\tuseThrottle,\n\tuseReducedMotion,\n\tuseResizeObserver,\n} from '@wordpress/compose';\nimport { useLayoutEffect, useState } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\n\nconst { useGlobalStyle } = unlock( blockEditorPrivateApis );\n\nconst normalizedWidth = 248;\nconst normalizedHeight = 152;\n\n// Throttle options for useThrottle. Must be defined outside of the component,\n// so that the object reference is the same on each render.\nconst THROTTLE_OPTIONS = {\n\tleading: true,\n\ttrailing: true,\n};\n\nexport default function PreviewWrapper( {\n\tchildren,\n\tlabel,\n\tisFocused,\n\twithHoverView,\n} ) {\n\tconst [ backgroundColor = 'white' ] = useGlobalStyle( 'color.background' );\n\tconst [ gradientValue ] = useGlobalStyle( 'color.gradient' );\n\tconst disableMotion = useReducedMotion();\n\tconst [ isHovered, setIsHovered ] = useState( false );\n\tconst [ containerResizeListener, { width } ] = useResizeObserver();\n\tconst [ throttledWidth, setThrottledWidthState ] = useState( width );\n\tconst [ ratioState, setRatioState ] = useState();\n\n\tconst setThrottledWidth = useThrottle(\n\t\tsetThrottledWidthState,\n\t\t250,\n\t\tTHROTTLE_OPTIONS\n\t);\n\n\t// Must use useLayoutEffect to avoid a flash of the container at the wrong\n\t// size before the width is set.\n\tuseLayoutEffect( () => {\n\t\tif ( width ) {\n\t\t\tsetThrottledWidth( width );\n\t\t}\n\t}, [ width, setThrottledWidth ] );\n\n\t// Must use useLayoutEffect to avoid a flash of the container at the wrong\n\t// size before the width is set.\n\tuseLayoutEffect( () => {\n\t\tconst newRatio = throttledWidth ? throttledWidth / normalizedWidth : 1;\n\t\tconst ratioDiff = newRatio - ( ratioState || 0 );\n\n\t\t// Only update the ratio state if the difference is big enough\n\t\t// or if the ratio state is not yet set. This is to avoid an\n\t\t// endless loop of updates at particular viewport heights when the\n\t\t// presence of a scrollbar causes the width to change slightly.\n\t\tconst isRatioDiffBigEnough = Math.abs( ratioDiff ) > 0.1;\n\n\t\tif ( isRatioDiffBigEnough || ! ratioState ) {\n\t\t\tsetRatioState( newRatio );\n\t\t}\n\t}, [ throttledWidth, ratioState ] );\n\n\t// Set a fallbackRatio to use before the throttled ratio has been set.\n\tconst fallbackRatio = width ? width / normalizedWidth : 1;\n\t/*\n\t * Use the throttled ratio if it has been calculated, otherwise\n\t * use the fallback ratio. The throttled ratio is used to avoid\n\t * an endless loop of updates at particular viewport heights.\n\t * See: https://github.com/WordPress/gutenberg/issues/55112\n\t */\n\tconst ratio = ratioState ? ratioState : fallbackRatio;\n\n\tconst isReady = !! width;\n\n\treturn (\n\t\t<>\n\t\t\t<div style={ { position: 'relative' } }>\n\t\t\t\t{ containerResizeListener }\n\t\t\t</div>\n\t\t\t{ isReady && (\n\t\t\t\t<div\n\t\t\t\t\tclassName=\"edit-site-global-styles-preview__wrapper\"\n\t\t\t\t\tstyle={ {\n\t\t\t\t\t\theight: normalizedHeight * ratio,\n\t\t\t\t\t} }\n\t\t\t\t\tonMouseEnter={ () => setIsHovered( true ) }\n\t\t\t\t\tonMouseLeave={ () => setIsHovered( false ) }\n\t\t\t\t\ttabIndex={ -1 }\n\t\t\t\t>\n\t\t\t\t\t<motion.div\n\t\t\t\t\t\tstyle={ {\n\t\t\t\t\t\t\theight: normalizedHeight * ratio,\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\tbackground: gradientValue ?? backgroundColor,\n\t\t\t\t\t\t\tcursor: withHoverView ? 'pointer' : undefined,\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tinitial=\"start\"\n\t\t\t\t\t\tanimate={\n\t\t\t\t\t\t\t( isHovered || isFocused ) &&\n\t\t\t\t\t\t\t! disableMotion &&\n\t\t\t\t\t\t\tlabel\n\t\t\t\t\t\t\t\t? 'hover'\n\t\t\t\t\t\t\t\t: 'start'\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t{ []\n\t\t\t\t\t\t\t.concat( children ) // This makes sure children is always an array.\n\t\t\t\t\t\t\t.map( ( child, key ) => child( { ratio, key } ) ) }\n\t\t\t\t\t</motion.div>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAKA,IAAAG,QAAA,GAAAH,OAAA;AAKA,IAAAI,WAAA,GAAAJ,OAAA;AAA2C,IAAAK,WAAA,GAAAL,OAAA;AAf3C;AACA;AACA;;AAUA;AACA;AACA;;AAGA,MAAM;EAAEM;AAAe,CAAC,GAAG,IAAAC,kBAAM,EAAEC,wBAAuB,CAAC;AAE3D,MAAMC,eAAe,GAAG,GAAG;AAC3B,MAAMC,gBAAgB,GAAG,GAAG;;AAE5B;AACA;AACA,MAAMC,gBAAgB,GAAG;EACxBC,OAAO,EAAE,IAAI;EACbC,QAAQ,EAAE;AACX,CAAC;AAEc,SAASC,cAAcA,CAAE;EACvCC,QAAQ;EACRC,KAAK;EACLC,SAAS;EACTC;AACD,CAAC,EAAG;EACH,MAAM,CAAEC,eAAe,GAAG,OAAO,CAAE,GAAGb,cAAc,CAAE,kBAAmB,CAAC;EAC1E,MAAM,CAAEc,aAAa,CAAE,GAAGd,cAAc,CAAE,gBAAiB,CAAC;EAC5D,MAAMe,aAAa,GAAG,IAAAC,yBAAgB,EAAC,CAAC;EACxC,MAAM,CAAEC,SAAS,EAAEC,YAAY,CAAE,GAAG,IAAAC,iBAAQ,EAAE,KAAM,CAAC;EACrD,MAAM,CAAEC,uBAAuB,EAAE;IAAEC;EAAM,CAAC,CAAE,GAAG,IAAAC,0BAAiB,EAAC,CAAC;EAClE,MAAM,CAAEC,cAAc,EAAEC,sBAAsB,CAAE,GAAG,IAAAL,iBAAQ,EAAEE,KAAM,CAAC;EACpE,MAAM,CAAEI,UAAU,EAAEC,aAAa,CAAE,GAAG,IAAAP,iBAAQ,EAAC,CAAC;EAEhD,MAAMQ,iBAAiB,GAAG,IAAAC,oBAAW,EACpCJ,sBAAsB,EACtB,GAAG,EACHnB,gBACD,CAAC;;EAED;EACA;EACA,IAAAwB,wBAAe,EAAE,MAAM;IACtB,IAAKR,KAAK,EAAG;MACZM,iBAAiB,CAAEN,KAAM,CAAC;IAC3B;EACD,CAAC,EAAE,CAAEA,KAAK,EAAEM,iBAAiB,CAAG,CAAC;;EAEjC;EACA;EACA,IAAAE,wBAAe,EAAE,MAAM;IACtB,MAAMC,QAAQ,GAAGP,cAAc,GAAGA,cAAc,GAAGpB,eAAe,GAAG,CAAC;IACtE,MAAM4B,SAAS,GAAGD,QAAQ,IAAKL,UAAU,IAAI,CAAC,CAAE;;IAEhD;IACA;IACA;IACA;IACA,MAAMO,oBAAoB,GAAGC,IAAI,CAACC,GAAG,CAAEH,SAAU,CAAC,GAAG,GAAG;IAExD,IAAKC,oBAAoB,IAAI,CAAEP,UAAU,EAAG;MAC3CC,aAAa,CAAEI,QAAS,CAAC;IAC1B;EACD,CAAC,EAAE,CAAEP,cAAc,EAAEE,UAAU,CAAG,CAAC;;EAEnC;EACA,MAAMU,aAAa,GAAGd,KAAK,GAAGA,KAAK,GAAGlB,eAAe,GAAG,CAAC;EACzD;AACD;AACA;AACA;AACA;AACA;EACC,MAAMiC,KAAK,GAAGX,UAAU,GAAGA,UAAU,GAAGU,aAAa;EAErD,MAAME,OAAO,GAAG,CAAC,CAAEhB,KAAK;EAExB,oBACC,IAAAtB,WAAA,CAAAuC,IAAA,EAAAvC,WAAA,CAAAwC,QAAA;IAAA9B,QAAA,gBACC,IAAAV,WAAA,CAAAyC,GAAA;MAAKC,KAAK,EAAG;QAAEC,QAAQ,EAAE;MAAW,CAAG;MAAAjC,QAAA,EACpCW;IAAuB,CACrB,CAAC,EACJiB,OAAO,iBACR,IAAAtC,WAAA,CAAAyC,GAAA;MACCG,SAAS,EAAC,0CAA0C;MACpDF,KAAK,EAAG;QACPG,MAAM,EAAExC,gBAAgB,GAAGgC;MAC5B,CAAG;MACHS,YAAY,EAAGA,CAAA,KAAM3B,YAAY,CAAE,IAAK,CAAG;MAC3C4B,YAAY,EAAGA,CAAA,KAAM5B,YAAY,CAAE,KAAM,CAAG;MAC5C6B,QAAQ,EAAG,CAAC,CAAG;MAAAtC,QAAA,eAEf,IAAAV,WAAA,CAAAyC,GAAA,EAAC7C,WAAA,CAAAqD,gBAAM,CAACC,GAAG;QACVR,KAAK,EAAG;UACPG,MAAM,EAAExC,gBAAgB,GAAGgC,KAAK;UAChCf,KAAK,EAAE,MAAM;UACb6B,UAAU,EAAEpC,aAAa,aAAbA,aAAa,cAAbA,aAAa,GAAID,eAAe;UAC5CsC,MAAM,EAAEvC,aAAa,GAAG,SAAS,GAAGwC;QACrC,CAAG;QACHC,OAAO,EAAC,OAAO;QACfC,OAAO,EACN,CAAErC,SAAS,IAAIN,SAAS,KACxB,CAAEI,aAAa,IACfL,KAAK,GACF,OAAO,GACP,OACH;QAAAD,QAAA,EAEC,EAAE,CACF8C,MAAM,CAAE9C,QAAS,CAAC,CAAC;QAAA,CACnB+C,GAAG,CAAE,CAAEC,KAAK,EAAEC,GAAG,KAAMD,KAAK,CAAE;UAAErB,KAAK;UAAEsB;QAAI,CAAE,CAAE;MAAC,CACvC;IAAC,CACT,CACL;EAAA,CACA,CAAC;AAEL","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/global-styles/preview-wrapper.js"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';\nimport { __unstableMotion as motion } from '@wordpress/components';\nimport {\n\tuseThrottle,\n\tuseReducedMotion,\n\tuseResizeObserver,\n} from '@wordpress/compose';\nimport { useLayoutEffect, useState } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\n\nconst { useGlobalStyle } = unlock( blockEditorPrivateApis );\n\nconst normalizedWidth = 248;\nconst normalizedHeight = 152;\n\n// Throttle options for useThrottle. Must be defined outside of the component,\n// so that the object reference is the same on each render.\nconst THROTTLE_OPTIONS = {\n\tleading: true,\n\ttrailing: true,\n};\n\nexport default function PreviewWrapper( {\n\tchildren,\n\tlabel,\n\tisFocused,\n\twithHoverView,\n} ) {\n\tconst [ backgroundColor = 'white' ] = useGlobalStyle( 'color.background' );\n\tconst [ gradientValue ] = useGlobalStyle( 'color.gradient' );\n\tconst disableMotion = useReducedMotion();\n\tconst [ isHovered, setIsHovered ] = useState( false );\n\tconst [ containerResizeListener, { width } ] = useResizeObserver();\n\tconst [ throttledWidth, setThrottledWidthState ] = useState( width );\n\tconst [ ratioState, setRatioState ] = useState();\n\n\tconst setThrottledWidth = useThrottle(\n\t\tsetThrottledWidthState,\n\t\t250,\n\t\tTHROTTLE_OPTIONS\n\t);\n\n\t// Must use useLayoutEffect to avoid a flash of the container at the wrong\n\t// size before the width is set.\n\tuseLayoutEffect( () => {\n\t\tif ( width ) {\n\t\t\tsetThrottledWidth( width );\n\t\t}\n\t}, [ width, setThrottledWidth ] );\n\n\t// Must use useLayoutEffect to avoid a flash of the container at the wrong\n\t// size before the width is set.\n\tuseLayoutEffect( () => {\n\t\tconst newRatio = throttledWidth ? throttledWidth / normalizedWidth : 1;\n\t\tconst ratioDiff = newRatio - ( ratioState || 0 );\n\n\t\t// Only update the ratio state if the difference is big enough\n\t\t// or if the ratio state is not yet set. This is to avoid an\n\t\t// endless loop of updates at particular viewport heights when the\n\t\t// presence of a scrollbar causes the width to change slightly.\n\t\tconst isRatioDiffBigEnough = Math.abs( ratioDiff ) > 0.1;\n\n\t\tif ( isRatioDiffBigEnough || ! ratioState ) {\n\t\t\tsetRatioState( newRatio );\n\t\t}\n\t}, [ throttledWidth, ratioState ] );\n\n\t// Set a fallbackRatio to use before the throttled ratio has been set.\n\tconst fallbackRatio = width ? width / normalizedWidth : 1;\n\t/*\n\t * Use the throttled ratio if it has been calculated, otherwise\n\t * use the fallback ratio. The throttled ratio is used to avoid\n\t * an endless loop of updates at particular viewport heights.\n\t * See: https://github.com/WordPress/gutenberg/issues/55112\n\t */\n\tconst ratio = ratioState ? ratioState : fallbackRatio;\n\n\tconst isReady = !! width;\n\n\treturn (\n\t\t<>\n\t\t\t<div style={ { position: 'relative' } }>\n\t\t\t\t{ containerResizeListener }\n\t\t\t</div>\n\t\t\t{ isReady && (\n\t\t\t\t<div\n\t\t\t\t\tclassName=\"edit-site-global-styles-preview__wrapper\"\n\t\t\t\t\tstyle={ {\n\t\t\t\t\t\theight: normalizedHeight * ratio,\n\t\t\t\t\t} }\n\t\t\t\t\tonMouseEnter={ () => setIsHovered( true ) }\n\t\t\t\t\tonMouseLeave={ () => setIsHovered( false ) }\n\t\t\t\t\ttabIndex={ -1 }\n\t\t\t\t>\n\t\t\t\t\t<motion.div\n\t\t\t\t\t\tstyle={ {\n\t\t\t\t\t\t\theight: normalizedHeight * ratio,\n\t\t\t\t\t\t\twidth: '100%',\n\t\t\t\t\t\t\tbackground: gradientValue ?? backgroundColor,\n\t\t\t\t\t\t\tcursor: withHoverView ? 'pointer' : undefined,\n\t\t\t\t\t\t} }\n\t\t\t\t\t\tinitial=\"start\"\n\t\t\t\t\t\tanimate={\n\t\t\t\t\t\t\t( isHovered || isFocused ) &&\n\t\t\t\t\t\t\t! disableMotion &&\n\t\t\t\t\t\t\tlabel\n\t\t\t\t\t\t\t\t? 'hover'\n\t\t\t\t\t\t\t\t: 'start'\n\t\t\t\t\t\t}\n\t\t\t\t\t>\n\t\t\t\t\t\t{ []\n\t\t\t\t\t\t\t.concat( children ) // This makes sure children is always an array.\n\t\t\t\t\t\t\t.map( ( child, key ) => child( { ratio, key } ) ) }\n\t\t\t\t\t</motion.div>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</>\n\t);\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAuFE;AApFF,0BAAsD;AACtD,wBAA2C;AAC3C,qBAIO;AACP,qBAA0C;AAK1C,yBAAuB;AAEvB,MAAM,EAAE,eAAe,QAAI,2BAAQ,oBAAAA,WAAuB;AAE1D,MAAM,kBAAkB;AACxB,MAAM,mBAAmB;AAIzB,MAAM,mBAAmB;AAAA,EACxB,SAAS;AAAA,EACT,UAAU;AACX;AAEe,SAAR,eAAiC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,GAAI;AACH,QAAM,CAAE,kBAAkB,OAAQ,IAAI,eAAgB,kBAAmB;AACzE,QAAM,CAAE,aAAc,IAAI,eAAgB,gBAAiB;AAC3D,QAAM,oBAAgB,iCAAiB;AACvC,QAAM,CAAE,WAAW,YAAa,QAAI,yBAAU,KAAM;AACpD,QAAM,CAAE,yBAAyB,EAAE,MAAM,CAAE,QAAI,kCAAkB;AACjE,QAAM,CAAE,gBAAgB,sBAAuB,QAAI,yBAAU,KAAM;AACnE,QAAM,CAAE,YAAY,aAAc,QAAI,yBAAS;AAE/C,QAAM,wBAAoB;AAAA,IACzB;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAIA,sCAAiB,MAAM;AACtB,QAAK,OAAQ;AACZ,wBAAmB,KAAM;AAAA,IAC1B;AAAA,EACD,GAAG,CAAE,OAAO,iBAAkB,CAAE;AAIhC,sCAAiB,MAAM;AACtB,UAAM,WAAW,iBAAiB,iBAAiB,kBAAkB;AACrE,UAAM,YAAY,YAAa,cAAc;AAM7C,UAAM,uBAAuB,KAAK,IAAK,SAAU,IAAI;AAErD,QAAK,wBAAwB,CAAE,YAAa;AAC3C,oBAAe,QAAS;AAAA,IACzB;AAAA,EACD,GAAG,CAAE,gBAAgB,UAAW,CAAE;AAGlC,QAAM,gBAAgB,QAAQ,QAAQ,kBAAkB;AAOxD,QAAM,QAAQ,aAAa,aAAa;AAExC,QAAM,UAAU,CAAC,CAAE;AAEnB,SACC,4EACC;AAAA,gDAAC,SAAI,OAAQ,EAAE,UAAU,WAAW,GACjC,mCACH;AAAA,IACE,WACD;AAAA,MAAC;AAAA;AAAA,QACA,WAAU;AAAA,QACV,OAAQ;AAAA,UACP,QAAQ,mBAAmB;AAAA,QAC5B;AAAA,QACA,cAAe,MAAM,aAAc,IAAK;AAAA,QACxC,cAAe,MAAM,aAAc,KAAM;AAAA,QACzC,UAAW;AAAA,QAEX;AAAA,UAAC,kBAAAC,iBAAO;AAAA,UAAP;AAAA,YACA,OAAQ;AAAA,cACP,QAAQ,mBAAmB;AAAA,cAC3B,OAAO;AAAA,cACP,YAAY,iBAAiB;AAAA,cAC7B,QAAQ,gBAAgB,YAAY;AAAA,YACrC;AAAA,YACA,SAAQ;AAAA,YACR,UACG,aAAa,cACf,CAAE,iBACF,QACG,UACA;AAAA,YAGF,WAAC,EACD,OAAQ,QAAS,EACjB,IAAK,CAAE,OAAO,QAAS,MAAO,EAAE,OAAO,IAAI,CAAE,CAAE;AAAA;AAAA,QAClD;AAAA;AAAA,IACD;AAAA,KAEF;AAEF;",
6
+ "names": ["blockEditorPrivateApis", "motion"]
7
+ }
@@ -1,24 +1,33 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var root_menu_exports = {};
20
+ __export(root_menu_exports, {
21
+ default: () => root_menu_default
5
22
  });
6
- exports.default = void 0;
7
- var _components = require("@wordpress/components");
8
- var _icons = require("@wordpress/icons");
9
- var _i18n = require("@wordpress/i18n");
10
- var _blockEditor = require("@wordpress/block-editor");
11
- var _navigationButton = require("./navigation-button");
12
- var _lockUnlock = require("../../lock-unlock");
13
- var _jsxRuntime = require("react/jsx-runtime");
14
- /**
15
- * WordPress dependencies
16
- */
17
-
18
- /**
19
- * Internal dependencies
20
- */
21
-
23
+ module.exports = __toCommonJS(root_menu_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_components = require("@wordpress/components");
26
+ var import_icons = require("@wordpress/icons");
27
+ var import_i18n = require("@wordpress/i18n");
28
+ var import_block_editor = require("@wordpress/block-editor");
29
+ var import_navigation_button = require("./navigation-button");
30
+ var import_lock_unlock = require("../../lock-unlock");
22
31
  const {
23
32
  useHasDimensionsPanel,
24
33
  useHasTypographyPanel,
@@ -26,46 +35,38 @@ const {
26
35
  useGlobalSetting,
27
36
  useSettingsForBlockElement,
28
37
  useHasBackgroundPanel
29
- } = (0, _lockUnlock.unlock)(_blockEditor.privateApis);
38
+ } = (0, import_lock_unlock.unlock)(import_block_editor.privateApis);
30
39
  function RootMenu() {
31
- const [rawSettings] = useGlobalSetting('');
40
+ const [rawSettings] = useGlobalSetting("");
32
41
  const settings = useSettingsForBlockElement(rawSettings);
33
- /*
34
- * Use the raw settings to determine if the background panel should be displayed,
35
- * as the background panel is not dependent on the block element settings.
36
- */
37
42
  const hasBackgroundPanel = useHasBackgroundPanel(rawSettings);
38
43
  const hasTypographyPanel = useHasTypographyPanel(settings);
39
44
  const hasColorPanel = useHasColorPanel(settings);
40
- const hasShadowPanel = true; // useHasShadowPanel( settings );
45
+ const hasShadowPanel = true;
41
46
  const hasDimensionsPanel = useHasDimensionsPanel(settings);
42
47
  const hasLayoutPanel = hasDimensionsPanel;
43
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
44
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.__experimentalItemGroup, {
45
- children: [hasTypographyPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_navigationButton.NavigationButtonAsItem, {
46
- icon: _icons.typography,
48
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.__experimentalItemGroup, { children: [
49
+ hasTypographyPanel && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50
+ import_navigation_button.NavigationButtonAsItem,
51
+ {
52
+ icon: import_icons.typography,
47
53
  path: "/typography",
48
- children: (0, _i18n.__)('Typography')
49
- }), hasColorPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_navigationButton.NavigationButtonAsItem, {
50
- icon: _icons.color,
51
- path: "/colors",
52
- children: (0, _i18n.__)('Colors')
53
- }), hasBackgroundPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_navigationButton.NavigationButtonAsItem, {
54
- icon: _icons.background,
54
+ children: (0, import_i18n.__)("Typography")
55
+ }
56
+ ),
57
+ hasColorPanel && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_navigation_button.NavigationButtonAsItem, { icon: import_icons.color, path: "/colors", children: (0, import_i18n.__)("Colors") }),
58
+ hasBackgroundPanel && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
59
+ import_navigation_button.NavigationButtonAsItem,
60
+ {
61
+ icon: import_icons.background,
55
62
  path: "/background",
56
- "aria-label": (0, _i18n.__)('Background styles'),
57
- children: (0, _i18n.__)('Background')
58
- }), hasShadowPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_navigationButton.NavigationButtonAsItem, {
59
- icon: _icons.shadow,
60
- path: "/shadows",
61
- children: (0, _i18n.__)('Shadows')
62
- }), hasLayoutPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_navigationButton.NavigationButtonAsItem, {
63
- icon: _icons.layout,
64
- path: "/layout",
65
- children: (0, _i18n.__)('Layout')
66
- })]
67
- })
68
- });
63
+ "aria-label": (0, import_i18n.__)("Background styles"),
64
+ children: (0, import_i18n.__)("Background")
65
+ }
66
+ ),
67
+ hasShadowPanel && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_navigation_button.NavigationButtonAsItem, { icon: import_icons.shadow, path: "/shadows", children: (0, import_i18n.__)("Shadows") }),
68
+ hasLayoutPanel && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_navigation_button.NavigationButtonAsItem, { icon: import_icons.layout, path: "/layout", children: (0, import_i18n.__)("Layout") })
69
+ ] }) });
69
70
  }
70
- var _default = exports.default = RootMenu;
71
- //# sourceMappingURL=root-menu.js.map
71
+ var root_menu_default = RootMenu;
72
+ //# sourceMappingURL=root-menu.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_components","require","_icons","_i18n","_blockEditor","_navigationButton","_lockUnlock","_jsxRuntime","useHasDimensionsPanel","useHasTypographyPanel","useHasColorPanel","useGlobalSetting","useSettingsForBlockElement","useHasBackgroundPanel","unlock","blockEditorPrivateApis","RootMenu","rawSettings","settings","hasBackgroundPanel","hasTypographyPanel","hasColorPanel","hasShadowPanel","hasDimensionsPanel","hasLayoutPanel","jsx","Fragment","children","jsxs","__experimentalItemGroup","NavigationButtonAsItem","icon","typography","path","__","color","background","shadowIcon","layout","_default","exports","default"],"sources":["@wordpress/edit-site/src/components/global-styles/root-menu.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __experimentalItemGroup as ItemGroup } from '@wordpress/components';\nimport {\n\tbackground,\n\ttypography,\n\tcolor,\n\tlayout,\n\tshadow as shadowIcon,\n} from '@wordpress/icons';\nimport { __ } from '@wordpress/i18n';\nimport { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport { NavigationButtonAsItem } from './navigation-button';\nimport { unlock } from '../../lock-unlock';\n\nconst {\n\tuseHasDimensionsPanel,\n\tuseHasTypographyPanel,\n\tuseHasColorPanel,\n\tuseGlobalSetting,\n\tuseSettingsForBlockElement,\n\tuseHasBackgroundPanel,\n} = unlock( blockEditorPrivateApis );\n\nfunction RootMenu() {\n\tconst [ rawSettings ] = useGlobalSetting( '' );\n\tconst settings = useSettingsForBlockElement( rawSettings );\n\t/*\n\t * Use the raw settings to determine if the background panel should be displayed,\n\t * as the background panel is not dependent on the block element settings.\n\t */\n\tconst hasBackgroundPanel = useHasBackgroundPanel( rawSettings );\n\tconst hasTypographyPanel = useHasTypographyPanel( settings );\n\tconst hasColorPanel = useHasColorPanel( settings );\n\tconst hasShadowPanel = true; // useHasShadowPanel( settings );\n\tconst hasDimensionsPanel = useHasDimensionsPanel( settings );\n\tconst hasLayoutPanel = hasDimensionsPanel;\n\n\treturn (\n\t\t<>\n\t\t\t<ItemGroup>\n\t\t\t\t{ hasTypographyPanel && (\n\t\t\t\t\t<NavigationButtonAsItem\n\t\t\t\t\t\ticon={ typography }\n\t\t\t\t\t\tpath=\"/typography\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Typography' ) }\n\t\t\t\t\t</NavigationButtonAsItem>\n\t\t\t\t) }\n\t\t\t\t{ hasColorPanel && (\n\t\t\t\t\t<NavigationButtonAsItem icon={ color } path=\"/colors\">\n\t\t\t\t\t\t{ __( 'Colors' ) }\n\t\t\t\t\t</NavigationButtonAsItem>\n\t\t\t\t) }\n\t\t\t\t{ hasBackgroundPanel && (\n\t\t\t\t\t<NavigationButtonAsItem\n\t\t\t\t\t\ticon={ background }\n\t\t\t\t\t\tpath=\"/background\"\n\t\t\t\t\t\taria-label={ __( 'Background styles' ) }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Background' ) }\n\t\t\t\t\t</NavigationButtonAsItem>\n\t\t\t\t) }\n\t\t\t\t{ hasShadowPanel && (\n\t\t\t\t\t<NavigationButtonAsItem icon={ shadowIcon } path=\"/shadows\">\n\t\t\t\t\t\t{ __( 'Shadows' ) }\n\t\t\t\t\t</NavigationButtonAsItem>\n\t\t\t\t) }\n\t\t\t\t{ hasLayoutPanel && (\n\t\t\t\t\t<NavigationButtonAsItem icon={ layout } path=\"/layout\">\n\t\t\t\t\t\t{ __( 'Layout' ) }\n\t\t\t\t\t</NavigationButtonAsItem>\n\t\t\t\t) }\n\t\t\t</ItemGroup>\n\t\t</>\n\t);\n}\n\nexport default RootMenu;\n"],"mappings":";;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAOA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAKA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAA2C,IAAAM,WAAA,GAAAN,OAAA;AAlB3C;AACA;AACA;;AAYA;AACA;AACA;;AAIA,MAAM;EACLO,qBAAqB;EACrBC,qBAAqB;EACrBC,gBAAgB;EAChBC,gBAAgB;EAChBC,0BAA0B;EAC1BC;AACD,CAAC,GAAG,IAAAC,kBAAM,EAAEC,wBAAuB,CAAC;AAEpC,SAASC,QAAQA,CAAA,EAAG;EACnB,MAAM,CAAEC,WAAW,CAAE,GAAGN,gBAAgB,CAAE,EAAG,CAAC;EAC9C,MAAMO,QAAQ,GAAGN,0BAA0B,CAAEK,WAAY,CAAC;EAC1D;AACD;AACA;AACA;EACC,MAAME,kBAAkB,GAAGN,qBAAqB,CAAEI,WAAY,CAAC;EAC/D,MAAMG,kBAAkB,GAAGX,qBAAqB,CAAES,QAAS,CAAC;EAC5D,MAAMG,aAAa,GAAGX,gBAAgB,CAAEQ,QAAS,CAAC;EAClD,MAAMI,cAAc,GAAG,IAAI,CAAC,CAAC;EAC7B,MAAMC,kBAAkB,GAAGf,qBAAqB,CAAEU,QAAS,CAAC;EAC5D,MAAMM,cAAc,GAAGD,kBAAkB;EAEzC,oBACC,IAAAhB,WAAA,CAAAkB,GAAA,EAAAlB,WAAA,CAAAmB,QAAA;IAAAC,QAAA,eACC,IAAApB,WAAA,CAAAqB,IAAA,EAAC5B,WAAA,CAAA6B,uBAAS;MAAAF,QAAA,GACPP,kBAAkB,iBACnB,IAAAb,WAAA,CAAAkB,GAAA,EAACpB,iBAAA,CAAAyB,sBAAsB;QACtBC,IAAI,EAAGC,iBAAY;QACnBC,IAAI,EAAC,aAAa;QAAAN,QAAA,EAEhB,IAAAO,QAAE,EAAE,YAAa;MAAC,CACG,CACxB,EACCb,aAAa,iBACd,IAAAd,WAAA,CAAAkB,GAAA,EAACpB,iBAAA,CAAAyB,sBAAsB;QAACC,IAAI,EAAGI,YAAO;QAACF,IAAI,EAAC,SAAS;QAAAN,QAAA,EAClD,IAAAO,QAAE,EAAE,QAAS;MAAC,CACO,CACxB,EACCf,kBAAkB,iBACnB,IAAAZ,WAAA,CAAAkB,GAAA,EAACpB,iBAAA,CAAAyB,sBAAsB;QACtBC,IAAI,EAAGK,iBAAY;QACnBH,IAAI,EAAC,aAAa;QAClB,cAAa,IAAAC,QAAE,EAAE,mBAAoB,CAAG;QAAAP,QAAA,EAEtC,IAAAO,QAAE,EAAE,YAAa;MAAC,CACG,CACxB,EACCZ,cAAc,iBACf,IAAAf,WAAA,CAAAkB,GAAA,EAACpB,iBAAA,CAAAyB,sBAAsB;QAACC,IAAI,EAAGM,aAAY;QAACJ,IAAI,EAAC,UAAU;QAAAN,QAAA,EACxD,IAAAO,QAAE,EAAE,SAAU;MAAC,CACM,CACxB,EACCV,cAAc,iBACf,IAAAjB,WAAA,CAAAkB,GAAA,EAACpB,iBAAA,CAAAyB,sBAAsB;QAACC,IAAI,EAAGO,aAAQ;QAACL,IAAI,EAAC,SAAS;QAAAN,QAAA,EACnD,IAAAO,QAAE,EAAE,QAAS;MAAC,CACO,CACxB;IAAA,CACS;EAAC,CACX,CAAC;AAEL;AAAC,IAAAK,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEczB,QAAQ","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/global-styles/root-menu.js"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __experimentalItemGroup as ItemGroup } from '@wordpress/components';\nimport {\n\tbackground,\n\ttypography,\n\tcolor,\n\tlayout,\n\tshadow as shadowIcon,\n} from '@wordpress/icons';\nimport { __ } from '@wordpress/i18n';\nimport { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport { NavigationButtonAsItem } from './navigation-button';\nimport { unlock } from '../../lock-unlock';\n\nconst {\n\tuseHasDimensionsPanel,\n\tuseHasTypographyPanel,\n\tuseHasColorPanel,\n\tuseGlobalSetting,\n\tuseSettingsForBlockElement,\n\tuseHasBackgroundPanel,\n} = unlock( blockEditorPrivateApis );\n\nfunction RootMenu() {\n\tconst [ rawSettings ] = useGlobalSetting( '' );\n\tconst settings = useSettingsForBlockElement( rawSettings );\n\t/*\n\t * Use the raw settings to determine if the background panel should be displayed,\n\t * as the background panel is not dependent on the block element settings.\n\t */\n\tconst hasBackgroundPanel = useHasBackgroundPanel( rawSettings );\n\tconst hasTypographyPanel = useHasTypographyPanel( settings );\n\tconst hasColorPanel = useHasColorPanel( settings );\n\tconst hasShadowPanel = true; // useHasShadowPanel( settings );\n\tconst hasDimensionsPanel = useHasDimensionsPanel( settings );\n\tconst hasLayoutPanel = hasDimensionsPanel;\n\n\treturn (\n\t\t<>\n\t\t\t<ItemGroup>\n\t\t\t\t{ hasTypographyPanel && (\n\t\t\t\t\t<NavigationButtonAsItem\n\t\t\t\t\t\ticon={ typography }\n\t\t\t\t\t\tpath=\"/typography\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Typography' ) }\n\t\t\t\t\t</NavigationButtonAsItem>\n\t\t\t\t) }\n\t\t\t\t{ hasColorPanel && (\n\t\t\t\t\t<NavigationButtonAsItem icon={ color } path=\"/colors\">\n\t\t\t\t\t\t{ __( 'Colors' ) }\n\t\t\t\t\t</NavigationButtonAsItem>\n\t\t\t\t) }\n\t\t\t\t{ hasBackgroundPanel && (\n\t\t\t\t\t<NavigationButtonAsItem\n\t\t\t\t\t\ticon={ background }\n\t\t\t\t\t\tpath=\"/background\"\n\t\t\t\t\t\taria-label={ __( 'Background styles' ) }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Background' ) }\n\t\t\t\t\t</NavigationButtonAsItem>\n\t\t\t\t) }\n\t\t\t\t{ hasShadowPanel && (\n\t\t\t\t\t<NavigationButtonAsItem icon={ shadowIcon } path=\"/shadows\">\n\t\t\t\t\t\t{ __( 'Shadows' ) }\n\t\t\t\t\t</NavigationButtonAsItem>\n\t\t\t\t) }\n\t\t\t\t{ hasLayoutPanel && (\n\t\t\t\t\t<NavigationButtonAsItem icon={ layout } path=\"/layout\">\n\t\t\t\t\t\t{ __( 'Layout' ) }\n\t\t\t\t\t</NavigationButtonAsItem>\n\t\t\t\t) }\n\t\t\t</ItemGroup>\n\t\t</>\n\t);\n}\n\nexport default RootMenu;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA4CE;AAzCF,wBAAqD;AACrD,mBAMO;AACP,kBAAmB;AACnB,0BAAsD;AAKtD,+BAAuC;AACvC,yBAAuB;AAEvB,MAAM;AAAA,EACL;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,QAAI,2BAAQ,oBAAAA,WAAuB;AAEnC,SAAS,WAAW;AACnB,QAAM,CAAE,WAAY,IAAI,iBAAkB,EAAG;AAC7C,QAAM,WAAW,2BAA4B,WAAY;AAKzD,QAAM,qBAAqB,sBAAuB,WAAY;AAC9D,QAAM,qBAAqB,sBAAuB,QAAS;AAC3D,QAAM,gBAAgB,iBAAkB,QAAS;AACjD,QAAM,iBAAiB;AACvB,QAAM,qBAAqB,sBAAuB,QAAS;AAC3D,QAAM,iBAAiB;AAEvB,SACC,2EACC,uDAAC,kBAAAC,yBAAA,EACE;AAAA,0BACD;AAAA,MAAC;AAAA;AAAA,QACA,MAAO;AAAA,QACP,MAAK;AAAA,QAEH,8BAAI,YAAa;AAAA;AAAA,IACpB;AAAA,IAEC,iBACD,4CAAC,mDAAuB,MAAO,oBAAQ,MAAK,WACzC,8BAAI,QAAS,GAChB;AAAA,IAEC,sBACD;AAAA,MAAC;AAAA;AAAA,QACA,MAAO;AAAA,QACP,MAAK;AAAA,QACL,kBAAa,gBAAI,mBAAoB;AAAA,QAEnC,8BAAI,YAAa;AAAA;AAAA,IACpB;AAAA,IAEC,kBACD,4CAAC,mDAAuB,MAAO,aAAAC,QAAa,MAAK,YAC9C,8BAAI,SAAU,GACjB;AAAA,IAEC,kBACD,4CAAC,mDAAuB,MAAO,qBAAS,MAAK,WAC1C,8BAAI,QAAS,GAChB;AAAA,KAEF,GACD;AAEF;AAEA,IAAO,oBAAQ;",
6
+ "names": ["blockEditorPrivateApis", "ItemGroup", "shadowIcon"]
7
+ }
@@ -1,40 +1,59 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var screen_background_exports = {};
30
+ __export(screen_background_exports, {
31
+ default: () => screen_background_default
6
32
  });
7
- exports.default = void 0;
8
- var _i18n = require("@wordpress/i18n");
9
- var _blockEditor = require("@wordpress/block-editor");
10
- var _components = require("@wordpress/components");
11
- var _backgroundPanel = _interopRequireDefault(require("./background-panel"));
12
- var _header = _interopRequireDefault(require("./header"));
13
- var _lockUnlock = require("../../lock-unlock");
14
- var _jsxRuntime = require("react/jsx-runtime");
15
- /**
16
- * WordPress dependencies
17
- */
18
-
19
- /**
20
- * Internal dependencies
21
- */
22
-
23
- const {
24
- useHasBackgroundPanel,
25
- useGlobalSetting
26
- } = (0, _lockUnlock.unlock)(_blockEditor.privateApis);
33
+ module.exports = __toCommonJS(screen_background_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var import_i18n = require("@wordpress/i18n");
36
+ var import_block_editor = require("@wordpress/block-editor");
37
+ var import_components = require("@wordpress/components");
38
+ var import_background_panel = __toESM(require("./background-panel"));
39
+ var import_header = __toESM(require("./header"));
40
+ var import_lock_unlock = require("../../lock-unlock");
41
+ const { useHasBackgroundPanel, useGlobalSetting } = (0, import_lock_unlock.unlock)(
42
+ import_block_editor.privateApis
43
+ );
27
44
  function ScreenBackground() {
28
- const [settings] = useGlobalSetting('');
45
+ const [settings] = useGlobalSetting("");
29
46
  const hasBackgroundPanel = useHasBackgroundPanel(settings);
30
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
31
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_header.default, {
32
- title: (0, _i18n.__)('Background'),
33
- description: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.__experimentalText, {
34
- children: (0, _i18n.__)('Set styles for the site’s background.')
35
- })
36
- }), hasBackgroundPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_backgroundPanel.default, {})]
37
- });
47
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
48
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
49
+ import_header.default,
50
+ {
51
+ title: (0, import_i18n.__)("Background"),
52
+ description: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.__experimentalText, { children: (0, import_i18n.__)("Set styles for the site\u2019s background.") })
53
+ }
54
+ ),
55
+ hasBackgroundPanel && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_background_panel.default, {})
56
+ ] });
38
57
  }
39
- var _default = exports.default = ScreenBackground;
40
- //# sourceMappingURL=screen-background.js.map
58
+ var screen_background_default = ScreenBackground;
59
+ //# sourceMappingURL=screen-background.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_i18n","require","_blockEditor","_components","_backgroundPanel","_interopRequireDefault","_header","_lockUnlock","_jsxRuntime","useHasBackgroundPanel","useGlobalSetting","unlock","blockEditorPrivateApis","ScreenBackground","settings","hasBackgroundPanel","jsxs","Fragment","children","jsx","default","title","__","description","__experimentalText","_default","exports"],"sources":["@wordpress/edit-site/src/components/global-styles/screen-background.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';\nimport { __experimentalText as Text } from '@wordpress/components';\n\n/**\n * Internal dependencies\n */\nimport BackgroundPanel from './background-panel';\nimport ScreenHeader from './header';\nimport { unlock } from '../../lock-unlock';\n\nconst { useHasBackgroundPanel, useGlobalSetting } = unlock(\n\tblockEditorPrivateApis\n);\n\nfunction ScreenBackground() {\n\tconst [ settings ] = useGlobalSetting( '' );\n\tconst hasBackgroundPanel = useHasBackgroundPanel( settings );\n\treturn (\n\t\t<>\n\t\t\t<ScreenHeader\n\t\t\t\ttitle={ __( 'Background' ) }\n\t\t\t\tdescription={\n\t\t\t\t\t<Text>\n\t\t\t\t\t\t{ __( 'Set styles for the site’s background.' ) }\n\t\t\t\t\t</Text>\n\t\t\t\t}\n\t\t\t/>\n\t\t\t{ hasBackgroundPanel && <BackgroundPanel /> }\n\t\t</>\n\t);\n}\n\nexport default ScreenBackground;\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAKA,IAAAG,gBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AAA2C,IAAAO,WAAA,GAAAP,OAAA;AAZ3C;AACA;AACA;;AAKA;AACA;AACA;;AAKA,MAAM;EAAEQ,qBAAqB;EAAEC;AAAiB,CAAC,GAAG,IAAAC,kBAAM,EACzDC,wBACD,CAAC;AAED,SAASC,gBAAgBA,CAAA,EAAG;EAC3B,MAAM,CAAEC,QAAQ,CAAE,GAAGJ,gBAAgB,CAAE,EAAG,CAAC;EAC3C,MAAMK,kBAAkB,GAAGN,qBAAqB,CAAEK,QAAS,CAAC;EAC5D,oBACC,IAAAN,WAAA,CAAAQ,IAAA,EAAAR,WAAA,CAAAS,QAAA;IAAAC,QAAA,gBACC,IAAAV,WAAA,CAAAW,GAAA,EAACb,OAAA,CAAAc,OAAY;MACZC,KAAK,EAAG,IAAAC,QAAE,EAAE,YAAa,CAAG;MAC5BC,WAAW,eACV,IAAAf,WAAA,CAAAW,GAAA,EAAChB,WAAA,CAAAqB,kBAAI;QAAAN,QAAA,EACF,IAAAI,QAAE,EAAE,uCAAwC;MAAC,CAC1C;IACN,CACD,CAAC,EACAP,kBAAkB,iBAAI,IAAAP,WAAA,CAAAW,GAAA,EAACf,gBAAA,CAAAgB,OAAe,IAAE,CAAC;EAAA,CAC1C,CAAC;AAEL;AAAC,IAAAK,QAAA,GAAAC,OAAA,CAAAN,OAAA,GAEcP,gBAAgB","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/global-styles/screen-background.js"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';\nimport { __experimentalText as Text } from '@wordpress/components';\n\n/**\n * Internal dependencies\n */\nimport BackgroundPanel from './background-panel';\nimport ScreenHeader from './header';\nimport { unlock } from '../../lock-unlock';\n\nconst { useHasBackgroundPanel, useGlobalSetting } = unlock(\n\tblockEditorPrivateApis\n);\n\nfunction ScreenBackground() {\n\tconst [ settings ] = useGlobalSetting( '' );\n\tconst hasBackgroundPanel = useHasBackgroundPanel( settings );\n\treturn (\n\t\t<>\n\t\t\t<ScreenHeader\n\t\t\t\ttitle={ __( 'Background' ) }\n\t\t\t\tdescription={\n\t\t\t\t\t<Text>\n\t\t\t\t\t\t{ __( 'Set styles for the site\u2019s background.' ) }\n\t\t\t\t\t</Text>\n\t\t\t\t}\n\t\t\t/>\n\t\t\t{ hasBackgroundPanel && <BackgroundPanel /> }\n\t\t</>\n\t);\n}\n\nexport default ScreenBackground;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBE;AAnBF,kBAAmB;AACnB,0BAAsD;AACtD,wBAA2C;AAK3C,8BAA4B;AAC5B,oBAAyB;AACzB,yBAAuB;AAEvB,MAAM,EAAE,uBAAuB,iBAAiB,QAAI;AAAA,EACnD,oBAAAA;AACD;AAEA,SAAS,mBAAmB;AAC3B,QAAM,CAAE,QAAS,IAAI,iBAAkB,EAAG;AAC1C,QAAM,qBAAqB,sBAAuB,QAAS;AAC3D,SACC,4EACC;AAAA;AAAA,MAAC,cAAAC;AAAA,MAAA;AAAA,QACA,WAAQ,gBAAI,YAAa;AAAA,QACzB,aACC,4CAAC,kBAAAC,oBAAA,EACE,8BAAI,4CAAwC,GAC/C;AAAA;AAAA,IAEF;AAAA,IACE,sBAAsB,4CAAC,wBAAAC,SAAA,EAAgB;AAAA,KAC1C;AAEF;AAEA,IAAO,4BAAQ;",
6
+ "names": ["blockEditorPrivateApis", "ScreenHeader", "Text", "BackgroundPanel"]
7
+ }