@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
|
@@ -0,0 +1,854 @@
|
|
|
1
|
+
/// <reference types="rememo" />
|
|
2
|
+
/**
|
|
3
|
+
* Returns true if the currently edited post is yet to be saved, or false if
|
|
4
|
+
* the post has been saved.
|
|
5
|
+
*
|
|
6
|
+
* @param {Object} state Global application state.
|
|
7
|
+
*
|
|
8
|
+
* @return {boolean} Whether the post is new.
|
|
9
|
+
*/
|
|
10
|
+
export function isEditedPostNew(state: Object): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Returns true if content includes unsaved changes, or false otherwise.
|
|
13
|
+
*
|
|
14
|
+
* @param {Object} state Editor state.
|
|
15
|
+
*
|
|
16
|
+
* @return {boolean} Whether content includes unsaved changes.
|
|
17
|
+
*/
|
|
18
|
+
export function hasChangedContent(state: Object): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Returns true if there are no unsaved values for the current edit session and
|
|
21
|
+
* if the currently edited post is new (has never been saved before).
|
|
22
|
+
*
|
|
23
|
+
* @param {Object} state Global application state.
|
|
24
|
+
*
|
|
25
|
+
* @return {boolean} Whether new post and unsaved values exist.
|
|
26
|
+
*/
|
|
27
|
+
export function isCleanNewPost(state: Object): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Returns the post type of the post currently being edited.
|
|
30
|
+
*
|
|
31
|
+
* @param {Object} state Global application state.
|
|
32
|
+
*
|
|
33
|
+
* @return {string} Post type.
|
|
34
|
+
*/
|
|
35
|
+
export function getCurrentPostType(state: Object): string;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the ID of the post currently being edited, or null if the post has
|
|
38
|
+
* not yet been saved.
|
|
39
|
+
*
|
|
40
|
+
* @param {Object} state Global application state.
|
|
41
|
+
*
|
|
42
|
+
* @return {?number} ID of current post.
|
|
43
|
+
*/
|
|
44
|
+
export function getCurrentPostId(state: Object): number | null;
|
|
45
|
+
/**
|
|
46
|
+
* Returns the template ID currently being rendered/edited
|
|
47
|
+
*
|
|
48
|
+
* @param {Object} state Global application state.
|
|
49
|
+
*
|
|
50
|
+
* @return {string?} Template ID.
|
|
51
|
+
*/
|
|
52
|
+
export function getCurrentTemplateId(state: Object): string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the number of revisions of the post currently being edited.
|
|
55
|
+
*
|
|
56
|
+
* @param {Object} state Global application state.
|
|
57
|
+
*
|
|
58
|
+
* @return {number} Number of revisions.
|
|
59
|
+
*/
|
|
60
|
+
export function getCurrentPostRevisionsCount(state: Object): number;
|
|
61
|
+
/**
|
|
62
|
+
* Returns the last revision ID of the post currently being edited,
|
|
63
|
+
* or null if the post has no revisions.
|
|
64
|
+
*
|
|
65
|
+
* @param {Object} state Global application state.
|
|
66
|
+
*
|
|
67
|
+
* @return {?number} ID of the last revision.
|
|
68
|
+
*/
|
|
69
|
+
export function getCurrentPostLastRevisionId(state: Object): number | null;
|
|
70
|
+
/**
|
|
71
|
+
* Returns an attribute value of the saved post.
|
|
72
|
+
*
|
|
73
|
+
* @param {Object} state Global application state.
|
|
74
|
+
* @param {string} attributeName Post attribute name.
|
|
75
|
+
*
|
|
76
|
+
* @return {*} Post attribute value.
|
|
77
|
+
*/
|
|
78
|
+
export function getCurrentPostAttribute(state: Object, attributeName: string): any;
|
|
79
|
+
/**
|
|
80
|
+
* Returns a single attribute of the post being edited, preferring the unsaved
|
|
81
|
+
* edit if one exists, but falling back to the attribute for the last known
|
|
82
|
+
* saved state of the post.
|
|
83
|
+
*
|
|
84
|
+
* @param {Object} state Global application state.
|
|
85
|
+
* @param {string} attributeName Post attribute name.
|
|
86
|
+
*
|
|
87
|
+
* @return {*} Post attribute value.
|
|
88
|
+
*/
|
|
89
|
+
export function getEditedPostAttribute(state: Object, attributeName: string): any;
|
|
90
|
+
/**
|
|
91
|
+
* Returns the current visibility of the post being edited, preferring the
|
|
92
|
+
* unsaved value if different than the saved post. The return value is one of
|
|
93
|
+
* "private", "password", or "public".
|
|
94
|
+
*
|
|
95
|
+
* @param {Object} state Global application state.
|
|
96
|
+
*
|
|
97
|
+
* @return {string} Post visibility.
|
|
98
|
+
*/
|
|
99
|
+
export function getEditedPostVisibility(state: Object): string;
|
|
100
|
+
/**
|
|
101
|
+
* Returns true if post is pending review.
|
|
102
|
+
*
|
|
103
|
+
* @param {Object} state Global application state.
|
|
104
|
+
*
|
|
105
|
+
* @return {boolean} Whether current post is pending review.
|
|
106
|
+
*/
|
|
107
|
+
export function isCurrentPostPending(state: Object): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Return true if the current post has already been published.
|
|
110
|
+
*
|
|
111
|
+
* @param {Object} state Global application state.
|
|
112
|
+
* @param {Object?} currentPost Explicit current post for bypassing registry selector.
|
|
113
|
+
*
|
|
114
|
+
* @return {boolean} Whether the post has been published.
|
|
115
|
+
*/
|
|
116
|
+
export function isCurrentPostPublished(state: Object, currentPost: Object | null): boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Returns true if post is already scheduled.
|
|
119
|
+
*
|
|
120
|
+
* @param {Object} state Global application state.
|
|
121
|
+
*
|
|
122
|
+
* @return {boolean} Whether current post is scheduled to be posted.
|
|
123
|
+
*/
|
|
124
|
+
export function isCurrentPostScheduled(state: Object): boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Return true if the post being edited can be published.
|
|
127
|
+
*
|
|
128
|
+
* @param {Object} state Global application state.
|
|
129
|
+
*
|
|
130
|
+
* @return {boolean} Whether the post can been published.
|
|
131
|
+
*/
|
|
132
|
+
export function isEditedPostPublishable(state: Object): boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Returns true if the post can be saved, or false otherwise. A post must
|
|
135
|
+
* contain a title, an excerpt, or non-empty content to be valid for save.
|
|
136
|
+
*
|
|
137
|
+
* @param {Object} state Global application state.
|
|
138
|
+
*
|
|
139
|
+
* @return {boolean} Whether the post can be saved.
|
|
140
|
+
*/
|
|
141
|
+
export function isEditedPostSaveable(state: Object): boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Return true if the post being edited is being scheduled. Preferring the
|
|
144
|
+
* unsaved status values.
|
|
145
|
+
*
|
|
146
|
+
* @param {Object} state Global application state.
|
|
147
|
+
*
|
|
148
|
+
* @return {boolean} Whether the post has been published.
|
|
149
|
+
*/
|
|
150
|
+
export function isEditedPostBeingScheduled(state: Object): boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Returns whether the current post should be considered to have a "floating"
|
|
153
|
+
* date (i.e. that it would publish "Immediately" rather than at a set time).
|
|
154
|
+
*
|
|
155
|
+
* Unlike in the PHP backend, the REST API returns a full date string for posts
|
|
156
|
+
* where the 0000-00-00T00:00:00 placeholder is present in the database. To
|
|
157
|
+
* infer that a post is set to publish "Immediately" we check whether the date
|
|
158
|
+
* and modified date are the same.
|
|
159
|
+
*
|
|
160
|
+
* @param {Object} state Editor state.
|
|
161
|
+
*
|
|
162
|
+
* @return {boolean} Whether the edited post has a floating date value.
|
|
163
|
+
*/
|
|
164
|
+
export function isEditedPostDateFloating(state: Object): boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Returns true if the post is currently being deleted, or false otherwise.
|
|
167
|
+
*
|
|
168
|
+
* @param {Object} state Editor state.
|
|
169
|
+
*
|
|
170
|
+
* @return {boolean} Whether post is being deleted.
|
|
171
|
+
*/
|
|
172
|
+
export function isDeletingPost(state: Object): boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Returns true if the post is currently being saved, or false otherwise.
|
|
175
|
+
*
|
|
176
|
+
* @param {Object} state Global application state.
|
|
177
|
+
*
|
|
178
|
+
* @return {boolean} Whether post is being saved.
|
|
179
|
+
*/
|
|
180
|
+
export function isSavingPost(state: Object): boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Returns true if the post is autosaving, or false otherwise.
|
|
183
|
+
*
|
|
184
|
+
* @param {Object} state Global application state.
|
|
185
|
+
*
|
|
186
|
+
* @return {boolean} Whether the post is autosaving.
|
|
187
|
+
*/
|
|
188
|
+
export function isAutosavingPost(state: Object): boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Returns true if the post is being previewed, or false otherwise.
|
|
191
|
+
*
|
|
192
|
+
* @param {Object} state Global application state.
|
|
193
|
+
*
|
|
194
|
+
* @return {boolean} Whether the post is being previewed.
|
|
195
|
+
*/
|
|
196
|
+
export function isPreviewingPost(state: Object): boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Returns the post preview link
|
|
199
|
+
*
|
|
200
|
+
* @param {Object} state Global application state.
|
|
201
|
+
*
|
|
202
|
+
* @return {string | undefined} Preview Link.
|
|
203
|
+
*/
|
|
204
|
+
export function getEditedPostPreviewLink(state: Object): string | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* Returns true if the post is being published, or false otherwise.
|
|
207
|
+
*
|
|
208
|
+
* @param {Object} state Global application state.
|
|
209
|
+
*
|
|
210
|
+
* @return {boolean} Whether post is being published.
|
|
211
|
+
*/
|
|
212
|
+
export function isPublishingPost(state: Object): boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Returns whether the permalink is editable or not.
|
|
215
|
+
*
|
|
216
|
+
* @param {Object} state Editor state.
|
|
217
|
+
*
|
|
218
|
+
* @return {boolean} Whether or not the permalink is editable.
|
|
219
|
+
*/
|
|
220
|
+
export function isPermalinkEditable(state: Object): boolean;
|
|
221
|
+
/**
|
|
222
|
+
* Returns the permalink for the post.
|
|
223
|
+
*
|
|
224
|
+
* @param {Object} state Editor state.
|
|
225
|
+
*
|
|
226
|
+
* @return {?string} The permalink, or null if the post is not viewable.
|
|
227
|
+
*/
|
|
228
|
+
export function getPermalink(state: Object): string | null;
|
|
229
|
+
/**
|
|
230
|
+
* Returns the slug for the post being edited, preferring a manually edited
|
|
231
|
+
* value if one exists, then a sanitized version of the current post title, and
|
|
232
|
+
* finally the post ID.
|
|
233
|
+
*
|
|
234
|
+
* @param {Object} state Editor state.
|
|
235
|
+
*
|
|
236
|
+
* @return {string} The current slug to be displayed in the editor
|
|
237
|
+
*/
|
|
238
|
+
export function getEditedPostSlug(state: Object): string;
|
|
239
|
+
/**
|
|
240
|
+
* Returns the permalink for a post, split into its three parts: the prefix,
|
|
241
|
+
* the postName, and the suffix.
|
|
242
|
+
*
|
|
243
|
+
* @param {Object} state Editor state.
|
|
244
|
+
*
|
|
245
|
+
* @return {Object} An object containing the prefix, postName, and suffix for
|
|
246
|
+
* the permalink, or null if the post is not viewable.
|
|
247
|
+
*/
|
|
248
|
+
export function getPermalinkParts(state: Object): Object;
|
|
249
|
+
/**
|
|
250
|
+
* Returns whether the post is locked.
|
|
251
|
+
*
|
|
252
|
+
* @param {Object} state Global application state.
|
|
253
|
+
*
|
|
254
|
+
* @return {boolean} Is locked.
|
|
255
|
+
*/
|
|
256
|
+
export function isPostLocked(state: Object): boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Returns whether post saving is locked.
|
|
259
|
+
*
|
|
260
|
+
* @param {Object} state Global application state.
|
|
261
|
+
*
|
|
262
|
+
* @return {boolean} Is locked.
|
|
263
|
+
*/
|
|
264
|
+
export function isPostSavingLocked(state: Object): boolean;
|
|
265
|
+
/**
|
|
266
|
+
* Returns whether post autosaving is locked.
|
|
267
|
+
*
|
|
268
|
+
* @param {Object} state Global application state.
|
|
269
|
+
*
|
|
270
|
+
* @return {boolean} Is locked.
|
|
271
|
+
*/
|
|
272
|
+
export function isPostAutosavingLocked(state: Object): boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Returns whether the edition of the post has been taken over.
|
|
275
|
+
*
|
|
276
|
+
* @param {Object} state Global application state.
|
|
277
|
+
*
|
|
278
|
+
* @return {boolean} Is post lock takeover.
|
|
279
|
+
*/
|
|
280
|
+
export function isPostLockTakeover(state: Object): boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Returns details about the post lock user.
|
|
283
|
+
*
|
|
284
|
+
* @param {Object} state Global application state.
|
|
285
|
+
*
|
|
286
|
+
* @return {Object} A user object.
|
|
287
|
+
*/
|
|
288
|
+
export function getPostLockUser(state: Object): Object;
|
|
289
|
+
/**
|
|
290
|
+
* Returns the active post lock.
|
|
291
|
+
*
|
|
292
|
+
* @param {Object} state Global application state.
|
|
293
|
+
*
|
|
294
|
+
* @return {Object} The lock object.
|
|
295
|
+
*/
|
|
296
|
+
export function getActivePostLock(state: Object): Object;
|
|
297
|
+
/**
|
|
298
|
+
* Returns whether or not the user has the unfiltered_html capability.
|
|
299
|
+
*
|
|
300
|
+
* @param {Object} state Editor state.
|
|
301
|
+
*
|
|
302
|
+
* @return {boolean} Whether the user can or can't post unfiltered HTML.
|
|
303
|
+
*/
|
|
304
|
+
export function canUserUseUnfilteredHTML(state: Object): boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Returns true if the given panel was programmatically removed, or false otherwise.
|
|
307
|
+
* All panels are not removed by default.
|
|
308
|
+
*
|
|
309
|
+
* @param {Object} state Global application state.
|
|
310
|
+
* @param {string} panelName A string that identifies the panel.
|
|
311
|
+
*
|
|
312
|
+
* @return {boolean} Whether or not the panel is removed.
|
|
313
|
+
*/
|
|
314
|
+
export function isEditorPanelRemoved(state: Object, panelName: string): boolean;
|
|
315
|
+
/**
|
|
316
|
+
* A block selection object.
|
|
317
|
+
*
|
|
318
|
+
* @typedef {Object} WPBlockSelection
|
|
319
|
+
*
|
|
320
|
+
* @property {string} clientId A block client ID.
|
|
321
|
+
* @property {string} attributeKey A block attribute key.
|
|
322
|
+
* @property {number} offset An attribute value offset, based on the rich
|
|
323
|
+
* text value. See `wp.richText.create`.
|
|
324
|
+
*/
|
|
325
|
+
/**
|
|
326
|
+
* Returns the current selection start.
|
|
327
|
+
*
|
|
328
|
+
* @param {Object} state
|
|
329
|
+
* @return {WPBlockSelection} The selection start.
|
|
330
|
+
*
|
|
331
|
+
* @deprecated since Gutenberg 10.0.0.
|
|
332
|
+
*/
|
|
333
|
+
export function getEditorSelectionStart(state: Object): WPBlockSelection;
|
|
334
|
+
/**
|
|
335
|
+
* Returns the current selection end.
|
|
336
|
+
*
|
|
337
|
+
* @param {Object} state
|
|
338
|
+
* @return {WPBlockSelection} The selection end.
|
|
339
|
+
*
|
|
340
|
+
* @deprecated since Gutenberg 10.0.0.
|
|
341
|
+
*/
|
|
342
|
+
export function getEditorSelectionEnd(state: Object): WPBlockSelection;
|
|
343
|
+
/**
|
|
344
|
+
* Returns the current selection.
|
|
345
|
+
*
|
|
346
|
+
* @param {Object} state
|
|
347
|
+
* @return {WPBlockSelection} The selection end.
|
|
348
|
+
*/
|
|
349
|
+
export function getEditorSelection(state: Object): WPBlockSelection;
|
|
350
|
+
/**
|
|
351
|
+
* Is the editor ready
|
|
352
|
+
*
|
|
353
|
+
* @param {Object} state
|
|
354
|
+
* @return {boolean} is Ready.
|
|
355
|
+
*/
|
|
356
|
+
export function __unstableIsEditorReady(state: Object): boolean;
|
|
357
|
+
/**
|
|
358
|
+
* Returns the post editor settings.
|
|
359
|
+
*
|
|
360
|
+
* @param {Object} state Editor state.
|
|
361
|
+
*
|
|
362
|
+
* @return {Object} The editor settings object.
|
|
363
|
+
*/
|
|
364
|
+
export function getEditorSettings(state: Object): Object;
|
|
365
|
+
/**
|
|
366
|
+
* Returns the post editor's rendering mode.
|
|
367
|
+
*
|
|
368
|
+
* @param {Object} state Editor state.
|
|
369
|
+
*
|
|
370
|
+
* @return {string} Rendering mode.
|
|
371
|
+
*/
|
|
372
|
+
export function getRenderingMode(state: Object): string;
|
|
373
|
+
/**
|
|
374
|
+
* Returns the current editing canvas device type.
|
|
375
|
+
*
|
|
376
|
+
* @param {Object} state Global application state.
|
|
377
|
+
*
|
|
378
|
+
* @return {string} Device type.
|
|
379
|
+
*/
|
|
380
|
+
export function getDeviceType(state: Object): string;
|
|
381
|
+
/**
|
|
382
|
+
* Returns true if the list view is opened.
|
|
383
|
+
*
|
|
384
|
+
* @param {Object} state Global application state.
|
|
385
|
+
*
|
|
386
|
+
* @return {boolean} Whether the list view is opened.
|
|
387
|
+
*/
|
|
388
|
+
export function isListViewOpened(state: Object): boolean;
|
|
389
|
+
/**
|
|
390
|
+
* Returns true if the inserter is opened.
|
|
391
|
+
*
|
|
392
|
+
* @param {Object} state Global application state.
|
|
393
|
+
*
|
|
394
|
+
* @return {boolean} Whether the inserter is opened.
|
|
395
|
+
*/
|
|
396
|
+
export function isInserterOpened(state: Object): boolean;
|
|
397
|
+
/**
|
|
398
|
+
* Returns state object prior to a specified optimist transaction ID, or `null`
|
|
399
|
+
* if the transaction corresponding to the given ID cannot be found.
|
|
400
|
+
*
|
|
401
|
+
* @deprecated since Gutenberg 9.7.0.
|
|
402
|
+
*/
|
|
403
|
+
export function getStateBeforeOptimisticTransaction(): null;
|
|
404
|
+
/**
|
|
405
|
+
* Returns true if an optimistic transaction is pending commit, for which the
|
|
406
|
+
* before state satisfies the given predicate function.
|
|
407
|
+
*
|
|
408
|
+
* @deprecated since Gutenberg 9.7.0.
|
|
409
|
+
*/
|
|
410
|
+
export function inSomeHistory(): boolean;
|
|
411
|
+
/**
|
|
412
|
+
* Returns the default template types.
|
|
413
|
+
*
|
|
414
|
+
* @param {Object} state Global application state.
|
|
415
|
+
*
|
|
416
|
+
* @return {Object} The template types.
|
|
417
|
+
*/
|
|
418
|
+
export function __experimentalGetDefaultTemplateTypes(state: Object): Object;
|
|
419
|
+
/**
|
|
420
|
+
* Returns true if the publish sidebar is opened.
|
|
421
|
+
*
|
|
422
|
+
* @param {Object} state Global application state
|
|
423
|
+
*
|
|
424
|
+
* @return {boolean} Whether the publish sidebar is open.
|
|
425
|
+
*/
|
|
426
|
+
export function isPublishSidebarOpened(state: Object): boolean;
|
|
427
|
+
/**
|
|
428
|
+
* Returns true if any past editor history snapshots exist, or false otherwise.
|
|
429
|
+
*
|
|
430
|
+
* @param {Object} state Global application state.
|
|
431
|
+
*
|
|
432
|
+
* @return {boolean} Whether undo history exists.
|
|
433
|
+
*/
|
|
434
|
+
export const hasEditorUndo: Function;
|
|
435
|
+
/**
|
|
436
|
+
* Returns true if any future editor history snapshots exist, or false
|
|
437
|
+
* otherwise.
|
|
438
|
+
*
|
|
439
|
+
* @param {Object} state Global application state.
|
|
440
|
+
*
|
|
441
|
+
* @return {boolean} Whether redo history exists.
|
|
442
|
+
*/
|
|
443
|
+
export const hasEditorRedo: Function;
|
|
444
|
+
/**
|
|
445
|
+
* Returns true if there are unsaved values for the current edit session, or
|
|
446
|
+
* false if the editing state matches the saved or new post.
|
|
447
|
+
*
|
|
448
|
+
* @param {Object} state Global application state.
|
|
449
|
+
*
|
|
450
|
+
* @return {boolean} Whether unsaved values exist.
|
|
451
|
+
*/
|
|
452
|
+
export const isEditedPostDirty: Function;
|
|
453
|
+
/**
|
|
454
|
+
* Returns true if there are unsaved edits for entities other than
|
|
455
|
+
* the editor's post, and false otherwise.
|
|
456
|
+
*
|
|
457
|
+
* @param {Object} state Global application state.
|
|
458
|
+
*
|
|
459
|
+
* @return {boolean} Whether there are edits or not.
|
|
460
|
+
*/
|
|
461
|
+
export const hasNonPostEntityChanges: Function;
|
|
462
|
+
/**
|
|
463
|
+
* Returns the post currently being edited in its last known saved state, not
|
|
464
|
+
* including unsaved edits. Returns an object containing relevant default post
|
|
465
|
+
* values if the post has not yet been saved.
|
|
466
|
+
*
|
|
467
|
+
* @param {Object} state Global application state.
|
|
468
|
+
*
|
|
469
|
+
* @return {Object} Post object.
|
|
470
|
+
*/
|
|
471
|
+
export const getCurrentPost: Function;
|
|
472
|
+
/**
|
|
473
|
+
* Returns any post values which have been changed in the editor but not yet
|
|
474
|
+
* been saved.
|
|
475
|
+
*
|
|
476
|
+
* @param {Object} state Global application state.
|
|
477
|
+
*
|
|
478
|
+
* @return {Object} Object of key value pairs comprising unsaved edits.
|
|
479
|
+
*/
|
|
480
|
+
export const getPostEdits: Function;
|
|
481
|
+
/**
|
|
482
|
+
* Returns an attribute value of the current autosave revision for a post, or
|
|
483
|
+
* null if there is no autosave for the post.
|
|
484
|
+
*
|
|
485
|
+
* @deprecated since 5.6. Callers should use the `getAutosave( postType, postId, userId )` selector
|
|
486
|
+
* from the '@wordpress/core-data' package and access properties on the returned
|
|
487
|
+
* autosave object using getPostRawValue.
|
|
488
|
+
*
|
|
489
|
+
* @param {Object} state Global application state.
|
|
490
|
+
* @param {string} attributeName Autosave attribute name.
|
|
491
|
+
*
|
|
492
|
+
* @return {*} Autosave attribute value.
|
|
493
|
+
*/
|
|
494
|
+
export const getAutosaveAttribute: Function;
|
|
495
|
+
/**
|
|
496
|
+
* Returns true if the edited post has content. A post has content if it has at
|
|
497
|
+
* least one saveable block or otherwise has a non-empty content property
|
|
498
|
+
* assigned.
|
|
499
|
+
*
|
|
500
|
+
* @param {Object} state Global application state.
|
|
501
|
+
*
|
|
502
|
+
* @return {boolean} Whether post has content.
|
|
503
|
+
*/
|
|
504
|
+
export const isEditedPostEmpty: Function;
|
|
505
|
+
/**
|
|
506
|
+
* Returns true if the post can be autosaved, or false otherwise.
|
|
507
|
+
*
|
|
508
|
+
* @param {Object} state Global application state.
|
|
509
|
+
* @param {Object} autosave A raw autosave object from the REST API.
|
|
510
|
+
*
|
|
511
|
+
* @return {boolean} Whether the post can be autosaved.
|
|
512
|
+
*/
|
|
513
|
+
export const isEditedPostAutosaveable: Function;
|
|
514
|
+
/**
|
|
515
|
+
* Returns true if non-post entities are currently being saved, or false otherwise.
|
|
516
|
+
*
|
|
517
|
+
* @param {Object} state Global application state.
|
|
518
|
+
*
|
|
519
|
+
* @return {boolean} Whether non-post entities are being saved.
|
|
520
|
+
*/
|
|
521
|
+
export const isSavingNonPostEntityChanges: Function;
|
|
522
|
+
/**
|
|
523
|
+
* Returns true if a previous post save was attempted successfully, or false
|
|
524
|
+
* otherwise.
|
|
525
|
+
*
|
|
526
|
+
* @param {Object} state Global application state.
|
|
527
|
+
*
|
|
528
|
+
* @return {boolean} Whether the post was saved successfully.
|
|
529
|
+
*/
|
|
530
|
+
export const didPostSaveRequestSucceed: Function;
|
|
531
|
+
/**
|
|
532
|
+
* Returns true if a previous post save was attempted but failed, or false
|
|
533
|
+
* otherwise.
|
|
534
|
+
*
|
|
535
|
+
* @param {Object} state Global application state.
|
|
536
|
+
*
|
|
537
|
+
* @return {boolean} Whether the post save failed.
|
|
538
|
+
*/
|
|
539
|
+
export const didPostSaveRequestFail: Function;
|
|
540
|
+
/**
|
|
541
|
+
* Returns a suggested post format for the current post, inferred only if there
|
|
542
|
+
* is a single block within the post and it is of a type known to match a
|
|
543
|
+
* default post format. Returns null if the format cannot be determined.
|
|
544
|
+
*
|
|
545
|
+
* @return {?string} Suggested post format.
|
|
546
|
+
*/
|
|
547
|
+
export const getSuggestedPostFormat: Function;
|
|
548
|
+
/**
|
|
549
|
+
* Returns the content of the post being edited.
|
|
550
|
+
*
|
|
551
|
+
* @param {Object} state Global application state.
|
|
552
|
+
*
|
|
553
|
+
* @return {string} Post content.
|
|
554
|
+
*/
|
|
555
|
+
export const getEditedPostContent: Function;
|
|
556
|
+
/**
|
|
557
|
+
* Returns whether the pre-publish panel should be shown
|
|
558
|
+
* or skipped when the user clicks the "publish" button.
|
|
559
|
+
*
|
|
560
|
+
* @return {boolean} Whether the pre-publish panel should be shown or not.
|
|
561
|
+
*/
|
|
562
|
+
export const isPublishSidebarEnabled: Function;
|
|
563
|
+
/**
|
|
564
|
+
* Return the current block list.
|
|
565
|
+
*
|
|
566
|
+
* @param {Object} state
|
|
567
|
+
* @return {Array} Block list.
|
|
568
|
+
*/
|
|
569
|
+
export const getEditorBlocks: ((state: any) => any) & import("rememo").EnhancedSelector;
|
|
570
|
+
/**
|
|
571
|
+
* Returns true if the given panel is enabled, or false otherwise. Panels are
|
|
572
|
+
* enabled by default.
|
|
573
|
+
*
|
|
574
|
+
* @param {Object} state Global application state.
|
|
575
|
+
* @param {string} panelName A string that identifies the panel.
|
|
576
|
+
*
|
|
577
|
+
* @return {boolean} Whether or not the panel is enabled.
|
|
578
|
+
*/
|
|
579
|
+
export const isEditorPanelEnabled: Function;
|
|
580
|
+
/**
|
|
581
|
+
* Returns true if the given panel is open, or false otherwise. Panels are
|
|
582
|
+
* closed by default.
|
|
583
|
+
*
|
|
584
|
+
* @param {Object} state Global application state.
|
|
585
|
+
* @param {string} panelName A string that identifies the panel.
|
|
586
|
+
*
|
|
587
|
+
* @return {boolean} Whether or not the panel is open.
|
|
588
|
+
*/
|
|
589
|
+
export const isEditorPanelOpened: Function;
|
|
590
|
+
/**
|
|
591
|
+
* Returns the current editing mode.
|
|
592
|
+
*
|
|
593
|
+
* @param {Object} state Global application state.
|
|
594
|
+
*
|
|
595
|
+
* @return {string} Editing mode.
|
|
596
|
+
*/
|
|
597
|
+
export const getEditorMode: Function;
|
|
598
|
+
/**
|
|
599
|
+
* @see getBlockName in core/block-editor store.
|
|
600
|
+
*/
|
|
601
|
+
export const getBlockName: Function;
|
|
602
|
+
/**
|
|
603
|
+
* @see isBlockValid in core/block-editor store.
|
|
604
|
+
*/
|
|
605
|
+
export const isBlockValid: Function;
|
|
606
|
+
/**
|
|
607
|
+
* @see getBlockAttributes in core/block-editor store.
|
|
608
|
+
*/
|
|
609
|
+
export const getBlockAttributes: Function;
|
|
610
|
+
/**
|
|
611
|
+
* @see getBlock in core/block-editor store.
|
|
612
|
+
*/
|
|
613
|
+
export const getBlock: Function;
|
|
614
|
+
/**
|
|
615
|
+
* @see getBlocks in core/block-editor store.
|
|
616
|
+
*/
|
|
617
|
+
export const getBlocks: Function;
|
|
618
|
+
/**
|
|
619
|
+
* @see getClientIdsOfDescendants in core/block-editor store.
|
|
620
|
+
*/
|
|
621
|
+
export const getClientIdsOfDescendants: Function;
|
|
622
|
+
/**
|
|
623
|
+
* @see getClientIdsWithDescendants in core/block-editor store.
|
|
624
|
+
*/
|
|
625
|
+
export const getClientIdsWithDescendants: Function;
|
|
626
|
+
/**
|
|
627
|
+
* @see getGlobalBlockCount in core/block-editor store.
|
|
628
|
+
*/
|
|
629
|
+
export const getGlobalBlockCount: Function;
|
|
630
|
+
/**
|
|
631
|
+
* @see getBlocksByClientId in core/block-editor store.
|
|
632
|
+
*/
|
|
633
|
+
export const getBlocksByClientId: Function;
|
|
634
|
+
/**
|
|
635
|
+
* @see getBlockCount in core/block-editor store.
|
|
636
|
+
*/
|
|
637
|
+
export const getBlockCount: Function;
|
|
638
|
+
/**
|
|
639
|
+
* @see getBlockSelectionStart in core/block-editor store.
|
|
640
|
+
*/
|
|
641
|
+
export const getBlockSelectionStart: Function;
|
|
642
|
+
/**
|
|
643
|
+
* @see getBlockSelectionEnd in core/block-editor store.
|
|
644
|
+
*/
|
|
645
|
+
export const getBlockSelectionEnd: Function;
|
|
646
|
+
/**
|
|
647
|
+
* @see getSelectedBlockCount in core/block-editor store.
|
|
648
|
+
*/
|
|
649
|
+
export const getSelectedBlockCount: Function;
|
|
650
|
+
/**
|
|
651
|
+
* @see hasSelectedBlock in core/block-editor store.
|
|
652
|
+
*/
|
|
653
|
+
export const hasSelectedBlock: Function;
|
|
654
|
+
/**
|
|
655
|
+
* @see getSelectedBlockClientId in core/block-editor store.
|
|
656
|
+
*/
|
|
657
|
+
export const getSelectedBlockClientId: Function;
|
|
658
|
+
/**
|
|
659
|
+
* @see getSelectedBlock in core/block-editor store.
|
|
660
|
+
*/
|
|
661
|
+
export const getSelectedBlock: Function;
|
|
662
|
+
/**
|
|
663
|
+
* @see getBlockRootClientId in core/block-editor store.
|
|
664
|
+
*/
|
|
665
|
+
export const getBlockRootClientId: Function;
|
|
666
|
+
/**
|
|
667
|
+
* @see getBlockHierarchyRootClientId in core/block-editor store.
|
|
668
|
+
*/
|
|
669
|
+
export const getBlockHierarchyRootClientId: Function;
|
|
670
|
+
/**
|
|
671
|
+
* @see getAdjacentBlockClientId in core/block-editor store.
|
|
672
|
+
*/
|
|
673
|
+
export const getAdjacentBlockClientId: Function;
|
|
674
|
+
/**
|
|
675
|
+
* @see getPreviousBlockClientId in core/block-editor store.
|
|
676
|
+
*/
|
|
677
|
+
export const getPreviousBlockClientId: Function;
|
|
678
|
+
/**
|
|
679
|
+
* @see getNextBlockClientId in core/block-editor store.
|
|
680
|
+
*/
|
|
681
|
+
export const getNextBlockClientId: Function;
|
|
682
|
+
/**
|
|
683
|
+
* @see getSelectedBlocksInitialCaretPosition in core/block-editor store.
|
|
684
|
+
*/
|
|
685
|
+
export const getSelectedBlocksInitialCaretPosition: Function;
|
|
686
|
+
/**
|
|
687
|
+
* @see getMultiSelectedBlockClientIds in core/block-editor store.
|
|
688
|
+
*/
|
|
689
|
+
export const getMultiSelectedBlockClientIds: Function;
|
|
690
|
+
/**
|
|
691
|
+
* @see getMultiSelectedBlocks in core/block-editor store.
|
|
692
|
+
*/
|
|
693
|
+
export const getMultiSelectedBlocks: Function;
|
|
694
|
+
/**
|
|
695
|
+
* @see getFirstMultiSelectedBlockClientId in core/block-editor store.
|
|
696
|
+
*/
|
|
697
|
+
export const getFirstMultiSelectedBlockClientId: Function;
|
|
698
|
+
/**
|
|
699
|
+
* @see getLastMultiSelectedBlockClientId in core/block-editor store.
|
|
700
|
+
*/
|
|
701
|
+
export const getLastMultiSelectedBlockClientId: Function;
|
|
702
|
+
/**
|
|
703
|
+
* @see isFirstMultiSelectedBlock in core/block-editor store.
|
|
704
|
+
*/
|
|
705
|
+
export const isFirstMultiSelectedBlock: Function;
|
|
706
|
+
/**
|
|
707
|
+
* @see isBlockMultiSelected in core/block-editor store.
|
|
708
|
+
*/
|
|
709
|
+
export const isBlockMultiSelected: Function;
|
|
710
|
+
/**
|
|
711
|
+
* @see isAncestorMultiSelected in core/block-editor store.
|
|
712
|
+
*/
|
|
713
|
+
export const isAncestorMultiSelected: Function;
|
|
714
|
+
/**
|
|
715
|
+
* @see getMultiSelectedBlocksStartClientId in core/block-editor store.
|
|
716
|
+
*/
|
|
717
|
+
export const getMultiSelectedBlocksStartClientId: Function;
|
|
718
|
+
/**
|
|
719
|
+
* @see getMultiSelectedBlocksEndClientId in core/block-editor store.
|
|
720
|
+
*/
|
|
721
|
+
export const getMultiSelectedBlocksEndClientId: Function;
|
|
722
|
+
/**
|
|
723
|
+
* @see getBlockOrder in core/block-editor store.
|
|
724
|
+
*/
|
|
725
|
+
export const getBlockOrder: Function;
|
|
726
|
+
/**
|
|
727
|
+
* @see getBlockIndex in core/block-editor store.
|
|
728
|
+
*/
|
|
729
|
+
export const getBlockIndex: Function;
|
|
730
|
+
/**
|
|
731
|
+
* @see isBlockSelected in core/block-editor store.
|
|
732
|
+
*/
|
|
733
|
+
export const isBlockSelected: Function;
|
|
734
|
+
/**
|
|
735
|
+
* @see hasSelectedInnerBlock in core/block-editor store.
|
|
736
|
+
*/
|
|
737
|
+
export const hasSelectedInnerBlock: Function;
|
|
738
|
+
/**
|
|
739
|
+
* @see isBlockWithinSelection in core/block-editor store.
|
|
740
|
+
*/
|
|
741
|
+
export const isBlockWithinSelection: Function;
|
|
742
|
+
/**
|
|
743
|
+
* @see hasMultiSelection in core/block-editor store.
|
|
744
|
+
*/
|
|
745
|
+
export const hasMultiSelection: Function;
|
|
746
|
+
/**
|
|
747
|
+
* @see isMultiSelecting in core/block-editor store.
|
|
748
|
+
*/
|
|
749
|
+
export const isMultiSelecting: Function;
|
|
750
|
+
/**
|
|
751
|
+
* @see isSelectionEnabled in core/block-editor store.
|
|
752
|
+
*/
|
|
753
|
+
export const isSelectionEnabled: Function;
|
|
754
|
+
/**
|
|
755
|
+
* @see getBlockMode in core/block-editor store.
|
|
756
|
+
*/
|
|
757
|
+
export const getBlockMode: Function;
|
|
758
|
+
/**
|
|
759
|
+
* @see isTyping in core/block-editor store.
|
|
760
|
+
*/
|
|
761
|
+
export const isTyping: Function;
|
|
762
|
+
/**
|
|
763
|
+
* @see isCaretWithinFormattedText in core/block-editor store.
|
|
764
|
+
*/
|
|
765
|
+
export const isCaretWithinFormattedText: Function;
|
|
766
|
+
/**
|
|
767
|
+
* @see getBlockInsertionPoint in core/block-editor store.
|
|
768
|
+
*/
|
|
769
|
+
export const getBlockInsertionPoint: Function;
|
|
770
|
+
/**
|
|
771
|
+
* @see isBlockInsertionPointVisible in core/block-editor store.
|
|
772
|
+
*/
|
|
773
|
+
export const isBlockInsertionPointVisible: Function;
|
|
774
|
+
/**
|
|
775
|
+
* @see isValidTemplate in core/block-editor store.
|
|
776
|
+
*/
|
|
777
|
+
export const isValidTemplate: Function;
|
|
778
|
+
/**
|
|
779
|
+
* @see getTemplate in core/block-editor store.
|
|
780
|
+
*/
|
|
781
|
+
export const getTemplate: Function;
|
|
782
|
+
/**
|
|
783
|
+
* @see getTemplateLock in core/block-editor store.
|
|
784
|
+
*/
|
|
785
|
+
export const getTemplateLock: Function;
|
|
786
|
+
/**
|
|
787
|
+
* @see canInsertBlockType in core/block-editor store.
|
|
788
|
+
*/
|
|
789
|
+
export const canInsertBlockType: Function;
|
|
790
|
+
/**
|
|
791
|
+
* @see getInserterItems in core/block-editor store.
|
|
792
|
+
*/
|
|
793
|
+
export const getInserterItems: Function;
|
|
794
|
+
/**
|
|
795
|
+
* @see hasInserterItems in core/block-editor store.
|
|
796
|
+
*/
|
|
797
|
+
export const hasInserterItems: Function;
|
|
798
|
+
/**
|
|
799
|
+
* @see getBlockListSettings in core/block-editor store.
|
|
800
|
+
*/
|
|
801
|
+
export const getBlockListSettings: Function;
|
|
802
|
+
/**
|
|
803
|
+
* Returns the default template part areas.
|
|
804
|
+
*
|
|
805
|
+
* @param {Object} state Global application state.
|
|
806
|
+
*
|
|
807
|
+
* @return {Array} The template part areas.
|
|
808
|
+
*/
|
|
809
|
+
export const __experimentalGetDefaultTemplatePartAreas: ((state: any) => any) & import("rememo").EnhancedSelector;
|
|
810
|
+
/**
|
|
811
|
+
* Returns a default template type searched by slug.
|
|
812
|
+
*
|
|
813
|
+
* @param {Object} state Global application state.
|
|
814
|
+
* @param {string} slug The template type slug.
|
|
815
|
+
*
|
|
816
|
+
* @return {Object} The template type.
|
|
817
|
+
*/
|
|
818
|
+
export const __experimentalGetDefaultTemplateType: ((state: any, slug: any) => any) & import("rememo").EnhancedSelector;
|
|
819
|
+
/**
|
|
820
|
+
* Given a template entity, return information about it which is ready to be
|
|
821
|
+
* rendered, such as the title, description, and icon.
|
|
822
|
+
*
|
|
823
|
+
* @param {Object} state Global application state.
|
|
824
|
+
* @param {Object} template The template for which we need information.
|
|
825
|
+
* @return {Object} Information about the template, including title, description, and icon.
|
|
826
|
+
*/
|
|
827
|
+
export const __experimentalGetTemplateInfo: ((state: any, template: any) => {}) & import("rememo").EnhancedSelector;
|
|
828
|
+
/**
|
|
829
|
+
* Returns a post type label depending on the current post.
|
|
830
|
+
*
|
|
831
|
+
* @param {Object} state Global application state.
|
|
832
|
+
*
|
|
833
|
+
* @return {string|undefined} The post type label if available, otherwise undefined.
|
|
834
|
+
*/
|
|
835
|
+
export const getPostTypeLabel: Function;
|
|
836
|
+
/**
|
|
837
|
+
* A block selection object.
|
|
838
|
+
*/
|
|
839
|
+
export type WPBlockSelection = {
|
|
840
|
+
/**
|
|
841
|
+
* A block client ID.
|
|
842
|
+
*/
|
|
843
|
+
clientId: string;
|
|
844
|
+
/**
|
|
845
|
+
* A block attribute key.
|
|
846
|
+
*/
|
|
847
|
+
attributeKey: string;
|
|
848
|
+
/**
|
|
849
|
+
* An attribute value offset, based on the rich
|
|
850
|
+
* text value. See `wp.richText.create`.
|
|
851
|
+
*/
|
|
852
|
+
offset: number;
|
|
853
|
+
};
|
|
854
|
+
//# sourceMappingURL=selectors.d.ts.map
|