@wordpress/editor 14.1.0 → 14.3.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 +16 -12
- package/README.md +28 -7
- package/build/bindings/pattern-overrides.js +8 -5
- package/build/bindings/pattern-overrides.js.map +1 -1
- package/build/bindings/post-meta.js +4 -0
- package/build/bindings/post-meta.js.map +1 -1
- package/build/components/create-template-part-modal/index.js +2 -0
- package/build/components/create-template-part-modal/index.js.map +1 -1
- package/build/components/document-bar/index.js +11 -4
- package/build/components/document-bar/index.js.map +1 -1
- package/build/components/editor-interface/index.js +6 -3
- package/build/components/editor-interface/index.js.map +1 -1
- package/build/components/entities-saved-states/entity-record-item.js +4 -12
- package/build/components/entities-saved-states/entity-record-item.js.map +1 -1
- package/build/components/entities-saved-states/index.js +1 -1
- package/build/components/entities-saved-states/index.js.map +1 -1
- package/build/components/global-keyboard-shortcuts/index.js +1 -1
- package/build/components/global-keyboard-shortcuts/index.js.map +1 -1
- package/build/components/global-styles-provider/index.js +6 -65
- package/build/components/global-styles-provider/index.js.map +1 -1
- package/build/components/header/index.js +6 -2
- package/build/components/header/index.js.map +1 -1
- package/build/components/index.js +10 -2
- package/build/components/index.js.map +1 -1
- package/build/components/inserter-sidebar/index.js +10 -21
- package/build/components/inserter-sidebar/index.js.map +1 -1
- package/build/components/list-view-sidebar/index.js +19 -47
- package/build/components/list-view-sidebar/index.js.map +1 -1
- package/build/components/page-attributes/parent.js +2 -1
- package/build/components/page-attributes/parent.js.map +1 -1
- package/build/components/post-actions/actions.js +371 -452
- package/build/components/post-actions/actions.js.map +1 -1
- package/build/components/post-actions/index.js +7 -2
- package/build/components/post-actions/index.js.map +1 -1
- package/build/components/post-excerpt/index.js +2 -1
- package/build/components/post-excerpt/index.js.map +1 -1
- package/build/components/post-excerpt/panel.js +3 -2
- package/build/components/post-excerpt/panel.js.map +1 -1
- package/build/components/post-preview-button/index.js +1 -1
- package/build/components/post-preview-button/index.js.map +1 -1
- package/build/components/post-publish-panel/index.js +1 -1
- package/build/components/post-publish-panel/index.js.map +1 -1
- package/build/components/post-saved-state/index.js +11 -1
- package/build/components/post-saved-state/index.js.map +1 -1
- package/build/components/post-schedule/index.js +3 -0
- package/build/components/post-schedule/index.js.map +1 -1
- package/build/components/post-slug/check.js +8 -1
- package/build/components/post-slug/check.js.map +1 -1
- package/build/components/post-slug/index.js +6 -0
- package/build/components/post-slug/index.js.map +1 -1
- package/build/components/post-status/index.js +4 -2
- package/build/components/post-status/index.js.map +1 -1
- package/build/components/post-sticky/index.js +9 -13
- package/build/components/post-sticky/index.js.map +1 -1
- package/build/components/post-template/create-new-template-modal.js +2 -0
- package/build/components/post-template/create-new-template-modal.js.map +1 -1
- package/build/components/post-title/index.js +5 -13
- package/build/components/post-title/index.js.map +1 -1
- package/build/components/preview-dropdown/index.js +1 -1
- package/build/components/preview-dropdown/index.js.map +1 -1
- package/build/components/provider/index.native.js +0 -4
- package/build/components/provider/index.native.js.map +1 -1
- package/build/components/provider/use-block-editor-settings.js +7 -4
- package/build/components/provider/use-block-editor-settings.js.map +1 -1
- package/build/components/save-publish-panels/index.js +30 -16
- package/build/components/save-publish-panels/index.js.map +1 -1
- package/build/components/sidebar/index.js +4 -1
- package/build/components/sidebar/index.js.map +1 -1
- package/build/components/sidebar/post-summary.js +2 -4
- package/build/components/sidebar/post-summary.js.map +1 -1
- package/build/components/template-content-panel/index.js +29 -4
- package/build/components/template-content-panel/index.js.map +1 -1
- package/build/components/template-part-content-panel/index.js +70 -0
- package/build/components/template-part-content-panel/index.js.map +1 -0
- package/build/components/visual-editor/index.js +1 -1
- package/build/components/visual-editor/index.js.map +1 -1
- package/build/dataviews/actions/delete-post.js +96 -0
- package/build/dataviews/actions/delete-post.js.map +1 -0
- package/build/{components/post-actions/export-pattern-action.js → dataviews/actions/export-pattern.js} +11 -20
- package/build/dataviews/actions/export-pattern.js.map +1 -0
- package/build/dataviews/actions/index.js +32 -0
- package/build/dataviews/actions/index.js.map +1 -0
- package/build/dataviews/actions/reset-post.js +111 -0
- package/build/dataviews/actions/reset-post.js.map +1 -0
- package/build/dataviews/actions/utils.js +50 -0
- package/build/dataviews/actions/utils.js.map +1 -0
- package/build/dataviews/store/private-actions.js.map +1 -1
- package/build/dataviews/store/private-selectors.js +6 -6
- package/build/dataviews/store/private-selectors.js.map +1 -1
- package/build/dataviews/store/reducer.js +6 -2
- package/build/dataviews/store/reducer.js.map +1 -1
- package/build/dataviews/types.js +6 -0
- package/build/dataviews/types.js.map +1 -0
- package/build/hooks/pattern-overrides.js +3 -3
- package/build/hooks/pattern-overrides.js.map +1 -1
- package/build/lock-unlock.js +1 -1
- package/build/lock-unlock.js.map +1 -1
- package/build/private-apis.js +2 -0
- package/build/private-apis.js.map +1 -1
- package/build/private-apis.native.js +0 -2
- package/build/private-apis.native.js.map +1 -1
- package/build/store/constants.js.map +1 -1
- package/build/store/private-actions.js +9 -5
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +0 -18
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/utils/is-template-revertable.js +6 -8
- package/build/store/utils/is-template-revertable.js.map +1 -1
- package/build-module/bindings/pattern-overrides.js +8 -5
- package/build-module/bindings/pattern-overrides.js.map +1 -1
- package/build-module/bindings/post-meta.js +4 -0
- package/build-module/bindings/post-meta.js.map +1 -1
- package/build-module/components/create-template-part-modal/index.js +2 -0
- package/build-module/components/create-template-part-modal/index.js.map +1 -1
- package/build-module/components/document-bar/index.js +11 -4
- package/build-module/components/document-bar/index.js.map +1 -1
- package/build-module/components/editor-interface/index.js +6 -3
- package/build-module/components/editor-interface/index.js.map +1 -1
- package/build-module/components/entities-saved-states/entity-record-item.js +6 -14
- package/build-module/components/entities-saved-states/entity-record-item.js.map +1 -1
- package/build-module/components/entities-saved-states/index.js +1 -1
- package/build-module/components/entities-saved-states/index.js.map +1 -1
- package/build-module/components/global-keyboard-shortcuts/index.js +1 -1
- package/build-module/components/global-keyboard-shortcuts/index.js.map +1 -1
- package/build-module/components/global-styles-provider/index.js +7 -66
- package/build-module/components/global-styles-provider/index.js.map +1 -1
- package/build-module/components/header/index.js +6 -2
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/index.js +11 -2
- package/build-module/components/index.js.map +1 -1
- package/build-module/components/inserter-sidebar/index.js +11 -22
- package/build-module/components/inserter-sidebar/index.js.map +1 -1
- package/build-module/components/list-view-sidebar/index.js +20 -49
- package/build-module/components/list-view-sidebar/index.js.map +1 -1
- package/build-module/components/page-attributes/parent.js +2 -1
- package/build-module/components/page-attributes/parent.js.map +1 -1
- package/build-module/components/post-actions/actions.js +370 -450
- package/build-module/components/post-actions/actions.js.map +1 -1
- package/build-module/components/post-actions/index.js +7 -2
- package/build-module/components/post-actions/index.js.map +1 -1
- package/build-module/components/post-excerpt/index.js +2 -1
- package/build-module/components/post-excerpt/index.js.map +1 -1
- package/build-module/components/post-excerpt/panel.js +3 -2
- package/build-module/components/post-excerpt/panel.js.map +1 -1
- package/build-module/components/post-preview-button/index.js +1 -1
- package/build-module/components/post-preview-button/index.js.map +1 -1
- package/build-module/components/post-publish-panel/index.js +1 -1
- package/build-module/components/post-publish-panel/index.js.map +1 -1
- package/build-module/components/post-saved-state/index.js +11 -1
- package/build-module/components/post-saved-state/index.js.map +1 -1
- package/build-module/components/post-schedule/index.js +3 -0
- package/build-module/components/post-schedule/index.js.map +1 -1
- package/build-module/components/post-slug/check.js +9 -0
- package/build-module/components/post-slug/check.js.map +1 -1
- package/build-module/components/post-slug/index.js +6 -0
- package/build-module/components/post-slug/index.js.map +1 -1
- package/build-module/components/post-status/index.js +3 -2
- package/build-module/components/post-status/index.js.map +1 -1
- package/build-module/components/post-sticky/index.js +10 -14
- package/build-module/components/post-sticky/index.js.map +1 -1
- package/build-module/components/post-template/create-new-template-modal.js +2 -0
- package/build-module/components/post-template/create-new-template-modal.js.map +1 -1
- package/build-module/components/post-title/index.js +5 -13
- package/build-module/components/post-title/index.js.map +1 -1
- package/build-module/components/preview-dropdown/index.js +1 -1
- package/build-module/components/preview-dropdown/index.js.map +1 -1
- package/build-module/components/provider/index.native.js +0 -4
- package/build-module/components/provider/index.native.js.map +1 -1
- package/build-module/components/provider/use-block-editor-settings.js +7 -4
- package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
- package/build-module/components/save-publish-panels/index.js +30 -16
- package/build-module/components/save-publish-panels/index.js.map +1 -1
- package/build-module/components/sidebar/index.js +4 -1
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/sidebar/post-summary.js +2 -4
- package/build-module/components/sidebar/post-summary.js.map +1 -1
- package/build-module/components/template-content-panel/index.js +30 -5
- package/build-module/components/template-content-panel/index.js.map +1 -1
- package/build-module/components/template-part-content-panel/index.js +63 -0
- package/build-module/components/template-part-content-panel/index.js.map +1 -0
- package/build-module/components/visual-editor/index.js +1 -1
- package/build-module/components/visual-editor/index.js.map +1 -1
- package/build-module/dataviews/actions/delete-post.js +87 -0
- package/build-module/dataviews/actions/delete-post.js.map +1 -0
- package/build-module/{components/post-actions/export-pattern-action.js → dataviews/actions/export-pattern.js} +10 -19
- package/build-module/dataviews/actions/export-pattern.js.map +1 -0
- package/build-module/dataviews/actions/index.js +24 -0
- package/build-module/dataviews/actions/index.js.map +1 -0
- package/build-module/dataviews/actions/reset-post.js +104 -0
- package/build-module/dataviews/actions/reset-post.js.map +1 -0
- package/build-module/dataviews/actions/utils.js +41 -0
- package/build-module/dataviews/actions/utils.js.map +1 -0
- package/build-module/dataviews/store/private-actions.js.map +1 -1
- package/build-module/dataviews/store/private-selectors.js +5 -5
- package/build-module/dataviews/store/private-selectors.js.map +1 -1
- package/build-module/dataviews/store/reducer.js +6 -2
- package/build-module/dataviews/store/reducer.js.map +1 -1
- package/build-module/dataviews/types.js +2 -0
- package/build-module/dataviews/types.js.map +1 -0
- package/build-module/hooks/pattern-overrides.js +4 -2
- package/build-module/hooks/pattern-overrides.js.map +1 -1
- package/build-module/lock-unlock.js +1 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/private-apis.js +2 -0
- package/build-module/private-apis.js.map +1 -1
- package/build-module/private-apis.native.js +0 -2
- package/build-module/private-apis.native.js.map +1 -1
- package/build-module/store/constants.js.map +1 -1
- package/build-module/store/private-actions.js +9 -5
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +0 -17
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/utils/is-template-revertable.js +6 -8
- package/build-module/store/utils/is-template-revertable.js.map +1 -1
- package/build-style/style-rtl.css +26 -76
- package/build-style/style.css +26 -76
- package/build-types/bindings/index.d.ts +2 -0
- package/build-types/bindings/index.d.ts.map +1 -0
- package/build-types/bindings/pattern-overrides.d.ts +18 -0
- package/build-types/bindings/pattern-overrides.d.ts.map +1 -0
- package/build-types/bindings/post-meta.d.ts +25 -0
- package/build-types/bindings/post-meta.d.ts.map +1 -0
- package/build-types/components/autocompleters/index.d.ts +2 -0
- package/build-types/components/autocompleters/index.d.ts.map +1 -0
- package/build-types/components/autocompleters/user.d.ts +6 -0
- package/build-types/components/autocompleters/user.d.ts.map +1 -0
- package/build-types/components/autosave-monitor/index.d.ts +15 -0
- package/build-types/components/autosave-monitor/index.d.ts.map +1 -0
- package/build-types/components/block-manager/category.d.ts +6 -0
- package/build-types/components/block-manager/category.d.ts.map +1 -0
- package/build-types/components/block-manager/checklist.d.ts +7 -0
- package/build-types/components/block-manager/checklist.d.ts.map +1 -0
- package/build-types/components/block-manager/index.d.ts +3 -0
- package/build-types/components/block-manager/index.d.ts.map +1 -0
- package/build-types/components/block-removal-warnings/index.d.ts +2 -0
- package/build-types/components/block-removal-warnings/index.d.ts.map +1 -0
- package/build-types/components/block-settings-menu/content-only-settings-menu.d.ts +2 -0
- package/build-types/components/block-settings-menu/content-only-settings-menu.d.ts.map +1 -0
- package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts +65 -0
- package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts.map +1 -0
- package/build-types/components/blog-title/index.d.ts +2 -0
- package/build-types/components/blog-title/index.d.ts.map +1 -0
- package/build-types/components/character-count/index.d.ts +7 -0
- package/build-types/components/character-count/index.d.ts.map +1 -0
- package/build-types/components/collapsible-block-toolbar/index.d.ts +6 -0
- package/build-types/components/collapsible-block-toolbar/index.d.ts.map +1 -0
- package/build-types/components/commands/index.d.ts +2 -0
- package/build-types/components/commands/index.d.ts.map +1 -0
- package/build-types/components/create-template-part-modal/index.d.ts +14 -0
- package/build-types/components/create-template-part-modal/index.d.ts.map +1 -0
- package/build-types/components/create-template-part-modal/utils.d.ts +4 -0
- package/build-types/components/create-template-part-modal/utils.d.ts.map +1 -0
- package/build-types/components/deprecated.d.ts +182 -0
- package/build-types/components/deprecated.d.ts.map +1 -0
- package/build-types/components/document-bar/index.d.ts +22 -0
- package/build-types/components/document-bar/index.d.ts.map +1 -0
- package/build-types/components/document-outline/check.d.ts +12 -0
- package/build-types/components/document-outline/check.d.ts.map +1 -0
- package/build-types/components/document-outline/index.d.ts +16 -0
- package/build-types/components/document-outline/index.d.ts.map +1 -0
- package/build-types/components/document-outline/item.d.ts +9 -0
- package/build-types/components/document-outline/item.d.ts.map +1 -0
- package/build-types/components/document-tools/index.d.ts +6 -0
- package/build-types/components/document-tools/index.d.ts.map +1 -0
- package/build-types/components/editor/index.d.ts +14 -0
- package/build-types/components/editor/index.d.ts.map +1 -0
- package/build-types/components/editor-history/redo.d.ts +4 -0
- package/build-types/components/editor-history/redo.d.ts.map +1 -0
- package/build-types/components/editor-history/undo.d.ts +4 -0
- package/build-types/components/editor-history/undo.d.ts.map +1 -0
- package/build-types/components/editor-interface/content-slot-fill.d.ts +3 -0
- package/build-types/components/editor-interface/content-slot-fill.d.ts.map +1 -0
- package/build-types/components/editor-interface/index.d.ts +17 -0
- package/build-types/components/editor-interface/index.d.ts.map +1 -0
- package/build-types/components/editor-notices/index.d.ts +13 -0
- package/build-types/components/editor-notices/index.d.ts.map +1 -0
- package/build-types/components/editor-snackbars/index.d.ts +7 -0
- package/build-types/components/editor-snackbars/index.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/entity-record-item.d.ts +6 -0
- package/build-types/components/entities-saved-states/entity-record-item.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/entity-type-list.d.ts +6 -0
- package/build-types/components/entities-saved-states/entity-type-list.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/hooks/use-is-dirty.d.ts +2 -0
- package/build-types/components/entities-saved-states/hooks/use-is-dirty.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/index.d.ts +43 -0
- package/build-types/components/entities-saved-states/index.d.ts.map +1 -0
- package/build-types/components/error-boundary/index.d.ts +14 -0
- package/build-types/components/error-boundary/index.d.ts.map +1 -0
- package/build-types/components/global-keyboard-shortcuts/index.d.ts +9 -0
- package/build-types/components/global-keyboard-shortcuts/index.d.ts.map +1 -0
- package/build-types/components/global-keyboard-shortcuts/register-shortcuts.d.ts +8 -0
- package/build-types/components/global-keyboard-shortcuts/register-shortcuts.d.ts.map +1 -0
- package/build-types/components/global-styles-provider/index.d.ts +20 -0
- package/build-types/components/global-styles-provider/index.d.ts.map +1 -0
- package/build-types/components/header/back-button.d.ts +6 -0
- package/build-types/components/header/back-button.d.ts.map +1 -0
- package/build-types/components/header/index.d.ts +10 -0
- package/build-types/components/header/index.d.ts.map +1 -0
- package/build-types/components/index.d.ts +108 -0
- package/build-types/components/index.d.ts.map +1 -0
- package/build-types/components/inserter-sidebar/index.d.ts +2 -0
- package/build-types/components/inserter-sidebar/index.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/config.d.ts +26 -0
- package/build-types/components/keyboard-shortcut-help-modal/config.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts +5 -0
- package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/index.d.ts +3 -0
- package/build-types/components/keyboard-shortcut-help-modal/index.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts +8 -0
- package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts.map +1 -0
- package/build-types/components/list-view-sidebar/index.d.ts +2 -0
- package/build-types/components/list-view-sidebar/index.d.ts.map +1 -0
- package/build-types/components/list-view-sidebar/list-view-outline.d.ts +2 -0
- package/build-types/components/list-view-sidebar/list-view-outline.d.ts.map +1 -0
- package/build-types/components/local-autosave-monitor/index.d.ts +3 -0
- package/build-types/components/local-autosave-monitor/index.d.ts.map +1 -0
- package/build-types/components/media-categories/index.d.ts +7 -0
- package/build-types/components/media-categories/index.d.ts.map +1 -0
- package/build-types/components/mode-switcher/index.d.ts +3 -0
- package/build-types/components/mode-switcher/index.d.ts.map +1 -0
- package/build-types/components/more-menu/copy-content-menu-item.d.ts +2 -0
- package/build-types/components/more-menu/copy-content-menu-item.d.ts.map +1 -0
- package/build-types/components/more-menu/index.d.ts +2 -0
- package/build-types/components/more-menu/index.d.ts.map +1 -0
- package/build-types/components/more-menu/tools-more-menu-group.d.ts +6 -0
- package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -0
- package/build-types/components/more-menu/view-more-menu-group.d.ts +6 -0
- package/build-types/components/more-menu/view-more-menu-group.d.ts.map +1 -0
- package/build-types/components/page-attributes/check.d.ts +13 -0
- package/build-types/components/page-attributes/check.d.ts.map +1 -0
- package/build-types/components/page-attributes/order.d.ts +9 -0
- package/build-types/components/page-attributes/order.d.ts.map +1 -0
- package/build-types/components/page-attributes/panel.d.ts +7 -0
- package/build-types/components/page-attributes/panel.d.ts.map +1 -0
- package/build-types/components/page-attributes/parent.d.ts +11 -0
- package/build-types/components/page-attributes/parent.d.ts.map +1 -0
- package/build-types/components/pattern-duplicate-modal/index.d.ts +3 -0
- package/build-types/components/pattern-duplicate-modal/index.d.ts.map +1 -0
- package/build-types/components/pattern-overrides-panel/index.d.ts +2 -0
- package/build-types/components/pattern-overrides-panel/index.d.ts.map +1 -0
- package/build-types/components/pattern-rename-modal/index.d.ts +3 -0
- package/build-types/components/pattern-rename-modal/index.d.ts.map +1 -0
- package/build-types/components/plugin-document-setting-panel/index.d.ts +69 -0
- package/build-types/components/plugin-document-setting-panel/index.d.ts.map +1 -0
- package/build-types/components/plugin-more-menu-item/index.d.ts +3 -0
- package/build-types/components/plugin-more-menu-item/index.d.ts.map +1 -0
- package/build-types/components/plugin-post-publish-panel/index.d.ts +47 -0
- package/build-types/components/plugin-post-publish-panel/index.d.ts.map +1 -0
- package/build-types/components/plugin-post-status-info/index.d.ts +57 -0
- package/build-types/components/plugin-post-status-info/index.d.ts.map +1 -0
- package/build-types/components/plugin-pre-publish-panel/index.d.ts +50 -0
- package/build-types/components/plugin-pre-publish-panel/index.d.ts.map +1 -0
- package/build-types/components/plugin-sidebar/index.d.ts +73 -0
- package/build-types/components/plugin-sidebar/index.d.ts.map +1 -0
- package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts +52 -0
- package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts.map +1 -0
- package/build-types/components/post-actions/actions.d.ts +31 -0
- package/build-types/components/post-actions/actions.d.ts.map +1 -0
- package/build-types/components/post-actions/index.d.ts +5 -0
- package/build-types/components/post-actions/index.d.ts.map +1 -0
- package/build-types/components/post-author/check.d.ts +13 -0
- package/build-types/components/post-author/check.d.ts.map +1 -0
- package/build-types/components/post-author/combobox.d.ts +2 -0
- package/build-types/components/post-author/combobox.d.ts.map +1 -0
- package/build-types/components/post-author/constants.d.ts +9 -0
- package/build-types/components/post-author/constants.d.ts.map +1 -0
- package/build-types/components/post-author/hook.d.ts +6 -0
- package/build-types/components/post-author/hook.d.ts.map +1 -0
- package/build-types/components/post-author/index.d.ts +8 -0
- package/build-types/components/post-author/index.d.ts.map +1 -0
- package/build-types/components/post-author/panel.d.ts +8 -0
- package/build-types/components/post-author/panel.d.ts.map +1 -0
- package/build-types/components/post-author/select.d.ts +2 -0
- package/build-types/components/post-author/select.d.ts.map +1 -0
- package/build-types/components/post-card-panel/index.d.ts +4 -0
- package/build-types/components/post-card-panel/index.d.ts.map +1 -0
- package/build-types/components/post-comments/index.d.ts +3 -0
- package/build-types/components/post-comments/index.d.ts.map +1 -0
- package/build-types/components/post-content-information/index.d.ts +2 -0
- package/build-types/components/post-content-information/index.d.ts.map +1 -0
- package/build-types/components/post-discussion/panel.d.ts +10 -0
- package/build-types/components/post-discussion/panel.d.ts.map +1 -0
- package/build-types/components/post-excerpt/check.d.ts +13 -0
- package/build-types/components/post-excerpt/check.d.ts.map +1 -0
- package/build-types/components/post-excerpt/index.d.ts +15 -0
- package/build-types/components/post-excerpt/index.d.ts.map +1 -0
- package/build-types/components/post-excerpt/panel.d.ts +8 -0
- package/build-types/components/post-excerpt/panel.d.ts.map +1 -0
- package/build-types/components/post-excerpt/plugin.d.ts +53 -0
- package/build-types/components/post-excerpt/plugin.d.ts.map +1 -0
- package/build-types/components/post-featured-image/check.d.ts +14 -0
- package/build-types/components/post-featured-image/check.d.ts.map +1 -0
- package/build-types/components/post-featured-image/index.d.ts +3 -0
- package/build-types/components/post-featured-image/index.d.ts.map +1 -0
- package/build-types/components/post-featured-image/panel.d.ts +13 -0
- package/build-types/components/post-featured-image/panel.d.ts.map +1 -0
- package/build-types/components/post-format/check.d.ts +5 -0
- package/build-types/components/post-format/check.d.ts.map +1 -0
- package/build-types/components/post-format/index.d.ts +16 -0
- package/build-types/components/post-format/index.d.ts.map +1 -0
- package/build-types/components/post-format/panel.d.ts +8 -0
- package/build-types/components/post-format/panel.d.ts.map +1 -0
- package/build-types/components/post-last-edited-panel/index.d.ts +2 -0
- package/build-types/components/post-last-edited-panel/index.d.ts.map +1 -0
- package/build-types/components/post-last-revision/check.d.ts +13 -0
- package/build-types/components/post-last-revision/check.d.ts.map +1 -0
- package/build-types/components/post-last-revision/index.d.ts +9 -0
- package/build-types/components/post-last-revision/index.d.ts.map +1 -0
- package/build-types/components/post-last-revision/panel.d.ts +8 -0
- package/build-types/components/post-last-revision/panel.d.ts.map +1 -0
- package/build-types/components/post-locked-modal/index.d.ts +8 -0
- package/build-types/components/post-locked-modal/index.d.ts.map +1 -0
- package/build-types/components/post-panel-row/index.d.ts +3 -0
- package/build-types/components/post-panel-row/index.d.ts.map +1 -0
- package/build-types/components/post-panel-section/index.d.ts +6 -0
- package/build-types/components/post-panel-section/index.d.ts.map +1 -0
- package/build-types/components/post-pending-status/check.d.ts +15 -0
- package/build-types/components/post-pending-status/check.d.ts.map +1 -0
- package/build-types/components/post-pending-status/index.d.ts +8 -0
- package/build-types/components/post-pending-status/index.d.ts.map +1 -0
- package/build-types/components/post-pingbacks/index.d.ts +3 -0
- package/build-types/components/post-pingbacks/index.d.ts.map +1 -0
- package/build-types/components/post-preview-button/index.d.ts +23 -0
- package/build-types/components/post-preview-button/index.d.ts.map +1 -0
- package/build-types/components/post-publish-button/index.d.ts +17 -0
- package/build-types/components/post-publish-button/index.d.ts.map +1 -0
- package/build-types/components/post-publish-button/label.d.ts +7 -0
- package/build-types/components/post-publish-button/label.d.ts.map +1 -0
- package/build-types/components/post-publish-button/post-publish-button-or-toggle.d.ts +17 -0
- package/build-types/components/post-publish-button/post-publish-button-or-toggle.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/index.d.ts +10 -0
- package/build-types/components/post-publish-panel/index.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-category-panel.d.ts +3 -0
- package/build-types/components/post-publish-panel/maybe-category-panel.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-post-format-panel.d.ts +2 -0
- package/build-types/components/post-publish-panel/maybe-post-format-panel.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-tags-panel.d.ts +3 -0
- package/build-types/components/post-publish-panel/maybe-tags-panel.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-upload-media.d.ts +2 -0
- package/build-types/components/post-publish-panel/maybe-upload-media.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/postpublish.d.ts +3 -0
- package/build-types/components/post-publish-panel/postpublish.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/prepublish.d.ts +5 -0
- package/build-types/components/post-publish-panel/prepublish.d.ts.map +1 -0
- package/build-types/components/post-saved-state/index.d.ts +13 -0
- package/build-types/components/post-saved-state/index.d.ts.map +1 -0
- package/build-types/components/post-schedule/check.d.ts +12 -0
- package/build-types/components/post-schedule/check.d.ts.map +1 -0
- package/build-types/components/post-schedule/index.d.ts +17 -0
- package/build-types/components/post-schedule/index.d.ts.map +1 -0
- package/build-types/components/post-schedule/label.d.ts +25 -0
- package/build-types/components/post-schedule/label.d.ts.map +1 -0
- package/build-types/components/post-schedule/panel.d.ts +7 -0
- package/build-types/components/post-schedule/panel.d.ts.map +1 -0
- package/build-types/components/post-slug/check.d.ts +12 -0
- package/build-types/components/post-slug/check.d.ts.map +1 -0
- package/build-types/components/post-slug/index.d.ts +7 -0
- package/build-types/components/post-slug/index.d.ts.map +1 -0
- package/build-types/components/post-slug/panel.d.ts +3 -0
- package/build-types/components/post-slug/panel.d.ts.map +1 -0
- package/build-types/components/post-status/index.d.ts +6 -0
- package/build-types/components/post-status/index.d.ts.map +1 -0
- package/build-types/components/post-sticky/check.d.ts +12 -0
- package/build-types/components/post-sticky/check.d.ts.map +1 -0
- package/build-types/components/post-sticky/index.d.ts +7 -0
- package/build-types/components/post-sticky/index.d.ts.map +1 -0
- package/build-types/components/post-sticky/panel.d.ts +3 -0
- package/build-types/components/post-sticky/panel.d.ts.map +1 -0
- package/build-types/components/post-switch-to-draft-button/index.d.ts +7 -0
- package/build-types/components/post-switch-to-draft-button/index.d.ts.map +1 -0
- package/build-types/components/post-sync-status/index.d.ts +7 -0
- package/build-types/components/post-sync-status/index.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/check.d.ts +12 -0
- package/build-types/components/post-taxonomies/check.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts +64 -0
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts +102 -0
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/index.d.ts +5 -0
- package/build-types/components/post-taxonomies/index.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/most-used-terms.d.ts +5 -0
- package/build-types/components/post-taxonomies/most-used-terms.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/panel.d.ts +3 -0
- package/build-types/components/post-taxonomies/panel.d.ts.map +1 -0
- package/build-types/components/post-template/block-theme.d.ts +4 -0
- package/build-types/components/post-template/block-theme.d.ts.map +1 -0
- package/build-types/components/post-template/classic-theme.d.ts +3 -0
- package/build-types/components/post-template/classic-theme.d.ts.map +1 -0
- package/build-types/components/post-template/create-new-template-modal.d.ts +4 -0
- package/build-types/components/post-template/create-new-template-modal.d.ts.map +1 -0
- package/build-types/components/post-template/create-new-template.d.ts +4 -0
- package/build-types/components/post-template/create-new-template.d.ts.map +1 -0
- package/build-types/components/post-template/hooks.d.ts +8 -0
- package/build-types/components/post-template/hooks.d.ts.map +1 -0
- package/build-types/components/post-template/panel.d.ts +7 -0
- package/build-types/components/post-template/panel.d.ts.map +1 -0
- package/build-types/components/post-template/reset-default-template.d.ts +4 -0
- package/build-types/components/post-template/reset-default-template.d.ts.map +1 -0
- package/build-types/components/post-template/swap-template-button.d.ts +4 -0
- package/build-types/components/post-template/swap-template-button.d.ts.map +1 -0
- package/build-types/components/post-text-editor/index.d.ts +7 -0
- package/build-types/components/post-text-editor/index.d.ts.map +1 -0
- package/build-types/components/post-title/constants.d.ts +3 -0
- package/build-types/components/post-title/constants.d.ts.map +1 -0
- package/build-types/components/post-title/index.d.ts +3 -0
- package/build-types/components/post-title/index.d.ts.map +1 -0
- package/build-types/components/post-title/post-title-raw.d.ts +3 -0
- package/build-types/components/post-title/post-title-raw.d.ts.map +1 -0
- package/build-types/components/post-title/use-post-title-focus.d.ts +9 -0
- package/build-types/components/post-title/use-post-title-focus.d.ts.map +1 -0
- package/build-types/components/post-title/use-post-title.d.ts +7 -0
- package/build-types/components/post-title/use-post-title.d.ts.map +1 -0
- package/build-types/components/post-transform-panel/hooks.d.ts +2 -0
- package/build-types/components/post-transform-panel/hooks.d.ts.map +1 -0
- package/build-types/components/post-transform-panel/index.d.ts +2 -0
- package/build-types/components/post-transform-panel/index.d.ts.map +1 -0
- package/build-types/components/post-trash/check.d.ts +12 -0
- package/build-types/components/post-trash/check.d.ts.map +1 -0
- package/build-types/components/post-trash/index.d.ts +7 -0
- package/build-types/components/post-trash/index.d.ts.map +1 -0
- package/build-types/components/post-type-support-check/index.d.ts +18 -0
- package/build-types/components/post-type-support-check/index.d.ts.map +1 -0
- package/build-types/components/post-url/check.d.ts +12 -0
- package/build-types/components/post-url/check.d.ts.map +1 -0
- package/build-types/components/post-url/index.d.ts +14 -0
- package/build-types/components/post-url/index.d.ts.map +1 -0
- package/build-types/components/post-url/label.d.ts +13 -0
- package/build-types/components/post-url/label.d.ts.map +1 -0
- package/build-types/components/post-url/panel.d.ts +7 -0
- package/build-types/components/post-url/panel.d.ts.map +1 -0
- package/build-types/components/post-view-link/index.d.ts +2 -0
- package/build-types/components/post-view-link/index.d.ts.map +1 -0
- package/build-types/components/post-visibility/check.d.ts +13 -0
- package/build-types/components/post-visibility/check.d.ts.map +1 -0
- package/build-types/components/post-visibility/index.d.ts +11 -0
- package/build-types/components/post-visibility/index.d.ts.map +1 -0
- package/build-types/components/post-visibility/label.d.ts +13 -0
- package/build-types/components/post-visibility/label.d.ts.map +1 -0
- package/build-types/components/post-visibility/utils.d.ts +21 -0
- package/build-types/components/post-visibility/utils.d.ts.map +1 -0
- package/build-types/components/posts-per-page/index.d.ts +2 -0
- package/build-types/components/posts-per-page/index.d.ts.map +1 -0
- package/build-types/components/preferences-modal/enable-panel.d.ts +3 -0
- package/build-types/components/preferences-modal/enable-panel.d.ts.map +1 -0
- package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts +14 -0
- package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts.map +1 -0
- package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts +3 -0
- package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts.map +1 -0
- package/build-types/components/preferences-modal/index.d.ts +4 -0
- package/build-types/components/preferences-modal/index.d.ts.map +1 -0
- package/build-types/components/preview-dropdown/index.d.ts +5 -0
- package/build-types/components/preview-dropdown/index.d.ts.map +1 -0
- package/build-types/components/provider/disable-non-page-content-blocks.d.ts +6 -0
- package/build-types/components/provider/disable-non-page-content-blocks.d.ts.map +1 -0
- package/build-types/components/provider/index.d.ts +65 -0
- package/build-types/components/provider/index.d.ts.map +1 -0
- package/build-types/components/provider/navigation-block-editing-mode.d.ts +9 -0
- package/build-types/components/provider/navigation-block-editing-mode.d.ts.map +1 -0
- package/build-types/components/provider/use-auto-switch-editor-sidebars.d.ts +7 -0
- package/build-types/components/provider/use-auto-switch-editor-sidebars.d.ts.map +1 -0
- package/build-types/components/provider/use-block-editor-settings.d.ts +13 -0
- package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -0
- package/build-types/components/provider/use-hide-blocks-from-inserter.d.ts +9 -0
- package/build-types/components/provider/use-hide-blocks-from-inserter.d.ts.map +1 -0
- package/build-types/components/provider/with-registry-provider.d.ts +3 -0
- package/build-types/components/provider/with-registry-provider.d.ts.map +1 -0
- package/build-types/components/resizable-editor/index.d.ts +8 -0
- package/build-types/components/resizable-editor/index.d.ts.map +1 -0
- package/build-types/components/resizable-editor/resize-handle.d.ts +5 -0
- package/build-types/components/resizable-editor/resize-handle.d.ts.map +1 -0
- package/build-types/components/save-publish-panels/index.d.ts +11 -0
- package/build-types/components/save-publish-panels/index.d.ts.map +1 -0
- package/build-types/components/sidebar/constants.d.ts +5 -0
- package/build-types/components/sidebar/constants.d.ts.map +1 -0
- package/build-types/components/sidebar/header.d.ts +3 -0
- package/build-types/components/sidebar/header.d.ts.map +1 -0
- package/build-types/components/sidebar/index.d.ts +6 -0
- package/build-types/components/sidebar/index.d.ts.map +1 -0
- package/build-types/components/sidebar/post-summary.d.ts +4 -0
- package/build-types/components/sidebar/post-summary.d.ts.map +1 -0
- package/build-types/components/site-discussion/index.d.ts +2 -0
- package/build-types/components/site-discussion/index.d.ts.map +1 -0
- package/build-types/components/start-page-options/index.d.ts +2 -0
- package/build-types/components/start-page-options/index.d.ts.map +1 -0
- package/build-types/components/start-template-options/index.d.ts +2 -0
- package/build-types/components/start-template-options/index.d.ts.map +1 -0
- package/build-types/components/table-of-contents/index.d.ts +7 -0
- package/build-types/components/table-of-contents/index.d.ts.map +1 -0
- package/build-types/components/table-of-contents/panel.d.ts +6 -0
- package/build-types/components/table-of-contents/panel.d.ts.map +1 -0
- package/build-types/components/template-content-panel/index.d.ts +4 -0
- package/build-types/components/template-content-panel/index.d.ts.map +1 -0
- package/build-types/components/template-part-content-panel/index.d.ts +2 -0
- package/build-types/components/template-part-content-panel/index.d.ts.map +1 -0
- package/build-types/components/template-part-menu-items/convert-to-regular.d.ts +5 -0
- package/build-types/components/template-part-menu-items/convert-to-regular.d.ts.map +1 -0
- package/build-types/components/template-part-menu-items/convert-to-template-part.d.ts +5 -0
- package/build-types/components/template-part-menu-items/convert-to-template-part.d.ts.map +1 -0
- package/build-types/components/template-part-menu-items/index.d.ts +2 -0
- package/build-types/components/template-part-menu-items/index.d.ts.map +1 -0
- package/build-types/components/template-validation-notice/index.d.ts +2 -0
- package/build-types/components/template-validation-notice/index.d.ts.map +1 -0
- package/build-types/components/text-editor/index.d.ts +4 -0
- package/build-types/components/text-editor/index.d.ts.map +1 -0
- package/build-types/components/theme-support-check/index.d.ts +14 -0
- package/build-types/components/theme-support-check/index.d.ts.map +1 -0
- package/build-types/components/time-to-read/index.d.ts +7 -0
- package/build-types/components/time-to-read/index.d.ts.map +1 -0
- package/build-types/components/unsaved-changes-warning/index.d.ts +8 -0
- package/build-types/components/unsaved-changes-warning/index.d.ts.map +1 -0
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts +18 -0
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts.map +1 -0
- package/build-types/components/visual-editor/index.d.ts +10 -0
- package/build-types/components/visual-editor/index.d.ts.map +1 -0
- package/build-types/components/word-count/index.d.ts +7 -0
- package/build-types/components/word-count/index.d.ts.map +1 -0
- package/build-types/dataviews/actions/delete-post.d.ts +5 -0
- package/build-types/dataviews/actions/delete-post.d.ts.map +1 -0
- package/build-types/dataviews/actions/export-pattern.d.ts +8 -0
- package/build-types/dataviews/actions/export-pattern.d.ts.map +1 -0
- package/build-types/dataviews/actions/index.d.ts +2 -0
- package/build-types/dataviews/actions/index.d.ts.map +1 -0
- package/build-types/dataviews/actions/reset-post.d.ts +5 -0
- package/build-types/dataviews/actions/reset-post.d.ts.map +1 -0
- package/build-types/dataviews/actions/utils.d.ts +11 -0
- package/build-types/dataviews/actions/utils.d.ts.map +1 -0
- package/build-types/dataviews/api.d.ts +27 -0
- package/build-types/dataviews/api.d.ts.map +1 -0
- package/build-types/dataviews/store/private-actions.d.ts +2 -2
- package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/dataviews/store/private-selectors.d.ts +2 -5
- package/build-types/dataviews/store/private-selectors.d.ts.map +1 -1
- package/build-types/dataviews/store/reducer.d.ts +5 -1
- package/build-types/dataviews/store/reducer.d.ts.map +1 -1
- package/build-types/dataviews/types.d.ts +34 -0
- package/build-types/dataviews/types.d.ts.map +1 -0
- package/build-types/hooks/custom-sources-backwards-compatibility.d.ts +10 -0
- package/build-types/hooks/custom-sources-backwards-compatibility.d.ts.map +1 -0
- package/build-types/hooks/default-autocompleters.d.ts +2 -0
- package/build-types/hooks/default-autocompleters.d.ts.map +1 -0
- package/build-types/hooks/index.d.ts +2 -0
- package/build-types/hooks/index.d.ts.map +1 -0
- package/build-types/hooks/media-upload.d.ts +2 -0
- package/build-types/hooks/media-upload.d.ts.map +1 -0
- package/build-types/hooks/pattern-overrides.d.ts +2 -0
- package/build-types/hooks/pattern-overrides.d.ts.map +1 -0
- package/build-types/hooks/use-select-nearest-editable-block.d.ts +4 -0
- package/build-types/hooks/use-select-nearest-editable-block.d.ts.map +1 -0
- package/build-types/index.d.ts +6 -0
- package/build-types/index.d.ts.map +1 -0
- package/build-types/lock-unlock.d.ts +3 -0
- package/build-types/lock-unlock.d.ts.map +1 -0
- package/build-types/private-apis.d.ts +2 -0
- package/build-types/private-apis.d.ts.map +1 -0
- package/build-types/store/actions.d.ts +367 -0
- package/build-types/store/actions.d.ts.map +1 -0
- package/build-types/store/constants.d.ts +31 -0
- package/build-types/store/constants.d.ts.map +1 -0
- package/build-types/store/defaults.d.ts +21 -0
- package/build-types/store/defaults.d.ts.map +1 -0
- package/build-types/store/index.d.ts +17 -0
- package/build-types/store/index.d.ts.map +1 -0
- package/build-types/store/local-autosave.d.ts +4 -0
- package/build-types/store/local-autosave.d.ts.map +1 -0
- package/build-types/store/private-actions.d.ts +37 -0
- package/build-types/store/private-actions.d.ts.map +1 -0
- package/build-types/store/private-selectors.d.ts +24 -0
- package/build-types/store/private-selectors.d.ts.map +1 -0
- package/build-types/store/reducer.d.ts +228 -0
- package/build-types/store/reducer.d.ts.map +1 -0
- package/build-types/store/selectors.d.ts +854 -0
- package/build-types/store/selectors.d.ts.map +1 -0
- package/build-types/store/utils/get-filtered-template-parts.d.ts +3 -0
- package/build-types/store/utils/get-filtered-template-parts.d.ts.map +1 -0
- package/build-types/store/utils/is-template-revertable.d.ts +8 -0
- package/build-types/store/utils/is-template-revertable.d.ts.map +1 -0
- package/build-types/store/utils/notice-builder.d.ts +27 -0
- package/build-types/store/utils/notice-builder.d.ts.map +1 -0
- package/build-types/utils/get-template-part-icon.d.ts +9 -0
- package/build-types/utils/get-template-part-icon.d.ts.map +1 -0
- package/build-types/utils/index.d.ts +5 -0
- package/build-types/utils/index.d.ts.map +1 -0
- package/build-types/utils/media-upload/index.d.ts +21 -0
- package/build-types/utils/media-upload/index.d.ts.map +1 -0
- package/build-types/utils/set-nested-value.d.ts +20 -0
- package/build-types/utils/set-nested-value.d.ts.map +1 -0
- package/build-types/utils/terms.d.ts +12 -0
- package/build-types/utils/terms.d.ts.map +1 -0
- package/build-types/utils/url.d.ts +18 -0
- package/build-types/utils/url.d.ts.map +1 -0
- package/package.json +36 -35
- package/src/bindings/pattern-overrides.js +9 -10
- package/src/bindings/post-meta.js +5 -0
- package/src/components/create-template-part-modal/index.js +2 -0
- package/src/components/create-template-part-modal/style.scss +0 -6
- package/src/components/document-bar/index.js +11 -4
- package/src/components/editor-interface/index.js +19 -8
- package/src/components/entities-saved-states/entity-record-item.js +4 -14
- package/src/components/entities-saved-states/index.js +1 -1
- package/src/components/entities-saved-states/style.scss +0 -13
- package/src/components/global-keyboard-shortcuts/index.js +1 -1
- package/src/components/global-styles-provider/index.js +7 -90
- package/src/components/header/index.js +2 -1
- package/src/components/index.js +11 -2
- package/src/components/inserter-sidebar/index.js +4 -24
- package/src/components/list-view-sidebar/index.js +34 -62
- package/src/components/list-view-sidebar/style.scss +0 -34
- package/src/components/page-attributes/parent.js +6 -3
- package/src/components/post-actions/actions.js +495 -621
- package/src/components/post-actions/index.js +4 -2
- package/src/components/post-card-panel/style.scss +1 -0
- package/src/components/post-excerpt/index.js +4 -1
- package/src/components/post-excerpt/panel.js +3 -2
- package/src/components/post-featured-image/style.scss +15 -0
- package/src/components/post-panel-row/style.scss +1 -0
- package/src/components/post-preview-button/index.js +1 -1
- package/src/components/post-publish-panel/index.js +1 -1
- package/src/components/post-publish-panel/style.scss +1 -1
- package/src/components/post-saved-state/index.js +11 -1
- package/src/components/post-schedule/index.js +5 -0
- package/src/components/post-slug/check.js +8 -0
- package/src/components/post-slug/index.js +5 -0
- package/src/components/post-status/index.js +3 -1
- package/src/components/post-sticky/index.js +10 -13
- package/src/components/post-sticky/style.scss +3 -2
- package/src/components/post-taxonomies/README.md +1 -1
- package/src/components/post-template/create-new-template-modal.js +2 -0
- package/src/components/post-title/index.js +5 -12
- package/src/components/post-url/style.scss +4 -0
- package/src/components/preview-dropdown/index.js +1 -1
- package/src/components/provider/index.native.js +3 -11
- package/src/components/provider/use-block-editor-settings.js +10 -5
- package/src/components/save-publish-panels/index.js +33 -23
- package/src/components/sidebar/index.js +3 -3
- package/src/components/sidebar/post-summary.js +0 -4
- package/src/components/template-content-panel/index.js +29 -5
- package/src/components/template-part-content-panel/index.js +62 -0
- package/src/components/visual-editor/index.js +1 -1
- package/src/components/visual-editor/style.scss +3 -1
- package/src/dataviews/actions/delete-post.tsx +107 -0
- package/src/{components/post-actions/export-pattern-action.js → dataviews/actions/export-pattern.tsx} +19 -19
- package/src/dataviews/actions/index.ts +25 -0
- package/src/dataviews/actions/reset-post.tsx +144 -0
- package/src/dataviews/actions/utils.ts +54 -0
- package/src/dataviews/store/private-actions.ts +2 -2
- package/src/dataviews/store/private-selectors.ts +13 -6
- package/src/dataviews/store/reducer.ts +12 -5
- package/src/dataviews/types.ts +33 -0
- package/src/hooks/pattern-overrides.js +6 -4
- package/src/lock-unlock.js +1 -1
- package/src/private-apis.js +2 -0
- package/src/private-apis.native.js +0 -2
- package/src/store/private-actions.js +49 -21
- package/src/store/private-selectors.js +0 -25
- package/src/store/utils/is-template-revertable.js +8 -8
- package/src/style.scss +0 -1
- package/tsconfig.json +3 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/build/components/post-actions/export-pattern-action.js.map +0 -1
- package/build/components/post-actions/export-pattern-action.native.js +0 -11
- package/build/components/post-actions/export-pattern-action.native.js.map +0 -1
- package/build/components/template-areas/index.js +0 -84
- package/build/components/template-areas/index.js.map +0 -1
- package/build-module/components/post-actions/export-pattern-action.js.map +0 -1
- package/build-module/components/post-actions/export-pattern-action.native.js +0 -5
- package/build-module/components/post-actions/export-pattern-action.native.js.map +0 -1
- package/build-module/components/template-areas/index.js +0 -78
- package/build-module/components/template-areas/index.js.map +0 -1
- package/src/components/post-actions/export-pattern-action.native.js +0 -4
- package/src/components/template-areas/index.js +0 -94
- package/src/components/template-areas/style.scss +0 -22
- /package/src/store/{constants.js → constants.ts} +0 -0
|
@@ -42,7 +42,7 @@ export default function PostActions( { onActionPerformed, buttonProps } ) {
|
|
|
42
42
|
postType: _postType,
|
|
43
43
|
};
|
|
44
44
|
}, [] );
|
|
45
|
-
const allActions = usePostActions( postType, onActionPerformed );
|
|
45
|
+
const allActions = usePostActions( { postType, onActionPerformed } );
|
|
46
46
|
|
|
47
47
|
const actions = useMemo( () => {
|
|
48
48
|
return allActions.filter( ( action ) => {
|
|
@@ -59,7 +59,7 @@ export default function PostActions( { onActionPerformed, buttonProps } ) {
|
|
|
59
59
|
icon={ moreVertical }
|
|
60
60
|
label={ __( 'Actions' ) }
|
|
61
61
|
disabled={ ! actions.length }
|
|
62
|
-
|
|
62
|
+
accessibleWhenDisabled
|
|
63
63
|
className="editor-all-actions-button"
|
|
64
64
|
onClick={ () =>
|
|
65
65
|
setIsActionsMenuOpen( ! isActionsMenuOpen )
|
|
@@ -123,6 +123,8 @@ function ActionWithModal( { action, item, ActionTrigger, onClose } ) {
|
|
|
123
123
|
overlayClassName={ `editor-action-modal editor-action-modal__${ kebabCase(
|
|
124
124
|
action.id
|
|
125
125
|
) }` }
|
|
126
|
+
focusOnMount="firstContentElement"
|
|
127
|
+
size="small"
|
|
126
128
|
>
|
|
127
129
|
<RenderModal
|
|
128
130
|
items={ [ item ] }
|
|
@@ -5,6 +5,7 @@ import { __ } from '@wordpress/i18n';
|
|
|
5
5
|
import { ExternalLink, TextareaControl } from '@wordpress/components';
|
|
6
6
|
import { useDispatch, useSelect } from '@wordpress/data';
|
|
7
7
|
import { useState } from '@wordpress/element';
|
|
8
|
+
import { decodeEntities } from '@wordpress/html-entities';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Internal dependencies
|
|
@@ -52,7 +53,9 @@ export default function PostExcerpt( {
|
|
|
52
53
|
[]
|
|
53
54
|
);
|
|
54
55
|
const { editPost } = useDispatch( editorStore );
|
|
55
|
-
const [ localExcerpt, setLocalExcerpt ] = useState(
|
|
56
|
+
const [ localExcerpt, setLocalExcerpt ] = useState(
|
|
57
|
+
decodeEntities( excerpt )
|
|
58
|
+
);
|
|
56
59
|
const updatePost = ( value ) => {
|
|
57
60
|
editPost( { [ usedAttribute ]: value } );
|
|
58
61
|
};
|
|
@@ -13,6 +13,7 @@ import { useDispatch, useSelect } from '@wordpress/data';
|
|
|
13
13
|
import { useMemo, useState } from '@wordpress/element';
|
|
14
14
|
import { __experimentalInspectorPopoverHeader as InspectorPopoverHeader } from '@wordpress/block-editor';
|
|
15
15
|
import { store as coreStore } from '@wordpress/core-data';
|
|
16
|
+
import { decodeEntities } from '@wordpress/html-entities';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Internal dependencies
|
|
@@ -172,8 +173,8 @@ function PrivateExcerpt() {
|
|
|
172
173
|
return false;
|
|
173
174
|
}
|
|
174
175
|
const excerptText = !! excerpt && (
|
|
175
|
-
<Text align="left" numberOfLines={ 4 } truncate>
|
|
176
|
-
{ excerpt }
|
|
176
|
+
<Text align="left" numberOfLines={ 4 } truncate={ allowEditing }>
|
|
177
|
+
{ decodeEntities( excerpt ) }
|
|
177
178
|
</Text>
|
|
178
179
|
);
|
|
179
180
|
if ( ! allowEditing ) {
|
|
@@ -20,6 +20,21 @@
|
|
|
20
20
|
opacity: 1;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
|
|
24
|
+
.components-drop-zone__content {
|
|
25
|
+
border-radius: $radius-block-ui;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Align text and icons horizontally to avoid clipping when the featured image is not set.
|
|
29
|
+
&:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: $grid-unit-10;
|
|
33
|
+
|
|
34
|
+
.components-drop-zone__content-icon {
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
23
38
|
}
|
|
24
39
|
|
|
25
40
|
.editor-post-featured-image__toggle,
|
|
@@ -183,7 +183,7 @@ export default function PostPreviewButton( {
|
|
|
183
183
|
className={ className || 'editor-post-preview' }
|
|
184
184
|
href={ href }
|
|
185
185
|
target={ targetId }
|
|
186
|
-
|
|
186
|
+
accessibleWhenDisabled
|
|
187
187
|
disabled={ ! isSaveable }
|
|
188
188
|
onClick={ openPreviewWindow }
|
|
189
189
|
role={ role }
|
|
@@ -93,7 +93,7 @@ export class PostPublishPanel extends Component {
|
|
|
93
93
|
</div>
|
|
94
94
|
<div className="editor-post-publish-panel__header-cancel-button">
|
|
95
95
|
<Button
|
|
96
|
-
|
|
96
|
+
accessibleWhenDisabled
|
|
97
97
|
disabled={ isSavingNonPostEntityChanges }
|
|
98
98
|
onClick={ onClose }
|
|
99
99
|
variant="secondary"
|
|
@@ -21,6 +21,7 @@ import { store as preferencesStore } from '@wordpress/preferences';
|
|
|
21
21
|
/**
|
|
22
22
|
* Internal dependencies
|
|
23
23
|
*/
|
|
24
|
+
import { STATUS_OPTIONS } from '../../components/post-status';
|
|
24
25
|
import { store as editorStore } from '../../store';
|
|
25
26
|
|
|
26
27
|
/**
|
|
@@ -104,10 +105,19 @@ export default function PostSavedState( { forceIsDirty } ) {
|
|
|
104
105
|
return null;
|
|
105
106
|
}
|
|
106
107
|
|
|
108
|
+
// We shouldn't render the button if the post has not one of the following statuses: pending, draft, auto-draft.
|
|
109
|
+
// The reason for this is that this button handles the `save as pending` and `save draft` actions.
|
|
110
|
+
// An exception for this is when the post has a custom status and there should be a way to save changes without
|
|
111
|
+
// having to publish. This should be handled better in the future when custom statuses have better support.
|
|
112
|
+
// @see https://github.com/WordPress/gutenberg/issues/3144.
|
|
113
|
+
const isIneligibleStatus =
|
|
114
|
+
! [ 'pending', 'draft', 'auto-draft' ].includes( postStatus ) &&
|
|
115
|
+
STATUS_OPTIONS.map( ( { value } ) => value ).includes( postStatus );
|
|
116
|
+
|
|
107
117
|
if (
|
|
108
118
|
isPublished ||
|
|
109
119
|
isScheduled ||
|
|
110
|
-
|
|
120
|
+
isIneligibleStatus ||
|
|
111
121
|
( postStatusHasChanged &&
|
|
112
122
|
[ 'pending', 'draft' ].includes( postStatus ) )
|
|
113
123
|
) {
|
|
@@ -7,6 +7,7 @@ import { parseISO, endOfMonth, startOfMonth } from 'date-fns';
|
|
|
7
7
|
* WordPress dependencies
|
|
8
8
|
*/
|
|
9
9
|
import { getSettings } from '@wordpress/date';
|
|
10
|
+
import { _x } from '@wordpress/i18n';
|
|
10
11
|
import { useDispatch, useSelect } from '@wordpress/data';
|
|
11
12
|
import { privateApis as blockEditorPrivateApis } from '@wordpress/block-editor';
|
|
12
13
|
import { useState, useMemo } from '@wordpress/element';
|
|
@@ -98,6 +99,10 @@ export function PrivatePostSchedule( {
|
|
|
98
99
|
currentDate={ postDate }
|
|
99
100
|
onChange={ onUpdateDate }
|
|
100
101
|
is12Hour={ is12HourTime }
|
|
102
|
+
dateOrder={
|
|
103
|
+
/* translators: Order of day, month, and year. Available formats are 'dmy', 'mdy', and 'ymd'. */
|
|
104
|
+
_x( 'dmy', 'date order' )
|
|
105
|
+
}
|
|
101
106
|
events={ events }
|
|
102
107
|
onMonthPreviewed={ ( date ) =>
|
|
103
108
|
setPreviewedMonth( parseISO( date ) )
|
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import PostTypeSupportCheck from '../post-type-support-check';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Wrapper component that renders its children only if the post type supports the slug.
|
|
8
|
+
*
|
|
9
|
+
* @param {Object} props Props.
|
|
10
|
+
* @param {Element} props.children Children to be rendered.
|
|
11
|
+
*
|
|
12
|
+
* @return {Component} The component to be rendered.
|
|
13
|
+
*/
|
|
6
14
|
export default function PostSlugCheck( { children } ) {
|
|
7
15
|
return (
|
|
8
16
|
<PostTypeSupportCheck supportKeys="slug">
|
|
@@ -58,6 +58,11 @@ function PostSlugControl() {
|
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
* Renders the PostSlug component. It provide a control for editing the post slug.
|
|
63
|
+
*
|
|
64
|
+
* @return {Component} The component to be rendered.
|
|
65
|
+
*/
|
|
61
66
|
export default function PostSlug() {
|
|
62
67
|
return (
|
|
63
68
|
<PostSlugCheck>
|
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
NAVIGATION_POST_TYPE,
|
|
28
28
|
} from '../../store/constants';
|
|
29
29
|
import PostPanelRow from '../post-panel-row';
|
|
30
|
+
import PostSticky from '../post-sticky';
|
|
30
31
|
import { PrivatePostSchedule } from '../post-schedule';
|
|
31
32
|
import { store as editorStore } from '../../store';
|
|
32
33
|
|
|
@@ -39,7 +40,7 @@ const labels = {
|
|
|
39
40
|
publish: __( 'Published' ),
|
|
40
41
|
};
|
|
41
42
|
|
|
42
|
-
const STATUS_OPTIONS = [
|
|
43
|
+
export const STATUS_OPTIONS = [
|
|
43
44
|
{
|
|
44
45
|
label: (
|
|
45
46
|
<>
|
|
@@ -281,6 +282,7 @@ export default function PostStatus() {
|
|
|
281
282
|
) }
|
|
282
283
|
</VStack>
|
|
283
284
|
) }
|
|
285
|
+
<PostSticky />
|
|
284
286
|
</VStack>
|
|
285
287
|
</form>
|
|
286
288
|
</>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
4
|
import { __ } from '@wordpress/i18n';
|
|
5
|
-
import {
|
|
5
|
+
import { CheckboxControl } from '@wordpress/components';
|
|
6
6
|
import { useDispatch, useSelect } from '@wordpress/data';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -10,10 +10,9 @@ import { useDispatch, useSelect } from '@wordpress/data';
|
|
|
10
10
|
*/
|
|
11
11
|
import PostStickyCheck from './check';
|
|
12
12
|
import { store as editorStore } from '../../store';
|
|
13
|
-
import PostPanelRow from '../post-panel-row';
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
|
-
* Renders the PostSticky component. It
|
|
15
|
+
* Renders the PostSticky component. It provides a checkbox control for the sticky post feature.
|
|
17
16
|
*
|
|
18
17
|
* @return {Component} The component to be rendered.
|
|
19
18
|
*/
|
|
@@ -27,16 +26,14 @@ export default function PostSticky() {
|
|
|
27
26
|
|
|
28
27
|
return (
|
|
29
28
|
<PostStickyCheck>
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/>
|
|
39
|
-
</PostPanelRow>
|
|
29
|
+
<CheckboxControl
|
|
30
|
+
className="editor-post-sticky__checkbox-control"
|
|
31
|
+
label={ __( 'Sticky' ) }
|
|
32
|
+
help={ __( 'Pin this post to the top of the blog' ) }
|
|
33
|
+
checked={ postSticky }
|
|
34
|
+
onChange={ () => editPost( { sticky: ! postSticky } ) }
|
|
35
|
+
__nextHasNoMarginBottom
|
|
36
|
+
/>
|
|
40
37
|
</PostStickyCheck>
|
|
41
38
|
);
|
|
42
39
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
`PostTaxonomies` is a component used to render the taxonomy picker
|
|
4
4
|
UI. It uses the `FlatTermSelector` or `HierarchicalTermSelector` components
|
|
5
5
|
based on the value of the `hierarchical` argument specified in
|
|
6
|
-
[register_taxonomy](https://
|
|
6
|
+
[register_taxonomy](https://developer.wordpress.org/reference/functions/register_taxonomy).
|
|
7
7
|
|
|
8
8
|
The output of the respective taxonomy components can be customized using
|
|
9
9
|
the following filter:
|
|
@@ -109,6 +109,8 @@ export default function CreateNewTemplateModal( { onClose } ) {
|
|
|
109
109
|
<Modal
|
|
110
110
|
title={ __( 'Create custom template' ) }
|
|
111
111
|
onRequestClose={ cancel }
|
|
112
|
+
focusOnMount="firstContentElement"
|
|
113
|
+
size="small"
|
|
112
114
|
>
|
|
113
115
|
<form
|
|
114
116
|
className="editor-post-template__create-form"
|
|
@@ -85,21 +85,14 @@ function PostTitle( _, forwardedRef ) {
|
|
|
85
85
|
let plainText = '';
|
|
86
86
|
let html = '';
|
|
87
87
|
|
|
88
|
-
// IE11 only supports `Text` as an argument for `getData` and will
|
|
89
|
-
// otherwise throw an invalid argument error, so we try the standard
|
|
90
|
-
// arguments first, then fallback to `Text` if they fail.
|
|
91
88
|
try {
|
|
92
89
|
plainText = clipboardData.getData( 'text/plain' );
|
|
93
90
|
html = clipboardData.getData( 'text/html' );
|
|
94
|
-
} catch (
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
// don't support clipboardData at all, so allow default
|
|
100
|
-
// behaviour.
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
91
|
+
} catch ( error ) {
|
|
92
|
+
// Some browsers like UC Browser paste plain text by default and
|
|
93
|
+
// don't support clipboardData at all, so allow default
|
|
94
|
+
// behaviour.
|
|
95
|
+
return;
|
|
103
96
|
}
|
|
104
97
|
|
|
105
98
|
// Allows us to ask for this information when we get a report.
|
|
@@ -50,7 +50,7 @@ export default function PreviewDropdown( { forceIsAutosaveable, disabled } ) {
|
|
|
50
50
|
size: 'compact',
|
|
51
51
|
showTooltip: ! showIconLabels,
|
|
52
52
|
disabled,
|
|
53
|
-
|
|
53
|
+
accessibleWhenDisabled: disabled,
|
|
54
54
|
};
|
|
55
55
|
const menuProps = {
|
|
56
56
|
'aria-label': __( 'View options' ),
|
|
@@ -171,17 +171,9 @@ class NativeEditorProvider extends Component {
|
|
|
171
171
|
);
|
|
172
172
|
|
|
173
173
|
this.subscriptionParentUpdateEditorSettings =
|
|
174
|
-
subscribeUpdateEditorSettings(
|
|
175
|
-
(
|
|
176
|
-
|
|
177
|
-
window.wp.galleryBlockV2Enabled =
|
|
178
|
-
galleryWithImageBlocks;
|
|
179
|
-
}
|
|
180
|
-
updateEditorSettings(
|
|
181
|
-
this.getThemeColors( editorSettings )
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
|
-
);
|
|
174
|
+
subscribeUpdateEditorSettings( ( { ...editorSettings } ) => {
|
|
175
|
+
updateEditorSettings( this.getThemeColors( editorSettings ) );
|
|
176
|
+
} );
|
|
185
177
|
|
|
186
178
|
this.subscriptionParentUpdateCapabilities = subscribeUpdateCapabilities(
|
|
187
179
|
( payload ) => {
|
|
@@ -27,7 +27,7 @@ import { lock, unlock } from '../../lock-unlock';
|
|
|
27
27
|
import { useGlobalStylesContext } from '../global-styles-provider';
|
|
28
28
|
|
|
29
29
|
const EMPTY_BLOCKS_LIST = [];
|
|
30
|
-
const
|
|
30
|
+
const EMPTY_OBJECT = {};
|
|
31
31
|
|
|
32
32
|
function __experimentalReusableBlocksSelect( select ) {
|
|
33
33
|
return (
|
|
@@ -42,7 +42,6 @@ const BLOCK_EDITOR_SETTINGS = [
|
|
|
42
42
|
'__experimentalDiscussionSettings',
|
|
43
43
|
'__experimentalFeatures',
|
|
44
44
|
'__experimentalGlobalStylesBaseStyles',
|
|
45
|
-
'__unstableGalleryWithImageBlocks',
|
|
46
45
|
'alignWide',
|
|
47
46
|
'blockInspectorTabs',
|
|
48
47
|
'allowedMimeTypes',
|
|
@@ -88,8 +87,12 @@ const BLOCK_EDITOR_SETTINGS = [
|
|
|
88
87
|
'__experimentalArchiveTitleNameLabel',
|
|
89
88
|
];
|
|
90
89
|
|
|
91
|
-
const {
|
|
92
|
-
|
|
90
|
+
const {
|
|
91
|
+
globalStylesDataKey,
|
|
92
|
+
globalStylesLinksDataKey,
|
|
93
|
+
selectBlockPatternsKey,
|
|
94
|
+
reusableBlocksSelectKey,
|
|
95
|
+
} = unlock( privateApis );
|
|
93
96
|
|
|
94
97
|
/**
|
|
95
98
|
* React hook used to compute the block editor settings to use for the post editor.
|
|
@@ -179,7 +182,8 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) {
|
|
|
179
182
|
);
|
|
180
183
|
|
|
181
184
|
const { merged: mergedGlobalStyles } = useGlobalStylesContext();
|
|
182
|
-
const globalStylesData = mergedGlobalStyles.styles ??
|
|
185
|
+
const globalStylesData = mergedGlobalStyles.styles ?? EMPTY_OBJECT;
|
|
186
|
+
const globalStylesLinksData = mergedGlobalStyles._links ?? EMPTY_OBJECT;
|
|
183
187
|
|
|
184
188
|
const settingsBlockPatterns =
|
|
185
189
|
settings.__experimentalAdditionalBlockPatterns ?? // WP 6.0
|
|
@@ -268,6 +272,7 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) {
|
|
|
268
272
|
)
|
|
269
273
|
),
|
|
270
274
|
[ globalStylesDataKey ]: globalStylesData,
|
|
275
|
+
[ globalStylesLinksDataKey ]: globalStylesLinksData,
|
|
271
276
|
allowedBlockTypes,
|
|
272
277
|
allowRightClickOverrides,
|
|
273
278
|
focusMode: focusMode && ! forceDisableFocusMode,
|
|
@@ -30,20 +30,28 @@ export default function SavePublishPanels( {
|
|
|
30
30
|
useDispatch( editorStore );
|
|
31
31
|
const {
|
|
32
32
|
publishSidebarOpened,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
33
|
+
isPublishable,
|
|
34
|
+
isDirty,
|
|
35
|
+
hasOtherEntitiesChanges,
|
|
36
|
+
} = useSelect( ( select ) => {
|
|
37
|
+
const {
|
|
38
|
+
isPublishSidebarOpened,
|
|
39
|
+
isEditedPostPublishable,
|
|
40
|
+
isCurrentPostPublished,
|
|
41
|
+
isEditedPostDirty,
|
|
42
|
+
hasNonPostEntityChanges,
|
|
43
|
+
} = select( editorStore );
|
|
44
|
+
const _hasOtherEntitiesChanges =
|
|
45
|
+
hasNonPostEntityChanges() ||
|
|
46
|
+
unlock( select( editorStore ) ).hasPostMetaChanges();
|
|
47
|
+
return {
|
|
48
|
+
publishSidebarOpened: isPublishSidebarOpened(),
|
|
49
|
+
isPublishable:
|
|
50
|
+
! isCurrentPostPublished() && isEditedPostPublishable(),
|
|
51
|
+
isDirty: _hasOtherEntitiesChanges || isEditedPostDirty(),
|
|
52
|
+
hasOtherEntitiesChanges: _hasOtherEntitiesChanges,
|
|
53
|
+
};
|
|
54
|
+
}, [] );
|
|
47
55
|
|
|
48
56
|
const openEntitiesSavedStates = useCallback(
|
|
49
57
|
() => setEntitiesSavedStatesCallback( true ),
|
|
@@ -62,29 +70,31 @@ export default function SavePublishPanels( {
|
|
|
62
70
|
PostPublishExtension={ PluginPostPublishPanel.Slot }
|
|
63
71
|
/>
|
|
64
72
|
);
|
|
65
|
-
} else if (
|
|
73
|
+
} else if ( isPublishable && ! hasOtherEntitiesChanges ) {
|
|
66
74
|
unmountableContent = (
|
|
67
|
-
<div className="editor-layout__toggle-
|
|
75
|
+
<div className="editor-layout__toggle-publish-panel">
|
|
68
76
|
<Button
|
|
69
77
|
variant="secondary"
|
|
70
|
-
className="editor-layout__toggle-
|
|
71
|
-
onClick={
|
|
78
|
+
className="editor-layout__toggle-publish-panel-button"
|
|
79
|
+
onClick={ togglePublishSidebar }
|
|
72
80
|
aria-expanded={ false }
|
|
73
81
|
>
|
|
74
|
-
{ __( 'Open
|
|
82
|
+
{ __( 'Open publish panel' ) }
|
|
75
83
|
</Button>
|
|
76
84
|
</div>
|
|
77
85
|
);
|
|
78
86
|
} else {
|
|
79
87
|
unmountableContent = (
|
|
80
|
-
<div className="editor-layout__toggle-
|
|
88
|
+
<div className="editor-layout__toggle-entities-saved-states-panel">
|
|
81
89
|
<Button
|
|
82
90
|
variant="secondary"
|
|
83
|
-
className="editor-layout__toggle-
|
|
84
|
-
onClick={
|
|
91
|
+
className="editor-layout__toggle-entities-saved-states-panel-button"
|
|
92
|
+
onClick={ openEntitiesSavedStates }
|
|
85
93
|
aria-expanded={ false }
|
|
94
|
+
disabled={ ! isDirty }
|
|
95
|
+
accessibleWhenDisabled
|
|
86
96
|
>
|
|
87
|
-
{ __( 'Open
|
|
97
|
+
{ __( 'Open save panel' ) }
|
|
88
98
|
</Button>
|
|
89
99
|
</div>
|
|
90
100
|
);
|
|
@@ -30,6 +30,7 @@ import PostTaxonomiesPanel from '../post-taxonomies/panel';
|
|
|
30
30
|
import PostTransformPanel from '../post-transform-panel';
|
|
31
31
|
import SidebarHeader from './header';
|
|
32
32
|
import TemplateContentPanel from '../template-content-panel';
|
|
33
|
+
import TemplatePartContentPanel from '../template-part-content-panel';
|
|
33
34
|
import useAutoSwitchEditorSidebars from '../provider/use-auto-switch-editor-sidebars';
|
|
34
35
|
import { sidebars } from './constants';
|
|
35
36
|
import { unlock } from '../../lock-unlock';
|
|
@@ -111,9 +112,8 @@ const SidebarContent = ( {
|
|
|
111
112
|
<Tabs.TabPanel tabId={ sidebars.document } focusable={ false }>
|
|
112
113
|
<PostSummary onActionPerformed={ onActionPerformed } />
|
|
113
114
|
<PluginDocumentSettingPanel.Slot />
|
|
114
|
-
{ renderingMode
|
|
115
|
-
|
|
116
|
-
) }
|
|
115
|
+
<TemplateContentPanel renderingMode={ renderingMode } />
|
|
116
|
+
<TemplatePartContentPanel />
|
|
117
117
|
<PostTransformPanel />
|
|
118
118
|
<PostTaxonomiesPanel />
|
|
119
119
|
<PatternOverridesPanel />
|
|
@@ -21,7 +21,6 @@ import PostLastEditedPanel from '../post-last-edited-panel';
|
|
|
21
21
|
import PostPanelSection from '../post-panel-section';
|
|
22
22
|
import PostSchedulePanel from '../post-schedule/panel';
|
|
23
23
|
import PostStatusPanel from '../post-status';
|
|
24
|
-
import PostStickyPanel from '../post-sticky';
|
|
25
24
|
import PostSyncStatus from '../post-sync-status';
|
|
26
25
|
import PostTemplatePanel from '../post-template/panel';
|
|
27
26
|
import PostURLPanel from '../post-url/panel';
|
|
@@ -29,7 +28,6 @@ import BlogTitle from '../blog-title';
|
|
|
29
28
|
import PostsPerPage from '../posts-per-page';
|
|
30
29
|
import SiteDiscussion from '../site-discussion';
|
|
31
30
|
import { store as editorStore } from '../../store';
|
|
32
|
-
import TemplateAreas from '../template-areas';
|
|
33
31
|
import { PrivatePostLastRevision } from '../post-last-revision';
|
|
34
32
|
|
|
35
33
|
/**
|
|
@@ -84,9 +82,7 @@ export default function PostSummary( { onActionPerformed } ) {
|
|
|
84
82
|
<PostsPerPage />
|
|
85
83
|
<SiteDiscussion />
|
|
86
84
|
<PostFormatPanel />
|
|
87
|
-
<PostStickyPanel />
|
|
88
85
|
</VStack>
|
|
89
|
-
<TemplateAreas />
|
|
90
86
|
{ fills }
|
|
91
87
|
</VStack>
|
|
92
88
|
) }
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { useSelect } from '@wordpress/data';
|
|
4
|
+
import { useSelect, useDispatch } from '@wordpress/data';
|
|
5
5
|
import {
|
|
6
6
|
store as blockEditorStore,
|
|
7
7
|
privateApis as blockEditorPrivateApis,
|
|
8
8
|
} from '@wordpress/block-editor';
|
|
9
9
|
import { PanelBody } from '@wordpress/components';
|
|
10
10
|
import { __ } from '@wordpress/i18n';
|
|
11
|
+
import { store as interfaceStore } from '@wordpress/interface';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Internal dependencies
|
|
14
15
|
*/
|
|
15
16
|
import { unlock } from '../../lock-unlock';
|
|
17
|
+
import { TEMPLATE_POST_TYPE } from '../../store/constants';
|
|
18
|
+
import { store as editorStore } from '../../store';
|
|
16
19
|
|
|
17
20
|
const { BlockQuickNavigation } = unlock( blockEditorPrivateApis );
|
|
18
21
|
|
|
@@ -22,15 +25,36 @@ const PAGE_CONTENT_BLOCKS = [
|
|
|
22
25
|
'core/post-title',
|
|
23
26
|
];
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
const TEMPLATE_PART_BLOCK = 'core/template-part';
|
|
29
|
+
|
|
30
|
+
export default function TemplateContentPanel( { renderingMode } ) {
|
|
31
|
+
const { enableComplementaryArea } = useDispatch( interfaceStore );
|
|
32
|
+
const { clientIds, postType } = useSelect( ( select ) => {
|
|
27
33
|
const { getBlocksByName } = select( blockEditorStore );
|
|
28
|
-
|
|
34
|
+
const { getCurrentPostType } = select( editorStore );
|
|
35
|
+
const _postType = getCurrentPostType();
|
|
36
|
+
return {
|
|
37
|
+
postType: _postType,
|
|
38
|
+
clientIds: getBlocksByName(
|
|
39
|
+
TEMPLATE_POST_TYPE === _postType
|
|
40
|
+
? TEMPLATE_PART_BLOCK
|
|
41
|
+
: PAGE_CONTENT_BLOCKS
|
|
42
|
+
),
|
|
43
|
+
};
|
|
29
44
|
}, [] );
|
|
30
45
|
|
|
46
|
+
if ( renderingMode === 'post-only' && postType !== TEMPLATE_POST_TYPE ) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
|
|
31
50
|
return (
|
|
32
51
|
<PanelBody title={ __( 'Content' ) }>
|
|
33
|
-
<BlockQuickNavigation
|
|
52
|
+
<BlockQuickNavigation
|
|
53
|
+
clientIds={ clientIds }
|
|
54
|
+
onSelect={ () => {
|
|
55
|
+
enableComplementaryArea( 'core', 'edit-post/document' );
|
|
56
|
+
} }
|
|
57
|
+
/>
|
|
34
58
|
</PanelBody>
|
|
35
59
|
);
|
|
36
60
|
}
|