@wordpress/edit-site 6.13.0 → 6.13.1-next.cd6172eb0.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.
- package/build/components/add-new-pattern/index.js +3 -16
- package/build/components/add-new-pattern/index.js.map +1 -1
- package/build/components/add-new-template/index.js +1 -5
- package/build/components/add-new-template/index.js.map +1 -1
- package/build/components/app/index.js +31 -29
- package/build/components/app/index.js.map +1 -1
- package/build/components/block-editor/use-editor-iframe-props.js +8 -8
- package/build/components/block-editor/use-editor-iframe-props.js.map +1 -1
- package/build/components/block-editor/use-navigate-to-entity-record.js +1 -5
- package/build/components/block-editor/use-navigate-to-entity-record.js.map +1 -1
- package/build/components/block-editor/use-site-editor-settings.js +4 -4
- package/build/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build/components/dataviews-actions/index.js +1 -5
- package/build/components/dataviews-actions/index.js.map +1 -1
- package/build/components/editor/index.js +38 -22
- package/build/components/editor/index.js.map +1 -1
- package/build/components/editor/use-editor-title.js +5 -0
- package/build/components/editor/use-editor-title.js.map +1 -1
- package/build/components/editor/use-resolve-edited-entity.js +19 -4
- package/build/components/editor/use-resolve-edited-entity.js.map +1 -1
- package/build/components/global-styles/font-library-modal/context.js +0 -1
- package/build/components/global-styles/font-library-modal/context.js.map +1 -1
- package/build/components/global-styles/font-library-modal/font-collection.js +36 -26
- package/build/components/global-styles/font-library-modal/font-collection.js.map +1 -1
- package/build/components/global-styles/font-library-modal/installed-fonts.js +0 -1
- package/build/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
- package/build/components/global-styles/font-library-modal/upload-fonts.js +0 -1
- package/build/components/global-styles/font-library-modal/upload-fonts.js.map +1 -1
- package/build/components/global-styles-sidebar/index.js +5 -5
- package/build/components/global-styles-sidebar/index.js.map +1 -1
- package/build/components/layout/index.js +31 -13
- package/build/components/layout/index.js.map +1 -1
- package/build/components/page-patterns/delete-category-menu-item.js +1 -4
- package/build/components/page-patterns/delete-category-menu-item.js.map +1 -1
- package/build/components/page-patterns/fields.js +6 -11
- package/build/components/page-patterns/fields.js.map +1 -1
- package/build/components/page-patterns/index.js +14 -16
- package/build/components/page-patterns/index.js.map +1 -1
- package/build/components/page-templates/fields.js +8 -17
- package/build/components/page-templates/fields.js.map +1 -1
- package/build/components/page-templates/index.js +13 -12
- package/build/components/page-templates/index.js.map +1 -1
- package/build/components/post-edit/index.js +38 -3
- package/build/components/post-edit/index.js.map +1 -1
- package/build/components/post-list/index.js +25 -39
- package/build/components/post-list/index.js.map +1 -1
- package/build/components/posts-app/index.js +10 -16
- package/build/components/posts-app/index.js.map +1 -1
- package/build/components/posts-app-routes/index.js +3 -7
- package/build/components/posts-app-routes/index.js.map +1 -1
- package/build/components/posts-app-routes/{posts-edit.js → post-item.js} +9 -13
- package/build/components/posts-app-routes/post-item.js.map +1 -0
- package/build/components/posts-app-routes/posts.js +89 -0
- package/build/components/posts-app-routes/posts.js.map +1 -0
- package/build/components/resizable-frame/index.js +6 -5
- package/build/components/resizable-frame/index.js.map +1 -1
- package/build/components/save-panel/index.js +9 -6
- package/build/components/save-panel/index.js.map +1 -1
- package/build/components/sidebar-dataviews/add-new-view.js +7 -8
- package/build/components/sidebar-dataviews/add-new-view.js.map +1 -1
- package/build/components/sidebar-dataviews/dataview-item.js +5 -8
- package/build/components/sidebar-dataviews/dataview-item.js.map +1 -1
- package/build/components/sidebar-dataviews/index.js +4 -3
- package/build/components/sidebar-dataviews/index.js.map +1 -1
- package/build/components/sidebar-global-styles-wrapper/index.js +18 -18
- package/build/components/sidebar-global-styles-wrapper/index.js.map +1 -1
- package/build/components/sidebar-navigation-item/index.js +8 -5
- package/build/components/sidebar-navigation-item/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen/index.js +2 -2
- package/build/components/sidebar-navigation-screen/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-global-styles/index.js +8 -19
- package/build/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-main/index.js +6 -14
- package/build/components/sidebar-navigation-screen-main/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js +1 -5
- package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +2 -7
- package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menus/index.js +1 -6
- package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +14 -20
- package/build/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +1 -1
- package/build/components/sidebar-navigation-screen-patterns/category-item.js +5 -7
- package/build/components/sidebar-navigation-screen-patterns/category-item.js.map +1 -1
- package/build/components/sidebar-navigation-screen-patterns/index.js +4 -5
- package/build/components/sidebar-navigation-screen-patterns/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-templates-browse/content.js +25 -16
- package/build/components/sidebar-navigation-screen-templates-browse/content.js.map +1 -1
- package/build/components/sidebar-navigation-screen-templates-browse/index.js +1 -14
- package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
- package/build/components/site-editor-routes/{home-view.js → home.js} +7 -8
- package/build/components/site-editor-routes/home.js.map +1 -0
- package/build/components/site-editor-routes/index.js +12 -18
- package/build/components/site-editor-routes/index.js.map +1 -1
- package/build/components/site-editor-routes/navigation-item.js +49 -0
- package/build/components/site-editor-routes/navigation-item.js.map +1 -0
- package/build/components/{posts-app-routes/home.js → site-editor-routes/navigation.js} +16 -18
- package/build/components/site-editor-routes/navigation.js.map +1 -0
- package/build/components/site-editor-routes/{pages-edit.js → page-item.js} +10 -17
- package/build/components/site-editor-routes/page-item.js.map +1 -0
- package/build/components/site-editor-routes/pages.js +87 -0
- package/build/components/site-editor-routes/pages.js.map +1 -0
- package/build/components/site-editor-routes/{home-edit.js → pattern-item.js} +11 -11
- package/build/components/site-editor-routes/pattern-item.js.map +1 -0
- package/build/components/site-editor-routes/{patterns-view.js → patterns.js} +6 -9
- package/build/components/site-editor-routes/patterns.js.map +1 -0
- package/build/components/site-editor-routes/{styles-view.js → styles.js} +28 -9
- package/build/components/site-editor-routes/styles.js.map +1 -0
- package/build/components/site-editor-routes/{templates-edit.js → template-item.js} +6 -11
- package/build/components/site-editor-routes/template-item.js.map +1 -0
- package/build/components/site-editor-routes/{patterns-edit.js → template-part-item.js} +6 -11
- package/build/components/site-editor-routes/template-part-item.js.map +1 -0
- package/build/components/site-editor-routes/{templates-list-view.js → templates.js} +20 -13
- package/build/components/site-editor-routes/templates.js.map +1 -0
- package/build/components/site-hub/index.js +3 -3
- package/build/components/site-hub/index.js.map +1 -1
- package/build/components/style-book/constants.js +8 -19
- package/build/components/style-book/constants.js.map +1 -1
- package/build/components/style-book/index.js +5 -0
- package/build/components/style-book/index.js.map +1 -1
- package/build/hooks/commands/use-common-commands.js +12 -48
- package/build/hooks/commands/use-common-commands.js.map +1 -1
- package/build/hooks/commands/use-set-command-context.js +2 -2
- package/build/hooks/commands/use-set-command-context.js.map +1 -1
- package/build/store/private-actions.js +7 -0
- package/build/store/private-actions.js.map +1 -1
- package/build/store/reducer.js +2 -0
- package/build/store/reducer.js.map +1 -1
- package/build/utils/is-previewing-theme.js +1 -1
- package/build/utils/is-previewing-theme.js.map +1 -1
- package/build/utils/use-activate-theme.js +9 -8
- package/build/utils/use-activate-theme.js.map +1 -1
- package/build-module/components/add-new-pattern/index.js +3 -16
- package/build-module/components/add-new-pattern/index.js.map +1 -1
- package/build-module/components/add-new-template/index.js +1 -5
- package/build-module/components/add-new-template/index.js.map +1 -1
- package/build-module/components/app/index.js +33 -31
- package/build-module/components/app/index.js.map +1 -1
- package/build-module/components/block-editor/use-editor-iframe-props.js +8 -8
- package/build-module/components/block-editor/use-editor-iframe-props.js.map +1 -1
- package/build-module/components/block-editor/use-navigate-to-entity-record.js +1 -5
- package/build-module/components/block-editor/use-navigate-to-entity-record.js.map +1 -1
- package/build-module/components/block-editor/use-site-editor-settings.js +4 -4
- package/build-module/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build-module/components/dataviews-actions/index.js +1 -5
- package/build-module/components/dataviews-actions/index.js.map +1 -1
- package/build-module/components/editor/index.js +38 -22
- package/build-module/components/editor/index.js.map +1 -1
- package/build-module/components/editor/use-editor-title.js +5 -0
- package/build-module/components/editor/use-editor-title.js.map +1 -1
- package/build-module/components/editor/use-resolve-edited-entity.js +19 -4
- package/build-module/components/editor/use-resolve-edited-entity.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/context.js +0 -1
- package/build-module/components/global-styles/font-library-modal/context.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/font-collection.js +37 -27
- package/build-module/components/global-styles/font-library-modal/font-collection.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/installed-fonts.js +0 -1
- package/build-module/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/upload-fonts.js +0 -1
- package/build-module/components/global-styles/font-library-modal/upload-fonts.js.map +1 -1
- package/build-module/components/global-styles-sidebar/index.js +5 -5
- package/build-module/components/global-styles-sidebar/index.js.map +1 -1
- package/build-module/components/layout/index.js +33 -15
- package/build-module/components/layout/index.js.map +1 -1
- package/build-module/components/page-patterns/delete-category-menu-item.js +1 -4
- package/build-module/components/page-patterns/delete-category-menu-item.js.map +1 -1
- package/build-module/components/page-patterns/fields.js +6 -11
- package/build-module/components/page-patterns/fields.js.map +1 -1
- package/build-module/components/page-patterns/index.js +14 -16
- package/build-module/components/page-patterns/index.js.map +1 -1
- package/build-module/components/page-templates/fields.js +7 -14
- package/build-module/components/page-templates/fields.js.map +1 -1
- package/build-module/components/page-templates/index.js +13 -12
- package/build-module/components/page-templates/index.js.map +1 -1
- package/build-module/components/post-edit/index.js +38 -3
- package/build-module/components/post-edit/index.js.map +1 -1
- package/build-module/components/post-list/index.js +25 -39
- package/build-module/components/post-list/index.js.map +1 -1
- package/build-module/components/posts-app/index.js +11 -17
- package/build-module/components/posts-app/index.js.map +1 -1
- package/build-module/components/posts-app-routes/index.js +3 -7
- package/build-module/components/posts-app-routes/index.js.map +1 -1
- package/build-module/components/posts-app-routes/{posts-edit.js → post-item.js} +8 -12
- package/build-module/components/posts-app-routes/post-item.js.map +1 -0
- package/build-module/components/posts-app-routes/posts.js +81 -0
- package/build-module/components/posts-app-routes/posts.js.map +1 -0
- package/build-module/components/resizable-frame/index.js +6 -5
- package/build-module/components/resizable-frame/index.js.map +1 -1
- package/build-module/components/save-panel/index.js +9 -6
- package/build-module/components/save-panel/index.js.map +1 -1
- package/build-module/components/sidebar-dataviews/add-new-view.js +7 -8
- package/build-module/components/sidebar-dataviews/add-new-view.js.map +1 -1
- package/build-module/components/sidebar-dataviews/dataview-item.js +5 -8
- package/build-module/components/sidebar-dataviews/dataview-item.js.map +1 -1
- package/build-module/components/sidebar-dataviews/index.js +4 -3
- package/build-module/components/sidebar-dataviews/index.js.map +1 -1
- package/build-module/components/sidebar-global-styles-wrapper/index.js +18 -18
- package/build-module/components/sidebar-global-styles-wrapper/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-item/index.js +8 -5
- package/build-module/components/sidebar-navigation-item/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen/index.js +2 -2
- package/build-module/components/sidebar-navigation-screen/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-global-styles/index.js +9 -20
- package/build-module/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-main/index.js +6 -14
- package/build-module/components/sidebar-navigation-screen-main/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js +1 -5
- package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +2 -7
- package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +1 -6
- package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +14 -20
- package/build-module/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/category-item.js +5 -7
- package/build-module/components/sidebar-navigation-screen-patterns/category-item.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/index.js +4 -5
- package/build-module/components/sidebar-navigation-screen-patterns/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-templates-browse/content.js +25 -16
- package/build-module/components/sidebar-navigation-screen-templates-browse/content.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +1 -14
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
- package/build-module/components/site-editor-routes/{home-edit.js → home.js} +5 -7
- package/build-module/components/site-editor-routes/home.js.map +1 -0
- package/build-module/components/site-editor-routes/index.js +12 -18
- package/build-module/components/site-editor-routes/index.js.map +1 -1
- package/build-module/components/site-editor-routes/navigation-item.js +41 -0
- package/build-module/components/site-editor-routes/navigation-item.js.map +1 -0
- package/build-module/components/site-editor-routes/navigation.js +38 -0
- package/build-module/components/site-editor-routes/navigation.js.map +1 -0
- package/build-module/components/site-editor-routes/{pages-edit.js → page-item.js} +9 -16
- package/build-module/components/site-editor-routes/page-item.js.map +1 -0
- package/build-module/components/site-editor-routes/pages.js +79 -0
- package/build-module/components/site-editor-routes/pages.js.map +1 -0
- package/build-module/components/site-editor-routes/pattern-item.js +18 -0
- package/build-module/components/site-editor-routes/pattern-item.js.map +1 -0
- package/build-module/components/site-editor-routes/{patterns-view.js → patterns.js} +5 -8
- package/build-module/components/site-editor-routes/patterns.js.map +1 -0
- package/build-module/components/site-editor-routes/styles.js +44 -0
- package/build-module/components/site-editor-routes/styles.js.map +1 -0
- package/build-module/components/site-editor-routes/{templates-edit.js → template-item.js} +5 -10
- package/build-module/components/site-editor-routes/template-item.js.map +1 -0
- package/build-module/components/site-editor-routes/template-part-item.js +18 -0
- package/build-module/components/site-editor-routes/template-part-item.js.map +1 -0
- package/build-module/components/site-editor-routes/templates.js +33 -0
- package/build-module/components/site-editor-routes/templates.js.map +1 -0
- package/build-module/components/site-hub/index.js +3 -3
- package/build-module/components/site-hub/index.js.map +1 -1
- package/build-module/components/style-book/constants.js +8 -19
- package/build-module/components/style-book/constants.js.map +1 -1
- package/build-module/components/style-book/index.js +5 -0
- package/build-module/components/style-book/index.js.map +1 -1
- package/build-module/hooks/commands/use-common-commands.js +12 -48
- package/build-module/hooks/commands/use-common-commands.js.map +1 -1
- package/build-module/hooks/commands/use-set-command-context.js +2 -2
- package/build-module/hooks/commands/use-set-command-context.js.map +1 -1
- package/build-module/store/private-actions.js +6 -0
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/reducer.js +2 -0
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/utils/is-previewing-theme.js +1 -1
- package/build-module/utils/is-previewing-theme.js.map +1 -1
- package/build-module/utils/use-activate-theme.js +9 -8
- package/build-module/utils/use-activate-theme.js.map +1 -1
- package/build-style/style-rtl.css +94 -12
- package/build-style/style.css +94 -12
- package/package.json +40 -40
- package/src/components/add-new-pattern/index.js +9 -17
- package/src/components/add-new-template/index.js +3 -5
- package/src/components/app/index.js +34 -35
- package/src/components/block-editor/use-editor-iframe-props.js +5 -4
- package/src/components/block-editor/use-navigate-to-entity-record.js +3 -1
- package/src/components/block-editor/use-site-editor-settings.js +6 -6
- package/src/components/dataviews-actions/index.js +1 -5
- package/src/components/editor/index.js +64 -29
- package/src/components/editor/use-editor-title.js +4 -0
- package/src/components/editor/use-resolve-edited-entity.js +17 -2
- package/src/components/global-styles/font-library-modal/font-collection.js +40 -27
- package/src/components/global-styles/font-library-modal/style.scss +12 -5
- package/src/components/global-styles/style.scss +4 -0
- package/src/components/global-styles-sidebar/index.js +4 -4
- package/src/components/layout/index.js +36 -6
- package/src/components/page-patterns/delete-category-menu-item.js +3 -4
- package/src/components/page-patterns/fields.js +12 -11
- package/src/components/page-patterns/index.js +16 -14
- package/src/components/page-templates/fields.js +4 -15
- package/src/components/page-templates/index.js +18 -13
- package/src/components/post-edit/index.js +36 -2
- package/src/components/post-list/index.js +43 -39
- package/src/components/posts-app/index.js +9 -18
- package/src/components/posts-app-routes/index.js +3 -14
- package/src/components/posts-app-routes/{posts-edit.js → post-item.js} +5 -9
- package/src/components/posts-app-routes/posts.js +66 -0
- package/src/components/resizable-frame/index.js +6 -7
- package/src/components/save-panel/index.js +11 -5
- package/src/components/sidebar-dataviews/add-new-view.js +9 -9
- package/src/components/sidebar-dataviews/dataview-item.js +5 -8
- package/src/components/sidebar-dataviews/index.js +2 -2
- package/src/components/sidebar-dataviews/style.scss +2 -2
- package/src/components/sidebar-global-styles-wrapper/index.js +24 -30
- package/src/components/sidebar-navigation-item/index.js +7 -5
- package/src/components/sidebar-navigation-item/style.scss +1 -2
- package/src/components/sidebar-navigation-screen/index.js +2 -2
- package/src/components/sidebar-navigation-screen/style.scss +2 -2
- package/src/components/sidebar-navigation-screen-global-styles/index.js +13 -34
- package/src/components/sidebar-navigation-screen-main/index.js +6 -10
- package/src/components/sidebar-navigation-screen-navigation-menu/more-menu.js +3 -5
- package/src/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +2 -2
- package/src/components/sidebar-navigation-screen-navigation-menus/index.js +6 -6
- package/src/components/sidebar-navigation-screen-navigation-menus/leaf-more-menu.js +9 -21
- package/src/components/sidebar-navigation-screen-patterns/category-item.js +5 -20
- package/src/components/sidebar-navigation-screen-patterns/index.js +3 -4
- package/src/components/sidebar-navigation-screen-templates-browse/content.js +24 -18
- package/src/components/sidebar-navigation-screen-templates-browse/index.js +1 -14
- package/src/components/site-editor-routes/{home-view.js → home.js} +4 -5
- package/src/components/site-editor-routes/index.js +22 -34
- package/src/components/site-editor-routes/navigation-item.js +39 -0
- package/src/components/site-editor-routes/navigation.js +34 -0
- package/src/components/site-editor-routes/{pages-edit.js → page-item.js} +6 -14
- package/src/components/site-editor-routes/pages.js +66 -0
- package/src/components/site-editor-routes/pattern-item.js +15 -0
- package/src/components/site-editor-routes/patterns.js +15 -0
- package/src/components/site-editor-routes/styles.js +39 -0
- package/src/components/site-editor-routes/template-item.js +15 -0
- package/src/components/site-editor-routes/template-part-item.js +15 -0
- package/src/components/site-editor-routes/templates.js +26 -0
- package/src/components/site-hub/index.js +3 -6
- package/src/components/style-book/constants.ts +8 -19
- package/src/components/style-book/index.js +5 -0
- package/src/hooks/commands/use-common-commands.js +14 -72
- package/src/hooks/commands/use-set-command-context.js +2 -2
- package/src/store/private-actions.js +7 -0
- package/src/store/reducer.js +2 -0
- package/src/utils/is-previewing-theme.js +1 -3
- package/src/utils/use-activate-theme.js +4 -3
- package/build/components/layout/router.js +0 -92
- package/build/components/layout/router.js.map +0 -1
- package/build/components/posts-app-routes/home.js.map +0 -1
- package/build/components/posts-app-routes/posts-edit.js.map +0 -1
- package/build/components/posts-app-routes/posts-list-view-quick-edit.js +0 -63
- package/build/components/posts-app-routes/posts-list-view-quick-edit.js.map +0 -1
- package/build/components/posts-app-routes/posts-list-view.js +0 -48
- package/build/components/posts-app-routes/posts-list-view.js.map +0 -1
- package/build/components/posts-app-routes/posts-view-quick-edit.js +0 -60
- package/build/components/posts-app-routes/posts-view-quick-edit.js.map +0 -1
- package/build/components/posts-app-routes/posts-view.js +0 -41
- package/build/components/posts-app-routes/posts-view.js.map +0 -1
- package/build/components/routes/link.js +0 -69
- package/build/components/routes/link.js.map +0 -1
- package/build/components/site-editor-routes/home-edit.js.map +0 -1
- package/build/components/site-editor-routes/home-view.js.map +0 -1
- package/build/components/site-editor-routes/navigation-edit.js +0 -29
- package/build/components/site-editor-routes/navigation-edit.js.map +0 -1
- package/build/components/site-editor-routes/navigation-item-edit.js +0 -31
- package/build/components/site-editor-routes/navigation-item-edit.js.map +0 -1
- package/build/components/site-editor-routes/navigation-item-view.js +0 -30
- package/build/components/site-editor-routes/navigation-item-view.js.map +0 -1
- package/build/components/site-editor-routes/navigation-view.js +0 -28
- package/build/components/site-editor-routes/navigation-view.js.map +0 -1
- package/build/components/site-editor-routes/pages-edit.js.map +0 -1
- package/build/components/site-editor-routes/pages-list-view-quick-edit.js +0 -64
- package/build/components/site-editor-routes/pages-list-view-quick-edit.js.map +0 -1
- package/build/components/site-editor-routes/pages-list-view.js +0 -47
- package/build/components/site-editor-routes/pages-list-view.js.map +0 -1
- package/build/components/site-editor-routes/pages-view-quick-edit.js +0 -61
- package/build/components/site-editor-routes/pages-view-quick-edit.js.map +0 -1
- package/build/components/site-editor-routes/pages-view.js +0 -42
- package/build/components/site-editor-routes/pages-view.js.map +0 -1
- package/build/components/site-editor-routes/patterns-edit.js.map +0 -1
- package/build/components/site-editor-routes/patterns-view.js.map +0 -1
- package/build/components/site-editor-routes/styles-view.js.map +0 -1
- package/build/components/site-editor-routes/templates-edit.js.map +0 -1
- package/build/components/site-editor-routes/templates-list-view.js.map +0 -1
- package/build/components/site-editor-routes/templates-view.js +0 -29
- package/build/components/site-editor-routes/templates-view.js.map +0 -1
- package/build-module/components/layout/router.js +0 -84
- package/build-module/components/layout/router.js.map +0 -1
- package/build-module/components/posts-app-routes/home.js +0 -40
- package/build-module/components/posts-app-routes/home.js.map +0 -1
- package/build-module/components/posts-app-routes/posts-edit.js.map +0 -1
- package/build-module/components/posts-app-routes/posts-list-view-quick-edit.js +0 -55
- package/build-module/components/posts-app-routes/posts-list-view-quick-edit.js.map +0 -1
- package/build-module/components/posts-app-routes/posts-list-view.js +0 -40
- package/build-module/components/posts-app-routes/posts-list-view.js.map +0 -1
- package/build-module/components/posts-app-routes/posts-view-quick-edit.js +0 -52
- package/build-module/components/posts-app-routes/posts-view-quick-edit.js.map +0 -1
- package/build-module/components/posts-app-routes/posts-view.js +0 -33
- package/build-module/components/posts-app-routes/posts-view.js.map +0 -1
- package/build-module/components/routes/link.js +0 -61
- package/build-module/components/routes/link.js.map +0 -1
- package/build-module/components/site-editor-routes/home-edit.js.map +0 -1
- package/build-module/components/site-editor-routes/home-view.js +0 -17
- package/build-module/components/site-editor-routes/home-view.js.map +0 -1
- package/build-module/components/site-editor-routes/navigation-edit.js +0 -21
- package/build-module/components/site-editor-routes/navigation-edit.js.map +0 -1
- package/build-module/components/site-editor-routes/navigation-item-edit.js +0 -23
- package/build-module/components/site-editor-routes/navigation-item-edit.js.map +0 -1
- package/build-module/components/site-editor-routes/navigation-item-view.js +0 -22
- package/build-module/components/site-editor-routes/navigation-item-view.js.map +0 -1
- package/build-module/components/site-editor-routes/navigation-view.js +0 -20
- package/build-module/components/site-editor-routes/navigation-view.js.map +0 -1
- package/build-module/components/site-editor-routes/pages-edit.js.map +0 -1
- package/build-module/components/site-editor-routes/pages-list-view-quick-edit.js +0 -56
- package/build-module/components/site-editor-routes/pages-list-view-quick-edit.js.map +0 -1
- package/build-module/components/site-editor-routes/pages-list-view.js +0 -39
- package/build-module/components/site-editor-routes/pages-list-view.js.map +0 -1
- package/build-module/components/site-editor-routes/pages-view-quick-edit.js +0 -53
- package/build-module/components/site-editor-routes/pages-view-quick-edit.js.map +0 -1
- package/build-module/components/site-editor-routes/pages-view.js +0 -34
- package/build-module/components/site-editor-routes/pages-view.js.map +0 -1
- package/build-module/components/site-editor-routes/patterns-edit.js +0 -23
- package/build-module/components/site-editor-routes/patterns-edit.js.map +0 -1
- package/build-module/components/site-editor-routes/patterns-view.js.map +0 -1
- package/build-module/components/site-editor-routes/styles-view.js +0 -25
- package/build-module/components/site-editor-routes/styles-view.js.map +0 -1
- package/build-module/components/site-editor-routes/templates-edit.js.map +0 -1
- package/build-module/components/site-editor-routes/templates-list-view.js +0 -26
- package/build-module/components/site-editor-routes/templates-list-view.js.map +0 -1
- package/build-module/components/site-editor-routes/templates-view.js +0 -21
- package/build-module/components/site-editor-routes/templates-view.js.map +0 -1
- package/src/components/layout/router.js +0 -86
- package/src/components/posts-app-routes/home.js +0 -36
- package/src/components/posts-app-routes/posts-list-view-quick-edit.js +0 -52
- package/src/components/posts-app-routes/posts-list-view.js +0 -40
- package/src/components/posts-app-routes/posts-view-quick-edit.js +0 -49
- package/src/components/posts-app-routes/posts-view.js +0 -35
- package/src/components/routes/link.js +0 -68
- package/src/components/site-editor-routes/home-edit.js +0 -17
- package/src/components/site-editor-routes/navigation-edit.js +0 -22
- package/src/components/site-editor-routes/navigation-item-edit.js +0 -26
- package/src/components/site-editor-routes/navigation-item-view.js +0 -25
- package/src/components/site-editor-routes/navigation-view.js +0 -21
- package/src/components/site-editor-routes/pages-list-view-quick-edit.js +0 -56
- package/src/components/site-editor-routes/pages-list-view.js +0 -44
- package/src/components/site-editor-routes/pages-view-quick-edit.js +0 -53
- package/src/components/site-editor-routes/pages-view.js +0 -39
- package/src/components/site-editor-routes/patterns-edit.js +0 -24
- package/src/components/site-editor-routes/patterns-view.js +0 -22
- package/src/components/site-editor-routes/styles-view.js +0 -26
- package/src/components/site-editor-routes/templates-edit.js +0 -22
- package/src/components/site-editor-routes/templates-list-view.js +0 -28
- package/src/components/site-editor-routes/templates-view.js +0 -22
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Editor","SidebarNavigationScreenPatterns","PagePatterns","PATTERN_TYPES","TEMPLATE_PART_POST_TYPE","jsx","_jsx","patternsEditRoute","name","match","params","user","includes","postType","canvas","areas","sidebar","backPath","content","mobile","preview"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/patterns-edit.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport Editor from '../editor';\nimport SidebarNavigationScreenPatterns from '../sidebar-navigation-screen-patterns';\nimport PagePatterns from '../page-patterns';\nimport { PATTERN_TYPES, TEMPLATE_PART_POST_TYPE } from '../../utils/constants';\n\nexport const patternsEditRoute = {\n\tname: 'patterns-edit',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\t[ TEMPLATE_PART_POST_TYPE, PATTERN_TYPES.user ].includes(\n\t\t\t\tparams.postType\n\t\t\t) && params.canvas === 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: <SidebarNavigationScreenPatterns backPath={ {} } />,\n\t\tcontent: <PagePatterns />,\n\t\tmobile: <Editor />,\n\t\tpreview: <Editor />,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,MAAM,MAAM,WAAW;AAC9B,OAAOC,+BAA+B,MAAM,uCAAuC;AACnF,OAAOC,YAAY,MAAM,kBAAkB;AAC3C,SAASC,aAAa,EAAEC,uBAAuB,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/E,OAAO,MAAMC,iBAAiB,GAAG;EAChCC,IAAI,EAAE,eAAe;EACrBC,KAAK,EAAIC,MAAM,IAAM;IACpB,OACC,CAAEN,uBAAuB,EAAED,aAAa,CAACQ,IAAI,CAAE,CAACC,QAAQ,CACvDF,MAAM,CAACG,QACR,CAAC,IAAIH,MAAM,CAACI,MAAM,KAAK,MAAM;EAE/B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eAAEV,IAAA,CAACL,+BAA+B;MAACgB,QAAQ,EAAG,CAAC;IAAG,CAAE,CAAC;IAC5DC,OAAO,eAAEZ,IAAA,CAACJ,YAAY,IAAE,CAAC;IACzBiB,MAAM,eAAEb,IAAA,CAACN,MAAM,IAAE,CAAC;IAClBoB,OAAO,eAAEd,IAAA,CAACN,MAAM,IAAE;EACnB;AACD,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["SidebarNavigationScreenPatterns","PagePatterns","PATTERN_TYPES","TEMPLATE_PART_POST_TYPE","jsx","_jsx","patternsViewRoute","name","match","params","user","includes","postType","canvas","areas","sidebar","backPath","content","mobile"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/patterns-view.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport SidebarNavigationScreenPatterns from '../sidebar-navigation-screen-patterns';\nimport PagePatterns from '../page-patterns';\nimport { PATTERN_TYPES, TEMPLATE_PART_POST_TYPE } from '../../utils/constants';\n\nexport const patternsViewRoute = {\n\tname: 'patterns-view',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\t[ TEMPLATE_PART_POST_TYPE, PATTERN_TYPES.user ].includes(\n\t\t\t\tparams.postType\n\t\t\t) && params.canvas !== 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: <SidebarNavigationScreenPatterns backPath={ {} } />,\n\t\tcontent: <PagePatterns />,\n\t\tmobile: <PagePatterns />,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,+BAA+B,MAAM,uCAAuC;AACnF,OAAOC,YAAY,MAAM,kBAAkB;AAC3C,SAASC,aAAa,EAAEC,uBAAuB,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/E,OAAO,MAAMC,iBAAiB,GAAG;EAChCC,IAAI,EAAE,eAAe;EACrBC,KAAK,EAAIC,MAAM,IAAM;IACpB,OACC,CAAEN,uBAAuB,EAAED,aAAa,CAACQ,IAAI,CAAE,CAACC,QAAQ,CACvDF,MAAM,CAACG,QACR,CAAC,IAAIH,MAAM,CAACI,MAAM,KAAK,MAAM;EAE/B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eAAEV,IAAA,CAACL,+BAA+B;MAACgB,QAAQ,EAAG,CAAC;IAAG,CAAE,CAAC;IAC5DC,OAAO,eAAEZ,IAAA,CAACJ,YAAY,IAAE,CAAC;IACzBiB,MAAM,eAAEb,IAAA,CAACJ,YAAY,IAAE;EACxB;AACD,CAAC","ignoreList":[]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal dependencies
|
|
3
|
-
*/
|
|
4
|
-
import Editor from '../editor';
|
|
5
|
-
import SidebarNavigationScreenGlobalStyles from '../sidebar-navigation-screen-global-styles';
|
|
6
|
-
import GlobalStylesUIWrapper from '../sidebar-global-styles-wrapper';
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
export const stylesViewRoute = {
|
|
9
|
-
name: 'styles-view',
|
|
10
|
-
match: params => {
|
|
11
|
-
return params.path && params.path.startsWith('/wp_global_styles') && params.canvas !== 'edit';
|
|
12
|
-
},
|
|
13
|
-
areas: {
|
|
14
|
-
content: /*#__PURE__*/_jsx(GlobalStylesUIWrapper, {}),
|
|
15
|
-
sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreenGlobalStyles, {
|
|
16
|
-
backPath: {}
|
|
17
|
-
}),
|
|
18
|
-
preview: /*#__PURE__*/_jsx(Editor, {}),
|
|
19
|
-
mobile: /*#__PURE__*/_jsx(GlobalStylesUIWrapper, {})
|
|
20
|
-
},
|
|
21
|
-
widths: {
|
|
22
|
-
content: 380
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=styles-view.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Editor","SidebarNavigationScreenGlobalStyles","GlobalStylesUIWrapper","jsx","_jsx","stylesViewRoute","name","match","params","path","startsWith","canvas","areas","content","sidebar","backPath","preview","mobile","widths"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/styles-view.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport Editor from '../editor';\nimport SidebarNavigationScreenGlobalStyles from '../sidebar-navigation-screen-global-styles';\nimport GlobalStylesUIWrapper from '../sidebar-global-styles-wrapper';\n\nexport const stylesViewRoute = {\n\tname: 'styles-view',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\tparams.path &&\n\t\t\tparams.path.startsWith( '/wp_global_styles' ) &&\n\t\t\tparams.canvas !== 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tcontent: <GlobalStylesUIWrapper />,\n\t\tsidebar: <SidebarNavigationScreenGlobalStyles backPath={ {} } />,\n\t\tpreview: <Editor />,\n\t\tmobile: <GlobalStylesUIWrapper />,\n\t},\n\twidths: {\n\t\tcontent: 380,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,MAAM,MAAM,WAAW;AAC9B,OAAOC,mCAAmC,MAAM,4CAA4C;AAC5F,OAAOC,qBAAqB,MAAM,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAErE,OAAO,MAAMC,eAAe,GAAG;EAC9BC,IAAI,EAAE,aAAa;EACnBC,KAAK,EAAIC,MAAM,IAAM;IACpB,OACCA,MAAM,CAACC,IAAI,IACXD,MAAM,CAACC,IAAI,CAACC,UAAU,CAAE,mBAAoB,CAAC,IAC7CF,MAAM,CAACG,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eAAET,IAAA,CAACF,qBAAqB,IAAE,CAAC;IAClCY,OAAO,eAAEV,IAAA,CAACH,mCAAmC;MAACc,QAAQ,EAAG,CAAC;IAAG,CAAE,CAAC;IAChEC,OAAO,eAAEZ,IAAA,CAACJ,MAAM,IAAE,CAAC;IACnBiB,MAAM,eAAEb,IAAA,CAACF,qBAAqB,IAAE;EACjC,CAAC;EACDgB,MAAM,EAAE;IACPL,OAAO,EAAE;EACV;AACD,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TEMPLATE_POST_TYPE","PageTemplates","Editor","SidebarNavigationScreenTemplatesBrowse","jsx","_jsx","templatesEditRoute","name","match","params","postType","canvas","areas","sidebar","backPath","content","mobile","preview"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/templates-edit.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport { TEMPLATE_POST_TYPE } from '../../utils/constants';\nimport PageTemplates from '../page-templates';\nimport Editor from '../editor';\nimport SidebarNavigationScreenTemplatesBrowse from '../sidebar-navigation-screen-templates-browse';\n\nexport const templatesEditRoute = {\n\tname: 'templates-edit',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\tparams.postType === TEMPLATE_POST_TYPE && params.canvas === 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: <SidebarNavigationScreenTemplatesBrowse backPath={ {} } />,\n\t\tcontent: <PageTemplates />,\n\t\tmobile: <Editor />,\n\t\tpreview: <Editor />,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,kBAAkB,QAAQ,uBAAuB;AAC1D,OAAOC,aAAa,MAAM,mBAAmB;AAC7C,OAAOC,MAAM,MAAM,WAAW;AAC9B,OAAOC,sCAAsC,MAAM,+CAA+C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnG,OAAO,MAAMC,kBAAkB,GAAG;EACjCC,IAAI,EAAE,gBAAgB;EACtBC,KAAK,EAAIC,MAAM,IAAM;IACpB,OACCA,MAAM,CAACC,QAAQ,KAAKV,kBAAkB,IAAIS,MAAM,CAACE,MAAM,KAAK,MAAM;EAEpE,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eAAER,IAAA,CAACF,sCAAsC;MAACW,QAAQ,EAAG,CAAC;IAAG,CAAE,CAAC;IACnEC,OAAO,eAAEV,IAAA,CAACJ,aAAa,IAAE,CAAC;IAC1Be,MAAM,eAAEX,IAAA,CAACH,MAAM,IAAE,CAAC;IAClBe,OAAO,eAAEZ,IAAA,CAACH,MAAM,IAAE;EACnB;AACD,CAAC","ignoreList":[]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { TEMPLATE_POST_TYPE } from '../../utils/constants';
|
|
5
|
-
import PageTemplates from '../page-templates';
|
|
6
|
-
import Editor from '../editor';
|
|
7
|
-
import SidebarNavigationScreenTemplatesBrowse from '../sidebar-navigation-screen-templates-browse';
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
export const templatesListViewRoute = {
|
|
10
|
-
name: 'templates-list-view',
|
|
11
|
-
match: params => {
|
|
12
|
-
return params.isCustom !== 'true' && params.layout === 'list' && params.postType === TEMPLATE_POST_TYPE && params.canvas !== 'edit';
|
|
13
|
-
},
|
|
14
|
-
areas: {
|
|
15
|
-
sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreenTemplatesBrowse, {
|
|
16
|
-
backPath: {}
|
|
17
|
-
}),
|
|
18
|
-
content: /*#__PURE__*/_jsx(PageTemplates, {}),
|
|
19
|
-
mobile: /*#__PURE__*/_jsx(PageTemplates, {}),
|
|
20
|
-
preview: /*#__PURE__*/_jsx(Editor, {})
|
|
21
|
-
},
|
|
22
|
-
widths: {
|
|
23
|
-
content: 380
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=templates-list-view.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TEMPLATE_POST_TYPE","PageTemplates","Editor","SidebarNavigationScreenTemplatesBrowse","jsx","_jsx","templatesListViewRoute","name","match","params","isCustom","layout","postType","canvas","areas","sidebar","backPath","content","mobile","preview","widths"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/templates-list-view.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport { TEMPLATE_POST_TYPE } from '../../utils/constants';\nimport PageTemplates from '../page-templates';\nimport Editor from '../editor';\nimport SidebarNavigationScreenTemplatesBrowse from '../sidebar-navigation-screen-templates-browse';\n\nexport const templatesListViewRoute = {\n\tname: 'templates-list-view',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\tparams.isCustom !== 'true' &&\n\t\t\tparams.layout === 'list' &&\n\t\t\tparams.postType === TEMPLATE_POST_TYPE &&\n\t\t\tparams.canvas !== 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: <SidebarNavigationScreenTemplatesBrowse backPath={ {} } />,\n\t\tcontent: <PageTemplates />,\n\t\tmobile: <PageTemplates />,\n\t\tpreview: <Editor />,\n\t},\n\twidths: {\n\t\tcontent: 380,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,kBAAkB,QAAQ,uBAAuB;AAC1D,OAAOC,aAAa,MAAM,mBAAmB;AAC7C,OAAOC,MAAM,MAAM,WAAW;AAC9B,OAAOC,sCAAsC,MAAM,+CAA+C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnG,OAAO,MAAMC,sBAAsB,GAAG;EACrCC,IAAI,EAAE,qBAAqB;EAC3BC,KAAK,EAAIC,MAAM,IAAM;IACpB,OACCA,MAAM,CAACC,QAAQ,KAAK,MAAM,IAC1BD,MAAM,CAACE,MAAM,KAAK,MAAM,IACxBF,MAAM,CAACG,QAAQ,KAAKZ,kBAAkB,IACtCS,MAAM,CAACI,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eAAEV,IAAA,CAACF,sCAAsC;MAACa,QAAQ,EAAG,CAAC;IAAG,CAAE,CAAC;IACnEC,OAAO,eAAEZ,IAAA,CAACJ,aAAa,IAAE,CAAC;IAC1BiB,MAAM,eAAEb,IAAA,CAACJ,aAAa,IAAE,CAAC;IACzBkB,OAAO,eAAEd,IAAA,CAACH,MAAM,IAAE;EACnB,CAAC;EACDkB,MAAM,EAAE;IACPH,OAAO,EAAE;EACV;AACD,CAAC","ignoreList":[]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { TEMPLATE_POST_TYPE } from '../../utils/constants';
|
|
5
|
-
import PageTemplates from '../page-templates';
|
|
6
|
-
import SidebarNavigationScreenTemplatesBrowse from '../sidebar-navigation-screen-templates-browse';
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
export const templatesViewRoute = {
|
|
9
|
-
name: 'templates-view',
|
|
10
|
-
match: params => {
|
|
11
|
-
return (params.isCustom === 'true' || params.layout !== 'list') && params.postType === TEMPLATE_POST_TYPE && params.canvas !== 'edit';
|
|
12
|
-
},
|
|
13
|
-
areas: {
|
|
14
|
-
sidebar: /*#__PURE__*/_jsx(SidebarNavigationScreenTemplatesBrowse, {
|
|
15
|
-
backPath: {}
|
|
16
|
-
}),
|
|
17
|
-
content: /*#__PURE__*/_jsx(PageTemplates, {}),
|
|
18
|
-
mobile: /*#__PURE__*/_jsx(PageTemplates, {})
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=templates-view.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TEMPLATE_POST_TYPE","PageTemplates","SidebarNavigationScreenTemplatesBrowse","jsx","_jsx","templatesViewRoute","name","match","params","isCustom","layout","postType","canvas","areas","sidebar","backPath","content","mobile"],"sources":["@wordpress/edit-site/src/components/site-editor-routes/templates-view.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport { TEMPLATE_POST_TYPE } from '../../utils/constants';\nimport PageTemplates from '../page-templates';\nimport SidebarNavigationScreenTemplatesBrowse from '../sidebar-navigation-screen-templates-browse';\n\nexport const templatesViewRoute = {\n\tname: 'templates-view',\n\tmatch: ( params ) => {\n\t\treturn (\n\t\t\t( params.isCustom === 'true' || params.layout !== 'list' ) &&\n\t\t\tparams.postType === TEMPLATE_POST_TYPE &&\n\t\t\tparams.canvas !== 'edit'\n\t\t);\n\t},\n\tareas: {\n\t\tsidebar: <SidebarNavigationScreenTemplatesBrowse backPath={ {} } />,\n\t\tcontent: <PageTemplates />,\n\t\tmobile: <PageTemplates />,\n\t},\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,kBAAkB,QAAQ,uBAAuB;AAC1D,OAAOC,aAAa,MAAM,mBAAmB;AAC7C,OAAOC,sCAAsC,MAAM,+CAA+C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnG,OAAO,MAAMC,kBAAkB,GAAG;EACjCC,IAAI,EAAE,gBAAgB;EACtBC,KAAK,EAAIC,MAAM,IAAM;IACpB,OACC,CAAEA,MAAM,CAACC,QAAQ,KAAK,MAAM,IAAID,MAAM,CAACE,MAAM,KAAK,MAAM,KACxDF,MAAM,CAACG,QAAQ,KAAKX,kBAAkB,IACtCQ,MAAM,CAACI,MAAM,KAAK,MAAM;EAE1B,CAAC;EACDC,KAAK,EAAE;IACNC,OAAO,eAAEV,IAAA,CAACF,sCAAsC;MAACa,QAAQ,EAAG,CAAC;IAAG,CAAE,CAAC;IACnEC,OAAO,eAAEZ,IAAA,CAACH,aAAa,IAAE,CAAC;IAC1BgB,MAAM,eAAEb,IAAA,CAACH,aAAa,IAAE;EACzB;AACD,CAAC","ignoreList":[]}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { privateApis as routerPrivateApis } from '@wordpress/router';
|
|
5
|
-
import { useEffect, useMemo } from '@wordpress/element';
|
|
6
|
-
import { useSelect } from '@wordpress/data';
|
|
7
|
-
/**
|
|
8
|
-
* Internal dependencies
|
|
9
|
-
*/
|
|
10
|
-
import { unlock } from '../../lock-unlock';
|
|
11
|
-
import {
|
|
12
|
-
NAVIGATION_POST_TYPE,
|
|
13
|
-
PATTERN_TYPES,
|
|
14
|
-
TEMPLATE_PART_POST_TYPE,
|
|
15
|
-
TEMPLATE_POST_TYPE,
|
|
16
|
-
} from '../../utils/constants';
|
|
17
|
-
import { store as editSiteStore } from '../../store';
|
|
18
|
-
|
|
19
|
-
const { useLocation, useHistory } = unlock( routerPrivateApis );
|
|
20
|
-
|
|
21
|
-
function useRedirectOldPaths() {
|
|
22
|
-
const history = useHistory();
|
|
23
|
-
const { params } = useLocation();
|
|
24
|
-
useEffect( () => {
|
|
25
|
-
const { postType, path, categoryType, ...rest } = params;
|
|
26
|
-
|
|
27
|
-
if ( path === '/wp_template_part/all' ) {
|
|
28
|
-
history.replace( { postType: TEMPLATE_PART_POST_TYPE } );
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
if ( path === '/page' ) {
|
|
32
|
-
history.replace( {
|
|
33
|
-
postType: 'page',
|
|
34
|
-
...rest,
|
|
35
|
-
} );
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
if ( path === '/wp_template' ) {
|
|
39
|
-
history.replace( {
|
|
40
|
-
postType: TEMPLATE_POST_TYPE,
|
|
41
|
-
...rest,
|
|
42
|
-
} );
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if ( path === '/patterns' ) {
|
|
46
|
-
history.replace( {
|
|
47
|
-
postType:
|
|
48
|
-
categoryType === TEMPLATE_PART_POST_TYPE
|
|
49
|
-
? TEMPLATE_PART_POST_TYPE
|
|
50
|
-
: PATTERN_TYPES.user,
|
|
51
|
-
...rest,
|
|
52
|
-
} );
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
if ( path === '/navigation' ) {
|
|
56
|
-
history.replace( {
|
|
57
|
-
postType: NAVIGATION_POST_TYPE,
|
|
58
|
-
...rest,
|
|
59
|
-
} );
|
|
60
|
-
}
|
|
61
|
-
}, [ history, params ] );
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export default function useActiveRoute() {
|
|
65
|
-
const { params } = useLocation();
|
|
66
|
-
useRedirectOldPaths();
|
|
67
|
-
const routes = useSelect( ( select ) => {
|
|
68
|
-
return unlock( select( editSiteStore ) ).getRoutes();
|
|
69
|
-
}, [] );
|
|
70
|
-
return useMemo( () => {
|
|
71
|
-
const matchedRoute = routes.find( ( route ) => route.match( params ) );
|
|
72
|
-
if ( ! matchedRoute ) {
|
|
73
|
-
return {
|
|
74
|
-
key: 404,
|
|
75
|
-
areas: {},
|
|
76
|
-
widths: {},
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
return {
|
|
81
|
-
name: matchedRoute.name,
|
|
82
|
-
areas: matchedRoute.areas,
|
|
83
|
-
widths: matchedRoute.widths,
|
|
84
|
-
};
|
|
85
|
-
}, [ routes, params ] );
|
|
86
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { privateApis as routerPrivateApis } from '@wordpress/router';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Internal dependencies
|
|
8
|
-
*/
|
|
9
|
-
import Editor from '../editor';
|
|
10
|
-
import SidebarNavigationScreenMain from '../sidebar-navigation-screen-main';
|
|
11
|
-
import { unlock } from '../../lock-unlock';
|
|
12
|
-
|
|
13
|
-
const { useLocation } = unlock( routerPrivateApis );
|
|
14
|
-
|
|
15
|
-
function HomeMobileView() {
|
|
16
|
-
const { params = {} } = useLocation();
|
|
17
|
-
const { canvas = 'view' } = params;
|
|
18
|
-
|
|
19
|
-
return canvas === 'edit' ? (
|
|
20
|
-
<Editor isPostsList />
|
|
21
|
-
) : (
|
|
22
|
-
<SidebarNavigationScreenMain />
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export const homeRoute = {
|
|
27
|
-
name: 'home',
|
|
28
|
-
match: () => {
|
|
29
|
-
return true;
|
|
30
|
-
},
|
|
31
|
-
areas: {
|
|
32
|
-
sidebar: <SidebarNavigationScreenMain />,
|
|
33
|
-
preview: <Editor isPostsList />,
|
|
34
|
-
mobile: HomeMobileView,
|
|
35
|
-
},
|
|
36
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { __ } from '@wordpress/i18n';
|
|
5
|
-
import { privateApis as routerPrivateApis } from '@wordpress/router';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Internal dependencies
|
|
9
|
-
*/
|
|
10
|
-
import PostList from '../post-list';
|
|
11
|
-
import DataViewsSidebarContent from '../sidebar-dataviews';
|
|
12
|
-
import SidebarNavigationScreen from '../sidebar-navigation-screen';
|
|
13
|
-
import { unlock } from '../../lock-unlock';
|
|
14
|
-
import { PostEdit } from '../post-edit';
|
|
15
|
-
import Editor from '../editor';
|
|
16
|
-
|
|
17
|
-
const { useLocation } = unlock( routerPrivateApis );
|
|
18
|
-
|
|
19
|
-
function PostQuickEdit() {
|
|
20
|
-
const { params } = useLocation();
|
|
21
|
-
return <PostEdit postType="post" postId={ params.postId } />;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const postsListViewQuickEditRoute = {
|
|
25
|
-
name: 'posts-list-view-quick-edit',
|
|
26
|
-
match: ( params ) => {
|
|
27
|
-
return (
|
|
28
|
-
params.isCustom !== 'true' &&
|
|
29
|
-
( params.layout ?? 'list' ) === 'list' &&
|
|
30
|
-
!! params.quickEdit &&
|
|
31
|
-
params.postType === 'post' &&
|
|
32
|
-
params.canvas !== 'edit'
|
|
33
|
-
);
|
|
34
|
-
},
|
|
35
|
-
areas: {
|
|
36
|
-
sidebar: (
|
|
37
|
-
<SidebarNavigationScreen
|
|
38
|
-
title={ __( 'Posts' ) }
|
|
39
|
-
isRoot
|
|
40
|
-
content={ <DataViewsSidebarContent /> }
|
|
41
|
-
/>
|
|
42
|
-
),
|
|
43
|
-
content: <PostList postType="post" />,
|
|
44
|
-
mobile: <PostList postType="post" />,
|
|
45
|
-
preview: <Editor />,
|
|
46
|
-
edit: <PostQuickEdit />,
|
|
47
|
-
},
|
|
48
|
-
widths: {
|
|
49
|
-
content: 380,
|
|
50
|
-
edit: 380,
|
|
51
|
-
},
|
|
52
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { __ } from '@wordpress/i18n';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Internal dependencies
|
|
8
|
-
*/
|
|
9
|
-
import PostList from '../post-list';
|
|
10
|
-
import DataViewsSidebarContent from '../sidebar-dataviews';
|
|
11
|
-
import SidebarNavigationScreen from '../sidebar-navigation-screen';
|
|
12
|
-
import Editor from '../editor';
|
|
13
|
-
|
|
14
|
-
export const postsListViewRoute = {
|
|
15
|
-
name: 'posts-list-view',
|
|
16
|
-
match: ( params ) => {
|
|
17
|
-
return (
|
|
18
|
-
params.isCustom !== 'true' &&
|
|
19
|
-
( params.layout ?? 'list' ) === 'list' &&
|
|
20
|
-
! params.quickEdit &&
|
|
21
|
-
params.postType === 'post' &&
|
|
22
|
-
params.canvas !== 'edit'
|
|
23
|
-
);
|
|
24
|
-
},
|
|
25
|
-
areas: {
|
|
26
|
-
sidebar: (
|
|
27
|
-
<SidebarNavigationScreen
|
|
28
|
-
title={ __( 'Posts' ) }
|
|
29
|
-
isRoot
|
|
30
|
-
content={ <DataViewsSidebarContent /> }
|
|
31
|
-
/>
|
|
32
|
-
),
|
|
33
|
-
content: <PostList postType="post" />,
|
|
34
|
-
preview: <Editor isPostsList />,
|
|
35
|
-
mobile: <PostList postType="post" />,
|
|
36
|
-
},
|
|
37
|
-
widths: {
|
|
38
|
-
content: 380,
|
|
39
|
-
},
|
|
40
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { __ } from '@wordpress/i18n';
|
|
5
|
-
import { privateApis as routerPrivateApis } from '@wordpress/router';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Internal dependencies
|
|
9
|
-
*/
|
|
10
|
-
import PostList from '../post-list';
|
|
11
|
-
import DataViewsSidebarContent from '../sidebar-dataviews';
|
|
12
|
-
import SidebarNavigationScreen from '../sidebar-navigation-screen';
|
|
13
|
-
import { unlock } from '../../lock-unlock';
|
|
14
|
-
import { PostEdit } from '../post-edit';
|
|
15
|
-
|
|
16
|
-
const { useLocation } = unlock( routerPrivateApis );
|
|
17
|
-
|
|
18
|
-
function PostQuickEdit() {
|
|
19
|
-
const { params } = useLocation();
|
|
20
|
-
return <PostEdit postType="post" postId={ params.postId } />;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const postsViewQuickEditRoute = {
|
|
24
|
-
name: 'posts-view-quick-edit',
|
|
25
|
-
match: ( params ) => {
|
|
26
|
-
return (
|
|
27
|
-
( params.isCustom === 'true' ||
|
|
28
|
-
( params.layout ?? 'list' ) !== 'list' ) &&
|
|
29
|
-
!! params.quickEdit &&
|
|
30
|
-
params.postType === 'post' &&
|
|
31
|
-
params.canvas !== 'edit'
|
|
32
|
-
);
|
|
33
|
-
},
|
|
34
|
-
areas: {
|
|
35
|
-
sidebar: (
|
|
36
|
-
<SidebarNavigationScreen
|
|
37
|
-
title={ __( 'Posts' ) }
|
|
38
|
-
isRoot
|
|
39
|
-
content={ <DataViewsSidebarContent /> }
|
|
40
|
-
/>
|
|
41
|
-
),
|
|
42
|
-
content: <PostList postType="post" />,
|
|
43
|
-
mobile: <PostList postType="post" />,
|
|
44
|
-
edit: <PostQuickEdit />,
|
|
45
|
-
},
|
|
46
|
-
widths: {
|
|
47
|
-
edit: 380,
|
|
48
|
-
},
|
|
49
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { __ } from '@wordpress/i18n';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Internal dependencies
|
|
8
|
-
*/
|
|
9
|
-
import PostList from '../post-list';
|
|
10
|
-
import DataViewsSidebarContent from '../sidebar-dataviews';
|
|
11
|
-
import SidebarNavigationScreen from '../sidebar-navigation-screen';
|
|
12
|
-
|
|
13
|
-
export const postsViewRoute = {
|
|
14
|
-
name: 'posts-view',
|
|
15
|
-
match: ( params ) => {
|
|
16
|
-
return (
|
|
17
|
-
( params.isCustom === 'true' ||
|
|
18
|
-
( params.layout ?? 'list' ) !== 'list' ) &&
|
|
19
|
-
! params.quickEdit &&
|
|
20
|
-
params.postType === 'post' &&
|
|
21
|
-
params.canvas !== 'edit'
|
|
22
|
-
);
|
|
23
|
-
},
|
|
24
|
-
areas: {
|
|
25
|
-
sidebar: (
|
|
26
|
-
<SidebarNavigationScreen
|
|
27
|
-
title={ __( 'Posts' ) }
|
|
28
|
-
isRoot
|
|
29
|
-
content={ <DataViewsSidebarContent /> }
|
|
30
|
-
/>
|
|
31
|
-
),
|
|
32
|
-
content: <PostList postType="post" />,
|
|
33
|
-
mobile: <PostList postType="post" />,
|
|
34
|
-
},
|
|
35
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { addQueryArgs, getQueryArgs, removeQueryArgs } from '@wordpress/url';
|
|
5
|
-
import { privateApis as routerPrivateApis } from '@wordpress/router';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Internal dependencies
|
|
9
|
-
*/
|
|
10
|
-
import { unlock } from '../../lock-unlock';
|
|
11
|
-
import {
|
|
12
|
-
isPreviewingTheme,
|
|
13
|
-
currentlyPreviewingTheme,
|
|
14
|
-
} from '../../utils/is-previewing-theme';
|
|
15
|
-
|
|
16
|
-
const { useHistory } = unlock( routerPrivateApis );
|
|
17
|
-
|
|
18
|
-
export function useLink( params, state, shouldReplace = false ) {
|
|
19
|
-
const history = useHistory();
|
|
20
|
-
function onClick( event ) {
|
|
21
|
-
event?.preventDefault();
|
|
22
|
-
|
|
23
|
-
if ( shouldReplace ) {
|
|
24
|
-
history.replace( params, state );
|
|
25
|
-
} else {
|
|
26
|
-
history.push( params, state );
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const currentArgs = getQueryArgs( window.location.href );
|
|
31
|
-
const currentUrlWithoutArgs = removeQueryArgs(
|
|
32
|
-
window.location.href,
|
|
33
|
-
...Object.keys( currentArgs )
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
let extraParams = {};
|
|
37
|
-
if ( isPreviewingTheme() ) {
|
|
38
|
-
extraParams = {
|
|
39
|
-
wp_theme_preview: currentlyPreviewingTheme(),
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const newUrl = addQueryArgs( currentUrlWithoutArgs, {
|
|
44
|
-
...params,
|
|
45
|
-
...extraParams,
|
|
46
|
-
} );
|
|
47
|
-
|
|
48
|
-
return {
|
|
49
|
-
href: newUrl,
|
|
50
|
-
onClick,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export default function Link( {
|
|
55
|
-
params = {},
|
|
56
|
-
state,
|
|
57
|
-
replace: shouldReplace = false,
|
|
58
|
-
children,
|
|
59
|
-
...props
|
|
60
|
-
} ) {
|
|
61
|
-
const { href, onClick } = useLink( params, state, shouldReplace );
|
|
62
|
-
|
|
63
|
-
return (
|
|
64
|
-
<a href={ href } onClick={ onClick } { ...props }>
|
|
65
|
-
{ children }
|
|
66
|
-
</a>
|
|
67
|
-
);
|
|
68
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal dependencies
|
|
3
|
-
*/
|
|
4
|
-
import Editor from '../editor';
|
|
5
|
-
import SidebarNavigationScreenMain from '../sidebar-navigation-screen-main';
|
|
6
|
-
|
|
7
|
-
export const homeEditRoute = {
|
|
8
|
-
name: 'home-edit',
|
|
9
|
-
match: ( params ) => {
|
|
10
|
-
return params.canvas === 'edit';
|
|
11
|
-
},
|
|
12
|
-
areas: {
|
|
13
|
-
sidebar: <SidebarNavigationScreenMain />,
|
|
14
|
-
preview: <Editor />,
|
|
15
|
-
mobile: <Editor />,
|
|
16
|
-
},
|
|
17
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { NAVIGATION_POST_TYPE } from '../../utils/constants';
|
|
5
|
-
import Editor from '../editor';
|
|
6
|
-
import SidebarNavigationScreenNavigationMenus from '../sidebar-navigation-screen-navigation-menus';
|
|
7
|
-
|
|
8
|
-
export const navigationEditRoute = {
|
|
9
|
-
name: 'navigation-edit',
|
|
10
|
-
match: ( params ) => {
|
|
11
|
-
return (
|
|
12
|
-
params.postType === NAVIGATION_POST_TYPE &&
|
|
13
|
-
! params.postId &&
|
|
14
|
-
params.canvas === 'edit'
|
|
15
|
-
);
|
|
16
|
-
},
|
|
17
|
-
areas: {
|
|
18
|
-
sidebar: <SidebarNavigationScreenNavigationMenus backPath={ {} } />,
|
|
19
|
-
preview: <Editor />,
|
|
20
|
-
mobile: <Editor />,
|
|
21
|
-
},
|
|
22
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { NAVIGATION_POST_TYPE } from '../../utils/constants';
|
|
5
|
-
import Editor from '../editor';
|
|
6
|
-
import SidebarNavigationScreenNavigationMenu from '../sidebar-navigation-screen-navigation-menu';
|
|
7
|
-
|
|
8
|
-
export const navigationItemEditRoute = {
|
|
9
|
-
name: 'navigation-item-edit',
|
|
10
|
-
match: ( params ) => {
|
|
11
|
-
return (
|
|
12
|
-
params.postType === NAVIGATION_POST_TYPE &&
|
|
13
|
-
!! params.postId &&
|
|
14
|
-
params.canvas === 'edit'
|
|
15
|
-
);
|
|
16
|
-
},
|
|
17
|
-
areas: {
|
|
18
|
-
sidebar: (
|
|
19
|
-
<SidebarNavigationScreenNavigationMenu
|
|
20
|
-
backPath={ { postType: NAVIGATION_POST_TYPE } }
|
|
21
|
-
/>
|
|
22
|
-
),
|
|
23
|
-
preview: <Editor />,
|
|
24
|
-
mobile: <Editor />,
|
|
25
|
-
},
|
|
26
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { NAVIGATION_POST_TYPE } from '../../utils/constants';
|
|
5
|
-
import Editor from '../editor';
|
|
6
|
-
import SidebarNavigationScreenNavigationMenu from '../sidebar-navigation-screen-navigation-menu';
|
|
7
|
-
|
|
8
|
-
export const navigationItemViewRoute = {
|
|
9
|
-
name: 'navigation-item-view',
|
|
10
|
-
match: ( params ) => {
|
|
11
|
-
return (
|
|
12
|
-
params.postType === NAVIGATION_POST_TYPE &&
|
|
13
|
-
!! params.postId &&
|
|
14
|
-
params.canvas !== 'edit'
|
|
15
|
-
);
|
|
16
|
-
},
|
|
17
|
-
areas: {
|
|
18
|
-
sidebar: (
|
|
19
|
-
<SidebarNavigationScreenNavigationMenu
|
|
20
|
-
backPath={ { postType: NAVIGATION_POST_TYPE } }
|
|
21
|
-
/>
|
|
22
|
-
),
|
|
23
|
-
preview: <Editor />,
|
|
24
|
-
},
|
|
25
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { NAVIGATION_POST_TYPE } from '../../utils/constants';
|
|
5
|
-
import Editor from '../editor';
|
|
6
|
-
import SidebarNavigationScreenNavigationMenus from '../sidebar-navigation-screen-navigation-menus';
|
|
7
|
-
|
|
8
|
-
export const navigationViewRoute = {
|
|
9
|
-
name: 'navigation-view',
|
|
10
|
-
match: ( params ) => {
|
|
11
|
-
return (
|
|
12
|
-
params.postType === NAVIGATION_POST_TYPE &&
|
|
13
|
-
! params.postId &&
|
|
14
|
-
params.canvas !== 'edit'
|
|
15
|
-
);
|
|
16
|
-
},
|
|
17
|
-
areas: {
|
|
18
|
-
sidebar: <SidebarNavigationScreenNavigationMenus backPath={ {} } />,
|
|
19
|
-
preview: <Editor />,
|
|
20
|
-
},
|
|
21
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { __ } from '@wordpress/i18n';
|
|
5
|
-
import { privateApis as routerPrivateApis } from '@wordpress/router';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Internal dependencies
|
|
9
|
-
*/
|
|
10
|
-
import PostList from '../post-list';
|
|
11
|
-
import DataViewsSidebarContent from '../sidebar-dataviews';
|
|
12
|
-
import SidebarNavigationScreen from '../sidebar-navigation-screen';
|
|
13
|
-
import { unlock } from '../../lock-unlock';
|
|
14
|
-
import { PostEdit } from '../post-edit';
|
|
15
|
-
import Editor from '../editor';
|
|
16
|
-
|
|
17
|
-
const { useLocation } = unlock( routerPrivateApis );
|
|
18
|
-
|
|
19
|
-
function PageList() {
|
|
20
|
-
return <PostList postType="page" />;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function PageQuickEdit() {
|
|
24
|
-
const { params } = useLocation();
|
|
25
|
-
return <PostEdit postType="page" postId={ params.postId } />;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export const pagesListViewQuickEditRoute = {
|
|
29
|
-
name: 'pages-list-view-quick-edit',
|
|
30
|
-
match: ( params ) => {
|
|
31
|
-
return (
|
|
32
|
-
params.isCustom !== 'true' &&
|
|
33
|
-
( params.layout ?? 'list' ) === 'list' &&
|
|
34
|
-
!! params.quickEdit &&
|
|
35
|
-
params.postType === 'page' &&
|
|
36
|
-
params.canvas !== 'edit'
|
|
37
|
-
);
|
|
38
|
-
},
|
|
39
|
-
areas: {
|
|
40
|
-
sidebar: (
|
|
41
|
-
<SidebarNavigationScreen
|
|
42
|
-
title={ __( 'Pages' ) }
|
|
43
|
-
backPath={ {} }
|
|
44
|
-
content={ <DataViewsSidebarContent /> }
|
|
45
|
-
/>
|
|
46
|
-
),
|
|
47
|
-
content: <PageList />,
|
|
48
|
-
mobile: <PageList />,
|
|
49
|
-
preview: <Editor />,
|
|
50
|
-
edit: <PageQuickEdit />,
|
|
51
|
-
},
|
|
52
|
-
widths: {
|
|
53
|
-
content: 380,
|
|
54
|
-
edit: 380,
|
|
55
|
-
},
|
|
56
|
-
};
|