@wordpress/edit-site 5.3.2 → 5.4.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/CHANGELOG.md +3 -0
- package/build/components/add-new-template/new-template-part.js +8 -5
- package/build/components/add-new-template/new-template-part.js.map +1 -1
- package/build/components/add-new-template/new-template.js +9 -25
- package/build/components/add-new-template/new-template.js.map +1 -1
- package/build/components/app/index.js.map +1 -1
- package/build/components/block-editor/editor-canvas.js +4 -3
- package/build/components/block-editor/editor-canvas.js.map +1 -1
- package/build/components/block-editor/index.js +3 -3
- package/build/components/block-editor/index.js.map +1 -1
- package/build/components/editor/index.js +28 -24
- package/build/components/editor/index.js.map +1 -1
- package/build/components/global-styles/border-panel.js +6 -6
- package/build/components/global-styles/border-panel.js.map +1 -1
- package/build/components/global-styles/color-palette-panel.js +7 -4
- package/build/components/global-styles/color-palette-panel.js.map +1 -1
- package/build/components/global-styles/color-utils.js +1 -1
- package/build/components/global-styles/color-utils.js.map +1 -1
- package/build/components/global-styles/context-menu.js +16 -3
- package/build/components/global-styles/context-menu.js.map +1 -1
- package/build/components/global-styles/custom-css.js +3 -3
- package/build/components/global-styles/custom-css.js.map +1 -1
- package/build/components/global-styles/dimensions-panel.js +10 -9
- package/build/components/global-styles/dimensions-panel.js.map +1 -1
- package/build/components/global-styles/global-styles-provider.js +2 -2
- package/build/components/global-styles/global-styles-provider.js.map +1 -1
- package/build/components/global-styles/gradients-palette-panel.js +10 -5
- package/build/components/global-styles/gradients-palette-panel.js.map +1 -1
- package/build/components/global-styles/header.js +4 -2
- package/build/components/global-styles/header.js.map +1 -1
- package/build/components/global-styles/hooks.js +16 -53
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/navigation-button.js +1 -1
- package/build/components/global-styles/navigation-button.js.map +1 -1
- package/build/components/global-styles/palette.js +5 -3
- package/build/components/global-styles/palette.js.map +1 -1
- package/build/components/global-styles/preview.js +2 -2
- package/build/components/global-styles/preview.js.map +1 -1
- package/build/components/global-styles/screen-background-color.js +5 -4
- package/build/components/global-styles/screen-background-color.js.map +1 -1
- package/build/components/global-styles/screen-block-list.js +14 -3
- package/build/components/global-styles/screen-block-list.js.map +1 -1
- package/build/components/global-styles/screen-button-color.js +9 -7
- package/build/components/global-styles/screen-button-color.js.map +1 -1
- package/build/components/global-styles/screen-colors.js +10 -8
- package/build/components/global-styles/screen-colors.js.map +1 -1
- package/build/components/global-styles/screen-css.js +5 -5
- package/build/components/global-styles/screen-css.js.map +1 -1
- package/build/components/global-styles/screen-heading-color.js +10 -8
- package/build/components/global-styles/screen-heading-color.js.map +1 -1
- package/build/components/global-styles/screen-link-color.js +5 -4
- package/build/components/global-styles/screen-link-color.js.map +1 -1
- package/build/components/global-styles/screen-root.js +2 -2
- package/build/components/global-styles/screen-root.js.map +1 -1
- package/build/components/global-styles/screen-style-variations.js +2 -2
- package/build/components/global-styles/screen-style-variations.js.map +1 -1
- package/build/components/global-styles/screen-text-color.js +5 -4
- package/build/components/global-styles/screen-text-color.js.map +1 -1
- package/build/components/global-styles/screen-typography.js +5 -3
- package/build/components/global-styles/screen-typography.js.map +1 -1
- package/build/components/global-styles/shadow-panel.js +4 -5
- package/build/components/global-styles/shadow-panel.js.map +1 -1
- package/build/components/global-styles/subtitle.js +3 -2
- package/build/components/global-styles/subtitle.js.map +1 -1
- package/build/components/global-styles/typography-panel.js +24 -301
- package/build/components/global-styles/typography-panel.js.map +1 -1
- package/build/components/global-styles/typography-preview.js +2 -2
- package/build/components/global-styles/typography-preview.js.map +1 -1
- package/build/components/global-styles/ui.js +3 -10
- package/build/components/global-styles/ui.js.map +1 -1
- package/build/components/global-styles-renderer/index.js +2 -2
- package/build/components/global-styles-renderer/index.js.map +1 -1
- package/build/components/header-edit-mode/index.js +6 -3
- package/build/components/header-edit-mode/index.js.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/config.js +1 -1
- package/build/components/keyboard-shortcut-help-modal/config.js.map +1 -1
- package/build/components/layout/index.js +10 -23
- package/build/components/layout/index.js.map +1 -1
- package/build/components/list/actions/rename-menu-item.js +1 -1
- package/build/components/list/actions/rename-menu-item.js.map +1 -1
- package/build/components/list/table.js +1 -0
- package/build/components/list/table.js.map +1 -1
- package/build/components/navigation-inspector/index.js +0 -29
- package/build/components/navigation-inspector/index.js.map +1 -1
- package/build/components/navigation-inspector/navigation-menu.js +6 -4
- package/build/components/navigation-inspector/navigation-menu.js.map +1 -1
- package/build/components/save-panel/index.js +4 -3
- package/build/components/save-panel/index.js.map +1 -1
- package/build/components/sidebar/index.js +18 -23
- package/build/components/sidebar/index.js.map +1 -1
- package/build/components/sidebar-edit-mode/index.js +1 -1
- package/build/components/sidebar-edit-mode/index.js.map +1 -1
- package/build/components/sidebar-edit-mode/template-card/index.js +9 -2
- package/build/components/sidebar-edit-mode/template-card/index.js.map +1 -1
- package/build/components/sidebar-edit-mode/template-card/last-revision.js +84 -0
- package/build/components/sidebar-edit-mode/template-card/last-revision.js.map +1 -0
- package/build/components/sidebar-navigation-screen/index.js +28 -7
- package/build/components/sidebar-navigation-screen/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-item/index.js +72 -0
- package/build/components/sidebar-navigation-screen-navigation-item/index.js.map +1 -0
- package/build/components/sidebar-navigation-screen-navigation-menus/index.js +2 -2
- package/build/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-template/index.js +70 -0
- package/build/components/sidebar-navigation-screen-template/index.js.map +1 -0
- package/build/components/sidebar-navigation-screen-templates/index.js +32 -82
- package/build/components/sidebar-navigation-screen-templates/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-templates-browse/index.js +43 -0
- package/build/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -0
- package/build/components/site-hub/index.js +14 -49
- package/build/components/site-hub/index.js.map +1 -1
- package/build/components/start-template-options/index.js +175 -0
- package/build/components/start-template-options/index.js.map +1 -0
- package/build/components/style-book/index.js +10 -3
- package/build/components/style-book/index.js.map +1 -1
- package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js +55 -20
- package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
- package/build/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +3 -3
- package/build/components/sync-state-with-url/use-sync-canvas-mode-with-url.js.map +1 -1
- package/build/components/sync-state-with-url/{use-sync-sidebar-path-with-url.js → use-sync-path-with-url.js} +12 -12
- package/build/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -0
- package/build/components/use-edited-entity-record/index.js +6 -2
- package/build/components/use-edited-entity-record/index.js.map +1 -1
- package/build/hooks/push-changes-to-global-styles/index.js +7 -6
- package/build/hooks/push-changes-to-global-styles/index.js.map +1 -1
- package/build/{experiments.js → private-apis.js} +3 -3
- package/build/private-apis.js.map +1 -0
- package/build/store/index.js +3 -3
- package/build/store/index.js.map +1 -1
- package/build/utils/get-is-list-page.js +5 -6
- package/build/utils/get-is-list-page.js.map +1 -1
- package/build-module/components/add-new-template/new-template-part.js +7 -4
- package/build-module/components/add-new-template/new-template-part.js.map +1 -1
- package/build-module/components/add-new-template/new-template.js +8 -22
- package/build-module/components/add-new-template/new-template.js.map +1 -1
- package/build-module/components/app/index.js.map +1 -1
- package/build-module/components/block-editor/editor-canvas.js +2 -1
- package/build-module/components/block-editor/editor-canvas.js.map +1 -1
- package/build-module/components/block-editor/index.js +3 -3
- package/build-module/components/block-editor/index.js.map +1 -1
- package/build-module/components/editor/index.js +27 -25
- package/build-module/components/editor/index.js.map +1 -1
- package/build-module/components/global-styles/border-panel.js +8 -8
- package/build-module/components/global-styles/border-panel.js.map +1 -1
- package/build-module/components/global-styles/color-palette-panel.js +8 -5
- package/build-module/components/global-styles/color-palette-panel.js.map +1 -1
- package/build-module/components/global-styles/color-utils.js +2 -2
- package/build-module/components/global-styles/color-utils.js.map +1 -1
- package/build-module/components/global-styles/context-menu.js +13 -2
- package/build-module/components/global-styles/context-menu.js.map +1 -1
- package/build-module/components/global-styles/custom-css.js +4 -4
- package/build-module/components/global-styles/custom-css.js.map +1 -1
- package/build-module/components/global-styles/dimensions-panel.js +12 -11
- package/build-module/components/global-styles/dimensions-panel.js.map +1 -1
- package/build-module/components/global-styles/global-styles-provider.js +3 -3
- package/build-module/components/global-styles/global-styles-provider.js.map +1 -1
- package/build-module/components/global-styles/gradients-palette-panel.js +11 -6
- package/build-module/components/global-styles/gradients-palette-panel.js.map +1 -1
- package/build-module/components/global-styles/header.js +5 -3
- package/build-module/components/global-styles/header.js.map +1 -1
- package/build-module/components/global-styles/hooks.js +15 -52
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/navigation-button.js +2 -2
- package/build-module/components/global-styles/navigation-button.js.map +1 -1
- package/build-module/components/global-styles/palette.js +6 -4
- package/build-module/components/global-styles/palette.js.map +1 -1
- package/build-module/components/global-styles/preview.js +3 -3
- package/build-module/components/global-styles/preview.js.map +1 -1
- package/build-module/components/global-styles/screen-background-color.js +7 -6
- package/build-module/components/global-styles/screen-background-color.js.map +1 -1
- package/build-module/components/global-styles/screen-block-list.js +12 -3
- package/build-module/components/global-styles/screen-block-list.js.map +1 -1
- package/build-module/components/global-styles/screen-button-color.js +11 -9
- package/build-module/components/global-styles/screen-button-color.js.map +1 -1
- package/build-module/components/global-styles/screen-colors.js +12 -10
- package/build-module/components/global-styles/screen-colors.js.map +1 -1
- package/build-module/components/global-styles/screen-css.js +5 -5
- package/build-module/components/global-styles/screen-css.js.map +1 -1
- package/build-module/components/global-styles/screen-heading-color.js +12 -10
- package/build-module/components/global-styles/screen-heading-color.js.map +1 -1
- package/build-module/components/global-styles/screen-link-color.js +7 -6
- package/build-module/components/global-styles/screen-link-color.js.map +1 -1
- package/build-module/components/global-styles/screen-root.js +3 -3
- package/build-module/components/global-styles/screen-root.js.map +1 -1
- package/build-module/components/global-styles/screen-style-variations.js +3 -3
- package/build-module/components/global-styles/screen-style-variations.js.map +1 -1
- package/build-module/components/global-styles/screen-text-color.js +7 -6
- package/build-module/components/global-styles/screen-text-color.js.map +1 -1
- package/build-module/components/global-styles/screen-typography.js +6 -4
- package/build-module/components/global-styles/screen-typography.js.map +1 -1
- package/build-module/components/global-styles/shadow-panel.js +6 -7
- package/build-module/components/global-styles/shadow-panel.js.map +1 -1
- package/build-module/components/global-styles/subtitle.js +3 -2
- package/build-module/components/global-styles/subtitle.js.map +1 -1
- package/build-module/components/global-styles/typography-panel.js +29 -302
- package/build-module/components/global-styles/typography-panel.js.map +1 -1
- package/build-module/components/global-styles/typography-preview.js +3 -3
- package/build-module/components/global-styles/typography-preview.js.map +1 -1
- package/build-module/components/global-styles/ui.js +4 -11
- package/build-module/components/global-styles/ui.js.map +1 -1
- package/build-module/components/global-styles-renderer/index.js +3 -3
- package/build-module/components/global-styles-renderer/index.js.map +1 -1
- package/build-module/components/header-edit-mode/index.js +6 -3
- package/build-module/components/header-edit-mode/index.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/config.js +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/config.js.map +1 -1
- package/build-module/components/layout/index.js +10 -23
- package/build-module/components/layout/index.js.map +1 -1
- package/build-module/components/list/actions/rename-menu-item.js +1 -1
- package/build-module/components/list/actions/rename-menu-item.js.map +1 -1
- package/build-module/components/list/table.js +1 -0
- package/build-module/components/list/table.js.map +1 -1
- package/build-module/components/navigation-inspector/index.js +0 -27
- package/build-module/components/navigation-inspector/index.js.map +1 -1
- package/build-module/components/navigation-inspector/navigation-menu.js +7 -5
- package/build-module/components/navigation-inspector/navigation-menu.js.map +1 -1
- package/build-module/components/save-panel/index.js +3 -2
- package/build-module/components/save-panel/index.js.map +1 -1
- package/build-module/components/sidebar/index.js +15 -21
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/sidebar-edit-mode/index.js +1 -1
- package/build-module/components/sidebar-edit-mode/index.js.map +1 -1
- package/build-module/components/sidebar-edit-mode/template-card/index.js +9 -4
- package/build-module/components/sidebar-edit-mode/template-card/index.js.map +1 -1
- package/build-module/components/sidebar-edit-mode/template-card/last-revision.js +70 -0
- package/build-module/components/sidebar-edit-mode/template-card/last-revision.js.map +1 -0
- package/build-module/components/sidebar-navigation-screen/index.js +27 -9
- package/build-module/components/sidebar-navigation-screen/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-item/index.js +55 -0
- package/build-module/components/sidebar-navigation-screen-navigation-item/index.js.map +1 -0
- package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js +2 -2
- package/build-module/components/sidebar-navigation-screen-navigation-menus/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-template/index.js +53 -0
- package/build-module/components/sidebar-navigation-screen-template/index.js.map +1 -0
- package/build-module/components/sidebar-navigation-screen-templates/index.js +34 -81
- package/build-module/components/sidebar-navigation-screen-templates/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.js +31 -0
- package/build-module/components/sidebar-navigation-screen-templates-browse/index.js.map +1 -0
- package/build-module/components/site-hub/index.js +14 -46
- package/build-module/components/site-hub/index.js.map +1 -1
- package/build-module/components/start-template-options/index.js +156 -0
- package/build-module/components/start-template-options/index.js.map +1 -0
- package/build-module/components/style-book/index.js +11 -4
- package/build-module/components/style-book/index.js.map +1 -1
- package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js +55 -21
- package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js.map +1 -1
- package/build-module/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +1 -1
- package/build-module/components/sync-state-with-url/use-sync-canvas-mode-with-url.js.map +1 -1
- package/build-module/components/sync-state-with-url/{use-sync-sidebar-path-with-url.js → use-sync-path-with-url.js} +11 -11
- package/build-module/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -0
- package/build-module/components/use-edited-entity-record/index.js +6 -2
- package/build-module/components/use-edited-entity-record/index.js.map +1 -1
- package/build-module/hooks/push-changes-to-global-styles/index.js +9 -8
- package/build-module/hooks/push-changes-to-global-styles/index.js.map +1 -1
- package/build-module/{experiments.js → private-apis.js} +2 -2
- package/build-module/private-apis.js.map +1 -0
- package/build-module/store/index.js +1 -1
- package/build-module/store/index.js.map +1 -1
- package/build-module/utils/get-is-list-page.js +5 -6
- package/build-module/utils/get-is-list-page.js.map +1 -1
- package/build-style/style-rtl.css +91 -41
- package/build-style/style.css +91 -41
- package/package.json +31 -31
- package/src/components/add-new-template/new-template-part.js +7 -4
- package/src/components/add-new-template/new-template.js +9 -22
- package/src/components/app/index.js +0 -1
- package/src/components/block-editor/editor-canvas.js +2 -1
- package/src/components/block-editor/index.js +3 -3
- package/src/components/editor/index.js +31 -28
- package/src/components/global-styles/border-panel.js +8 -8
- package/src/components/global-styles/color-palette-panel.js +6 -3
- package/src/components/global-styles/color-utils.js +2 -3
- package/src/components/global-styles/context-menu.js +17 -2
- package/src/components/global-styles/custom-css.js +4 -4
- package/src/components/global-styles/dimensions-panel.js +15 -11
- package/src/components/global-styles/global-styles-provider.js +3 -3
- package/src/components/global-styles/gradients-palette-panel.js +7 -4
- package/src/components/global-styles/header.js +9 -3
- package/src/components/global-styles/hooks.js +20 -93
- package/src/components/global-styles/navigation-button.js +4 -2
- package/src/components/global-styles/palette.js +4 -4
- package/src/components/global-styles/preview.js +3 -3
- package/src/components/global-styles/screen-background-color.js +6 -5
- package/src/components/global-styles/screen-block-list.js +19 -3
- package/src/components/global-styles/screen-button-color.js +11 -9
- package/src/components/global-styles/screen-colors.js +10 -10
- package/src/components/global-styles/screen-css.js +14 -7
- package/src/components/global-styles/screen-heading-color.js +12 -10
- package/src/components/global-styles/screen-link-color.js +6 -5
- package/src/components/global-styles/screen-root.js +3 -3
- package/src/components/global-styles/screen-style-variations.js +3 -3
- package/src/components/global-styles/screen-text-color.js +6 -5
- package/src/components/global-styles/screen-typography.js +4 -4
- package/src/components/global-styles/shadow-panel.js +9 -6
- package/src/components/global-styles/style.scss +7 -1
- package/src/components/global-styles/subtitle.js +5 -2
- package/src/components/global-styles/typography-panel.js +31 -395
- package/src/components/global-styles/typography-preview.js +3 -3
- package/src/components/global-styles/ui.js +3 -8
- package/src/components/global-styles-renderer/index.js +3 -3
- package/src/components/header-edit-mode/index.js +6 -3
- package/src/components/keyboard-shortcut-help-modal/config.js +1 -1
- package/src/components/layout/index.js +35 -48
- package/src/components/layout/style.scss +11 -23
- package/src/components/list/actions/rename-menu-item.js +1 -1
- package/src/components/list/table.js +4 -0
- package/src/components/navigation-inspector/index.js +0 -32
- package/src/components/navigation-inspector/navigation-menu.js +10 -4
- package/src/components/save-panel/index.js +4 -1
- package/src/components/sidebar/index.js +14 -19
- package/src/components/sidebar-edit-mode/index.js +1 -1
- package/src/components/sidebar-edit-mode/template-card/index.js +24 -14
- package/src/components/sidebar-edit-mode/template-card/last-revision.js +75 -0
- package/src/components/sidebar-edit-mode/template-card/style.scss +4 -0
- package/src/components/sidebar-navigation-screen/index.js +27 -11
- package/src/components/sidebar-navigation-screen/style.scss +4 -6
- package/src/components/sidebar-navigation-screen-navigation-item/index.js +52 -0
- package/src/components/sidebar-navigation-screen-navigation-menus/index.js +1 -1
- package/src/components/sidebar-navigation-screen-navigation-menus/style.scss +0 -4
- package/src/components/sidebar-navigation-screen-template/index.js +52 -0
- package/src/components/sidebar-navigation-screen-templates/index.js +49 -83
- package/src/components/sidebar-navigation-screen-templates-browse/index.js +31 -0
- package/src/components/site-hub/index.js +67 -122
- package/src/components/site-hub/style.scss +1 -11
- package/src/components/start-template-options/index.js +171 -0
- package/src/components/start-template-options/style.scss +76 -0
- package/src/components/style-book/index.js +11 -7
- package/src/components/sync-state-with-url/use-init-edited-entity-from-url.js +48 -14
- package/src/components/sync-state-with-url/use-sync-canvas-mode-with-url.js +1 -1
- package/src/components/sync-state-with-url/{use-sync-sidebar-path-with-url.js → use-sync-path-with-url.js} +10 -10
- package/src/components/use-edited-entity-record/index.js +6 -2
- package/src/hooks/push-changes-to-global-styles/index.js +29 -24
- package/src/{experiments.js → private-apis.js} +1 -1
- package/src/store/index.js +1 -1
- package/src/style.scss +1 -0
- package/src/utils/get-is-list-page.js +5 -5
- package/build/components/sync-state-with-url/use-sync-sidebar-path-with-url.js.map +0 -1
- package/build/experiments.js.map +0 -1
- package/build-module/components/sync-state-with-url/use-sync-sidebar-path-with-url.js.map +0 -1
- package/build-module/experiments.js.map +0 -1
|
@@ -1005,6 +1005,10 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
1005
1005
|
padding: 0 16px;
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
|
+
.edit-site-global-styles-header {
|
|
1009
|
+
margin-bottom: 0 !important;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1008
1012
|
.edit-site-global-styles-subtitle {
|
|
1009
1013
|
margin-bottom: 0 !important;
|
|
1010
1014
|
text-transform: uppercase;
|
|
@@ -1114,7 +1118,8 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
1114
1118
|
}
|
|
1115
1119
|
|
|
1116
1120
|
.edit-site-global-styles-screen-css-help-link {
|
|
1117
|
-
|
|
1121
|
+
display: block;
|
|
1122
|
+
margin-top: 8px;
|
|
1118
1123
|
}
|
|
1119
1124
|
|
|
1120
1125
|
.edit-site-global-styles-screen-variations {
|
|
@@ -1832,6 +1837,10 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1832
1837
|
min-width: auto;
|
|
1833
1838
|
}
|
|
1834
1839
|
|
|
1840
|
+
.edit-site-template-revisions {
|
|
1841
|
+
margin-right: -4px;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1835
1844
|
h3.edit-site-template-card__template-areas-title {
|
|
1836
1845
|
font-weight: 500;
|
|
1837
1846
|
margin: 0 0 8px;
|
|
@@ -2087,6 +2096,71 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2087
2096
|
vertical-align: text-top;
|
|
2088
2097
|
}
|
|
2089
2098
|
|
|
2099
|
+
@media (min-width: 600px) {
|
|
2100
|
+
.edit-site-start-template-options__modal.components-modal__frame {
|
|
2101
|
+
width: calc(100% - 32px);
|
|
2102
|
+
height: calc(100% - 120px);
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
@media (min-width: 782px) {
|
|
2106
|
+
.edit-site-start-template-options__modal.components-modal__frame {
|
|
2107
|
+
width: 50%;
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
@media (min-width: 960px) {
|
|
2111
|
+
.edit-site-start-template-options__modal.components-modal__frame {
|
|
2112
|
+
height: -moz-fit-content;
|
|
2113
|
+
height: fit-content;
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list {
|
|
2118
|
+
display: grid;
|
|
2119
|
+
width: 100%;
|
|
2120
|
+
margin-top: 4px;
|
|
2121
|
+
gap: 24px;
|
|
2122
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100% / 2, max(240px, 100% / 10)), 1fr));
|
|
2123
|
+
}
|
|
2124
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
|
|
2125
|
+
break-inside: avoid-column;
|
|
2126
|
+
margin-bottom: 0;
|
|
2127
|
+
width: 100%;
|
|
2128
|
+
aspect-ratio: 3/4;
|
|
2129
|
+
}
|
|
2130
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container {
|
|
2131
|
+
height: 100%;
|
|
2132
|
+
box-shadow: 0 0 0 1px #ddd;
|
|
2133
|
+
}
|
|
2134
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content {
|
|
2135
|
+
width: 100%;
|
|
2136
|
+
position: absolute;
|
|
2137
|
+
}
|
|
2138
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title {
|
|
2139
|
+
display: none;
|
|
2140
|
+
}
|
|
2141
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:hover .block-editor-block-preview__container {
|
|
2142
|
+
box-shadow: 0 0 0 2px var(--wp-admin-theme-color);
|
|
2143
|
+
}
|
|
2144
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:focus .block-editor-block-preview__container {
|
|
2145
|
+
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2146
|
+
outline: 2px solid transparent;
|
|
2147
|
+
}
|
|
2148
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:nth-last-child(2) .block-editor-block-preview__container {
|
|
2149
|
+
position: absolute;
|
|
2150
|
+
padding: 0;
|
|
2151
|
+
background: #f0f0f0;
|
|
2152
|
+
}
|
|
2153
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:nth-last-child(2) .block-editor-block-preview__container::after {
|
|
2154
|
+
width: 100%;
|
|
2155
|
+
top: 50%;
|
|
2156
|
+
margin-top: -1em;
|
|
2157
|
+
content: var(--wp-edit-site-start-template-options-start-blank);
|
|
2158
|
+
text-align: center;
|
|
2159
|
+
}
|
|
2160
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:nth-last-child(2) iframe {
|
|
2161
|
+
display: none;
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2090
2164
|
.edit-site-keyboard-shortcut-help-modal__section {
|
|
2091
2165
|
margin: 0 0 2rem 0;
|
|
2092
2166
|
}
|
|
@@ -2145,23 +2219,23 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2145
2219
|
|
|
2146
2220
|
.edit-site-layout__hub {
|
|
2147
2221
|
position: fixed;
|
|
2148
|
-
top:
|
|
2149
|
-
right:
|
|
2222
|
+
top: 0;
|
|
2223
|
+
right: 0;
|
|
2150
2224
|
width: calc(100vw - 48px);
|
|
2151
|
-
height:
|
|
2225
|
+
height: 60px;
|
|
2152
2226
|
z-index: 3;
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2227
|
+
}
|
|
2228
|
+
.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub {
|
|
2229
|
+
width: auto;
|
|
2230
|
+
padding-left: 0;
|
|
2231
|
+
}
|
|
2232
|
+
@media (min-width: 782px) {
|
|
2233
|
+
.edit-site-layout__hub {
|
|
2234
|
+
width: calc(360px - 48px);
|
|
2235
|
+
}
|
|
2158
2236
|
}
|
|
2159
2237
|
.edit-site-layout.is-full-canvas .edit-site-layout__hub {
|
|
2160
|
-
top: 0;
|
|
2161
|
-
right: 0;
|
|
2162
|
-
padding: 0;
|
|
2163
2238
|
padding-left: 16px;
|
|
2164
|
-
height: 60px;
|
|
2165
2239
|
border-radius: 0;
|
|
2166
2240
|
width: 100vw;
|
|
2167
2241
|
box-shadow: none;
|
|
@@ -2172,15 +2246,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2172
2246
|
padding-left: 0;
|
|
2173
2247
|
}
|
|
2174
2248
|
}
|
|
2175
|
-
.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub {
|
|
2176
|
-
width: auto;
|
|
2177
|
-
padding-left: 0;
|
|
2178
|
-
}
|
|
2179
|
-
@media (min-width: 782px) {
|
|
2180
|
-
.edit-site-layout__hub {
|
|
2181
|
-
width: calc(360px - 48px);
|
|
2182
|
-
}
|
|
2183
|
-
}
|
|
2184
2249
|
|
|
2185
2250
|
.edit-site-layout__header {
|
|
2186
2251
|
height: 60px;
|
|
@@ -2430,13 +2495,14 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2430
2495
|
|
|
2431
2496
|
.edit-site-sidebar-navigation-screen__content {
|
|
2432
2497
|
margin: 0 36px 16px 16px;
|
|
2498
|
+
color: #949494;
|
|
2433
2499
|
}
|
|
2434
2500
|
|
|
2435
2501
|
.edit-site-sidebar-navigation-screen__title-icon {
|
|
2436
2502
|
position: sticky;
|
|
2437
2503
|
top: 0;
|
|
2438
2504
|
background: #1e1e1e;
|
|
2439
|
-
padding-top:
|
|
2505
|
+
padding-top: 108px;
|
|
2440
2506
|
box-shadow: 0 8px 16px #1e1e1e;
|
|
2441
2507
|
margin-bottom: 8px;
|
|
2442
2508
|
padding-bottom: 8px;
|
|
@@ -2454,14 +2520,10 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2454
2520
|
.edit-site-sidebar-navigation-screen__back {
|
|
2455
2521
|
color: #e0e0e0;
|
|
2456
2522
|
}
|
|
2457
|
-
.edit-site-sidebar-navigation-screen__back:hover {
|
|
2523
|
+
.edit-site-sidebar-navigation-screen__back:hover, .edit-site-sidebar-navigation-screen__back:not([aria-disabled=true]):active {
|
|
2458
2524
|
color: #fff;
|
|
2459
2525
|
}
|
|
2460
2526
|
|
|
2461
|
-
.edit-site-sidebar-navigation-screen__icon-placeholder {
|
|
2462
|
-
width: 36px;
|
|
2463
|
-
}
|
|
2464
|
-
|
|
2465
2527
|
.edit-site-sidebar-navigation-screen-templates__see-all {
|
|
2466
2528
|
/* Overrides the margin that comes from the Item component */
|
|
2467
2529
|
margin-top: 16px !important;
|
|
@@ -2479,11 +2541,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2479
2541
|
gap: 8px;
|
|
2480
2542
|
}
|
|
2481
2543
|
|
|
2482
|
-
.edit-site-site-hub__edit-button {
|
|
2483
|
-
height: 32px;
|
|
2484
|
-
color: #fff;
|
|
2485
|
-
}
|
|
2486
|
-
|
|
2487
2544
|
.edit-site-site-hub__post-type {
|
|
2488
2545
|
opacity: 0.6;
|
|
2489
2546
|
}
|
|
@@ -2492,10 +2549,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2492
2549
|
height: 60px;
|
|
2493
2550
|
width: 64px;
|
|
2494
2551
|
flex-shrink: 0;
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
.edit-site-layout.is-edit-mode .edit-site-site-hub__view-mode-toggle-container {
|
|
2498
|
-
width: 60px;
|
|
2552
|
+
background: #1e1e1e;
|
|
2499
2553
|
}
|
|
2500
2554
|
|
|
2501
2555
|
.edit-site-site-hub__text-content {
|
|
@@ -2508,10 +2562,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2508
2562
|
overflow: hidden;
|
|
2509
2563
|
}
|
|
2510
2564
|
|
|
2511
|
-
.edit-site-sidebar-navigation-screen-navigation-menus .block-editor-list-view-block__menu-edit,
|
|
2512
|
-
.edit-site-sidebar-navigation-screen-navigation-menus .edit-site-navigation-inspector__select-menu {
|
|
2513
|
-
display: none;
|
|
2514
|
-
}
|
|
2515
2565
|
.edit-site-sidebar-navigation-screen-navigation-menus .offcanvas-editor-list-view-leaf {
|
|
2516
2566
|
max-width: calc(100% - 4px);
|
|
2517
2567
|
}
|
package/build-style/style.css
CHANGED
|
@@ -1005,6 +1005,10 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
1005
1005
|
padding: 0 16px;
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
|
+
.edit-site-global-styles-header {
|
|
1009
|
+
margin-bottom: 0 !important;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1008
1012
|
.edit-site-global-styles-subtitle {
|
|
1009
1013
|
margin-bottom: 0 !important;
|
|
1010
1014
|
text-transform: uppercase;
|
|
@@ -1114,7 +1118,8 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
1114
1118
|
}
|
|
1115
1119
|
|
|
1116
1120
|
.edit-site-global-styles-screen-css-help-link {
|
|
1117
|
-
|
|
1121
|
+
display: block;
|
|
1122
|
+
margin-top: 8px;
|
|
1118
1123
|
}
|
|
1119
1124
|
|
|
1120
1125
|
.edit-site-global-styles-screen-variations {
|
|
@@ -1832,6 +1837,10 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1832
1837
|
min-width: auto;
|
|
1833
1838
|
}
|
|
1834
1839
|
|
|
1840
|
+
.edit-site-template-revisions {
|
|
1841
|
+
margin-left: -4px;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1835
1844
|
h3.edit-site-template-card__template-areas-title {
|
|
1836
1845
|
font-weight: 500;
|
|
1837
1846
|
margin: 0 0 8px;
|
|
@@ -2087,6 +2096,71 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2087
2096
|
vertical-align: text-top;
|
|
2088
2097
|
}
|
|
2089
2098
|
|
|
2099
|
+
@media (min-width: 600px) {
|
|
2100
|
+
.edit-site-start-template-options__modal.components-modal__frame {
|
|
2101
|
+
width: calc(100% - 32px);
|
|
2102
|
+
height: calc(100% - 120px);
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
@media (min-width: 782px) {
|
|
2106
|
+
.edit-site-start-template-options__modal.components-modal__frame {
|
|
2107
|
+
width: 50%;
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
@media (min-width: 960px) {
|
|
2111
|
+
.edit-site-start-template-options__modal.components-modal__frame {
|
|
2112
|
+
height: -moz-fit-content;
|
|
2113
|
+
height: fit-content;
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list {
|
|
2118
|
+
display: grid;
|
|
2119
|
+
width: 100%;
|
|
2120
|
+
margin-top: 4px;
|
|
2121
|
+
gap: 24px;
|
|
2122
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100% / 2, max(240px, 100% / 10)), 1fr));
|
|
2123
|
+
}
|
|
2124
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
|
|
2125
|
+
break-inside: avoid-column;
|
|
2126
|
+
margin-bottom: 0;
|
|
2127
|
+
width: 100%;
|
|
2128
|
+
aspect-ratio: 3/4;
|
|
2129
|
+
}
|
|
2130
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container {
|
|
2131
|
+
height: 100%;
|
|
2132
|
+
box-shadow: 0 0 0 1px #ddd;
|
|
2133
|
+
}
|
|
2134
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content {
|
|
2135
|
+
width: 100%;
|
|
2136
|
+
position: absolute;
|
|
2137
|
+
}
|
|
2138
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title {
|
|
2139
|
+
display: none;
|
|
2140
|
+
}
|
|
2141
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:hover .block-editor-block-preview__container {
|
|
2142
|
+
box-shadow: 0 0 0 2px var(--wp-admin-theme-color);
|
|
2143
|
+
}
|
|
2144
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:focus .block-editor-block-preview__container {
|
|
2145
|
+
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
2146
|
+
outline: 2px solid transparent;
|
|
2147
|
+
}
|
|
2148
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:nth-last-child(2) .block-editor-block-preview__container {
|
|
2149
|
+
position: absolute;
|
|
2150
|
+
padding: 0;
|
|
2151
|
+
background: #f0f0f0;
|
|
2152
|
+
}
|
|
2153
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:nth-last-child(2) .block-editor-block-preview__container::after {
|
|
2154
|
+
width: 100%;
|
|
2155
|
+
top: 50%;
|
|
2156
|
+
margin-top: -1em;
|
|
2157
|
+
content: var(--wp-edit-site-start-template-options-start-blank);
|
|
2158
|
+
text-align: center;
|
|
2159
|
+
}
|
|
2160
|
+
.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item:nth-last-child(2) iframe {
|
|
2161
|
+
display: none;
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2090
2164
|
.edit-site-keyboard-shortcut-help-modal__section {
|
|
2091
2165
|
margin: 0 0 2rem 0;
|
|
2092
2166
|
}
|
|
@@ -2145,23 +2219,23 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2145
2219
|
|
|
2146
2220
|
.edit-site-layout__hub {
|
|
2147
2221
|
position: fixed;
|
|
2148
|
-
top:
|
|
2149
|
-
left:
|
|
2222
|
+
top: 0;
|
|
2223
|
+
left: 0;
|
|
2150
2224
|
width: calc(100vw - 48px);
|
|
2151
|
-
height:
|
|
2225
|
+
height: 60px;
|
|
2152
2226
|
z-index: 3;
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2227
|
+
}
|
|
2228
|
+
.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub {
|
|
2229
|
+
width: auto;
|
|
2230
|
+
padding-right: 0;
|
|
2231
|
+
}
|
|
2232
|
+
@media (min-width: 782px) {
|
|
2233
|
+
.edit-site-layout__hub {
|
|
2234
|
+
width: calc(360px - 48px);
|
|
2235
|
+
}
|
|
2158
2236
|
}
|
|
2159
2237
|
.edit-site-layout.is-full-canvas .edit-site-layout__hub {
|
|
2160
|
-
top: 0;
|
|
2161
|
-
left: 0;
|
|
2162
|
-
padding: 0;
|
|
2163
2238
|
padding-right: 16px;
|
|
2164
|
-
height: 60px;
|
|
2165
2239
|
border-radius: 0;
|
|
2166
2240
|
width: 100vw;
|
|
2167
2241
|
box-shadow: none;
|
|
@@ -2172,15 +2246,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2172
2246
|
padding-right: 0;
|
|
2173
2247
|
}
|
|
2174
2248
|
}
|
|
2175
|
-
.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub {
|
|
2176
|
-
width: auto;
|
|
2177
|
-
padding-right: 0;
|
|
2178
|
-
}
|
|
2179
|
-
@media (min-width: 782px) {
|
|
2180
|
-
.edit-site-layout__hub {
|
|
2181
|
-
width: calc(360px - 48px);
|
|
2182
|
-
}
|
|
2183
|
-
}
|
|
2184
2249
|
|
|
2185
2250
|
.edit-site-layout__header {
|
|
2186
2251
|
height: 60px;
|
|
@@ -2430,13 +2495,14 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2430
2495
|
|
|
2431
2496
|
.edit-site-sidebar-navigation-screen__content {
|
|
2432
2497
|
margin: 0 16px 16px 36px;
|
|
2498
|
+
color: #949494;
|
|
2433
2499
|
}
|
|
2434
2500
|
|
|
2435
2501
|
.edit-site-sidebar-navigation-screen__title-icon {
|
|
2436
2502
|
position: sticky;
|
|
2437
2503
|
top: 0;
|
|
2438
2504
|
background: #1e1e1e;
|
|
2439
|
-
padding-top:
|
|
2505
|
+
padding-top: 108px;
|
|
2440
2506
|
box-shadow: 0 8px 16px #1e1e1e;
|
|
2441
2507
|
margin-bottom: 8px;
|
|
2442
2508
|
padding-bottom: 8px;
|
|
@@ -2454,14 +2520,10 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2454
2520
|
.edit-site-sidebar-navigation-screen__back {
|
|
2455
2521
|
color: #e0e0e0;
|
|
2456
2522
|
}
|
|
2457
|
-
.edit-site-sidebar-navigation-screen__back:hover {
|
|
2523
|
+
.edit-site-sidebar-navigation-screen__back:hover, .edit-site-sidebar-navigation-screen__back:not([aria-disabled=true]):active {
|
|
2458
2524
|
color: #fff;
|
|
2459
2525
|
}
|
|
2460
2526
|
|
|
2461
|
-
.edit-site-sidebar-navigation-screen__icon-placeholder {
|
|
2462
|
-
width: 36px;
|
|
2463
|
-
}
|
|
2464
|
-
|
|
2465
2527
|
.edit-site-sidebar-navigation-screen-templates__see-all {
|
|
2466
2528
|
/* Overrides the margin that comes from the Item component */
|
|
2467
2529
|
margin-top: 16px !important;
|
|
@@ -2479,11 +2541,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2479
2541
|
gap: 8px;
|
|
2480
2542
|
}
|
|
2481
2543
|
|
|
2482
|
-
.edit-site-site-hub__edit-button {
|
|
2483
|
-
height: 32px;
|
|
2484
|
-
color: #fff;
|
|
2485
|
-
}
|
|
2486
|
-
|
|
2487
2544
|
.edit-site-site-hub__post-type {
|
|
2488
2545
|
opacity: 0.6;
|
|
2489
2546
|
}
|
|
@@ -2492,10 +2549,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2492
2549
|
height: 60px;
|
|
2493
2550
|
width: 64px;
|
|
2494
2551
|
flex-shrink: 0;
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
.edit-site-layout.is-edit-mode .edit-site-site-hub__view-mode-toggle-container {
|
|
2498
|
-
width: 60px;
|
|
2552
|
+
background: #1e1e1e;
|
|
2499
2553
|
}
|
|
2500
2554
|
|
|
2501
2555
|
.edit-site-site-hub__text-content {
|
|
@@ -2508,10 +2562,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2508
2562
|
overflow: hidden;
|
|
2509
2563
|
}
|
|
2510
2564
|
|
|
2511
|
-
.edit-site-sidebar-navigation-screen-navigation-menus .block-editor-list-view-block__menu-edit,
|
|
2512
|
-
.edit-site-sidebar-navigation-screen-navigation-menus .edit-site-navigation-inspector__select-menu {
|
|
2513
|
-
display: none;
|
|
2514
|
-
}
|
|
2515
2565
|
.edit-site-sidebar-navigation-screen-navigation-menus .offcanvas-editor-list-view-leaf {
|
|
2516
2566
|
max-width: calc(100% - 4px);
|
|
2517
2567
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "Edit Site Page module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -27,35 +27,35 @@
|
|
|
27
27
|
"react-native": "src/index",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/runtime": "^7.16.0",
|
|
30
|
-
"@wordpress/a11y": "^3.
|
|
31
|
-
"@wordpress/api-fetch": "^6.
|
|
32
|
-
"@wordpress/block-editor": "^11.
|
|
33
|
-
"@wordpress/block-library": "^8.
|
|
34
|
-
"@wordpress/blocks": "^12.
|
|
35
|
-
"@wordpress/components": "^23.
|
|
36
|
-
"@wordpress/compose": "^6.
|
|
37
|
-
"@wordpress/core-data": "^6.
|
|
38
|
-
"@wordpress/data": "^8.
|
|
39
|
-
"@wordpress/deprecated": "^3.
|
|
40
|
-
"@wordpress/editor": "^13.
|
|
41
|
-
"@wordpress/element": "^5.
|
|
42
|
-
"@wordpress/
|
|
43
|
-
"@wordpress/
|
|
44
|
-
"@wordpress/
|
|
45
|
-
"@wordpress/
|
|
46
|
-
"@wordpress/
|
|
47
|
-
"@wordpress/
|
|
48
|
-
"@wordpress/
|
|
49
|
-
"@wordpress/
|
|
50
|
-
"@wordpress/
|
|
51
|
-
"@wordpress/
|
|
52
|
-
"@wordpress/
|
|
53
|
-
"@wordpress/
|
|
54
|
-
"@wordpress/reusable-blocks": "^4.
|
|
55
|
-
"@wordpress/style-engine": "^1.
|
|
56
|
-
"@wordpress/url": "^3.
|
|
57
|
-
"@wordpress/viewport": "^5.
|
|
58
|
-
"@wordpress/widgets": "^3.
|
|
30
|
+
"@wordpress/a11y": "^3.27.0",
|
|
31
|
+
"@wordpress/api-fetch": "^6.24.0",
|
|
32
|
+
"@wordpress/block-editor": "^11.4.0",
|
|
33
|
+
"@wordpress/block-library": "^8.4.0",
|
|
34
|
+
"@wordpress/blocks": "^12.4.0",
|
|
35
|
+
"@wordpress/components": "^23.4.0",
|
|
36
|
+
"@wordpress/compose": "^6.4.0",
|
|
37
|
+
"@wordpress/core-data": "^6.4.0",
|
|
38
|
+
"@wordpress/data": "^8.4.0",
|
|
39
|
+
"@wordpress/deprecated": "^3.27.0",
|
|
40
|
+
"@wordpress/editor": "^13.4.0",
|
|
41
|
+
"@wordpress/element": "^5.4.0",
|
|
42
|
+
"@wordpress/hooks": "^3.27.0",
|
|
43
|
+
"@wordpress/html-entities": "^3.27.0",
|
|
44
|
+
"@wordpress/i18n": "^4.27.0",
|
|
45
|
+
"@wordpress/icons": "^9.18.0",
|
|
46
|
+
"@wordpress/interface": "^5.4.0",
|
|
47
|
+
"@wordpress/keyboard-shortcuts": "^4.4.0",
|
|
48
|
+
"@wordpress/keycodes": "^3.27.0",
|
|
49
|
+
"@wordpress/media-utils": "^4.18.0",
|
|
50
|
+
"@wordpress/notices": "^3.27.0",
|
|
51
|
+
"@wordpress/plugins": "^5.4.0",
|
|
52
|
+
"@wordpress/preferences": "^3.4.0",
|
|
53
|
+
"@wordpress/private-apis": "^0.9.0",
|
|
54
|
+
"@wordpress/reusable-blocks": "^4.4.0",
|
|
55
|
+
"@wordpress/style-engine": "^1.10.0",
|
|
56
|
+
"@wordpress/url": "^3.28.0",
|
|
57
|
+
"@wordpress/viewport": "^5.4.0",
|
|
58
|
+
"@wordpress/widgets": "^3.4.0",
|
|
59
59
|
"classnames": "^2.3.1",
|
|
60
60
|
"colord": "^2.9.2",
|
|
61
61
|
"downloadjs": "^1.4.7",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "c25ff895413bad4354c55c0c2d732552618b0d56"
|
|
77
77
|
}
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
getUniqueTemplatePartTitle,
|
|
21
21
|
getCleanTemplatePartSlug,
|
|
22
22
|
} from '../../utils/template-part-create';
|
|
23
|
-
import { unlock } from '../../
|
|
23
|
+
import { unlock } from '../../private-apis';
|
|
24
24
|
|
|
25
25
|
export default function NewTemplatePart( {
|
|
26
26
|
postType,
|
|
@@ -67,9 +67,12 @@ export default function NewTemplatePart( {
|
|
|
67
67
|
setCanvasMode( 'edit' );
|
|
68
68
|
|
|
69
69
|
// Navigate to the created template part editor.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
window.queueMicrotask( () => {
|
|
71
|
+
history.push( {
|
|
72
|
+
postId: templatePart.id,
|
|
73
|
+
postType: 'wp_template_part',
|
|
74
|
+
path: '/template-parts/single',
|
|
75
|
+
} );
|
|
73
76
|
} );
|
|
74
77
|
|
|
75
78
|
// TODO: Add a success notice?
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import apiFetch from '@wordpress/api-fetch';
|
|
5
|
-
import { addQueryArgs } from '@wordpress/url';
|
|
6
4
|
import {
|
|
7
5
|
DropdownMenu,
|
|
8
6
|
MenuGroup,
|
|
@@ -48,7 +46,7 @@ import AddCustomGenericTemplateModal from './add-custom-generic-template-modal';
|
|
|
48
46
|
import TemplateActionsLoadingScreen from './template-actions-loading-screen';
|
|
49
47
|
import { useHistory } from '../routes';
|
|
50
48
|
import { store as editSiteStore } from '../../store';
|
|
51
|
-
import { unlock } from '../../
|
|
49
|
+
import { unlock } from '../../private-apis';
|
|
52
50
|
|
|
53
51
|
const DEFAULT_TEMPLATE_SLUGS = [
|
|
54
52
|
'front-page',
|
|
@@ -102,26 +100,13 @@ export default function NewTemplate( {
|
|
|
102
100
|
const { setTemplate, setCanvasMode } = unlock(
|
|
103
101
|
useDispatch( editSiteStore )
|
|
104
102
|
);
|
|
105
|
-
|
|
106
103
|
async function createTemplate( template, isWPSuggestion = true ) {
|
|
107
104
|
if ( isCreatingTemplate ) {
|
|
108
105
|
return;
|
|
109
106
|
}
|
|
110
107
|
setIsCreatingTemplate( true );
|
|
111
108
|
try {
|
|
112
|
-
const { title, description, slug
|
|
113
|
-
let templateContent = template.content;
|
|
114
|
-
// Try to find fallback content from existing templates.
|
|
115
|
-
if ( ! templateContent ) {
|
|
116
|
-
const fallbackTemplate = await apiFetch( {
|
|
117
|
-
path: addQueryArgs( '/wp/v2/templates/lookup', {
|
|
118
|
-
slug,
|
|
119
|
-
is_custom: ! isWPSuggestion,
|
|
120
|
-
template_prefix: templatePrefix,
|
|
121
|
-
} ),
|
|
122
|
-
} );
|
|
123
|
-
templateContent = fallbackTemplate.content.raw;
|
|
124
|
-
}
|
|
109
|
+
const { title, description, slug } = template;
|
|
125
110
|
const newTemplate = await saveEntityRecord(
|
|
126
111
|
'postType',
|
|
127
112
|
'wp_template',
|
|
@@ -131,7 +116,6 @@ export default function NewTemplate( {
|
|
|
131
116
|
slug: slug.toString(),
|
|
132
117
|
status: 'publish',
|
|
133
118
|
title,
|
|
134
|
-
content: templateContent,
|
|
135
119
|
// This adds a post meta field in template that is part of `is_custom` value calculation.
|
|
136
120
|
is_wp_suggestion: isWPSuggestion,
|
|
137
121
|
},
|
|
@@ -140,15 +124,18 @@ export default function NewTemplate( {
|
|
|
140
124
|
|
|
141
125
|
// Set template before navigating away to avoid initial stale value.
|
|
142
126
|
setTemplate( newTemplate.id, newTemplate.slug );
|
|
143
|
-
|
|
144
127
|
// Switch to edit mode.
|
|
145
128
|
setCanvasMode( 'edit' );
|
|
146
129
|
|
|
147
130
|
// Navigate to the created template editor.
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
131
|
+
window.queueMicrotask( () => {
|
|
132
|
+
history.push( {
|
|
133
|
+
postId: newTemplate.id,
|
|
134
|
+
postType: newTemplate.type,
|
|
135
|
+
path: '/templates/single',
|
|
136
|
+
} );
|
|
151
137
|
} );
|
|
138
|
+
|
|
152
139
|
createSuccessNotice(
|
|
153
140
|
sprintf(
|
|
154
141
|
// translators: %s: Title of the created template e.g: "Category".
|
|
@@ -13,7 +13,7 @@ import { useSelect, useDispatch } from '@wordpress/data';
|
|
|
13
13
|
/**
|
|
14
14
|
* Internal dependencies
|
|
15
15
|
*/
|
|
16
|
-
import { unlock } from '../../
|
|
16
|
+
import { unlock } from '../../private-apis';
|
|
17
17
|
import { store as editSiteStore } from '../../store';
|
|
18
18
|
|
|
19
19
|
function EditorCanvas( { enableResizing, settings, children, ...props } ) {
|
|
@@ -33,6 +33,7 @@ function EditorCanvas( { enableResizing, settings, children, ...props } ) {
|
|
|
33
33
|
const mouseMoveTypingRef = useMouseMoveTypingReset();
|
|
34
34
|
return (
|
|
35
35
|
<Iframe
|
|
36
|
+
expand={ isZoomOutMode }
|
|
36
37
|
scale={ ( isZoomOutMode && 0.45 ) || undefined }
|
|
37
38
|
frameSize={ isZoomOutMode ? 100 : undefined }
|
|
38
39
|
style={ enableResizing ? {} : deviceStyles }
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
__unstableUseTypingObserver as useTypingObserver,
|
|
18
18
|
BlockEditorKeyboardShortcuts,
|
|
19
19
|
store as blockEditorStore,
|
|
20
|
-
|
|
20
|
+
privateApis as blockEditorPrivateApis,
|
|
21
21
|
} from '@wordpress/block-editor';
|
|
22
22
|
import {
|
|
23
23
|
useMergeRefs,
|
|
@@ -37,9 +37,9 @@ import BackButton from './back-button';
|
|
|
37
37
|
import ResizableEditor from './resizable-editor';
|
|
38
38
|
import EditorCanvas from './editor-canvas';
|
|
39
39
|
import StyleBook from '../style-book';
|
|
40
|
-
import { unlock } from '../../
|
|
40
|
+
import { unlock } from '../../private-apis';
|
|
41
41
|
|
|
42
|
-
const { ExperimentalBlockEditorProvider } = unlock(
|
|
42
|
+
const { ExperimentalBlockEditorProvider } = unlock( blockEditorPrivateApis );
|
|
43
43
|
|
|
44
44
|
const LAYOUT = {
|
|
45
45
|
type: 'default',
|