@wordpress/edit-site 5.30.0 → 5.31.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/actions/index.js +2 -4
- package/build/components/actions/index.js.map +1 -1
- package/build/components/block-editor/editor-canvas.js +16 -3
- package/build/components/block-editor/editor-canvas.js.map +1 -1
- package/build/components/block-editor/use-site-editor-settings.js +1 -1
- package/build/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build/components/global-styles/color-palette-panel.js +0 -9
- package/build/components/global-styles/color-palette-panel.js.map +1 -1
- package/build/components/global-styles/font-library-modal/context.js +15 -8
- package/build/components/global-styles/font-library-modal/context.js.map +1 -1
- package/build/components/global-styles/font-library-modal/font-collection.js +4 -3
- package/build/components/global-styles/font-library-modal/font-collection.js.map +1 -1
- package/build/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js +3 -2
- package/build/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js.map +1 -1
- package/build/components/global-styles/font-library-modal/installed-fonts.js +1 -1
- package/build/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
- package/build/components/global-styles/font-library-modal/upload-fonts.js +44 -10
- package/build/components/global-styles/font-library-modal/upload-fonts.js.map +1 -1
- package/build/components/global-styles/font-library-modal/utils/index.js +2 -2
- package/build/components/global-styles/font-library-modal/utils/index.js.map +1 -1
- package/build/components/global-styles/font-library-modal/utils/preview-styles.js +3 -0
- package/build/components/global-styles/font-library-modal/utils/preview-styles.js.map +1 -1
- package/build/components/global-styles/header.js +1 -1
- package/build/components/global-styles/header.js.map +1 -1
- package/build/components/global-styles/hooks.js +50 -1
- package/build/components/global-styles/hooks.js.map +1 -1
- package/build/components/global-styles/preview-iframe.js +0 -1
- package/build/components/global-styles/preview-iframe.js.map +1 -1
- package/build/components/global-styles/preview-styles.js +2 -2
- package/build/components/global-styles/preview-styles.js.map +1 -1
- package/build/components/global-styles/screen-colors.js +2 -9
- package/build/components/global-styles/screen-colors.js.map +1 -1
- package/build/components/global-styles/screen-typography.js +1 -6
- package/build/components/global-styles/screen-typography.js.map +1 -1
- package/build/components/global-styles/typography-elements.js +3 -1
- package/build/components/global-styles/typography-elements.js.map +1 -1
- package/build/components/global-styles/{preview-typography.js → typography-example.js} +4 -2
- package/build/components/global-styles/typography-example.js.map +1 -0
- package/build/components/global-styles/typography-preview.js +3 -1
- package/build/components/global-styles/typography-preview.js.map +1 -1
- package/build/components/global-styles/utils.js +1 -1
- package/build/components/global-styles/utils.js.map +1 -1
- package/build/components/global-styles/variations/variations-color.js +8 -9
- package/build/components/global-styles/variations/variations-color.js.map +1 -1
- package/build/components/global-styles/variations/variations-typography.js +27 -37
- package/build/components/global-styles/variations/variations-typography.js.map +1 -1
- package/build/components/header-edit-mode/index.js +2 -1
- package/build/components/header-edit-mode/index.js.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/config.js +6 -0
- package/build/components/keyboard-shortcut-help-modal/config.js.map +1 -1
- package/build/components/keyboard-shortcuts/global.js +17 -3
- package/build/components/keyboard-shortcuts/global.js.map +1 -1
- package/build/components/layout/router.js +2 -5
- package/build/components/layout/router.js.map +1 -1
- package/build/components/page-pages/index.js +6 -11
- package/build/components/page-pages/index.js.map +1 -1
- package/build/components/page-patterns/delete-category-menu-item.js +6 -1
- package/build/components/page-patterns/delete-category-menu-item.js.map +1 -1
- package/build/components/page-patterns/index.js +1 -4
- package/build/components/page-patterns/index.js.map +1 -1
- package/build/components/page-patterns/use-patterns.js +9 -9
- package/build/components/page-patterns/use-patterns.js.map +1 -1
- package/build/components/page-templates-template-parts/index.js +11 -16
- package/build/components/page-templates-template-parts/index.js.map +1 -1
- package/build/components/save-panel/index.js +14 -9
- package/build/components/save-panel/index.js.map +1 -1
- package/build/components/sidebar/index.js +2 -3
- package/build/components/sidebar/index.js.map +1 -1
- package/build/components/sidebar-dataviews/custom-dataviews-list.js +2 -2
- package/build/components/sidebar-dataviews/custom-dataviews-list.js.map +1 -1
- package/build/components/sidebar-dataviews/dataview-item.js +2 -2
- package/build/components/sidebar-dataviews/dataview-item.js.map +1 -1
- package/build/components/sidebar-dataviews/default-views.js +2 -2
- package/build/components/sidebar-dataviews/default-views.js.map +1 -1
- package/build/components/sidebar-dataviews/index.js +4 -3
- package/build/components/sidebar-dataviews/index.js.map +1 -1
- package/build/components/sidebar-edit-mode/page-panels/index.js +2 -2
- package/build/components/sidebar-edit-mode/page-panels/index.js.map +1 -1
- package/build/components/sidebar-edit-mode/page-panels/page-summary.js +3 -1
- package/build/components/sidebar-edit-mode/page-panels/page-summary.js.map +1 -1
- package/build/components/sidebar-edit-mode/sidebar-card/index.js +12 -6
- package/build/components/sidebar-edit-mode/sidebar-card/index.js.map +1 -1
- package/build/components/sidebar-edit-mode/template-panel/index.js +23 -3
- package/build/components/sidebar-edit-mode/template-panel/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-global-styles/index.js +13 -1
- package/build/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/{delete-modal.js → delete-confirm-dialog.js} +4 -5
- package/build/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js.map +1 -0
- package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js +6 -6
- package/build/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +1 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
- package/build/components/sidebar-navigation-screen-template/index.js +5 -1
- package/build/components/sidebar-navigation-screen-template/index.js.map +1 -1
- package/build/components/sidebar-navigation-screen-templates-browse/content.js +2 -2
- package/build/components/sidebar-navigation-screen-templates-browse/content.js.map +1 -1
- package/build/components/sync-state-with-url/use-init-edited-entity-from-url.js +1 -1
- 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 +1 -11
- package/build/components/sync-state-with-url/use-sync-path-with-url.js.map +1 -1
- package/build/components/template-actions/index.js +44 -27
- package/build/components/template-actions/index.js.map +1 -1
- package/build/components/welcome-guide/editor.js +11 -2
- package/build/components/welcome-guide/editor.js.map +1 -1
- package/build/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +15 -2
- package/build/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js.map +1 -1
- package/build/utils/constants.js +5 -3
- package/build/utils/constants.js.map +1 -1
- package/build/utils/get-is-list-page.js +1 -1
- package/build/utils/get-is-list-page.js.map +1 -1
- package/build/utils/math.js +98 -0
- package/build/utils/math.js.map +1 -0
- package/build-module/components/actions/index.js +3 -5
- package/build-module/components/actions/index.js.map +1 -1
- package/build-module/components/block-editor/editor-canvas.js +16 -3
- package/build-module/components/block-editor/editor-canvas.js.map +1 -1
- package/build-module/components/block-editor/use-site-editor-settings.js +1 -1
- package/build-module/components/block-editor/use-site-editor-settings.js.map +1 -1
- package/build-module/components/global-styles/color-palette-panel.js +0 -8
- package/build-module/components/global-styles/color-palette-panel.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/context.js +16 -9
- package/build-module/components/global-styles/font-library-modal/context.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/font-collection.js +4 -3
- package/build-module/components/global-styles/font-library-modal/font-collection.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js +4 -3
- package/build-module/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/installed-fonts.js +1 -1
- package/build-module/components/global-styles/font-library-modal/installed-fonts.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/upload-fonts.js +44 -10
- package/build-module/components/global-styles/font-library-modal/upload-fonts.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/utils/index.js +2 -2
- package/build-module/components/global-styles/font-library-modal/utils/index.js.map +1 -1
- package/build-module/components/global-styles/font-library-modal/utils/preview-styles.js +3 -0
- package/build-module/components/global-styles/font-library-modal/utils/preview-styles.js.map +1 -1
- package/build-module/components/global-styles/header.js +1 -1
- package/build-module/components/global-styles/header.js.map +1 -1
- package/build-module/components/global-styles/hooks.js +48 -1
- package/build-module/components/global-styles/hooks.js.map +1 -1
- package/build-module/components/global-styles/preview-iframe.js +0 -1
- package/build-module/components/global-styles/preview-iframe.js.map +1 -1
- package/build-module/components/global-styles/preview-styles.js +2 -2
- package/build-module/components/global-styles/preview-styles.js.map +1 -1
- package/build-module/components/global-styles/screen-colors.js +2 -9
- package/build-module/components/global-styles/screen-colors.js.map +1 -1
- package/build-module/components/global-styles/screen-typography.js +1 -6
- package/build-module/components/global-styles/screen-typography.js.map +1 -1
- package/build-module/components/global-styles/typography-elements.js +3 -1
- package/build-module/components/global-styles/typography-elements.js.map +1 -1
- package/build-module/components/global-styles/{preview-typography.js → typography-example.js} +4 -2
- package/build-module/components/global-styles/typography-example.js.map +1 -0
- package/build-module/components/global-styles/typography-preview.js +3 -1
- package/build-module/components/global-styles/typography-preview.js.map +1 -1
- package/build-module/components/global-styles/utils.js +1 -1
- package/build-module/components/global-styles/utils.js.map +1 -1
- package/build-module/components/global-styles/variations/variations-color.js +8 -9
- package/build-module/components/global-styles/variations/variations-color.js.map +1 -1
- package/build-module/components/global-styles/variations/variations-typography.js +28 -38
- package/build-module/components/global-styles/variations/variations-typography.js.map +1 -1
- package/build-module/components/header-edit-mode/index.js +2 -1
- package/build-module/components/header-edit-mode/index.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/config.js +6 -0
- package/build-module/components/keyboard-shortcut-help-modal/config.js.map +1 -1
- package/build-module/components/keyboard-shortcuts/global.js +17 -3
- package/build-module/components/keyboard-shortcuts/global.js.map +1 -1
- package/build-module/components/layout/router.js +2 -5
- package/build-module/components/layout/router.js.map +1 -1
- package/build-module/components/page-pages/index.js +7 -12
- package/build-module/components/page-pages/index.js.map +1 -1
- package/build-module/components/page-patterns/delete-category-menu-item.js +6 -1
- package/build-module/components/page-patterns/delete-category-menu-item.js.map +1 -1
- package/build-module/components/page-patterns/index.js +2 -5
- package/build-module/components/page-patterns/index.js.map +1 -1
- package/build-module/components/page-patterns/use-patterns.js +9 -9
- package/build-module/components/page-patterns/use-patterns.js.map +1 -1
- package/build-module/components/page-templates-template-parts/index.js +12 -17
- package/build-module/components/page-templates-template-parts/index.js.map +1 -1
- package/build-module/components/save-panel/index.js +14 -9
- package/build-module/components/save-panel/index.js.map +1 -1
- package/build-module/components/sidebar/index.js +2 -3
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/sidebar-dataviews/custom-dataviews-list.js +2 -2
- package/build-module/components/sidebar-dataviews/custom-dataviews-list.js.map +1 -1
- package/build-module/components/sidebar-dataviews/dataview-item.js +2 -2
- package/build-module/components/sidebar-dataviews/dataview-item.js.map +1 -1
- package/build-module/components/sidebar-dataviews/default-views.js +3 -3
- package/build-module/components/sidebar-dataviews/default-views.js.map +1 -1
- package/build-module/components/sidebar-dataviews/index.js +4 -3
- package/build-module/components/sidebar-dataviews/index.js.map +1 -1
- package/build-module/components/sidebar-edit-mode/page-panels/index.js +3 -3
- package/build-module/components/sidebar-edit-mode/page-panels/index.js.map +1 -1
- package/build-module/components/sidebar-edit-mode/page-panels/page-summary.js +4 -2
- package/build-module/components/sidebar-edit-mode/page-panels/page-summary.js.map +1 -1
- package/build-module/components/sidebar-edit-mode/sidebar-card/index.js +13 -7
- package/build-module/components/sidebar-edit-mode/sidebar-card/index.js.map +1 -1
- package/build-module/components/sidebar-edit-mode/template-panel/index.js +24 -4
- package/build-module/components/sidebar-edit-mode/template-panel/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-global-styles/index.js +14 -2
- package/build-module/components/sidebar-navigation-screen-global-styles/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menu/{delete-modal.js → delete-confirm-dialog.js} +3 -4
- package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-confirm-dialog.js.map +1 -0
- package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js +6 -6
- package/build-module/components/sidebar-navigation-screen-navigation-menu/more-menu.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +1 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-template/index.js +5 -1
- package/build-module/components/sidebar-navigation-screen-template/index.js.map +1 -1
- package/build-module/components/sidebar-navigation-screen-templates-browse/content.js +2 -2
- package/build-module/components/sidebar-navigation-screen-templates-browse/content.js.map +1 -1
- package/build-module/components/sync-state-with-url/use-init-edited-entity-from-url.js +1 -1
- 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 +1 -11
- 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 +44 -27
- package/build-module/components/template-actions/index.js.map +1 -1
- package/build-module/components/welcome-guide/editor.js +11 -2
- package/build-module/components/welcome-guide/editor.js.map +1 -1
- package/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +15 -2
- package/build-module/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js.map +1 -1
- package/build-module/utils/constants.js +4 -2
- package/build-module/utils/constants.js.map +1 -1
- package/build-module/utils/get-is-list-page.js +1 -1
- package/build-module/utils/get-is-list-page.js.map +1 -1
- package/build-module/utils/math.js +92 -0
- package/build-module/utils/math.js.map +1 -0
- package/build-style/style-rtl.css +41 -37
- package/build-style/style.css +41 -37
- package/package.json +42 -42
- package/src/components/actions/index.js +3 -5
- package/src/components/block-editor/editor-canvas.js +20 -7
- package/src/components/block-editor/use-site-editor-settings.js +0 -2
- package/src/components/global-styles/color-palette-panel.js +0 -11
- package/src/components/global-styles/font-library-modal/context.js +34 -17
- package/src/components/global-styles/font-library-modal/font-collection.js +4 -3
- package/src/components/global-styles/font-library-modal/google-fonts-confirm-dialog.js +9 -2
- package/src/components/global-styles/font-library-modal/installed-fonts.js +1 -1
- package/src/components/global-styles/font-library-modal/style.scss +14 -5
- package/src/components/global-styles/font-library-modal/upload-fonts.js +53 -8
- package/src/components/global-styles/font-library-modal/utils/index.js +4 -4
- package/src/components/global-styles/font-library-modal/utils/preview-styles.js +4 -0
- package/src/components/global-styles/header.js +1 -1
- package/src/components/global-styles/hooks.js +68 -1
- package/src/components/global-styles/preview-iframe.js +0 -1
- package/src/components/global-styles/preview-styles.js +2 -2
- package/src/components/global-styles/screen-colors.js +2 -13
- package/src/components/global-styles/screen-typography.js +1 -12
- package/src/components/global-styles/style.scss +4 -1
- package/src/components/global-styles/typography-elements.js +5 -1
- package/src/components/global-styles/{preview-typography.js → typography-example.js} +3 -1
- package/src/components/global-styles/typography-preview.js +3 -1
- package/src/components/global-styles/utils.js +1 -1
- package/src/components/global-styles/variations/style.scss +0 -6
- package/src/components/global-styles/variations/variations-color.js +9 -5
- package/src/components/global-styles/variations/variations-typography.js +37 -59
- package/src/components/header-edit-mode/index.js +1 -0
- package/src/components/keyboard-shortcut-help-modal/config.js +4 -0
- package/src/components/keyboard-shortcuts/global.js +16 -4
- package/src/components/layout/router.js +2 -7
- package/src/components/page-pages/index.js +8 -13
- package/src/components/page-patterns/delete-category-menu-item.js +7 -0
- package/src/components/page-patterns/index.js +2 -3
- package/src/components/page-patterns/use-patterns.js +17 -10
- package/src/components/page-templates-template-parts/index.js +14 -22
- package/src/components/save-panel/index.js +24 -17
- package/src/components/sidebar/index.js +2 -3
- package/src/components/sidebar-dataviews/custom-dataviews-list.js +2 -2
- package/src/components/sidebar-dataviews/dataview-item.js +2 -2
- package/src/components/sidebar-dataviews/default-views.js +11 -3
- package/src/components/sidebar-dataviews/index.js +4 -3
- package/src/components/sidebar-edit-mode/page-panels/index.js +2 -2
- package/src/components/sidebar-edit-mode/page-panels/page-summary.js +2 -0
- package/src/components/sidebar-edit-mode/sidebar-card/index.js +30 -11
- package/src/components/sidebar-edit-mode/sidebar-card/style.scss +10 -11
- package/src/components/sidebar-edit-mode/template-panel/index.js +24 -5
- package/src/components/sidebar-navigation-screen/style.scss +10 -1
- package/src/components/sidebar-navigation-screen-global-styles/index.js +35 -2
- package/src/components/sidebar-navigation-screen-navigation-menu/{delete-modal.js → delete-confirm-dialog.js} +2 -3
- package/src/components/sidebar-navigation-screen-navigation-menu/more-menu.js +11 -9
- package/src/components/sidebar-navigation-screen-navigation-menu/use-navigation-menu-handlers.js +6 -3
- package/src/components/sidebar-navigation-screen-template/index.js +6 -1
- package/src/components/sidebar-navigation-screen-templates-browse/content.js +2 -2
- package/src/components/sync-state-with-url/use-init-edited-entity-from-url.js +1 -1
- package/src/components/sync-state-with-url/use-sync-path-with-url.js +3 -19
- package/src/components/template-actions/index.js +63 -46
- package/src/components/welcome-guide/editor.js +9 -6
- package/src/hooks/use-theme-style-variations/use-theme-style-variations-by-property.js +21 -4
- package/src/style.scss +0 -1
- package/src/utils/constants.js +4 -2
- package/src/utils/get-is-list-page.js +1 -1
- package/src/utils/math.js +93 -0
- package/build/components/global-styles/preview-typography.js.map +0 -1
- package/build/components/sidebar-edit-mode/template-panel/template-actions.js +0 -50
- package/build/components/sidebar-edit-mode/template-panel/template-actions.js.map +0 -1
- package/build/components/sidebar-navigation-screen-navigation-menu/delete-modal.js.map +0 -1
- package/build/components/sidebar-navigation-screen-templates/index.js +0 -132
- package/build/components/sidebar-navigation-screen-templates/index.js.map +0 -1
- package/build-module/components/global-styles/preview-typography.js.map +0 -1
- package/build-module/components/sidebar-edit-mode/template-panel/template-actions.js +0 -42
- package/build-module/components/sidebar-edit-mode/template-panel/template-actions.js.map +0 -1
- package/build-module/components/sidebar-navigation-screen-navigation-menu/delete-modal.js.map +0 -1
- package/build-module/components/sidebar-navigation-screen-templates/index.js +0 -124
- package/build-module/components/sidebar-navigation-screen-templates/index.js.map +0 -1
- package/src/components/sidebar-edit-mode/template-panel/template-actions.js +0 -49
- package/src/components/sidebar-navigation-screen-templates/index.js +0 -156
- package/src/components/sidebar-navigation-screen-templates/style.scss +0 -9
|
@@ -461,7 +461,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
.dataviews-wrapper {
|
|
464
|
-
width: 100%;
|
|
465
464
|
height: 100%;
|
|
466
465
|
overflow: auto;
|
|
467
466
|
box-sizing: border-box;
|
|
@@ -469,6 +468,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
469
468
|
}
|
|
470
469
|
|
|
471
470
|
.dataviews-filters__view-actions {
|
|
471
|
+
box-sizing: border-box;
|
|
472
472
|
padding: 12px 32px 0;
|
|
473
473
|
margin-bottom: 12px;
|
|
474
474
|
flex-shrink: 0;
|
|
@@ -574,7 +574,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
574
574
|
.dataviews-view-table tr:last-child {
|
|
575
575
|
border-bottom: 0;
|
|
576
576
|
}
|
|
577
|
-
.dataviews-view-table tr
|
|
577
|
+
.dataviews-view-table tr.is-hovered {
|
|
578
578
|
background-color: #f8f8f8;
|
|
579
579
|
}
|
|
580
580
|
.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input {
|
|
@@ -583,7 +583,13 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
583
583
|
.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked, .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate, .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus {
|
|
584
584
|
opacity: 1;
|
|
585
585
|
}
|
|
586
|
-
.dataviews-view-table tr
|
|
586
|
+
.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
|
|
587
|
+
opacity: 0;
|
|
588
|
+
}
|
|
589
|
+
.dataviews-view-table tr:focus-within .components-checkbox-control__input,
|
|
590
|
+
.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr.is-hovered .components-checkbox-control__input,
|
|
591
|
+
.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr:hover .components-checkbox-control__input,
|
|
592
|
+
.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
|
|
587
593
|
opacity: 1;
|
|
588
594
|
}
|
|
589
595
|
.dataviews-view-table tr.is-selected {
|
|
@@ -1573,8 +1579,10 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
1573
1579
|
}
|
|
1574
1580
|
|
|
1575
1581
|
.edit-site-global-styles-preview__iframe {
|
|
1576
|
-
|
|
1582
|
+
border-radius: 2px;
|
|
1577
1583
|
display: block;
|
|
1584
|
+
max-width: 100%;
|
|
1585
|
+
width: 100%;
|
|
1578
1586
|
}
|
|
1579
1587
|
|
|
1580
1588
|
.edit-site-typography-preview {
|
|
@@ -2575,37 +2583,33 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
2575
2583
|
}
|
|
2576
2584
|
}
|
|
2577
2585
|
|
|
2578
|
-
.edit-site-sidebar-card {
|
|
2579
|
-
display: flex;
|
|
2580
|
-
align-items: flex-start;
|
|
2581
|
-
}
|
|
2582
2586
|
.edit-site-sidebar-card__content {
|
|
2583
2587
|
flex-grow: 1;
|
|
2584
|
-
margin-bottom: 4px;
|
|
2585
2588
|
}
|
|
2586
2589
|
.edit-site-sidebar-card__title {
|
|
2587
|
-
|
|
2588
|
-
line-height: 24px;
|
|
2590
|
+
width: 100%;
|
|
2589
2591
|
}
|
|
2590
2592
|
.edit-site-sidebar-card__title.edit-site-sidebar-card__title {
|
|
2591
|
-
font-size:
|
|
2592
|
-
line-height:
|
|
2593
|
+
font-size: 16px;
|
|
2594
|
+
line-height: 24px;
|
|
2593
2595
|
margin: 0;
|
|
2594
|
-
padding: 3px 0;
|
|
2595
2596
|
}
|
|
2596
2597
|
.edit-site-sidebar-card__description {
|
|
2597
2598
|
font-size: 13px;
|
|
2599
|
+
color: #757575;
|
|
2598
2600
|
}
|
|
2599
2601
|
.edit-site-sidebar-card__icon {
|
|
2600
2602
|
flex: 0 0 24px;
|
|
2601
|
-
margin-left: 12px;
|
|
2602
2603
|
width: 24px;
|
|
2603
2604
|
height: 24px;
|
|
2604
2605
|
}
|
|
2605
2606
|
.edit-site-sidebar-card__header {
|
|
2606
2607
|
display: flex;
|
|
2607
2608
|
justify-content: space-between;
|
|
2608
|
-
margin: 0 0
|
|
2609
|
+
margin: 0 0 12px;
|
|
2610
|
+
}
|
|
2611
|
+
.edit-site-sidebar-card .edit-site-template-card__actions {
|
|
2612
|
+
flex-shrink: 0;
|
|
2609
2613
|
}
|
|
2610
2614
|
|
|
2611
2615
|
.edit-site-template-card__template-areas {
|
|
@@ -3371,10 +3375,18 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3371
3375
|
}
|
|
3372
3376
|
|
|
3373
3377
|
@media (min-width: 782px) {
|
|
3374
|
-
.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-
|
|
3378
|
+
.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container {
|
|
3375
3379
|
max-width: 292px;
|
|
3376
3380
|
}
|
|
3377
3381
|
}
|
|
3382
|
+
|
|
3383
|
+
.edit-site-global-styles-variation-title {
|
|
3384
|
+
color: #ddd;
|
|
3385
|
+
font-size: 11px;
|
|
3386
|
+
text-transform: uppercase;
|
|
3387
|
+
font-weight: 500;
|
|
3388
|
+
}
|
|
3389
|
+
|
|
3378
3390
|
.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview {
|
|
3379
3391
|
box-shadow: 0 0 0 1px #1e1e1e;
|
|
3380
3392
|
}
|
|
@@ -3519,15 +3531,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3519
3531
|
fill: #4ab866;
|
|
3520
3532
|
}
|
|
3521
3533
|
|
|
3522
|
-
.edit-site-sidebar-navigation-screen-templates__templates-group-title.components-item {
|
|
3523
|
-
text-transform: uppercase;
|
|
3524
|
-
color: #e0e0e0;
|
|
3525
|
-
padding: 24px 16px 16px 6px;
|
|
3526
|
-
border-top: 1px solid #2f2f2f;
|
|
3527
|
-
font-size: 11px;
|
|
3528
|
-
font-weight: 500;
|
|
3529
|
-
}
|
|
3530
|
-
|
|
3531
3534
|
.edit-site-sidebar-navigation-details-screen-panel {
|
|
3532
3535
|
margin: 24px 0;
|
|
3533
3536
|
}
|
|
@@ -4061,13 +4064,20 @@ button.font-library-modal__upload-area {
|
|
|
4061
4064
|
align-items: center;
|
|
4062
4065
|
margin-top: 64px;
|
|
4063
4066
|
}
|
|
4064
|
-
.font-library__google-fonts-confirm
|
|
4065
|
-
|
|
4067
|
+
.font-library__google-fonts-confirm p {
|
|
4068
|
+
line-height: 1.4;
|
|
4069
|
+
}
|
|
4070
|
+
.font-library__google-fonts-confirm h2 {
|
|
4071
|
+
font-size: 1.2rem;
|
|
4072
|
+
font-weight: 400;
|
|
4066
4073
|
}
|
|
4067
4074
|
.font-library__google-fonts-confirm .components-card {
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4075
|
+
padding: 16px;
|
|
4076
|
+
width: 400px;
|
|
4077
|
+
}
|
|
4078
|
+
.font-library__google-fonts-confirm .components-button {
|
|
4079
|
+
width: 100%;
|
|
4080
|
+
justify-content: center;
|
|
4071
4081
|
}
|
|
4072
4082
|
|
|
4073
4083
|
.edit-site-pagination .components-button.is-tertiary {
|
|
@@ -4105,12 +4115,6 @@ button.font-library-modal__upload-area {
|
|
|
4105
4115
|
outline-offset: 0;
|
|
4106
4116
|
}
|
|
4107
4117
|
|
|
4108
|
-
.edit-site-global-styles_preview-typography {
|
|
4109
|
-
font-size: 22px;
|
|
4110
|
-
line-height: 44px;
|
|
4111
|
-
text-align: center;
|
|
4112
|
-
}
|
|
4113
|
-
|
|
4114
4118
|
body.js #wpadminbar {
|
|
4115
4119
|
display: none;
|
|
4116
4120
|
}
|
package/build-style/style.css
CHANGED
|
@@ -461,7 +461,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
.dataviews-wrapper {
|
|
464
|
-
width: 100%;
|
|
465
464
|
height: 100%;
|
|
466
465
|
overflow: auto;
|
|
467
466
|
box-sizing: border-box;
|
|
@@ -469,6 +468,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
469
468
|
}
|
|
470
469
|
|
|
471
470
|
.dataviews-filters__view-actions {
|
|
471
|
+
box-sizing: border-box;
|
|
472
472
|
padding: 12px 32px 0;
|
|
473
473
|
margin-bottom: 12px;
|
|
474
474
|
flex-shrink: 0;
|
|
@@ -574,7 +574,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
574
574
|
.dataviews-view-table tr:last-child {
|
|
575
575
|
border-bottom: 0;
|
|
576
576
|
}
|
|
577
|
-
.dataviews-view-table tr
|
|
577
|
+
.dataviews-view-table tr.is-hovered {
|
|
578
578
|
background-color: #f8f8f8;
|
|
579
579
|
}
|
|
580
580
|
.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input {
|
|
@@ -583,7 +583,13 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
583
583
|
.dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:checked, .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:indeterminate, .dataviews-view-table tr .components-checkbox-control__input.components-checkbox-control__input:focus {
|
|
584
584
|
opacity: 1;
|
|
585
585
|
}
|
|
586
|
-
.dataviews-view-table tr
|
|
586
|
+
.dataviews-view-table tr .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
|
|
587
|
+
opacity: 0;
|
|
588
|
+
}
|
|
589
|
+
.dataviews-view-table tr:focus-within .components-checkbox-control__input,
|
|
590
|
+
.dataviews-view-table tr:focus-within .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr.is-hovered .components-checkbox-control__input,
|
|
591
|
+
.dataviews-view-table tr.is-hovered .dataviews-item-actions .components-button:not(.dataviews-all-actions-button), .dataviews-view-table tr:hover .components-checkbox-control__input,
|
|
592
|
+
.dataviews-view-table tr:hover .dataviews-item-actions .components-button:not(.dataviews-all-actions-button) {
|
|
587
593
|
opacity: 1;
|
|
588
594
|
}
|
|
589
595
|
.dataviews-view-table tr.is-selected {
|
|
@@ -1573,8 +1579,10 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
1573
1579
|
}
|
|
1574
1580
|
|
|
1575
1581
|
.edit-site-global-styles-preview__iframe {
|
|
1576
|
-
|
|
1582
|
+
border-radius: 2px;
|
|
1577
1583
|
display: block;
|
|
1584
|
+
max-width: 100%;
|
|
1585
|
+
width: 100%;
|
|
1578
1586
|
}
|
|
1579
1587
|
|
|
1580
1588
|
.edit-site-typography-preview {
|
|
@@ -2576,37 +2584,33 @@ textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-inp
|
|
|
2576
2584
|
}
|
|
2577
2585
|
}
|
|
2578
2586
|
|
|
2579
|
-
.edit-site-sidebar-card {
|
|
2580
|
-
display: flex;
|
|
2581
|
-
align-items: flex-start;
|
|
2582
|
-
}
|
|
2583
2587
|
.edit-site-sidebar-card__content {
|
|
2584
2588
|
flex-grow: 1;
|
|
2585
|
-
margin-bottom: 4px;
|
|
2586
2589
|
}
|
|
2587
2590
|
.edit-site-sidebar-card__title {
|
|
2588
|
-
|
|
2589
|
-
line-height: 24px;
|
|
2591
|
+
width: 100%;
|
|
2590
2592
|
}
|
|
2591
2593
|
.edit-site-sidebar-card__title.edit-site-sidebar-card__title {
|
|
2592
|
-
font-size:
|
|
2593
|
-
line-height:
|
|
2594
|
+
font-size: 16px;
|
|
2595
|
+
line-height: 24px;
|
|
2594
2596
|
margin: 0;
|
|
2595
|
-
padding: 3px 0;
|
|
2596
2597
|
}
|
|
2597
2598
|
.edit-site-sidebar-card__description {
|
|
2598
2599
|
font-size: 13px;
|
|
2600
|
+
color: #757575;
|
|
2599
2601
|
}
|
|
2600
2602
|
.edit-site-sidebar-card__icon {
|
|
2601
2603
|
flex: 0 0 24px;
|
|
2602
|
-
margin-right: 12px;
|
|
2603
2604
|
width: 24px;
|
|
2604
2605
|
height: 24px;
|
|
2605
2606
|
}
|
|
2606
2607
|
.edit-site-sidebar-card__header {
|
|
2607
2608
|
display: flex;
|
|
2608
2609
|
justify-content: space-between;
|
|
2609
|
-
margin: 0 0
|
|
2610
|
+
margin: 0 0 12px;
|
|
2611
|
+
}
|
|
2612
|
+
.edit-site-sidebar-card .edit-site-template-card__actions {
|
|
2613
|
+
flex-shrink: 0;
|
|
2610
2614
|
}
|
|
2611
2615
|
|
|
2612
2616
|
.edit-site-template-card__template-areas {
|
|
@@ -3372,10 +3376,18 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3372
3376
|
}
|
|
3373
3377
|
|
|
3374
3378
|
@media (min-width: 782px) {
|
|
3375
|
-
.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-
|
|
3379
|
+
.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-variation-container {
|
|
3376
3380
|
max-width: 292px;
|
|
3377
3381
|
}
|
|
3378
3382
|
}
|
|
3383
|
+
|
|
3384
|
+
.edit-site-global-styles-variation-title {
|
|
3385
|
+
color: #ddd;
|
|
3386
|
+
font-size: 11px;
|
|
3387
|
+
text-transform: uppercase;
|
|
3388
|
+
font-weight: 500;
|
|
3389
|
+
}
|
|
3390
|
+
|
|
3379
3391
|
.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview {
|
|
3380
3392
|
box-shadow: 0 0 0 1px #1e1e1e;
|
|
3381
3393
|
}
|
|
@@ -3520,15 +3532,6 @@ body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar {
|
|
|
3520
3532
|
fill: #4ab866;
|
|
3521
3533
|
}
|
|
3522
3534
|
|
|
3523
|
-
.edit-site-sidebar-navigation-screen-templates__templates-group-title.components-item {
|
|
3524
|
-
text-transform: uppercase;
|
|
3525
|
-
color: #e0e0e0;
|
|
3526
|
-
padding: 24px 6px 16px 16px;
|
|
3527
|
-
border-top: 1px solid #2f2f2f;
|
|
3528
|
-
font-size: 11px;
|
|
3529
|
-
font-weight: 500;
|
|
3530
|
-
}
|
|
3531
|
-
|
|
3532
3535
|
.edit-site-sidebar-navigation-details-screen-panel {
|
|
3533
3536
|
margin: 24px 0;
|
|
3534
3537
|
}
|
|
@@ -4062,13 +4065,20 @@ button.font-library-modal__upload-area {
|
|
|
4062
4065
|
align-items: center;
|
|
4063
4066
|
margin-top: 64px;
|
|
4064
4067
|
}
|
|
4065
|
-
.font-library__google-fonts-confirm
|
|
4066
|
-
|
|
4068
|
+
.font-library__google-fonts-confirm p {
|
|
4069
|
+
line-height: 1.4;
|
|
4070
|
+
}
|
|
4071
|
+
.font-library__google-fonts-confirm h2 {
|
|
4072
|
+
font-size: 1.2rem;
|
|
4073
|
+
font-weight: 400;
|
|
4067
4074
|
}
|
|
4068
4075
|
.font-library__google-fonts-confirm .components-card {
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4076
|
+
padding: 16px;
|
|
4077
|
+
width: 400px;
|
|
4078
|
+
}
|
|
4079
|
+
.font-library__google-fonts-confirm .components-button {
|
|
4080
|
+
width: 100%;
|
|
4081
|
+
justify-content: center;
|
|
4072
4082
|
}
|
|
4073
4083
|
|
|
4074
4084
|
.edit-site-pagination .components-button.is-tertiary {
|
|
@@ -4106,12 +4116,6 @@ button.font-library-modal__upload-area {
|
|
|
4106
4116
|
outline-offset: 0;
|
|
4107
4117
|
}
|
|
4108
4118
|
|
|
4109
|
-
.edit-site-global-styles_preview-typography {
|
|
4110
|
-
font-size: 22px;
|
|
4111
|
-
line-height: 44px;
|
|
4112
|
-
text-align: center;
|
|
4113
|
-
}
|
|
4114
|
-
|
|
4115
4119
|
body.js #wpadminbar {
|
|
4116
4120
|
display: none;
|
|
4117
4121
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-site",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.31.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,46 +27,46 @@
|
|
|
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/blob": "^3.
|
|
33
|
-
"@wordpress/block-editor": "^12.
|
|
34
|
-
"@wordpress/block-library": "^8.
|
|
35
|
-
"@wordpress/blocks": "^12.
|
|
36
|
-
"@wordpress/commands": "^0.
|
|
37
|
-
"@wordpress/components": "^27.
|
|
38
|
-
"@wordpress/compose": "^6.
|
|
39
|
-
"@wordpress/core-commands": "^0.
|
|
40
|
-
"@wordpress/core-data": "^6.
|
|
41
|
-
"@wordpress/data": "^9.
|
|
42
|
-
"@wordpress/dataviews": "^0.
|
|
43
|
-
"@wordpress/date": "^4.
|
|
44
|
-
"@wordpress/deprecated": "^3.
|
|
45
|
-
"@wordpress/dom": "^3.
|
|
46
|
-
"@wordpress/editor": "^13.
|
|
47
|
-
"@wordpress/element": "^5.
|
|
48
|
-
"@wordpress/escape-html": "^2.
|
|
49
|
-
"@wordpress/hooks": "^3.
|
|
50
|
-
"@wordpress/html-entities": "^3.
|
|
51
|
-
"@wordpress/i18n": "^4.
|
|
52
|
-
"@wordpress/icons": "^9.
|
|
53
|
-
"@wordpress/interface": "^5.
|
|
54
|
-
"@wordpress/keyboard-shortcuts": "^4.
|
|
55
|
-
"@wordpress/keycodes": "^3.
|
|
56
|
-
"@wordpress/media-utils": "^4.
|
|
57
|
-
"@wordpress/notices": "^4.
|
|
58
|
-
"@wordpress/patterns": "^1.
|
|
59
|
-
"@wordpress/plugins": "^6.
|
|
60
|
-
"@wordpress/preferences": "^3.
|
|
61
|
-
"@wordpress/primitives": "^3.
|
|
62
|
-
"@wordpress/private-apis": "^0.
|
|
63
|
-
"@wordpress/reusable-blocks": "^4.
|
|
64
|
-
"@wordpress/router": "^0.
|
|
65
|
-
"@wordpress/style-engine": "^1.
|
|
66
|
-
"@wordpress/url": "^3.
|
|
67
|
-
"@wordpress/viewport": "^5.
|
|
68
|
-
"@wordpress/widgets": "^3.
|
|
69
|
-
"@wordpress/wordcount": "^3.
|
|
30
|
+
"@wordpress/a11y": "^3.54.0",
|
|
31
|
+
"@wordpress/api-fetch": "^6.51.0",
|
|
32
|
+
"@wordpress/blob": "^3.54.0",
|
|
33
|
+
"@wordpress/block-editor": "^12.22.0",
|
|
34
|
+
"@wordpress/block-library": "^8.31.0",
|
|
35
|
+
"@wordpress/blocks": "^12.31.0",
|
|
36
|
+
"@wordpress/commands": "^0.25.0",
|
|
37
|
+
"@wordpress/components": "^27.2.0",
|
|
38
|
+
"@wordpress/compose": "^6.31.0",
|
|
39
|
+
"@wordpress/core-commands": "^0.23.0",
|
|
40
|
+
"@wordpress/core-data": "^6.31.0",
|
|
41
|
+
"@wordpress/data": "^9.24.0",
|
|
42
|
+
"@wordpress/dataviews": "^0.8.0",
|
|
43
|
+
"@wordpress/date": "^4.54.0",
|
|
44
|
+
"@wordpress/deprecated": "^3.54.0",
|
|
45
|
+
"@wordpress/dom": "^3.54.0",
|
|
46
|
+
"@wordpress/editor": "^13.31.0",
|
|
47
|
+
"@wordpress/element": "^5.31.0",
|
|
48
|
+
"@wordpress/escape-html": "^2.54.0",
|
|
49
|
+
"@wordpress/hooks": "^3.54.0",
|
|
50
|
+
"@wordpress/html-entities": "^3.54.0",
|
|
51
|
+
"@wordpress/i18n": "^4.54.0",
|
|
52
|
+
"@wordpress/icons": "^9.45.0",
|
|
53
|
+
"@wordpress/interface": "^5.31.0",
|
|
54
|
+
"@wordpress/keyboard-shortcuts": "^4.31.0",
|
|
55
|
+
"@wordpress/keycodes": "^3.54.0",
|
|
56
|
+
"@wordpress/media-utils": "^4.45.0",
|
|
57
|
+
"@wordpress/notices": "^4.22.0",
|
|
58
|
+
"@wordpress/patterns": "^1.15.0",
|
|
59
|
+
"@wordpress/plugins": "^6.22.0",
|
|
60
|
+
"@wordpress/preferences": "^3.31.0",
|
|
61
|
+
"@wordpress/primitives": "^3.52.0",
|
|
62
|
+
"@wordpress/private-apis": "^0.36.0",
|
|
63
|
+
"@wordpress/reusable-blocks": "^4.31.0",
|
|
64
|
+
"@wordpress/router": "^0.23.0",
|
|
65
|
+
"@wordpress/style-engine": "^1.37.0",
|
|
66
|
+
"@wordpress/url": "^3.55.0",
|
|
67
|
+
"@wordpress/viewport": "^5.31.0",
|
|
68
|
+
"@wordpress/widgets": "^3.31.0",
|
|
69
|
+
"@wordpress/wordcount": "^3.54.0",
|
|
70
70
|
"change-case": "^4.1.2",
|
|
71
71
|
"classnames": "^2.3.1",
|
|
72
72
|
"client-zip": "^2.4.4",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "ffc07735d0abfb3f69e91d48f25b7fe8d1ef92d2"
|
|
90
90
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { external,
|
|
4
|
+
import { external, edit, backup } from '@wordpress/icons';
|
|
5
5
|
import { addQueryArgs } from '@wordpress/url';
|
|
6
6
|
import { useDispatch } from '@wordpress/data';
|
|
7
7
|
import { decodeEntities } from '@wordpress/html-entities';
|
|
@@ -27,8 +27,6 @@ const { useHistory } = unlock( routerPrivateApis );
|
|
|
27
27
|
export const trashPostAction = {
|
|
28
28
|
id: 'move-to-trash',
|
|
29
29
|
label: __( 'Move to Trash' ),
|
|
30
|
-
isPrimary: true,
|
|
31
|
-
icon: trash,
|
|
32
30
|
isEligible( { status } ) {
|
|
33
31
|
return status !== 'trash';
|
|
34
32
|
},
|
|
@@ -172,8 +170,6 @@ export function usePermanentlyDeletePostAction() {
|
|
|
172
170
|
() => ( {
|
|
173
171
|
id: 'permanently-delete',
|
|
174
172
|
label: __( 'Permanently delete' ),
|
|
175
|
-
isPrimary: true,
|
|
176
|
-
icon: trash,
|
|
177
173
|
supportsBulk: true,
|
|
178
174
|
isEligible( { status } ) {
|
|
179
175
|
return status === 'trash';
|
|
@@ -372,6 +368,8 @@ export function useEditPostAction() {
|
|
|
372
368
|
() => ( {
|
|
373
369
|
id: 'edit-post',
|
|
374
370
|
label: __( 'Edit' ),
|
|
371
|
+
isPrimary: true,
|
|
372
|
+
icon: edit,
|
|
375
373
|
isEligible( { status } ) {
|
|
376
374
|
return status !== 'trash';
|
|
377
375
|
},
|
|
@@ -22,13 +22,15 @@ import {
|
|
|
22
22
|
FOCUSABLE_ENTITIES,
|
|
23
23
|
NAVIGATION_POST_TYPE,
|
|
24
24
|
} from '../../utils/constants';
|
|
25
|
+
import { computeIFrameScale } from '../../utils/math';
|
|
25
26
|
|
|
26
27
|
const { EditorCanvas: EditorCanvasRoot } = unlock( editorPrivateApis );
|
|
27
28
|
|
|
28
29
|
function EditorCanvas( { enableResizing, settings, children, ...props } ) {
|
|
29
|
-
const { hasBlocks, isFocusMode, templateType, canvasMode } =
|
|
30
|
-
( select ) => {
|
|
31
|
-
const { getBlockCount } =
|
|
30
|
+
const { hasBlocks, isFocusMode, templateType, canvasMode, isZoomOutMode } =
|
|
31
|
+
useSelect( ( select ) => {
|
|
32
|
+
const { getBlockCount, __unstableGetEditorMode } =
|
|
33
|
+
select( blockEditorStore );
|
|
32
34
|
const { getEditedPostType, getCanvasMode } = unlock(
|
|
33
35
|
select( editSiteStore )
|
|
34
36
|
);
|
|
@@ -37,12 +39,11 @@ function EditorCanvas( { enableResizing, settings, children, ...props } ) {
|
|
|
37
39
|
return {
|
|
38
40
|
templateType: _templateType,
|
|
39
41
|
isFocusMode: FOCUSABLE_ENTITIES.includes( _templateType ),
|
|
42
|
+
isZoomOutMode: __unstableGetEditorMode() === 'zoom-out',
|
|
40
43
|
canvasMode: getCanvasMode(),
|
|
41
44
|
hasBlocks: !! getBlockCount(),
|
|
42
45
|
};
|
|
43
|
-
},
|
|
44
|
-
[]
|
|
45
|
-
);
|
|
46
|
+
}, [] );
|
|
46
47
|
const { setCanvasMode } = unlock( useDispatch( editSiteStore ) );
|
|
47
48
|
const [ isFocused, setIsFocused ] = useState( false );
|
|
48
49
|
|
|
@@ -102,6 +103,17 @@ function EditorCanvas( { enableResizing, settings, children, ...props } ) {
|
|
|
102
103
|
[ settings.styles, enableResizing, canvasMode ]
|
|
103
104
|
);
|
|
104
105
|
|
|
106
|
+
const frameSize = isZoomOutMode ? 20 : undefined;
|
|
107
|
+
|
|
108
|
+
const scale = isZoomOutMode
|
|
109
|
+
? ( contentWidth ) =>
|
|
110
|
+
computeIFrameScale(
|
|
111
|
+
{ width: 1000, scale: 0.45 },
|
|
112
|
+
{ width: 400, scale: 0.9 },
|
|
113
|
+
contentWidth
|
|
114
|
+
)
|
|
115
|
+
: undefined;
|
|
116
|
+
|
|
105
117
|
return (
|
|
106
118
|
<EditorCanvasRoot
|
|
107
119
|
className={ classnames( 'edit-site-editor-canvas__block-list', {
|
|
@@ -110,7 +122,8 @@ function EditorCanvas( { enableResizing, settings, children, ...props } ) {
|
|
|
110
122
|
renderAppender={ showBlockAppender }
|
|
111
123
|
styles={ styles }
|
|
112
124
|
iframeProps={ {
|
|
113
|
-
|
|
125
|
+
scale,
|
|
126
|
+
frameSize,
|
|
114
127
|
className: classnames(
|
|
115
128
|
'edit-site-visual-editor__editor-canvas',
|
|
116
129
|
{
|
|
@@ -101,8 +101,6 @@ function useNavigateToPreviousEntityRecord() {
|
|
|
101
101
|
( location.params.postId &&
|
|
102
102
|
FOCUSABLE_ENTITIES.includes( location.params.postType ) );
|
|
103
103
|
const didComeFromEditorCanvas =
|
|
104
|
-
previousLocation?.params.postId &&
|
|
105
|
-
previousLocation?.params.postType &&
|
|
106
104
|
previousLocation?.params.canvas === 'edit';
|
|
107
105
|
const showBackButton = isFocusMode && didComeFromEditorCanvas;
|
|
108
106
|
return showBackButton ? () => history.back() : undefined;
|
|
@@ -13,8 +13,6 @@ import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
|
|
|
13
13
|
* Internal dependencies
|
|
14
14
|
*/
|
|
15
15
|
import { unlock } from '../../lock-unlock';
|
|
16
|
-
import ColorVariations from './variations/variations-color';
|
|
17
|
-
import { useCurrentMergeThemeStyleVariationsWithUserConfig } from '../../hooks/use-theme-style-variations/use-theme-style-variations-by-property';
|
|
18
16
|
|
|
19
17
|
const { useGlobalSetting } = unlock( blockEditorPrivateApis );
|
|
20
18
|
const mobilePopoverProps = { placement: 'bottom-start', offset: 8 };
|
|
@@ -47,12 +45,6 @@ export default function ColorPalettePanel( { name } ) {
|
|
|
47
45
|
'color.defaultPalette',
|
|
48
46
|
name
|
|
49
47
|
);
|
|
50
|
-
const colorVariations = useCurrentMergeThemeStyleVariationsWithUserConfig( {
|
|
51
|
-
property: 'color',
|
|
52
|
-
filter: ( variation ) =>
|
|
53
|
-
variation?.settings?.color &&
|
|
54
|
-
Object.keys( variation?.settings?.color ).length,
|
|
55
|
-
} );
|
|
56
48
|
const isMobileViewport = useViewportMatch( 'small', '<' );
|
|
57
49
|
const popoverProps = isMobileViewport ? mobilePopoverProps : undefined;
|
|
58
50
|
|
|
@@ -85,9 +77,6 @@ export default function ColorPalettePanel( { name } ) {
|
|
|
85
77
|
popoverProps={ popoverProps }
|
|
86
78
|
/>
|
|
87
79
|
) }
|
|
88
|
-
{ !! colorVariations.length && (
|
|
89
|
-
<ColorVariations variations={ colorVariations } />
|
|
90
|
-
) }
|
|
91
80
|
<PaletteEdit
|
|
92
81
|
colors={ customColors }
|
|
93
82
|
onChange={ setCustomColors }
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
useEntityRecords,
|
|
10
10
|
store as coreStore,
|
|
11
11
|
} from '@wordpress/core-data';
|
|
12
|
-
import { __
|
|
12
|
+
import { __ } from '@wordpress/i18n';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Internal dependencies
|
|
@@ -274,8 +274,22 @@ function FontLibraryProvider( { children } ) {
|
|
|
274
274
|
...alreadyInstalledFontFaces,
|
|
275
275
|
];
|
|
276
276
|
fontFamiliesToActivate.push( fontFamilyToInstall );
|
|
277
|
-
}
|
|
278
|
-
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// If it's a system font but was installed successfully, activate it.
|
|
280
|
+
if (
|
|
281
|
+
installedFontFamily &&
|
|
282
|
+
! fontFamilyToInstall?.fontFace?.length
|
|
283
|
+
) {
|
|
284
|
+
fontFamiliesToActivate.push( installedFontFamily );
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// If the font family is new and is not a system font, delete it to avoid having font families without font faces.
|
|
288
|
+
if (
|
|
289
|
+
isANewFontFamily &&
|
|
290
|
+
fontFamilyToInstall?.fontFace?.length > 0 &&
|
|
291
|
+
sucessfullyInstalledFontFaces?.length === 0
|
|
292
|
+
) {
|
|
279
293
|
await fetchUninstallFontFamily( installedFontFamily.id );
|
|
280
294
|
}
|
|
281
295
|
|
|
@@ -284,6 +298,14 @@ function FontLibraryProvider( { children } ) {
|
|
|
284
298
|
);
|
|
285
299
|
}
|
|
286
300
|
|
|
301
|
+
installationErrors = installationErrors.reduce(
|
|
302
|
+
( unique, item ) =>
|
|
303
|
+
unique.includes( item.message )
|
|
304
|
+
? unique
|
|
305
|
+
: [ ...unique, item.message ],
|
|
306
|
+
[]
|
|
307
|
+
);
|
|
308
|
+
|
|
287
309
|
if ( fontFamiliesToActivate.length > 0 ) {
|
|
288
310
|
// Activate the font family (add the font family to the global styles).
|
|
289
311
|
activateCustomFontFamilies( fontFamiliesToActivate );
|
|
@@ -300,18 +322,13 @@ function FontLibraryProvider( { children } ) {
|
|
|
300
322
|
}
|
|
301
323
|
|
|
302
324
|
if ( installationErrors.length > 0 ) {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
/* translators: %s: Specific error message returned from server. */
|
|
306
|
-
__( 'There were some errors installing fonts. %s' ),
|
|
307
|
-
installationErrors.reduce(
|
|
308
|
-
( errorMessageCollection, error ) => {
|
|
309
|
-
return `${ errorMessageCollection } ${ error.message }`;
|
|
310
|
-
},
|
|
311
|
-
''
|
|
312
|
-
)
|
|
313
|
-
)
|
|
325
|
+
const installError = new Error(
|
|
326
|
+
__( 'There was an error installing fonts.' )
|
|
314
327
|
);
|
|
328
|
+
|
|
329
|
+
installError.installationErrors = installationErrors;
|
|
330
|
+
|
|
331
|
+
throw installError;
|
|
315
332
|
}
|
|
316
333
|
} finally {
|
|
317
334
|
setIsInstalling( false );
|
|
@@ -408,15 +425,15 @@ function FontLibraryProvider( { children } ) {
|
|
|
408
425
|
|
|
409
426
|
const isFaceActivated = isFontActivated(
|
|
410
427
|
font.slug,
|
|
411
|
-
face
|
|
412
|
-
face
|
|
428
|
+
face?.fontStyle,
|
|
429
|
+
face?.fontWeight,
|
|
413
430
|
font.source
|
|
414
431
|
);
|
|
415
432
|
|
|
416
433
|
if ( isFaceActivated ) {
|
|
417
434
|
loadFontFaceInBrowser(
|
|
418
435
|
face,
|
|
419
|
-
getDisplaySrcFromFontFace( face
|
|
436
|
+
getDisplaySrcFromFontFace( face?.src ),
|
|
420
437
|
'all'
|
|
421
438
|
);
|
|
422
439
|
} else {
|