@wordpress/edit-site 6.31.1-next.f56bd8138.0 → 6.32.1-next.47f435fc9.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 (994) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/components/add-new-pattern/index.js +153 -141
  3. package/build/components/add-new-pattern/index.js.map +7 -1
  4. package/build/components/add-new-post/index.js +114 -89
  5. package/build/components/add-new-post/index.js.map +7 -1
  6. package/build/components/add-new-template/add-custom-generic-template-modal-content.js +80 -60
  7. package/build/components/add-new-template/add-custom-generic-template-modal-content.js.map +7 -1
  8. package/build/components/add-new-template/add-custom-template-modal-content.js +284 -207
  9. package/build/components/add-new-template/add-custom-template-modal-content.js.map +7 -1
  10. package/build/components/add-new-template/index.js +309 -248
  11. package/build/components/add-new-template/index.js.map +7 -1
  12. package/build/components/add-new-template/utils.js +459 -446
  13. package/build/components/add-new-template/utils.js.map +7 -1
  14. package/build/components/app/index.js +72 -63
  15. package/build/components/app/index.js.map +7 -1
  16. package/build/components/block-editor/use-editor-iframe-props.js +63 -66
  17. package/build/components/block-editor/use-editor-iframe-props.js.map +7 -1
  18. package/build/components/block-editor/use-navigate-to-entity-record.js +34 -22
  19. package/build/components/block-editor/use-navigate-to-entity-record.js.map +7 -1
  20. package/build/components/block-editor/use-site-editor-settings.js +64 -51
  21. package/build/components/block-editor/use-site-editor-settings.js.map +7 -1
  22. package/build/components/canvas-loader/index.js +41 -56
  23. package/build/components/canvas-loader/index.js.map +7 -1
  24. package/build/components/dataviews-actions/index.js +96 -83
  25. package/build/components/dataviews-actions/index.js.map +7 -1
  26. package/build/components/editor/index.js +288 -235
  27. package/build/components/editor/index.js.map +7 -1
  28. package/build/components/editor/site-preview.js +55 -42
  29. package/build/components/editor/site-preview.js.map +7 -1
  30. package/build/components/editor/use-adapt-editor-to-canvas.js +49 -31
  31. package/build/components/editor/use-adapt-editor-to-canvas.js.map +7 -1
  32. package/build/components/editor/use-editor-title.js +79 -61
  33. package/build/components/editor/use-editor-title.js.map +7 -1
  34. package/build/components/editor/use-resolve-edited-entity.js +112 -140
  35. package/build/components/editor/use-resolve-edited-entity.js.map +7 -1
  36. package/build/components/editor-canvas-container/index.js +101 -91
  37. package/build/components/editor-canvas-container/index.js.map +7 -1
  38. package/build/components/global-styles/background-panel.js +46 -39
  39. package/build/components/global-styles/background-panel.js.map +7 -1
  40. package/build/components/global-styles/block-preview-panel.js +58 -52
  41. package/build/components/global-styles/block-preview-panel.js.map +7 -1
  42. package/build/components/global-styles/color-indicator-wrapper.js +47 -26
  43. package/build/components/global-styles/color-indicator-wrapper.js.map +7 -1
  44. package/build/components/global-styles/color-palette-panel.js +130 -81
  45. package/build/components/global-styles/color-palette-panel.js.map +7 -1
  46. package/build/components/global-styles/confirm-reset-shadow-dialog.js +38 -22
  47. package/build/components/global-styles/confirm-reset-shadow-dialog.js.map +7 -1
  48. package/build/components/global-styles/dimensions-panel.js +46 -41
  49. package/build/components/global-styles/dimensions-panel.js.map +7 -1
  50. package/build/components/global-styles/font-families.js +106 -102
  51. package/build/components/global-styles/font-families.js.map +7 -1
  52. package/build/components/global-styles/font-family-item.js +41 -43
  53. package/build/components/global-styles/font-family-item.js.map +7 -1
  54. package/build/components/global-styles/font-library-modal/collection-font-variant.js +55 -39
  55. package/build/components/global-styles/font-library-modal/collection-font-variant.js.map +7 -1
  56. package/build/components/global-styles/font-library-modal/context.js +228 -243
  57. package/build/components/global-styles/font-library-modal/context.js.map +7 -1
  58. package/build/components/global-styles/font-library-modal/font-card.js +70 -59
  59. package/build/components/global-styles/font-library-modal/font-card.js.map +7 -1
  60. package/build/components/global-styles/font-library-modal/font-collection.js +407 -321
  61. package/build/components/global-styles/font-library-modal/font-collection.js.map +7 -1
  62. package/build/components/global-styles/font-library-modal/font-demo.js +54 -50
  63. package/build/components/global-styles/font-library-modal/font-demo.js.map +7 -1
  64. package/build/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js +52 -44
  65. package/build/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js.map +7 -1
  66. package/build/components/global-styles/font-library-modal/index.js +90 -87
  67. package/build/components/global-styles/font-library-modal/index.js.map +7 -1
  68. package/build/components/global-styles/font-library-modal/installed-fonts.js +369 -255
  69. package/build/components/global-styles/font-library-modal/installed-fonts.js.map +7 -1
  70. package/build/components/global-styles/font-library-modal/library-font-details.js +60 -42
  71. package/build/components/global-styles/font-library-modal/library-font-details.js.map +7 -1
  72. package/build/components/global-styles/font-library-modal/library-font-variant.js +64 -49
  73. package/build/components/global-styles/font-library-modal/library-font-variant.js.map +7 -1
  74. package/build/components/global-styles/font-library-modal/resolvers.js +64 -31
  75. package/build/components/global-styles/font-library-modal/resolvers.js.map +7 -1
  76. package/build/components/global-styles/font-library-modal/upload-fonts.js +133 -145
  77. package/build/components/global-styles/font-library-modal/upload-fonts.js.map +7 -1
  78. package/build/components/global-styles/font-library-modal/utils/constants.js +45 -24
  79. package/build/components/global-styles/font-library-modal/utils/constants.js.map +7 -1
  80. package/build/components/global-styles/font-library-modal/utils/filter-fonts.js +30 -27
  81. package/build/components/global-styles/font-library-modal/utils/filter-fonts.js.map +7 -1
  82. package/build/components/global-styles/font-library-modal/utils/fonts-outline.js +41 -13
  83. package/build/components/global-styles/font-library-modal/utils/fonts-outline.js.map +7 -1
  84. package/build/components/global-styles/font-library-modal/utils/index.js +127 -161
  85. package/build/components/global-styles/font-library-modal/utils/index.js.map +7 -1
  86. package/build/components/global-styles/font-library-modal/utils/make-families-from-faces.js +25 -18
  87. package/build/components/global-styles/font-library-modal/utils/make-families-from-faces.js.map +7 -1
  88. package/build/components/global-styles/font-library-modal/utils/preview-styles.js +55 -74
  89. package/build/components/global-styles/font-library-modal/utils/preview-styles.js.map +7 -1
  90. package/build/components/global-styles/font-library-modal/utils/sort-font-faces.js +32 -16
  91. package/build/components/global-styles/font-library-modal/utils/sort-font-faces.js.map +7 -1
  92. package/build/components/global-styles/font-library-modal/utils/toggleFont.js +43 -72
  93. package/build/components/global-styles/font-library-modal/utils/toggleFont.js.map +7 -1
  94. package/build/components/global-styles/font-sizes/confirm-delete-font-size-dialog.js +44 -23
  95. package/build/components/global-styles/font-sizes/confirm-delete-font-size-dialog.js.map +7 -1
  96. package/build/components/global-styles/font-sizes/confirm-reset-font-sizes-dialog.js +38 -22
  97. package/build/components/global-styles/font-sizes/confirm-reset-font-sizes-dialog.js.map +7 -1
  98. package/build/components/global-styles/font-sizes/font-size-preview.js +42 -35
  99. package/build/components/global-styles/font-sizes/font-size-preview.js.map +7 -1
  100. package/build/components/global-styles/font-sizes/font-size.js +207 -170
  101. package/build/components/global-styles/font-sizes/font-size.js.map +7 -1
  102. package/build/components/global-styles/font-sizes/font-sizes-count.js +46 -45
  103. package/build/components/global-styles/font-sizes/font-sizes-count.js.map +7 -1
  104. package/build/components/global-styles/font-sizes/font-sizes.js +199 -136
  105. package/build/components/global-styles/font-sizes/font-sizes.js.map +7 -1
  106. package/build/components/global-styles/font-sizes/rename-font-size-dialog.js +81 -58
  107. package/build/components/global-styles/font-sizes/rename-font-size-dialog.js.map +7 -1
  108. package/build/components/global-styles/gradients-palette-panel.js +140 -85
  109. package/build/components/global-styles/gradients-palette-panel.js.map +7 -1
  110. package/build/components/global-styles/header.js +51 -48
  111. package/build/components/global-styles/header.js.map +7 -1
  112. package/build/components/global-styles/highlighted-colors.js +48 -40
  113. package/build/components/global-styles/highlighted-colors.js.map +7 -1
  114. package/build/components/global-styles/hooks.js +89 -68
  115. package/build/components/global-styles/hooks.js.map +7 -1
  116. package/build/components/global-styles/icon-with-current-color.js +50 -25
  117. package/build/components/global-styles/icon-with-current-color.js.map +7 -1
  118. package/build/components/global-styles/index.js +36 -11
  119. package/build/components/global-styles/index.js.map +7 -1
  120. package/build/components/global-styles/navigation-button.js +41 -42
  121. package/build/components/global-styles/navigation-button.js.map +7 -1
  122. package/build/components/global-styles/palette.js +82 -73
  123. package/build/components/global-styles/palette.js.map +7 -1
  124. package/build/components/global-styles/preset-colors.js +36 -24
  125. package/build/components/global-styles/preset-colors.js.map +7 -1
  126. package/build/components/global-styles/preview-colors.js +68 -46
  127. package/build/components/global-styles/preview-colors.js.map +7 -1
  128. package/build/components/global-styles/preview-styles.js +182 -136
  129. package/build/components/global-styles/preview-styles.js.map +7 -1
  130. package/build/components/global-styles/preview-typography.js +65 -44
  131. package/build/components/global-styles/preview-typography.js.map +7 -1
  132. package/build/components/global-styles/preview-wrapper.js +70 -85
  133. package/build/components/global-styles/preview-wrapper.js.map +7 -1
  134. package/build/components/global-styles/root-menu.js +53 -52
  135. package/build/components/global-styles/root-menu.js.map +7 -1
  136. package/build/components/global-styles/screen-background.js +54 -35
  137. package/build/components/global-styles/screen-background.js.map +7 -1
  138. package/build/components/global-styles/screen-block-list.js +129 -118
  139. package/build/components/global-styles/screen-block-list.js.map +7 -1
  140. package/build/components/global-styles/screen-block.js +185 -182
  141. package/build/components/global-styles/screen-block.js.map +7 -1
  142. package/build/components/global-styles/screen-color-palette.js +61 -56
  143. package/build/components/global-styles/screen-color-palette.js.map +7 -1
  144. package/build/components/global-styles/screen-colors.js +64 -40
  145. package/build/components/global-styles/screen-colors.js.map +7 -1
  146. package/build/components/global-styles/screen-css.js +80 -50
  147. package/build/components/global-styles/screen-css.js.map +7 -1
  148. package/build/components/global-styles/screen-layout.js +45 -32
  149. package/build/components/global-styles/screen-layout.js.map +7 -1
  150. package/build/components/global-styles/screen-revisions/index.js +144 -116
  151. package/build/components/global-styles/screen-revisions/index.js.map +7 -1
  152. package/build/components/global-styles/screen-revisions/revisions-buttons.js +165 -166
  153. package/build/components/global-styles/screen-revisions/revisions-buttons.js.map +7 -1
  154. package/build/components/global-styles/screen-revisions/use-global-styles-revisions.js +93 -81
  155. package/build/components/global-styles/screen-revisions/use-global-styles-revisions.js.map +7 -1
  156. package/build/components/global-styles/screen-root.js +93 -84
  157. package/build/components/global-styles/screen-root.js.map +7 -1
  158. package/build/components/global-styles/screen-shadows.js +43 -16
  159. package/build/components/global-styles/screen-shadows.js.map +7 -1
  160. package/build/components/global-styles/screen-style-variations.js +64 -44
  161. package/build/components/global-styles/screen-style-variations.js.map +7 -1
  162. package/build/components/global-styles/screen-typography-element.js +146 -93
  163. package/build/components/global-styles/screen-typography-element.js.map +7 -1
  164. package/build/components/global-styles/screen-typography.js +64 -40
  165. package/build/components/global-styles/screen-typography.js.map +7 -1
  166. package/build/components/global-styles/shadow-utils.js +75 -180
  167. package/build/components/global-styles/shadow-utils.js.map +7 -1
  168. package/build/components/global-styles/shadows-edit-panel.js +433 -358
  169. package/build/components/global-styles/shadows-edit-panel.js.map +7 -1
  170. package/build/components/global-styles/shadows-panel.js +178 -131
  171. package/build/components/global-styles/shadows-panel.js.map +7 -1
  172. package/build/components/global-styles/size-control/index.js +66 -76
  173. package/build/components/global-styles/size-control/index.js.map +7 -1
  174. package/build/components/global-styles/style-variations-container.js +114 -102
  175. package/build/components/global-styles/style-variations-container.js.map +7 -1
  176. package/build/components/global-styles/subtitle.js +34 -21
  177. package/build/components/global-styles/subtitle.js.map +7 -1
  178. package/build/components/global-styles/typeset.js +73 -75
  179. package/build/components/global-styles/typeset.js.map +7 -1
  180. package/build/components/global-styles/typography-elements.js +109 -86
  181. package/build/components/global-styles/typography-elements.js.map +7 -1
  182. package/build/components/global-styles/typography-example.js +66 -65
  183. package/build/components/global-styles/typography-example.js.map +7 -1
  184. package/build/components/global-styles/typography-panel.js +57 -39
  185. package/build/components/global-styles/typography-panel.js.map +7 -1
  186. package/build/components/global-styles/typography-preview.js +73 -53
  187. package/build/components/global-styles/typography-preview.js.map +7 -1
  188. package/build/components/global-styles/ui.js +282 -314
  189. package/build/components/global-styles/ui.js.map +7 -1
  190. package/build/components/global-styles/utils.js +45 -31
  191. package/build/components/global-styles/utils.js.map +7 -1
  192. package/build/components/global-styles/variations/variation.js +90 -74
  193. package/build/components/global-styles/variations/variation.js.map +7 -1
  194. package/build/components/global-styles/variations/variations-color.js +52 -41
  195. package/build/components/global-styles/variations/variations-color.js.map +7 -1
  196. package/build/components/global-styles/variations/variations-panel.js +61 -51
  197. package/build/components/global-styles/variations/variations-panel.js.map +7 -1
  198. package/build/components/global-styles/variations/variations-typography.js +69 -49
  199. package/build/components/global-styles/variations/variations-typography.js.map +7 -1
  200. package/build/components/global-styles-renderer/index.js +39 -33
  201. package/build/components/global-styles-renderer/index.js.map +7 -1
  202. package/build/components/global-styles-sidebar/default-sidebar.js +53 -40
  203. package/build/components/global-styles-sidebar/default-sidebar.js.map +7 -1
  204. package/build/components/global-styles-sidebar/index.js +164 -141
  205. package/build/components/global-styles-sidebar/index.js.map +7 -1
  206. package/build/components/layout/animation.js +53 -78
  207. package/build/components/layout/animation.js.map +7 -1
  208. package/build/components/layout/hooks.js +40 -35
  209. package/build/components/layout/hooks.js.map +7 -1
  210. package/build/components/layout/index.js +220 -199
  211. package/build/components/layout/index.js.map +7 -1
  212. package/build/components/media/index.js +31 -26
  213. package/build/components/media/index.js.map +7 -1
  214. package/build/components/more-menu/index.js +45 -28
  215. package/build/components/more-menu/index.js.map +7 -1
  216. package/build/components/more-menu/site-export.js +69 -44
  217. package/build/components/more-menu/site-export.js.map +7 -1
  218. package/build/components/more-menu/welcome-guide-menu-item.js +29 -21
  219. package/build/components/more-menu/welcome-guide-menu-item.js.map +7 -1
  220. package/build/components/page-patterns/actions.js +82 -0
  221. package/build/components/page-patterns/actions.js.map +7 -0
  222. package/build/components/page-patterns/delete-category-menu-item.js +94 -82
  223. package/build/components/page-patterns/delete-category-menu-item.js.map +7 -1
  224. package/build/components/page-patterns/fields.js +135 -123
  225. package/build/components/page-patterns/fields.js.map +7 -1
  226. package/build/components/page-patterns/index.js +182 -148
  227. package/build/components/page-patterns/index.js.map +7 -1
  228. package/build/components/page-patterns/rename-category-menu-item.js +67 -62
  229. package/build/components/page-patterns/rename-category-menu-item.js.map +7 -1
  230. package/build/components/page-patterns/search-items.js +65 -89
  231. package/build/components/page-patterns/search-items.js.map +7 -1
  232. package/build/components/page-patterns/use-pattern-settings.js +45 -35
  233. package/build/components/page-patterns/use-pattern-settings.js.map +7 -1
  234. package/build/components/page-patterns/use-patterns.js +266 -200
  235. package/build/components/page-patterns/use-patterns.js.map +7 -1
  236. package/build/components/page-patterns/utils.js +27 -7
  237. package/build/components/page-patterns/utils.js.map +7 -1
  238. package/build/components/page-templates/fields.js +165 -159
  239. package/build/components/page-templates/fields.js.map +7 -1
  240. package/build/components/page-templates/hooks.js +66 -64
  241. package/build/components/page-templates/hooks.js.map +7 -1
  242. package/build/components/page-templates/index.js +211 -207
  243. package/build/components/page-templates/index.js.map +7 -1
  244. package/build/components/page-templates/view-utils.js +67 -0
  245. package/build/components/page-templates/view-utils.js.map +7 -0
  246. package/build/components/pagination/index.js +119 -82
  247. package/build/components/pagination/index.js.map +7 -1
  248. package/build/components/plugin-template-setting-panel/index.js +49 -56
  249. package/build/components/plugin-template-setting-panel/index.js.map +7 -1
  250. package/build/components/post-edit/index.js +171 -144
  251. package/build/components/post-edit/index.js.map +7 -1
  252. package/build/components/post-list/index.js +230 -301
  253. package/build/components/post-list/index.js.map +7 -1
  254. package/build/components/post-list/view-utils.js +167 -0
  255. package/build/components/post-list/view-utils.js.map +7 -0
  256. package/build/components/posts-app/index.js +44 -32
  257. package/build/components/posts-app/index.js.map +7 -1
  258. package/build/components/posts-app-routes/index.js +36 -25
  259. package/build/components/posts-app-routes/index.js.map +7 -1
  260. package/build/components/posts-app-routes/post-item.js +54 -35
  261. package/build/components/posts-app-routes/post-item.js.map +7 -1
  262. package/build/components/posts-app-routes/posts.js +91 -76
  263. package/build/components/posts-app-routes/posts.js.map +7 -1
  264. package/build/components/resizable-frame/index.js +200 -224
  265. package/build/components/resizable-frame/index.js.map +7 -1
  266. package/build/components/revisions/index.js +102 -71
  267. package/build/components/revisions/index.js.map +7 -1
  268. package/build/components/routes/use-title.js +45 -35
  269. package/build/components/routes/use-title.js.map +7 -1
  270. package/build/components/save-button/index.js +113 -111
  271. package/build/components/save-button/index.js.map +7 -1
  272. package/build/components/save-hub/index.js +52 -40
  273. package/build/components/save-hub/index.js.map +7 -1
  274. package/build/components/save-keyboard-shortcut/index.js +46 -52
  275. package/build/components/save-keyboard-shortcut/index.js.map +7 -1
  276. package/build/components/save-panel/index.js +155 -136
  277. package/build/components/save-panel/index.js.map +7 -1
  278. package/build/components/sidebar/index.js +81 -79
  279. package/build/components/sidebar/index.js.map +7 -1
  280. package/build/components/sidebar-button/index.js +43 -22
  281. package/build/components/sidebar-button/index.js.map +7 -1
  282. package/build/components/sidebar-dataviews/dataview-item.js +68 -55
  283. package/build/components/sidebar-dataviews/dataview-item.js.map +7 -1
  284. package/build/components/sidebar-dataviews/index.js +68 -54
  285. package/build/components/sidebar-dataviews/index.js.map +7 -1
  286. package/build/components/sidebar-global-styles-wrapper/index.js +125 -111
  287. package/build/components/sidebar-global-styles-wrapper/index.js.map +7 -1
  288. package/build/components/sidebar-navigation-item/index.js +79 -62
  289. package/build/components/sidebar-navigation-item/index.js.map +7 -1
  290. package/build/components/sidebar-navigation-screen/index.js +129 -104
  291. package/build/components/sidebar-navigation-screen/index.js.map +7 -1
  292. package/build/components/sidebar-navigation-screen-details-footer/index.js +63 -53
  293. package/build/components/sidebar-navigation-screen-details-footer/index.js.map +7 -1
  294. package/build/components/sidebar-navigation-screen-global-styles/content.js +50 -33
  295. package/build/components/sidebar-navigation-screen-global-styles/content.js.map +7 -1
  296. package/build/components/sidebar-navigation-screen-global-styles/index.js +94 -81
  297. package/build/components/sidebar-navigation-screen-global-styles/index.js.map +7 -1
  298. package/build/components/sidebar-navigation-screen-main/index.js +141 -90
  299. package/build/components/sidebar-navigation-screen-main/index.js.map +7 -1
  300. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js +40 -29
  301. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js.map +7 -1
  302. package/build/components/sidebar-navigation-screen-navigation-menu/index.js +124 -91
  303. package/build/components/sidebar-navigation-screen-navigation-menu/index.js.map +7 -1
  304. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js +116 -83
  305. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +7 -1
  306. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +57 -48
  307. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js.map +7 -1
  308. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +80 -66
  309. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +7 -1
  310. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +64 -38
  311. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +7 -1
  312. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +125 -96
  313. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +7 -1
  314. package/build/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js +33 -19
  315. package/build/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js.map +7 -1
  316. package/build/components/sidebar-navigation-screen-navigation-menus/constants.js +30 -16
  317. package/build/components/sidebar-navigation-screen-navigation-menus/constants.js.map +7 -1
  318. package/build/components/sidebar-navigation-screen-navigation-menus/index.js +119 -105
  319. package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +7 -1
  320. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +130 -121
  321. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +7 -1
  322. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +106 -88
  323. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +7 -1
  324. package/build/components/sidebar-navigation-screen-patterns/category-item.js +44 -21
  325. package/build/components/sidebar-navigation-screen-patterns/category-item.js.map +7 -1
  326. package/build/components/sidebar-navigation-screen-patterns/index.js +129 -106
  327. package/build/components/sidebar-navigation-screen-patterns/index.js.map +7 -1
  328. package/build/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js +36 -25
  329. package/build/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js.map +7 -1
  330. package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +81 -70
  331. package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +7 -1
  332. package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +42 -32
  333. package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.js.map +7 -1
  334. package/build/components/sidebar-navigation-screen-patterns/use-theme-patterns.js +41 -28
  335. package/build/components/sidebar-navigation-screen-patterns/use-theme-patterns.js.map +7 -1
  336. package/build/components/sidebar-navigation-screen-templates-browse/content.js +95 -76
  337. package/build/components/sidebar-navigation-screen-templates-browse/content.js.map +7 -1
  338. package/build/components/sidebar-navigation-screen-templates-browse/index.js +48 -27
  339. package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +7 -1
  340. package/build/components/sidebar-navigation-screen-unsupported/index.js +28 -20
  341. package/build/components/sidebar-navigation-screen-unsupported/index.js.map +7 -1
  342. package/build/components/site-editor-routes/home.js +50 -32
  343. package/build/components/site-editor-routes/home.js.map +7 -1
  344. package/build/components/site-editor-routes/index.js +62 -36
  345. package/build/components/site-editor-routes/index.js.map +7 -1
  346. package/build/components/site-editor-routes/navigation-item.js +55 -49
  347. package/build/components/site-editor-routes/navigation-item.js.map +7 -1
  348. package/build/components/site-editor-routes/navigation.js +55 -49
  349. package/build/components/site-editor-routes/navigation.js.map +7 -1
  350. package/build/components/site-editor-routes/notfound.js +54 -34
  351. package/build/components/site-editor-routes/notfound.js.map +7 -1
  352. package/build/components/site-editor-routes/page-item.js +58 -41
  353. package/build/components/site-editor-routes/page-item.js.map +7 -1
  354. package/build/components/site-editor-routes/pages.js +96 -86
  355. package/build/components/site-editor-routes/pages.js.map +7 -1
  356. package/build/components/site-editor-routes/pattern-item.js +48 -26
  357. package/build/components/site-editor-routes/pattern-item.js.map +7 -1
  358. package/build/components/site-editor-routes/patterns.js +51 -36
  359. package/build/components/site-editor-routes/patterns.js.map +7 -1
  360. package/build/components/site-editor-routes/stylebook.js +60 -43
  361. package/build/components/site-editor-routes/stylebook.js.map +7 -1
  362. package/build/components/site-editor-routes/styles.js +58 -46
  363. package/build/components/site-editor-routes/styles.js.map +7 -1
  364. package/build/components/site-editor-routes/template-item.js +54 -34
  365. package/build/components/site-editor-routes/template-item.js.map +7 -1
  366. package/build/components/site-editor-routes/template-part-item.js +45 -21
  367. package/build/components/site-editor-routes/template-part-item.js.map +7 -1
  368. package/build/components/site-editor-routes/templates.js +69 -44
  369. package/build/components/site-editor-routes/templates.js.map +7 -1
  370. package/build/components/site-editor-routes/utils.js +27 -13
  371. package/build/components/site-editor-routes/utils.js.map +7 -1
  372. package/build/components/site-hub/index.js +233 -222
  373. package/build/components/site-hub/index.js.map +7 -1
  374. package/build/components/site-icon/index.js +61 -49
  375. package/build/components/site-icon/index.js.map +7 -1
  376. package/build/components/style-book/categories.js +61 -52
  377. package/build/components/style-book/categories.js.map +7 -1
  378. package/build/components/style-book/color-examples.js +54 -40
  379. package/build/components/style-book/color-examples.js.map +7 -1
  380. package/build/components/style-book/constants.js +218 -144
  381. package/build/components/style-book/constants.js.map +7 -1
  382. package/build/components/style-book/duotone-examples.js +54 -40
  383. package/build/components/style-book/duotone-examples.js.map +7 -1
  384. package/build/components/style-book/examples.js +145 -120
  385. package/build/components/style-book/examples.js.map +7 -1
  386. package/build/components/style-book/index.js +454 -409
  387. package/build/components/style-book/index.js.map +7 -1
  388. package/build/components/style-book/types.js +16 -5
  389. package/build/components/style-book/types.js.map +7 -1
  390. package/build/components/welcome-guide/editor.js +87 -60
  391. package/build/components/welcome-guide/editor.js.map +7 -1
  392. package/build/components/welcome-guide/image.js +34 -22
  393. package/build/components/welcome-guide/image.js.map +7 -1
  394. package/build/components/welcome-guide/index.js +44 -21
  395. package/build/components/welcome-guide/index.js.map +7 -1
  396. package/build/components/welcome-guide/page.js +76 -52
  397. package/build/components/welcome-guide/page.js.map +7 -1
  398. package/build/components/welcome-guide/styles.js +135 -102
  399. package/build/components/welcome-guide/styles.js.map +7 -1
  400. package/build/components/welcome-guide/template.js +71 -59
  401. package/build/components/welcome-guide/template.js.map +7 -1
  402. package/build/deprecated.js +56 -46
  403. package/build/deprecated.js.map +7 -1
  404. package/build/hooks/commands/use-common-commands.js +117 -119
  405. package/build/hooks/commands/use-common-commands.js.map +7 -1
  406. package/build/hooks/commands/use-set-command-context.js +40 -50
  407. package/build/hooks/commands/use-set-command-context.js.map +7 -1
  408. package/build/hooks/index.js +2 -3
  409. package/build/hooks/index.js.map +7 -1
  410. package/build/hooks/push-changes-to-global-styles/index.js +236 -251
  411. package/build/hooks/push-changes-to-global-styles/index.js.map +7 -1
  412. package/build/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +78 -111
  413. package/build/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js.map +7 -1
  414. package/build/index.js +87 -112
  415. package/build/index.js.map +7 -1
  416. package/build/lock-unlock.js +31 -14
  417. package/build/lock-unlock.js.map +7 -1
  418. package/build/posts.js +67 -63
  419. package/build/posts.js.map +7 -1
  420. package/build/store/actions.js +199 -365
  421. package/build/store/actions.js.map +7 -1
  422. package/build/store/constants.js +27 -11
  423. package/build/store/constants.js.map +7 -1
  424. package/build/store/index.js +52 -30
  425. package/build/store/index.js.map +7 -1
  426. package/build/store/private-actions.js +34 -19
  427. package/build/store/private-actions.js.map +7 -1
  428. package/build/store/private-selectors.js +28 -13
  429. package/build/store/private-selectors.js.map +7 -1
  430. package/build/store/reducer.js +42 -57
  431. package/build/store/reducer.js.map +7 -1
  432. package/build/store/selectors.js +205 -301
  433. package/build/store/selectors.js.map +7 -1
  434. package/build/utils/constants.js +94 -53
  435. package/build/utils/constants.js.map +7 -1
  436. package/build/utils/get-filtered-template-parts.js +36 -42
  437. package/build/utils/get-filtered-template-parts.js.map +7 -1
  438. package/build/utils/is-previewing-theme.js +31 -13
  439. package/build/utils/is-previewing-theme.js.map +7 -1
  440. package/build/utils/is-template-removable.js +24 -17
  441. package/build/utils/is-template-removable.js.map +7 -1
  442. package/build/utils/is-template-revertable.js +24 -19
  443. package/build/utils/is-template-revertable.js.map +7 -1
  444. package/build/utils/set-nested-value.js +24 -25
  445. package/build/utils/set-nested-value.js.map +7 -1
  446. package/build/utils/template-part-create.js +1 -1
  447. package/build/utils/template-part-create.js.map +7 -1
  448. package/build/utils/use-activate-theme.js +40 -45
  449. package/build/utils/use-activate-theme.js.map +7 -1
  450. package/build/utils/use-actual-current-theme.js +47 -25
  451. package/build/utils/use-actual-current-theme.js.map +7 -1
  452. package/build-module/components/add-new-pattern/index.js +133 -127
  453. package/build-module/components/add-new-pattern/index.js.map +7 -1
  454. package/build-module/components/add-new-post/index.js +100 -82
  455. package/build-module/components/add-new-post/index.js.map +7 -1
  456. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js +63 -51
  457. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js.map +7 -1
  458. package/build-module/components/add-new-template/add-custom-template-modal-content.js +269 -196
  459. package/build-module/components/add-new-template/add-custom-template-modal-content.js.map +7 -1
  460. package/build-module/components/add-new-template/index.js +289 -219
  461. package/build-module/components/add-new-template/index.js.map +7 -1
  462. package/build-module/components/add-new-template/utils.js +430 -432
  463. package/build-module/components/add-new-template/utils.js.map +7 -1
  464. package/build-module/components/app/index.js +41 -51
  465. package/build-module/components/app/index.js.map +7 -1
  466. package/build-module/components/block-editor/use-editor-iframe-props.js +33 -58
  467. package/build-module/components/block-editor/use-editor-iframe-props.js.map +7 -1
  468. package/build-module/components/block-editor/use-navigate-to-entity-record.js +17 -18
  469. package/build-module/components/block-editor/use-navigate-to-entity-record.js.map +7 -1
  470. package/build-module/components/block-editor/use-site-editor-settings.js +28 -41
  471. package/build-module/components/block-editor/use-site-editor-settings.js.map +7 -1
  472. package/build-module/components/canvas-loader/index.js +25 -50
  473. package/build-module/components/canvas-loader/index.js.map +7 -1
  474. package/build-module/components/dataviews-actions/index.js +75 -78
  475. package/build-module/components/dataviews-actions/index.js.map +7 -1
  476. package/build-module/components/editor/index.js +261 -220
  477. package/build-module/components/editor/index.js.map +7 -1
  478. package/build-module/components/editor/site-preview.js +38 -38
  479. package/build-module/components/editor/site-preview.js.map +7 -1
  480. package/build-module/components/editor/use-adapt-editor-to-canvas.js +25 -24
  481. package/build-module/components/editor/use-adapt-editor-to-canvas.js.map +7 -1
  482. package/build-module/components/editor/use-editor-title.js +49 -53
  483. package/build-module/components/editor/use-editor-title.js.map +7 -1
  484. package/build-module/components/editor/use-resolve-edited-entity.js +89 -129
  485. package/build-module/components/editor/use-resolve-edited-entity.js.map +7 -1
  486. package/build-module/components/editor-canvas-container/index.js +79 -80
  487. package/build-module/components/editor-canvas-container/index.js.map +7 -1
  488. package/build-module/components/global-styles/background-panel.js +25 -35
  489. package/build-module/components/global-styles/background-panel.js.map +7 -1
  490. package/build-module/components/global-styles/block-preview-panel.js +36 -43
  491. package/build-module/components/global-styles/block-preview-panel.js.map +7 -1
  492. package/build-module/components/global-styles/color-indicator-wrapper.js +19 -20
  493. package/build-module/components/global-styles/color-indicator-wrapper.js.map +7 -1
  494. package/build-module/components/global-styles/color-palette-panel.js +105 -74
  495. package/build-module/components/global-styles/color-palette-panel.js.map +7 -1
  496. package/build-module/components/global-styles/confirm-reset-shadow-dialog.js +20 -17
  497. package/build-module/components/global-styles/confirm-reset-shadow-dialog.js.map +7 -1
  498. package/build-module/components/global-styles/dimensions-panel.js +26 -34
  499. package/build-module/components/global-styles/dimensions-panel.js.map +7 -1
  500. package/build-module/components/global-styles/font-families.js +86 -93
  501. package/build-module/components/global-styles/font-families.js.map +7 -1
  502. package/build-module/components/global-styles/font-family-item.js +26 -37
  503. package/build-module/components/global-styles/font-family-item.js.map +7 -1
  504. package/build-module/components/global-styles/font-library-modal/collection-font-variant.js +26 -32
  505. package/build-module/components/global-styles/font-library-modal/collection-font-variant.js.map +7 -1
  506. package/build-module/components/global-styles/font-library-modal/context.js +203 -224
  507. package/build-module/components/global-styles/font-library-modal/context.js.map +7 -1
  508. package/build-module/components/global-styles/font-library-modal/font-card.js +48 -52
  509. package/build-module/components/global-styles/font-library-modal/font-card.js.map +7 -1
  510. package/build-module/components/global-styles/font-library-modal/font-collection.js +397 -302
  511. package/build-module/components/global-styles/font-library-modal/font-collection.js.map +7 -1
  512. package/build-module/components/global-styles/font-library-modal/font-demo.js +32 -38
  513. package/build-module/components/global-styles/font-library-modal/font-demo.js.map +7 -1
  514. package/build-module/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js +41 -39
  515. package/build-module/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js.map +7 -1
  516. package/build-module/components/global-styles/font-library-modal/index.js +65 -81
  517. package/build-module/components/global-styles/font-library-modal/index.js.map +7 -1
  518. package/build-module/components/global-styles/font-library-modal/installed-fonts.js +354 -243
  519. package/build-module/components/global-styles/font-library-modal/installed-fonts.js.map +7 -1
  520. package/build-module/components/global-styles/font-library-modal/library-font-details.js +35 -36
  521. package/build-module/components/global-styles/font-library-modal/library-font-details.js.map +7 -1
  522. package/build-module/components/global-styles/font-library-modal/library-font-variant.js +35 -42
  523. package/build-module/components/global-styles/font-library-modal/library-font-variant.js.map +7 -1
  524. package/build-module/components/global-styles/font-library-modal/resolvers.js +27 -20
  525. package/build-module/components/global-styles/font-library-modal/resolvers.js.map +7 -1
  526. package/build-module/components/global-styles/font-library-modal/upload-fonts.js +111 -135
  527. package/build-module/components/global-styles/font-library-modal/upload-fonts.js.map +7 -1
  528. package/build-module/components/global-styles/font-library-modal/utils/constants.js +21 -19
  529. package/build-module/components/global-styles/font-library-modal/utils/constants.js.map +7 -1
  530. package/build-module/components/global-styles/font-library-modal/utils/filter-fonts.js +13 -24
  531. package/build-module/components/global-styles/font-library-modal/utils/filter-fonts.js.map +7 -1
  532. package/build-module/components/global-styles/font-library-modal/utils/fonts-outline.js +20 -10
  533. package/build-module/components/global-styles/font-library-modal/utils/fonts-outline.js.map +7 -1
  534. package/build-module/components/global-styles/font-library-modal/utils/index.js +102 -154
  535. package/build-module/components/global-styles/font-library-modal/utils/index.js.map +7 -1
  536. package/build-module/components/global-styles/font-library-modal/utils/make-families-from-faces.js +8 -14
  537. package/build-module/components/global-styles/font-library-modal/utils/make-families-from-faces.js.map +7 -1
  538. package/build-module/components/global-styles/font-library-modal/utils/preview-styles.js +34 -71
  539. package/build-module/components/global-styles/font-library-modal/utils/preview-styles.js.map +7 -1
  540. package/build-module/components/global-styles/font-library-modal/utils/sort-font-faces.js +11 -13
  541. package/build-module/components/global-styles/font-library-modal/utils/sort-font-faces.js.map +7 -1
  542. package/build-module/components/global-styles/font-library-modal/utils/toggleFont.js +22 -69
  543. package/build-module/components/global-styles/font-library-modal/utils/toggleFont.js.map +7 -1
  544. package/build-module/components/global-styles/font-sizes/confirm-delete-font-size-dialog.js +26 -18
  545. package/build-module/components/global-styles/font-sizes/confirm-delete-font-size-dialog.js.map +7 -1
  546. package/build-module/components/global-styles/font-sizes/confirm-reset-font-sizes-dialog.js +20 -17
  547. package/build-module/components/global-styles/font-sizes/confirm-reset-font-sizes-dialog.js.map +7 -1
  548. package/build-module/components/global-styles/font-sizes/font-size-preview.js +26 -29
  549. package/build-module/components/global-styles/font-sizes/font-size-preview.js.map +7 -1
  550. package/build-module/components/global-styles/font-sizes/font-size.js +185 -160
  551. package/build-module/components/global-styles/font-sizes/font-size.js.map +7 -1
  552. package/build-module/components/global-styles/font-sizes/font-sizes-count.js +23 -39
  553. package/build-module/components/global-styles/font-sizes/font-sizes-count.js.map +7 -1
  554. package/build-module/components/global-styles/font-sizes/font-sizes.js +184 -128
  555. package/build-module/components/global-styles/font-sizes/font-sizes.js.map +7 -1
  556. package/build-module/components/global-styles/font-sizes/rename-font-size-dialog.js +68 -52
  557. package/build-module/components/global-styles/font-sizes/rename-font-size-dialog.js.map +7 -1
  558. package/build-module/components/global-styles/gradients-palette-panel.js +117 -79
  559. package/build-module/components/global-styles/gradients-palette-panel.js.map +7 -1
  560. package/build-module/components/global-styles/header.js +40 -43
  561. package/build-module/components/global-styles/header.js.map +7 -1
  562. package/build-module/components/global-styles/highlighted-colors.js +31 -36
  563. package/build-module/components/global-styles/highlighted-colors.js.map +7 -1
  564. package/build-module/components/global-styles/hooks.js +56 -61
  565. package/build-module/components/global-styles/hooks.js.map +7 -1
  566. package/build-module/components/global-styles/icon-with-current-color.js +18 -19
  567. package/build-module/components/global-styles/icon-with-current-color.js.map +7 -1
  568. package/build-module/components/global-styles/index.js +5 -2
  569. package/build-module/components/global-styles/index.js.map +7 -1
  570. package/build-module/components/global-styles/navigation-button.js +23 -37
  571. package/build-module/components/global-styles/navigation-button.js.map +7 -1
  572. package/build-module/components/global-styles/palette.js +61 -67
  573. package/build-module/components/global-styles/palette.js.map +7 -1
  574. package/build-module/components/global-styles/preset-colors.js +19 -20
  575. package/build-module/components/global-styles/preset-colors.js.map +7 -1
  576. package/build-module/components/global-styles/preview-colors.js +43 -40
  577. package/build-module/components/global-styles/preview-colors.js.map +7 -1
  578. package/build-module/components/global-styles/preview-styles.js +158 -130
  579. package/build-module/components/global-styles/preview-styles.js.map +7 -1
  580. package/build-module/components/global-styles/preview-typography.js +37 -38
  581. package/build-module/components/global-styles/preview-typography.js.map +7 -1
  582. package/build-module/components/global-styles/preview-wrapper.js +51 -75
  583. package/build-module/components/global-styles/preview-wrapper.js.map +7 -1
  584. package/build-module/components/global-styles/root-menu.js +38 -44
  585. package/build-module/components/global-styles/root-menu.js.map +7 -1
  586. package/build-module/components/global-styles/screen-background.js +26 -29
  587. package/build-module/components/global-styles/screen-background.js.map +7 -1
  588. package/build-module/components/global-styles/screen-block-list.js +105 -105
  589. package/build-module/components/global-styles/screen-block-list.js.map +7 -1
  590. package/build-module/components/global-styles/screen-block.js +156 -169
  591. package/build-module/components/global-styles/screen-block.js.map +7 -1
  592. package/build-module/components/global-styles/screen-color-palette.js +33 -50
  593. package/build-module/components/global-styles/screen-color-palette.js.map +7 -1
  594. package/build-module/components/global-styles/screen-colors.js +35 -33
  595. package/build-module/components/global-styles/screen-colors.js.map +7 -1
  596. package/build-module/components/global-styles/screen-css.js +52 -44
  597. package/build-module/components/global-styles/screen-css.js.map +7 -1
  598. package/build-module/components/global-styles/screen-layout.js +17 -26
  599. package/build-module/components/global-styles/screen-layout.js.map +7 -1
  600. package/build-module/components/global-styles/screen-revisions/index.js +117 -105
  601. package/build-module/components/global-styles/screen-revisions/index.js.map +7 -1
  602. package/build-module/components/global-styles/screen-revisions/revisions-buttons.js +145 -158
  603. package/build-module/components/global-styles/screen-revisions/revisions-buttons.js.map +7 -1
  604. package/build-module/components/global-styles/screen-revisions/use-global-styles-revisions.js +74 -75
  605. package/build-module/components/global-styles/screen-revisions/use-global-styles-revisions.js.map +7 -1
  606. package/build-module/components/global-styles/screen-root.js +74 -77
  607. package/build-module/components/global-styles/screen-root.js.map +7 -1
  608. package/build-module/components/global-styles/screen-shadows.js +12 -11
  609. package/build-module/components/global-styles/screen-shadows.js.map +7 -1
  610. package/build-module/components/global-styles/screen-style-variations.js +38 -37
  611. package/build-module/components/global-styles/screen-style-variations.js.map +7 -1
  612. package/build-module/components/global-styles/screen-typography-element.js +122 -87
  613. package/build-module/components/global-styles/screen-typography-element.js.map +7 -1
  614. package/build-module/components/global-styles/screen-typography.js +36 -34
  615. package/build-module/components/global-styles/screen-typography.js.map +7 -1
  616. package/build-module/components/global-styles/shadow-utils.js +53 -176
  617. package/build-module/components/global-styles/shadow-utils.js.map +7 -1
  618. package/build-module/components/global-styles/shadows-edit-panel.js +426 -344
  619. package/build-module/components/global-styles/shadows-edit-panel.js.map +7 -1
  620. package/build-module/components/global-styles/shadows-panel.js +159 -124
  621. package/build-module/components/global-styles/shadows-panel.js.map +7 -1
  622. package/build-module/components/global-styles/size-control/index.js +57 -70
  623. package/build-module/components/global-styles/size-control/index.js.map +7 -1
  624. package/build-module/components/global-styles/style-variations-container.js +85 -95
  625. package/build-module/components/global-styles/style-variations-container.js.map +7 -1
  626. package/build-module/components/global-styles/subtitle.js +16 -16
  627. package/build-module/components/global-styles/subtitle.js.map +7 -1
  628. package/build-module/components/global-styles/typeset.js +50 -65
  629. package/build-module/components/global-styles/typeset.js.map +7 -1
  630. package/build-module/components/global-styles/typography-elements.js +86 -80
  631. package/build-module/components/global-styles/typography-elements.js.map +7 -1
  632. package/build-module/components/global-styles/typography-example.js +45 -57
  633. package/build-module/components/global-styles/typography-example.js.map +7 -1
  634. package/build-module/components/global-styles/typography-panel.js +38 -33
  635. package/build-module/components/global-styles/typography-panel.js.map +7 -1
  636. package/build-module/components/global-styles/typography-preview.js +55 -48
  637. package/build-module/components/global-styles/typography-preview.js.map +7 -1
  638. package/build-module/components/global-styles/ui.js +252 -295
  639. package/build-module/components/global-styles/ui.js.map +7 -1
  640. package/build-module/components/global-styles/utils.js +24 -28
  641. package/build-module/components/global-styles/utils.js.map +7 -1
  642. package/build-module/components/global-styles/variations/variation.js +59 -65
  643. package/build-module/components/global-styles/variations/variation.js.map +7 -1
  644. package/build-module/components/global-styles/variations/variations-color.js +26 -34
  645. package/build-module/components/global-styles/variations/variations-color.js.map +7 -1
  646. package/build-module/components/global-styles/variations/variations-panel.js +39 -46
  647. package/build-module/components/global-styles/variations/variations-panel.js.map +7 -1
  648. package/build-module/components/global-styles/variations/variations-typography.js +43 -42
  649. package/build-module/components/global-styles/variations/variations-typography.js.map +7 -1
  650. package/build-module/components/global-styles-renderer/index.js +16 -27
  651. package/build-module/components/global-styles-renderer/index.js.map +7 -1
  652. package/build-module/components/global-styles-sidebar/default-sidebar.js +36 -36
  653. package/build-module/components/global-styles-sidebar/default-sidebar.js.map +7 -1
  654. package/build-module/components/global-styles-sidebar/index.js +137 -133
  655. package/build-module/components/global-styles-sidebar/index.js.map +7 -1
  656. package/build-module/components/layout/animation.js +31 -69
  657. package/build-module/components/layout/animation.js.map +7 -1
  658. package/build-module/components/layout/hooks.js +16 -28
  659. package/build-module/components/layout/hooks.js.map +7 -1
  660. package/build-module/components/layout/index.js +199 -183
  661. package/build-module/components/layout/index.js.map +7 -1
  662. package/build-module/components/media/index.js +13 -21
  663. package/build-module/components/media/index.js.map +7 -1
  664. package/build-module/components/more-menu/index.js +18 -23
  665. package/build-module/components/more-menu/index.js.map +7 -1
  666. package/build-module/components/more-menu/site-export.js +41 -38
  667. package/build-module/components/more-menu/site-export.js.map +7 -1
  668. package/build-module/components/more-menu/welcome-guide-menu-item.js +12 -17
  669. package/build-module/components/more-menu/welcome-guide-menu-item.js.map +7 -1
  670. package/build-module/components/page-patterns/actions.js +52 -0
  671. package/build-module/components/page-patterns/actions.js.map +7 -0
  672. package/build-module/components/page-patterns/delete-category-menu-item.js +78 -76
  673. package/build-module/components/page-patterns/delete-category-menu-item.js.map +7 -1
  674. package/build-module/components/page-patterns/fields.js +103 -112
  675. package/build-module/components/page-patterns/fields.js.map +7 -1
  676. package/build-module/components/page-patterns/index.js +144 -120
  677. package/build-module/components/page-patterns/index.js.map +7 -1
  678. package/build-module/components/page-patterns/rename-category-menu-item.js +37 -53
  679. package/build-module/components/page-patterns/rename-category-menu-item.js.map +7 -1
  680. package/build-module/components/page-patterns/search-items.js +43 -77
  681. package/build-module/components/page-patterns/search-items.js.map +7 -1
  682. package/build-module/components/page-patterns/use-pattern-settings.js +27 -30
  683. package/build-module/components/page-patterns/use-pattern-settings.js.map +7 -1
  684. package/build-module/components/page-patterns/use-patterns.js +249 -192
  685. package/build-module/components/page-patterns/use-patterns.js.map +7 -1
  686. package/build-module/components/page-patterns/utils.js +5 -2
  687. package/build-module/components/page-patterns/utils.js.map +7 -1
  688. package/build-module/components/page-templates/fields.js +132 -147
  689. package/build-module/components/page-templates/fields.js.map +7 -1
  690. package/build-module/components/page-templates/hooks.js +44 -55
  691. package/build-module/components/page-templates/hooks.js.map +7 -1
  692. package/build-module/components/page-templates/index.js +189 -194
  693. package/build-module/components/page-templates/index.js.map +7 -1
  694. package/build-module/components/page-templates/view-utils.js +42 -0
  695. package/build-module/components/page-templates/view-utils.js.map +7 -0
  696. package/build-module/components/pagination/index.js +96 -77
  697. package/build-module/components/pagination/index.js.map +7 -1
  698. package/build-module/components/plugin-template-setting-panel/index.js +21 -50
  699. package/build-module/components/plugin-template-setting-panel/index.js.map +7 -1
  700. package/build-module/components/post-edit/index.js +136 -135
  701. package/build-module/components/post-edit/index.js.map +7 -1
  702. package/build-module/components/post-list/index.js +205 -291
  703. package/build-module/components/post-list/index.js.map +7 -1
  704. package/build-module/components/post-list/view-utils.js +149 -0
  705. package/build-module/components/post-list/view-utils.js.map +7 -0
  706. package/build-module/components/posts-app/index.js +15 -25
  707. package/build-module/components/posts-app/index.js.map +7 -1
  708. package/build-module/components/posts-app-routes/index.js +12 -18
  709. package/build-module/components/posts-app-routes/index.js.map +7 -1
  710. package/build-module/components/posts-app-routes/post-item.js +22 -29
  711. package/build-module/components/posts-app-routes/post-item.js.map +7 -1
  712. package/build-module/components/posts-app-routes/posts.js +59 -70
  713. package/build-module/components/posts-app-routes/posts.js.map +7 -1
  714. package/build-module/components/resizable-frame/index.js +169 -211
  715. package/build-module/components/resizable-frame/index.js.map +7 -1
  716. package/build-module/components/revisions/index.js +78 -64
  717. package/build-module/components/revisions/index.js.map +7 -1
  718. package/build-module/components/routes/use-title.js +25 -28
  719. package/build-module/components/routes/use-title.js.map +7 -1
  720. package/build-module/components/save-button/index.js +99 -104
  721. package/build-module/components/save-button/index.js.map +7 -1
  722. package/build-module/components/save-hub/index.js +23 -33
  723. package/build-module/components/save-hub/index.js.map +7 -1
  724. package/build-module/components/save-keyboard-shortcut/index.js +31 -47
  725. package/build-module/components/save-keyboard-shortcut/index.js.map +7 -1
  726. package/build-module/components/save-panel/index.js +125 -124
  727. package/build-module/components/save-panel/index.js.map +7 -1
  728. package/build-module/components/sidebar/index.js +47 -65
  729. package/build-module/components/sidebar/index.js.map +7 -1
  730. package/build-module/components/sidebar-button/index.js +16 -17
  731. package/build-module/components/sidebar-button/index.js.map +7 -1
  732. package/build-module/components/sidebar-dataviews/dataview-item.js +41 -50
  733. package/build-module/components/sidebar-dataviews/dataview-item.js.map +7 -1
  734. package/build-module/components/sidebar-dataviews/index.js +40 -48
  735. package/build-module/components/sidebar-dataviews/index.js.map +7 -1
  736. package/build-module/components/sidebar-global-styles-wrapper/index.js +100 -104
  737. package/build-module/components/sidebar-global-styles-wrapper/index.js.map +7 -1
  738. package/build-module/components/sidebar-navigation-item/index.js +56 -57
  739. package/build-module/components/sidebar-navigation-item/index.js.map +7 -1
  740. package/build-module/components/sidebar-navigation-screen/index.js +108 -98
  741. package/build-module/components/sidebar-navigation-screen/index.js.map +7 -1
  742. package/build-module/components/sidebar-navigation-screen-details-footer/index.js +36 -48
  743. package/build-module/components/sidebar-navigation-screen-details-footer/index.js.map +7 -1
  744. package/build-module/components/sidebar-navigation-screen-global-styles/content.js +23 -28
  745. package/build-module/components/sidebar-navigation-screen-global-styles/content.js.map +7 -1
  746. package/build-module/components/sidebar-navigation-screen-global-styles/index.js +61 -73
  747. package/build-module/components/sidebar-navigation-screen-global-styles/index.js.map +7 -1
  748. package/build-module/components/sidebar-navigation-screen-main/index.js +108 -82
  749. package/build-module/components/sidebar-navigation-screen-main/index.js.map +7 -1
  750. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js +22 -24
  751. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js.map +7 -1
  752. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js +92 -84
  753. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js.map +7 -1
  754. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js +87 -76
  755. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +7 -1
  756. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +28 -41
  757. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js.map +7 -1
  758. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +67 -60
  759. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +7 -1
  760. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +37 -32
  761. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +7 -1
  762. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +107 -91
  763. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +7 -1
  764. package/build-module/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js +14 -14
  765. package/build-module/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js.map +7 -1
  766. package/build-module/components/sidebar-navigation-screen-navigation-menus/constants.js +8 -12
  767. package/build-module/components/sidebar-navigation-screen-navigation-menus/constants.js.map +7 -1
  768. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +89 -98
  769. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +7 -1
  770. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +113 -117
  771. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +7 -1
  772. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +82 -82
  773. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +7 -1
  774. package/build-module/components/sidebar-navigation-screen-patterns/category-item.js +17 -16
  775. package/build-module/components/sidebar-navigation-screen-patterns/category-item.js.map +7 -1
  776. package/build-module/components/sidebar-navigation-screen-patterns/index.js +108 -99
  777. package/build-module/components/sidebar-navigation-screen-patterns/index.js.map +7 -1
  778. package/build-module/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js +19 -21
  779. package/build-module/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js.map +7 -1
  780. package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +53 -59
  781. package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +7 -1
  782. package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +27 -27
  783. package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js.map +7 -1
  784. package/build-module/components/sidebar-navigation-screen-patterns/use-theme-patterns.js +24 -24
  785. package/build-module/components/sidebar-navigation-screen-patterns/use-theme-patterns.js.map +7 -1
  786. package/build-module/components/sidebar-navigation-screen-templates-browse/content.js +67 -70
  787. package/build-module/components/sidebar-navigation-screen-templates-browse/content.js.map +7 -1
  788. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +20 -21
  789. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js.map +7 -1
  790. package/build-module/components/sidebar-navigation-screen-unsupported/index.js +11 -16
  791. package/build-module/components/sidebar-navigation-screen-unsupported/index.js.map +7 -1
  792. package/build-module/components/site-editor-routes/home.js +18 -26
  793. package/build-module/components/site-editor-routes/home.js.map +7 -1
  794. package/build-module/components/site-editor-routes/index.js +39 -30
  795. package/build-module/components/site-editor-routes/index.js.map +7 -1
  796. package/build-module/components/site-editor-routes/navigation-item.js +23 -43
  797. package/build-module/components/site-editor-routes/navigation-item.js.map +7 -1
  798. package/build-module/components/site-editor-routes/navigation.js +23 -43
  799. package/build-module/components/site-editor-routes/navigation.js.map +7 -1
  800. package/build-module/components/site-editor-routes/notfound.js +22 -28
  801. package/build-module/components/site-editor-routes/notfound.js.map +7 -1
  802. package/build-module/components/site-editor-routes/page-item.js +26 -35
  803. package/build-module/components/site-editor-routes/page-item.js.map +7 -1
  804. package/build-module/components/site-editor-routes/pages.js +64 -80
  805. package/build-module/components/site-editor-routes/pages.js.map +7 -1
  806. package/build-module/components/site-editor-routes/pattern-item.js +16 -20
  807. package/build-module/components/site-editor-routes/pattern-item.js.map +7 -1
  808. package/build-module/components/site-editor-routes/patterns.js +19 -30
  809. package/build-module/components/site-editor-routes/patterns.js.map +7 -1
  810. package/build-module/components/site-editor-routes/stylebook.js +28 -37
  811. package/build-module/components/site-editor-routes/stylebook.js.map +7 -1
  812. package/build-module/components/site-editor-routes/styles.js +26 -40
  813. package/build-module/components/site-editor-routes/styles.js.map +7 -1
  814. package/build-module/components/site-editor-routes/template-item.js +21 -28
  815. package/build-module/components/site-editor-routes/template-item.js.map +7 -1
  816. package/build-module/components/site-editor-routes/template-part-item.js +13 -15
  817. package/build-module/components/site-editor-routes/template-part-item.js.map +7 -1
  818. package/build-module/components/site-editor-routes/templates.js +37 -38
  819. package/build-module/components/site-editor-routes/templates.js.map +7 -1
  820. package/build-module/components/site-editor-routes/utils.js +6 -10
  821. package/build-module/components/site-editor-routes/utils.js.map +7 -1
  822. package/build-module/components/site-hub/index.js +204 -215
  823. package/build-module/components/site-hub/index.js.map +7 -1
  824. package/build-module/components/site-icon/index.js +33 -43
  825. package/build-module/components/site-icon/index.js.map +7 -1
  826. package/build-module/components/style-book/categories.js +41 -48
  827. package/build-module/components/style-book/categories.js.map +7 -1
  828. package/build-module/components/style-book/color-examples.js +29 -37
  829. package/build-module/components/style-book/color-examples.js.map +7 -1
  830. package/build-module/components/style-book/constants.js +191 -140
  831. package/build-module/components/style-book/constants.js.map +7 -1
  832. package/build-module/components/style-book/duotone-examples.js +36 -35
  833. package/build-module/components/style-book/duotone-examples.js.map +7 -1
  834. package/build-module/components/style-book/examples.js +114 -116
  835. package/build-module/components/style-book/examples.js.map +7 -1
  836. package/build-module/components/style-book/index.js +431 -384
  837. package/build-module/components/style-book/index.js.map +7 -1
  838. package/build-module/components/style-book/types.js +1 -2
  839. package/build-module/components/style-book/types.js.map +7 -1
  840. package/build-module/components/welcome-guide/editor.js +59 -54
  841. package/build-module/components/welcome-guide/editor.js.map +7 -1
  842. package/build-module/components/welcome-guide/image.js +16 -18
  843. package/build-module/components/welcome-guide/image.js.map +7 -1
  844. package/build-module/components/welcome-guide/index.js +16 -15
  845. package/build-module/components/welcome-guide/index.js.map +7 -1
  846. package/build-module/components/welcome-guide/page.js +59 -48
  847. package/build-module/components/welcome-guide/page.js.map +7 -1
  848. package/build-module/components/welcome-guide/styles.js +108 -97
  849. package/build-module/components/welcome-guide/styles.js.map +7 -1
  850. package/build-module/components/welcome-guide/template.js +54 -55
  851. package/build-module/components/welcome-guide/template.js.map +7 -1
  852. package/build-module/deprecated.js +28 -40
  853. package/build-module/deprecated.js.map +7 -1
  854. package/build-module/hooks/commands/use-common-commands.js +89 -108
  855. package/build-module/hooks/commands/use-common-commands.js.map +7 -1
  856. package/build-module/hooks/commands/use-set-command-context.js +21 -44
  857. package/build-module/hooks/commands/use-set-command-context.js.map +7 -1
  858. package/build-module/hooks/index.js +2 -5
  859. package/build-module/hooks/index.js.map +7 -1
  860. package/build-module/hooks/push-changes-to-global-styles/index.js +218 -243
  861. package/build-module/hooks/push-changes-to-global-styles/index.js.map +7 -1
  862. package/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +56 -105
  863. package/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js.map +7 -1
  864. package/build-module/index.js +55 -69
  865. package/build-module/index.js.map +7 -1
  866. package/build-module/lock-unlock.js +8 -7
  867. package/build-module/lock-unlock.js.map +7 -1
  868. package/build-module/posts.js +38 -54
  869. package/build-module/posts.js.map +7 -1
  870. package/build-module/store/actions.js +140 -320
  871. package/build-module/store/actions.js.map +7 -1
  872. package/build-module/store/constants.js +5 -7
  873. package/build-module/store/constants.js.map +7 -1
  874. package/build-module/store/index.js +15 -18
  875. package/build-module/store/index.js.map +7 -1
  876. package/build-module/store/private-actions.js +12 -14
  877. package/build-module/store/private-actions.js.map +7 -1
  878. package/build-module/store/private-selectors.js +7 -10
  879. package/build-module/store/private-selectors.js.map +7 -1
  880. package/build-module/store/reducer.js +21 -53
  881. package/build-module/store/reducer.js.map +7 -1
  882. package/build-module/store/selectors.js +151 -278
  883. package/build-module/store/selectors.js.map +7 -1
  884. package/build-module/utils/constants.js +53 -44
  885. package/build-module/utils/constants.js.map +7 -1
  886. package/build-module/utils/get-filtered-template-parts.js +18 -37
  887. package/build-module/utils/get-filtered-template-parts.js.map +7 -1
  888. package/build-module/utils/is-previewing-theme.js +10 -9
  889. package/build-module/utils/is-previewing-theme.js.map +7 -1
  890. package/build-module/utils/is-template-removable.js +6 -13
  891. package/build-module/utils/is-template-removable.js.map +7 -1
  892. package/build-module/utils/is-template-revertable.js +6 -15
  893. package/build-module/utils/is-template-revertable.js.map +7 -1
  894. package/build-module/utils/set-nested-value.js +7 -22
  895. package/build-module/utils/set-nested-value.js.map +7 -1
  896. package/build-module/utils/template-part-create.js +1 -2
  897. package/build-module/utils/template-part-create.js.map +7 -1
  898. package/build-module/utils/use-activate-theme.js +21 -40
  899. package/build-module/utils/use-activate-theme.js.map +7 -1
  900. package/build-module/utils/use-actual-current-theme.js +13 -17
  901. package/build-module/utils/use-actual-current-theme.js.map +7 -1
  902. package/build-style/posts-rtl.css +484 -214
  903. package/build-style/posts.css +484 -214
  904. package/build-style/style-rtl.css +629 -271
  905. package/build-style/style.css +629 -271
  906. package/package.json +52 -42
  907. package/src/components/add-new-post/index.js +2 -1
  908. package/src/components/add-new-template/index.js +7 -4
  909. package/src/components/add-new-template/style.scss +4 -0
  910. package/src/components/dataviews-actions/index.js +16 -9
  911. package/src/components/editor/index.js +1 -1
  912. package/src/components/editor/style.scss +3 -0
  913. package/src/components/editor/use-resolve-edited-entity.js +4 -18
  914. package/src/components/editor-canvas-container/style.scss +4 -1
  915. package/src/components/global-styles/font-library-modal/style.scss +4 -0
  916. package/src/components/global-styles/screen-revisions/style.scss +4 -0
  917. package/src/components/global-styles/style.scss +3 -0
  918. package/src/components/global-styles/variations/style.scss +3 -0
  919. package/src/components/global-styles-sidebar/style.scss +3 -0
  920. package/src/components/layout/index.js +2 -1
  921. package/src/components/layout/style.scss +5 -0
  922. package/src/components/page-patterns/actions.js +54 -0
  923. package/src/components/page-patterns/index.js +79 -32
  924. package/src/components/page-patterns/style.scss +4 -0
  925. package/src/components/page-templates/fields.js +22 -1
  926. package/src/components/page-templates/index.js +71 -104
  927. package/src/components/page-templates/style.scss +4 -0
  928. package/src/components/page-templates/view-utils.js +41 -0
  929. package/src/components/pagination/style.scss +2 -0
  930. package/src/components/post-edit/index.js +10 -4
  931. package/src/components/post-edit/style.scss +3 -6
  932. package/src/components/post-list/index.js +76 -188
  933. package/src/components/post-list/style.scss +3 -0
  934. package/src/components/post-list/view-utils.js +155 -0
  935. package/src/components/posts-app-routes/posts.js +29 -16
  936. package/src/components/resizable-frame/style.scss +3 -0
  937. package/src/components/save-hub/style.scss +3 -0
  938. package/src/components/save-panel/index.js +2 -2
  939. package/src/components/save-panel/style.scss +2 -0
  940. package/src/components/sidebar/style.scss +4 -0
  941. package/src/components/sidebar-button/style.scss +2 -0
  942. package/src/components/sidebar-dataviews/dataview-item.js +5 -11
  943. package/src/components/sidebar-dataviews/index.js +17 -17
  944. package/src/components/sidebar-dataviews/style.scss +2 -16
  945. package/src/components/sidebar-global-styles-wrapper/index.js +16 -21
  946. package/src/components/sidebar-global-styles-wrapper/style.scss +4 -30
  947. package/src/components/sidebar-navigation-item/style.scss +3 -0
  948. package/src/components/sidebar-navigation-screen/style.scss +5 -0
  949. package/src/components/sidebar-navigation-screen-main/style.scss +2 -0
  950. package/src/components/sidebar-navigation-screen-navigation-menu/style.scss +2 -0
  951. package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +3 -0
  952. package/src/components/sidebar-navigation-screen-patterns/style.scss +3 -0
  953. package/src/components/sidebar-navigation-screen-templates-browse/style.scss +2 -0
  954. package/src/components/site-editor-routes/pages.js +29 -16
  955. package/src/components/site-editor-routes/templates.js +21 -4
  956. package/src/components/site-hub/style.scss +3 -0
  957. package/src/components/site-icon/style.scss +3 -0
  958. package/src/components/style-book/style.scss +3 -0
  959. package/src/components/welcome-guide/style.scss +2 -0
  960. package/src/posts.scss +14 -11
  961. package/src/style.scss +42 -39
  962. package/tsconfig.json +2 -0
  963. package/tsconfig.tsbuildinfo +1 -1
  964. package/build/components/page/header.js +0 -45
  965. package/build/components/page/header.js.map +0 -1
  966. package/build/components/page/index.js +0 -50
  967. package/build/components/page/index.js.map +0 -1
  968. package/build/components/page-patterns/header.js +0 -96
  969. package/build/components/page-patterns/header.js.map +0 -1
  970. package/build/components/sidebar-dataviews/add-new-view.js +0 -137
  971. package/build/components/sidebar-dataviews/add-new-view.js.map +0 -1
  972. package/build/components/sidebar-dataviews/custom-dataviews-list.js +0 -211
  973. package/build/components/sidebar-dataviews/custom-dataviews-list.js.map +0 -1
  974. package/build/components/sidebar-dataviews/default-views.js +0 -141
  975. package/build/components/sidebar-dataviews/default-views.js.map +0 -1
  976. package/build-module/components/page/header.js +0 -40
  977. package/build-module/components/page/header.js.map +0 -1
  978. package/build-module/components/page/index.js +0 -42
  979. package/build-module/components/page/index.js.map +0 -1
  980. package/build-module/components/page-patterns/header.js +0 -88
  981. package/build-module/components/page-patterns/header.js.map +0 -1
  982. package/build-module/components/sidebar-dataviews/add-new-view.js +0 -129
  983. package/build-module/components/sidebar-dataviews/add-new-view.js.map +0 -1
  984. package/build-module/components/sidebar-dataviews/custom-dataviews-list.js +0 -202
  985. package/build-module/components/sidebar-dataviews/custom-dataviews-list.js.map +0 -1
  986. package/build-module/components/sidebar-dataviews/default-views.js +0 -133
  987. package/build-module/components/sidebar-dataviews/default-views.js.map +0 -1
  988. package/src/components/page/header.js +0 -44
  989. package/src/components/page/index.js +0 -43
  990. package/src/components/page/style.scss +0 -56
  991. package/src/components/page-patterns/header.js +0 -120
  992. package/src/components/sidebar-dataviews/add-new-view.js +0 -143
  993. package/src/components/sidebar-dataviews/custom-dataviews-list.js +0 -233
  994. package/src/components/sidebar-dataviews/default-views.js +0 -168
@@ -1,98 +1,111 @@
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 sidebar_navigation_screen_global_styles_exports = {};
30
+ __export(sidebar_navigation_screen_global_styles_exports, {
31
+ SidebarNavigationItemGlobalStyles: () => SidebarNavigationItemGlobalStyles,
32
+ default: () => SidebarNavigationScreenGlobalStyles
6
33
  });
7
- exports.SidebarNavigationItemGlobalStyles = SidebarNavigationItemGlobalStyles;
8
- exports.default = SidebarNavigationScreenGlobalStyles;
9
- var _i18n = require("@wordpress/i18n");
10
- var _data = require("@wordpress/data");
11
- var _element = require("@wordpress/element");
12
- var _preferences = require("@wordpress/preferences");
13
- var _router = require("@wordpress/router");
14
- var _url = require("@wordpress/url");
15
- var _sidebarNavigationScreen = _interopRequireDefault(require("../sidebar-navigation-screen"));
16
- var _lockUnlock = require("../../lock-unlock");
17
- var _store = require("../../store");
18
- var _sidebarNavigationItem = _interopRequireDefault(require("../sidebar-navigation-item"));
19
- var _useGlobalStylesRevisions = _interopRequireDefault(require("../global-styles/screen-revisions/use-global-styles-revisions"));
20
- var _sidebarNavigationScreenDetailsFooter = _interopRequireDefault(require("../sidebar-navigation-screen-details-footer"));
21
- var _sidebarNavigationScreenMain = require("../sidebar-navigation-screen-main");
22
- var _jsxRuntime = require("react/jsx-runtime");
23
- /**
24
- * WordPress dependencies
25
- */
26
-
27
- /**
28
- * Internal dependencies
29
- */
30
-
31
- const {
32
- useLocation,
33
- useHistory
34
- } = (0, _lockUnlock.unlock)(_router.privateApis);
34
+ module.exports = __toCommonJS(sidebar_navigation_screen_global_styles_exports);
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_i18n = require("@wordpress/i18n");
37
+ var import_data = require("@wordpress/data");
38
+ var import_element = require("@wordpress/element");
39
+ var import_preferences = require("@wordpress/preferences");
40
+ var import_router = require("@wordpress/router");
41
+ var import_url = require("@wordpress/url");
42
+ var import_sidebar_navigation_screen = __toESM(require("../sidebar-navigation-screen"));
43
+ var import_lock_unlock = require("../../lock-unlock");
44
+ var import_store = require("../../store");
45
+ var import_sidebar_navigation_item = __toESM(require("../sidebar-navigation-item"));
46
+ var import_use_global_styles_revisions = __toESM(require("../global-styles/screen-revisions/use-global-styles-revisions"));
47
+ var import_sidebar_navigation_screen_details_footer = __toESM(require("../sidebar-navigation-screen-details-footer"));
48
+ var import_sidebar_navigation_screen_main = require("../sidebar-navigation-screen-main");
49
+ const { useLocation, useHistory } = (0, import_lock_unlock.unlock)(import_router.privateApis);
35
50
  function SidebarNavigationItemGlobalStyles(props) {
36
- const {
37
- name
38
- } = useLocation();
39
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationItem.default, {
40
- ...props,
41
- "aria-current": name === 'styles'
42
- });
51
+ const { name } = useLocation();
52
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
53
+ import_sidebar_navigation_item.default,
54
+ {
55
+ ...props,
56
+ "aria-current": name === "styles"
57
+ }
58
+ );
43
59
  }
44
60
  function SidebarNavigationScreenGlobalStyles() {
45
61
  const history = useHistory();
46
- const {
47
- path
48
- } = useLocation();
62
+ const { path } = useLocation();
49
63
  const {
50
64
  revisions,
51
65
  isLoading: isLoadingRevisions,
52
66
  revisionsCount
53
- } = (0, _useGlobalStylesRevisions.default)();
54
- const {
55
- openGeneralSidebar
56
- } = (0, _data.useDispatch)(_store.store);
57
- const {
58
- setEditorCanvasContainerView
59
- } = (0, _lockUnlock.unlock)((0, _data.useDispatch)(_store.store));
60
- const {
61
- set: setPreference
62
- } = (0, _data.useDispatch)(_preferences.store);
63
- const openGlobalStyles = (0, _element.useCallback)(async () => {
64
- history.navigate((0, _url.addQueryArgs)(path, {
65
- canvas: 'edit'
66
- }), {
67
- transition: 'canvas-mode-edit-transition'
67
+ } = (0, import_use_global_styles_revisions.default)();
68
+ const { openGeneralSidebar } = (0, import_data.useDispatch)(import_store.store);
69
+ const { setEditorCanvasContainerView } = (0, import_lock_unlock.unlock)(
70
+ (0, import_data.useDispatch)(import_store.store)
71
+ );
72
+ const { set: setPreference } = (0, import_data.useDispatch)(import_preferences.store);
73
+ const openGlobalStyles = (0, import_element.useCallback)(async () => {
74
+ history.navigate((0, import_url.addQueryArgs)(path, { canvas: "edit" }), {
75
+ transition: "canvas-mode-edit-transition"
68
76
  });
69
- return Promise.all([setPreference('core', 'distractionFree', false), openGeneralSidebar('edit-site/global-styles')]);
77
+ return Promise.all([
78
+ setPreference("core", "distractionFree", false),
79
+ openGeneralSidebar("edit-site/global-styles")
80
+ ]);
70
81
  }, [path, history, openGeneralSidebar, setPreference]);
71
- const openRevisions = (0, _element.useCallback)(async () => {
82
+ const openRevisions = (0, import_element.useCallback)(async () => {
72
83
  await openGlobalStyles();
73
- // Open the global styles revisions once the canvas mode is set to edit,
74
- // and the global styles sidebar is open. The global styles UI is responsible
75
- // for redirecting to the revisions screen once the editor canvas container
76
- // has been set to 'global-styles-revisions'.
77
- setEditorCanvasContainerView('global-styles-revisions');
84
+ setEditorCanvasContainerView("global-styles-revisions");
78
85
  }, [openGlobalStyles, setEditorCanvasContainerView]);
79
-
80
- // If there are no revisions, do not render a footer.
81
86
  const shouldShowGlobalStylesFooter = !!revisionsCount && !isLoadingRevisions;
82
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
83
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationScreen.default, {
84
- title: (0, _i18n.__)('Design'),
87
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
88
+ import_sidebar_navigation_screen.default,
89
+ {
90
+ title: (0, import_i18n.__)("Design"),
85
91
  isRoot: true,
86
- description: (0, _i18n.__)('Customize the appearance of your website using the block editor.'),
87
- content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationScreenMain.MainSidebarNavigationContent, {
88
- activeItem: "styles-navigation-item"
89
- }),
90
- footer: shouldShowGlobalStylesFooter && /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationScreenDetailsFooter.default, {
91
- record: revisions?.[0],
92
- revisionsCount: revisionsCount,
93
- onClick: openRevisions
94
- })
95
- })
96
- });
92
+ description: (0, import_i18n.__)(
93
+ "Customize the appearance of your website using the block editor."
94
+ ),
95
+ content: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sidebar_navigation_screen_main.MainSidebarNavigationContent, { activeItem: "styles-navigation-item" }),
96
+ footer: shouldShowGlobalStylesFooter && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
97
+ import_sidebar_navigation_screen_details_footer.default,
98
+ {
99
+ record: revisions?.[0],
100
+ revisionsCount,
101
+ onClick: openRevisions
102
+ }
103
+ )
104
+ }
105
+ ) });
97
106
  }
98
- //# sourceMappingURL=index.js.map
107
+ // Annotate the CommonJS export names for ESM import in node:
108
+ 0 && (module.exports = {
109
+ SidebarNavigationItemGlobalStyles
110
+ });
111
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_i18n","require","_data","_element","_preferences","_router","_url","_sidebarNavigationScreen","_interopRequireDefault","_lockUnlock","_store","_sidebarNavigationItem","_useGlobalStylesRevisions","_sidebarNavigationScreenDetailsFooter","_sidebarNavigationScreenMain","_jsxRuntime","useLocation","useHistory","unlock","routerPrivateApis","SidebarNavigationItemGlobalStyles","props","name","jsx","default","SidebarNavigationScreenGlobalStyles","history","path","revisions","isLoading","isLoadingRevisions","revisionsCount","useGlobalStylesRevisions","openGeneralSidebar","useDispatch","editSiteStore","setEditorCanvasContainerView","set","setPreference","preferencesStore","openGlobalStyles","useCallback","navigate","addQueryArgs","canvas","transition","Promise","all","openRevisions","shouldShowGlobalStylesFooter","Fragment","children","title","__","isRoot","description","content","MainSidebarNavigationContent","activeItem","footer","record","onClick"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-global-styles/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { useDispatch } from '@wordpress/data';\nimport { useCallback } from '@wordpress/element';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\nimport { addQueryArgs } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport { unlock } from '../../lock-unlock';\nimport { store as editSiteStore } from '../../store';\nimport SidebarNavigationItem from '../sidebar-navigation-item';\nimport useGlobalStylesRevisions from '../global-styles/screen-revisions/use-global-styles-revisions';\nimport SidebarNavigationScreenDetailsFooter from '../sidebar-navigation-screen-details-footer';\nimport { MainSidebarNavigationContent } from '../sidebar-navigation-screen-main';\n\nconst { useLocation, useHistory } = unlock( routerPrivateApis );\n\nexport function SidebarNavigationItemGlobalStyles( props ) {\n\tconst { name } = useLocation();\n\treturn (\n\t\t<SidebarNavigationItem\n\t\t\t{ ...props }\n\t\t\taria-current={ name === 'styles' }\n\t\t/>\n\t);\n}\n\nexport default function SidebarNavigationScreenGlobalStyles() {\n\tconst history = useHistory();\n\tconst { path } = useLocation();\n\tconst {\n\t\trevisions,\n\t\tisLoading: isLoadingRevisions,\n\t\trevisionsCount,\n\t} = useGlobalStylesRevisions();\n\tconst { openGeneralSidebar } = useDispatch( editSiteStore );\n\tconst { setEditorCanvasContainerView } = unlock(\n\t\tuseDispatch( editSiteStore )\n\t);\n\tconst { set: setPreference } = useDispatch( preferencesStore );\n\n\tconst openGlobalStyles = useCallback( async () => {\n\t\thistory.navigate( addQueryArgs( path, { canvas: 'edit' } ), {\n\t\t\ttransition: 'canvas-mode-edit-transition',\n\t\t} );\n\t\treturn Promise.all( [\n\t\t\tsetPreference( 'core', 'distractionFree', false ),\n\t\t\topenGeneralSidebar( 'edit-site/global-styles' ),\n\t\t] );\n\t}, [ path, history, openGeneralSidebar, setPreference ] );\n\n\tconst openRevisions = useCallback( async () => {\n\t\tawait openGlobalStyles();\n\t\t// Open the global styles revisions once the canvas mode is set to edit,\n\t\t// and the global styles sidebar is open. The global styles UI is responsible\n\t\t// for redirecting to the revisions screen once the editor canvas container\n\t\t// has been set to 'global-styles-revisions'.\n\t\tsetEditorCanvasContainerView( 'global-styles-revisions' );\n\t}, [ openGlobalStyles, setEditorCanvasContainerView ] );\n\n\t// If there are no revisions, do not render a footer.\n\tconst shouldShowGlobalStylesFooter =\n\t\t!! revisionsCount && ! isLoadingRevisions;\n\n\treturn (\n\t\t<>\n\t\t\t<SidebarNavigationScreen\n\t\t\t\ttitle={ __( 'Design' ) }\n\t\t\t\tisRoot\n\t\t\t\tdescription={ __(\n\t\t\t\t\t'Customize the appearance of your website using the block editor.'\n\t\t\t\t) }\n\t\t\t\tcontent={\n\t\t\t\t\t<MainSidebarNavigationContent activeItem=\"styles-navigation-item\" />\n\t\t\t\t}\n\t\t\t\tfooter={\n\t\t\t\t\tshouldShowGlobalStylesFooter && (\n\t\t\t\t\t\t<SidebarNavigationScreenDetailsFooter\n\t\t\t\t\t\t\trecord={ revisions?.[ 0 ] }\n\t\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M;MACNC,WAAW,EAAG,IAAAF,QAAE,EACf,kEACD,CAAG;MACHG,OAAO,eACN,IAAAzC,WAAA,CAAAQ,GAAA,EAACT,4BAAA,CAAA2C,4BAA4B;QAACC,UAAU,EAAC;MAAwB,CAAE,CACnE;MACDC,MAAM,EACLV,4BAA4B,iBAC3B,IAAAlC,WAAA,CAAAQ,GAAA,EAACV,qCAAA,CAAAW,OAAoC;QACpCoC,MAAM,EAAGhC,SAAS,GAAI,CAAC,CAAI;QAC3BG,cAAc,EAAGA,cAAgB;QACjC8B,OAAO,EAAGb;MAAe,CACzB;IAEF,CACD;EAAC,CACD,CAAC;AAEL","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/sidebar-navigation-screen-global-styles/index.js"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { useDispatch } from '@wordpress/data';\nimport { useCallback } from '@wordpress/element';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\nimport { addQueryArgs } from '@wordpress/url';\n\n/**\n * Internal dependencies\n */\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport { unlock } from '../../lock-unlock';\nimport { store as editSiteStore } from '../../store';\nimport SidebarNavigationItem from '../sidebar-navigation-item';\nimport useGlobalStylesRevisions from '../global-styles/screen-revisions/use-global-styles-revisions';\nimport SidebarNavigationScreenDetailsFooter from '../sidebar-navigation-screen-details-footer';\nimport { MainSidebarNavigationContent } from '../sidebar-navigation-screen-main';\n\nconst { useLocation, useHistory } = unlock( routerPrivateApis );\n\nexport function SidebarNavigationItemGlobalStyles( props ) {\n\tconst { name } = useLocation();\n\treturn (\n\t\t<SidebarNavigationItem\n\t\t\t{ ...props }\n\t\t\taria-current={ name === 'styles' }\n\t\t/>\n\t);\n}\n\nexport default function SidebarNavigationScreenGlobalStyles() {\n\tconst history = useHistory();\n\tconst { path } = useLocation();\n\tconst {\n\t\trevisions,\n\t\tisLoading: isLoadingRevisions,\n\t\trevisionsCount,\n\t} = useGlobalStylesRevisions();\n\tconst { openGeneralSidebar } = useDispatch( editSiteStore );\n\tconst { setEditorCanvasContainerView } = unlock(\n\t\tuseDispatch( editSiteStore )\n\t);\n\tconst { set: setPreference } = useDispatch( preferencesStore );\n\n\tconst openGlobalStyles = useCallback( async () => {\n\t\thistory.navigate( addQueryArgs( path, { canvas: 'edit' } ), {\n\t\t\ttransition: 'canvas-mode-edit-transition',\n\t\t} );\n\t\treturn Promise.all( [\n\t\t\tsetPreference( 'core', 'distractionFree', false ),\n\t\t\topenGeneralSidebar( 'edit-site/global-styles' ),\n\t\t] );\n\t}, [ path, history, openGeneralSidebar, setPreference ] );\n\n\tconst openRevisions = useCallback( async () => {\n\t\tawait openGlobalStyles();\n\t\t// Open the global styles revisions once the canvas mode is set to edit,\n\t\t// and the global styles sidebar is open. The global styles UI is responsible\n\t\t// for redirecting to the revisions screen once the editor canvas container\n\t\t// has been set to 'global-styles-revisions'.\n\t\tsetEditorCanvasContainerView( 'global-styles-revisions' );\n\t}, [ openGlobalStyles, setEditorCanvasContainerView ] );\n\n\t// If there are no revisions, do not render a footer.\n\tconst shouldShowGlobalStylesFooter =\n\t\t!! revisionsCount && ! isLoadingRevisions;\n\n\treturn (\n\t\t<>\n\t\t\t<SidebarNavigationScreen\n\t\t\t\ttitle={ __( 'Design' ) }\n\t\t\t\tisRoot\n\t\t\t\tdescription={ __(\n\t\t\t\t\t'Customize the appearance of your website using the block editor.'\n\t\t\t\t) }\n\t\t\t\tcontent={\n\t\t\t\t\t<MainSidebarNavigationContent activeItem=\"styles-navigation-item\" />\n\t\t\t\t}\n\t\t\t\tfooter={\n\t\t\t\t\tshouldShowGlobalStylesFooter && (\n\t\t\t\t\t\t<SidebarNavigationScreenDetailsFooter\n\t\t\t\t\t\t\trecord={ revisions?.[ 0 ] }\n\t\t\t\t\t\t\trevisionsCount={ revisionsCount }\n\t\t\t\t\t\t\tonClick={ openR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AAE,MAAM,SAAS,oBAAoB,aAAc,CAAE;AAExD,QAAM,oBAAgB,4BAAa,YAAY;AAC9C,UAAM,iBAAiB;AAKvB,iCAA8B,yBAA0B;AAAA,EACzD,GAAG,CAAE,kBAAkB,4BAA6B,CAAE;AAGtD,QAAM,+BACL,CAAC,CAAE,kBAAkB,CAAE;AAExB,SACC,2EACC;AAAA,IAAC,iCAAAC;AAAA,IAAA;AAAA,MACA,WAAQ,gBAAI,QAAS;AAAA,MACrB,QAAM;AAAA,MACN,iBAAc;AAAA,QACb;AAAA,MACD;AAAA,MACA,SACC,4CAAC,sEAA6B,YAAW,0BAAyB;AAAA,MAEnE,QACC,gCACC;AAAA,QAAC,gDAAAC;AAAA,QAAA;AAAA,UACA,QAAS,YAAa,CAAE;AAAA,UACxB;AAAA,UACA,SAAU;AAAA;AAAA,MACX;AAAA;AAAA,EAGH,GACD;AAEF;",
6
+ "names": ["routerPrivateApis", "SidebarNavigationItem", "useGlobalStylesRevisions", "editSiteStore", "preferencesStore", "SidebarNavigationScreen", "SidebarNavigationScreenDetailsFooter"]
7
+ }
@@ -1,103 +1,154 @@
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 sidebar_navigation_screen_main_exports = {};
30
+ __export(sidebar_navigation_screen_main_exports, {
31
+ MainSidebarNavigationContent: () => MainSidebarNavigationContent,
32
+ default: () => SidebarNavigationScreenMain
6
33
  });
7
- exports.MainSidebarNavigationContent = MainSidebarNavigationContent;
8
- exports.default = SidebarNavigationScreenMain;
9
- var _components = require("@wordpress/components");
10
- var _i18n = require("@wordpress/i18n");
11
- var _icons = require("@wordpress/icons");
12
- var _data = require("@wordpress/data");
13
- var _element = require("@wordpress/element");
14
- var _coreData = require("@wordpress/core-data");
15
- var _sidebarNavigationScreen = _interopRequireDefault(require("../sidebar-navigation-screen"));
16
- var _sidebarNavigationItem = _interopRequireDefault(require("../sidebar-navigation-item"));
17
- var _sidebarNavigationScreenGlobalStyles = require("../sidebar-navigation-screen-global-styles");
18
- var _lockUnlock = require("../../lock-unlock");
19
- var _store = require("../../store");
20
- var _jsxRuntime = require("react/jsx-runtime");
21
- /**
22
- * WordPress dependencies
23
- */
24
-
25
- /**
26
- * Internal dependencies
27
- */
28
-
29
- function MainSidebarNavigationContent({
30
- isBlockBasedTheme = true
31
- }) {
32
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.__experimentalItemGroup, {
33
- className: "edit-site-sidebar-navigation-screen-main",
34
- children: [isBlockBasedTheme && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
35
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationScreenGlobalStyles.SidebarNavigationItemGlobalStyles, {
36
- to: "/styles",
37
- uid: "global-styles-navigation-item",
38
- icon: _icons.styles,
39
- children: (0, _i18n.__)('Styles')
40
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationItem.default, {
41
- uid: "navigation-navigation-item",
42
- to: "/navigation",
43
- withChevron: true,
44
- icon: _icons.navigation,
45
- children: (0, _i18n.__)('Navigation')
46
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationItem.default, {
47
- uid: "page-navigation-item",
48
- to: "/page",
34
+ module.exports = __toCommonJS(sidebar_navigation_screen_main_exports);
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_components = require("@wordpress/components");
37
+ var import_i18n = require("@wordpress/i18n");
38
+ var import_icons = require("@wordpress/icons");
39
+ var import_data = require("@wordpress/data");
40
+ var import_element = require("@wordpress/element");
41
+ var import_core_data = require("@wordpress/core-data");
42
+ var import_sidebar_navigation_screen = __toESM(require("../sidebar-navigation-screen"));
43
+ var import_sidebar_navigation_item = __toESM(require("../sidebar-navigation-item"));
44
+ var import_sidebar_navigation_screen_global_styles = require("../sidebar-navigation-screen-global-styles");
45
+ var import_lock_unlock = require("../../lock-unlock");
46
+ var import_store = require("../../store");
47
+ function MainSidebarNavigationContent({ isBlockBasedTheme = true }) {
48
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_components.__experimentalItemGroup, { className: "edit-site-sidebar-navigation-screen-main", children: [
49
+ isBlockBasedTheme && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
50
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
51
+ import_sidebar_navigation_screen_global_styles.SidebarNavigationItemGlobalStyles,
52
+ {
53
+ to: "/styles",
54
+ uid: "global-styles-navigation-item",
55
+ icon: import_icons.styles,
56
+ children: (0, import_i18n.__)("Styles")
57
+ }
58
+ ),
59
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
60
+ import_sidebar_navigation_item.default,
61
+ {
62
+ uid: "navigation-navigation-item",
63
+ to: "/navigation",
64
+ withChevron: true,
65
+ icon: import_icons.navigation,
66
+ children: (0, import_i18n.__)("Navigation")
67
+ }
68
+ ),
69
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
70
+ import_sidebar_navigation_item.default,
71
+ {
72
+ uid: "page-navigation-item",
73
+ to: "/page",
74
+ withChevron: true,
75
+ icon: import_icons.page,
76
+ children: (0, import_i18n.__)("Pages")
77
+ }
78
+ ),
79
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
80
+ import_sidebar_navigation_item.default,
81
+ {
82
+ uid: "template-navigation-item",
83
+ to: "/template",
84
+ withChevron: true,
85
+ icon: import_icons.layout,
86
+ children: (0, import_i18n.__)("Templates")
87
+ }
88
+ )
89
+ ] }),
90
+ !isBlockBasedTheme && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
91
+ import_sidebar_navigation_item.default,
92
+ {
93
+ uid: "stylebook-navigation-item",
94
+ to: "/stylebook",
49
95
  withChevron: true,
50
- icon: _icons.page,
51
- children: (0, _i18n.__)('Pages')
52
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationItem.default, {
53
- uid: "template-navigation-item",
54
- to: "/template",
96
+ icon: import_icons.styles,
97
+ children: (0, import_i18n.__)("Styles")
98
+ }
99
+ ),
100
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
101
+ import_sidebar_navigation_item.default,
102
+ {
103
+ uid: "patterns-navigation-item",
104
+ to: "/pattern",
55
105
  withChevron: true,
56
- icon: _icons.layout,
57
- children: (0, _i18n.__)('Templates')
58
- })]
59
- }), !isBlockBasedTheme && /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationItem.default, {
60
- uid: "stylebook-navigation-item",
61
- to: "/stylebook",
62
- withChevron: true,
63
- icon: _icons.styles,
64
- children: (0, _i18n.__)('Styles')
65
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationItem.default, {
66
- uid: "patterns-navigation-item",
67
- to: "/pattern",
68
- withChevron: true,
69
- icon: _icons.symbol,
70
- children: (0, _i18n.__)('Patterns')
71
- })]
72
- });
106
+ icon: import_icons.symbol,
107
+ children: (0, import_i18n.__)("Patterns")
108
+ }
109
+ )
110
+ ] });
73
111
  }
74
- function SidebarNavigationScreenMain({
75
- customDescription
76
- }) {
77
- const isBlockBasedTheme = (0, _data.useSelect)(select => select(_coreData.store).getCurrentTheme()?.is_block_theme, []);
78
- const {
79
- setEditorCanvasContainerView
80
- } = (0, _lockUnlock.unlock)((0, _data.useDispatch)(_store.store));
81
-
82
- // Clear the editor canvas container view when accessing the main navigation screen.
83
- (0, _element.useEffect)(() => {
84
- setEditorCanvasContainerView(undefined);
112
+ function SidebarNavigationScreenMain({ customDescription }) {
113
+ const isBlockBasedTheme = (0, import_data.useSelect)(
114
+ (select) => select(import_core_data.store).getCurrentTheme()?.is_block_theme,
115
+ []
116
+ );
117
+ const { setEditorCanvasContainerView } = (0, import_lock_unlock.unlock)(
118
+ (0, import_data.useDispatch)(import_store.store)
119
+ );
120
+ (0, import_element.useEffect)(() => {
121
+ setEditorCanvasContainerView(void 0);
85
122
  }, [setEditorCanvasContainerView]);
86
123
  let description;
87
124
  if (customDescription) {
88
125
  description = customDescription;
89
126
  } else if (isBlockBasedTheme) {
90
- description = (0, _i18n.__)('Customize the appearance of your website using the block editor.');
127
+ description = (0, import_i18n.__)(
128
+ "Customize the appearance of your website using the block editor."
129
+ );
91
130
  } else {
92
- description = (0, _i18n.__)('Explore block styles and patterns to refine your site.');
131
+ description = (0, import_i18n.__)(
132
+ "Explore block styles and patterns to refine your site."
133
+ );
93
134
  }
94
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_sidebarNavigationScreen.default, {
95
- isRoot: true,
96
- title: (0, _i18n.__)('Design'),
97
- description: description,
98
- content: /*#__PURE__*/(0, _jsxRuntime.jsx)(MainSidebarNavigationContent, {
99
- isBlockBasedTheme: isBlockBasedTheme
100
- })
101
- });
135
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
136
+ import_sidebar_navigation_screen.default,
137
+ {
138
+ isRoot: true,
139
+ title: (0, import_i18n.__)("Design"),
140
+ description,
141
+ content: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
142
+ MainSidebarNavigationContent,
143
+ {
144
+ isBlockBasedTheme
145
+ }
146
+ )
147
+ }
148
+ );
102
149
  }
103
- //# sourceMappingURL=index.js.map
150
+ // Annotate the CommonJS export names for ESM import in node:
151
+ 0 && (module.exports = {
152
+ MainSidebarNavigationContent
153
+ });
154
+ //# sourceMappingURL=index.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_components","require","_i18n","_icons","_data","_element","_coreData","_sidebarNavigationScreen","_interopRequireDefault","_sidebarNavigationItem","_sidebarNavigationScreenGlobalStyles","_lockUnlock","_store","_jsxRuntime","MainSidebarNavigationContent","isBlockBasedTheme","jsxs","__experimentalItemGroup","className","children","Fragment","jsx","SidebarNavigationItemGlobalStyles","to","uid","icon","styles","__","default","withChevron","navigation","page","layout","symbol","SidebarNavigationScreenMain","customDescription","useSelect","select","coreStore","getCurrentTheme","is_block_theme","setEditorCanvasContainerView","unlock","useDispatch","editSiteStore","useEffect","undefined","description","isRoot","title","content"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-main/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __experimentalItemGroup as ItemGroup } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { layout, symbol, navigation, styles, page } from '@wordpress/icons';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { useEffect } from '@wordpress/element';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport SidebarNavigationItem from '../sidebar-navigation-item';\nimport { SidebarNavigationItemGlobalStyles } from '../sidebar-navigation-screen-global-styles';\nimport { unlock } from '../../lock-unlock';\nimport { store as editSiteStore } from '../../store';\n\nexport function MainSidebarNavigationContent( { isBlockBasedTheme = true } ) {\n\treturn (\n\t\t<ItemGroup className=\"edit-site-sidebar-navigation-screen-main\">\n\t\t\t{ isBlockBasedTheme && (\n\t\t\t\t<>\n\t\t\t\t\t<SidebarNavigationItemGlobalStyles\n\t\t\t\t\t\tto=\"/styles\"\n\t\t\t\t\t\tuid=\"global-styles-navigation-item\"\n\t\t\t\t\t\ticon={ styles }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Styles' ) }\n\t\t\t\t\t</SidebarNavigationItemGlobalStyles>\n\t\t\t\t\t<SidebarNavigationItem\n\t\t\t\t\t\tuid=\"navigation-navigation-item\"\n\t\t\t\t\t\tto=\"/navigation\"\n\t\t\t\t\t\twithChevron\n\t\t\t\t\t\ticon={ navigation }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Navigation' ) }\n\t\t\t\t\t</SidebarNavigationItem>\n\t\t\t\t\t<SidebarNavigationItem\n\t\t\t\t\t\tuid=\"page-navigation-item\"\n\t\t\t\t\t\tto=\"/page\"\n\t\t\t\t\t\twithChevron\n\t\t\t\t\t\ticon={ page }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Pages' ) }\n\t\t\t\t\t</SidebarNavigationItem>\n\t\t\t\t\t<SidebarNavigationItem\n\t\t\t\t\t\tuid=\"template-navigation-item\"\n\t\t\t\t\t\tto=\"/template\"\n\t\t\t\t\t\twithChevron\n\t\t\t\t\t\ticon={ layout }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Templates' ) }\n\t\t\t\t\t</SidebarNavigationItem>\n\t\t\t\t</>\n\t\t\t) }\n\t\t\t{ ! isBlockBasedTheme && (\n\t\t\t\t<SidebarNavigationItem\n\t\t\t\t\tuid=\"stylebook-navigation-item\"\n\t\t\t\t\tto=\"/stylebook\"\n\t\t\t\t\twithChevron\n\t\t\t\t\ticon={ styles }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Styles' ) }\n\t\t\t\t</SidebarNavigationItem>\n\t\t\t) }\n\t\t\t<SidebarNavigationItem\n\t\t\t\tuid=\"patterns-navigation-item\"\n\t\t\t\tto=\"/pattern\"\n\t\t\t\twithChevron\n\t\t\t\ticon={ symbol }\n\t\t\t>\n\t\t\t\t{ __( 'Patterns' ) }\n\t\t\t</SidebarNavigationItem>\n\t\t</ItemGroup>\n\t);\n}\n\nexport default function SidebarNavigationScreenMain( { customDescription } ) {\n\tconst isBlockBasedTheme = useSelect(\n\t\t( select ) => select( coreStore ).getCurrentTheme()?.is_block_theme,\n\t\t[]\n\t);\n\tconst { setEditorCanvasContainerView } = unlock(\n\t\tuseDispatch( editSiteStore )\n\t);\n\n\t// Clear the editor canvas container view when accessing the main navigation screen.\n\tuseEffect( () => {\n\t\tsetEditorCanvasContainerView( undefined );\n\t}, [ setEditorCanvasContainerView ] );\n\n\tlet description;\n\tif ( customDescription ) {\n\t\tdescription = customDescription;\n\t} else if ( isBlockBasedTheme ) {\n\t\tdescription = __(\n\t\t\t'Customize the appearance of your website using the block editor.'\n\t\t);\n\t} else {\n\t\tdescription = __(\n\t\t\t'Explore block styles and patterns to refine your site.'\n\t\t);\n\t}\n\n\treturn (\n\t\t<SidebarNavigationScreen\n\t\t\tisRoot\n\t\t\ttitle={ __( 'Design' ) }\n\t\t\tdescription={ description }\n\t\t\tcontent={\n\t\t\t\t<MainSidebarNavigationContent\n\t\t\t\t\tisBlockBasedTheme={ isBlockBasedTheme }\n\t\t\t\t/>\n\t\t\t}\n\t\t/>\n\t);\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA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,EAAG;IAC/BgC,WAAW,GAAG,IAAApB,QAAE,EACf,kEACD,CAAC;EACF,CAAC,MAAM;IACNoB,WAAW,GAAG,IAAApB,QAAE,EACf,wDACD,CAAC;EACF;EAEA,oBACC,IAAAd,WAAA,CAAAQ,GAAA,EAACd,wBAAA,CAAAqB,OAAuB;IACvBoB,MAAM;IACNC,KAAK,EAAG,IAAAtB,QAAE,EAAE,QAAS,CAAG;IACxBoB,WAAW,EAAGA,WAAa;IAC3BG,OAAO,eACN,IAAArC,WAAA,CAAAQ,GAAA,EAACP,4BAA4B;MAC5BC,iBAAiB,EAAGA;IAAmB,CACvC;EACD,CACD,CAAC;AAEJ","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/sidebar-navigation-screen-main/index.js"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __experimentalItemGroup as ItemGroup } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\nimport { layout, symbol, navigation, styles, page } from '@wordpress/icons';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { useEffect } from '@wordpress/element';\nimport { store as coreStore } from '@wordpress/core-data';\n\n/**\n * Internal dependencies\n */\nimport SidebarNavigationScreen from '../sidebar-navigation-screen';\nimport SidebarNavigationItem from '../sidebar-navigation-item';\nimport { SidebarNavigationItemGlobalStyles } from '../sidebar-navigation-screen-global-styles';\nimport { unlock } from '../../lock-unlock';\nimport { store as editSiteStore } from '../../store';\n\nexport function MainSidebarNavigationContent( { isBlockBasedTheme = true } ) {\n\treturn (\n\t\t<ItemGroup className=\"edit-site-sidebar-navigation-screen-main\">\n\t\t\t{ isBlockBasedTheme && (\n\t\t\t\t<>\n\t\t\t\t\t<SidebarNavigationItemGlobalStyles\n\t\t\t\t\t\tto=\"/styles\"\n\t\t\t\t\t\tuid=\"global-styles-navigation-item\"\n\t\t\t\t\t\ticon={ styles }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Styles' ) }\n\t\t\t\t\t</SidebarNavigationItemGlobalStyles>\n\t\t\t\t\t<SidebarNavigationItem\n\t\t\t\t\t\tuid=\"navigation-navigation-item\"\n\t\t\t\t\t\tto=\"/navigation\"\n\t\t\t\t\t\twithChevron\n\t\t\t\t\t\ticon={ navigation }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Navigation' ) }\n\t\t\t\t\t</SidebarNavigationItem>\n\t\t\t\t\t<SidebarNavigationItem\n\t\t\t\t\t\tuid=\"page-navigation-item\"\n\t\t\t\t\t\tto=\"/page\"\n\t\t\t\t\t\twithChevron\n\t\t\t\t\t\ticon={ page }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Pages' ) }\n\t\t\t\t\t</SidebarNavigationItem>\n\t\t\t\t\t<SidebarNavigationItem\n\t\t\t\t\t\tuid=\"template-navigation-item\"\n\t\t\t\t\t\tto=\"/template\"\n\t\t\t\t\t\twithChevron\n\t\t\t\t\t\ticon={ layout }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ __( 'Templates' ) }\n\t\t\t\t\t</SidebarNavigationItem>\n\t\t\t\t</>\n\t\t\t) }\n\t\t\t{ ! isBlockBasedTheme && (\n\t\t\t\t<SidebarNavigationItem\n\t\t\t\t\tuid=\"stylebook-navigation-item\"\n\t\t\t\t\tto=\"/stylebook\"\n\t\t\t\t\twithChevron\n\t\t\t\t\ticon={ styles }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Styles' ) }\n\t\t\t\t</SidebarNavigationItem>\n\t\t\t) }\n\t\t\t<SidebarNavigationItem\n\t\t\t\tuid=\"patterns-navigation-item\"\n\t\t\t\tto=\"/pattern\"\n\t\t\t\twithChevron\n\t\t\t\ticon={ symbol }\n\t\t\t>\n\t\t\t\t{ __( 'Patterns' ) }\n\t\t\t</SidebarNavigationItem>\n\t\t</ItemGroup>\n\t);\n}\n\nexport default function SidebarNavigationScreenMain( { customDescription } ) {\n\tconst isBlockBasedTheme = useSelect(\n\t\t( select ) => select( coreStore ).getCurrentTheme()?.is_block_theme,\n\t\t[]\n\t);\n\tconst { setEditorCanvasContainerView } = unlock(\n\t\tuseDispatch( editSiteStore )\n\t);\n\n\t// Clear the editor canvas container view when accessing the main navigation screen.\n\tuseEffect( () => {\n\t\tsetEditorCanvasContainerView( undefined );\n\t}, [ setEditorCanvasContainerView ] );\n\n\tlet description;\n\tif ( customDescription ) {\n\t\tdescription = customDescription;\n\t} else if ( isBlockBasedTheme ) {\n\t\tdescription = __(\n\t\t\t'Customize the appearance of your website using the block editor.'\n\t\t);\n\t} else {\n\t\tdescription = __(\n\t\t\t'Explore block styles and patterns to refine your site.'\n\t\t);\n\t}\n\n\treturn (\n\t\t<SidebarNavigationScreen\n\t\t\tisRoot\n\t\t\ttitle={ __( 'Design' ) }\n\t\t\tdescription={ description }\n\t\t\tcontent={\n\t\t\t\t<MainSidebarNavigationContent\n\t\t\t\t\tisBlockBasedTheme={ isBlockBasedTheme }\n\t\t\t\t/>\n\t\t\t}\n\t\t/>\n\t);\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBI;AApBJ,wBAAqD;AACrD,kBAAmB;AACnB,mBAAyD;AACzD,kBAAuC;AACvC,qBAA0B;AAC1B,uBAAmC;AAKnC,uCAAoC;AACpC,qCAAkC;AAClC,qDAAkD;AAClD,yBAAuB;AACvB,mBAAuC;AAEhC,SAAS,6BAA8B,EAAE,oBAAoB,KAAK,GAAI;AAC5E,SACC,6CAAC,kBAAAA,yBAAA,EAAU,WAAU,4CAClB;AAAA,yBACD,4EACC;AAAA;AAAA,QAAC;AAAA;AAAA,UACA,IAAG;AAAA,UACH,KAAI;AAAA,UACJ,MAAO;AAAA,UAEL,8BAAI,QAAS;AAAA;AAAA,MAChB;AAAA,MACA;AAAA,QAAC,+BAAAC;AAAA,QAAA;AAAA,UACA,KAAI;AAAA,UACJ,IAAG;AAAA,UACH,aAAW;AAAA,UACX,MAAO;AAAA,U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A,QAAM;AAAA,MACN,WAAQ,gBAAI,QAAS;AAAA,MACrB;AAAA,MACA,SACC;AAAA,QAAC;AAAA;AAAA,UACA;AAAA;AAAA,MACD;AAAA;AAAA,EAEF;AAEF;",
6
+ "names": ["ItemGroup", "SidebarNavigationItem", "coreStore", "editSiteStore", "SidebarNavigationScreen"]
7
+ }
@@ -1,32 +1,43 @@
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 delete_confirm_dialog_exports = {};
20
+ __export(delete_confirm_dialog_exports, {
21
+ default: () => DeleteConfirmDialog
5
22
  });
6
- exports.default = DeleteConfirmDialog;
7
- var _components = require("@wordpress/components");
8
- var _i18n = require("@wordpress/i18n");
9
- var _jsxRuntime = require("react/jsx-runtime");
10
- /**
11
- * WordPress dependencies
12
- */
13
-
14
- function DeleteConfirmDialog({
15
- onClose,
16
- onConfirm
17
- }) {
18
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.__experimentalConfirmDialog, {
19
- isOpen: true,
20
- onConfirm: () => {
21
- onConfirm();
22
-
23
- // Immediate close avoids ability to hit delete multiple times.
24
- onClose();
25
- },
26
- onCancel: onClose,
27
- confirmButtonText: (0, _i18n.__)('Delete'),
28
- size: "medium",
29
- children: (0, _i18n.__)('Are you sure you want to delete this Navigation Menu?')
30
- });
23
+ module.exports = __toCommonJS(delete_confirm_dialog_exports);
24
+ var import_jsx_runtime = require("react/jsx-runtime");
25
+ var import_components = require("@wordpress/components");
26
+ var import_i18n = require("@wordpress/i18n");
27
+ function DeleteConfirmDialog({ onClose, onConfirm }) {
28
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
29
+ import_components.__experimentalConfirmDialog,
30
+ {
31
+ isOpen: true,
32
+ onConfirm: () => {
33
+ onConfirm();
34
+ onClose();
35
+ },
36
+ onCancel: onClose,
37
+ confirmButtonText: (0, import_i18n.__)("Delete"),
38
+ size: "medium",
39
+ children: (0, import_i18n.__)("Are you sure you want to delete this Navigation Menu?")
40
+ }
41
+ );
31
42
  }
32
- //# sourceMappingURL=delete-confirm-dialog.js.map
43
+ //# sourceMappingURL=delete-confirm-dialog.js.map
@@ -1 +1,7 @@
1
- {"version":3,"names":["_components","require","_i18n","_jsxRuntime","DeleteConfirmDialog","onClose","onConfirm","jsx","__experimentalConfirmDialog","isOpen","onCancel","confirmButtonText","__","size","children"],"sources":["@wordpress/edit-site/src/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __experimentalConfirmDialog as ConfirmDialog } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\nexport default function DeleteConfirmDialog( { onClose, onConfirm } ) {\n\treturn (\n\t\t<ConfirmDialog\n\t\t\tisOpen\n\t\t\tonConfirm={ () => {\n\t\t\t\tonConfirm();\n\n\t\t\t\t// Immediate close avoids ability to hit delete multiple times.\n\t\t\t\tonClose();\n\t\t\t} }\n\t\t\tonCancel={ onClose }\n\t\t\tconfirmButtonText={ __( 'Delete' ) }\n\t\t\tsize=\"medium\"\n\t\t>\n\t\t\t{ __( 'Are you sure you want to delete this Navigation Menu?' ) }\n\t\t</ConfirmDialog>\n\t);\n}\n"],"mappings":";;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAqC,IAAAE,WAAA,GAAAF,OAAA;AAJrC;AACA;AACA;;AAIe,SAASG,mBAAmBA,CAAE;EAAEC,OAAO;EAAEC;AAAU,CAAC,EAAG;EACrE,oBACC,IAAAH,WAAA,CAAAI,GAAA,EAACP,WAAA,CAAAQ,2BAAa;IACbC,MAAM;IACNH,SAAS,EAAGA,CAAA,KAAM;MACjBA,SAAS,CAAC,CAAC;;MAEX;MACAD,OAAO,CAAC,CAAC;IACV,CAAG;IACHK,QAAQ,EAAGL,OAAS;IACpBM,iBAAiB,EAAG,IAAAC,QAAE,EAAE,QAAS,CAAG;IACpCC,IAAI,EAAC,QAAQ;IAAAC,QAAA,EAEX,IAAAF,QAAE,EAAE,uDAAwD;EAAC,CACjD,CAAC;AAElB","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js"],
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __experimentalConfirmDialog as ConfirmDialog } from '@wordpress/components';\nimport { __ } from '@wordpress/i18n';\n\nexport default function DeleteConfirmDialog( { onClose, onConfirm } ) {\n\treturn (\n\t\t<ConfirmDialog\n\t\t\tisOpen\n\t\t\tonConfirm={ () => {\n\t\t\t\tonConfirm();\n\n\t\t\t\t// Immediate close avoids ability to hit delete multiple times.\n\t\t\t\tonClose();\n\t\t\t} }\n\t\t\tonCancel={ onClose }\n\t\t\tconfirmButtonText={ __( 'Delete' ) }\n\t\t\tsize=\"medium\"\n\t\t>\n\t\t\t{ __( 'Are you sure you want to delete this Navigation Menu?' ) }\n\t\t</ConfirmDialog>\n\t);\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQE;AALF,wBAA6D;AAC7D,kBAAmB;AAEJ,SAAR,oBAAsC,EAAE,SAAS,UAAU,GAAI;AACrE,SACC;AAAA,IAAC,kBAAAA;AAAA,IAAA;AAAA,MACA,QAAM;AAAA,MACN,WAAY,MAAM;AACjB,kBAAU;AAGV,gBAAQ;AAAA,MACT;AAAA,MACA,UAAW;AAAA,MACX,uBAAoB,gBAAI,QAAS;AAAA,MACjC,MAAK;AAAA,MAEH,8BAAI,uDAAwD;AAAA;AAAA,EAC/D;AAEF;",
6
+ "names": ["ConfirmDialog"]
7
+ }