@wordpress/edit-site 5.12.5 → 5.12.7
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-template/new-template.js +1 -1
- package/build/components/add-new-template/new-template.js.map +1 -1
- package/build/components/block-editor/editor-canvas.js +1 -1
- package/build/components/block-editor/editor-canvas.js.map +1 -1
- package/build/components/block-editor/use-site-editor-settings.js +10 -5
- package/build/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build/components/create-pattern-modal/index.js +8 -8
- package/build/components/create-pattern-modal/index.js.map +1 -1
- package/build/components/global-styles/palette.js +1 -1
- package/build/components/global-styles/palette.js.map +1 -1
- package/build/components/header-edit-mode/document-actions/index.js +9 -1
- package/build/components/header-edit-mode/document-actions/index.js.map +1 -1
- package/build/components/header-edit-mode/index.js +6 -2
- package/build/components/header-edit-mode/index.js.map +1 -1
- package/build/components/layout/index.js +1 -1
- package/build/components/layout/index.js.map +1 -1
- package/build/components/page/header.js +1 -1
- package/build/components/page/header.js.map +1 -1
- package/build/components/page/index.js +3 -1
- package/build/components/page/index.js.map +1 -1
- package/build/components/page-content-focus-manager/disable-non-page-content-blocks.js +5 -5
- package/build/components/page-content-focus-manager/disable-non-page-content-blocks.js.map +1 -1
- package/build/components/page-main/index.js +8 -4
- package/build/components/page-main/index.js.map +1 -1
- package/build/components/{page-library → page-patterns}/grid-item.js +52 -27
- package/build/components/page-patterns/grid-item.js.map +1 -0
- package/build/components/{page-library → page-patterns}/grid.js +1 -1
- package/build/components/page-patterns/grid.js.map +1 -0
- package/build/components/{page-library → page-patterns}/index.js +6 -6
- package/build/components/page-patterns/index.js.map +1 -0
- package/build/components/{page-library → page-patterns}/no-patterns.js +1 -1
- package/build/components/page-patterns/no-patterns.js.map +1 -0
- package/build/components/{page-library → page-patterns}/patterns-list.js +9 -9
- package/build/components/page-patterns/patterns-list.js.map +1 -0
- package/build/components/page-patterns/search-items.js.map +1 -0
- package/build/components/{page-library/use-library-settings.js → page-patterns/use-pattern-settings.js} +3 -3
- package/build/components/page-patterns/use-pattern-settings.js.map +1 -0
- package/build/components/{page-library → page-patterns}/use-patterns.js +4 -2
- package/build/components/page-patterns/use-patterns.js.map +1 -0
- package/build/components/{page-library → page-patterns}/utils.js +3 -3
- package/build/components/page-patterns/utils.js.map +1 -0
- package/build/components/page-template-parts/index.js +103 -0
- package/build/components/page-template-parts/index.js.map +1 -0
- package/build/components/page-templates/index.js +1 -0
- package/build/components/page-templates/index.js.map +1 -1
- package/build/components/sidebar/index.js +6 -6
- package/build/components/sidebar/index.js.map +1 -1
- package/build/components/sidebar-edit-mode/page-panels/page-content.js +4 -3
- package/build/components/sidebar-edit-mode/page-panels/page-content.js.map +1 -1
- package/build/components/sidebar-edit-mode/settings-header/index.js +7 -1
- package/build/components/sidebar-edit-mode/settings-header/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-global-styles/index.js +63 -11
- package/build/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-main/index.js +5 -3
- package/build/components/sidebar-navigation-screen-main/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-main/template-part-hint.js +45 -0
- package/build/components/sidebar-navigation-screen-main/template-part-hint.js.map +1 -0
- package/build/components/sidebar-navigation-screen-navigation-menu/edit-button.js +10 -11
- package/build/components/sidebar-navigation-screen-navigation-menu/edit-button.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/index.js +2 -4
- package/build/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +6 -2
- package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menus/index.js +16 -4
- package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-page/status-label.js +1 -1
- package/build/components/sidebar-navigation-screen-page/status-label.js.map +1 -1
- package/build/components/sidebar-navigation-screen-pages/index.js +1 -1
- package/build/components/sidebar-navigation-screen-pages/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-pattern/index.js +13 -8
- package/build/components/sidebar-navigation-screen-pattern/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-pattern/use-pattern-details.js +25 -2
- package/build/components/sidebar-navigation-screen-pattern/use-pattern-details.js.map +1 -1
- package/build/components/{sidebar-navigation-screen-library → sidebar-navigation-screen-patterns}/category-item.js +3 -3
- package/build/components/sidebar-navigation-screen-patterns/category-item.js.map +1 -0
- package/build/components/sidebar-navigation-screen-patterns/index.js +177 -0
- package/build/components/sidebar-navigation-screen-patterns/index.js.map +1 -0
- package/build/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js.map +1 -0
- package/build/components/sidebar-navigation-screen-patterns/use-my-patterns.js +30 -0
- package/build/components/sidebar-navigation-screen-patterns/use-my-patterns.js.map +1 -0
- package/build/components/{sidebar-navigation-screen-library → sidebar-navigation-screen-patterns}/use-pattern-categories.js +2 -20
- package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +1 -0
- package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +52 -0
- package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.js.map +1 -0
- package/build/components/{sidebar-navigation-screen-library → sidebar-navigation-screen-patterns}/use-theme-patterns.js +1 -1
- package/build/components/sidebar-navigation-screen-patterns/use-theme-patterns.js.map +1 -0
- package/build/components/sidebar-navigation-screen-templates/index.js +11 -63
- package/build/components/sidebar-navigation-screen-templates/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-templates-browse/index.js +4 -2
- package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
- package/build/components/site-hub/index.js +1 -1
- package/build/components/site-hub/index.js.map +1 -1
- package/build/components/sync-state-with-url/use-sync-path-with-url.js +1 -1
- package/build/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -1
- package/build/components/template-actions/index.js +22 -6
- package/build/components/template-actions/index.js.map +1 -1
- package/build/components/welcome-guide/editor.js +1 -1
- package/build/components/welcome-guide/editor.js.map +1 -1
- package/build/components/welcome-guide/index.js +5 -1
- package/build/components/welcome-guide/index.js.map +1 -1
- package/build/components/welcome-guide/page.js +70 -0
- package/build/components/welcome-guide/page.js.map +1 -0
- package/build/components/welcome-guide/styles.js +1 -1
- package/build/components/welcome-guide/styles.js.map +1 -1
- package/build/components/welcome-guide/template.js +71 -0
- package/build/components/welcome-guide/template.js.map +1 -0
- package/build/hooks/commands/use-common-commands.js +17 -2
- package/build/hooks/commands/use-common-commands.js.map +1 -1
- package/build/hooks/commands/use-edit-mode-commands.js +3 -3
- package/build/hooks/commands/use-edit-mode-commands.js.map +1 -1
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/store/actions.js +5 -2
- package/build/store/actions.js.map +1 -1
- package/build/store/private-actions.js +7 -1
- package/build/store/private-actions.js.map +1 -1
- package/build/utils/get-is-list-page.js +2 -2
- package/build/utils/get-is-list-page.js.map +1 -1
- package/build-module/components/add-new-template/new-template.js +2 -2
- package/build-module/components/add-new-template/new-template.js.map +1 -1
- package/build-module/components/block-editor/editor-canvas.js +1 -1
- package/build-module/components/block-editor/editor-canvas.js.map +1 -1
- package/build-module/components/block-editor/use-site-editor-settings.js +10 -5
- package/build-module/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build-module/components/create-pattern-modal/index.js +8 -8
- package/build-module/components/create-pattern-modal/index.js.map +1 -1
- package/build-module/components/global-styles/palette.js +1 -1
- package/build-module/components/global-styles/palette.js.map +1 -1
- package/build-module/components/header-edit-mode/document-actions/index.js +10 -2
- package/build-module/components/header-edit-mode/document-actions/index.js.map +1 -1
- package/build-module/components/header-edit-mode/index.js +6 -2
- package/build-module/components/header-edit-mode/index.js.map +1 -1
- package/build-module/components/layout/index.js +1 -1
- package/build-module/components/layout/index.js.map +1 -1
- package/build-module/components/page/header.js +1 -1
- package/build-module/components/page/header.js.map +1 -1
- package/build-module/components/page/index.js +2 -1
- package/build-module/components/page/index.js.map +1 -1
- package/build-module/components/page-content-focus-manager/disable-non-page-content-blocks.js +5 -3
- package/build-module/components/page-content-focus-manager/disable-non-page-content-blocks.js.map +1 -1
- package/build-module/components/page-main/index.js +6 -3
- package/build-module/components/page-main/index.js.map +1 -1
- package/build-module/components/{page-library → page-patterns}/grid-item.js +56 -29
- package/build-module/components/page-patterns/grid-item.js.map +1 -0
- package/build-module/components/{page-library → page-patterns}/grid.js +1 -1
- package/build-module/components/page-patterns/grid.js.map +1 -0
- package/build-module/components/{page-library → page-patterns}/index.js +5 -5
- package/build-module/components/page-patterns/index.js.map +1 -0
- package/build-module/components/{page-library → page-patterns}/no-patterns.js +1 -1
- package/build-module/components/page-patterns/no-patterns.js.map +1 -0
- package/build-module/components/{page-library → page-patterns}/patterns-list.js +9 -9
- package/build-module/components/page-patterns/patterns-list.js.map +1 -0
- package/build-module/components/page-patterns/search-items.js.map +1 -0
- package/build-module/components/{page-library/use-library-settings.js → page-patterns/use-pattern-settings.js} +2 -2
- package/build-module/components/page-patterns/use-pattern-settings.js.map +1 -0
- package/build-module/components/{page-library → page-patterns}/use-patterns.js +4 -2
- package/build-module/components/page-patterns/use-patterns.js.map +1 -0
- package/build-module/components/{page-library → page-patterns}/utils.js +3 -3
- package/build-module/components/page-patterns/utils.js.map +1 -0
- package/build-module/components/page-template-parts/index.js +82 -0
- package/build-module/components/page-template-parts/index.js.map +1 -0
- package/build-module/components/page-templates/index.js +1 -0
- package/build-module/components/page-templates/index.js.map +1 -1
- package/build-module/components/sidebar/index.js +5 -5
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/sidebar-edit-mode/page-panels/page-content.js +5 -2
- package/build-module/components/sidebar-edit-mode/page-panels/page-content.js.map +1 -1
- package/build-module/components/sidebar-edit-mode/settings-header/index.js +6 -1
- package/build-module/components/sidebar-edit-mode/settings-header/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-global-styles/index.js +62 -11
- package/build-module/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-main/index.js +5 -4
- package/build-module/components/sidebar-navigation-screen-main/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-main/template-part-hint.js +33 -0
- package/build-module/components/sidebar-navigation-screen-main/template-part-hint.js.map +1 -0
- package/build-module/components/sidebar-navigation-screen-navigation-menu/edit-button.js +10 -9
- package/build-module/components/sidebar-navigation-screen-navigation-menu/edit-button.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js +2 -4
- package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +6 -3
- package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +15 -5
- package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-page/status-label.js +1 -1
- package/build-module/components/sidebar-navigation-screen-page/status-label.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-pages/index.js +2 -2
- package/build-module/components/sidebar-navigation-screen-pages/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-pattern/index.js +12 -7
- package/build-module/components/sidebar-navigation-screen-pattern/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-pattern/use-pattern-details.js +23 -2
- package/build-module/components/sidebar-navigation-screen-pattern/use-pattern-details.js.map +1 -1
- package/build-module/components/{sidebar-navigation-screen-library → sidebar-navigation-screen-patterns}/category-item.js +3 -3
- package/build-module/components/sidebar-navigation-screen-patterns/category-item.js.map +1 -0
- package/build-module/components/sidebar-navigation-screen-patterns/index.js +152 -0
- package/build-module/components/sidebar-navigation-screen-patterns/index.js.map +1 -0
- package/build-module/components/sidebar-navigation-screen-patterns/use-default-pattern-categories.js.map +1 -0
- package/build-module/components/sidebar-navigation-screen-patterns/use-my-patterns.js +20 -0
- package/build-module/components/sidebar-navigation-screen-patterns/use-my-patterns.js.map +1 -0
- package/build-module/components/{sidebar-navigation-screen-library → sidebar-navigation-screen-patterns}/use-pattern-categories.js +2 -17
- package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +1 -0
- package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +43 -0
- package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js.map +1 -0
- package/build-module/components/{sidebar-navigation-screen-library → sidebar-navigation-screen-patterns}/use-theme-patterns.js +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/use-theme-patterns.js.map +1 -0
- package/build-module/components/sidebar-navigation-screen-templates/index.js +12 -62
- package/build-module/components/sidebar-navigation-screen-templates/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +4 -2
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -1
- package/build-module/components/site-hub/index.js +1 -1
- package/build-module/components/site-hub/index.js.map +1 -1
- package/build-module/components/sync-state-with-url/use-sync-path-with-url.js +1 -1
- package/build-module/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -1
- package/build-module/components/template-actions/index.js +24 -7
- package/build-module/components/template-actions/index.js.map +1 -1
- package/build-module/components/welcome-guide/editor.js +1 -1
- package/build-module/components/welcome-guide/editor.js.map +1 -1
- package/build-module/components/welcome-guide/index.js +3 -1
- package/build-module/components/welcome-guide/index.js.map +1 -1
- package/build-module/components/welcome-guide/page.js +59 -0
- package/build-module/components/welcome-guide/page.js.map +1 -0
- package/build-module/components/welcome-guide/styles.js +1 -1
- package/build-module/components/welcome-guide/styles.js.map +1 -1
- package/build-module/components/welcome-guide/template.js +60 -0
- package/build-module/components/welcome-guide/template.js.map +1 -0
- package/build-module/hooks/commands/use-common-commands.js +16 -2
- package/build-module/hooks/commands/use-common-commands.js.map +1 -1
- package/build-module/hooks/commands/use-edit-mode-commands.js +3 -3
- package/build-module/hooks/commands/use-edit-mode-commands.js.map +1 -1
- package/build-module/index.js +2 -0
- package/build-module/index.js.map +1 -1
- package/build-module/store/actions.js +5 -2
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/private-actions.js +7 -1
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/utils/get-is-list-page.js +2 -2
- package/build-module/utils/get-is-list-page.js.map +1 -1
- package/build-style/style-rtl.css +90 -32
- package/build-style/style.css +90 -32
- package/package.json +19 -19
- package/src/components/add-new-template/new-template.js +2 -2
- package/src/components/block-editor/editor-canvas.js +3 -1
- package/src/components/block-editor/use-site-editor-settings.js +8 -4
- package/src/components/create-pattern-modal/index.js +10 -11
- package/src/components/global-styles/palette.js +10 -9
- package/src/components/header-edit-mode/document-actions/index.js +9 -1
- package/src/components/header-edit-mode/document-actions/style.scss +8 -0
- package/src/components/header-edit-mode/index.js +17 -9
- package/src/components/layout/index.js +1 -1
- package/src/components/layout/style.scss +0 -11
- package/src/components/page/header.js +1 -1
- package/src/components/page/index.js +5 -1
- package/src/components/page-content-focus-manager/disable-non-page-content-blocks.js +12 -3
- package/src/components/page-main/index.js +6 -3
- package/src/components/{page-library → page-patterns}/grid-item.js +79 -24
- package/src/components/{page-library → page-patterns}/grid.js +1 -1
- package/src/components/{page-library → page-patterns}/index.js +5 -5
- package/src/components/{page-library → page-patterns}/no-patterns.js +1 -1
- package/src/components/{page-library → page-patterns}/patterns-list.js +9 -9
- package/src/components/{page-library → page-patterns}/style.scss +16 -12
- package/src/components/{page-library/use-library-settings.js → page-patterns/use-pattern-settings.js} +1 -1
- package/src/components/{page-library → page-patterns}/use-patterns.js +5 -2
- package/src/components/{page-library → page-patterns}/utils.js +3 -3
- package/src/components/page-template-parts/index.js +105 -0
- package/src/components/page-templates/index.js +1 -1
- package/src/components/sidebar/index.js +6 -6
- package/src/components/sidebar-edit-mode/page-panels/page-content.js +7 -5
- package/src/components/sidebar-edit-mode/settings-header/index.js +7 -2
- package/src/components/sidebar-navigation-screen/style.scss +19 -1
- package/src/components/sidebar-navigation-screen-global-styles/index.js +54 -26
- package/src/components/sidebar-navigation-screen-main/index.js +44 -40
- package/src/components/sidebar-navigation-screen-main/template-part-hint.js +36 -0
- package/src/components/sidebar-navigation-screen-navigation-menu/edit-button.js +8 -11
- package/src/components/sidebar-navigation-screen-navigation-menu/index.js +2 -6
- package/src/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +10 -6
- package/src/components/sidebar-navigation-screen-navigation-menus/index.js +12 -4
- package/src/components/sidebar-navigation-screen-page/status-label.js +1 -1
- package/src/components/sidebar-navigation-screen-pages/index.js +2 -2
- package/src/components/sidebar-navigation-screen-pattern/index.js +13 -6
- package/src/components/sidebar-navigation-screen-pattern/style.scss +4 -0
- package/src/components/sidebar-navigation-screen-pattern/use-pattern-details.js +45 -3
- package/src/components/{sidebar-navigation-screen-library → sidebar-navigation-screen-patterns}/category-item.js +3 -3
- package/src/components/sidebar-navigation-screen-patterns/index.js +199 -0
- package/src/components/sidebar-navigation-screen-patterns/style.scss +28 -0
- package/src/components/sidebar-navigation-screen-patterns/use-my-patterns.js +23 -0
- package/src/components/{sidebar-navigation-screen-library → sidebar-navigation-screen-patterns}/use-pattern-categories.js +1 -18
- package/src/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +55 -0
- package/src/components/{sidebar-navigation-screen-library → sidebar-navigation-screen-patterns}/use-theme-patterns.js +1 -1
- package/src/components/sidebar-navigation-screen-templates/index.js +15 -82
- package/src/components/sidebar-navigation-screen-templates-browse/index.js +2 -0
- package/src/components/site-hub/index.js +1 -1
- package/src/components/sync-state-with-url/use-sync-path-with-url.js +1 -1
- package/src/components/template-actions/index.js +38 -8
- package/src/components/welcome-guide/editor.js +1 -1
- package/src/components/welcome-guide/index.js +4 -0
- package/src/components/welcome-guide/page.js +75 -0
- package/src/components/welcome-guide/style.scss +15 -1
- package/src/components/welcome-guide/styles.js +1 -1
- package/src/components/welcome-guide/template.js +82 -0
- package/src/hooks/commands/use-common-commands.js +13 -1
- package/src/hooks/commands/use-edit-mode-commands.js +5 -2
- package/src/index.js +2 -0
- package/src/store/actions.js +8 -1
- package/src/store/private-actions.js +5 -1
- package/src/style.scss +2 -2
- package/src/utils/get-is-list-page.js +4 -3
- package/build/components/page-content-focus-manager/constants.js +0 -9
- package/build/components/page-content-focus-manager/constants.js.map +0 -1
- package/build/components/page-library/grid-item.js.map +0 -1
- package/build/components/page-library/grid.js.map +0 -1
- package/build/components/page-library/index.js.map +0 -1
- package/build/components/page-library/no-patterns.js.map +0 -1
- package/build/components/page-library/patterns-list.js.map +0 -1
- package/build/components/page-library/search-items.js.map +0 -1
- package/build/components/page-library/use-library-settings.js.map +0 -1
- package/build/components/page-library/use-patterns.js.map +0 -1
- package/build/components/page-library/utils.js.map +0 -1
- package/build/components/sidebar-navigation-screen-library/category-item.js.map +0 -1
- package/build/components/sidebar-navigation-screen-library/index.js +0 -112
- package/build/components/sidebar-navigation-screen-library/index.js.map +0 -1
- package/build/components/sidebar-navigation-screen-library/use-default-pattern-categories.js.map +0 -1
- package/build/components/sidebar-navigation-screen-library/use-pattern-categories.js.map +0 -1
- package/build/components/sidebar-navigation-screen-library/use-template-part-areas.js +0 -41
- package/build/components/sidebar-navigation-screen-library/use-template-part-areas.js.map +0 -1
- package/build/components/sidebar-navigation-screen-library/use-theme-patterns.js.map +0 -1
- package/build-module/components/page-content-focus-manager/constants.js +0 -2
- package/build-module/components/page-content-focus-manager/constants.js.map +0 -1
- package/build-module/components/page-library/grid-item.js.map +0 -1
- package/build-module/components/page-library/grid.js.map +0 -1
- package/build-module/components/page-library/index.js.map +0 -1
- package/build-module/components/page-library/no-patterns.js.map +0 -1
- package/build-module/components/page-library/patterns-list.js.map +0 -1
- package/build-module/components/page-library/search-items.js.map +0 -1
- package/build-module/components/page-library/use-library-settings.js.map +0 -1
- package/build-module/components/page-library/use-patterns.js.map +0 -1
- package/build-module/components/page-library/utils.js.map +0 -1
- package/build-module/components/sidebar-navigation-screen-library/category-item.js.map +0 -1
- package/build-module/components/sidebar-navigation-screen-library/index.js +0 -87
- package/build-module/components/sidebar-navigation-screen-library/index.js.map +0 -1
- package/build-module/components/sidebar-navigation-screen-library/use-default-pattern-categories.js.map +0 -1
- package/build-module/components/sidebar-navigation-screen-library/use-pattern-categories.js.map +0 -1
- package/build-module/components/sidebar-navigation-screen-library/use-template-part-areas.js +0 -34
- package/build-module/components/sidebar-navigation-screen-library/use-template-part-areas.js.map +0 -1
- package/build-module/components/sidebar-navigation-screen-library/use-theme-patterns.js.map +0 -1
- package/src/components/page-content-focus-manager/constants.js +0 -5
- package/src/components/sidebar-navigation-screen-library/index.js +0 -136
- package/src/components/sidebar-navigation-screen-library/style.scss +0 -3
- package/src/components/sidebar-navigation-screen-library/use-template-part-areas.js +0 -33
- /package/build/components/{page-library → page-patterns}/search-items.js +0 -0
- /package/build/components/{sidebar-navigation-screen-library → sidebar-navigation-screen-patterns}/use-default-pattern-categories.js +0 -0
- /package/build-module/components/{page-library → page-patterns}/search-items.js +0 -0
- /package/build-module/components/{sidebar-navigation-screen-library → sidebar-navigation-screen-patterns}/use-default-pattern-categories.js +0 -0
- /package/src/components/{page-library → page-patterns}/search-items.js +0 -0
- /package/src/components/{sidebar-navigation-screen-library → sidebar-navigation-screen-patterns}/use-default-pattern-categories.js +0 -0
|
@@ -1459,6 +1459,16 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
1459
1459
|
color: currentColor;
|
|
1460
1460
|
background: #e0e0e0;
|
|
1461
1461
|
}
|
|
1462
|
+
@media (min-width: 782px) {
|
|
1463
|
+
.edit-site-document-actions {
|
|
1464
|
+
width: 50%;
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
@media (min-width: 960px) {
|
|
1468
|
+
.edit-site-document-actions {
|
|
1469
|
+
width: min(100%, 450px);
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1462
1472
|
|
|
1463
1473
|
.edit-site-document-actions__command {
|
|
1464
1474
|
grid-column: 1/-1;
|
|
@@ -1770,55 +1780,55 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1770
1780
|
overflow-x: auto;
|
|
1771
1781
|
}
|
|
1772
1782
|
|
|
1773
|
-
.edit-site-
|
|
1783
|
+
.edit-site-patterns {
|
|
1774
1784
|
background: rgba(0, 0, 0, 0.05);
|
|
1775
1785
|
margin: 60px 0 0;
|
|
1776
1786
|
}
|
|
1777
|
-
.edit-site-
|
|
1787
|
+
.edit-site-patterns .components-text {
|
|
1778
1788
|
color: #949494;
|
|
1779
1789
|
}
|
|
1780
|
-
.edit-site-
|
|
1790
|
+
.edit-site-patterns .components-heading {
|
|
1781
1791
|
color: #e0e0e0;
|
|
1782
1792
|
}
|
|
1783
1793
|
@media (min-width: 782px) {
|
|
1784
|
-
.edit-site-
|
|
1794
|
+
.edit-site-patterns {
|
|
1785
1795
|
margin: 0;
|
|
1786
1796
|
}
|
|
1787
1797
|
}
|
|
1788
1798
|
|
|
1789
|
-
.edit-site-
|
|
1799
|
+
.edit-site-patterns__grid {
|
|
1790
1800
|
column-gap: 24px;
|
|
1791
1801
|
padding-top: 2px;
|
|
1792
1802
|
margin-bottom: 32px;
|
|
1793
1803
|
}
|
|
1794
1804
|
@media (min-width: 960px) {
|
|
1795
|
-
.edit-site-
|
|
1805
|
+
.edit-site-patterns__grid {
|
|
1796
1806
|
column-count: 2;
|
|
1797
1807
|
}
|
|
1798
1808
|
}
|
|
1799
|
-
.edit-site-
|
|
1809
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern {
|
|
1800
1810
|
break-inside: avoid-column;
|
|
1801
1811
|
display: flex;
|
|
1802
1812
|
flex-direction: column;
|
|
1803
1813
|
margin-bottom: 48px;
|
|
1804
1814
|
}
|
|
1805
|
-
.edit-site-
|
|
1815
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview {
|
|
1806
1816
|
border-radius: 2px;
|
|
1807
1817
|
cursor: pointer;
|
|
1808
1818
|
overflow: hidden;
|
|
1809
1819
|
}
|
|
1810
|
-
.edit-site-
|
|
1820
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview:focus {
|
|
1811
1821
|
box-shadow: inset 0 0 0 2px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1812
1822
|
outline: 2px solid transparent;
|
|
1813
1823
|
}
|
|
1814
|
-
.edit-site-
|
|
1824
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive {
|
|
1815
1825
|
cursor: default;
|
|
1816
1826
|
}
|
|
1817
|
-
.edit-site-
|
|
1818
|
-
.edit-site-
|
|
1827
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__footer,
|
|
1828
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__button {
|
|
1819
1829
|
color: #949494;
|
|
1820
1830
|
}
|
|
1821
|
-
.edit-site-
|
|
1831
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview {
|
|
1822
1832
|
min-height: 64px;
|
|
1823
1833
|
color: #949494;
|
|
1824
1834
|
border: 1px dashed #2f2f2f;
|
|
@@ -1826,35 +1836,38 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1826
1836
|
align-items: center;
|
|
1827
1837
|
justify-content: center;
|
|
1828
1838
|
}
|
|
1829
|
-
.edit-site-
|
|
1839
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview:focus {
|
|
1830
1840
|
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1831
1841
|
}
|
|
1832
|
-
.edit-site-
|
|
1842
|
+
.edit-site-patterns__grid .edit-site-patterns__preview {
|
|
1833
1843
|
flex: 1;
|
|
1834
1844
|
margin-bottom: 16px;
|
|
1835
1845
|
}
|
|
1836
1846
|
|
|
1837
|
-
.edit-site-
|
|
1847
|
+
.edit-site-patterns__search.edit-site-patterns__search input[type=search] {
|
|
1838
1848
|
background: #2f2f2f;
|
|
1839
1849
|
color: #e0e0e0;
|
|
1840
1850
|
}
|
|
1841
|
-
.edit-site-
|
|
1851
|
+
.edit-site-patterns__search.edit-site-patterns__search input[type=search]:focus {
|
|
1842
1852
|
background: #2f2f2f;
|
|
1843
1853
|
}
|
|
1844
|
-
.edit-site-
|
|
1854
|
+
.edit-site-patterns__search svg {
|
|
1845
1855
|
fill: #949494;
|
|
1846
1856
|
}
|
|
1847
1857
|
|
|
1848
|
-
.edit-site-
|
|
1858
|
+
.edit-site-patterns__pattern-title {
|
|
1849
1859
|
color: #949494;
|
|
1850
1860
|
}
|
|
1851
|
-
.edit-site-
|
|
1861
|
+
.edit-site-patterns__pattern-title .edit-site-patterns__pattern-icon {
|
|
1852
1862
|
border-radius: 4px;
|
|
1853
1863
|
background: var(--wp-block-synced-color);
|
|
1854
1864
|
fill: #fff;
|
|
1855
1865
|
}
|
|
1866
|
+
.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon {
|
|
1867
|
+
display: inline-flex;
|
|
1868
|
+
}
|
|
1856
1869
|
|
|
1857
|
-
.edit-site-
|
|
1870
|
+
.edit-site-patterns__no-results {
|
|
1858
1871
|
color: #949494;
|
|
1859
1872
|
}
|
|
1860
1873
|
|
|
@@ -2394,8 +2407,18 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2394
2407
|
.edit-site-welcome-guide {
|
|
2395
2408
|
width: 312px;
|
|
2396
2409
|
}
|
|
2397
|
-
.edit-site-welcome-guide__image {
|
|
2410
|
+
.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image .edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image {
|
|
2398
2411
|
background: #00a0d2;
|
|
2412
|
+
}
|
|
2413
|
+
.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video {
|
|
2414
|
+
border-left: #3858e9 16px solid;
|
|
2415
|
+
border-top: #3858e9 16px solid;
|
|
2416
|
+
}
|
|
2417
|
+
.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video {
|
|
2418
|
+
border-right: #3858e9 16px solid;
|
|
2419
|
+
border-top: #3858e9 16px solid;
|
|
2420
|
+
}
|
|
2421
|
+
.edit-site-welcome-guide__image {
|
|
2399
2422
|
margin: 0 0 16px;
|
|
2400
2423
|
}
|
|
2401
2424
|
.edit-site-welcome-guide__image > img {
|
|
@@ -2520,11 +2543,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2520
2543
|
display: flex;
|
|
2521
2544
|
flex-direction: column;
|
|
2522
2545
|
}
|
|
2523
|
-
@media (min-width: 782px) {
|
|
2524
|
-
.edit-site-layout .block-editor-block-contextual-toolbar.is-fixed {
|
|
2525
|
-
width: calc(100% - 240px - 64px - 56px);
|
|
2526
|
-
}
|
|
2527
|
-
}
|
|
2528
2546
|
|
|
2529
2547
|
.edit-site-layout__hub {
|
|
2530
2548
|
position: fixed;
|
|
@@ -3002,6 +3020,20 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3002
3020
|
border-top: 1px solid #2f2f2f;
|
|
3003
3021
|
}
|
|
3004
3022
|
|
|
3023
|
+
.edit-site-sidebar__notice {
|
|
3024
|
+
background: #2f2f2f;
|
|
3025
|
+
color: #ddd;
|
|
3026
|
+
margin: 24px 0;
|
|
3027
|
+
}
|
|
3028
|
+
.edit-site-sidebar__notice.is-dismissible {
|
|
3029
|
+
padding-left: 8px;
|
|
3030
|
+
}
|
|
3031
|
+
.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,
|
|
3032
|
+
.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,
|
|
3033
|
+
.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover {
|
|
3034
|
+
color: #f0f0f0;
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3005
3037
|
/* In general style overrides are discouraged.
|
|
3006
3038
|
* This is a temporary solution to override the InputControl component's styles.
|
|
3007
3039
|
* The `Theme` component will potentially be the more appropriate approach
|
|
@@ -3012,7 +3044,10 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3012
3044
|
width: 100%;
|
|
3013
3045
|
}
|
|
3014
3046
|
.edit-site-sidebar-navigation-screen__input-control .components-input-control__container {
|
|
3015
|
-
background:
|
|
3047
|
+
background: #2f2f2f;
|
|
3048
|
+
}
|
|
3049
|
+
.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button {
|
|
3050
|
+
color: #e0e0e0 !important;
|
|
3016
3051
|
}
|
|
3017
3052
|
.edit-site-sidebar-navigation-screen__input-control .components-input-control__input {
|
|
3018
3053
|
color: #e0e0e0 !important;
|
|
@@ -3041,10 +3076,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3041
3076
|
color: #949494;
|
|
3042
3077
|
}
|
|
3043
3078
|
|
|
3044
|
-
.edit-site-sidebar-navigation-screen-library__group {
|
|
3045
|
-
margin-bottom: 24px;
|
|
3046
|
-
}
|
|
3047
|
-
|
|
3048
3079
|
.sidebar-navigation__more-menu .components-button {
|
|
3049
3080
|
color: #e0e0e0;
|
|
3050
3081
|
}
|
|
@@ -3160,6 +3191,33 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3160
3191
|
margin-left: 8px;
|
|
3161
3192
|
}
|
|
3162
3193
|
|
|
3194
|
+
.edit-site-sidebar-navigation-screen-pattern__lock-icon {
|
|
3195
|
+
display: inline-flex;
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
.edit-site-sidebar-navigation-screen-patterns__group {
|
|
3199
|
+
margin-bottom: 32px;
|
|
3200
|
+
padding-bottom: 24px;
|
|
3201
|
+
border-bottom: 1px solid #2f2f2f;
|
|
3202
|
+
}
|
|
3203
|
+
.edit-site-sidebar-navigation-screen-patterns__group:last-of-type, .edit-site-sidebar-navigation-screen-patterns__group:first-of-type {
|
|
3204
|
+
border-bottom: 0;
|
|
3205
|
+
padding-bottom: 0;
|
|
3206
|
+
margin-bottom: 0;
|
|
3207
|
+
}
|
|
3208
|
+
.edit-site-sidebar-navigation-screen-patterns__group:first-of-type {
|
|
3209
|
+
margin-bottom: 32px;
|
|
3210
|
+
}
|
|
3211
|
+
|
|
3212
|
+
.edit-site-sidebar-navigation-screen-patterns__group-header p {
|
|
3213
|
+
color: #949494;
|
|
3214
|
+
}
|
|
3215
|
+
.edit-site-sidebar-navigation-screen-patterns__group-header h2 {
|
|
3216
|
+
font-size: 11px;
|
|
3217
|
+
font-weight: 500;
|
|
3218
|
+
text-transform: uppercase;
|
|
3219
|
+
}
|
|
3220
|
+
|
|
3163
3221
|
.edit-site-sidebar-navigation-screen-template__added-by-description {
|
|
3164
3222
|
display: flex;
|
|
3165
3223
|
align-items: center;
|
package/build-style/style.css
CHANGED
|
@@ -1460,6 +1460,16 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
1460
1460
|
color: currentColor;
|
|
1461
1461
|
background: #e0e0e0;
|
|
1462
1462
|
}
|
|
1463
|
+
@media (min-width: 782px) {
|
|
1464
|
+
.edit-site-document-actions {
|
|
1465
|
+
width: 50%;
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
@media (min-width: 960px) {
|
|
1469
|
+
.edit-site-document-actions {
|
|
1470
|
+
width: min(100%, 450px);
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1463
1473
|
|
|
1464
1474
|
.edit-site-document-actions__command {
|
|
1465
1475
|
grid-column: 1/-1;
|
|
@@ -1771,55 +1781,55 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1771
1781
|
overflow-x: auto;
|
|
1772
1782
|
}
|
|
1773
1783
|
|
|
1774
|
-
.edit-site-
|
|
1784
|
+
.edit-site-patterns {
|
|
1775
1785
|
background: rgba(0, 0, 0, 0.05);
|
|
1776
1786
|
margin: 60px 0 0;
|
|
1777
1787
|
}
|
|
1778
|
-
.edit-site-
|
|
1788
|
+
.edit-site-patterns .components-text {
|
|
1779
1789
|
color: #949494;
|
|
1780
1790
|
}
|
|
1781
|
-
.edit-site-
|
|
1791
|
+
.edit-site-patterns .components-heading {
|
|
1782
1792
|
color: #e0e0e0;
|
|
1783
1793
|
}
|
|
1784
1794
|
@media (min-width: 782px) {
|
|
1785
|
-
.edit-site-
|
|
1795
|
+
.edit-site-patterns {
|
|
1786
1796
|
margin: 0;
|
|
1787
1797
|
}
|
|
1788
1798
|
}
|
|
1789
1799
|
|
|
1790
|
-
.edit-site-
|
|
1800
|
+
.edit-site-patterns__grid {
|
|
1791
1801
|
column-gap: 24px;
|
|
1792
1802
|
padding-top: 2px;
|
|
1793
1803
|
margin-bottom: 32px;
|
|
1794
1804
|
}
|
|
1795
1805
|
@media (min-width: 960px) {
|
|
1796
|
-
.edit-site-
|
|
1806
|
+
.edit-site-patterns__grid {
|
|
1797
1807
|
column-count: 2;
|
|
1798
1808
|
}
|
|
1799
1809
|
}
|
|
1800
|
-
.edit-site-
|
|
1810
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern {
|
|
1801
1811
|
break-inside: avoid-column;
|
|
1802
1812
|
display: flex;
|
|
1803
1813
|
flex-direction: column;
|
|
1804
1814
|
margin-bottom: 48px;
|
|
1805
1815
|
}
|
|
1806
|
-
.edit-site-
|
|
1816
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview {
|
|
1807
1817
|
border-radius: 2px;
|
|
1808
1818
|
cursor: pointer;
|
|
1809
1819
|
overflow: hidden;
|
|
1810
1820
|
}
|
|
1811
|
-
.edit-site-
|
|
1821
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview:focus {
|
|
1812
1822
|
box-shadow: inset 0 0 0 2px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1813
1823
|
outline: 2px solid transparent;
|
|
1814
1824
|
}
|
|
1815
|
-
.edit-site-
|
|
1825
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive {
|
|
1816
1826
|
cursor: default;
|
|
1817
1827
|
}
|
|
1818
|
-
.edit-site-
|
|
1819
|
-
.edit-site-
|
|
1828
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__footer,
|
|
1829
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__button {
|
|
1820
1830
|
color: #949494;
|
|
1821
1831
|
}
|
|
1822
|
-
.edit-site-
|
|
1832
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview {
|
|
1823
1833
|
min-height: 64px;
|
|
1824
1834
|
color: #949494;
|
|
1825
1835
|
border: 1px dashed #2f2f2f;
|
|
@@ -1827,35 +1837,38 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1827
1837
|
align-items: center;
|
|
1828
1838
|
justify-content: center;
|
|
1829
1839
|
}
|
|
1830
|
-
.edit-site-
|
|
1840
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview:focus {
|
|
1831
1841
|
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1832
1842
|
}
|
|
1833
|
-
.edit-site-
|
|
1843
|
+
.edit-site-patterns__grid .edit-site-patterns__preview {
|
|
1834
1844
|
flex: 1;
|
|
1835
1845
|
margin-bottom: 16px;
|
|
1836
1846
|
}
|
|
1837
1847
|
|
|
1838
|
-
.edit-site-
|
|
1848
|
+
.edit-site-patterns__search.edit-site-patterns__search input[type=search] {
|
|
1839
1849
|
background: #2f2f2f;
|
|
1840
1850
|
color: #e0e0e0;
|
|
1841
1851
|
}
|
|
1842
|
-
.edit-site-
|
|
1852
|
+
.edit-site-patterns__search.edit-site-patterns__search input[type=search]:focus {
|
|
1843
1853
|
background: #2f2f2f;
|
|
1844
1854
|
}
|
|
1845
|
-
.edit-site-
|
|
1855
|
+
.edit-site-patterns__search svg {
|
|
1846
1856
|
fill: #949494;
|
|
1847
1857
|
}
|
|
1848
1858
|
|
|
1849
|
-
.edit-site-
|
|
1859
|
+
.edit-site-patterns__pattern-title {
|
|
1850
1860
|
color: #949494;
|
|
1851
1861
|
}
|
|
1852
|
-
.edit-site-
|
|
1862
|
+
.edit-site-patterns__pattern-title .edit-site-patterns__pattern-icon {
|
|
1853
1863
|
border-radius: 4px;
|
|
1854
1864
|
background: var(--wp-block-synced-color);
|
|
1855
1865
|
fill: #fff;
|
|
1856
1866
|
}
|
|
1867
|
+
.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon {
|
|
1868
|
+
display: inline-flex;
|
|
1869
|
+
}
|
|
1857
1870
|
|
|
1858
|
-
.edit-site-
|
|
1871
|
+
.edit-site-patterns__no-results {
|
|
1859
1872
|
color: #949494;
|
|
1860
1873
|
}
|
|
1861
1874
|
|
|
@@ -2395,8 +2408,18 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2395
2408
|
.edit-site-welcome-guide {
|
|
2396
2409
|
width: 312px;
|
|
2397
2410
|
}
|
|
2398
|
-
.edit-site-welcome-guide__image {
|
|
2411
|
+
.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image .edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image {
|
|
2399
2412
|
background: #00a0d2;
|
|
2413
|
+
}
|
|
2414
|
+
.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video {
|
|
2415
|
+
border-right: #3858e9 16px solid;
|
|
2416
|
+
border-top: #3858e9 16px solid;
|
|
2417
|
+
}
|
|
2418
|
+
.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video {
|
|
2419
|
+
border-left: #3858e9 16px solid;
|
|
2420
|
+
border-top: #3858e9 16px solid;
|
|
2421
|
+
}
|
|
2422
|
+
.edit-site-welcome-guide__image {
|
|
2400
2423
|
margin: 0 0 16px;
|
|
2401
2424
|
}
|
|
2402
2425
|
.edit-site-welcome-guide__image > img {
|
|
@@ -2521,11 +2544,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2521
2544
|
display: flex;
|
|
2522
2545
|
flex-direction: column;
|
|
2523
2546
|
}
|
|
2524
|
-
@media (min-width: 782px) {
|
|
2525
|
-
.edit-site-layout .block-editor-block-contextual-toolbar.is-fixed {
|
|
2526
|
-
width: calc(100% - 240px - 64px - 56px);
|
|
2527
|
-
}
|
|
2528
|
-
}
|
|
2529
2547
|
|
|
2530
2548
|
.edit-site-layout__hub {
|
|
2531
2549
|
position: fixed;
|
|
@@ -3003,6 +3021,20 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3003
3021
|
border-top: 1px solid #2f2f2f;
|
|
3004
3022
|
}
|
|
3005
3023
|
|
|
3024
|
+
.edit-site-sidebar__notice {
|
|
3025
|
+
background: #2f2f2f;
|
|
3026
|
+
color: #ddd;
|
|
3027
|
+
margin: 24px 0;
|
|
3028
|
+
}
|
|
3029
|
+
.edit-site-sidebar__notice.is-dismissible {
|
|
3030
|
+
padding-right: 8px;
|
|
3031
|
+
}
|
|
3032
|
+
.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,
|
|
3033
|
+
.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,
|
|
3034
|
+
.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover {
|
|
3035
|
+
color: #f0f0f0;
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3006
3038
|
/* In general style overrides are discouraged.
|
|
3007
3039
|
* This is a temporary solution to override the InputControl component's styles.
|
|
3008
3040
|
* The `Theme` component will potentially be the more appropriate approach
|
|
@@ -3013,7 +3045,10 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3013
3045
|
width: 100%;
|
|
3014
3046
|
}
|
|
3015
3047
|
.edit-site-sidebar-navigation-screen__input-control .components-input-control__container {
|
|
3016
|
-
background:
|
|
3048
|
+
background: #2f2f2f;
|
|
3049
|
+
}
|
|
3050
|
+
.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button {
|
|
3051
|
+
color: #e0e0e0 !important;
|
|
3017
3052
|
}
|
|
3018
3053
|
.edit-site-sidebar-navigation-screen__input-control .components-input-control__input {
|
|
3019
3054
|
color: #e0e0e0 !important;
|
|
@@ -3042,10 +3077,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3042
3077
|
color: #949494;
|
|
3043
3078
|
}
|
|
3044
3079
|
|
|
3045
|
-
.edit-site-sidebar-navigation-screen-library__group {
|
|
3046
|
-
margin-bottom: 24px;
|
|
3047
|
-
}
|
|
3048
|
-
|
|
3049
3080
|
.sidebar-navigation__more-menu .components-button {
|
|
3050
3081
|
color: #e0e0e0;
|
|
3051
3082
|
}
|
|
@@ -3161,6 +3192,33 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3161
3192
|
margin-right: 8px;
|
|
3162
3193
|
}
|
|
3163
3194
|
|
|
3195
|
+
.edit-site-sidebar-navigation-screen-pattern__lock-icon {
|
|
3196
|
+
display: inline-flex;
|
|
3197
|
+
}
|
|
3198
|
+
|
|
3199
|
+
.edit-site-sidebar-navigation-screen-patterns__group {
|
|
3200
|
+
margin-bottom: 32px;
|
|
3201
|
+
padding-bottom: 24px;
|
|
3202
|
+
border-bottom: 1px solid #2f2f2f;
|
|
3203
|
+
}
|
|
3204
|
+
.edit-site-sidebar-navigation-screen-patterns__group:last-of-type, .edit-site-sidebar-navigation-screen-patterns__group:first-of-type {
|
|
3205
|
+
border-bottom: 0;
|
|
3206
|
+
padding-bottom: 0;
|
|
3207
|
+
margin-bottom: 0;
|
|
3208
|
+
}
|
|
3209
|
+
.edit-site-sidebar-navigation-screen-patterns__group:first-of-type {
|
|
3210
|
+
margin-bottom: 32px;
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3213
|
+
.edit-site-sidebar-navigation-screen-patterns__group-header p {
|
|
3214
|
+
color: #949494;
|
|
3215
|
+
}
|
|
3216
|
+
.edit-site-sidebar-navigation-screen-patterns__group-header h2 {
|
|
3217
|
+
font-size: 11px;
|
|
3218
|
+
font-weight: 500;
|
|
3219
|
+
text-transform: uppercase;
|
|
3220
|
+
}
|
|
3221
|
+
|
|
3164
3222
|
.edit-site-sidebar-navigation-screen-template__added-by-description {
|
|
3165
3223
|
display: flex;
|
|
3166
3224
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.7",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -29,40 +29,40 @@
|
|
|
29
29
|
"@babel/runtime": "^7.16.0",
|
|
30
30
|
"@wordpress/a11y": "^3.35.1",
|
|
31
31
|
"@wordpress/api-fetch": "^6.32.1",
|
|
32
|
-
"@wordpress/block-editor": "^12.3.
|
|
33
|
-
"@wordpress/block-library": "^8.12.
|
|
34
|
-
"@wordpress/blocks": "^12.12.
|
|
35
|
-
"@wordpress/commands": "^0.6.
|
|
36
|
-
"@wordpress/components": "^25.1.
|
|
32
|
+
"@wordpress/block-editor": "^12.3.5",
|
|
33
|
+
"@wordpress/block-library": "^8.12.7",
|
|
34
|
+
"@wordpress/blocks": "^12.12.3",
|
|
35
|
+
"@wordpress/commands": "^0.6.5",
|
|
36
|
+
"@wordpress/components": "^25.1.5",
|
|
37
37
|
"@wordpress/compose": "^6.12.1",
|
|
38
|
-
"@wordpress/core-commands": "^0.4.
|
|
39
|
-
"@wordpress/core-data": "^6.12.
|
|
40
|
-
"@wordpress/data": "^9.5.
|
|
38
|
+
"@wordpress/core-commands": "^0.4.5",
|
|
39
|
+
"@wordpress/core-data": "^6.12.5",
|
|
40
|
+
"@wordpress/data": "^9.5.3",
|
|
41
41
|
"@wordpress/date": "^4.35.1",
|
|
42
42
|
"@wordpress/deprecated": "^3.35.1",
|
|
43
43
|
"@wordpress/dom": "^3.35.1",
|
|
44
|
-
"@wordpress/editor": "^13.12.
|
|
44
|
+
"@wordpress/editor": "^13.12.5",
|
|
45
45
|
"@wordpress/element": "^5.12.1",
|
|
46
46
|
"@wordpress/escape-html": "^2.35.1",
|
|
47
47
|
"@wordpress/hooks": "^3.35.1",
|
|
48
48
|
"@wordpress/html-entities": "^3.35.1",
|
|
49
49
|
"@wordpress/i18n": "^4.35.1",
|
|
50
50
|
"@wordpress/icons": "^9.26.2",
|
|
51
|
-
"@wordpress/interface": "^5.12.
|
|
52
|
-
"@wordpress/keyboard-shortcuts": "^4.12.
|
|
51
|
+
"@wordpress/interface": "^5.12.5",
|
|
52
|
+
"@wordpress/keyboard-shortcuts": "^4.12.3",
|
|
53
53
|
"@wordpress/keycodes": "^3.35.1",
|
|
54
54
|
"@wordpress/media-utils": "^4.26.1",
|
|
55
|
-
"@wordpress/notices": "^4.3.
|
|
56
|
-
"@wordpress/plugins": "^6.3.
|
|
57
|
-
"@wordpress/preferences": "^3.12.
|
|
55
|
+
"@wordpress/notices": "^4.3.3",
|
|
56
|
+
"@wordpress/plugins": "^6.3.5",
|
|
57
|
+
"@wordpress/preferences": "^3.12.5",
|
|
58
58
|
"@wordpress/primitives": "^3.33.1",
|
|
59
59
|
"@wordpress/private-apis": "^0.17.1",
|
|
60
|
-
"@wordpress/reusable-blocks": "^4.12.
|
|
60
|
+
"@wordpress/reusable-blocks": "^4.12.5",
|
|
61
61
|
"@wordpress/router": "^0.4.1",
|
|
62
62
|
"@wordpress/style-engine": "^1.18.1",
|
|
63
63
|
"@wordpress/url": "^3.36.1",
|
|
64
|
-
"@wordpress/viewport": "^5.12.
|
|
65
|
-
"@wordpress/widgets": "^3.12.
|
|
64
|
+
"@wordpress/viewport": "^5.12.3",
|
|
65
|
+
"@wordpress/widgets": "^3.12.5",
|
|
66
66
|
"@wordpress/wordcount": "^3.35.1",
|
|
67
67
|
"change-case": "^4.1.2",
|
|
68
68
|
"classnames": "^2.3.1",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"publishConfig": {
|
|
85
85
|
"access": "public"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "3eeb607ebb76c3bf06cb8acb462f0dc068f340f9"
|
|
88
88
|
}
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
page,
|
|
35
35
|
plus,
|
|
36
36
|
pin,
|
|
37
|
-
|
|
37
|
+
verse,
|
|
38
38
|
search,
|
|
39
39
|
tag,
|
|
40
40
|
} from '@wordpress/icons';
|
|
@@ -78,7 +78,7 @@ const DEFAULT_TEMPLATE_SLUGS = [
|
|
|
78
78
|
|
|
79
79
|
const TEMPLATE_ICONS = {
|
|
80
80
|
'front-page': home,
|
|
81
|
-
home:
|
|
81
|
+
home: verse,
|
|
82
82
|
single: pin,
|
|
83
83
|
page,
|
|
84
84
|
archive,
|
|
@@ -87,7 +87,9 @@ function EditorCanvas( { enableResizing, settings, children, ...props } ) {
|
|
|
87
87
|
// which isn't a requirement in auto resize mode.
|
|
88
88
|
enableResizing ? 'min-height:0!important;' : ''
|
|
89
89
|
}}body{position:relative; ${
|
|
90
|
-
canvasMode === 'view'
|
|
90
|
+
canvasMode === 'view'
|
|
91
|
+
? 'cursor: pointer; height: 100vh'
|
|
92
|
+
: ''
|
|
91
93
|
}}}`
|
|
92
94
|
}</style>
|
|
93
95
|
{ children }
|
|
@@ -12,11 +12,13 @@ import { unlock } from '../../lock-unlock';
|
|
|
12
12
|
import inserterMediaCategories from './inserter-media-categories';
|
|
13
13
|
|
|
14
14
|
export default function useSiteEditorSettings( templateType ) {
|
|
15
|
-
const { storedSettings } = useSelect( ( select ) => {
|
|
16
|
-
const { getSettings } = unlock(
|
|
17
|
-
|
|
15
|
+
const { storedSettings, canvasMode } = useSelect( ( select ) => {
|
|
16
|
+
const { getSettings, getCanvasMode } = unlock(
|
|
17
|
+
select( editSiteStore )
|
|
18
|
+
);
|
|
18
19
|
return {
|
|
19
20
|
storedSettings: getSettings(),
|
|
21
|
+
canvasMode: getCanvasMode(),
|
|
20
22
|
};
|
|
21
23
|
}, [] );
|
|
22
24
|
|
|
@@ -70,6 +72,7 @@ export default function useSiteEditorSettings( templateType ) {
|
|
|
70
72
|
const {
|
|
71
73
|
__experimentalAdditionalBlockPatterns,
|
|
72
74
|
__experimentalAdditionalBlockPatternCategories,
|
|
75
|
+
focusMode,
|
|
73
76
|
...restStoredSettings
|
|
74
77
|
} = storedSettings;
|
|
75
78
|
|
|
@@ -86,6 +89,7 @@ export default function useSiteEditorSettings( templateType ) {
|
|
|
86
89
|
// active for all entities.
|
|
87
90
|
templateLock: false,
|
|
88
91
|
template: false,
|
|
92
|
+
focusMode: canvasMode === 'view' && focusMode ? false : focusMode,
|
|
89
93
|
};
|
|
90
|
-
}, [ storedSettings, blockPatterns, blockPatternCategories ] );
|
|
94
|
+
}, [ storedSettings, blockPatterns, blockPatternCategories, canvasMode ] );
|
|
91
95
|
}
|
|
@@ -18,7 +18,7 @@ import { useDispatch } from '@wordpress/data';
|
|
|
18
18
|
/**
|
|
19
19
|
* Internal dependencies
|
|
20
20
|
*/
|
|
21
|
-
import { SYNC_TYPES, USER_PATTERN_CATEGORY } from '../page-
|
|
21
|
+
import { SYNC_TYPES, USER_PATTERN_CATEGORY } from '../page-patterns/utils';
|
|
22
22
|
|
|
23
23
|
export default function CreatePatternModal( {
|
|
24
24
|
closeModal,
|
|
@@ -26,7 +26,7 @@ export default function CreatePatternModal( {
|
|
|
26
26
|
onError,
|
|
27
27
|
} ) {
|
|
28
28
|
const [ name, setName ] = useState( '' );
|
|
29
|
-
const [ syncType, setSyncType ] = useState( SYNC_TYPES.
|
|
29
|
+
const [ syncType, setSyncType ] = useState( SYNC_TYPES.unsynced );
|
|
30
30
|
const [ isSubmitting, setIsSubmitting ] = useState( false );
|
|
31
31
|
|
|
32
32
|
const onSyncChange = () => {
|
|
@@ -54,7 +54,10 @@ export default function CreatePatternModal( {
|
|
|
54
54
|
title: name || __( 'Untitled Pattern' ),
|
|
55
55
|
content: '',
|
|
56
56
|
status: 'publish',
|
|
57
|
-
meta:
|
|
57
|
+
meta:
|
|
58
|
+
syncType === SYNC_TYPES.unsynced
|
|
59
|
+
? { wp_pattern_sync_status: syncType }
|
|
60
|
+
: undefined,
|
|
58
61
|
},
|
|
59
62
|
{ throwOnError: true }
|
|
60
63
|
);
|
|
@@ -77,8 +80,6 @@ export default function CreatePatternModal( {
|
|
|
77
80
|
onRequestClose={ closeModal }
|
|
78
81
|
overlayClassName="edit-site-create-pattern-modal"
|
|
79
82
|
>
|
|
80
|
-
<p>{ __( 'Turn this block into a pattern to reuse later' ) }</p>
|
|
81
|
-
|
|
82
83
|
<form
|
|
83
84
|
onSubmit={ async ( event ) => {
|
|
84
85
|
event.preventDefault();
|
|
@@ -100,13 +101,11 @@ export default function CreatePatternModal( {
|
|
|
100
101
|
__nextHasNoMarginBottom
|
|
101
102
|
/>
|
|
102
103
|
<ToggleControl
|
|
103
|
-
label={ __( '
|
|
104
|
+
label={ __( 'Keep all pattern instances in sync' ) }
|
|
104
105
|
onChange={ onSyncChange }
|
|
105
|
-
help={
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
: __( 'Content is not synced' )
|
|
109
|
-
}
|
|
106
|
+
help={ __(
|
|
107
|
+
'Editing the original pattern will also update anywhere the pattern is used.'
|
|
108
|
+
) }
|
|
110
109
|
checked={ syncType === SYNC_TYPES.full }
|
|
111
110
|
/>
|
|
112
111
|
<HStack justify="right">
|