@wordpress/edit-site 5.14.0 → 5.15.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 +2 -0
- package/build/components/add-new-page/index.js +1 -6
- package/build/components/add-new-page/index.js.map +1 -1
- package/build/components/add-new-pattern/index.js +21 -7
- package/build/components/add-new-pattern/index.js.map +1 -1
- package/build/components/add-new-template/utils.js +10 -8
- package/build/components/add-new-template/utils.js.map +1 -1
- package/build/components/block-editor/constants.js +1 -1
- package/build/components/block-editor/constants.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/index.js +0 -4
- package/build/components/block-editor/index.js.map +1 -1
- package/build/components/block-editor/use-site-editor-settings.js +87 -13
- package/build/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build/components/code-editor/index.js +60 -28
- package/build/components/code-editor/index.js.map +1 -1
- package/build/components/create-pattern-modal/index.js +7 -3
- package/build/components/create-pattern-modal/index.js.map +1 -1
- package/build/components/editor/index.js +1 -1
- package/build/components/editor/index.js.map +1 -1
- package/build/components/header-edit-mode/index.js +13 -9
- package/build/components/header-edit-mode/index.js.map +1 -1
- package/build/components/layout/index.js +8 -3
- package/build/components/layout/index.js.map +1 -1
- package/build/components/page-actions/index.js +2 -2
- package/build/components/page-actions/index.js.map +1 -1
- package/build/components/page-actions/{delete-page-menu-item.js → trash-page-menu-item.js} +8 -16
- package/build/components/page-actions/trash-page-menu-item.js.map +1 -0
- 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-patterns/duplicate-menu-item.js +163 -0
- package/build/components/page-patterns/duplicate-menu-item.js.map +1 -0
- package/build/components/page-patterns/grid-item.js +83 -58
- package/build/components/page-patterns/grid-item.js.map +1 -1
- package/build/components/page-patterns/grid.js +5 -18
- package/build/components/page-patterns/grid.js.map +1 -1
- package/build/components/page-patterns/header.js +69 -0
- package/build/components/page-patterns/header.js.map +1 -0
- package/build/components/page-patterns/index.js +3 -1
- package/build/components/page-patterns/index.js.map +1 -1
- package/build/components/page-patterns/pagination.js +63 -0
- package/build/components/page-patterns/pagination.js.map +1 -0
- package/build/components/page-patterns/patterns-list.js +95 -30
- package/build/components/page-patterns/patterns-list.js.map +1 -1
- package/build/components/page-patterns/rename-menu-item.js +109 -0
- package/build/components/page-patterns/rename-menu-item.js.map +1 -0
- package/build/components/page-patterns/use-patterns.js +102 -121
- package/build/components/page-patterns/use-patterns.js.map +1 -1
- package/build/components/page-template-parts/add-new-template-part.js +74 -0
- package/build/components/page-template-parts/add-new-template-part.js.map +1 -0
- package/build/components/page-template-parts/index.js +2 -23
- package/build/components/page-template-parts/index.js.map +1 -1
- package/build/components/resizable-frame/index.js +78 -36
- package/build/components/resizable-frame/index.js.map +1 -1
- package/build/components/save-panel/index.js +5 -5
- package/build/components/save-panel/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/page-panels/page-status.js +3 -8
- package/build/components/sidebar-edit-mode/page-panels/page-status.js.map +1 -1
- package/build/components/sidebar-navigation-screen/index.js +14 -8
- package/build/components/sidebar-navigation-screen/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-main/index.js +4 -2
- 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/index.js +4 -4
- package/build/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js +1 -0
- package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +3 -3
- package/build/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +4 -3
- package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menus/constants.js +2 -0
- package/build/components/sidebar-navigation-screen-navigation-menus/constants.js.map +1 -1
- package/build/components/sidebar-navigation-screen-page/index.js +2 -3
- package/build/components/sidebar-navigation-screen-page/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-page/status-label.js +1 -34
- package/build/components/sidebar-navigation-screen-page/status-label.js.map +1 -1
- package/build/components/sidebar-navigation-screen-pages/index.js +33 -25
- package/build/components/sidebar-navigation-screen-pages/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-pattern/index.js +9 -7
- package/build/components/sidebar-navigation-screen-pattern/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js +3 -2
- package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js.map +1 -1
- package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js +3 -2
- package/build/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js.map +1 -1
- package/build/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js +11 -3
- package/build/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js.map +1 -1
- package/build/components/sidebar-navigation-screen-pattern/use-pattern-details.js +5 -2
- package/build/components/sidebar-navigation-screen-pattern/use-pattern-details.js.map +1 -1
- package/build/components/sidebar-navigation-screen-patterns/index.js +72 -51
- package/build/components/sidebar-navigation-screen-patterns/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-patterns/use-my-patterns.js +9 -5
- package/build/components/sidebar-navigation-screen-patterns/use-my-patterns.js.map +1 -1
- package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +11 -1
- package/build/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +1 -1
- package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +20 -9
- package/build/components/sidebar-navigation-screen-patterns/use-template-part-areas.js.map +1 -1
- package/build/components/sidebar-navigation-screen-patterns/use-theme-patterns.js +1 -1
- package/build/components/sidebar-navigation-screen-patterns/use-theme-patterns.js.map +1 -1
- package/build/components/site-hub/index.js +24 -11
- package/build/components/site-hub/index.js.map +1 -1
- package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js +10 -5
- 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-path-with-url.js +15 -12
- package/build/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -1
- package/build/components/template-actions/index.js +3 -1
- package/build/components/template-actions/index.js.map +1 -1
- package/build/components/template-actions/rename-menu-item.js +12 -8
- package/build/components/template-actions/rename-menu-item.js.map +1 -1
- package/build/components/use-edited-entity-record/index.js +6 -1
- package/build/components/use-edited-entity-record/index.js.map +1 -1
- package/build/hooks/commands/use-common-commands.js +78 -20
- package/build/hooks/commands/use-common-commands.js.map +1 -1
- package/build/hooks/push-changes-to-global-styles/index.js +56 -10
- package/build/hooks/push-changes-to-global-styles/index.js.map +1 -1
- package/build/store/private-actions.js +7 -1
- package/build/store/private-actions.js.map +1 -1
- package/build/utils/normalize-record-key.js +19 -0
- package/build/utils/normalize-record-key.js.map +1 -0
- package/build/utils/use-activate-theme.js +1 -1
- package/build/utils/use-activate-theme.js.map +1 -1
- package/build-module/components/add-new-page/index.js +1 -6
- package/build-module/components/add-new-page/index.js.map +1 -1
- package/build-module/components/add-new-pattern/index.js +19 -7
- package/build-module/components/add-new-pattern/index.js.map +1 -1
- package/build-module/components/add-new-template/utils.js +9 -6
- package/build-module/components/add-new-template/utils.js.map +1 -1
- package/build-module/components/block-editor/constants.js +1 -1
- package/build-module/components/block-editor/constants.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/index.js +0 -4
- package/build-module/components/block-editor/index.js.map +1 -1
- package/build-module/components/block-editor/use-site-editor-settings.js +89 -14
- package/build-module/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build-module/components/code-editor/index.js +62 -30
- package/build-module/components/code-editor/index.js.map +1 -1
- package/build-module/components/create-pattern-modal/index.js +6 -3
- package/build-module/components/create-pattern-modal/index.js.map +1 -1
- package/build-module/components/editor/index.js +1 -1
- package/build-module/components/editor/index.js.map +1 -1
- package/build-module/components/header-edit-mode/index.js +13 -9
- package/build-module/components/header-edit-mode/index.js.map +1 -1
- package/build-module/components/layout/index.js +8 -3
- package/build-module/components/layout/index.js.map +1 -1
- package/build-module/components/page-actions/index.js +2 -2
- package/build-module/components/page-actions/index.js.map +1 -1
- package/build-module/components/page-actions/{delete-page-menu-item.js → trash-page-menu-item.js} +8 -17
- package/build-module/components/page-actions/trash-page-menu-item.js.map +1 -0
- 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-patterns/duplicate-menu-item.js +147 -0
- package/build-module/components/page-patterns/duplicate-menu-item.js.map +1 -0
- package/build-module/components/page-patterns/grid-item.js +84 -64
- package/build-module/components/page-patterns/grid-item.js.map +1 -1
- package/build-module/components/page-patterns/grid.js +5 -17
- package/build-module/components/page-patterns/grid.js.map +1 -1
- package/build-module/components/page-patterns/header.js +54 -0
- package/build-module/components/page-patterns/header.js.map +1 -0
- package/build-module/components/page-patterns/index.js +3 -1
- package/build-module/components/page-patterns/index.js.map +1 -1
- package/build-module/components/page-patterns/pagination.js +54 -0
- package/build-module/components/page-patterns/pagination.js.map +1 -0
- package/build-module/components/page-patterns/patterns-list.js +96 -33
- package/build-module/components/page-patterns/patterns-list.js.map +1 -1
- package/build-module/components/page-patterns/rename-menu-item.js +97 -0
- package/build-module/components/page-patterns/rename-menu-item.js.map +1 -0
- package/build-module/components/page-patterns/use-patterns.js +103 -122
- package/build-module/components/page-patterns/use-patterns.js.map +1 -1
- package/build-module/components/page-template-parts/add-new-template-part.js +58 -0
- package/build-module/components/page-template-parts/add-new-template-part.js.map +1 -0
- package/build-module/components/page-template-parts/index.js +3 -22
- package/build-module/components/page-template-parts/index.js.map +1 -1
- package/build-module/components/resizable-frame/index.js +79 -39
- package/build-module/components/resizable-frame/index.js.map +1 -1
- package/build-module/components/save-panel/index.js +5 -5
- package/build-module/components/save-panel/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/page-panels/page-status.js +3 -8
- package/build-module/components/sidebar-edit-mode/page-panels/page-status.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen/index.js +15 -9
- package/build-module/components/sidebar-navigation-screen/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-main/index.js +4 -3
- 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/index.js +4 -4
- package/build-module/components/sidebar-navigation-screen-navigation-menu/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js +1 -0
- package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +3 -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-menu/use-navigation-menu-handlers.js +4 -3
- package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menus/constants.js +2 -0
- package/build-module/components/sidebar-navigation-screen-navigation-menus/constants.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-page/index.js +2 -3
- package/build-module/components/sidebar-navigation-screen-page/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-page/status-label.js +1 -32
- package/build-module/components/sidebar-navigation-screen-page/status-label.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-pages/index.js +33 -25
- package/build-module/components/sidebar-navigation-screen-pages/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-pattern/index.js +8 -7
- package/build-module/components/sidebar-navigation-screen-pattern/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js +3 -2
- package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js +3 -2
- package/build-module/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js +11 -3
- package/build-module/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-pattern/use-pattern-details.js +4 -2
- package/build-module/components/sidebar-navigation-screen-pattern/use-pattern-details.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/index.js +76 -53
- package/build-module/components/sidebar-navigation-screen-patterns/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/use-my-patterns.js +9 -5
- package/build-module/components/sidebar-navigation-screen-patterns/use-my-patterns.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +10 -1
- package/build-module/components/sidebar-navigation-screen-patterns/use-pattern-categories.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +18 -9
- package/build-module/components/sidebar-navigation-screen-patterns/use-template-part-areas.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/use-theme-patterns.js +1 -1
- package/build-module/components/sidebar-navigation-screen-patterns/use-theme-patterns.js.map +1 -1
- package/build-module/components/site-hub/index.js +24 -11
- package/build-module/components/site-hub/index.js.map +1 -1
- package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js +7 -5
- 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-path-with-url.js +16 -12
- 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 +2 -1
- package/build-module/components/template-actions/index.js.map +1 -1
- package/build-module/components/template-actions/rename-menu-item.js +11 -8
- package/build-module/components/template-actions/rename-menu-item.js.map +1 -1
- package/build-module/components/use-edited-entity-record/index.js +3 -1
- package/build-module/components/use-edited-entity-record/index.js.map +1 -1
- package/build-module/hooks/commands/use-common-commands.js +74 -20
- package/build-module/hooks/commands/use-common-commands.js.map +1 -1
- package/build-module/hooks/push-changes-to-global-styles/index.js +57 -10
- package/build-module/hooks/push-changes-to-global-styles/index.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/normalize-record-key.js +12 -0
- package/build-module/utils/normalize-record-key.js.map +1 -0
- package/build-module/utils/use-activate-theme.js +1 -1
- package/build-module/utils/use-activate-theme.js.map +1 -1
- package/build-style/style-rtl.css +221 -63
- package/build-style/style.css +221 -63
- package/package.json +39 -40
- package/src/components/add-new-page/index.js +0 -3
- package/src/components/add-new-pattern/index.js +23 -12
- package/src/components/add-new-template/utils.js +9 -6
- package/src/components/block-editor/constants.js +5 -1
- package/src/components/block-editor/editor-canvas.js +1 -1
- package/src/components/block-editor/index.js +0 -4
- package/src/components/block-editor/use-site-editor-settings.js +99 -20
- package/src/components/canvas-spinner/style.scss +14 -0
- package/src/components/code-editor/index.js +51 -33
- package/src/components/create-pattern-modal/index.js +5 -2
- package/src/components/editor/index.js +2 -2
- package/src/components/header-edit-mode/document-actions/style.scss +4 -0
- package/src/components/header-edit-mode/index.js +29 -22
- package/src/components/layout/index.js +16 -2
- package/src/components/layout/style.scss +2 -1
- package/src/components/page-actions/index.js +2 -2
- package/src/components/page-actions/{delete-page-menu-item.js → trash-page-menu-item.js} +9 -22
- package/src/components/page-content-focus-manager/disable-non-page-content-blocks.js +12 -3
- package/src/components/page-patterns/duplicate-menu-item.js +196 -0
- package/src/components/page-patterns/grid-item.js +189 -133
- package/src/components/page-patterns/grid.js +3 -20
- package/src/components/page-patterns/header.js +69 -0
- package/src/components/page-patterns/index.js +6 -1
- package/src/components/page-patterns/pagination.js +80 -0
- package/src/components/page-patterns/patterns-list.js +160 -72
- package/src/components/page-patterns/rename-menu-item.js +115 -0
- package/src/components/page-patterns/style.scss +140 -30
- package/src/components/page-patterns/use-patterns.js +102 -172
- package/src/components/page-template-parts/add-new-template-part.js +57 -0
- package/src/components/page-template-parts/index.js +3 -22
- package/src/components/resizable-frame/index.js +102 -34
- package/src/components/resizable-frame/style.scss +9 -9
- package/src/components/save-panel/index.js +10 -4
- package/src/components/sidebar-edit-mode/page-panels/page-content.js +7 -5
- package/src/components/sidebar-edit-mode/page-panels/page-status.js +2 -5
- package/src/components/sidebar-navigation-item/style.scss +5 -12
- package/src/components/sidebar-navigation-screen/index.js +14 -7
- package/src/components/sidebar-navigation-screen/style.scss +14 -0
- package/src/components/sidebar-navigation-screen-main/index.js +44 -40
- package/src/components/sidebar-navigation-screen-main/template-part-hint.js +34 -0
- package/src/components/sidebar-navigation-screen-navigation-menu/index.js +4 -3
- package/src/components/sidebar-navigation-screen-navigation-menu/more-menu.js +1 -0
- package/src/components/sidebar-navigation-screen-navigation-menu/single-navigation-menu.js +1 -1
- package/src/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +15 -5
- package/src/components/sidebar-navigation-screen-navigation-menus/constants.js +2 -0
- package/src/components/sidebar-navigation-screen-page/index.js +3 -3
- package/src/components/sidebar-navigation-screen-page/status-label.js +1 -35
- package/src/components/sidebar-navigation-screen-pages/index.js +39 -29
- package/src/components/sidebar-navigation-screen-pattern/index.js +5 -2
- package/src/components/sidebar-navigation-screen-pattern/template-part-navigation-menu.js +2 -1
- package/src/components/sidebar-navigation-screen-pattern/template-part-navigation-menus.js +2 -1
- package/src/components/sidebar-navigation-screen-pattern/use-navigation-menu-content.js +12 -2
- package/src/components/sidebar-navigation-screen-pattern/use-pattern-details.js +5 -2
- package/src/components/sidebar-navigation-screen-patterns/index.js +103 -98
- package/src/components/sidebar-navigation-screen-patterns/style.scss +20 -0
- package/src/components/sidebar-navigation-screen-patterns/use-my-patterns.js +7 -6
- package/src/components/sidebar-navigation-screen-patterns/use-pattern-categories.js +9 -0
- package/src/components/sidebar-navigation-screen-patterns/use-template-part-areas.js +31 -9
- package/src/components/sidebar-navigation-screen-patterns/use-theme-patterns.js +2 -1
- package/src/components/site-hub/index.js +45 -28
- package/src/components/site-hub/style.scss +13 -0
- package/src/components/sync-state-with-url/use-init-edited-entity-from-url.js +8 -2
- package/src/components/sync-state-with-url/use-sync-path-with-url.js +73 -66
- package/src/components/template-actions/index.js +2 -1
- package/src/components/template-actions/rename-menu-item.js +17 -10
- package/src/components/use-edited-entity-record/index.js +6 -1
- package/src/hooks/commands/use-common-commands.js +56 -23
- package/src/hooks/push-changes-to-global-styles/index.js +63 -9
- package/src/store/private-actions.js +5 -1
- package/src/style.scss +10 -12
- package/src/utils/normalize-record-key.js +11 -0
- package/src/utils/use-activate-theme.js +1 -1
- package/build/components/code-editor/code-editor-text-area.js +0 -96
- package/build/components/code-editor/code-editor-text-area.js.map +0 -1
- package/build/components/keyboard-shortcuts/index.js +0 -148
- package/build/components/keyboard-shortcuts/index.js.map +0 -1
- package/build/components/page-actions/delete-page-menu-item.js.map +0 -1
- 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-module/components/code-editor/code-editor-text-area.js +0 -84
- package/build-module/components/code-editor/code-editor-text-area.js.map +0 -1
- package/build-module/components/keyboard-shortcuts/index.js +0 -132
- package/build-module/components/keyboard-shortcuts/index.js.map +0 -1
- package/build-module/components/page-actions/delete-page-menu-item.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/src/components/code-editor/code-editor-text-area.js +0 -84
- package/src/components/keyboard-shortcuts/index.js +0 -137
- package/src/components/page-content-focus-manager/constants.js +0 -5
package/build-style/style.css
CHANGED
|
@@ -906,13 +906,30 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
906
906
|
width: 100%;
|
|
907
907
|
height: 100%;
|
|
908
908
|
display: flex;
|
|
909
|
+
opacity: 0;
|
|
909
910
|
align-items: center;
|
|
910
911
|
justify-content: center;
|
|
912
|
+
animation: 0.5s ease 1s edit-site-canvas-spinner__fade-in-animation;
|
|
913
|
+
animation-fill-mode: forwards;
|
|
914
|
+
}
|
|
915
|
+
@media (prefers-reduced-motion: reduce) {
|
|
916
|
+
.edit-site-canvas-spinner {
|
|
917
|
+
animation-duration: 1ms;
|
|
918
|
+
animation-delay: 0s;
|
|
919
|
+
}
|
|
911
920
|
}
|
|
912
921
|
.edit-site-canvas-spinner circle {
|
|
913
922
|
stroke: rgba(0, 0, 0, 0.3);
|
|
914
923
|
}
|
|
915
924
|
|
|
925
|
+
@keyframes edit-site-canvas-spinner__fade-in-animation {
|
|
926
|
+
from {
|
|
927
|
+
opacity: 0;
|
|
928
|
+
}
|
|
929
|
+
to {
|
|
930
|
+
opacity: 1;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
916
933
|
.edit-site-code-editor {
|
|
917
934
|
position: relative;
|
|
918
935
|
width: 100%;
|
|
@@ -1487,6 +1504,9 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
1487
1504
|
overflow: hidden;
|
|
1488
1505
|
grid-column: 2/3;
|
|
1489
1506
|
}
|
|
1507
|
+
.edit-site-document-actions__title .block-editor-block-icon {
|
|
1508
|
+
min-width: 24px;
|
|
1509
|
+
}
|
|
1490
1510
|
.edit-site-document-actions__title h1 {
|
|
1491
1511
|
white-space: nowrap;
|
|
1492
1512
|
overflow: hidden;
|
|
@@ -1785,8 +1805,27 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1785
1805
|
}
|
|
1786
1806
|
|
|
1787
1807
|
.edit-site-patterns {
|
|
1788
|
-
|
|
1808
|
+
border-left: 1px solid #2f2f2f;
|
|
1809
|
+
background: none;
|
|
1789
1810
|
margin: 60px 0 0;
|
|
1811
|
+
border-radius: 0;
|
|
1812
|
+
padding: 0;
|
|
1813
|
+
overflow-x: auto;
|
|
1814
|
+
}
|
|
1815
|
+
.edit-site-patterns .edit-site-page-content {
|
|
1816
|
+
height: 100%;
|
|
1817
|
+
position: relative;
|
|
1818
|
+
padding: 0;
|
|
1819
|
+
display: flex;
|
|
1820
|
+
flex-flow: column;
|
|
1821
|
+
}
|
|
1822
|
+
.edit-site-patterns .components-base-control {
|
|
1823
|
+
width: 100%;
|
|
1824
|
+
}
|
|
1825
|
+
@media (min-width: 782px) {
|
|
1826
|
+
.edit-site-patterns .components-base-control {
|
|
1827
|
+
width: auto;
|
|
1828
|
+
}
|
|
1790
1829
|
}
|
|
1791
1830
|
.edit-site-patterns .components-text {
|
|
1792
1831
|
color: #949494;
|
|
@@ -1799,35 +1838,117 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1799
1838
|
margin: 0;
|
|
1800
1839
|
}
|
|
1801
1840
|
}
|
|
1841
|
+
.edit-site-patterns .edit-site-patterns__search-block {
|
|
1842
|
+
min-width: -moz-fit-content;
|
|
1843
|
+
min-width: fit-content;
|
|
1844
|
+
flex-grow: 1;
|
|
1845
|
+
}
|
|
1846
|
+
.edit-site-patterns .edit-site-patterns__search input[type=search] {
|
|
1847
|
+
height: 40px;
|
|
1848
|
+
background: #2f2f2f;
|
|
1849
|
+
color: #e0e0e0;
|
|
1850
|
+
}
|
|
1851
|
+
.edit-site-patterns .edit-site-patterns__search input[type=search]:focus {
|
|
1852
|
+
background: #2f2f2f;
|
|
1853
|
+
}
|
|
1854
|
+
.edit-site-patterns .edit-site-patterns__search svg {
|
|
1855
|
+
fill: #949494;
|
|
1856
|
+
}
|
|
1857
|
+
.edit-site-patterns .edit-site-patterns__sync-status-filter {
|
|
1858
|
+
background: #2f2f2f;
|
|
1859
|
+
border: none;
|
|
1860
|
+
height: 40px;
|
|
1861
|
+
min-width: max-content;
|
|
1862
|
+
width: 100%;
|
|
1863
|
+
max-width: 100%;
|
|
1864
|
+
}
|
|
1865
|
+
@media (min-width: 782px) {
|
|
1866
|
+
.edit-site-patterns .edit-site-patterns__sync-status-filter {
|
|
1867
|
+
width: 300px;
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
.edit-site-patterns .edit-site-patterns__sync-status-filter-option:active {
|
|
1871
|
+
background: #757575;
|
|
1872
|
+
color: #f0f0f0;
|
|
1873
|
+
}
|
|
1874
|
+
.edit-site-patterns .edit-site-patterns__grid-pagination {
|
|
1875
|
+
border-top: 1px solid #2f2f2f;
|
|
1876
|
+
background: #1e1e1e;
|
|
1877
|
+
padding: 24px 32px;
|
|
1878
|
+
position: sticky;
|
|
1879
|
+
bottom: 0;
|
|
1880
|
+
z-index: 2;
|
|
1881
|
+
}
|
|
1882
|
+
.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary {
|
|
1883
|
+
width: 32px;
|
|
1884
|
+
height: 32px;
|
|
1885
|
+
color: #f0f0f0;
|
|
1886
|
+
background-color: #2f2f2f;
|
|
1887
|
+
justify-content: center;
|
|
1888
|
+
}
|
|
1889
|
+
.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary:disabled {
|
|
1890
|
+
color: #949494;
|
|
1891
|
+
background: none;
|
|
1892
|
+
}
|
|
1893
|
+
.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary:hover:not(:disabled) {
|
|
1894
|
+
background-color: #757575;
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1897
|
+
.edit-site-patterns__header {
|
|
1898
|
+
position: sticky;
|
|
1899
|
+
top: 0;
|
|
1900
|
+
background: #1e1e1e;
|
|
1901
|
+
padding: 32px 32px 16px;
|
|
1902
|
+
z-index: 2;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
.edit-site-patterns__section {
|
|
1906
|
+
padding: 24px 32px;
|
|
1907
|
+
flex: 1;
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
.edit-site-patterns__section-header .screen-reader-shortcut:focus {
|
|
1911
|
+
top: 0;
|
|
1912
|
+
}
|
|
1802
1913
|
|
|
1803
1914
|
.edit-site-patterns__grid {
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1915
|
+
display: grid;
|
|
1916
|
+
grid-template-columns: 1fr;
|
|
1917
|
+
gap: 32px;
|
|
1918
|
+
margin-top: 0;
|
|
1919
|
+
margin-bottom: 0;
|
|
1807
1920
|
}
|
|
1808
1921
|
@media (min-width: 960px) {
|
|
1809
1922
|
.edit-site-patterns__grid {
|
|
1810
|
-
|
|
1923
|
+
grid-template-columns: 1fr 1fr;
|
|
1811
1924
|
}
|
|
1812
1925
|
}
|
|
1813
1926
|
.edit-site-patterns__grid .edit-site-patterns__pattern {
|
|
1814
1927
|
break-inside: avoid-column;
|
|
1815
1928
|
display: flex;
|
|
1816
1929
|
flex-direction: column;
|
|
1817
|
-
margin-bottom: 48px;
|
|
1818
1930
|
}
|
|
1819
1931
|
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview {
|
|
1820
|
-
|
|
1932
|
+
box-shadow: none;
|
|
1933
|
+
border: none;
|
|
1934
|
+
padding: 0;
|
|
1935
|
+
background-color: unset;
|
|
1936
|
+
box-sizing: border-box;
|
|
1937
|
+
border-radius: 4px;
|
|
1821
1938
|
cursor: pointer;
|
|
1822
1939
|
overflow: hidden;
|
|
1823
1940
|
}
|
|
1824
1941
|
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview:focus {
|
|
1825
|
-
box-shadow: inset 0 0 0
|
|
1942
|
+
box-shadow: inset 0 0 0 0 #fff, 0 0 0 2px var(--wp-admin-theme-color);
|
|
1826
1943
|
outline: 2px solid transparent;
|
|
1827
1944
|
}
|
|
1828
1945
|
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive {
|
|
1829
1946
|
cursor: default;
|
|
1830
1947
|
}
|
|
1948
|
+
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive:focus {
|
|
1949
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #2f2f2f;
|
|
1950
|
+
opacity: 0.8;
|
|
1951
|
+
}
|
|
1831
1952
|
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__footer,
|
|
1832
1953
|
.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__button {
|
|
1833
1954
|
color: #949494;
|
|
@@ -1844,24 +1965,24 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1844
1965
|
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1845
1966
|
}
|
|
1846
1967
|
.edit-site-patterns__grid .edit-site-patterns__preview {
|
|
1847
|
-
flex: 1;
|
|
1968
|
+
flex: 0 1 auto;
|
|
1848
1969
|
margin-bottom: 16px;
|
|
1849
1970
|
}
|
|
1850
1971
|
|
|
1851
|
-
.edit-site-
|
|
1852
|
-
|
|
1853
|
-
color: #e0e0e0;
|
|
1854
|
-
}
|
|
1855
|
-
.edit-site-patterns__search.edit-site-patterns__search input[type=search]:focus {
|
|
1856
|
-
background: #2f2f2f;
|
|
1857
|
-
}
|
|
1858
|
-
.edit-site-patterns__search svg {
|
|
1859
|
-
fill: #949494;
|
|
1972
|
+
.edit-site-patterns__load-more {
|
|
1973
|
+
align-self: center;
|
|
1860
1974
|
}
|
|
1861
1975
|
|
|
1862
1976
|
.edit-site-patterns__pattern-title {
|
|
1863
1977
|
color: #e0e0e0;
|
|
1864
1978
|
}
|
|
1979
|
+
.edit-site-patterns__pattern-title .is-link {
|
|
1980
|
+
text-decoration: none;
|
|
1981
|
+
color: #e0e0e0;
|
|
1982
|
+
}
|
|
1983
|
+
.edit-site-patterns__pattern-title .is-link:hover, .edit-site-patterns__pattern-title .is-link:focus {
|
|
1984
|
+
color: #fff;
|
|
1985
|
+
}
|
|
1865
1986
|
.edit-site-patterns__pattern-title .edit-site-patterns__pattern-icon {
|
|
1866
1987
|
border-radius: 4px;
|
|
1867
1988
|
background: var(--wp-block-synced-color);
|
|
@@ -1870,6 +1991,9 @@ body.is-fullscreen-mode .edit-site-list-header {
|
|
|
1870
1991
|
.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon {
|
|
1871
1992
|
display: inline-flex;
|
|
1872
1993
|
}
|
|
1994
|
+
.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon svg {
|
|
1995
|
+
fill: currentcolor;
|
|
1996
|
+
}
|
|
1873
1997
|
|
|
1874
1998
|
.edit-site-patterns__no-results {
|
|
1875
1999
|
color: #949494;
|
|
@@ -2601,6 +2725,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2601
2725
|
.edit-site-layout__sidebar {
|
|
2602
2726
|
z-index: 1;
|
|
2603
2727
|
width: 100vw;
|
|
2728
|
+
flex-shrink: 0;
|
|
2604
2729
|
}
|
|
2605
2730
|
@media (min-width: 782px) {
|
|
2606
2731
|
.edit-site-layout__sidebar {
|
|
@@ -2654,7 +2779,7 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2654
2779
|
justify-content: center;
|
|
2655
2780
|
align-items: center;
|
|
2656
2781
|
}
|
|
2657
|
-
.edit-site-layout__canvas
|
|
2782
|
+
.edit-site-layout__canvas.is-right-aligned {
|
|
2658
2783
|
justify-content: flex-end;
|
|
2659
2784
|
}
|
|
2660
2785
|
.edit-site-layout__canvas > div {
|
|
@@ -2910,21 +3035,15 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
2910
3035
|
color: #e0e0e0;
|
|
2911
3036
|
background: #2f2f2f;
|
|
2912
3037
|
}
|
|
3038
|
+
.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator, .edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator, .edit-site-sidebar-navigation-item.components-item[aria-current] .edit-site-sidebar-navigation-item__drilldown-indicator {
|
|
3039
|
+
fill: #e0e0e0;
|
|
3040
|
+
}
|
|
2913
3041
|
.edit-site-sidebar-navigation-item.components-item[aria-current] {
|
|
2914
3042
|
background: var(--wp-admin-theme-color);
|
|
2915
3043
|
color: #fff;
|
|
2916
3044
|
}
|
|
2917
3045
|
.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator {
|
|
2918
|
-
fill: #
|
|
2919
|
-
}
|
|
2920
|
-
.edit-site-sidebar-navigation-item.components-item:is(a) {
|
|
2921
|
-
text-decoration: none;
|
|
2922
|
-
display: flex;
|
|
2923
|
-
align-items: center;
|
|
2924
|
-
}
|
|
2925
|
-
.edit-site-sidebar-navigation-item.components-item:is(a):focus {
|
|
2926
|
-
box-shadow: none;
|
|
2927
|
-
outline: none;
|
|
3046
|
+
fill: #949494;
|
|
2928
3047
|
}
|
|
2929
3048
|
.edit-site-sidebar-navigation-item.components-item.with-suffix {
|
|
2930
3049
|
padding-right: 16px;
|
|
@@ -3024,6 +3143,20 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3024
3143
|
border-top: 1px solid #2f2f2f;
|
|
3025
3144
|
}
|
|
3026
3145
|
|
|
3146
|
+
.edit-site-sidebar__notice {
|
|
3147
|
+
background: #2f2f2f;
|
|
3148
|
+
color: #ddd;
|
|
3149
|
+
margin: 24px 0;
|
|
3150
|
+
}
|
|
3151
|
+
.edit-site-sidebar__notice.is-dismissible {
|
|
3152
|
+
padding-right: 8px;
|
|
3153
|
+
}
|
|
3154
|
+
.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,
|
|
3155
|
+
.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,
|
|
3156
|
+
.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover {
|
|
3157
|
+
color: #f0f0f0;
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3027
3160
|
/* In general style overrides are discouraged.
|
|
3028
3161
|
* This is a temporary solution to override the InputControl component's styles.
|
|
3029
3162
|
* The `Theme` component will potentially be the more appropriate approach
|
|
@@ -3188,6 +3321,23 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3188
3321
|
.edit-site-sidebar-navigation-screen-patterns__group {
|
|
3189
3322
|
margin-bottom: 24px;
|
|
3190
3323
|
}
|
|
3324
|
+
.edit-site-sidebar-navigation-screen-patterns__group:last-of-type {
|
|
3325
|
+
border-bottom: 0;
|
|
3326
|
+
padding-bottom: 0;
|
|
3327
|
+
margin-bottom: 0;
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3330
|
+
.edit-site-sidebar-navigation-screen-patterns__group-header {
|
|
3331
|
+
margin-top: 16px;
|
|
3332
|
+
}
|
|
3333
|
+
.edit-site-sidebar-navigation-screen-patterns__group-header p {
|
|
3334
|
+
color: #949494;
|
|
3335
|
+
}
|
|
3336
|
+
.edit-site-sidebar-navigation-screen-patterns__group-header h2 {
|
|
3337
|
+
font-size: 11px;
|
|
3338
|
+
font-weight: 500;
|
|
3339
|
+
text-transform: uppercase;
|
|
3340
|
+
}
|
|
3191
3341
|
|
|
3192
3342
|
.edit-site-sidebar-navigation-screen-template__added-by-description {
|
|
3193
3343
|
display: flex;
|
|
@@ -3244,6 +3394,14 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3244
3394
|
.edit-site-site-hub .edit-site-site-hub__container {
|
|
3245
3395
|
gap: 0;
|
|
3246
3396
|
}
|
|
3397
|
+
.edit-site-site-hub .edit-site-site-hub__site-title,
|
|
3398
|
+
.edit-site-site-hub .edit-site-site-hub_toggle-command-center {
|
|
3399
|
+
transition: opacity ease 0.1s;
|
|
3400
|
+
}
|
|
3401
|
+
.edit-site-site-hub .edit-site-site-hub__site-title.is-transparent,
|
|
3402
|
+
.edit-site-site-hub .edit-site-site-hub_toggle-command-center.is-transparent {
|
|
3403
|
+
opacity: 0 !important;
|
|
3404
|
+
}
|
|
3247
3405
|
.edit-site-site-hub .edit-site-site-hub__site-view-link {
|
|
3248
3406
|
flex-grow: 0;
|
|
3249
3407
|
}
|
|
@@ -3275,6 +3433,9 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3275
3433
|
flex-shrink: 0;
|
|
3276
3434
|
background: #1e1e1e;
|
|
3277
3435
|
}
|
|
3436
|
+
.edit-site-site-hub__view-mode-toggle-container.has-transparent-background {
|
|
3437
|
+
background: transparent;
|
|
3438
|
+
}
|
|
3278
3439
|
|
|
3279
3440
|
.edit-site-site-hub__text-content {
|
|
3280
3441
|
overflow: hidden;
|
|
@@ -3465,11 +3626,13 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
3465
3626
|
.edit-site-resizable-frame__handle {
|
|
3466
3627
|
align-items: center;
|
|
3467
3628
|
background-color: rgba(117, 117, 117, 0.4);
|
|
3629
|
+
border: 0;
|
|
3468
3630
|
border-radius: 4px;
|
|
3469
3631
|
cursor: col-resize;
|
|
3470
3632
|
display: flex;
|
|
3471
3633
|
height: 64px;
|
|
3472
3634
|
justify-content: flex-end;
|
|
3635
|
+
padding: 0;
|
|
3473
3636
|
position: absolute;
|
|
3474
3637
|
top: calc(50% - 32px);
|
|
3475
3638
|
width: 4px;
|
|
@@ -3489,15 +3652,11 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
3489
3652
|
right: 100%;
|
|
3490
3653
|
width: 32px;
|
|
3491
3654
|
}
|
|
3492
|
-
.edit-site-resizable-frame__handle:
|
|
3493
|
-
|
|
3655
|
+
.edit-site-resizable-frame__handle:focus-visible {
|
|
3656
|
+
outline: 2px solid transparent;
|
|
3494
3657
|
}
|
|
3495
|
-
.edit-site-resizable-frame__handle .edit-site-resizable-frame__handle-
|
|
3496
|
-
background: var(--wp-admin-theme-color);
|
|
3497
|
-
border-radius: 2px;
|
|
3498
|
-
color: #fff;
|
|
3499
|
-
margin-right: 8px;
|
|
3500
|
-
padding: 4px 8px;
|
|
3658
|
+
.edit-site-resizable-frame__handle:hover, .edit-site-resizable-frame__handle:focus, .edit-site-resizable-frame__handle.is-resizing {
|
|
3659
|
+
background-color: var(--wp-admin-theme-color);
|
|
3501
3660
|
}
|
|
3502
3661
|
|
|
3503
3662
|
.edit-site-push-changes-to-global-styles-control .components-button {
|
|
@@ -3505,59 +3664,54 @@ body:has(.edit-site-resizable-frame__inner.is-resizing) {
|
|
|
3505
3664
|
width: 100%;
|
|
3506
3665
|
}
|
|
3507
3666
|
|
|
3508
|
-
|
|
3667
|
+
body.js #wpadminbar {
|
|
3509
3668
|
display: none;
|
|
3510
3669
|
}
|
|
3511
3670
|
|
|
3512
|
-
|
|
3671
|
+
body.js #wpbody {
|
|
3513
3672
|
padding-top: 0;
|
|
3514
3673
|
}
|
|
3515
3674
|
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
padding-top: 0;
|
|
3519
|
-
}
|
|
3520
|
-
|
|
3521
|
-
body.appearance_page_gutenberg-template-parts,
|
|
3522
|
-
body.site-editor-php {
|
|
3675
|
+
body.js.appearance_page_gutenberg-template-parts,
|
|
3676
|
+
body.js.site-editor-php {
|
|
3523
3677
|
background: #fff;
|
|
3524
3678
|
/* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
|
|
3525
3679
|
Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
|
|
3526
3680
|
}
|
|
3527
|
-
body.appearance_page_gutenberg-template-parts #wpcontent,
|
|
3528
|
-
body.site-editor-php #wpcontent {
|
|
3681
|
+
body.js.appearance_page_gutenberg-template-parts #wpcontent,
|
|
3682
|
+
body.js.site-editor-php #wpcontent {
|
|
3529
3683
|
padding-left: 0;
|
|
3530
3684
|
}
|
|
3531
|
-
body.appearance_page_gutenberg-template-parts #wpbody-content,
|
|
3532
|
-
body.site-editor-php #wpbody-content {
|
|
3685
|
+
body.js.appearance_page_gutenberg-template-parts #wpbody-content,
|
|
3686
|
+
body.js.site-editor-php #wpbody-content {
|
|
3533
3687
|
padding-bottom: 0;
|
|
3534
3688
|
}
|
|
3535
|
-
body.appearance_page_gutenberg-template-parts #wpbody-content > div:not(.edit-site):not(#screen-meta),
|
|
3536
|
-
body.site-editor-php #wpbody-content > div:not(.edit-site):not(#screen-meta) {
|
|
3689
|
+
body.js.appearance_page_gutenberg-template-parts #wpbody-content > div:not(.edit-site):not(#screen-meta),
|
|
3690
|
+
body.js.site-editor-php #wpbody-content > div:not(.edit-site):not(#screen-meta) {
|
|
3537
3691
|
display: none;
|
|
3538
3692
|
}
|
|
3539
|
-
body.appearance_page_gutenberg-template-parts #wpfooter,
|
|
3540
|
-
body.site-editor-php #wpfooter {
|
|
3693
|
+
body.js.appearance_page_gutenberg-template-parts #wpfooter,
|
|
3694
|
+
body.js.site-editor-php #wpfooter {
|
|
3541
3695
|
display: none;
|
|
3542
3696
|
}
|
|
3543
|
-
body.appearance_page_gutenberg-template-parts .a11y-speak-region,
|
|
3544
|
-
body.site-editor-php .a11y-speak-region {
|
|
3697
|
+
body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,
|
|
3698
|
+
body.js.site-editor-php .a11y-speak-region {
|
|
3545
3699
|
left: -1px;
|
|
3546
3700
|
top: -1px;
|
|
3547
3701
|
}
|
|
3548
|
-
body.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu::after,
|
|
3549
|
-
body.appearance_page_gutenberg-template-parts ul#adminmenu > li.current > a.current::after,
|
|
3550
|
-
body.site-editor-php ul#adminmenu a.wp-has-current-submenu::after,
|
|
3551
|
-
body.site-editor-php ul#adminmenu > li.current > a.current::after {
|
|
3702
|
+
body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu::after,
|
|
3703
|
+
body.js.appearance_page_gutenberg-template-parts ul#adminmenu > li.current > a.current::after,
|
|
3704
|
+
body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu::after,
|
|
3705
|
+
body.js.site-editor-php ul#adminmenu > li.current > a.current::after {
|
|
3552
3706
|
border-right-color: #fff;
|
|
3553
3707
|
}
|
|
3554
|
-
body.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,
|
|
3555
|
-
body.site-editor-php .media-frame select.attachment-filters:last-of-type {
|
|
3708
|
+
body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,
|
|
3709
|
+
body.js.site-editor-php .media-frame select.attachment-filters:last-of-type {
|
|
3556
3710
|
width: auto;
|
|
3557
3711
|
max-width: 100%;
|
|
3558
3712
|
}
|
|
3559
3713
|
|
|
3560
|
-
body.site-editor-php {
|
|
3714
|
+
body.js.site-editor-php {
|
|
3561
3715
|
background: #1e1e1e;
|
|
3562
3716
|
}
|
|
3563
3717
|
|
|
@@ -3587,6 +3741,10 @@ body.site-editor-php {
|
|
|
3587
3741
|
top: 0;
|
|
3588
3742
|
}
|
|
3589
3743
|
}
|
|
3744
|
+
.no-js .edit-site {
|
|
3745
|
+
min-height: 0;
|
|
3746
|
+
position: static;
|
|
3747
|
+
}
|
|
3590
3748
|
.edit-site .interface-interface-skeleton {
|
|
3591
3749
|
top: 0;
|
|
3592
3750
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.15.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,43 +27,43 @@
|
|
|
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": "^12.
|
|
33
|
-
"@wordpress/block-library": "^8.
|
|
34
|
-
"@wordpress/blocks": "^12.
|
|
35
|
-
"@wordpress/commands": "^0.
|
|
36
|
-
"@wordpress/components": "^25.
|
|
37
|
-
"@wordpress/compose": "^6.
|
|
38
|
-
"@wordpress/core-commands": "^0.
|
|
39
|
-
"@wordpress/core-data": "^6.
|
|
40
|
-
"@wordpress/data": "^9.
|
|
41
|
-
"@wordpress/date": "^4.
|
|
42
|
-
"@wordpress/deprecated": "^3.
|
|
43
|
-
"@wordpress/dom": "^3.
|
|
44
|
-
"@wordpress/editor": "^13.
|
|
45
|
-
"@wordpress/element": "^5.
|
|
46
|
-
"@wordpress/escape-html": "^2.
|
|
47
|
-
"@wordpress/hooks": "^3.
|
|
48
|
-
"@wordpress/html-entities": "^3.
|
|
49
|
-
"@wordpress/i18n": "^4.
|
|
50
|
-
"@wordpress/icons": "^9.
|
|
51
|
-
"@wordpress/interface": "^5.
|
|
52
|
-
"@wordpress/keyboard-shortcuts": "^4.
|
|
53
|
-
"@wordpress/keycodes": "^3.
|
|
54
|
-
"@wordpress/media-utils": "^4.
|
|
55
|
-
"@wordpress/notices": "^4.
|
|
56
|
-
"@wordpress/plugins": "^6.
|
|
57
|
-
"@wordpress/preferences": "^3.
|
|
58
|
-
"@wordpress/primitives": "^3.
|
|
59
|
-
"@wordpress/private-apis": "^0.
|
|
60
|
-
"@wordpress/reusable-blocks": "^4.
|
|
61
|
-
"@wordpress/router": "^0.
|
|
62
|
-
"@wordpress/style-engine": "^1.
|
|
63
|
-
"@wordpress/url": "^3.
|
|
64
|
-
"@wordpress/viewport": "^5.
|
|
65
|
-
"@wordpress/widgets": "^3.
|
|
66
|
-
"@wordpress/wordcount": "^3.
|
|
30
|
+
"@wordpress/a11y": "^3.38.0",
|
|
31
|
+
"@wordpress/api-fetch": "^6.35.0",
|
|
32
|
+
"@wordpress/block-editor": "^12.6.0",
|
|
33
|
+
"@wordpress/block-library": "^8.15.0",
|
|
34
|
+
"@wordpress/blocks": "^12.15.0",
|
|
35
|
+
"@wordpress/commands": "^0.9.0",
|
|
36
|
+
"@wordpress/components": "^25.4.0",
|
|
37
|
+
"@wordpress/compose": "^6.15.0",
|
|
38
|
+
"@wordpress/core-commands": "^0.7.0",
|
|
39
|
+
"@wordpress/core-data": "^6.15.0",
|
|
40
|
+
"@wordpress/data": "^9.8.0",
|
|
41
|
+
"@wordpress/date": "^4.38.0",
|
|
42
|
+
"@wordpress/deprecated": "^3.38.0",
|
|
43
|
+
"@wordpress/dom": "^3.38.0",
|
|
44
|
+
"@wordpress/editor": "^13.15.0",
|
|
45
|
+
"@wordpress/element": "^5.15.0",
|
|
46
|
+
"@wordpress/escape-html": "^2.38.0",
|
|
47
|
+
"@wordpress/hooks": "^3.38.0",
|
|
48
|
+
"@wordpress/html-entities": "^3.38.0",
|
|
49
|
+
"@wordpress/i18n": "^4.38.0",
|
|
50
|
+
"@wordpress/icons": "^9.29.0",
|
|
51
|
+
"@wordpress/interface": "^5.15.0",
|
|
52
|
+
"@wordpress/keyboard-shortcuts": "^4.15.0",
|
|
53
|
+
"@wordpress/keycodes": "^3.38.0",
|
|
54
|
+
"@wordpress/media-utils": "^4.29.0",
|
|
55
|
+
"@wordpress/notices": "^4.6.0",
|
|
56
|
+
"@wordpress/plugins": "^6.6.0",
|
|
57
|
+
"@wordpress/preferences": "^3.15.0",
|
|
58
|
+
"@wordpress/primitives": "^3.36.0",
|
|
59
|
+
"@wordpress/private-apis": "^0.20.0",
|
|
60
|
+
"@wordpress/reusable-blocks": "^4.15.0",
|
|
61
|
+
"@wordpress/router": "^0.7.0",
|
|
62
|
+
"@wordpress/style-engine": "^1.21.0",
|
|
63
|
+
"@wordpress/url": "^3.39.0",
|
|
64
|
+
"@wordpress/viewport": "^5.15.0",
|
|
65
|
+
"@wordpress/widgets": "^3.15.0",
|
|
66
|
+
"@wordpress/wordcount": "^3.38.0",
|
|
67
67
|
"change-case": "^4.1.2",
|
|
68
68
|
"classnames": "^2.3.1",
|
|
69
69
|
"colord": "^2.9.2",
|
|
@@ -71,7 +71,6 @@
|
|
|
71
71
|
"downloadjs": "^1.4.7",
|
|
72
72
|
"fast-deep-equal": "^3.1.3",
|
|
73
73
|
"is-plain-object": "^5.0.0",
|
|
74
|
-
"lodash": "^4.17.21",
|
|
75
74
|
"memize": "^2.1.0",
|
|
76
75
|
"react-autosize-textarea": "^7.1.0",
|
|
77
76
|
"rememo": "^4.0.2",
|
|
@@ -84,5 +83,5 @@
|
|
|
84
83
|
"publishConfig": {
|
|
85
84
|
"access": "public"
|
|
86
85
|
},
|
|
87
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "6f14d11ed4cb59df110a28ebaa23ecba95eb673a"
|
|
88
87
|
}
|
|
@@ -72,9 +72,6 @@ export default function AddNewPageModal( { onSave, onClose } ) {
|
|
|
72
72
|
<form onSubmit={ createPage }>
|
|
73
73
|
<VStack spacing={ 3 }>
|
|
74
74
|
<TextControl
|
|
75
|
-
/* eslint-disable jsx-a11y/no-autofocus */
|
|
76
|
-
autoFocus
|
|
77
|
-
/* eslint-enable jsx-a11y/no-autofocus */
|
|
78
75
|
label={ __( 'Page title' ) }
|
|
79
76
|
onChange={ setTitle }
|
|
80
77
|
placeholder={ __( 'No title' ) }
|
|
@@ -5,6 +5,7 @@ import { DropdownMenu } from '@wordpress/components';
|
|
|
5
5
|
import { useState } from '@wordpress/element';
|
|
6
6
|
import { __ } from '@wordpress/i18n';
|
|
7
7
|
import { plus, symbol, symbolFilled } from '@wordpress/icons';
|
|
8
|
+
import { useSelect } from '@wordpress/data';
|
|
8
9
|
import { privateApis as routerPrivateApis } from '@wordpress/router';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -14,6 +15,7 @@ import CreatePatternModal from '../create-pattern-modal';
|
|
|
14
15
|
import CreateTemplatePartModal from '../create-template-part-modal';
|
|
15
16
|
import SidebarButton from '../sidebar-button';
|
|
16
17
|
import { unlock } from '../../lock-unlock';
|
|
18
|
+
import { store as editSiteStore } from '../../store';
|
|
17
19
|
|
|
18
20
|
const { useHistory } = unlock( routerPrivateApis );
|
|
19
21
|
|
|
@@ -22,6 +24,10 @@ export default function AddNewPattern() {
|
|
|
22
24
|
const [ showPatternModal, setShowPatternModal ] = useState( false );
|
|
23
25
|
const [ showTemplatePartModal, setShowTemplatePartModal ] =
|
|
24
26
|
useState( false );
|
|
27
|
+
const isTemplatePartsMode = useSelect( ( select ) => {
|
|
28
|
+
const settings = select( editSiteStore ).getSettings();
|
|
29
|
+
return !! settings.supportsTemplatePartsMode;
|
|
30
|
+
}, [] );
|
|
25
31
|
|
|
26
32
|
function handleCreatePattern( { pattern, categoryId } ) {
|
|
27
33
|
setShowPatternModal( false );
|
|
@@ -51,21 +57,26 @@ export default function AddNewPattern() {
|
|
|
51
57
|
setShowTemplatePartModal( false );
|
|
52
58
|
}
|
|
53
59
|
|
|
60
|
+
const controls = [
|
|
61
|
+
{
|
|
62
|
+
icon: symbol,
|
|
63
|
+
onClick: () => setShowPatternModal( true ),
|
|
64
|
+
title: __( 'Create pattern' ),
|
|
65
|
+
},
|
|
66
|
+
];
|
|
67
|
+
|
|
68
|
+
if ( ! isTemplatePartsMode ) {
|
|
69
|
+
controls.push( {
|
|
70
|
+
icon: symbolFilled,
|
|
71
|
+
onClick: () => setShowTemplatePartModal( true ),
|
|
72
|
+
title: __( 'Create template part' ),
|
|
73
|
+
} );
|
|
74
|
+
}
|
|
75
|
+
|
|
54
76
|
return (
|
|
55
77
|
<>
|
|
56
78
|
<DropdownMenu
|
|
57
|
-
controls={
|
|
58
|
-
{
|
|
59
|
-
icon: symbolFilled,
|
|
60
|
-
onClick: () => setShowTemplatePartModal( true ),
|
|
61
|
-
title: __( 'Create template part' ),
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
icon: symbol,
|
|
65
|
-
onClick: () => setShowPatternModal( true ),
|
|
66
|
-
title: __( 'Create pattern' ),
|
|
67
|
-
},
|
|
68
|
-
] }
|
|
79
|
+
controls={ controls }
|
|
69
80
|
toggleProps={ {
|
|
70
81
|
as: SidebarButton,
|
|
71
82
|
} }
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { get } from 'lodash';
|
|
5
|
-
|
|
6
1
|
/**
|
|
7
2
|
* WordPress dependencies
|
|
8
3
|
*/
|
|
@@ -20,6 +15,14 @@ import { blockMeta, post, archive } from '@wordpress/icons';
|
|
|
20
15
|
* @property {string} name The entity's name.
|
|
21
16
|
*/
|
|
22
17
|
|
|
18
|
+
const getValueFromObjectPath = ( object, path ) => {
|
|
19
|
+
let value = object;
|
|
20
|
+
path.split( '.' ).forEach( ( fieldName ) => {
|
|
21
|
+
value = value?.[ fieldName ];
|
|
22
|
+
} );
|
|
23
|
+
return value;
|
|
24
|
+
};
|
|
25
|
+
|
|
23
26
|
/**
|
|
24
27
|
* Helper util to map records to add a `name` prop from a
|
|
25
28
|
* provided path, in order to handle all entities in the same
|
|
@@ -32,7 +35,7 @@ import { blockMeta, post, archive } from '@wordpress/icons';
|
|
|
32
35
|
export const mapToIHasNameAndId = ( entities, path ) => {
|
|
33
36
|
return ( entities || [] ).map( ( entity ) => ( {
|
|
34
37
|
...entity,
|
|
35
|
-
name: decodeEntities(
|
|
38
|
+
name: decodeEntities( getValueFromObjectPath( entity, path ) ),
|
|
36
39
|
} ) );
|
|
37
40
|
};
|
|
38
41
|
|