@wordpress/edit-site 6.34.0 → 6.35.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 (523) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/components/add-new-pattern/index.js +6 -4
  3. package/build/components/add-new-pattern/index.js.map +1 -1
  4. package/build/components/add-new-post/index.js +3 -1
  5. package/build/components/add-new-post/index.js.map +1 -1
  6. package/build/components/add-new-template/add-custom-generic-template-modal-content.js +3 -1
  7. package/build/components/add-new-template/add-custom-generic-template-modal-content.js.map +1 -1
  8. package/build/components/add-new-template/add-custom-template-modal-content.js +4 -2
  9. package/build/components/add-new-template/add-custom-template-modal-content.js.map +1 -1
  10. package/build/components/add-new-template/index.js +7 -5
  11. package/build/components/add-new-template/index.js.map +1 -1
  12. package/build/components/add-new-template/utils.js +14 -12
  13. package/build/components/add-new-template/utils.js.map +1 -1
  14. package/build/components/app/index.js +4 -2
  15. package/build/components/app/index.js.map +1 -1
  16. package/build/components/block-editor/use-editor-iframe-props.js +3 -1
  17. package/build/components/block-editor/use-editor-iframe-props.js.map +1 -1
  18. package/build/components/block-editor/use-navigate-to-entity-record.js +3 -1
  19. package/build/components/block-editor/use-navigate-to-entity-record.js.map +1 -1
  20. package/build/components/block-editor/use-site-editor-settings.js +3 -1
  21. package/build/components/block-editor/use-site-editor-settings.js.map +1 -1
  22. package/build/components/canvas-loader/index.js +5 -3
  23. package/build/components/canvas-loader/index.js.map +1 -1
  24. package/build/components/dataviews-actions/index.js +5 -3
  25. package/build/components/dataviews-actions/index.js.map +1 -1
  26. package/build/components/editor/index.js +17 -24
  27. package/build/components/editor/index.js.map +2 -2
  28. package/build/components/editor/site-preview.js +3 -1
  29. package/build/components/editor/site-preview.js.map +1 -1
  30. package/build/components/editor/use-adapt-editor-to-canvas.js +2 -0
  31. package/build/components/editor/use-adapt-editor-to-canvas.js.map +1 -1
  32. package/build/components/editor/use-editor-title.js +3 -1
  33. package/build/components/editor/use-editor-title.js.map +1 -1
  34. package/build/components/editor/use-resolve-edited-entity.js +5 -3
  35. package/build/components/editor/use-resolve-edited-entity.js.map +1 -1
  36. package/build/components/layout/animation.js +3 -1
  37. package/build/components/layout/animation.js.map +1 -1
  38. package/build/components/layout/hooks.js +3 -1
  39. package/build/components/layout/hooks.js.map +1 -1
  40. package/build/components/layout/index.js +6 -4
  41. package/build/components/layout/index.js.map +1 -1
  42. package/build/components/media/index.js +3 -1
  43. package/build/components/media/index.js.map +1 -1
  44. package/build/components/more-menu/index.js +4 -2
  45. package/build/components/more-menu/index.js.map +1 -1
  46. package/build/components/more-menu/site-export.js +3 -1
  47. package/build/components/more-menu/site-export.js.map +1 -1
  48. package/build/components/more-menu/welcome-guide-menu-item.js +3 -1
  49. package/build/components/more-menu/welcome-guide-menu-item.js.map +1 -1
  50. package/build/components/page-patterns/actions.js +3 -1
  51. package/build/components/page-patterns/actions.js.map +1 -1
  52. package/build/components/page-patterns/delete-category-menu-item.js +4 -2
  53. package/build/components/page-patterns/delete-category-menu-item.js.map +1 -1
  54. package/build/components/page-patterns/fields.js +8 -6
  55. package/build/components/page-patterns/fields.js.map +1 -1
  56. package/build/components/page-patterns/index.js +10 -8
  57. package/build/components/page-patterns/index.js.map +2 -2
  58. package/build/components/page-patterns/rename-category-menu-item.js +4 -2
  59. package/build/components/page-patterns/rename-category-menu-item.js.map +1 -1
  60. package/build/components/page-patterns/search-items.js +10 -8
  61. package/build/components/page-patterns/search-items.js.map +1 -1
  62. package/build/components/page-patterns/use-pattern-settings.js +2 -0
  63. package/build/components/page-patterns/use-pattern-settings.js.map +1 -1
  64. package/build/components/page-patterns/use-patterns.js +8 -6
  65. package/build/components/page-patterns/use-patterns.js.map +1 -1
  66. package/build/components/page-patterns/utils.js +3 -1
  67. package/build/components/page-patterns/utils.js.map +1 -1
  68. package/build/components/page-templates/fields.js +14 -12
  69. package/build/components/page-templates/fields.js.map +2 -2
  70. package/build/components/page-templates/hooks.js +2 -0
  71. package/build/components/page-templates/hooks.js.map +1 -1
  72. package/build/components/page-templates/index.js +16 -11
  73. package/build/components/page-templates/index.js.map +2 -2
  74. package/build/components/page-templates/view-utils.js +8 -2
  75. package/build/components/page-templates/view-utils.js.map +2 -2
  76. package/build/components/pagination/index.js +3 -1
  77. package/build/components/pagination/index.js.map +1 -1
  78. package/build/components/plugin-template-setting-panel/index.js +5 -3
  79. package/build/components/plugin-template-setting-panel/index.js.map +1 -1
  80. package/build/components/post-edit/index.js +5 -3
  81. package/build/components/post-edit/index.js.map +1 -1
  82. package/build/components/post-list/index.js +8 -6
  83. package/build/components/post-list/index.js.map +1 -1
  84. package/build/components/post-list/view-utils.js +5 -3
  85. package/build/components/post-list/view-utils.js.map +1 -1
  86. package/build/components/resizable-frame/index.js +10 -8
  87. package/build/components/resizable-frame/index.js.map +1 -1
  88. package/build/components/routes/use-title.js +3 -1
  89. package/build/components/routes/use-title.js.map +1 -1
  90. package/build/components/save-button/index.js +4 -2
  91. package/build/components/save-button/index.js.map +1 -1
  92. package/build/components/save-hub/index.js +3 -1
  93. package/build/components/save-hub/index.js.map +1 -1
  94. package/build/components/save-keyboard-shortcut/index.js +3 -1
  95. package/build/components/save-keyboard-shortcut/index.js.map +1 -1
  96. package/build/components/save-panel/index.js +7 -5
  97. package/build/components/save-panel/index.js.map +1 -1
  98. package/build/components/sidebar/index.js +4 -2
  99. package/build/components/sidebar/index.js.map +1 -1
  100. package/build/components/sidebar-button/index.js +3 -1
  101. package/build/components/sidebar-button/index.js.map +1 -1
  102. package/build/components/sidebar-dataviews/dataview-item.js +4 -2
  103. package/build/components/sidebar-dataviews/dataview-item.js.map +1 -1
  104. package/build/components/sidebar-dataviews/index.js +4 -2
  105. package/build/components/sidebar-dataviews/index.js.map +1 -1
  106. package/build/components/sidebar-global-styles/index.js +7 -5
  107. package/build/components/sidebar-global-styles/index.js.map +1 -1
  108. package/build/components/sidebar-navigation-item/index.js +4 -2
  109. package/build/components/sidebar-navigation-item/index.js.map +1 -1
  110. package/build/components/sidebar-navigation-screen/index.js +4 -2
  111. package/build/components/sidebar-navigation-screen/index.js.map +1 -1
  112. package/build/components/sidebar-navigation-screen-details-footer/index.js +3 -1
  113. package/build/components/sidebar-navigation-screen-details-footer/index.js.map +1 -1
  114. package/build/components/sidebar-navigation-screen-global-styles/content.js +4 -2
  115. package/build/components/sidebar-navigation-screen-global-styles/content.js.map +1 -1
  116. package/build/components/sidebar-navigation-screen-global-styles/index.js +4 -2
  117. package/build/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
  118. package/build/components/sidebar-navigation-screen-main/index.js +3 -1
  119. package/build/components/sidebar-navigation-screen-main/index.js.map +1 -1
  120. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js +3 -1
  121. package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js.map +1 -1
  122. package/build/components/sidebar-navigation-screen-navigation-menu/index.js +5 -3
  123. package/build/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
  124. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js +5 -3
  125. package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
  126. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +4 -2
  127. package/build/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js.map +1 -1
  128. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +4 -2
  129. package/build/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +1 -1
  130. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +3 -1
  131. package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +1 -1
  132. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +3 -1
  133. package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
  134. package/build/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js +2 -0
  135. package/build/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js.map +1 -1
  136. package/build/components/sidebar-navigation-screen-navigation-menus/constants.js +3 -1
  137. package/build/components/sidebar-navigation-screen-navigation-menus/constants.js.map +1 -1
  138. package/build/components/sidebar-navigation-screen-navigation-menus/index.js +4 -2
  139. package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  140. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +5 -3
  141. package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +1 -1
  142. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +6 -4
  143. package/build/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +1 -1
  144. package/build/components/sidebar-navigation-screen-patterns/category-item.js +3 -1
  145. package/build/components/sidebar-navigation-screen-patterns/category-item.js.map +1 -1
  146. package/build/components/sidebar-navigation-screen-patterns/index.js +4 -2
  147. package/build/components/sidebar-navigation-screen-patterns/index.js.map +1 -1
  148. package/build/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js +2 -0
  149. package/build/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js.map +1 -1
  150. package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +2 -0
  151. package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +1 -1
  152. package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +3 -1
  153. package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.js.map +1 -1
  154. package/build/components/sidebar-navigation-screen-patterns/use-theme-patterns.js +2 -0
  155. package/build/components/sidebar-navigation-screen-patterns/use-theme-patterns.js.map +1 -1
  156. package/build/components/sidebar-navigation-screen-templates-browse/content.js +5 -3
  157. package/build/components/sidebar-navigation-screen-templates-browse/content.js.map +1 -1
  158. package/build/components/sidebar-navigation-screen-templates-browse/index.js +3 -1
  159. package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
  160. package/build/components/sidebar-navigation-screen-unsupported/index.js +3 -1
  161. package/build/components/sidebar-navigation-screen-unsupported/index.js.map +1 -1
  162. package/build/components/site-editor-routes/home.js +4 -2
  163. package/build/components/site-editor-routes/home.js.map +1 -1
  164. package/build/components/site-editor-routes/index.js +3 -1
  165. package/build/components/site-editor-routes/index.js.map +1 -1
  166. package/build/components/site-editor-routes/navigation-item.js +5 -3
  167. package/build/components/site-editor-routes/navigation-item.js.map +1 -1
  168. package/build/components/site-editor-routes/navigation.js +5 -3
  169. package/build/components/site-editor-routes/navigation.js.map +1 -1
  170. package/build/components/site-editor-routes/notfound.js +4 -2
  171. package/build/components/site-editor-routes/notfound.js.map +1 -1
  172. package/build/components/site-editor-routes/page-item.js +4 -2
  173. package/build/components/site-editor-routes/page-item.js.map +1 -1
  174. package/build/components/site-editor-routes/pages.js +5 -3
  175. package/build/components/site-editor-routes/pages.js.map +1 -1
  176. package/build/components/site-editor-routes/pattern-item.js +4 -2
  177. package/build/components/site-editor-routes/pattern-item.js.map +1 -1
  178. package/build/components/site-editor-routes/patterns.js +4 -2
  179. package/build/components/site-editor-routes/patterns.js.map +1 -1
  180. package/build/components/site-editor-routes/stylebook.js +5 -3
  181. package/build/components/site-editor-routes/stylebook.js.map +1 -1
  182. package/build/components/site-editor-routes/styles.js +6 -4
  183. package/build/components/site-editor-routes/styles.js.map +1 -1
  184. package/build/components/site-editor-routes/template-item.js +5 -3
  185. package/build/components/site-editor-routes/template-item.js.map +1 -1
  186. package/build/components/site-editor-routes/template-part-item.js +4 -2
  187. package/build/components/site-editor-routes/template-part-item.js.map +1 -1
  188. package/build/components/site-editor-routes/templates.js +4 -2
  189. package/build/components/site-editor-routes/templates.js.map +1 -1
  190. package/build/components/site-editor-routes/utils.js +2 -0
  191. package/build/components/site-editor-routes/utils.js.map +1 -1
  192. package/build/components/site-hub/index.js +6 -4
  193. package/build/components/site-hub/index.js.map +1 -1
  194. package/build/components/site-icon/index.js +3 -1
  195. package/build/components/site-icon/index.js.map +1 -1
  196. package/build/components/welcome-guide/editor.js +3 -1
  197. package/build/components/welcome-guide/editor.js.map +1 -1
  198. package/build/components/welcome-guide/image.js +2 -0
  199. package/build/components/welcome-guide/image.js.map +1 -1
  200. package/build/components/welcome-guide/index.js +3 -1
  201. package/build/components/welcome-guide/index.js.map +1 -1
  202. package/build/components/welcome-guide/page.js +3 -1
  203. package/build/components/welcome-guide/page.js.map +1 -1
  204. package/build/components/welcome-guide/template.js +3 -1
  205. package/build/components/welcome-guide/template.js.map +1 -1
  206. package/build/deprecated.js +5 -3
  207. package/build/deprecated.js.map +1 -1
  208. package/build/hooks/commands/use-common-commands.js +7 -5
  209. package/build/hooks/commands/use-common-commands.js.map +1 -1
  210. package/build/hooks/commands/use-set-command-context.js +4 -2
  211. package/build/hooks/commands/use-set-command-context.js.map +1 -1
  212. package/build/index.js +4 -5
  213. package/build/index.js.map +2 -2
  214. package/build/lock-unlock.js +3 -1
  215. package/build/lock-unlock.js.map +1 -1
  216. package/build/store/actions.js +14 -12
  217. package/build/store/actions.js.map +1 -1
  218. package/build/store/constants.js +3 -1
  219. package/build/store/constants.js.map +1 -1
  220. package/build/store/index.js +4 -2
  221. package/build/store/index.js.map +1 -1
  222. package/build/store/private-actions.js +2 -0
  223. package/build/store/private-actions.js.map +1 -1
  224. package/build/store/private-selectors.js +2 -0
  225. package/build/store/private-selectors.js.map +1 -1
  226. package/build/store/reducer.js +2 -0
  227. package/build/store/reducer.js.map +1 -1
  228. package/build/store/selectors.js +11 -9
  229. package/build/store/selectors.js.map +1 -1
  230. package/build/utils/constants.js +18 -16
  231. package/build/utils/constants.js.map +1 -1
  232. package/build/utils/get-filtered-template-parts.js +3 -1
  233. package/build/utils/get-filtered-template-parts.js.map +1 -1
  234. package/build/utils/is-previewing-theme.js +2 -0
  235. package/build/utils/is-previewing-theme.js.map +1 -1
  236. package/build/utils/is-template-removable.js +2 -0
  237. package/build/utils/is-template-removable.js.map +1 -1
  238. package/build/utils/is-template-revertable.js +2 -0
  239. package/build/utils/is-template-revertable.js.map +2 -2
  240. package/build/utils/use-activate-theme.js +3 -1
  241. package/build/utils/use-activate-theme.js.map +1 -1
  242. package/build/utils/use-actual-current-theme.js +3 -1
  243. package/build/utils/use-actual-current-theme.js.map +1 -1
  244. package/build-module/components/add-new-pattern/index.js +5 -4
  245. package/build-module/components/add-new-pattern/index.js.map +1 -1
  246. package/build-module/components/add-new-post/index.js +2 -1
  247. package/build-module/components/add-new-post/index.js.map +1 -1
  248. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js +2 -1
  249. package/build-module/components/add-new-template/add-custom-generic-template-modal-content.js.map +1 -1
  250. package/build-module/components/add-new-template/add-custom-template-modal-content.js +3 -2
  251. package/build-module/components/add-new-template/add-custom-template-modal-content.js.map +1 -1
  252. package/build-module/components/add-new-template/index.js +6 -5
  253. package/build-module/components/add-new-template/index.js.map +1 -1
  254. package/build-module/components/add-new-template/utils.js +13 -12
  255. package/build-module/components/add-new-template/utils.js.map +1 -1
  256. package/build-module/components/app/index.js +3 -2
  257. package/build-module/components/app/index.js.map +1 -1
  258. package/build-module/components/block-editor/use-editor-iframe-props.js +2 -1
  259. package/build-module/components/block-editor/use-editor-iframe-props.js.map +1 -1
  260. package/build-module/components/block-editor/use-navigate-to-entity-record.js +2 -1
  261. package/build-module/components/block-editor/use-navigate-to-entity-record.js.map +1 -1
  262. package/build-module/components/block-editor/use-site-editor-settings.js +2 -1
  263. package/build-module/components/block-editor/use-site-editor-settings.js.map +1 -1
  264. package/build-module/components/canvas-loader/index.js +4 -3
  265. package/build-module/components/canvas-loader/index.js.map +1 -1
  266. package/build-module/components/dataviews-actions/index.js +4 -3
  267. package/build-module/components/dataviews-actions/index.js.map +1 -1
  268. package/build-module/components/editor/index.js +16 -24
  269. package/build-module/components/editor/index.js.map +2 -2
  270. package/build-module/components/editor/site-preview.js +2 -1
  271. package/build-module/components/editor/site-preview.js.map +1 -1
  272. package/build-module/components/editor/use-adapt-editor-to-canvas.js +1 -0
  273. package/build-module/components/editor/use-adapt-editor-to-canvas.js.map +1 -1
  274. package/build-module/components/editor/use-editor-title.js +2 -1
  275. package/build-module/components/editor/use-editor-title.js.map +1 -1
  276. package/build-module/components/editor/use-resolve-edited-entity.js +4 -3
  277. package/build-module/components/editor/use-resolve-edited-entity.js.map +1 -1
  278. package/build-module/components/layout/animation.js +2 -1
  279. package/build-module/components/layout/animation.js.map +1 -1
  280. package/build-module/components/layout/hooks.js +2 -1
  281. package/build-module/components/layout/hooks.js.map +1 -1
  282. package/build-module/components/layout/index.js +5 -4
  283. package/build-module/components/layout/index.js.map +1 -1
  284. package/build-module/components/media/index.js +2 -1
  285. package/build-module/components/media/index.js.map +1 -1
  286. package/build-module/components/more-menu/index.js +3 -2
  287. package/build-module/components/more-menu/index.js.map +1 -1
  288. package/build-module/components/more-menu/site-export.js +2 -1
  289. package/build-module/components/more-menu/site-export.js.map +1 -1
  290. package/build-module/components/more-menu/welcome-guide-menu-item.js +2 -1
  291. package/build-module/components/more-menu/welcome-guide-menu-item.js.map +1 -1
  292. package/build-module/components/page-patterns/actions.js +2 -1
  293. package/build-module/components/page-patterns/actions.js.map +1 -1
  294. package/build-module/components/page-patterns/delete-category-menu-item.js +3 -2
  295. package/build-module/components/page-patterns/delete-category-menu-item.js.map +1 -1
  296. package/build-module/components/page-patterns/fields.js +7 -6
  297. package/build-module/components/page-patterns/fields.js.map +1 -1
  298. package/build-module/components/page-patterns/index.js +9 -8
  299. package/build-module/components/page-patterns/index.js.map +2 -2
  300. package/build-module/components/page-patterns/rename-category-menu-item.js +3 -2
  301. package/build-module/components/page-patterns/rename-category-menu-item.js.map +1 -1
  302. package/build-module/components/page-patterns/search-items.js +11 -10
  303. package/build-module/components/page-patterns/search-items.js.map +1 -1
  304. package/build-module/components/page-patterns/use-pattern-settings.js +1 -0
  305. package/build-module/components/page-patterns/use-pattern-settings.js.map +1 -1
  306. package/build-module/components/page-patterns/use-patterns.js +7 -6
  307. package/build-module/components/page-patterns/use-patterns.js.map +1 -1
  308. package/build-module/components/page-patterns/utils.js +2 -1
  309. package/build-module/components/page-patterns/utils.js.map +1 -1
  310. package/build-module/components/page-templates/fields.js +13 -12
  311. package/build-module/components/page-templates/fields.js.map +2 -2
  312. package/build-module/components/page-templates/hooks.js +1 -0
  313. package/build-module/components/page-templates/hooks.js.map +1 -1
  314. package/build-module/components/page-templates/index.js +15 -11
  315. package/build-module/components/page-templates/index.js.map +2 -2
  316. package/build-module/components/page-templates/view-utils.js +7 -2
  317. package/build-module/components/page-templates/view-utils.js.map +2 -2
  318. package/build-module/components/pagination/index.js +2 -1
  319. package/build-module/components/pagination/index.js.map +1 -1
  320. package/build-module/components/plugin-template-setting-panel/index.js +4 -3
  321. package/build-module/components/plugin-template-setting-panel/index.js.map +1 -1
  322. package/build-module/components/post-edit/index.js +4 -3
  323. package/build-module/components/post-edit/index.js.map +1 -1
  324. package/build-module/components/post-list/index.js +7 -6
  325. package/build-module/components/post-list/index.js.map +1 -1
  326. package/build-module/components/post-list/view-utils.js +4 -3
  327. package/build-module/components/post-list/view-utils.js.map +1 -1
  328. package/build-module/components/resizable-frame/index.js +9 -8
  329. package/build-module/components/resizable-frame/index.js.map +1 -1
  330. package/build-module/components/routes/use-title.js +2 -1
  331. package/build-module/components/routes/use-title.js.map +1 -1
  332. package/build-module/components/save-button/index.js +3 -2
  333. package/build-module/components/save-button/index.js.map +1 -1
  334. package/build-module/components/save-hub/index.js +2 -1
  335. package/build-module/components/save-hub/index.js.map +1 -1
  336. package/build-module/components/save-keyboard-shortcut/index.js +2 -1
  337. package/build-module/components/save-keyboard-shortcut/index.js.map +1 -1
  338. package/build-module/components/save-panel/index.js +6 -5
  339. package/build-module/components/save-panel/index.js.map +1 -1
  340. package/build-module/components/sidebar/index.js +3 -2
  341. package/build-module/components/sidebar/index.js.map +1 -1
  342. package/build-module/components/sidebar-button/index.js +2 -1
  343. package/build-module/components/sidebar-button/index.js.map +1 -1
  344. package/build-module/components/sidebar-dataviews/dataview-item.js +3 -2
  345. package/build-module/components/sidebar-dataviews/dataview-item.js.map +1 -1
  346. package/build-module/components/sidebar-dataviews/index.js +3 -2
  347. package/build-module/components/sidebar-dataviews/index.js.map +1 -1
  348. package/build-module/components/sidebar-global-styles/index.js +6 -5
  349. package/build-module/components/sidebar-global-styles/index.js.map +1 -1
  350. package/build-module/components/sidebar-navigation-item/index.js +3 -2
  351. package/build-module/components/sidebar-navigation-item/index.js.map +1 -1
  352. package/build-module/components/sidebar-navigation-screen/index.js +3 -2
  353. package/build-module/components/sidebar-navigation-screen/index.js.map +1 -1
  354. package/build-module/components/sidebar-navigation-screen-details-footer/index.js +2 -1
  355. package/build-module/components/sidebar-navigation-screen-details-footer/index.js.map +1 -1
  356. package/build-module/components/sidebar-navigation-screen-global-styles/content.js +3 -2
  357. package/build-module/components/sidebar-navigation-screen-global-styles/content.js.map +1 -1
  358. package/build-module/components/sidebar-navigation-screen-global-styles/index.js +3 -2
  359. package/build-module/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
  360. package/build-module/components/sidebar-navigation-screen-main/index.js +2 -1
  361. package/build-module/components/sidebar-navigation-screen-main/index.js.map +1 -1
  362. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js +2 -1
  363. package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js.map +1 -1
  364. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js +4 -3
  365. package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
  366. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js +4 -3
  367. package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
  368. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js +3 -2
  369. package/build-module/components/sidebar-navigation-screen-navigation-menu/navigation-menu-editor.js.map +1 -1
  370. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js +3 -2
  371. package/build-module/components/sidebar-navigation-screen-navigation-menu/rename-modal.js.map +1 -1
  372. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +2 -1
  373. package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +1 -1
  374. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +2 -1
  375. package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
  376. package/build-module/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js +1 -0
  377. package/build-module/components/sidebar-navigation-screen-navigation-menus/build-navigation-label.js.map +1 -1
  378. package/build-module/components/sidebar-navigation-screen-navigation-menus/constants.js +2 -1
  379. package/build-module/components/sidebar-navigation-screen-navigation-menus/constants.js.map +1 -1
  380. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +3 -2
  381. package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
  382. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +5 -4
  383. package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +1 -1
  384. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js +5 -4
  385. package/build-module/components/sidebar-navigation-screen-navigation-menus/navigation-menu-content.js.map +1 -1
  386. package/build-module/components/sidebar-navigation-screen-patterns/category-item.js +2 -1
  387. package/build-module/components/sidebar-navigation-screen-patterns/category-item.js.map +1 -1
  388. package/build-module/components/sidebar-navigation-screen-patterns/index.js +3 -2
  389. package/build-module/components/sidebar-navigation-screen-patterns/index.js.map +1 -1
  390. package/build-module/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js +1 -0
  391. package/build-module/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js.map +1 -1
  392. package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +1 -0
  393. package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +1 -1
  394. package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +2 -1
  395. package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js.map +1 -1
  396. package/build-module/components/sidebar-navigation-screen-patterns/use-theme-patterns.js +1 -0
  397. package/build-module/components/sidebar-navigation-screen-patterns/use-theme-patterns.js.map +1 -1
  398. package/build-module/components/sidebar-navigation-screen-templates-browse/content.js +4 -3
  399. package/build-module/components/sidebar-navigation-screen-templates-browse/content.js.map +1 -1
  400. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +2 -1
  401. package/build-module/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
  402. package/build-module/components/sidebar-navigation-screen-unsupported/index.js +2 -1
  403. package/build-module/components/sidebar-navigation-screen-unsupported/index.js.map +1 -1
  404. package/build-module/components/site-editor-routes/home.js +3 -2
  405. package/build-module/components/site-editor-routes/home.js.map +1 -1
  406. package/build-module/components/site-editor-routes/index.js +2 -1
  407. package/build-module/components/site-editor-routes/index.js.map +1 -1
  408. package/build-module/components/site-editor-routes/navigation-item.js +4 -3
  409. package/build-module/components/site-editor-routes/navigation-item.js.map +1 -1
  410. package/build-module/components/site-editor-routes/navigation.js +4 -3
  411. package/build-module/components/site-editor-routes/navigation.js.map +1 -1
  412. package/build-module/components/site-editor-routes/notfound.js +3 -2
  413. package/build-module/components/site-editor-routes/notfound.js.map +1 -1
  414. package/build-module/components/site-editor-routes/page-item.js +3 -2
  415. package/build-module/components/site-editor-routes/page-item.js.map +1 -1
  416. package/build-module/components/site-editor-routes/pages.js +4 -3
  417. package/build-module/components/site-editor-routes/pages.js.map +1 -1
  418. package/build-module/components/site-editor-routes/pattern-item.js +3 -2
  419. package/build-module/components/site-editor-routes/pattern-item.js.map +1 -1
  420. package/build-module/components/site-editor-routes/patterns.js +3 -2
  421. package/build-module/components/site-editor-routes/patterns.js.map +1 -1
  422. package/build-module/components/site-editor-routes/stylebook.js +4 -3
  423. package/build-module/components/site-editor-routes/stylebook.js.map +1 -1
  424. package/build-module/components/site-editor-routes/styles.js +5 -4
  425. package/build-module/components/site-editor-routes/styles.js.map +1 -1
  426. package/build-module/components/site-editor-routes/template-item.js +4 -3
  427. package/build-module/components/site-editor-routes/template-item.js.map +1 -1
  428. package/build-module/components/site-editor-routes/template-part-item.js +3 -2
  429. package/build-module/components/site-editor-routes/template-part-item.js.map +1 -1
  430. package/build-module/components/site-editor-routes/templates.js +3 -2
  431. package/build-module/components/site-editor-routes/templates.js.map +1 -1
  432. package/build-module/components/site-editor-routes/utils.js +1 -0
  433. package/build-module/components/site-editor-routes/utils.js.map +1 -1
  434. package/build-module/components/site-hub/index.js +5 -4
  435. package/build-module/components/site-hub/index.js.map +1 -1
  436. package/build-module/components/site-icon/index.js +2 -1
  437. package/build-module/components/site-icon/index.js.map +1 -1
  438. package/build-module/components/welcome-guide/editor.js +2 -1
  439. package/build-module/components/welcome-guide/editor.js.map +1 -1
  440. package/build-module/components/welcome-guide/image.js +1 -0
  441. package/build-module/components/welcome-guide/image.js.map +1 -1
  442. package/build-module/components/welcome-guide/index.js +2 -1
  443. package/build-module/components/welcome-guide/index.js.map +1 -1
  444. package/build-module/components/welcome-guide/page.js +2 -1
  445. package/build-module/components/welcome-guide/page.js.map +1 -1
  446. package/build-module/components/welcome-guide/template.js +2 -1
  447. package/build-module/components/welcome-guide/template.js.map +1 -1
  448. package/build-module/deprecated.js +4 -3
  449. package/build-module/deprecated.js.map +1 -1
  450. package/build-module/hooks/commands/use-common-commands.js +6 -5
  451. package/build-module/hooks/commands/use-common-commands.js.map +1 -1
  452. package/build-module/hooks/commands/use-set-command-context.js +3 -2
  453. package/build-module/hooks/commands/use-set-command-context.js.map +1 -1
  454. package/build-module/index.js +6 -7
  455. package/build-module/index.js.map +2 -2
  456. package/build-module/lock-unlock.js +2 -1
  457. package/build-module/lock-unlock.js.map +1 -1
  458. package/build-module/store/actions.js +13 -12
  459. package/build-module/store/actions.js.map +1 -1
  460. package/build-module/store/constants.js +2 -1
  461. package/build-module/store/constants.js.map +1 -1
  462. package/build-module/store/index.js +3 -2
  463. package/build-module/store/index.js.map +1 -1
  464. package/build-module/store/private-actions.js +1 -0
  465. package/build-module/store/private-actions.js.map +1 -1
  466. package/build-module/store/private-selectors.js +1 -0
  467. package/build-module/store/private-selectors.js.map +1 -1
  468. package/build-module/store/reducer.js +1 -0
  469. package/build-module/store/reducer.js.map +1 -1
  470. package/build-module/store/selectors.js +10 -9
  471. package/build-module/store/selectors.js.map +1 -1
  472. package/build-module/utils/constants.js +17 -16
  473. package/build-module/utils/constants.js.map +1 -1
  474. package/build-module/utils/get-filtered-template-parts.js +2 -1
  475. package/build-module/utils/get-filtered-template-parts.js.map +1 -1
  476. package/build-module/utils/is-previewing-theme.js +1 -0
  477. package/build-module/utils/is-previewing-theme.js.map +1 -1
  478. package/build-module/utils/is-template-removable.js +1 -0
  479. package/build-module/utils/is-template-removable.js.map +1 -1
  480. package/build-module/utils/is-template-revertable.js +1 -0
  481. package/build-module/utils/is-template-revertable.js.map +2 -2
  482. package/build-module/utils/use-activate-theme.js +2 -1
  483. package/build-module/utils/use-activate-theme.js.map +1 -1
  484. package/build-module/utils/use-actual-current-theme.js +2 -1
  485. package/build-module/utils/use-actual-current-theme.js.map +1 -1
  486. package/build-style/style-rtl.css +41 -40
  487. package/build-style/style.css +41 -40
  488. package/package.json +46 -46
  489. package/src/components/editor/index.js +11 -27
  490. package/src/components/page-patterns/index.js +1 -1
  491. package/src/components/page-templates/fields.js +3 -3
  492. package/src/components/page-templates/index.js +11 -7
  493. package/src/components/page-templates/view-utils.js +7 -0
  494. package/src/index.js +0 -4
  495. package/src/utils/is-template-revertable.js +1 -2
  496. package/build/components/posts-app/index.js +0 -49
  497. package/build/components/posts-app/index.js.map +0 -7
  498. package/build/components/posts-app-routes/index.js +0 -44
  499. package/build/components/posts-app-routes/index.js.map +0 -7
  500. package/build/components/posts-app-routes/post-item.js +0 -59
  501. package/build/components/posts-app-routes/post-item.js.map +0 -7
  502. package/build/components/posts-app-routes/posts.js +0 -104
  503. package/build/components/posts-app-routes/posts.js.map +0 -7
  504. package/build/posts.js +0 -94
  505. package/build/posts.js.map +0 -7
  506. package/build-module/components/posts-app/index.js +0 -19
  507. package/build-module/components/posts-app/index.js.map +0 -7
  508. package/build-module/components/posts-app-routes/index.js +0 -20
  509. package/build-module/components/posts-app-routes/index.js.map +0 -7
  510. package/build-module/components/posts-app-routes/post-item.js +0 -25
  511. package/build-module/components/posts-app-routes/post-item.js.map +0 -7
  512. package/build-module/components/posts-app-routes/posts.js +0 -70
  513. package/build-module/components/posts-app-routes/posts.js.map +0 -7
  514. package/build-module/posts.js +0 -67
  515. package/build-module/posts.js.map +0 -7
  516. package/build-style/posts-rtl.css +0 -3105
  517. package/build-style/posts.css +0 -3105
  518. package/src/components/posts-app/index.js +0 -27
  519. package/src/components/posts-app-routes/index.js +0 -25
  520. package/src/components/posts-app-routes/post-item.js +0 -27
  521. package/src/components/posts-app-routes/posts.js +0 -79
  522. package/src/posts.js +0 -91
  523. package/src/posts.scss +0 -57
@@ -16,6 +16,8 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // packages/edit-site/src/hooks/commands/use-common-commands.js
19
21
  var use_common_commands_exports = {};
20
22
  __export(use_common_commands_exports, {
21
23
  useCommonCommands: () => useCommonCommands
@@ -32,9 +34,9 @@ var import_core_data = require("@wordpress/core-data");
32
34
  var import_editor = require("@wordpress/editor");
33
35
  var import_lock_unlock = require("../../lock-unlock");
34
36
  var import_store = require("../../store");
35
- const { useHistory, useLocation } = (0, import_lock_unlock.unlock)(import_router.privateApis);
36
- const { useGlobalStyles } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
37
- const getGlobalStylesToggleWelcomeGuideCommands = () => function useGlobalStylesToggleWelcomeGuideCommands() {
37
+ var { useHistory, useLocation } = (0, import_lock_unlock.unlock)(import_router.privateApis);
38
+ var { useGlobalStyles } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
39
+ var getGlobalStylesToggleWelcomeGuideCommands = () => function useGlobalStylesToggleWelcomeGuideCommands() {
38
40
  const { openGeneralSidebar } = (0, import_lock_unlock.unlock)((0, import_data.useDispatch)(import_store.store));
39
41
  const { params } = useLocation();
40
42
  const { canvas = "view" } = params;
@@ -73,7 +75,7 @@ const getGlobalStylesToggleWelcomeGuideCommands = () => function useGlobalStyles
73
75
  commands
74
76
  };
75
77
  };
76
- const getGlobalStylesResetCommands = () => function useGlobalStylesResetCommands() {
78
+ var getGlobalStylesResetCommands = () => function useGlobalStylesResetCommands() {
77
79
  const { user, setUser } = useGlobalStyles();
78
80
  const canReset = !!user && (Object.keys(user?.styles ?? {}).length > 0 || Object.keys(user?.settings ?? {}).length > 0);
79
81
  const commands = (0, import_element.useMemo)(() => {
@@ -97,7 +99,7 @@ const getGlobalStylesResetCommands = () => function useGlobalStylesResetCommands
97
99
  commands
98
100
  };
99
101
  };
100
- const getGlobalStylesOpenRevisionsCommands = () => function useGlobalStylesOpenRevisionsCommands() {
102
+ var getGlobalStylesOpenRevisionsCommands = () => function useGlobalStylesOpenRevisionsCommands() {
101
103
  const { openGeneralSidebar } = (0, import_lock_unlock.unlock)((0, import_data.useDispatch)(import_store.store));
102
104
  const { setStylesPath } = (0, import_lock_unlock.unlock)((0, import_data.useDispatch)(import_editor.store));
103
105
  const { params } = useLocation();
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/hooks/commands/use-common-commands.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useMemo } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { __, isRTL } from '@wordpress/i18n';\nimport { rotateLeft, rotateRight, help, backup } from '@wordpress/icons';\nimport { useCommandLoader } from '@wordpress/commands';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport { store as coreStore } from '@wordpress/core-data';\nimport {\n\tstore as editorStore,\n\tprivateApis as editorPrivateApis,\n} from '@wordpress/editor';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\nimport { store as editSiteStore } from '../../store';\n\nconst { useHistory, useLocation } = unlock( routerPrivateApis );\nconst { useGlobalStyles } = unlock( editorPrivateApis );\n\nconst getGlobalStylesToggleWelcomeGuideCommands = () =>\n\tfunction useGlobalStylesToggleWelcomeGuideCommands() {\n\t\tconst { openGeneralSidebar } = unlock( useDispatch( editSiteStore ) );\n\t\tconst { params } = useLocation();\n\t\tconst { canvas = 'view' } = params;\n\t\tconst { set } = useDispatch( preferencesStore );\n\n\t\tconst history = useHistory();\n\t\tconst isBlockBasedTheme = useSelect( ( select ) => {\n\t\t\treturn select( coreStore ).getCurrentTheme().is_block_theme;\n\t\t}, [] );\n\n\t\tconst commands = useMemo( () => {\n\t\t\tif ( ! isBlockBasedTheme ) {\n\t\t\t\treturn [];\n\t\t\t}\n\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\tname: 'core/edit-site/toggle-styles-welcome-guide',\n\t\t\t\t\tlabel: __( 'Learn about styles' ),\n\t\t\t\t\tcallback: ( { close } ) => {\n\t\t\t\t\t\tclose();\n\t\t\t\t\t\tif ( canvas !== 'edit' ) {\n\t\t\t\t\t\t\thistory.navigate( '/styles?canvas=edit', {\n\t\t\t\t\t\t\t\ttransition: 'canvas-mode-edit-transition',\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}\n\t\t\t\t\t\topenGeneralSidebar( 'edit-site/global-styles' );\n\t\t\t\t\t\tset( 'core/edit-site', 'welcomeGuideStyles', true );\n\t\t\t\t\t\t// sometimes there's a focus loss that happens after some time\n\t\t\t\t\t\t// that closes the modal, we need to force reopening it.\n\t\t\t\t\t\tsetTimeout( () => {\n\t\t\t\t\t\t\tset( 'core/edit-site', 'welcomeGuideStyles', true );\n\t\t\t\t\t\t}, 500 );\n\t\t\t\t\t},\n\t\t\t\t\ticon: help,\n\t\t\t\t},\n\t\t\t];\n\t\t}, [ history, openGeneralSidebar, canvas, isBlockBasedTheme, set ] );\n\n\t\treturn {\n\t\t\tisLoading: false,\n\t\t\tcommands,\n\t\t};\n\t};\n\nconst getGlobalStylesResetCommands = () =>\n\tfunction useGlobalStylesResetCommands() {\n\t\tconst { user, setUser } = useGlobalStyles();\n\n\t\t// Check if there are user customizations that can be reset\n\t\tconst canReset =\n\t\t\t!! user &&\n\t\t\t( Object.keys( user?.styles ?? {} ).length > 0 ||\n\t\t\t\tObject.keys( user?.settings ?? {} ).length > 0 );\n\n\t\tconst commands = useMemo( () => {\n\t\t\tif ( ! canReset ) {\n\t\t\t\treturn [];\n\t\t\t}\n\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\tname: 'core/edit-site/reset-global-styles',\n\t\t\t\t\tlabel: __( 'Reset styles' ),\n\t\t\t\t\ticon: isRTL() ? rotateRight : rotateLeft,\n\t\t\t\t\tcallback: ( { close } ) => {\n\t\t\t\t\t\tclose();\n\t\t\t\t\t\tsetUser( { styles: {}, settings: {} } );\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t];\n\t\t}, [ canReset, setUser ] );\n\n\t\treturn {\n\t\t\tisLoading: false,\n\t\t\tcommands,\n\t\t};\n\t};\n\nconst getGlobalStylesOpenRevisionsCommands = () =>\n\tfunction useGlobalStylesOpenRevisionsCommands() {\n\t\tconst { openGeneralSidebar } = unlock( useDispatch( editSiteStore ) );\n\t\tconst { setStylesPath } = unlock( useDispatch( editorStore ) );\n\t\tconst { params } = useLocation();\n\t\tconst { canvas = 'view' } = params;\n\t\tconst history = useHistory();\n\t\tconst hasRevisions = useSelect( ( select ) => {\n\t\t\tconst { getEntityRecord, __experimentalGetCurrentGlobalStylesId } =\n\t\t\t\tselect( coreStore );\n\t\t\tconst globalStylesId = __experimentalGetCurrentGlobalStylesId();\n\t\t\tconst globalStyles = globalStylesId\n\t\t\t\t? getEntityRecord( 'root', 'globalStyles', globalStylesId )\n\t\t\t\t: undefined;\n\n\t\t\treturn !! globalStyles?._links?.[ 'version-history' ]?.[ 0 ]?.count;\n\t\t}, [] );\n\n\t\tconst commands = useMemo( () => {\n\t\t\tif ( ! hasRevisions ) {\n\t\t\t\treturn [];\n\t\t\t}\n\n\t\t\treturn [\n\t\t\t\t{\n\t\t\t\t\tname: 'core/edit-site/open-styles-revisions',\n\t\t\t\t\tlabel: __( 'Open style revisions' ),\n\t\t\t\t\ticon: backup,\n\t\t\t\t\tcallback: ( { close } ) => {\n\t\t\t\t\t\tclose();\n\t\t\t\t\t\tif ( canvas !== 'edit' ) {\n\t\t\t\t\t\t\thistory.navigate( '/styles?canvas=edit', {\n\t\t\t\t\t\t\t\ttransition: 'canvas-mode-edit-transition',\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}\n\t\t\t\t\t\topenGeneralSidebar( 'edit-site/global-styles' );\n\t\t\t\t\t\tsetStylesPath( '/revisions' );\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t];\n\t\t}, [\n\t\t\thistory,\n\t\t\topenGeneralSidebar,\n\t\t\tsetStylesPath,\n\t\t\thasRevisions,\n\t\t\tcanvas,\n\t\t] );\n\n\t\treturn {\n\t\t\tisLoading: false,\n\t\t\tcommands,\n\t\t};\n\t};\n\nexport function useCommonCommands() {\n\tuseCommandLoader( {\n\t\tname: 'core/edit-site/toggle-styles-welcome-guide',\n\t\thook: getGlobalStylesToggleWelcomeGuideCommands(),\n\t} );\n\n\tuseCommandLoader( {\n\t\tname: 'core/edit-site/reset-global-styles',\n\t\thook: getGlobalStylesResetCommands(),\n\t} );\n\n\tuseCommandLoader( {\n\t\tname: 'core/edit-site/open-styles-revisions',\n\t\thook: getGlobalStylesOpenRevisionsCommands(),\n\t} );\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,qBAAwB;AACxB,kBAAuC;AACvC,kBAA0B;AAC1B,mBAAsD;AACtD,sBAAiC;AACjC,oBAAiD;AACjD,yBAA0C;AAC1C,uBAAmC;AACnC,oBAGO;AAKP,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,QAC7B;AAAA,MACD;AAAA,IACD;AAAA,EACD,GAAG;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,CAAE;AAEF,SAAO;AAAA,IACN,WAAW;AAAA,IACX;AAAA,EACD;AACD;AAEM,SAAS,oBAAoB;AACnC,wCAAkB;AAAA,IACjB,MAAM;AAAA,IACN,MAAM,0CAA0C;AAAA,EACjD,CAAE;AAEF,wCAAkB;AAAA,IACjB,MAAM;AAAA,IACN,MAAM,6BAA6B;AAAA,EACpC,CAAE;AAEF,wCAAkB;AAAA,IACjB,MAAM;AAAA,IACN,MAAM,qCAAqC;AAAA,EAC5C,CAAE;AACH;",
6
6
  "names": ["routerPrivateApis", "editorPrivateApis", "editSiteStore", "preferencesStore", "coreStore", "editorStore"]
7
7
  }
@@ -16,6 +16,8 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // packages/edit-site/src/hooks/commands/use-set-command-context.js
19
21
  var use_set_command_context_exports = {};
20
22
  __export(use_set_command_context_exports, {
21
23
  default: () => useSetCommandContext
@@ -26,8 +28,8 @@ var import_commands = require("@wordpress/commands");
26
28
  var import_block_editor = require("@wordpress/block-editor");
27
29
  var import_router = require("@wordpress/router");
28
30
  var import_lock_unlock = require("../../lock-unlock");
29
- const { useCommandContext } = (0, import_lock_unlock.unlock)(import_commands.privateApis);
30
- const { useLocation } = (0, import_lock_unlock.unlock)(import_router.privateApis);
31
+ var { useCommandContext } = (0, import_lock_unlock.unlock)(import_commands.privateApis);
32
+ var { useLocation } = (0, import_lock_unlock.unlock)(import_router.privateApis);
31
33
  function useSetCommandContext() {
32
34
  const { query = {} } = useLocation();
33
35
  const { canvas = "view" } = query;
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/hooks/commands/use-set-command-context.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { useSelect } from '@wordpress/data';\nimport { privateApis as commandsPrivateApis } from '@wordpress/commands';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport { privateApis as routerPrivateApis } from '@wordpress/router';\n\n/**\n * Internal dependencies\n */\nimport { unlock } from '../../lock-unlock';\n\nconst { useCommandContext } = unlock( commandsPrivateApis );\nconst { useLocation } = unlock( routerPrivateApis );\n\n/**\n * React hook used to set the correct command context based on the current state.\n */\nexport default function useSetCommandContext() {\n\tconst { query = {} } = useLocation();\n\tconst { canvas = 'view' } = query;\n\tconst hasBlockSelected = useSelect( ( select ) => {\n\t\treturn select( blockEditorStore ).getBlockSelectionStart();\n\t}, [] );\n\n\t// Sets the right context for the command palette\n\tlet commandContext = 'site-editor';\n\tif ( canvas === 'edit' ) {\n\t\tcommandContext = 'entity-edit';\n\t}\n\tif ( hasBlockSelected ) {\n\t\tcommandContext = 'block-selection-edit';\n\t}\n\tuseCommandContext( commandContext );\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAA0B;AAC1B,sBAAmD;AACnD,0BAA0C;AAC1C,oBAAiD;AAKjD,yBAAuB;AAEvB,MAAM,EAAE,kBAAkB,QAAI,2BAAQ,gBAAAA,WAAoB;AAC1D,MAAM,EAAE,YAAY,QAAI,2BAAQ,cAAAC,WAAkB;AAKnC,SAAR,uBAAwC;AAC9C,QAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,YAAY;AACnC,QAAM,EAAE,SAAS,OAAO,IAAI;AAC5B,QAAM,uBAAmB,uBAAW,CAAE,WAAY;AACjD,WAAO,OAAQ,oBAAAC,KAAiB,EAAE,uBAAuB;AAAA,EAC1D,GAAG,CAAC,CAAE;AAGN,MAAI,iBAAiB;AACrB,MAAK,WAAW,QAAS;AACxB,qBAAiB;AAAA,EAClB;AACA,MAAK,kBAAmB;AACvB,qBAAiB;AAAA,EAClB;AACA,oBAAmB,cAAe;AACnC;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAA0B;AAC1B,sBAAmD;AACnD,0BAA0C;AAC1C,oBAAiD;AAKjD,yBAAuB;AAEvB,IAAM,EAAE,kBAAkB,QAAI,2BAAQ,gBAAAA,WAAoB;AAC1D,IAAM,EAAE,YAAY,QAAI,2BAAQ,cAAAC,WAAkB;AAKnC,SAAR,uBAAwC;AAC9C,QAAM,EAAE,QAAQ,CAAC,EAAE,IAAI,YAAY;AACnC,QAAM,EAAE,SAAS,OAAO,IAAI;AAC5B,QAAM,uBAAmB,uBAAW,CAAE,WAAY;AACjD,WAAO,OAAQ,oBAAAC,KAAiB,EAAE,uBAAuB;AAAA,EAC1D,GAAG,CAAC,CAAE;AAGN,MAAI,iBAAiB;AACrB,MAAK,WAAW,QAAS;AACxB,qBAAiB;AAAA,EAClB;AACA,MAAK,kBAAmB;AACvB,qBAAiB;AAAA,EAClB;AACA,oBAAmB,cAAe;AACnC;",
6
6
  "names": ["commandsPrivateApis", "routerPrivateApis", "blockEditorStore"]
7
7
  }
package/build/index.js CHANGED
@@ -27,16 +27,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  mod
28
28
  ));
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // packages/edit-site/src/index.js
30
32
  var index_exports = {};
31
33
  __export(index_exports, {
32
34
  PluginTemplateSettingPanel: () => import_plugin_template_setting_panel.default,
33
35
  initializeEditor: () => initializeEditor,
34
- initializePostsDashboard: () => import_posts.initializePostsDashboard,
35
36
  reinitializeEditor: () => reinitializeEditor,
36
37
  store: () => import_store2.store
37
38
  });
38
39
  module.exports = __toCommonJS(index_exports);
39
- var import_jsx_runtime = require("react/jsx-runtime");
40
40
  var import_blocks = require("@wordpress/blocks");
41
41
  var import_block_library = require("@wordpress/block-library");
42
42
  var import_data = require("@wordpress/data");
@@ -51,8 +51,8 @@ var import_app = __toESM(require("./components/app"));
51
51
  var import_plugin_template_setting_panel = __toESM(require("./components/plugin-template-setting-panel"));
52
52
  var import_store2 = require("./store");
53
53
  __reExport(index_exports, require("./deprecated"), module.exports);
54
- var import_posts = require("./posts");
55
- const { registerCoreBlockBindingsSources } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
54
+ var import_jsx_runtime = require("react/jsx-runtime");
55
+ var { registerCoreBlockBindingsSources } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
56
56
  function initializeEditor(id, settings) {
57
57
  const target = document.getElementById(id);
58
58
  const root = (0, import_element.createRoot)(target);
@@ -114,7 +114,6 @@ function reinitializeEditor() {
114
114
  0 && (module.exports = {
115
115
  PluginTemplateSettingPanel,
116
116
  initializeEditor,
117
- initializePostsDashboard,
118
117
  reinitializeEditor,
119
118
  store,
120
119
  ...require("./deprecated")
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.js"],
4
- "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { store as blocksStore } from '@wordpress/blocks';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport { dispatch } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\n\n/**\n * Internal dependencies\n */\nimport { store as editSiteStore } from './store';\nimport { unlock } from './lock-unlock';\nimport App from './components/app';\n\nconst { registerCoreBlockBindingsSources } = unlock( editorPrivateApis );\n\n/**\n * Initializes the site editor screen.\n *\n * @param {string} id ID of the root element to render the screen in.\n * @param {Object} settings Editor settings.\n */\nexport function initializeEditor( id, settings ) {\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter(\n\t\t( { name } ) => name !== 'core/freeform'\n\t);\n\tregisterCoreBlocks( coreBlocks );\n\tregisterCoreBlockBindingsSources();\n\tdispatch( blocksStore ).setFreeformFallbackBlockName( 'core/html' );\n\tregisterLegacyWidgetBlock( { inserter: false } );\n\tregisterWidgetGroupBlock( { inserter: false } );\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: true,\n\t\t} );\n\t}\n\n\t// We dispatch actions and update the store synchronously before rendering\n\t// so that we won't trigger unnecessary re-renders with useEffect.\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-site', {\n\t\twelcomeGuide: true,\n\t\twelcomeGuideStyles: true,\n\t\twelcomeGuidePage: true,\n\t\twelcomeGuideTemplate: true,\n\t} );\n\n\tdispatch( preferencesStore ).setDefaults( 'core', {\n\t\tallowRightClickOverrides: true,\n\t\tdistractionFree: false,\n\t\teditorMode: 'visual',\n\t\teditorTool: 'edit',\n\t\tfixedToolbar: false,\n\t\tfocusMode: false,\n\t\tinactivePanels: [],\n\t\tkeepCaretInsideBlock: false,\n\t\topenPanels: [ 'post-status' ],\n\t\tshowBlockBreadcrumbs: true,\n\t\tshowListViewByDefault: false,\n\t\tenableChoosePatternModal: true,\n\t} );\n\n\tif ( window.__experimentalMediaProcessing ) {\n\t\tdispatch( preferencesStore ).setDefaults( 'core/media', {\n\t\t\trequireApproval: true,\n\t\t\toptimizeOnUpload: true,\n\t\t} );\n\t}\n\n\tdispatch( editSiteStore ).updateSettings( settings );\n\n\t// Prevent the default browser action for files dropped outside of dropzones.\n\twindow.addEventListener( 'dragover', ( e ) => e.preventDefault(), false );\n\twindow.addEventListener( 'drop', ( e ) => e.preventDefault(), false );\n\n\troot.render(\n\t\t<StrictMode>\n\t\t\t<App />\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editSite.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\nexport { default as PluginTemplateSettingPanel } from './components/plugin-template-setting-panel';\nexport { store } from './store';\nexport * from './deprecated';\n\n// Temporary: While the posts dashboard is being iterated on\n// it's being built in the same package as the site editor.\nexport { initializePostsDashboard } from './posts';\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4FG;AAzFH,oBAAqC;AACrC,2BAIO;AACP,kBAAyB;AACzB,wBAAuB;AACvB,qBAAuC;AACvC,oBAAiD;AACjD,yBAA0C;AAC1C,qBAGO;AAKP,mBAAuC;AACvC,yBAAuB;AACvB,iBAAgB;AAkFhB,2CAAsD;AACtD,IAAAA,gBAAsB;AACtB,0BAAc,yBA5Gd;AAgHA,mBAAyC;AAtFzC,MAAM,EAAE,iCAAiC,QAAI,2BAAQ,cAAAC,WAAkB;AAQhE,SAAS,iBAAkB,IAAI,UAAW;AAChD,QAAM,SAAS,SAAS,eAAgB,EAAG;AAC3C,QAAM,WAAO,2BAAY,MAAO;AAEhC,4BAAU,cAAAC,KAAY,EAAE,wBAAwB;AAChD,QAAM,iBAAa,kDAA4B,EAAE;AAAA,IAChD,CAAE,EAAE,KAAK,MAAO,SAAS;AAAA,EAC1B;AACA,+CAAoB,UAAW;AAC/B,mCAAiC;AACjC,4BAAU,cAAAA,KAAY,EAAE,6BAA8B,WAAY;AAClE,gDAA2B,EAAE,UAAU,MAAM,CAAE;AAC/C,+CAA0B,EAAE,UAAU,MAAM,CAAE;AAC9C,MAAK,WAAW,qBAAsB;AACrC,2EAA8C;AAAA,MAC7C,iBAAiB;AAAA,IAClB,CAAE;AAAA,EACH;AAIA,4BAAU,mBAAAC,KAAiB,EAAE,YAAa,kBAAkB;AAAA,IAC3D,cAAc;AAAA,IACd,oBAAoB;AAAA,IACpB,kBAAkB;AAAA,IAClB,sBAAsB;AAAA,EACvB,CAAE;AAEF,4BAAU,mBAAAA,KAAiB,EAAE,YAAa,QAAQ;AAAA,IACjD,0BAA0B;AAAA,IAC1B,iBAAiB;AAAA,IACjB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,gBAAgB,CAAC;AAAA,IACjB,sBAAsB;AAAA,IACtB,YAAY,CAAE,aAAc;AAAA,IAC5B,sBAAsB;AAAA,IACtB,uBAAuB;AAAA,IACvB,0BAA0B;AAAA,EAC3B,CAAE;AAEF,MAAK,OAAO,+BAAgC;AAC3C,8BAAU,mBAAAA,KAAiB,EAAE,YAAa,cAAc;AAAA,MACvD,iBAAiB;AAAA,MACjB,kBAAkB;AAAA,IACnB,CAAE;AAAA,EACH;AAEA,4BAAU,aAAAC,KAAc,EAAE,eAAgB,QAAS;AAGnD,SAAO,iBAAkB,YAAY,CAAE,MAAO,EAAE,eAAe,GAAG,KAAM;AACxE,SAAO,iBAAkB,QAAQ,CAAE,MAAO,EAAE,eAAe,GAAG,KAAM;AAEpE,OAAK;AAAA,IACJ,4CAAC,6BACA,sDAAC,WAAAC,SAAA,EAAI,GACN;AAAA,EACD;AAEA,SAAO;AACR;AAEO,SAAS,qBAAqB;AACpC,wBAAAC,SAAY,kCAAkC;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EACV,CAAE;AACH;",
4
+ "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { store as blocksStore } from '@wordpress/blocks';\nimport {\n\tregisterCoreBlocks,\n\t__experimentalGetCoreBlocks,\n\t__experimentalRegisterExperimentalCoreBlocks,\n} from '@wordpress/block-library';\nimport { dispatch } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { createRoot, StrictMode } from '@wordpress/element';\nimport { privateApis as editorPrivateApis } from '@wordpress/editor';\nimport { store as preferencesStore } from '@wordpress/preferences';\nimport {\n\tregisterLegacyWidgetBlock,\n\tregisterWidgetGroupBlock,\n} from '@wordpress/widgets';\n\n/**\n * Internal dependencies\n */\nimport { store as editSiteStore } from './store';\nimport { unlock } from './lock-unlock';\nimport App from './components/app';\n\nconst { registerCoreBlockBindingsSources } = unlock( editorPrivateApis );\n\n/**\n * Initializes the site editor screen.\n *\n * @param {string} id ID of the root element to render the screen in.\n * @param {Object} settings Editor settings.\n */\nexport function initializeEditor( id, settings ) {\n\tconst target = document.getElementById( id );\n\tconst root = createRoot( target );\n\n\tdispatch( blocksStore ).reapplyBlockTypeFilters();\n\tconst coreBlocks = __experimentalGetCoreBlocks().filter(\n\t\t( { name } ) => name !== 'core/freeform'\n\t);\n\tregisterCoreBlocks( coreBlocks );\n\tregisterCoreBlockBindingsSources();\n\tdispatch( blocksStore ).setFreeformFallbackBlockName( 'core/html' );\n\tregisterLegacyWidgetBlock( { inserter: false } );\n\tregisterWidgetGroupBlock( { inserter: false } );\n\tif ( globalThis.IS_GUTENBERG_PLUGIN ) {\n\t\t__experimentalRegisterExperimentalCoreBlocks( {\n\t\t\tenableFSEBlocks: true,\n\t\t} );\n\t}\n\n\t// We dispatch actions and update the store synchronously before rendering\n\t// so that we won't trigger unnecessary re-renders with useEffect.\n\tdispatch( preferencesStore ).setDefaults( 'core/edit-site', {\n\t\twelcomeGuide: true,\n\t\twelcomeGuideStyles: true,\n\t\twelcomeGuidePage: true,\n\t\twelcomeGuideTemplate: true,\n\t} );\n\n\tdispatch( preferencesStore ).setDefaults( 'core', {\n\t\tallowRightClickOverrides: true,\n\t\tdistractionFree: false,\n\t\teditorMode: 'visual',\n\t\teditorTool: 'edit',\n\t\tfixedToolbar: false,\n\t\tfocusMode: false,\n\t\tinactivePanels: [],\n\t\tkeepCaretInsideBlock: false,\n\t\topenPanels: [ 'post-status' ],\n\t\tshowBlockBreadcrumbs: true,\n\t\tshowListViewByDefault: false,\n\t\tenableChoosePatternModal: true,\n\t} );\n\n\tif ( window.__experimentalMediaProcessing ) {\n\t\tdispatch( preferencesStore ).setDefaults( 'core/media', {\n\t\t\trequireApproval: true,\n\t\t\toptimizeOnUpload: true,\n\t\t} );\n\t}\n\n\tdispatch( editSiteStore ).updateSettings( settings );\n\n\t// Prevent the default browser action for files dropped outside of dropzones.\n\twindow.addEventListener( 'dragover', ( e ) => e.preventDefault(), false );\n\twindow.addEventListener( 'drop', ( e ) => e.preventDefault(), false );\n\n\troot.render(\n\t\t<StrictMode>\n\t\t\t<App />\n\t\t</StrictMode>\n\t);\n\n\treturn root;\n}\n\nexport function reinitializeEditor() {\n\tdeprecated( 'wp.editSite.reinitializeEditor', {\n\t\tsince: '6.2',\n\t\tversion: '6.3',\n\t} );\n}\n\nexport { default as PluginTemplateSettingPanel } from './components/plugin-template-setting-panel';\nexport { store } from './store';\nexport * from './deprecated';\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,oBAAqC;AACrC,2BAIO;AACP,kBAAyB;AACzB,wBAAuB;AACvB,qBAAuC;AACvC,oBAAiD;AACjD,yBAA0C;AAC1C,qBAGO;AAKP,mBAAuC;AACvC,yBAAuB;AACvB,iBAAgB;AAkFhB,2CAAsD;AACtD,IAAAA,gBAAsB;AACtB,0BAAc,yBA5Gd;AA4FG;AAlEH,IAAM,EAAE,iCAAiC,QAAI,2BAAQ,cAAAC,WAAkB;AAQhE,SAAS,iBAAkB,IAAI,UAAW;AAChD,QAAM,SAAS,SAAS,eAAgB,EAAG;AAC3C,QAAM,WAAO,2BAAY,MAAO;AAEhC,4BAAU,cAAAC,KAAY,EAAE,wBAAwB;AAChD,QAAM,iBAAa,kDAA4B,EAAE;AAAA,IAChD,CAAE,EAAE,KAAK,MAAO,SAAS;AAAA,EAC1B;AACA,+CAAoB,UAAW;AAC/B,mCAAiC;AACjC,4BAAU,cAAAA,KAAY,EAAE,6BAA8B,WAAY;AAClE,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
@@ -16,6 +16,8 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // packages/edit-site/src/lock-unlock.js
19
21
  var lock_unlock_exports = {};
20
22
  __export(lock_unlock_exports, {
21
23
  lock: () => lock,
@@ -23,7 +25,7 @@ __export(lock_unlock_exports, {
23
25
  });
24
26
  module.exports = __toCommonJS(lock_unlock_exports);
25
27
  var import_private_apis = require("@wordpress/private-apis");
26
- const { lock, unlock } = (0, import_private_apis.__dangerousOptInToUnstableAPIsOnlyForCoreModules)(
28
+ var { lock, unlock } = (0, import_private_apis.__dangerousOptInToUnstableAPIsOnlyForCoreModules)(
27
29
  "I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.",
28
30
  "@wordpress/edit-site"
29
31
  );
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/lock-unlock.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { __dangerousOptInToUnstableAPIsOnlyForCoreModules } from '@wordpress/private-apis';\n\nexport const { lock, unlock } =\n\t__dangerousOptInToUnstableAPIsOnlyForCoreModules(\n\t\t'I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.',\n\t\t'@wordpress/edit-site'\n\t);\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,0BAAiE;AAE1D,MAAM,EAAE,MAAM,OAAO,QAC3B;AAAA,EACC;AAAA,EACA;AACD;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,0BAAiE;AAE1D,IAAM,EAAE,MAAM,OAAO,QAC3B;AAAA,EACC;AAAA,EACA;AACD;",
6
6
  "names": []
7
7
  }
@@ -26,6 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // packages/edit-site/src/store/actions.js
29
31
  var actions_exports = {};
30
32
  __export(actions_exports, {
31
33
  __experimentalSetPreviewDeviceType: () => __experimentalSetPreviewDeviceType,
@@ -62,7 +64,7 @@ var import_editor = require("@wordpress/editor");
62
64
  var import_preferences = require("@wordpress/preferences");
63
65
  var import_constants = require("../utils/constants");
64
66
  var import_lock_unlock = require("../lock-unlock");
65
- const { interfaceStore } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
67
+ var { interfaceStore } = (0, import_lock_unlock.unlock)(import_editor.privateApis);
66
68
  function toggleFeature(featureName) {
67
69
  return function({ registry }) {
68
70
  (0, import_deprecated.default)(
@@ -75,7 +77,7 @@ function toggleFeature(featureName) {
75
77
  registry.dispatch(import_preferences.store).toggle("core/edit-site", featureName);
76
78
  };
77
79
  }
78
- const __experimentalSetPreviewDeviceType = (deviceType) => ({ registry }) => {
80
+ var __experimentalSetPreviewDeviceType = (deviceType) => ({ registry }) => {
79
81
  (0, import_deprecated.default)(
80
82
  "dispatch( 'core/edit-site' ).__experimentalSetPreviewDeviceType",
81
83
  {
@@ -96,7 +98,7 @@ function setTemplate() {
96
98
  type: "NOTHING"
97
99
  };
98
100
  }
99
- const addTemplate = (template) => async ({ dispatch, registry }) => {
101
+ var addTemplate = (template) => async ({ dispatch, registry }) => {
100
102
  (0, import_deprecated.default)("dispatch( 'core/edit-site' ).addTemplate", {
101
103
  since: "6.5",
102
104
  version: "6.8",
@@ -118,7 +120,7 @@ const addTemplate = (template) => async ({ dispatch, registry }) => {
118
120
  id: newTemplate.id
119
121
  });
120
122
  };
121
- const removeTemplate = (template) => ({ registry }) => {
123
+ var removeTemplate = (template) => ({ registry }) => {
122
124
  return (0, import_lock_unlock.unlock)(registry.dispatch(import_editor.store)).removeTemplates([
123
125
  template
124
126
  ]);
@@ -198,14 +200,14 @@ function setIsNavigationPanelOpened() {
198
200
  });
199
201
  return { type: "NOTHING" };
200
202
  }
201
- const setIsInserterOpened = (value) => ({ registry }) => {
203
+ var setIsInserterOpened = (value) => ({ registry }) => {
202
204
  (0, import_deprecated.default)("dispatch( 'core/edit-site' ).setIsInserterOpened", {
203
205
  since: "6.5",
204
206
  alternative: "dispatch( 'core/editor').setIsInserterOpened"
205
207
  });
206
208
  registry.dispatch(import_editor.store).setIsInserterOpened(value);
207
209
  };
208
- const setIsListViewOpened = (isOpen) => ({ registry }) => {
210
+ var setIsListViewOpened = (isOpen) => ({ registry }) => {
209
211
  (0, import_deprecated.default)("dispatch( 'core/edit-site' ).setIsListViewOpened", {
210
212
  since: "6.5",
211
213
  alternative: "dispatch( 'core/editor').setIsListViewOpened"
@@ -224,26 +226,26 @@ function setIsSaveViewOpened(isOpen) {
224
226
  isOpen
225
227
  };
226
228
  }
227
- const revertTemplate = (template, options) => ({ registry }) => {
229
+ var revertTemplate = (template, options) => ({ registry }) => {
228
230
  return (0, import_lock_unlock.unlock)(registry.dispatch(import_editor.store)).revertTemplate(
229
231
  template,
230
232
  options
231
233
  );
232
234
  };
233
- const openGeneralSidebar = (name) => ({ registry }) => {
235
+ var openGeneralSidebar = (name) => ({ registry }) => {
234
236
  registry.dispatch(interfaceStore).enableComplementaryArea("core", name);
235
237
  };
236
- const closeGeneralSidebar = () => ({ registry }) => {
238
+ var closeGeneralSidebar = () => ({ registry }) => {
237
239
  registry.dispatch(interfaceStore).disableComplementaryArea("core");
238
240
  };
239
- const switchEditorMode = (mode) => ({ registry }) => {
241
+ var switchEditorMode = (mode) => ({ registry }) => {
240
242
  (0, import_deprecated.default)("dispatch( 'core/edit-site' ).switchEditorMode", {
241
243
  since: "6.6",
242
244
  alternative: "dispatch( 'core/editor').switchEditorMode"
243
245
  });
244
246
  registry.dispatch(import_editor.store).switchEditorMode(mode);
245
247
  };
246
- const setHasPageContentFocus = (hasPageContentFocus) => ({ dispatch, registry }) => {
248
+ var setHasPageContentFocus = (hasPageContentFocus) => ({ dispatch, registry }) => {
247
249
  (0, import_deprecated.default)(`dispatch( 'core/edit-site' ).setHasPageContentFocus`, {
248
250
  since: "6.5"
249
251
  });
@@ -255,7 +257,7 @@ const setHasPageContentFocus = (hasPageContentFocus) => ({ dispatch, registry })
255
257
  hasPageContentFocus
256
258
  });
257
259
  };
258
- const toggleDistractionFree = () => ({ registry }) => {
260
+ var toggleDistractionFree = () => ({ registry }) => {
259
261
  (0, import_deprecated.default)("dispatch( 'core/edit-site' ).toggleDistractionFree", {
260
262
  since: "6.6",
261
263
  alternative: "dispatch( 'core/editor').toggleDistractionFree"
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/store/actions.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { parse } from '@wordpress/blocks';\nimport deprecated from '@wordpress/deprecated';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { store as blockEditorStore } from '@wordpress/block-editor';\nimport {\n\tstore as editorStore,\n\tprivateApis as editorPrivateApis,\n} from '@wordpress/editor';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport {\n\tTEMPLATE_POST_TYPE,\n\tTEMPLATE_PART_POST_TYPE,\n\tNAVIGATION_POST_TYPE,\n} from '../utils/constants';\nimport { unlock } from '../lock-unlock';\n\nconst { interfaceStore } = unlock( editorPrivateApis );\n\n/**\n * Dispatches an action that toggles a feature flag.\n *\n * @param {string} featureName Feature name.\n */\nexport function toggleFeature( featureName ) {\n\treturn function ( { registry } ) {\n\t\tdeprecated(\n\t\t\t\"dispatch( 'core/edit-site' ).toggleFeature( featureName )\",\n\t\t\t{\n\t\t\t\tsince: '6.0',\n\t\t\t\talternative:\n\t\t\t\t\t\"dispatch( 'core/preferences').toggle( 'core/edit-site', featureName )\",\n\t\t\t}\n\t\t);\n\n\t\tregistry\n\t\t\t.dispatch( preferencesStore )\n\t\t\t.toggle( 'core/edit-site', featureName );\n\t};\n}\n\n/**\n * Action that changes the width of the editing canvas.\n *\n * @deprecated\n *\n * @param {string} deviceType\n *\n * @return {Object} Action object.\n */\nexport const __experimentalSetPreviewDeviceType =\n\t( deviceType ) =>\n\t( { registry } ) => {\n\t\tdeprecated(\n\t\t\t\"dispatch( 'core/edit-site' ).__experimentalSetPreviewDeviceType\",\n\t\t\t{\n\t\t\t\tsince: '6.5',\n\t\t\t\tversion: '6.7',\n\t\t\t\thint: 'registry.dispatch( editorStore ).setDeviceType',\n\t\t\t}\n\t\t);\n\t\tregistry.dispatch( editorStore ).setDeviceType( deviceType );\n\t};\n\n/**\n * Action that sets a template, optionally fetching it from REST API.\n *\n * @return {Object} Action object.\n */\nexport function setTemplate() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).setTemplate\", {\n\t\tsince: '6.5',\n\t\tversion: '6.8',\n\t\thint: 'The setTemplate is not needed anymore, the correct entity is resolved from the URL automatically.',\n\t} );\n\n\treturn {\n\t\ttype: 'NOTHING',\n\t};\n}\n\n/**\n * Action that adds a new template and sets it as the current template.\n *\n * @param {Object} template The template.\n *\n * @deprecated\n *\n * @return {Object} Action object used to set the current template.\n */\nexport const addTemplate =\n\t( template ) =>\n\tasync ( { dispatch, registry } ) => {\n\t\tdeprecated( \"dispatch( 'core/edit-site' ).addTemplate\", {\n\t\t\tsince: '6.5',\n\t\t\tversion: '6.8',\n\t\t\thint: 'use saveEntityRecord directly',\n\t\t} );\n\n\t\tconst newTemplate = await registry\n\t\t\t.dispatch( coreStore )\n\t\t\t.saveEntityRecord( 'postType', TEMPLATE_POST_TYPE, template );\n\n\t\tif ( template.content ) {\n\t\t\tregistry\n\t\t\t\t.dispatch( coreStore )\n\t\t\t\t.editEntityRecord(\n\t\t\t\t\t'postType',\n\t\t\t\t\tTEMPLATE_POST_TYPE,\n\t\t\t\t\tnewTemplate.id,\n\t\t\t\t\t{ blocks: parse( template.content ) },\n\t\t\t\t\t{ undoIgnore: true }\n\t\t\t\t);\n\t\t}\n\n\t\tdispatch( {\n\t\t\ttype: 'SET_EDITED_POST',\n\t\t\tpostType: TEMPLATE_POST_TYPE,\n\t\t\tid: newTemplate.id,\n\t\t} );\n\t};\n\n/**\n * Action that removes a template.\n *\n * @param {Object} template The template object.\n */\nexport const removeTemplate =\n\t( template ) =>\n\t( { registry } ) => {\n\t\treturn unlock( registry.dispatch( editorStore ) ).removeTemplates( [\n\t\t\ttemplate,\n\t\t] );\n\t};\n\n/**\n * Action that sets a template part.\n *\n * @deprecated\n * @param {string} templatePartId The template part ID.\n *\n * @return {Object} Action object.\n */\nexport function setTemplatePart( templatePartId ) {\n\tdeprecated( \"dispatch( 'core/edit-site' ).setTemplatePart\", {\n\t\tsince: '6.8',\n\t} );\n\n\treturn {\n\t\ttype: 'SET_EDITED_POST',\n\t\tpostType: TEMPLATE_PART_POST_TYPE,\n\t\tid: templatePartId,\n\t};\n}\n\n/**\n * Action that sets a navigation menu.\n *\n * @deprecated\n * @param {string} navigationMenuId The Navigation Menu Post ID.\n *\n * @return {Object} Action object.\n */\nexport function setNavigationMenu( navigationMenuId ) {\n\tdeprecated( \"dispatch( 'core/edit-site' ).setNavigationMenu\", {\n\t\tsince: '6.8',\n\t} );\n\n\treturn {\n\t\ttype: 'SET_EDITED_POST',\n\t\tpostType: NAVIGATION_POST_TYPE,\n\t\tid: navigationMenuId,\n\t};\n}\n\n/**\n * Action that sets an edited entity.\n *\n * @deprecated\n * @param {string} postType The entity's post type.\n * @param {string} postId The entity's ID.\n * @param {Object} context The entity's context.\n *\n * @return {Object} Action object.\n */\nexport function setEditedEntity( postType, postId, context ) {\n\treturn {\n\t\ttype: 'SET_EDITED_POST',\n\t\tpostType,\n\t\tid: postId,\n\t\tcontext,\n\t};\n}\n\n/**\n * @deprecated\n */\nexport function setHomeTemplateId() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).setHomeTemplateId\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n\n\treturn {\n\t\ttype: 'NOTHING',\n\t};\n}\n\n/**\n * Set's the current block editor context.\n *\n * @deprecated\n * @param {Object} context The context object.\n *\n * @return {Object} Action object.\n */\nexport function setEditedPostContext( context ) {\n\tdeprecated( \"dispatch( 'core/edit-site' ).setEditedPostContext\", {\n\t\tsince: '6.8',\n\t} );\n\treturn {\n\t\ttype: 'SET_EDITED_POST_CONTEXT',\n\t\tcontext,\n\t};\n}\n\n/**\n * Resolves the template for a page and displays both. If no path is given, attempts\n * to use the postId to generate a path like `?p=${ postId }`.\n *\n * @deprecated\n *\n * @return {Object} Action object.\n */\nexport function setPage() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).setPage\", {\n\t\tsince: '6.5',\n\t\tversion: '6.8',\n\t\thint: 'The setPage is not needed anymore, the correct entity is resolved from the URL automatically.',\n\t} );\n\n\treturn { type: 'NOTHING' };\n}\n\n/**\n * Action that sets the active navigation panel menu.\n *\n * @deprecated\n *\n * @return {Object} Action object.\n */\nexport function setNavigationPanelActiveMenu() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).setNavigationPanelActiveMenu\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n\n\treturn { type: 'NOTHING' };\n}\n\n/**\n * Opens the navigation panel and sets its active menu at the same time.\n *\n * @deprecated\n */\nexport function openNavigationPanelToMenu() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).openNavigationPanelToMenu\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n\n\treturn { type: 'NOTHING' };\n}\n\n/**\n * Sets whether the navigation panel should be open.\n *\n * @deprecated\n */\nexport function setIsNavigationPanelOpened() {\n\tdeprecated( \"dispatch( 'core/edit-site' ).setIsNavigationPanelOpened\", {\n\t\tsince: '6.2',\n\t\tversion: '6.4',\n\t} );\n\n\treturn { type: 'NOTHING' };\n}\n\n/**\n * Returns an action object used to open/close the inserter.\n *\n * @deprecated\n *\n * @param {boolean|Object} value Whether the inserter should be opened (true) or closed (false).\n */\nexport const setIsInserterOpened =\n\t( value ) =>\n\t( { registry } ) => {\n\t\tdeprecated( \"dispatch( 'core/edit-site' ).setIsInserterOpened\", {\n\t\t\tsince: '6.5',\n\t\t\talternative: \"dispatch( 'core/editor').setIsInserterOpened\",\n\t\t} );\n\t\tregistry.dispatch( editorStore ).setIsInserterOpened( value );\n\t};\n\n/**\n * Returns an action object used to open/close the list view.\n *\n * @deprecated\n *\n * @param {boolean} isOpen A boolean representing whether the list view should be opened or closed.\n */\nexport const setIsListViewOpened =\n\t( isOpen ) =>\n\t( { registry } ) => {\n\t\tdeprecated( \"dispatch( 'core/edit-site' ).setIsListViewOpened\", {\n\t\t\tsince: '6.5',\n\t\t\talternative: \"dispatch( 'core/editor').setIsListViewOpened\",\n\t\t} );\n\t\tregistry.dispatch( editorStore ).setIsListViewOpened( isOpen );\n\t};\n\n/**\n * Returns an action object used to update the settings.\n *\n * @param {Object} settings New settings.\n *\n * @return {Object} Action object.\n */\nexport function updateSettings( settings ) {\n\treturn {\n\t\ttype: 'UPDATE_SETTINGS',\n\t\tsettings,\n\t};\n}\n\n/**\n * Sets whether the save view panel should be open.\n *\n * @param {boolean} isOpen If true, opens the save view. If false, closes it.\n * It does not toggle the state, but sets it directly.\n */\nexport function setIsSaveViewOpened( isOpen ) {\n\treturn {\n\t\ttype: 'SET_IS_SAVE_VIEW_OPENED',\n\t\tisOpen,\n\t};\n}\n\n/**\n * Reverts a template to its original theme-provided file.\n *\n * @param {Object} template The template to revert.\n * @param {Object} [options]\n * @param {boolean} [options.allowUndo] Whether to allow the user to undo\n * reverting the template. Default true.\n */\nexport const revertTemplate =\n\t( template, options ) =>\n\t( { registry } ) => {\n\t\treturn unlock( registry.dispatch( editorStore ) ).revertTemplate(\n\t\t\ttemplate,\n\t\t\toptions\n\t\t);\n\t};\n\n/**\n * Action that opens an editor sidebar.\n *\n * @param {?string} name Sidebar name to be opened.\n */\nexport const openGeneralSidebar =\n\t( name ) =>\n\t( { registry } ) => {\n\t\tregistry\n\t\t\t.dispatch( interfaceStore )\n\t\t\t.enableComplementaryArea( 'core', name );\n\t};\n\n/**\n * Action that closes the sidebar.\n */\nexport const closeGeneralSidebar =\n\t() =>\n\t( { registry } ) => {\n\t\tregistry.dispatch( interfaceStore ).disableComplementaryArea( 'core' );\n\t};\n\n/**\n * Triggers an action used to switch editor mode.\n *\n * @deprecated\n *\n * @param {string} mode The editor mode.\n */\nexport const switchEditorMode =\n\t( mode ) =>\n\t( { registry } ) => {\n\t\tdeprecated( \"dispatch( 'core/edit-site' ).switchEditorMode\", {\n\t\t\tsince: '6.6',\n\t\t\talternative: \"dispatch( 'core/editor').switchEditorMode\",\n\t\t} );\n\t\tregistry.dispatch( editorStore ).switchEditorMode( mode );\n\t};\n\n/**\n * Sets whether or not the editor allows only page content to be edited.\n *\n * @param {boolean} hasPageContentFocus True to allow only page content to be\n * edited, false to allow template to be\n * edited.\n */\nexport const setHasPageContentFocus =\n\t( hasPageContentFocus ) =>\n\t( { dispatch, registry } ) => {\n\t\tdeprecated( `dispatch( 'core/edit-site' ).setHasPageContentFocus`, {\n\t\t\tsince: '6.5',\n\t\t} );\n\n\t\tif ( hasPageContentFocus ) {\n\t\t\tregistry.dispatch( blockEditorStore ).clearSelectedBlock();\n\t\t}\n\t\tdispatch( {\n\t\t\ttype: 'SET_HAS_PAGE_CONTENT_FOCUS',\n\t\t\thasPageContentFocus,\n\t\t} );\n\t};\n\n/**\n * Action that toggles Distraction free mode.\n * Distraction free mode expects there are no sidebars, as due to the\n * z-index values set, you can't close sidebars.\n *\n * @deprecated\n */\nexport const toggleDistractionFree =\n\t() =>\n\t( { registry } ) => {\n\t\tdeprecated( \"dispatch( 'core/edit-site' ).toggleDistractionFree\", {\n\t\t\tsince: '6.6',\n\t\t\talternative: \"dispatch( 'core/editor').toggleDistractionFree\",\n\t\t} );\n\t\tregistry.dispatch( editorStore ).toggleDistractionFree();\n\t};\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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yBACZ,CAAE,wBACF,CAAE,EAAE,UAAU,SAAS,MAAO;AAC7B,wBAAAF,SAAY,uDAAuD;AAAA,IAClE,OAAO;AAAA,EACR,CAAE;AAEF,MAAK,qBAAsB;AAC1B,aAAS,SAAU,oBAAAI,KAAiB,EAAE,mBAAmB;AAAA,EAC1D;AACA,WAAU;AAAA,IACT,MAAM;AAAA,IACN;AAAA,EACD,CAAE;AACH;AASM,IAAM,wBACZ,MACA,CAAE,EAAE,SAAS,MAAO;AACnB,wBAAAJ,SAAY,sDAAsD;AAAA,IACjE,OAAO;AAAA,IACP,aAAa;AAAA,EACd,CAAE;AACF,WAAS,SAAU,cAAAE,KAAY,EAAE,sBAAsB;AACxD;",
6
6
  "names": ["editorPrivateApis", "deprecated", "preferencesStore", "editorStore", "coreStore", "blockEditorStore"]
7
7
  }
@@ -16,12 +16,14 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // packages/edit-site/src/store/constants.js
19
21
  var constants_exports = {};
20
22
  __export(constants_exports, {
21
23
  STORE_NAME: () => STORE_NAME
22
24
  });
23
25
  module.exports = __toCommonJS(constants_exports);
24
- const STORE_NAME = "core/edit-site";
26
+ var STORE_NAME = "core/edit-site";
25
27
  // Annotate the CommonJS export names for ESM import in node:
26
28
  0 && (module.exports = {
27
29
  STORE_NAME
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/store/constants.js"],
4
4
  "sourcesContent": ["/**\n * The identifier for the data store.\n *\n * @type {string}\n */\nexport const STORE_NAME = 'core/edit-site';\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,MAAM,aAAa;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,IAAM,aAAa;",
6
6
  "names": []
7
7
  }
@@ -26,6 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // packages/edit-site/src/store/index.js
29
31
  var store_exports = {};
30
32
  __export(store_exports, {
31
33
  store: () => store,
@@ -40,12 +42,12 @@ var selectors = __toESM(require("./selectors"));
40
42
  var privateSelectors = __toESM(require("./private-selectors"));
41
43
  var import_constants = require("./constants");
42
44
  var import_lock_unlock = require("../lock-unlock");
43
- const storeConfig = {
45
+ var storeConfig = {
44
46
  reducer: import_reducer.default,
45
47
  actions,
46
48
  selectors
47
49
  };
48
- const store = (0, import_data.createReduxStore)(import_constants.STORE_NAME, storeConfig);
50
+ var store = (0, import_data.createReduxStore)(import_constants.STORE_NAME, storeConfig);
49
51
  (0, import_data.register)(store);
50
52
  (0, import_lock_unlock.unlock)(store).registerPrivateSelectors(privateSelectors);
51
53
  (0, import_lock_unlock.unlock)(store).registerPrivateActions(privateActions);
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/store/index.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { createReduxStore, register } from '@wordpress/data';\n\n/**\n * Internal dependencies\n */\nimport reducer from './reducer';\nimport * as actions from './actions';\nimport * as privateActions from './private-actions';\nimport * as selectors from './selectors';\nimport * as privateSelectors from './private-selectors';\nimport { STORE_NAME } from './constants';\nimport { unlock } from '../lock-unlock';\n\nexport const storeConfig = {\n\treducer,\n\tactions,\n\tselectors,\n};\n\nexport const store = createReduxStore( STORE_NAME, storeConfig );\nregister( store );\nunlock( store ).registerPrivateSelectors( privateSelectors );\nunlock( store ).registerPrivateActions( privateActions );\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAA2C;AAK3C,qBAAoB;AACpB,cAAyB;AACzB,qBAAgC;AAChC,gBAA2B;AAC3B,uBAAkC;AAClC,uBAA2B;AAC3B,yBAAuB;AAEhB,MAAM,cAAc;AAAA,EAC1B,wBAAAA;AAAA,EACA;AAAA,EACA;AACD;AAEO,MAAM,YAAQ,8BAAkB,6BAAY,WAAY;AAAA,IAC/D,sBAAU,KAAM;AAAA,IAChB,2BAAQ,KAAM,EAAE,yBAA0B,gBAAiB;AAAA,IAC3D,2BAAQ,KAAM,EAAE,uBAAwB,cAAe;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,kBAA2C;AAK3C,qBAAoB;AACpB,cAAyB;AACzB,qBAAgC;AAChC,gBAA2B;AAC3B,uBAAkC;AAClC,uBAA2B;AAC3B,yBAAuB;AAEhB,IAAM,cAAc;AAAA,EAC1B,wBAAAA;AAAA,EACA;AAAA,EACA;AACD;AAEO,IAAM,YAAQ,8BAAkB,6BAAY,WAAY;AAAA,IAC/D,sBAAU,KAAM;AAAA,IAChB,2BAAQ,KAAM,EAAE,yBAA0B,gBAAiB;AAAA,IAC3D,2BAAQ,KAAM,EAAE,uBAAwB,cAAe;",
6
6
  "names": ["reducer"]
7
7
  }
@@ -16,6 +16,8 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // packages/edit-site/src/store/private-actions.js
19
21
  var private_actions_exports = {};
20
22
  __export(private_actions_exports, {
21
23
  registerRoute: () => registerRoute,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/store/private-actions.js"],
4
4
  "sourcesContent": ["export function registerRoute( route ) {\n\treturn {\n\t\ttype: 'REGISTER_ROUTE',\n\t\troute,\n\t};\n}\n\nexport function unregisterRoute( name ) {\n\treturn {\n\t\ttype: 'UNREGISTER_ROUTE',\n\t\tname,\n\t};\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,cAAe,OAAQ;AACtC,SAAO;AAAA,IACN,MAAM;AAAA,IACN;AAAA,EACD;AACD;AAEO,SAAS,gBAAiB,MAAO;AACvC,SAAO;AAAA,IACN,MAAM;AAAA,IACN;AAAA,EACD;AACD;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,cAAe,OAAQ;AACtC,SAAO;AAAA,IACN,MAAM;AAAA,IACN;AAAA,EACD;AACD;AAEO,SAAS,gBAAiB,MAAO;AACvC,SAAO;AAAA,IACN,MAAM;AAAA,IACN;AAAA,EACD;AACD;",
6
6
  "names": []
7
7
  }
@@ -16,6 +16,8 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // packages/edit-site/src/store/private-selectors.js
19
21
  var private_selectors_exports = {};
20
22
  __export(private_selectors_exports, {
21
23
  getRoutes: () => getRoutes
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/store/private-selectors.js"],
4
4
  "sourcesContent": ["export function getRoutes( state ) {\n\treturn state.routes;\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,UAAW,OAAQ;AAClC,SAAO,MAAM;AACd;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,UAAW,OAAQ;AAClC,SAAO,MAAM;AACd;",
6
6
  "names": []
7
7
  }
@@ -16,6 +16,8 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // packages/edit-site/src/store/reducer.js
19
21
  var reducer_exports = {};
20
22
  __export(reducer_exports, {
21
23
  default: () => reducer_default,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/store/reducer.js"],
4
4
  "sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { combineReducers } from '@wordpress/data';\n\n/**\n * Reducer returning the settings.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport function settings( state = {}, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'UPDATE_SETTINGS':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t...action.settings,\n\t\t\t};\n\t}\n\n\treturn state;\n}\n\n/**\n * Reducer keeping track of the currently edited Post Type,\n * Post Id and the context provided to fill the content of the block editor.\n *\n * @param {Object} state Current edited post.\n * @param {Object} action Dispatched action.\n *\n * @return {Object} Updated state.\n */\nexport function editedPost( state = {}, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_EDITED_POST':\n\t\t\treturn {\n\t\t\t\tpostType: action.postType,\n\t\t\t\tid: action.id,\n\t\t\t\tcontext: action.context,\n\t\t\t};\n\t\tcase 'SET_EDITED_POST_CONTEXT':\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\tcontext: action.context,\n\t\t\t};\n\t}\n\n\treturn state;\n}\n\n/**\n * Reducer to set the save view panel open or closed.\n *\n * @param {Object} state Current state.\n * @param {Object} action Dispatched action.\n */\nexport function saveViewPanel( state = false, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_IS_SAVE_VIEW_OPENED':\n\t\t\treturn action.isOpen;\n\t}\n\treturn state;\n}\n\nfunction routes( state = [], action ) {\n\tswitch ( action.type ) {\n\t\tcase 'REGISTER_ROUTE':\n\t\t\treturn [ ...state, action.route ];\n\t\tcase 'UNREGISTER_ROUTE':\n\t\t\treturn state.filter( ( route ) => route.name !== action.name );\n\t}\n\n\treturn state;\n}\n\nexport default combineReducers( {\n\tsettings,\n\teditedPost,\n\tsaveViewP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;AAAA,QACN,GAAG;AAAA,QACH,GAAG,OAAO;AAAA,MACX;AAAA,EACF;AAEA,SAAO;AACR;AAWO,SAAS,WAAY,QAAQ,CAAC,GAAG,QAAS;AAChD,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO;AAAA,QACN,UAAU,OAAO;AAAA,QACjB,IAAI,OAAO;AAAA,QACX,SAAS,OAAO;AAAA,MACjB;AAAA,IACD,KAAK;AACJ,aAAO;AAAA,QACN,GAAG;AAAA,QACH,SAAS,OAAO;AAAA,MACjB;AAAA,EACF;AAEA,SAAO;AACR;AAQO,SAAS,cAAe,QAAQ,OAAO,QAAS;AACtD,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO,OAAO;AAAA,EAChB;AACA,SAAO;AACR;AAEA,SAAS,OAAQ,QAAQ,CAAC,GAAG,QAAS;AACrC,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO,CAAE,GAAG,OAAO,OAAO,KAAM;AAAA,IACjC,KAAK;AACJ,aAAO,MAAM,OAAQ,CAAE,UAAW,MAAM,SAAS,OAAO,IAAK;AAAA,EAC/D;AAEA,SAAO;AACR;AAEA,IAAO,sBAAQ,6BAAiB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,CAAE;",
6
6
  "names": []
7
7
  }
@@ -26,6 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // packages/edit-site/src/store/selectors.js
29
31
  var selectors_exports = {};
30
32
  __export(selectors_exports, {
31
33
  __experimentalGetInsertionPoint: () => __experimentalGetInsertionPoint,
@@ -61,7 +63,7 @@ var import_block_editor = require("@wordpress/block-editor");
61
63
  var import_lock_unlock = require("../lock-unlock");
62
64
  var import_constants = require("../utils/constants");
63
65
  var import_get_filtered_template_parts = __toESM(require("../utils/get-filtered-template-parts"));
64
- const isFeatureActive = (0, import_data.createRegistrySelector)(
66
+ var isFeatureActive = (0, import_data.createRegistrySelector)(
65
67
  (select) => (_, featureName) => {
66
68
  (0, import_deprecated.default)(`select( 'core/edit-site' ).isFeatureActive`, {
67
69
  since: "6.0",
@@ -73,7 +75,7 @@ const isFeatureActive = (0, import_data.createRegistrySelector)(
73
75
  );
74
76
  }
75
77
  );
76
- const __experimentalGetPreviewDeviceType = (0, import_data.createRegistrySelector)(
78
+ var __experimentalGetPreviewDeviceType = (0, import_data.createRegistrySelector)(
77
79
  (select) => () => {
78
80
  (0, import_deprecated.default)(
79
81
  `select( 'core/edit-site' ).__experimentalGetPreviewDeviceType`,
@@ -86,7 +88,7 @@ const __experimentalGetPreviewDeviceType = (0, import_data.createRegistrySelecto
86
88
  return select(import_editor.store).getDeviceType();
87
89
  }
88
90
  );
89
- const getCanUserCreateMedia = (0, import_data.createRegistrySelector)(
91
+ var getCanUserCreateMedia = (0, import_data.createRegistrySelector)(
90
92
  (select) => () => {
91
93
  (0, import_deprecated.default)(
92
94
  `wp.data.select( 'core/edit-site' ).getCanUserCreateMedia()`,
@@ -98,7 +100,7 @@ const getCanUserCreateMedia = (0, import_data.createRegistrySelector)(
98
100
  return select(import_core_data.store).canUser("create", "media");
99
101
  }
100
102
  );
101
- const getReusableBlocks = (0, import_data.createRegistrySelector)((select) => () => {
103
+ var getReusableBlocks = (0, import_data.createRegistrySelector)((select) => () => {
102
104
  (0, import_deprecated.default)(`select( 'core/edit-site' ).getReusableBlocks()`, {
103
105
  since: "6.5",
104
106
  version: "6.8",
@@ -144,14 +146,14 @@ function getPage(state) {
144
146
  });
145
147
  return { context: state.editedPost.context };
146
148
  }
147
- const isInserterOpened = (0, import_data.createRegistrySelector)((select) => () => {
149
+ var isInserterOpened = (0, import_data.createRegistrySelector)((select) => () => {
148
150
  (0, import_deprecated.default)(`select( 'core/edit-site' ).isInserterOpened`, {
149
151
  since: "6.5",
150
152
  alternative: `select( 'core/editor' ).isInserterOpened`
151
153
  });
152
154
  return select(import_editor.store).isInserterOpened();
153
155
  });
154
- const __experimentalGetInsertionPoint = (0, import_data.createRegistrySelector)(
156
+ var __experimentalGetInsertionPoint = (0, import_data.createRegistrySelector)(
155
157
  (select) => () => {
156
158
  (0, import_deprecated.default)(
157
159
  `select( 'core/edit-site' ).__experimentalGetInsertionPoint`,
@@ -163,7 +165,7 @@ const __experimentalGetInsertionPoint = (0, import_data.createRegistrySelector)(
163
165
  return (0, import_lock_unlock.unlock)(select(import_editor.store)).getInserter();
164
166
  }
165
167
  );
166
- const isListViewOpened = (0, import_data.createRegistrySelector)((select) => () => {
168
+ var isListViewOpened = (0, import_data.createRegistrySelector)((select) => () => {
167
169
  (0, import_deprecated.default)(`select( 'core/edit-site' ).isListViewOpened`, {
168
170
  since: "6.5",
169
171
  alternative: `select( 'core/editor' ).isListViewOpened`
@@ -184,7 +186,7 @@ function getBlocksAndTemplateParts(select) {
184
186
  const blocks = getBlocksByClientId(clientIds);
185
187
  return [blocks, templateParts];
186
188
  }
187
- const getCurrentTemplateTemplateParts = (0, import_data.createRegistrySelector)(
189
+ var getCurrentTemplateTemplateParts = (0, import_data.createRegistrySelector)(
188
190
  (select) => (0, import_data.createSelector)(
189
191
  () => {
190
192
  (0, import_deprecated.default)(
@@ -202,7 +204,7 @@ const getCurrentTemplateTemplateParts = (0, import_data.createRegistrySelector)(
202
204
  () => getBlocksAndTemplateParts(select)
203
205
  )
204
206
  );
205
- const getEditorMode = (0, import_data.createRegistrySelector)((select) => () => {
207
+ var getEditorMode = (0, import_data.createRegistrySelector)((select) => () => {
206
208
  return select(import_preferences.store).get("core", "editorMode");
207
209
  });
208
210
  function getCurrentTemplateNavigationPanelSubMenu() {