@wordpress/editor 14.45.0 → 14.45.2-next.v.202605131032.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 +6 -0
- package/README.md +12 -0
- package/build/components/collab-sidebar/index.cjs +42 -25
- package/build/components/collab-sidebar/index.cjs.map +2 -2
- package/build/components/collab-sidebar/note-thread.cjs +19 -9
- package/build/components/collab-sidebar/note-thread.cjs.map +2 -2
- package/build/components/collab-sidebar/notes.cjs +8 -6
- package/build/components/collab-sidebar/notes.cjs.map +2 -2
- package/build/components/collab-sidebar/utils.cjs +24 -9
- package/build/components/collab-sidebar/utils.cjs.map +2 -2
- package/build/components/collaborators-presence/index.cjs +0 -10
- package/build/components/collaborators-presence/index.cjs.map +3 -3
- package/build/components/collaborators-presence/list.cjs +0 -10
- package/build/components/collaborators-presence/list.cjs.map +3 -3
- package/build/components/post-last-revision/index.cjs +5 -0
- package/build/components/post-last-revision/index.cjs.map +2 -2
- package/build/components/post-publish-panel/index.cjs +112 -124
- package/build/components/post-publish-panel/index.cjs.map +3 -3
- package/build/components/post-revisions-preview/block-diff.cjs +91 -23
- package/build/components/post-revisions-preview/block-diff.cjs.map +2 -2
- package/build/components/post-revisions-preview/diff-markers.cjs +3 -2
- package/build/components/post-revisions-preview/diff-markers.cjs.map +2 -2
- package/build/components/post-revisions-preview/revisions-slider.cjs +98 -50
- package/build/components/post-revisions-preview/revisions-slider.cjs.map +2 -2
- package/build/store/private-actions.cjs +21 -0
- package/build/store/private-actions.cjs.map +2 -2
- package/build/store/private-selectors.cjs +93 -42
- package/build/store/private-selectors.cjs.map +2 -2
- package/build/store/reducer.cjs +15 -0
- package/build/store/reducer.cjs.map +2 -2
- package/build/store/selectors.cjs.map +2 -2
- package/build-module/components/collab-sidebar/index.mjs +42 -25
- package/build-module/components/collab-sidebar/index.mjs.map +2 -2
- package/build-module/components/collab-sidebar/note-thread.mjs +24 -10
- package/build-module/components/collab-sidebar/note-thread.mjs.map +2 -2
- package/build-module/components/collab-sidebar/notes.mjs +8 -6
- package/build-module/components/collab-sidebar/notes.mjs.map +2 -2
- package/build-module/components/collab-sidebar/utils.mjs +22 -8
- package/build-module/components/collab-sidebar/utils.mjs.map +2 -2
- package/build-module/components/collaborators-presence/index.mjs +0 -10
- package/build-module/components/collaborators-presence/index.mjs.map +3 -3
- package/build-module/components/collaborators-presence/list.mjs +0 -10
- package/build-module/components/collaborators-presence/list.mjs.map +3 -3
- package/build-module/components/post-last-revision/index.mjs +5 -0
- package/build-module/components/post-last-revision/index.mjs.map +2 -2
- package/build-module/components/post-publish-panel/index.mjs +120 -129
- package/build-module/components/post-publish-panel/index.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/block-diff.mjs +91 -23
- package/build-module/components/post-revisions-preview/block-diff.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/diff-markers.mjs +3 -2
- package/build-module/components/post-revisions-preview/diff-markers.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/revisions-slider.mjs +101 -53
- package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +2 -2
- package/build-module/store/private-actions.mjs +20 -0
- package/build-module/store/private-actions.mjs.map +2 -2
- package/build-module/store/private-selectors.mjs +95 -43
- package/build-module/store/private-selectors.mjs.map +2 -2
- package/build-module/store/reducer.mjs +14 -0
- package/build-module/store/reducer.mjs.map +2 -2
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-style/style-rtl.css +398 -33
- package/build-style/style.css +398 -33
- package/build-types/bindings/api.d.ts +1 -1
- package/build-types/bindings/api.d.ts.map +1 -1
- package/build-types/bindings/pattern-overrides.d.ts +8 -5
- package/build-types/bindings/pattern-overrides.d.ts.map +1 -1
- package/build-types/bindings/post-data.d.ts +8 -5
- package/build-types/bindings/post-data.d.ts.map +1 -1
- package/build-types/bindings/post-meta.d.ts +10 -7
- package/build-types/bindings/post-meta.d.ts.map +1 -1
- package/build-types/bindings/term-data.d.ts +9 -6
- package/build-types/bindings/term-data.d.ts.map +1 -1
- package/build-types/components/autocompleters/index.d.ts +2 -2
- package/build-types/components/autocompleters/index.d.ts.map +1 -1
- package/build-types/components/autocompleters/link.d.ts +6 -10
- package/build-types/components/autocompleters/link.d.ts.map +1 -1
- package/build-types/components/autocompleters/user.d.ts +7 -12
- package/build-types/components/autocompleters/user.d.ts.map +1 -1
- package/build-types/components/autosave-monitor/index.d.ts +28 -4
- package/build-types/components/autosave-monitor/index.d.ts.map +1 -1
- package/build-types/components/block-removal-warnings/index.d.ts +3 -0
- package/build-types/components/block-removal-warnings/index.d.ts.map +1 -1
- package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts +7 -7
- package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts.map +1 -1
- package/build-types/components/block-visibility/index.d.ts.map +1 -1
- package/build-types/components/blog-title/index.d.ts.map +1 -1
- package/build-types/components/character-count/index.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/add-note-menu-item.d.ts +2 -2
- package/build-types/components/collab-sidebar/add-note-menu-item.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/add-note.d.ts +2 -2
- package/build-types/components/collab-sidebar/add-note.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/board-store.d.ts +1 -1
- package/build-types/components/collab-sidebar/board-store.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/constants.d.ts +3 -3
- package/build-types/components/collab-sidebar/constants.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/floating-container.d.ts +3 -3
- package/build-types/components/collab-sidebar/floating-container.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/hooks.d.ts +7 -7
- package/build-types/components/collab-sidebar/hooks.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note-byline.d.ts +2 -2
- package/build-types/components/collab-sidebar/note-byline.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note-card.d.ts +3 -3
- package/build-types/components/collab-sidebar/note-card.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note-form.d.ts +4 -4
- package/build-types/components/collab-sidebar/note-form.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note-indicator-toolbar.d.ts +2 -2
- package/build-types/components/collab-sidebar/note-indicator-toolbar.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note-thread.d.ts +5 -5
- package/build-types/components/collab-sidebar/note-thread.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note.d.ts +4 -4
- package/build-types/components/collab-sidebar/note.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/notes.d.ts +2 -2
- package/build-types/components/collab-sidebar/notes.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/utils.d.ts +17 -24
- package/build-types/components/collab-sidebar/utils.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/cursor-dom-utils.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/cursor-registry.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/index.d.ts +4 -1
- package/build-types/components/collaborators-overlay/index.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/overlay.d.ts +1 -1
- package/build-types/components/collaborators-overlay/overlay.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/avatar/component.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/avatar-group/component.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/index.d.ts +1 -2
- package/build-types/components/collaborators-presence/index.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/list.d.ts +1 -2
- package/build-types/components/collaborators-presence/list.d.ts.map +1 -1
- package/build-types/components/collapsible-block-toolbar/index.d.ts.map +1 -1
- package/build-types/components/commands/index.d.ts.map +1 -1
- package/build-types/components/deprecated.d.ts +82 -53
- package/build-types/components/deprecated.d.ts.map +1 -1
- package/build-types/components/document-bar/index.d.ts +3 -3
- package/build-types/components/document-bar/index.d.ts.map +1 -1
- package/build-types/components/document-bar/useEditedSectionDetails.d.ts.map +1 -1
- package/build-types/components/document-outline/check.d.ts +2 -2
- package/build-types/components/document-outline/check.d.ts.map +1 -1
- package/build-types/components/document-outline/index.d.ts +2 -2
- package/build-types/components/document-outline/index.d.ts.map +1 -1
- package/build-types/components/document-outline/item.d.ts +5 -5
- package/build-types/components/document-outline/item.d.ts.map +1 -1
- package/build-types/components/document-tools/index.d.ts +1 -1
- package/build-types/components/document-tools/index.d.ts.map +1 -1
- package/build-types/components/editor/index.d.ts +7 -7
- package/build-types/components/editor/index.d.ts.map +1 -1
- package/build-types/components/editor-history/redo.d.ts +11 -2
- package/build-types/components/editor-history/redo.d.ts.map +1 -1
- package/build-types/components/editor-history/undo.d.ts +11 -2
- package/build-types/components/editor-history/undo.d.ts.map +1 -1
- package/build-types/components/editor-interface/index.d.ts +5 -5
- package/build-types/components/editor-interface/index.d.ts.map +1 -1
- package/build-types/components/editor-notices/index.d.ts +1 -1
- package/build-types/components/editor-notices/index.d.ts.map +1 -1
- package/build-types/components/editor-snackbars/index.d.ts.map +1 -1
- package/build-types/components/entities-saved-states/entity-record-item.d.ts +1 -1
- package/build-types/components/entities-saved-states/entity-record-item.d.ts.map +1 -1
- package/build-types/components/entities-saved-states/entity-type-list.d.ts +2 -2
- package/build-types/components/entities-saved-states/entity-type-list.d.ts.map +1 -1
- package/build-types/components/entities-saved-states/hooks/use-is-dirty.d.ts +10 -1
- package/build-types/components/entities-saved-states/hooks/use-is-dirty.d.ts.map +1 -1
- package/build-types/components/entities-saved-states/index.d.ts +4 -4
- package/build-types/components/entities-saved-states/index.d.ts.map +1 -1
- package/build-types/components/error-boundary/index.d.ts +18 -8
- package/build-types/components/error-boundary/index.d.ts.map +1 -1
- package/build-types/components/global-keyboard-shortcuts/index.d.ts.map +1 -1
- package/build-types/components/global-keyboard-shortcuts/register-shortcuts.d.ts +1 -1
- package/build-types/components/global-keyboard-shortcuts/register-shortcuts.d.ts.map +1 -1
- package/build-types/components/global-styles/block-link.d.ts +1 -1
- package/build-types/components/global-styles/block-link.d.ts.map +1 -1
- package/build-types/components/global-styles/header.d.ts +2 -2
- package/build-types/components/global-styles/header.d.ts.map +1 -1
- package/build-types/components/global-styles/hooks.d.ts +3 -3
- package/build-types/components/global-styles/hooks.d.ts.map +1 -1
- package/build-types/components/global-styles/index.d.ts +3 -3
- package/build-types/components/global-styles/index.d.ts.map +1 -1
- package/build-types/components/global-styles/menu.d.ts +2 -2
- package/build-types/components/global-styles/menu.d.ts.map +1 -1
- package/build-types/components/global-styles-provider/index.d.ts +1 -1
- package/build-types/components/global-styles-provider/index.d.ts.map +1 -1
- package/build-types/components/global-styles-renderer/index.d.ts +1 -1
- package/build-types/components/global-styles-renderer/index.d.ts.map +1 -1
- package/build-types/components/global-styles-sidebar/default-sidebar.d.ts +6 -6
- package/build-types/components/global-styles-sidebar/default-sidebar.d.ts.map +1 -1
- package/build-types/components/global-styles-sidebar/index.d.ts.map +1 -1
- package/build-types/components/global-styles-sidebar/welcome-guide-image.d.ts +1 -1
- package/build-types/components/global-styles-sidebar/welcome-guide-image.d.ts.map +1 -1
- package/build-types/components/global-styles-sidebar/welcome-guide.d.ts.map +1 -1
- package/build-types/components/header/back-button.d.ts +3 -3
- package/build-types/components/header/back-button.d.ts.map +1 -1
- package/build-types/components/header/header-skeleton.d.ts +5 -5
- package/build-types/components/header/header-skeleton.d.ts.map +1 -1
- package/build-types/components/header/index.d.ts +2 -2
- package/build-types/components/header/index.d.ts.map +1 -1
- package/build-types/components/index.d.ts +94 -91
- package/build-types/components/index.d.ts.map +1 -1
- package/build-types/components/inserter-sidebar/index.d.ts.map +1 -1
- package/build-types/components/keyboard-shortcut-help-modal/config.d.ts +3 -3
- package/build-types/components/keyboard-shortcut-help-modal/config.d.ts.map +1 -1
- package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts +1 -1
- package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts.map +1 -1
- package/build-types/components/keyboard-shortcut-help-modal/index.d.ts +1 -1
- package/build-types/components/keyboard-shortcut-help-modal/index.d.ts.map +1 -1
- package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts +3 -3
- package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts.map +1 -1
- package/build-types/components/list-view-sidebar/index.d.ts.map +1 -1
- package/build-types/components/list-view-sidebar/list-view-outline.d.ts.map +1 -1
- package/build-types/components/local-autosave-monitor/index.d.ts +12 -0
- package/build-types/components/local-autosave-monitor/index.d.ts.map +1 -1
- package/build-types/components/media/index.d.ts +2 -2
- package/build-types/components/media/index.d.ts.map +1 -1
- package/build-types/components/media/media-editor-modal.d.ts.map +1 -1
- package/build-types/components/media/metadata-panel.d.ts.map +1 -1
- package/build-types/components/media/preview.d.ts.map +1 -1
- package/build-types/components/media-categories/index.d.ts +11 -4
- package/build-types/components/media-categories/index.d.ts.map +1 -1
- package/build-types/components/mode-switcher/index.d.ts +1 -1
- package/build-types/components/mode-switcher/index.d.ts.map +1 -1
- package/build-types/components/more-menu/copy-content-menu-item.d.ts.map +1 -1
- package/build-types/components/more-menu/index.d.ts.map +1 -1
- package/build-types/components/more-menu/tools-more-menu-group.d.ts +2 -2
- package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -1
- package/build-types/components/more-menu/view-more-menu-group.d.ts +2 -2
- package/build-types/components/more-menu/view-more-menu-group.d.ts.map +1 -1
- package/build-types/components/page-attributes/check.d.ts +3 -3
- package/build-types/components/page-attributes/check.d.ts.map +1 -1
- package/build-types/components/page-attributes/order.d.ts +1 -1
- package/build-types/components/page-attributes/order.d.ts.map +1 -1
- package/build-types/components/page-attributes/panel.d.ts +1 -1
- package/build-types/components/page-attributes/panel.d.ts.map +1 -1
- package/build-types/components/page-attributes/parent.d.ts +3 -3
- package/build-types/components/page-attributes/parent.d.ts.map +1 -1
- package/build-types/components/pattern-duplicate-modal/index.d.ts +1 -1
- package/build-types/components/pattern-duplicate-modal/index.d.ts.map +1 -1
- package/build-types/components/pattern-overrides-panel/index.d.ts.map +1 -1
- package/build-types/components/pattern-rename-modal/index.d.ts +1 -1
- package/build-types/components/pattern-rename-modal/index.d.ts.map +1 -1
- package/build-types/components/plugin-document-setting-panel/index.d.ts +8 -61
- package/build-types/components/plugin-document-setting-panel/index.d.ts.map +1 -1
- package/build-types/components/plugin-more-menu-item/index.d.ts +5 -5
- package/build-types/components/plugin-more-menu-item/index.d.ts.map +1 -1
- package/build-types/components/plugin-post-publish-panel/index.d.ts +9 -40
- package/build-types/components/plugin-post-publish-panel/index.d.ts.map +1 -1
- package/build-types/components/plugin-post-status-info/index.d.ts +6 -47
- package/build-types/components/plugin-post-status-info/index.d.ts.map +1 -1
- package/build-types/components/plugin-pre-publish-panel/index.d.ts +9 -43
- package/build-types/components/plugin-pre-publish-panel/index.d.ts.map +1 -1
- package/build-types/components/plugin-preview-menu-item/index.d.ts +5 -5
- package/build-types/components/plugin-preview-menu-item/index.d.ts.map +1 -1
- package/build-types/components/plugin-sidebar/index.d.ts +4 -4
- package/build-types/components/plugin-sidebar/index.d.ts.map +1 -1
- package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts +3 -3
- package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts.map +1 -1
- package/build-types/components/post-actions/actions.d.ts +3 -3
- package/build-types/components/post-actions/actions.d.ts.map +1 -1
- package/build-types/components/post-actions/index.d.ts +4 -4
- package/build-types/components/post-actions/index.d.ts.map +1 -1
- package/build-types/components/post-actions/set-as-homepage.d.ts +2 -2
- package/build-types/components/post-actions/set-as-homepage.d.ts.map +1 -1
- package/build-types/components/post-actions/set-as-posts-page.d.ts +2 -2
- package/build-types/components/post-actions/set-as-posts-page.d.ts.map +1 -1
- package/build-types/components/post-author/check.d.ts +2 -2
- package/build-types/components/post-author/check.d.ts.map +1 -1
- package/build-types/components/post-author/combobox.d.ts.map +1 -1
- package/build-types/components/post-author/constants.d.ts +10 -8
- package/build-types/components/post-author/constants.d.ts.map +1 -1
- package/build-types/components/post-author/hook.d.ts +1 -1
- package/build-types/components/post-author/hook.d.ts.map +1 -1
- package/build-types/components/post-author/index.d.ts +2 -2
- package/build-types/components/post-author/index.d.ts.map +1 -1
- package/build-types/components/post-author/panel.d.ts +1 -1
- package/build-types/components/post-author/panel.d.ts.map +1 -1
- package/build-types/components/post-author/select.d.ts.map +1 -1
- package/build-types/components/post-card-panel/index.d.ts +7 -7
- package/build-types/components/post-card-panel/index.d.ts.map +1 -1
- package/build-types/components/post-comments/index.d.ts +6 -1
- package/build-types/components/post-comments/index.d.ts.map +1 -1
- package/build-types/components/post-content-information/index.d.ts +1 -1
- package/build-types/components/post-content-information/index.d.ts.map +1 -1
- package/build-types/components/post-discussion/panel.d.ts +1 -1
- package/build-types/components/post-discussion/panel.d.ts.map +1 -1
- package/build-types/components/post-excerpt/check.d.ts +3 -3
- package/build-types/components/post-excerpt/check.d.ts.map +1 -1
- package/build-types/components/post-excerpt/index.d.ts +3 -3
- package/build-types/components/post-excerpt/index.d.ts.map +1 -1
- package/build-types/components/post-excerpt/panel.d.ts +2 -2
- package/build-types/components/post-excerpt/panel.d.ts.map +1 -1
- package/build-types/components/post-excerpt/plugin.d.ts +6 -43
- package/build-types/components/post-excerpt/plugin.d.ts.map +1 -1
- package/build-types/components/post-featured-image/check.d.ts +3 -3
- package/build-types/components/post-featured-image/check.d.ts.map +1 -1
- package/build-types/components/post-featured-image/index.d.ts +15 -0
- package/build-types/components/post-featured-image/index.d.ts.map +1 -1
- package/build-types/components/post-featured-image/panel.d.ts +1 -1
- package/build-types/components/post-featured-image/panel.d.ts.map +1 -1
- package/build-types/components/post-fields/index.d.ts +1 -1
- package/build-types/components/post-fields/index.d.ts.map +1 -1
- package/build-types/components/post-format/check.d.ts +2 -2
- package/build-types/components/post-format/check.d.ts.map +1 -1
- package/build-types/components/post-format/index.d.ts +12 -12
- package/build-types/components/post-format/index.d.ts.map +1 -1
- package/build-types/components/post-format/panel.d.ts +2 -2
- package/build-types/components/post-format/panel.d.ts.map +1 -1
- package/build-types/components/post-last-edited-panel/index.d.ts.map +1 -1
- package/build-types/components/post-last-revision/check.d.ts +3 -3
- package/build-types/components/post-last-revision/check.d.ts.map +1 -1
- package/build-types/components/post-last-revision/index.d.ts +3 -3
- package/build-types/components/post-last-revision/index.d.ts.map +1 -1
- package/build-types/components/post-last-revision/panel.d.ts +2 -2
- package/build-types/components/post-last-revision/panel.d.ts.map +1 -1
- package/build-types/components/post-locked-modal/index.d.ts +11 -5
- package/build-types/components/post-locked-modal/index.d.ts.map +1 -1
- package/build-types/components/post-panel-row/index.d.ts +1 -1
- package/build-types/components/post-panel-row/index.d.ts.map +1 -1
- package/build-types/components/post-panel-section/index.d.ts +2 -2
- package/build-types/components/post-panel-section/index.d.ts.map +1 -1
- package/build-types/components/post-pending-status/check.d.ts +3 -3
- package/build-types/components/post-pending-status/check.d.ts.map +1 -1
- package/build-types/components/post-pending-status/index.d.ts +1 -1
- package/build-types/components/post-pending-status/index.d.ts.map +1 -1
- package/build-types/components/post-pingbacks/index.d.ts +7 -1
- package/build-types/components/post-pingbacks/index.d.ts.map +1 -1
- package/build-types/components/post-preview-button/index.d.ts +2 -2
- package/build-types/components/post-preview-button/index.d.ts.map +1 -1
- package/build-types/components/post-publish-button/index.d.ts +5 -5
- package/build-types/components/post-publish-button/index.d.ts.map +1 -1
- package/build-types/components/post-publish-button/label.d.ts.map +1 -1
- package/build-types/components/post-publish-button/post-publish-button-or-toggle.d.ts +1 -1
- package/build-types/components/post-publish-button/post-publish-button-or-toggle.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/index.d.ts +17 -13
- package/build-types/components/post-publish-panel/index.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/maybe-category-panel.d.ts +1 -1
- package/build-types/components/post-publish-panel/maybe-category-panel.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/maybe-post-format-panel.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/maybe-tags-panel.d.ts +1 -1
- package/build-types/components/post-publish-panel/maybe-tags-panel.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/maybe-upload-media.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/media-util.d.ts +2 -2
- package/build-types/components/post-publish-panel/media-util.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/postpublish.d.ts +2 -2
- package/build-types/components/post-publish-panel/postpublish.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/prepublish.d.ts +1 -1
- package/build-types/components/post-publish-panel/prepublish.d.ts.map +1 -1
- package/build-types/components/post-revisions-panel/index.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/block-diff.d.ts +1 -1
- package/build-types/components/post-revisions-preview/block-diff.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/diff-format-types.d.ts +2 -2
- package/build-types/components/post-revisions-preview/diff-format-types.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/diff-markers.d.ts +1 -1
- package/build-types/components/post-revisions-preview/diff-markers.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/index.d.ts +2 -2
- package/build-types/components/post-revisions-preview/index.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/preserve-client-ids.d.ts +1 -1
- package/build-types/components/post-revisions-preview/preserve-client-ids.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/revisions-canvas.d.ts +1 -1
- package/build-types/components/post-revisions-preview/revisions-canvas.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/revisions-header.d.ts +2 -2
- package/build-types/components/post-revisions-preview/revisions-header.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/revisions-slider.d.ts +3 -3
- package/build-types/components/post-revisions-preview/revisions-slider.d.ts.map +1 -1
- package/build-types/components/post-saved-state/index.d.ts +1 -1
- package/build-types/components/post-saved-state/index.d.ts.map +1 -1
- package/build-types/components/post-schedule/check.d.ts +2 -2
- package/build-types/components/post-schedule/check.d.ts.map +1 -1
- package/build-types/components/post-schedule/index.d.ts +3 -3
- package/build-types/components/post-schedule/index.d.ts.map +1 -1
- package/build-types/components/post-schedule/label.d.ts +4 -4
- package/build-types/components/post-schedule/label.d.ts.map +1 -1
- package/build-types/components/post-schedule/panel.d.ts +1 -1
- package/build-types/components/post-schedule/panel.d.ts.map +1 -1
- package/build-types/components/post-status/index.d.ts +2 -2
- package/build-types/components/post-status/index.d.ts.map +1 -1
- package/build-types/components/post-sticky/check.d.ts +2 -2
- package/build-types/components/post-sticky/check.d.ts.map +1 -1
- package/build-types/components/post-sticky/index.d.ts +1 -1
- package/build-types/components/post-sticky/index.d.ts.map +1 -1
- package/build-types/components/post-sticky/panel.d.ts +1 -1
- package/build-types/components/post-sticky/panel.d.ts.map +1 -1
- package/build-types/components/post-switch-to-draft-button/index.d.ts +1 -1
- package/build-types/components/post-switch-to-draft-button/index.d.ts.map +1 -1
- package/build-types/components/post-sync-status/index.d.ts +1 -1
- package/build-types/components/post-sync-status/index.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/check.d.ts +2 -2
- package/build-types/components/post-taxonomies/check.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts +4 -4
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts +6 -6
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/index.d.ts +9 -1
- package/build-types/components/post-taxonomies/index.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/most-used-terms.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/panel.d.ts +1 -1
- package/build-types/components/post-taxonomies/panel.d.ts.map +1 -1
- package/build-types/components/post-template/block-theme.d.ts.map +1 -1
- package/build-types/components/post-template/classic-theme.d.ts +8 -1
- package/build-types/components/post-template/classic-theme.d.ts.map +1 -1
- package/build-types/components/post-template/create-new-template-modal.d.ts.map +1 -1
- package/build-types/components/post-template/create-new-template.d.ts.map +1 -1
- package/build-types/components/post-template/hooks.d.ts +5 -5
- package/build-types/components/post-template/hooks.d.ts.map +1 -1
- package/build-types/components/post-template/panel.d.ts +1 -1
- package/build-types/components/post-template/panel.d.ts.map +1 -1
- package/build-types/components/post-template/reset-default-template.d.ts.map +1 -1
- package/build-types/components/post-template/swap-template-button.d.ts +1 -1
- package/build-types/components/post-template/swap-template-button.d.ts.map +1 -1
- package/build-types/components/post-text-editor/index.d.ts +1 -1
- package/build-types/components/post-text-editor/index.d.ts.map +1 -1
- package/build-types/components/post-title/constants.d.ts +2 -2
- package/build-types/components/post-title/constants.d.ts.map +1 -1
- package/build-types/components/post-title/index.d.ts +9 -1
- package/build-types/components/post-title/index.d.ts.map +1 -1
- package/build-types/components/post-title/post-title-raw.d.ts +1 -1
- package/build-types/components/post-title/use-post-title-focus.d.ts.map +1 -1
- package/build-types/components/post-title/use-post-title.d.ts.map +1 -1
- package/build-types/components/post-transform-panel/hooks.d.ts +1 -1
- package/build-types/components/post-transform-panel/hooks.d.ts.map +1 -1
- package/build-types/components/post-transform-panel/index.d.ts.map +1 -1
- package/build-types/components/post-trash/check.d.ts +2 -2
- package/build-types/components/post-trash/check.d.ts.map +1 -1
- package/build-types/components/post-trash/index.d.ts +1 -1
- package/build-types/components/post-trash/index.d.ts.map +1 -1
- package/build-types/components/post-type-support-check/index.d.ts +3 -3
- package/build-types/components/post-type-support-check/index.d.ts.map +1 -1
- package/build-types/components/post-url/check.d.ts +2 -2
- package/build-types/components/post-url/check.d.ts.map +1 -1
- package/build-types/components/post-url/index.d.ts +1 -1
- package/build-types/components/post-url/index.d.ts.map +1 -1
- package/build-types/components/post-url/label.d.ts +2 -2
- package/build-types/components/post-url/label.d.ts.map +1 -1
- package/build-types/components/post-url/panel.d.ts +1 -1
- package/build-types/components/post-url/panel.d.ts.map +1 -1
- package/build-types/components/post-view-link/index.d.ts.map +1 -1
- package/build-types/components/post-visibility/check.d.ts +1 -1
- package/build-types/components/post-visibility/check.d.ts.map +1 -1
- package/build-types/components/post-visibility/index.d.ts +1 -1
- package/build-types/components/post-visibility/index.d.ts.map +1 -1
- package/build-types/components/post-visibility/label.d.ts +1 -1
- package/build-types/components/post-visibility/label.d.ts.map +1 -1
- package/build-types/components/post-visibility/utils.d.ts +1 -1
- package/build-types/components/post-visibility/utils.d.ts.map +1 -1
- package/build-types/components/posts-per-page/index.d.ts.map +1 -1
- package/build-types/components/preferences-modal/enable-panel.d.ts.map +1 -1
- package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts +4 -5
- package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts.map +1 -1
- package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts.map +1 -1
- package/build-types/components/preferences-modal/index.d.ts +3 -0
- package/build-types/components/preferences-modal/index.d.ts.map +1 -1
- package/build-types/components/preview-dropdown/index.d.ts +1 -1
- package/build-types/components/preview-dropdown/index.d.ts.map +1 -1
- package/build-types/components/provider/disable-non-page-content-blocks.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts +33 -33
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/components/provider/navigation-block-editing-mode.d.ts.map +1 -1
- package/build-types/components/provider/use-auto-switch-editor-sidebars.d.ts +1 -1
- package/build-types/components/provider/use-auto-switch-editor-sidebars.d.ts.map +1 -1
- package/build-types/components/provider/use-block-editor-settings.d.ts +1 -1
- package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
- package/build-types/components/provider/use-hide-blocks-from-inserter.d.ts +1 -1
- package/build-types/components/provider/use-hide-blocks-from-inserter.d.ts.map +1 -1
- package/build-types/components/provider/use-post-content-block-types.d.ts.map +1 -1
- package/build-types/components/provider/use-revision-blocks.d.ts +1 -1
- package/build-types/components/provider/use-revision-blocks.d.ts.map +1 -1
- package/build-types/components/provider/use-upload-save-lock.d.ts.map +1 -1
- package/build-types/components/provider/with-registry-provider.d.ts +1 -1
- package/build-types/components/provider/with-registry-provider.d.ts.map +1 -1
- package/build-types/components/resizable-editor/index.d.ts +2 -2
- package/build-types/components/resizable-editor/index.d.ts.map +1 -1
- package/build-types/components/resizable-editor/resize-handle.d.ts.map +1 -1
- package/build-types/components/revision-author-panel/index.d.ts.map +1 -1
- package/build-types/components/revision-block-diff/index.d.ts.map +1 -1
- package/build-types/components/revision-created-panel/index.d.ts.map +1 -1
- package/build-types/components/revision-diff-panel/index.d.ts.map +1 -1
- package/build-types/components/revision-fields-diff/index.d.ts.map +1 -1
- package/build-types/components/save-publish-panels/index.d.ts +7 -7
- package/build-types/components/save-publish-panels/index.d.ts.map +1 -1
- package/build-types/components/sidebar/constants.d.ts +4 -4
- package/build-types/components/sidebar/constants.d.ts.map +1 -1
- package/build-types/components/sidebar/dataform-post-summary.d.ts.map +1 -1
- package/build-types/components/sidebar/header.d.ts +1 -1
- package/build-types/components/sidebar/index.d.ts +3 -3
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/components/sidebar/post-revision-summary.d.ts.map +1 -1
- package/build-types/components/sidebar/post-summary.d.ts.map +1 -1
- package/build-types/components/site-discussion/index.d.ts.map +1 -1
- package/build-types/components/start-page-options/index.d.ts +1 -1
- package/build-types/components/start-page-options/index.d.ts.map +1 -1
- package/build-types/components/start-template-options/index.d.ts.map +1 -1
- package/build-types/components/style-book/categories.d.ts +3 -0
- package/build-types/components/style-book/categories.d.ts.map +1 -1
- package/build-types/components/style-book/color-examples.d.ts.map +1 -1
- package/build-types/components/style-book/duotone-examples.d.ts.map +1 -1
- package/build-types/components/style-book/index.d.ts +19 -8
- package/build-types/components/style-book/index.d.ts.map +1 -1
- package/build-types/components/styles-canvas/index.d.ts +2 -2
- package/build-types/components/styles-canvas/index.d.ts.map +1 -1
- package/build-types/components/styles-canvas/revisions.d.ts +1 -1
- package/build-types/components/styles-canvas/style-book.d.ts +1 -1
- package/build-types/components/table-of-contents/index.d.ts +11 -1
- package/build-types/components/table-of-contents/index.d.ts.map +1 -1
- package/build-types/components/table-of-contents/panel.d.ts +1 -1
- package/build-types/components/table-of-contents/panel.d.ts.map +1 -1
- package/build-types/components/template-actions-panel/block-theme-content.d.ts.map +1 -1
- package/build-types/components/template-actions-panel/classic-theme-content.d.ts.map +1 -1
- package/build-types/components/template-actions-panel/index.d.ts.map +1 -1
- package/build-types/components/template-content-panel/index.d.ts.map +1 -1
- package/build-types/components/template-part-content-panel/index.d.ts.map +1 -1
- package/build-types/components/template-part-menu-items/convert-to-regular.d.ts.map +1 -1
- package/build-types/components/template-part-menu-items/convert-to-template-part.d.ts +1 -1
- package/build-types/components/template-part-menu-items/convert-to-template-part.d.ts.map +1 -1
- package/build-types/components/template-part-menu-items/index.d.ts.map +1 -1
- package/build-types/components/template-validation-notice/index.d.ts.map +1 -1
- package/build-types/components/text-editor/index.d.ts.map +1 -1
- package/build-types/components/theme-support-check/index.d.ts +2 -2
- package/build-types/components/theme-support-check/index.d.ts.map +1 -1
- package/build-types/components/time-to-read/index.d.ts +1 -1
- package/build-types/components/time-to-read/index.d.ts.map +1 -1
- package/build-types/components/unsaved-changes-warning/index.d.ts +1 -1
- package/build-types/components/unsaved-changes-warning/index.d.ts.map +1 -1
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts +1 -1
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts.map +1 -1
- package/build-types/components/visual-editor/index.d.ts +4 -4
- package/build-types/components/visual-editor/index.d.ts.map +1 -1
- package/build-types/components/visual-editor/use-edit-content-only-section-exit.d.ts +1 -1
- package/build-types/components/visual-editor/use-edit-content-only-section-exit.d.ts.map +1 -1
- package/build-types/components/visual-editor/use-padding-appender.d.ts +1 -1
- package/build-types/components/visual-editor/use-padding-appender.d.ts.map +1 -1
- package/build-types/components/visual-editor/use-select-nearest-editable-block.d.ts +1 -1
- package/build-types/components/visual-editor/use-select-nearest-editable-block.d.ts.map +1 -1
- package/build-types/components/visual-editor/use-zoom-out-mode-exit.d.ts +1 -1
- package/build-types/components/visual-editor/use-zoom-out-mode-exit.d.ts.map +1 -1
- package/build-types/components/word-count/index.d.ts +1 -1
- package/build-types/components/word-count/index.d.ts.map +1 -1
- package/build-types/components/zoom-out-toggle/index.d.ts +3 -3
- package/build-types/components/zoom-out-toggle/index.d.ts.map +1 -1
- package/build-types/dataviews/api.d.ts +6 -6
- package/build-types/dataviews/api.d.ts.map +1 -1
- package/build-types/dataviews/fields/content-preview/index.d.ts.map +1 -1
- package/build-types/dataviews/store/private-actions.d.ts +5 -5
- package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/dataviews/store/reducer.d.ts +2 -2
- package/build-types/dataviews/store/reducer.d.ts.map +1 -1
- package/build-types/hooks/custom-sources-backwards-compatibility.d.ts +3 -9
- package/build-types/hooks/custom-sources-backwards-compatibility.d.ts.map +1 -1
- package/build-types/hooks/index.d.ts +10 -1
- package/build-types/hooks/index.d.ts.map +1 -1
- package/build-types/hooks/pattern-overrides.d.ts +1 -1
- package/build-types/hooks/pattern-overrides.d.ts.map +1 -1
- package/build-types/hooks/use-global-styles-output.d.ts +2 -2
- package/build-types/hooks/use-global-styles-output.d.ts.map +1 -1
- package/build-types/index.d.ts +10 -5
- package/build-types/index.d.ts.map +1 -1
- package/build-types/lock-unlock.d.ts +1 -2
- package/build-types/lock-unlock.d.ts.map +1 -1
- package/build-types/private-apis.d.ts +1 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/store/actions.d.ts +330 -116
- package/build-types/store/actions.d.ts.map +1 -1
- package/build-types/store/constants.d.ts.map +1 -1
- package/build-types/store/defaults.d.ts +1 -1
- package/build-types/store/defaults.d.ts.map +1 -1
- package/build-types/store/index.d.ts +77 -9
- package/build-types/store/index.d.ts.map +1 -1
- package/build-types/store/local-autosave.d.ts +3 -3
- package/build-types/store/local-autosave.d.ts.map +1 -1
- package/build-types/store/private-actions.d.ts +106 -46
- package/build-types/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts +96 -68
- package/build-types/store/private-selectors.d.ts.map +1 -1
- package/build-types/store/reducer.d.ts +47 -52
- package/build-types/store/reducer.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +422 -429
- package/build-types/store/selectors.d.ts.map +1 -1
- package/build-types/store/utils/is-template-revertable.d.ts.map +1 -1
- package/build-types/store/utils/notice-builder.d.ts +3 -3
- package/build-types/store/utils/notice-builder.d.ts.map +1 -1
- package/build-types/utils/get-item-title.d.ts +1 -1
- package/build-types/utils/get-item-title.d.ts.map +1 -1
- package/build-types/utils/get-template-info.d.ts +11 -4
- package/build-types/utils/get-template-info.d.ts.map +1 -1
- package/build-types/utils/get-template-part-icon.d.ts +1 -1
- package/build-types/utils/get-template-part-icon.d.ts.map +1 -1
- package/build-types/utils/index.d.ts +6 -3
- package/build-types/utils/index.d.ts.map +1 -1
- package/build-types/utils/media-finalize/index.d.ts.map +1 -1
- package/build-types/utils/media-sideload/index.d.ts +1 -1
- package/build-types/utils/media-sideload/index.d.ts.map +1 -1
- package/build-types/utils/media-upload/index.d.ts +1 -1
- package/build-types/utils/media-upload/index.d.ts.map +1 -1
- package/build-types/utils/media-upload/on-success.d.ts.map +1 -1
- package/build-types/utils/pageTypeBadge.d.ts.map +1 -1
- package/build-types/utils/search-templates.d.ts +1 -1
- package/build-types/utils/search-templates.d.ts.map +1 -1
- package/build-types/utils/set-nested-value.d.ts.map +1 -1
- package/build-types/utils/terms.d.ts +19 -4
- package/build-types/utils/terms.d.ts.map +1 -1
- package/build-types/utils/url.d.ts +1 -1
- package/build-types/utils/url.d.ts.map +1 -1
- package/package.json +48 -48
- package/src/components/block-visibility/style.scss +2 -2
- package/src/components/collab-sidebar/index.js +48 -36
- package/src/components/collab-sidebar/note-thread.js +28 -10
- package/src/components/collab-sidebar/notes.js +9 -6
- package/src/components/collab-sidebar/style.scss +4 -0
- package/src/components/collab-sidebar/utils.js +41 -14
- package/src/components/collaborators-presence/index.tsx +0 -2
- package/src/components/collaborators-presence/list.tsx +0 -2
- package/src/components/post-last-revision/index.js +5 -0
- package/src/components/post-publish-panel/index.js +149 -156
- package/src/components/post-publish-panel/test/__snapshots__/index.js.snap +11 -26
- package/src/components/post-publish-panel/test/index.js +41 -23
- package/src/components/post-revisions-preview/block-diff.js +165 -41
- package/src/components/post-revisions-preview/diff-markers.js +12 -9
- package/src/components/post-revisions-preview/revisions-slider.js +130 -71
- package/src/components/post-revisions-preview/style.scss +3 -3
- package/src/components/post-revisions-preview/test/block-diff.js +133 -4
- package/src/components/post-template/style.scss +1 -1
- package/src/components/start-page-options/style.scss +2 -2
- package/src/components/start-template-options/style.scss +2 -2
- package/src/store/private-actions.js +34 -0
- package/src/store/private-selectors.js +127 -51
- package/src/store/reducer.js +21 -0
- package/src/store/selectors.js +6 -0
- package/src/store/test/private-selectors.js +107 -1
- package/src/style.scss +2 -0
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if any past editor history snapshots exist, or false otherwise.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} state Global application state.
|
|
5
|
+
*
|
|
6
|
+
* @return {boolean} Whether undo history exists.
|
|
7
|
+
*/
|
|
8
|
+
export declare const hasEditorUndo: {
|
|
9
|
+
(): boolean;
|
|
10
|
+
isRegistrySelector?: boolean;
|
|
11
|
+
registry?: any;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if any future editor history snapshots exist, or false
|
|
15
|
+
* otherwise.
|
|
16
|
+
*
|
|
17
|
+
* @param {Object} state Global application state.
|
|
18
|
+
*
|
|
19
|
+
* @return {boolean} Whether redo history exists.
|
|
20
|
+
*/
|
|
21
|
+
export declare const hasEditorRedo: {
|
|
22
|
+
(): boolean;
|
|
23
|
+
isRegistrySelector?: boolean;
|
|
24
|
+
registry?: any;
|
|
25
|
+
};
|
|
1
26
|
/**
|
|
2
27
|
* Returns true if the currently edited post is yet to be saved, or false if
|
|
3
28
|
* the post has been saved.
|
|
@@ -6,7 +31,7 @@
|
|
|
6
31
|
*
|
|
7
32
|
* @return {boolean} Whether the post is new.
|
|
8
33
|
*/
|
|
9
|
-
export function isEditedPostNew(state: Object): boolean;
|
|
34
|
+
export declare function isEditedPostNew(state: Object): boolean;
|
|
10
35
|
/**
|
|
11
36
|
* Returns true if content includes unsaved changes, or false otherwise.
|
|
12
37
|
*
|
|
@@ -14,7 +39,33 @@ export function isEditedPostNew(state: Object): boolean;
|
|
|
14
39
|
*
|
|
15
40
|
* @return {boolean} Whether content includes unsaved changes.
|
|
16
41
|
*/
|
|
17
|
-
export function hasChangedContent(state: Object): boolean;
|
|
42
|
+
export declare function hasChangedContent(state: Object): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Returns true if there are unsaved values for the current edit session, or
|
|
45
|
+
* false if the editing state matches the saved or new post.
|
|
46
|
+
*
|
|
47
|
+
* @param {Object} state Global application state.
|
|
48
|
+
*
|
|
49
|
+
* @return {boolean} Whether unsaved values exist.
|
|
50
|
+
*/
|
|
51
|
+
export declare const isEditedPostDirty: {
|
|
52
|
+
(state: any): boolean;
|
|
53
|
+
isRegistrySelector?: boolean;
|
|
54
|
+
registry?: any;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if there are unsaved edits for entities other than
|
|
58
|
+
* the editor's post, and false otherwise.
|
|
59
|
+
*
|
|
60
|
+
* @param {Object} state Global application state.
|
|
61
|
+
*
|
|
62
|
+
* @return {boolean} Whether there are edits or not.
|
|
63
|
+
*/
|
|
64
|
+
export declare const hasNonPostEntityChanges: {
|
|
65
|
+
(state: any): boolean;
|
|
66
|
+
isRegistrySelector?: boolean;
|
|
67
|
+
registry?: any;
|
|
68
|
+
};
|
|
18
69
|
/**
|
|
19
70
|
* Returns true if there are no unsaved values for the current edit session and
|
|
20
71
|
* if the currently edited post is new (has never been saved before).
|
|
@@ -23,7 +74,21 @@ export function hasChangedContent(state: Object): boolean;
|
|
|
23
74
|
*
|
|
24
75
|
* @return {boolean} Whether new post and unsaved values exist.
|
|
25
76
|
*/
|
|
26
|
-
export function isCleanNewPost(state: Object): boolean;
|
|
77
|
+
export declare function isCleanNewPost(state: Object): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Returns the post currently being edited in its last known saved state, not
|
|
80
|
+
* including unsaved edits. Returns an object containing relevant default post
|
|
81
|
+
* values if the post has not yet been saved.
|
|
82
|
+
*
|
|
83
|
+
* @param {Object} state Global application state.
|
|
84
|
+
*
|
|
85
|
+
* @return {Object} Post object.
|
|
86
|
+
*/
|
|
87
|
+
export declare const getCurrentPost: {
|
|
88
|
+
(state: any): {};
|
|
89
|
+
isRegistrySelector?: boolean;
|
|
90
|
+
registry?: any;
|
|
91
|
+
};
|
|
27
92
|
/**
|
|
28
93
|
* Returns the post type of the post currently being edited.
|
|
29
94
|
*
|
|
@@ -36,7 +101,7 @@ export function isCleanNewPost(state: Object): boolean;
|
|
|
36
101
|
*```
|
|
37
102
|
* @return {string} Post type.
|
|
38
103
|
*/
|
|
39
|
-
export function getCurrentPostType(state: Object): string;
|
|
104
|
+
export declare function getCurrentPostType(state: Object): string;
|
|
40
105
|
/**
|
|
41
106
|
* Returns the ID of the post currently being edited, or null if the post has
|
|
42
107
|
* not yet been saved.
|
|
@@ -45,7 +110,7 @@ export function getCurrentPostType(state: Object): string;
|
|
|
45
110
|
*
|
|
46
111
|
* @return {?(number|string)} The current post ID (number) or template slug (string).
|
|
47
112
|
*/
|
|
48
|
-
export function getCurrentPostId(state: Object): (number | string) | null;
|
|
113
|
+
export declare function getCurrentPostId(state: Object): (number | string) | null;
|
|
49
114
|
/**
|
|
50
115
|
* Returns the template ID currently being rendered/edited
|
|
51
116
|
*
|
|
@@ -53,7 +118,7 @@ export function getCurrentPostId(state: Object): (number | string) | null;
|
|
|
53
118
|
*
|
|
54
119
|
* @return {?string} Template ID.
|
|
55
120
|
*/
|
|
56
|
-
export function getCurrentTemplateId(state: Object): string | null;
|
|
121
|
+
export declare function getCurrentTemplateId(state: Object): string | null;
|
|
57
122
|
/**
|
|
58
123
|
* Returns the number of revisions of the post currently being edited.
|
|
59
124
|
*
|
|
@@ -61,7 +126,7 @@ export function getCurrentTemplateId(state: Object): string | null;
|
|
|
61
126
|
*
|
|
62
127
|
* @return {number} Number of revisions.
|
|
63
128
|
*/
|
|
64
|
-
export function getCurrentPostRevisionsCount(state: Object): number;
|
|
129
|
+
export declare function getCurrentPostRevisionsCount(state: Object): number;
|
|
65
130
|
/**
|
|
66
131
|
* Returns the last revision ID of the post currently being edited,
|
|
67
132
|
* or null if the post has no revisions.
|
|
@@ -70,7 +135,20 @@ export function getCurrentPostRevisionsCount(state: Object): number;
|
|
|
70
135
|
*
|
|
71
136
|
* @return {?number} ID of the last revision.
|
|
72
137
|
*/
|
|
73
|
-
export function getCurrentPostLastRevisionId(state: Object): number | null;
|
|
138
|
+
export declare function getCurrentPostLastRevisionId(state: Object): number | null;
|
|
139
|
+
/**
|
|
140
|
+
* Returns any post values which have been changed in the editor but not yet
|
|
141
|
+
* been saved.
|
|
142
|
+
*
|
|
143
|
+
* @param {Object} state Global application state.
|
|
144
|
+
*
|
|
145
|
+
* @return {Object} Object of key value pairs comprising unsaved edits.
|
|
146
|
+
*/
|
|
147
|
+
export declare const getPostEdits: {
|
|
148
|
+
(state: any): any;
|
|
149
|
+
isRegistrySelector?: boolean;
|
|
150
|
+
registry?: any;
|
|
151
|
+
};
|
|
74
152
|
/**
|
|
75
153
|
* Returns an attribute value of the saved post.
|
|
76
154
|
*
|
|
@@ -79,7 +157,7 @@ export function getCurrentPostLastRevisionId(state: Object): number | null;
|
|
|
79
157
|
*
|
|
80
158
|
* @return {*} Post attribute value.
|
|
81
159
|
*/
|
|
82
|
-
export function getCurrentPostAttribute(state: Object, attributeName: string): any;
|
|
160
|
+
export declare function getCurrentPostAttribute(state: Object, attributeName: string): any;
|
|
83
161
|
/**
|
|
84
162
|
* Returns a single attribute of the post being edited, preferring the unsaved
|
|
85
163
|
* edit if one exists, but falling back to the attribute for the last known
|
|
@@ -110,7 +188,25 @@ export function getCurrentPostAttribute(state: Object, attributeName: string): a
|
|
|
110
188
|
*
|
|
111
189
|
* @return {*} Post attribute value.
|
|
112
190
|
*/
|
|
113
|
-
export function getEditedPostAttribute(state: Object, attributeName: string): any;
|
|
191
|
+
export declare function getEditedPostAttribute(state: Object, attributeName: string): any;
|
|
192
|
+
/**
|
|
193
|
+
* Returns an attribute value of the current autosave revision for a post, or
|
|
194
|
+
* null if there is no autosave for the post.
|
|
195
|
+
*
|
|
196
|
+
* @deprecated since 5.6. Callers should use the `getAutosave( postType, postId, userId )` selector
|
|
197
|
+
* from the '@wordpress/core-data' package and access properties on the returned
|
|
198
|
+
* autosave object using getPostRawValue.
|
|
199
|
+
*
|
|
200
|
+
* @param {Object} state Global application state.
|
|
201
|
+
* @param {string} attributeName Autosave attribute name.
|
|
202
|
+
*
|
|
203
|
+
* @return {*} Autosave attribute value.
|
|
204
|
+
*/
|
|
205
|
+
export declare const getAutosaveAttribute: {
|
|
206
|
+
(state: any, attributeName: any): any;
|
|
207
|
+
isRegistrySelector?: boolean;
|
|
208
|
+
registry?: any;
|
|
209
|
+
};
|
|
114
210
|
/**
|
|
115
211
|
* Returns the current visibility of the post being edited, preferring the
|
|
116
212
|
* unsaved value if different than the saved post. The return value is one of
|
|
@@ -120,7 +216,7 @@ export function getEditedPostAttribute(state: Object, attributeName: string): an
|
|
|
120
216
|
*
|
|
121
217
|
* @return {string} Post visibility.
|
|
122
218
|
*/
|
|
123
|
-
export function getEditedPostVisibility(state: Object): string;
|
|
219
|
+
export declare function getEditedPostVisibility(state: Object): string;
|
|
124
220
|
/**
|
|
125
221
|
* Returns true if post is pending review.
|
|
126
222
|
*
|
|
@@ -128,7 +224,7 @@ export function getEditedPostVisibility(state: Object): string;
|
|
|
128
224
|
*
|
|
129
225
|
* @return {boolean} Whether current post is pending review.
|
|
130
226
|
*/
|
|
131
|
-
export function isCurrentPostPending(state: Object): boolean;
|
|
227
|
+
export declare function isCurrentPostPending(state: Object): boolean;
|
|
132
228
|
/**
|
|
133
229
|
* Return true if the current post has already been published.
|
|
134
230
|
*
|
|
@@ -137,7 +233,7 @@ export function isCurrentPostPending(state: Object): boolean;
|
|
|
137
233
|
*
|
|
138
234
|
* @return {boolean} Whether the post has been published.
|
|
139
235
|
*/
|
|
140
|
-
export function isCurrentPostPublished(state: Object, currentPost?: Object): boolean;
|
|
236
|
+
export declare function isCurrentPostPublished(state: Object, currentPost?: Object): boolean;
|
|
141
237
|
/**
|
|
142
238
|
* Returns true if post is already scheduled.
|
|
143
239
|
*
|
|
@@ -145,7 +241,7 @@ export function isCurrentPostPublished(state: Object, currentPost?: Object): boo
|
|
|
145
241
|
*
|
|
146
242
|
* @return {boolean} Whether current post is scheduled to be posted.
|
|
147
243
|
*/
|
|
148
|
-
export function isCurrentPostScheduled(state: Object): boolean;
|
|
244
|
+
export declare function isCurrentPostScheduled(state: Object): boolean;
|
|
149
245
|
/**
|
|
150
246
|
* Return true if the post being edited can be published.
|
|
151
247
|
*
|
|
@@ -153,7 +249,7 @@ export function isCurrentPostScheduled(state: Object): boolean;
|
|
|
153
249
|
*
|
|
154
250
|
* @return {boolean} Whether the post can been published.
|
|
155
251
|
*/
|
|
156
|
-
export function isEditedPostPublishable(state: Object): boolean;
|
|
252
|
+
export declare function isEditedPostPublishable(state: Object): boolean;
|
|
157
253
|
/**
|
|
158
254
|
* Returns true if the post can be saved, or false otherwise. A post must
|
|
159
255
|
* contain a title, an excerpt, or non-empty content to be valid for save.
|
|
@@ -162,7 +258,34 @@ export function isEditedPostPublishable(state: Object): boolean;
|
|
|
162
258
|
*
|
|
163
259
|
* @return {boolean} Whether the post can be saved.
|
|
164
260
|
*/
|
|
165
|
-
export function isEditedPostSaveable(state: Object): boolean;
|
|
261
|
+
export declare function isEditedPostSaveable(state: Object): boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Returns true if the edited post has content. A post has content if it has at
|
|
264
|
+
* least one saveable block or otherwise has a non-empty content property
|
|
265
|
+
* assigned.
|
|
266
|
+
*
|
|
267
|
+
* @param {Object} state Global application state.
|
|
268
|
+
*
|
|
269
|
+
* @return {boolean} Whether post has content.
|
|
270
|
+
*/
|
|
271
|
+
export declare const isEditedPostEmpty: {
|
|
272
|
+
(state: any): boolean;
|
|
273
|
+
isRegistrySelector?: boolean;
|
|
274
|
+
registry?: any;
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* Returns true if the post can be autosaved, or false otherwise.
|
|
278
|
+
*
|
|
279
|
+
* @param {Object} state Global application state.
|
|
280
|
+
* @param {Object} autosave A raw autosave object from the REST API.
|
|
281
|
+
*
|
|
282
|
+
* @return {boolean} Whether the post can be autosaved.
|
|
283
|
+
*/
|
|
284
|
+
export declare const isEditedPostAutosaveable: {
|
|
285
|
+
(state: any): boolean;
|
|
286
|
+
isRegistrySelector?: boolean;
|
|
287
|
+
registry?: any;
|
|
288
|
+
};
|
|
166
289
|
/**
|
|
167
290
|
* Return true if the post being edited is being scheduled. Preferring the
|
|
168
291
|
* unsaved status values.
|
|
@@ -171,7 +294,7 @@ export function isEditedPostSaveable(state: Object): boolean;
|
|
|
171
294
|
*
|
|
172
295
|
* @return {boolean} Whether the post has been published.
|
|
173
296
|
*/
|
|
174
|
-
export function isEditedPostBeingScheduled(state: Object): boolean;
|
|
297
|
+
export declare function isEditedPostBeingScheduled(state: Object): boolean;
|
|
175
298
|
/**
|
|
176
299
|
* Returns whether the current post should be considered to have a "floating"
|
|
177
300
|
* date (i.e. that it would publish "Immediately" rather than at a set time).
|
|
@@ -185,7 +308,7 @@ export function isEditedPostBeingScheduled(state: Object): boolean;
|
|
|
185
308
|
*
|
|
186
309
|
* @return {boolean} Whether the edited post has a floating date value.
|
|
187
310
|
*/
|
|
188
|
-
export function isEditedPostDateFloating(state: Object): boolean;
|
|
311
|
+
export declare function isEditedPostDateFloating(state: Object): boolean;
|
|
189
312
|
/**
|
|
190
313
|
* Returns true if the post is currently being deleted, or false otherwise.
|
|
191
314
|
*
|
|
@@ -193,7 +316,7 @@ export function isEditedPostDateFloating(state: Object): boolean;
|
|
|
193
316
|
*
|
|
194
317
|
* @return {boolean} Whether post is being deleted.
|
|
195
318
|
*/
|
|
196
|
-
export function isDeletingPost(state: Object): boolean;
|
|
319
|
+
export declare function isDeletingPost(state: Object): boolean;
|
|
197
320
|
/**
|
|
198
321
|
* Returns true if the post is currently being saved, or false otherwise.
|
|
199
322
|
*
|
|
@@ -201,7 +324,45 @@ export function isDeletingPost(state: Object): boolean;
|
|
|
201
324
|
*
|
|
202
325
|
* @return {boolean} Whether post is being saved.
|
|
203
326
|
*/
|
|
204
|
-
export function isSavingPost(state: Object): boolean;
|
|
327
|
+
export declare function isSavingPost(state: Object): boolean;
|
|
328
|
+
/**
|
|
329
|
+
* Returns true if non-post entities are currently being saved, or false otherwise.
|
|
330
|
+
*
|
|
331
|
+
* @param {Object} state Global application state.
|
|
332
|
+
*
|
|
333
|
+
* @return {boolean} Whether non-post entities are being saved.
|
|
334
|
+
*/
|
|
335
|
+
export declare const isSavingNonPostEntityChanges: {
|
|
336
|
+
(state: any): boolean;
|
|
337
|
+
isRegistrySelector?: boolean;
|
|
338
|
+
registry?: any;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* Returns true if a previous post save was attempted successfully, or false
|
|
342
|
+
* otherwise.
|
|
343
|
+
*
|
|
344
|
+
* @param {Object} state Global application state.
|
|
345
|
+
*
|
|
346
|
+
* @return {boolean} Whether the post was saved successfully.
|
|
347
|
+
*/
|
|
348
|
+
export declare const didPostSaveRequestSucceed: {
|
|
349
|
+
(state: any): boolean;
|
|
350
|
+
isRegistrySelector?: boolean;
|
|
351
|
+
registry?: any;
|
|
352
|
+
};
|
|
353
|
+
/**
|
|
354
|
+
* Returns true if a previous post save was attempted but failed, or false
|
|
355
|
+
* otherwise.
|
|
356
|
+
*
|
|
357
|
+
* @param {Object} state Global application state.
|
|
358
|
+
*
|
|
359
|
+
* @return {boolean} Whether the post save failed.
|
|
360
|
+
*/
|
|
361
|
+
export declare const didPostSaveRequestFail: {
|
|
362
|
+
(state: any): boolean;
|
|
363
|
+
isRegistrySelector?: boolean;
|
|
364
|
+
registry?: any;
|
|
365
|
+
};
|
|
205
366
|
/**
|
|
206
367
|
* Returns true if the post is autosaving, or false otherwise.
|
|
207
368
|
*
|
|
@@ -209,7 +370,7 @@ export function isSavingPost(state: Object): boolean;
|
|
|
209
370
|
*
|
|
210
371
|
* @return {boolean} Whether the post is autosaving.
|
|
211
372
|
*/
|
|
212
|
-
export function isAutosavingPost(state: Object): boolean;
|
|
373
|
+
export declare function isAutosavingPost(state: Object): boolean;
|
|
213
374
|
/**
|
|
214
375
|
* Returns true if the post is being previewed, or false otherwise.
|
|
215
376
|
*
|
|
@@ -217,7 +378,7 @@ export function isAutosavingPost(state: Object): boolean;
|
|
|
217
378
|
*
|
|
218
379
|
* @return {boolean} Whether the post is being previewed.
|
|
219
380
|
*/
|
|
220
|
-
export function isPreviewingPost(state: Object): boolean;
|
|
381
|
+
export declare function isPreviewingPost(state: Object): boolean;
|
|
221
382
|
/**
|
|
222
383
|
* Returns the post preview link
|
|
223
384
|
*
|
|
@@ -225,7 +386,31 @@ export function isPreviewingPost(state: Object): boolean;
|
|
|
225
386
|
*
|
|
226
387
|
* @return {string | undefined} Preview Link.
|
|
227
388
|
*/
|
|
228
|
-
export function getEditedPostPreviewLink(state: Object): string | undefined;
|
|
389
|
+
export declare function getEditedPostPreviewLink(state: Object): string | undefined;
|
|
390
|
+
/**
|
|
391
|
+
* Returns a suggested post format for the current post, inferred only if there
|
|
392
|
+
* is a single block within the post and it is of a type known to match a
|
|
393
|
+
* default post format. Returns null if the format cannot be determined.
|
|
394
|
+
*
|
|
395
|
+
* @return {?string} Suggested post format.
|
|
396
|
+
*/
|
|
397
|
+
export declare const getSuggestedPostFormat: {
|
|
398
|
+
(): "audio" | "gallery" | "image" | "quote" | "video" | null;
|
|
399
|
+
isRegistrySelector?: boolean;
|
|
400
|
+
registry?: any;
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* Returns the content of the post being edited.
|
|
404
|
+
*
|
|
405
|
+
* @param {Object} state Global application state.
|
|
406
|
+
*
|
|
407
|
+
* @return {string} Post content.
|
|
408
|
+
*/
|
|
409
|
+
export declare const getEditedPostContent: {
|
|
410
|
+
(state: any): ReturnType<(state: any) => any>;
|
|
411
|
+
isRegistrySelector?: boolean;
|
|
412
|
+
registry?: any;
|
|
413
|
+
};
|
|
229
414
|
/**
|
|
230
415
|
* Returns true if the post is being published, or false otherwise.
|
|
231
416
|
*
|
|
@@ -233,7 +418,7 @@ export function getEditedPostPreviewLink(state: Object): string | undefined;
|
|
|
233
418
|
*
|
|
234
419
|
* @return {boolean} Whether post is being published.
|
|
235
420
|
*/
|
|
236
|
-
export function isPublishingPost(state: Object): boolean;
|
|
421
|
+
export declare function isPublishingPost(state: Object): boolean;
|
|
237
422
|
/**
|
|
238
423
|
* Returns whether the permalink is editable or not.
|
|
239
424
|
*
|
|
@@ -241,7 +426,7 @@ export function isPublishingPost(state: Object): boolean;
|
|
|
241
426
|
*
|
|
242
427
|
* @return {boolean} Whether or not the permalink is editable.
|
|
243
428
|
*/
|
|
244
|
-
export function isPermalinkEditable(state: Object): boolean;
|
|
429
|
+
export declare function isPermalinkEditable(state: Object): boolean;
|
|
245
430
|
/**
|
|
246
431
|
* Returns the permalink for the post.
|
|
247
432
|
*
|
|
@@ -249,7 +434,7 @@ export function isPermalinkEditable(state: Object): boolean;
|
|
|
249
434
|
*
|
|
250
435
|
* @return {?string} The permalink, or null if the post is not viewable.
|
|
251
436
|
*/
|
|
252
|
-
export function getPermalink(state: Object): string | null;
|
|
437
|
+
export declare function getPermalink(state: Object): string | null;
|
|
253
438
|
/**
|
|
254
439
|
* Returns the slug for the post being edited, preferring a manually edited
|
|
255
440
|
* value if one exists, then a sanitized version of the current post title, and
|
|
@@ -259,7 +444,7 @@ export function getPermalink(state: Object): string | null;
|
|
|
259
444
|
*
|
|
260
445
|
* @return {string} The current slug to be displayed in the editor
|
|
261
446
|
*/
|
|
262
|
-
export function getEditedPostSlug(state: Object): string;
|
|
447
|
+
export declare function getEditedPostSlug(state: Object): string;
|
|
263
448
|
/**
|
|
264
449
|
* Returns the permalink for a post, split into its three parts: the prefix,
|
|
265
450
|
* the postName, and the suffix.
|
|
@@ -269,7 +454,7 @@ export function getEditedPostSlug(state: Object): string;
|
|
|
269
454
|
* @return {Object} An object containing the prefix, postName, and suffix for
|
|
270
455
|
* the permalink, or null if the post is not viewable.
|
|
271
456
|
*/
|
|
272
|
-
export function getPermalinkParts(state: Object): Object;
|
|
457
|
+
export declare function getPermalinkParts(state: Object): Object;
|
|
273
458
|
/**
|
|
274
459
|
* Returns whether the post is locked.
|
|
275
460
|
*
|
|
@@ -277,7 +462,7 @@ export function getPermalinkParts(state: Object): Object;
|
|
|
277
462
|
*
|
|
278
463
|
* @return {boolean} Is locked.
|
|
279
464
|
*/
|
|
280
|
-
export function isPostLocked(state: Object): boolean;
|
|
465
|
+
export declare function isPostLocked(state: Object): boolean;
|
|
281
466
|
/**
|
|
282
467
|
* Returns whether post saving is locked.
|
|
283
468
|
*
|
|
@@ -305,7 +490,7 @@ export function isPostLocked(state: Object): boolean;
|
|
|
305
490
|
*
|
|
306
491
|
* @return {boolean} Is locked.
|
|
307
492
|
*/
|
|
308
|
-
export function isPostSavingLocked(state: Object): boolean;
|
|
493
|
+
export declare function isPostSavingLocked(state: Object): boolean;
|
|
309
494
|
/**
|
|
310
495
|
* Returns whether post autosaving is locked.
|
|
311
496
|
*
|
|
@@ -333,7 +518,7 @@ export function isPostSavingLocked(state: Object): boolean;
|
|
|
333
518
|
*
|
|
334
519
|
* @return {boolean} Is locked.
|
|
335
520
|
*/
|
|
336
|
-
export function isPostAutosavingLocked(state: Object): boolean;
|
|
521
|
+
export declare function isPostAutosavingLocked(state: Object): boolean;
|
|
337
522
|
/**
|
|
338
523
|
* Returns whether the edition of the post has been taken over.
|
|
339
524
|
*
|
|
@@ -341,7 +526,7 @@ export function isPostAutosavingLocked(state: Object): boolean;
|
|
|
341
526
|
*
|
|
342
527
|
* @return {boolean} Is post lock takeover.
|
|
343
528
|
*/
|
|
344
|
-
export function isPostLockTakeover(state: Object): boolean;
|
|
529
|
+
export declare function isPostLockTakeover(state: Object): boolean;
|
|
345
530
|
/**
|
|
346
531
|
* Returns details about the post lock user.
|
|
347
532
|
*
|
|
@@ -349,7 +534,7 @@ export function isPostLockTakeover(state: Object): boolean;
|
|
|
349
534
|
*
|
|
350
535
|
* @return {Object} A user object.
|
|
351
536
|
*/
|
|
352
|
-
export function getPostLockUser(state: Object): Object;
|
|
537
|
+
export declare function getPostLockUser(state: Object): Object;
|
|
353
538
|
/**
|
|
354
539
|
* Returns the active post lock.
|
|
355
540
|
*
|
|
@@ -357,7 +542,7 @@ export function getPostLockUser(state: Object): Object;
|
|
|
357
542
|
*
|
|
358
543
|
* @return {Object} The lock object.
|
|
359
544
|
*/
|
|
360
|
-
export function getActivePostLock(state: Object): Object;
|
|
545
|
+
export declare function getActivePostLock(state: Object): Object;
|
|
361
546
|
/**
|
|
362
547
|
* Returns whether or not the user has the unfiltered_html capability.
|
|
363
548
|
*
|
|
@@ -365,7 +550,25 @@ export function getActivePostLock(state: Object): Object;
|
|
|
365
550
|
*
|
|
366
551
|
* @return {boolean} Whether the user can or can't post unfiltered HTML.
|
|
367
552
|
*/
|
|
368
|
-
export function canUserUseUnfilteredHTML(state: Object): boolean;
|
|
553
|
+
export declare function canUserUseUnfilteredHTML(state: Object): boolean;
|
|
554
|
+
/**
|
|
555
|
+
* Returns whether the pre-publish panel should be shown
|
|
556
|
+
* or skipped when the user clicks the "publish" button.
|
|
557
|
+
*
|
|
558
|
+
* @return {boolean} Whether the pre-publish panel should be shown or not.
|
|
559
|
+
*/
|
|
560
|
+
export declare const isPublishSidebarEnabled: {
|
|
561
|
+
(): boolean;
|
|
562
|
+
isRegistrySelector?: boolean;
|
|
563
|
+
registry?: any;
|
|
564
|
+
};
|
|
565
|
+
/**
|
|
566
|
+
* Return the current block list.
|
|
567
|
+
*
|
|
568
|
+
* @param {Object} state
|
|
569
|
+
* @return {Array} Block list.
|
|
570
|
+
*/
|
|
571
|
+
export declare const getEditorBlocks: ((state: any) => any) & import("rememo").EnhancedSelector;
|
|
369
572
|
/**
|
|
370
573
|
* Returns true if the given panel was programmatically removed, or false otherwise.
|
|
371
574
|
* All panels are not removed by default.
|
|
@@ -375,10 +578,49 @@ export function canUserUseUnfilteredHTML(state: Object): boolean;
|
|
|
375
578
|
*
|
|
376
579
|
* @return {boolean} Whether or not the panel is removed.
|
|
377
580
|
*/
|
|
378
|
-
export function isEditorPanelRemoved(state: Object, panelName: string): boolean;
|
|
581
|
+
export declare function isEditorPanelRemoved(state: Object, panelName: string): boolean;
|
|
582
|
+
/**
|
|
583
|
+
* Returns true if the given panel is enabled, or false otherwise. Panels are
|
|
584
|
+
* enabled by default.
|
|
585
|
+
*
|
|
586
|
+
* @param {Object} state Global application state.
|
|
587
|
+
* @param {string} panelName A string that identifies the panel.
|
|
588
|
+
*
|
|
589
|
+
* @return {boolean} Whether or not the panel is enabled.
|
|
590
|
+
*/
|
|
591
|
+
export declare const isEditorPanelEnabled: {
|
|
592
|
+
(state: any, panelName: any): boolean;
|
|
593
|
+
isRegistrySelector?: boolean;
|
|
594
|
+
registry?: any;
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
* Returns true if the given panel is open, or false otherwise. Panels are
|
|
598
|
+
* closed by default.
|
|
599
|
+
*
|
|
600
|
+
* @param {Object} state Global application state.
|
|
601
|
+
* @param {string} panelName A string that identifies the panel.
|
|
602
|
+
*
|
|
603
|
+
* @return {boolean} Whether or not the panel is open.
|
|
604
|
+
*/
|
|
605
|
+
export declare const isEditorPanelOpened: {
|
|
606
|
+
(state: any, panelName: any): boolean;
|
|
607
|
+
isRegistrySelector?: boolean;
|
|
608
|
+
registry?: any;
|
|
609
|
+
};
|
|
610
|
+
export type WPBlockSelection = {
|
|
611
|
+
clientId: string;
|
|
612
|
+
attributeKey: string;
|
|
613
|
+
offset: number;
|
|
614
|
+
};
|
|
379
615
|
/**
|
|
380
616
|
* A block selection object.
|
|
381
617
|
*
|
|
618
|
+
* This type is duplicated to avoid creating circular dependencies.
|
|
619
|
+
*
|
|
620
|
+
* @see {import("@wordpress/block-editor/src/store/actions").WPBlockSelection}
|
|
621
|
+
* @see {import("@wordpress/block-editor/src/store/selectors").WPBlockSelection}
|
|
622
|
+
* @see {import("@wordpress/core-data/src/types").WPBlockSelection}
|
|
623
|
+
*
|
|
382
624
|
* @typedef {Object} WPBlockSelection
|
|
383
625
|
*
|
|
384
626
|
* @property {string} clientId A block client ID.
|
|
@@ -394,7 +636,7 @@ export function isEditorPanelRemoved(state: Object, panelName: string): boolean;
|
|
|
394
636
|
* @param {Object} state
|
|
395
637
|
* @return {WPBlockSelection} The selection start.
|
|
396
638
|
*/
|
|
397
|
-
export function getEditorSelectionStart(state: Object): WPBlockSelection;
|
|
639
|
+
export declare function getEditorSelectionStart(state: Object): WPBlockSelection;
|
|
398
640
|
/**
|
|
399
641
|
* Returns the current selection end.
|
|
400
642
|
*
|
|
@@ -403,21 +645,21 @@ export function getEditorSelectionStart(state: Object): WPBlockSelection;
|
|
|
403
645
|
* @param {Object} state
|
|
404
646
|
* @return {WPBlockSelection} The selection end.
|
|
405
647
|
*/
|
|
406
|
-
export function getEditorSelectionEnd(state: Object): WPBlockSelection;
|
|
648
|
+
export declare function getEditorSelectionEnd(state: Object): WPBlockSelection;
|
|
407
649
|
/**
|
|
408
650
|
* Returns the current selection.
|
|
409
651
|
*
|
|
410
652
|
* @param {Object} state
|
|
411
653
|
* @return {WPBlockSelection} The selection end.
|
|
412
654
|
*/
|
|
413
|
-
export function getEditorSelection(state: Object): WPBlockSelection;
|
|
655
|
+
export declare function getEditorSelection(state: Object): WPBlockSelection;
|
|
414
656
|
/**
|
|
415
657
|
* Is the editor ready
|
|
416
658
|
*
|
|
417
659
|
* @param {Object} state
|
|
418
660
|
* @return {boolean} is Ready.
|
|
419
661
|
*/
|
|
420
|
-
export function __unstableIsEditorReady(state: Object): boolean;
|
|
662
|
+
export declare function __unstableIsEditorReady(state: Object): boolean;
|
|
421
663
|
/**
|
|
422
664
|
* Returns the post editor settings.
|
|
423
665
|
*
|
|
@@ -425,7 +667,7 @@ export function __unstableIsEditorReady(state: Object): boolean;
|
|
|
425
667
|
*
|
|
426
668
|
* @return {Object} The editor settings object.
|
|
427
669
|
*/
|
|
428
|
-
export function getEditorSettings(state: Object): Object;
|
|
670
|
+
export declare function getEditorSettings(state: Object): Object;
|
|
429
671
|
/**
|
|
430
672
|
* Returns the post editor's rendering mode.
|
|
431
673
|
*
|
|
@@ -433,709 +675,470 @@ export function getEditorSettings(state: Object): Object;
|
|
|
433
675
|
*
|
|
434
676
|
* @return {string} Rendering mode.
|
|
435
677
|
*/
|
|
436
|
-
export function getRenderingMode(state: Object): string;
|
|
437
|
-
/**
|
|
438
|
-
* Returns true if the list view is opened.
|
|
439
|
-
*
|
|
440
|
-
* @param {Object} state Global application state.
|
|
441
|
-
*
|
|
442
|
-
* @return {boolean} Whether the list view is opened.
|
|
443
|
-
*/
|
|
444
|
-
export function isListViewOpened(state: Object): boolean;
|
|
445
|
-
/**
|
|
446
|
-
* Returns true if the inserter is opened.
|
|
447
|
-
*
|
|
448
|
-
* @param {Object} state Global application state.
|
|
449
|
-
*
|
|
450
|
-
* @return {boolean} Whether the inserter is opened.
|
|
451
|
-
*/
|
|
452
|
-
export function isInserterOpened(state: Object): boolean;
|
|
453
|
-
/**
|
|
454
|
-
* Returns state object prior to a specified optimist transaction ID, or `null`
|
|
455
|
-
* if the transaction corresponding to the given ID cannot be found.
|
|
456
|
-
*
|
|
457
|
-
* @deprecated since Gutenberg 9.7.0.
|
|
458
|
-
*/
|
|
459
|
-
export function getStateBeforeOptimisticTransaction(): null;
|
|
460
|
-
/**
|
|
461
|
-
* Returns true if an optimistic transaction is pending commit, for which the
|
|
462
|
-
* before state satisfies the given predicate function.
|
|
463
|
-
*
|
|
464
|
-
* @deprecated since Gutenberg 9.7.0.
|
|
465
|
-
*/
|
|
466
|
-
export function inSomeHistory(): boolean;
|
|
467
|
-
/**
|
|
468
|
-
* Returns true if the publish sidebar is opened.
|
|
469
|
-
*
|
|
470
|
-
* @param {Object} state Global application state
|
|
471
|
-
*
|
|
472
|
-
* @return {boolean} Whether the publish sidebar is open.
|
|
473
|
-
*/
|
|
474
|
-
export function isPublishSidebarOpened(state: Object): boolean;
|
|
678
|
+
export declare function getRenderingMode(state: Object): string;
|
|
475
679
|
/**
|
|
476
|
-
* Returns
|
|
477
|
-
*
|
|
478
|
-
* @param {Object} state Global application state.
|
|
479
|
-
*
|
|
480
|
-
* @return {boolean} Whether undo history exists.
|
|
481
|
-
*/
|
|
482
|
-
export const hasEditorUndo: {
|
|
483
|
-
(): boolean;
|
|
484
|
-
isRegistrySelector?: boolean;
|
|
485
|
-
registry?: any;
|
|
486
|
-
};
|
|
487
|
-
/**
|
|
488
|
-
* Returns true if any future editor history snapshots exist, or false
|
|
489
|
-
* otherwise.
|
|
490
|
-
*
|
|
491
|
-
* @param {Object} state Global application state.
|
|
492
|
-
*
|
|
493
|
-
* @return {boolean} Whether redo history exists.
|
|
494
|
-
*/
|
|
495
|
-
export const hasEditorRedo: {
|
|
496
|
-
(): boolean;
|
|
497
|
-
isRegistrySelector?: boolean;
|
|
498
|
-
registry?: any;
|
|
499
|
-
};
|
|
500
|
-
/**
|
|
501
|
-
* Returns true if there are unsaved values for the current edit session, or
|
|
502
|
-
* false if the editing state matches the saved or new post.
|
|
503
|
-
*
|
|
504
|
-
* @param {Object} state Global application state.
|
|
505
|
-
*
|
|
506
|
-
* @return {boolean} Whether unsaved values exist.
|
|
507
|
-
*/
|
|
508
|
-
export const isEditedPostDirty: {
|
|
509
|
-
(state: any): boolean;
|
|
510
|
-
isRegistrySelector?: boolean;
|
|
511
|
-
registry?: any;
|
|
512
|
-
};
|
|
513
|
-
/**
|
|
514
|
-
* Returns true if there are unsaved edits for entities other than
|
|
515
|
-
* the editor's post, and false otherwise.
|
|
516
|
-
*
|
|
517
|
-
* @param {Object} state Global application state.
|
|
518
|
-
*
|
|
519
|
-
* @return {boolean} Whether there are edits or not.
|
|
520
|
-
*/
|
|
521
|
-
export const hasNonPostEntityChanges: {
|
|
522
|
-
(state: any): boolean;
|
|
523
|
-
isRegistrySelector?: boolean;
|
|
524
|
-
registry?: any;
|
|
525
|
-
};
|
|
526
|
-
/**
|
|
527
|
-
* Returns the post currently being edited in its last known saved state, not
|
|
528
|
-
* including unsaved edits. Returns an object containing relevant default post
|
|
529
|
-
* values if the post has not yet been saved.
|
|
530
|
-
*
|
|
531
|
-
* @param {Object} state Global application state.
|
|
532
|
-
*
|
|
533
|
-
* @return {Object} Post object.
|
|
534
|
-
*/
|
|
535
|
-
export const getCurrentPost: {
|
|
536
|
-
(state: any): {};
|
|
537
|
-
isRegistrySelector?: boolean;
|
|
538
|
-
registry?: any;
|
|
539
|
-
};
|
|
540
|
-
/**
|
|
541
|
-
* Returns any post values which have been changed in the editor but not yet
|
|
542
|
-
* been saved.
|
|
680
|
+
* Returns the current editing canvas device type.
|
|
543
681
|
*
|
|
544
682
|
* @param {Object} state Global application state.
|
|
545
683
|
*
|
|
546
|
-
* @return {
|
|
684
|
+
* @return {string} Device type.
|
|
547
685
|
*/
|
|
548
|
-
export const
|
|
686
|
+
export declare const getDeviceType: {
|
|
549
687
|
(state: any): any;
|
|
550
688
|
isRegistrySelector?: boolean;
|
|
551
689
|
registry?: any;
|
|
552
690
|
};
|
|
553
691
|
/**
|
|
554
|
-
* Returns
|
|
555
|
-
* null if there is no autosave for the post.
|
|
556
|
-
*
|
|
557
|
-
* @deprecated since 5.6. Callers should use the `getAutosave( postType, postId, userId )` selector
|
|
558
|
-
* from the '@wordpress/core-data' package and access properties on the returned
|
|
559
|
-
* autosave object using getPostRawValue.
|
|
560
|
-
*
|
|
561
|
-
* @param {Object} state Global application state.
|
|
562
|
-
* @param {string} attributeName Autosave attribute name.
|
|
563
|
-
*
|
|
564
|
-
* @return {*} Autosave attribute value.
|
|
565
|
-
*/
|
|
566
|
-
export const getAutosaveAttribute: {
|
|
567
|
-
(state: any, attributeName: any): any;
|
|
568
|
-
isRegistrySelector?: boolean;
|
|
569
|
-
registry?: any;
|
|
570
|
-
};
|
|
571
|
-
/**
|
|
572
|
-
* Returns true if the edited post has content. A post has content if it has at
|
|
573
|
-
* least one saveable block or otherwise has a non-empty content property
|
|
574
|
-
* assigned.
|
|
575
|
-
*
|
|
576
|
-
* @param {Object} state Global application state.
|
|
577
|
-
*
|
|
578
|
-
* @return {boolean} Whether post has content.
|
|
579
|
-
*/
|
|
580
|
-
export const isEditedPostEmpty: {
|
|
581
|
-
(state: any): boolean;
|
|
582
|
-
isRegistrySelector?: boolean;
|
|
583
|
-
registry?: any;
|
|
584
|
-
};
|
|
585
|
-
/**
|
|
586
|
-
* Returns true if the post can be autosaved, or false otherwise.
|
|
587
|
-
*
|
|
588
|
-
* @param {Object} state Global application state.
|
|
589
|
-
* @param {Object} autosave A raw autosave object from the REST API.
|
|
590
|
-
*
|
|
591
|
-
* @return {boolean} Whether the post can be autosaved.
|
|
592
|
-
*/
|
|
593
|
-
export const isEditedPostAutosaveable: {
|
|
594
|
-
(state: any): boolean;
|
|
595
|
-
isRegistrySelector?: boolean;
|
|
596
|
-
registry?: any;
|
|
597
|
-
};
|
|
598
|
-
/**
|
|
599
|
-
* Returns true if non-post entities are currently being saved, or false otherwise.
|
|
600
|
-
*
|
|
601
|
-
* @param {Object} state Global application state.
|
|
602
|
-
*
|
|
603
|
-
* @return {boolean} Whether non-post entities are being saved.
|
|
604
|
-
*/
|
|
605
|
-
export const isSavingNonPostEntityChanges: {
|
|
606
|
-
(state: any): boolean;
|
|
607
|
-
isRegistrySelector?: boolean;
|
|
608
|
-
registry?: any;
|
|
609
|
-
};
|
|
610
|
-
/**
|
|
611
|
-
* Returns true if a previous post save was attempted successfully, or false
|
|
612
|
-
* otherwise.
|
|
692
|
+
* Returns true if the list view is opened.
|
|
613
693
|
*
|
|
614
694
|
* @param {Object} state Global application state.
|
|
615
695
|
*
|
|
616
|
-
* @return {boolean} Whether the
|
|
696
|
+
* @return {boolean} Whether the list view is opened.
|
|
617
697
|
*/
|
|
618
|
-
export
|
|
619
|
-
(state: any): boolean;
|
|
620
|
-
isRegistrySelector?: boolean;
|
|
621
|
-
registry?: any;
|
|
622
|
-
};
|
|
698
|
+
export declare function isListViewOpened(state: Object): boolean;
|
|
623
699
|
/**
|
|
624
|
-
* Returns true if
|
|
625
|
-
* otherwise.
|
|
700
|
+
* Returns true if the inserter is opened.
|
|
626
701
|
*
|
|
627
702
|
* @param {Object} state Global application state.
|
|
628
703
|
*
|
|
629
|
-
* @return {boolean} Whether the
|
|
630
|
-
*/
|
|
631
|
-
export const didPostSaveRequestFail: {
|
|
632
|
-
(state: any): boolean;
|
|
633
|
-
isRegistrySelector?: boolean;
|
|
634
|
-
registry?: any;
|
|
635
|
-
};
|
|
636
|
-
/**
|
|
637
|
-
* Returns a suggested post format for the current post, inferred only if there
|
|
638
|
-
* is a single block within the post and it is of a type known to match a
|
|
639
|
-
* default post format. Returns null if the format cannot be determined.
|
|
640
|
-
*
|
|
641
|
-
* @return {?string} Suggested post format.
|
|
704
|
+
* @return {boolean} Whether the inserter is opened.
|
|
642
705
|
*/
|
|
643
|
-
export
|
|
644
|
-
(): "image" | "gallery" | "quote" | "video" | "audio" | null;
|
|
645
|
-
isRegistrySelector?: boolean;
|
|
646
|
-
registry?: any;
|
|
647
|
-
};
|
|
706
|
+
export declare function isInserterOpened(state: Object): boolean;
|
|
648
707
|
/**
|
|
649
|
-
* Returns the
|
|
708
|
+
* Returns the current editing mode.
|
|
650
709
|
*
|
|
651
710
|
* @param {Object} state Global application state.
|
|
652
711
|
*
|
|
653
|
-
* @return {string}
|
|
654
|
-
*/
|
|
655
|
-
export const getEditedPostContent: {
|
|
656
|
-
(state: any): any;
|
|
657
|
-
isRegistrySelector?: boolean;
|
|
658
|
-
registry?: any;
|
|
659
|
-
};
|
|
660
|
-
/**
|
|
661
|
-
* Returns whether the pre-publish panel should be shown
|
|
662
|
-
* or skipped when the user clicks the "publish" button.
|
|
663
|
-
*
|
|
664
|
-
* @return {boolean} Whether the pre-publish panel should be shown or not.
|
|
665
|
-
*/
|
|
666
|
-
export const isPublishSidebarEnabled: {
|
|
667
|
-
(): boolean;
|
|
668
|
-
isRegistrySelector?: boolean;
|
|
669
|
-
registry?: any;
|
|
670
|
-
};
|
|
671
|
-
/**
|
|
672
|
-
* Return the current block list.
|
|
673
|
-
*
|
|
674
|
-
* @param {Object} state
|
|
675
|
-
* @return {Array} Block list.
|
|
676
|
-
*/
|
|
677
|
-
export const getEditorBlocks: ((state: any) => any) & import("rememo").EnhancedSelector;
|
|
678
|
-
/**
|
|
679
|
-
* Returns true if the given panel is enabled, or false otherwise. Panels are
|
|
680
|
-
* enabled by default.
|
|
681
|
-
*
|
|
682
|
-
* @param {Object} state Global application state.
|
|
683
|
-
* @param {string} panelName A string that identifies the panel.
|
|
684
|
-
*
|
|
685
|
-
* @return {boolean} Whether or not the panel is enabled.
|
|
686
|
-
*/
|
|
687
|
-
export const isEditorPanelEnabled: {
|
|
688
|
-
(state: any, panelName: any): boolean;
|
|
689
|
-
isRegistrySelector?: boolean;
|
|
690
|
-
registry?: any;
|
|
691
|
-
};
|
|
692
|
-
/**
|
|
693
|
-
* Returns true if the given panel is open, or false otherwise. Panels are
|
|
694
|
-
* closed by default.
|
|
695
|
-
*
|
|
696
|
-
* @param {Object} state Global application state.
|
|
697
|
-
* @param {string} panelName A string that identifies the panel.
|
|
698
|
-
*
|
|
699
|
-
* @return {boolean} Whether or not the panel is open.
|
|
712
|
+
* @return {string} Editing mode.
|
|
700
713
|
*/
|
|
701
|
-
export const
|
|
702
|
-
(
|
|
714
|
+
export declare const getEditorMode: {
|
|
715
|
+
(): any;
|
|
703
716
|
isRegistrySelector?: boolean;
|
|
704
717
|
registry?: any;
|
|
705
718
|
};
|
|
706
719
|
/**
|
|
707
|
-
* Returns
|
|
708
|
-
*
|
|
709
|
-
* @param {Object} state Global application state.
|
|
720
|
+
* Returns state object prior to a specified optimist transaction ID, or `null`
|
|
721
|
+
* if the transaction corresponding to the given ID cannot be found.
|
|
710
722
|
*
|
|
711
|
-
* @
|
|
723
|
+
* @deprecated since Gutenberg 9.7.0.
|
|
712
724
|
*/
|
|
713
|
-
export
|
|
714
|
-
(state: any): any;
|
|
715
|
-
isRegistrySelector?: boolean;
|
|
716
|
-
registry?: any;
|
|
717
|
-
};
|
|
725
|
+
export declare function getStateBeforeOptimisticTransaction(): null;
|
|
718
726
|
/**
|
|
719
|
-
* Returns
|
|
720
|
-
*
|
|
721
|
-
* @param {Object} state Global application state.
|
|
727
|
+
* Returns true if an optimistic transaction is pending commit, for which the
|
|
728
|
+
* before state satisfies the given predicate function.
|
|
722
729
|
*
|
|
723
|
-
* @
|
|
730
|
+
* @deprecated since Gutenberg 9.7.0.
|
|
724
731
|
*/
|
|
725
|
-
export
|
|
726
|
-
(): any;
|
|
727
|
-
isRegistrySelector?: boolean;
|
|
728
|
-
registry?: any;
|
|
729
|
-
};
|
|
732
|
+
export declare function inSomeHistory(): boolean;
|
|
730
733
|
/**
|
|
731
734
|
* @see getBlockName in core/block-editor store.
|
|
732
735
|
*/
|
|
733
|
-
export const getBlockName: {
|
|
734
|
-
(state: any, ...args: any[]): any
|
|
736
|
+
export declare const getBlockName: {
|
|
737
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
735
738
|
isRegistrySelector?: boolean;
|
|
736
739
|
registry?: any;
|
|
737
740
|
};
|
|
738
741
|
/**
|
|
739
742
|
* @see isBlockValid in core/block-editor store.
|
|
740
743
|
*/
|
|
741
|
-
export const isBlockValid: {
|
|
742
|
-
(state: any, ...args: any[]): any
|
|
744
|
+
export declare const isBlockValid: {
|
|
745
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
743
746
|
isRegistrySelector?: boolean;
|
|
744
747
|
registry?: any;
|
|
745
748
|
};
|
|
746
749
|
/**
|
|
747
750
|
* @see getBlockAttributes in core/block-editor store.
|
|
748
751
|
*/
|
|
749
|
-
export const getBlockAttributes: {
|
|
750
|
-
(state: any, ...args: any[]): any
|
|
752
|
+
export declare const getBlockAttributes: {
|
|
753
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
751
754
|
isRegistrySelector?: boolean;
|
|
752
755
|
registry?: any;
|
|
753
756
|
};
|
|
754
757
|
/**
|
|
755
758
|
* @see getBlock in core/block-editor store.
|
|
756
759
|
*/
|
|
757
|
-
export const getBlock: {
|
|
758
|
-
(state: any, ...args: any[]): any
|
|
760
|
+
export declare const getBlock: {
|
|
761
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
759
762
|
isRegistrySelector?: boolean;
|
|
760
763
|
registry?: any;
|
|
761
764
|
};
|
|
762
765
|
/**
|
|
763
766
|
* @see getBlocks in core/block-editor store.
|
|
764
767
|
*/
|
|
765
|
-
export const getBlocks: {
|
|
766
|
-
(state: any, ...args: any[]): any
|
|
768
|
+
export declare const getBlocks: {
|
|
769
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
767
770
|
isRegistrySelector?: boolean;
|
|
768
771
|
registry?: any;
|
|
769
772
|
};
|
|
770
773
|
/**
|
|
771
774
|
* @see getClientIdsOfDescendants in core/block-editor store.
|
|
772
775
|
*/
|
|
773
|
-
export const getClientIdsOfDescendants: {
|
|
774
|
-
(state: any, ...args: any[]): any
|
|
776
|
+
export declare const getClientIdsOfDescendants: {
|
|
777
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
775
778
|
isRegistrySelector?: boolean;
|
|
776
779
|
registry?: any;
|
|
777
780
|
};
|
|
778
781
|
/**
|
|
779
782
|
* @see getClientIdsWithDescendants in core/block-editor store.
|
|
780
783
|
*/
|
|
781
|
-
export const getClientIdsWithDescendants: {
|
|
782
|
-
(state: any, ...args: any[]): any
|
|
784
|
+
export declare const getClientIdsWithDescendants: {
|
|
785
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
783
786
|
isRegistrySelector?: boolean;
|
|
784
787
|
registry?: any;
|
|
785
788
|
};
|
|
786
789
|
/**
|
|
787
790
|
* @see getGlobalBlockCount in core/block-editor store.
|
|
788
791
|
*/
|
|
789
|
-
export const getGlobalBlockCount: {
|
|
790
|
-
(state: any, ...args: any[]): any
|
|
792
|
+
export declare const getGlobalBlockCount: {
|
|
793
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
791
794
|
isRegistrySelector?: boolean;
|
|
792
795
|
registry?: any;
|
|
793
796
|
};
|
|
794
797
|
/**
|
|
795
798
|
* @see getBlocksByClientId in core/block-editor store.
|
|
796
799
|
*/
|
|
797
|
-
export const getBlocksByClientId: {
|
|
798
|
-
(state: any, ...args: any[]): any
|
|
800
|
+
export declare const getBlocksByClientId: {
|
|
801
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
799
802
|
isRegistrySelector?: boolean;
|
|
800
803
|
registry?: any;
|
|
801
804
|
};
|
|
802
805
|
/**
|
|
803
806
|
* @see getBlockCount in core/block-editor store.
|
|
804
807
|
*/
|
|
805
|
-
export const getBlockCount: {
|
|
806
|
-
(state: any, ...args: any[]): any
|
|
808
|
+
export declare const getBlockCount: {
|
|
809
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
807
810
|
isRegistrySelector?: boolean;
|
|
808
811
|
registry?: any;
|
|
809
812
|
};
|
|
810
813
|
/**
|
|
811
814
|
* @see getBlockSelectionStart in core/block-editor store.
|
|
812
815
|
*/
|
|
813
|
-
export const getBlockSelectionStart: {
|
|
814
|
-
(state: any, ...args: any[]): any
|
|
816
|
+
export declare const getBlockSelectionStart: {
|
|
817
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
815
818
|
isRegistrySelector?: boolean;
|
|
816
819
|
registry?: any;
|
|
817
820
|
};
|
|
818
821
|
/**
|
|
819
822
|
* @see getBlockSelectionEnd in core/block-editor store.
|
|
820
823
|
*/
|
|
821
|
-
export const getBlockSelectionEnd: {
|
|
822
|
-
(state: any, ...args: any[]): any
|
|
824
|
+
export declare const getBlockSelectionEnd: {
|
|
825
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
823
826
|
isRegistrySelector?: boolean;
|
|
824
827
|
registry?: any;
|
|
825
828
|
};
|
|
826
829
|
/**
|
|
827
830
|
* @see getSelectedBlockCount in core/block-editor store.
|
|
828
831
|
*/
|
|
829
|
-
export const getSelectedBlockCount: {
|
|
830
|
-
(state: any, ...args: any[]): any
|
|
832
|
+
export declare const getSelectedBlockCount: {
|
|
833
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
831
834
|
isRegistrySelector?: boolean;
|
|
832
835
|
registry?: any;
|
|
833
836
|
};
|
|
834
837
|
/**
|
|
835
838
|
* @see hasSelectedBlock in core/block-editor store.
|
|
836
839
|
*/
|
|
837
|
-
export const hasSelectedBlock: {
|
|
838
|
-
(state: any, ...args: any[]): any
|
|
840
|
+
export declare const hasSelectedBlock: {
|
|
841
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
839
842
|
isRegistrySelector?: boolean;
|
|
840
843
|
registry?: any;
|
|
841
844
|
};
|
|
842
845
|
/**
|
|
843
846
|
* @see getSelectedBlockClientId in core/block-editor store.
|
|
844
847
|
*/
|
|
845
|
-
export const getSelectedBlockClientId: {
|
|
846
|
-
(state: any, ...args: any[]): any
|
|
848
|
+
export declare const getSelectedBlockClientId: {
|
|
849
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
847
850
|
isRegistrySelector?: boolean;
|
|
848
851
|
registry?: any;
|
|
849
852
|
};
|
|
850
853
|
/**
|
|
851
854
|
* @see getSelectedBlock in core/block-editor store.
|
|
852
855
|
*/
|
|
853
|
-
export const getSelectedBlock: {
|
|
854
|
-
(state: any, ...args: any[]): any
|
|
856
|
+
export declare const getSelectedBlock: {
|
|
857
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
855
858
|
isRegistrySelector?: boolean;
|
|
856
859
|
registry?: any;
|
|
857
860
|
};
|
|
858
861
|
/**
|
|
859
862
|
* @see getBlockRootClientId in core/block-editor store.
|
|
860
863
|
*/
|
|
861
|
-
export const getBlockRootClientId: {
|
|
862
|
-
(state: any, ...args: any[]): any
|
|
864
|
+
export declare const getBlockRootClientId: {
|
|
865
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
863
866
|
isRegistrySelector?: boolean;
|
|
864
867
|
registry?: any;
|
|
865
868
|
};
|
|
866
869
|
/**
|
|
867
870
|
* @see getBlockHierarchyRootClientId in core/block-editor store.
|
|
868
871
|
*/
|
|
869
|
-
export const getBlockHierarchyRootClientId: {
|
|
870
|
-
(state: any, ...args: any[]): any
|
|
872
|
+
export declare const getBlockHierarchyRootClientId: {
|
|
873
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
871
874
|
isRegistrySelector?: boolean;
|
|
872
875
|
registry?: any;
|
|
873
876
|
};
|
|
874
877
|
/**
|
|
875
878
|
* @see getAdjacentBlockClientId in core/block-editor store.
|
|
876
879
|
*/
|
|
877
|
-
export const getAdjacentBlockClientId: {
|
|
878
|
-
(state: any, ...args: any[]): any
|
|
880
|
+
export declare const getAdjacentBlockClientId: {
|
|
881
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
879
882
|
isRegistrySelector?: boolean;
|
|
880
883
|
registry?: any;
|
|
881
884
|
};
|
|
882
885
|
/**
|
|
883
886
|
* @see getPreviousBlockClientId in core/block-editor store.
|
|
884
887
|
*/
|
|
885
|
-
export const getPreviousBlockClientId: {
|
|
886
|
-
(state: any, ...args: any[]): any
|
|
888
|
+
export declare const getPreviousBlockClientId: {
|
|
889
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
887
890
|
isRegistrySelector?: boolean;
|
|
888
891
|
registry?: any;
|
|
889
892
|
};
|
|
890
893
|
/**
|
|
891
894
|
* @see getNextBlockClientId in core/block-editor store.
|
|
892
895
|
*/
|
|
893
|
-
export const getNextBlockClientId: {
|
|
894
|
-
(state: any, ...args: any[]): any
|
|
896
|
+
export declare const getNextBlockClientId: {
|
|
897
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
895
898
|
isRegistrySelector?: boolean;
|
|
896
899
|
registry?: any;
|
|
897
900
|
};
|
|
898
901
|
/**
|
|
899
902
|
* @see getSelectedBlocksInitialCaretPosition in core/block-editor store.
|
|
900
903
|
*/
|
|
901
|
-
export const getSelectedBlocksInitialCaretPosition: {
|
|
902
|
-
(state: any, ...args: any[]): any
|
|
904
|
+
export declare const getSelectedBlocksInitialCaretPosition: {
|
|
905
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
903
906
|
isRegistrySelector?: boolean;
|
|
904
907
|
registry?: any;
|
|
905
908
|
};
|
|
906
909
|
/**
|
|
907
910
|
* @see getMultiSelectedBlockClientIds in core/block-editor store.
|
|
908
911
|
*/
|
|
909
|
-
export const getMultiSelectedBlockClientIds: {
|
|
910
|
-
(state: any, ...args: any[]): any
|
|
912
|
+
export declare const getMultiSelectedBlockClientIds: {
|
|
913
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
911
914
|
isRegistrySelector?: boolean;
|
|
912
915
|
registry?: any;
|
|
913
916
|
};
|
|
914
917
|
/**
|
|
915
918
|
* @see getMultiSelectedBlocks in core/block-editor store.
|
|
916
919
|
*/
|
|
917
|
-
export const getMultiSelectedBlocks: {
|
|
918
|
-
(state: any, ...args: any[]): any
|
|
920
|
+
export declare const getMultiSelectedBlocks: {
|
|
921
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
919
922
|
isRegistrySelector?: boolean;
|
|
920
923
|
registry?: any;
|
|
921
924
|
};
|
|
922
925
|
/**
|
|
923
926
|
* @see getFirstMultiSelectedBlockClientId in core/block-editor store.
|
|
924
927
|
*/
|
|
925
|
-
export const getFirstMultiSelectedBlockClientId: {
|
|
926
|
-
(state: any, ...args: any[]): any
|
|
928
|
+
export declare const getFirstMultiSelectedBlockClientId: {
|
|
929
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
927
930
|
isRegistrySelector?: boolean;
|
|
928
931
|
registry?: any;
|
|
929
932
|
};
|
|
930
933
|
/**
|
|
931
934
|
* @see getLastMultiSelectedBlockClientId in core/block-editor store.
|
|
932
935
|
*/
|
|
933
|
-
export const getLastMultiSelectedBlockClientId: {
|
|
934
|
-
(state: any, ...args: any[]): any
|
|
936
|
+
export declare const getLastMultiSelectedBlockClientId: {
|
|
937
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
935
938
|
isRegistrySelector?: boolean;
|
|
936
939
|
registry?: any;
|
|
937
940
|
};
|
|
938
941
|
/**
|
|
939
942
|
* @see isFirstMultiSelectedBlock in core/block-editor store.
|
|
940
943
|
*/
|
|
941
|
-
export const isFirstMultiSelectedBlock: {
|
|
942
|
-
(state: any, ...args: any[]): any
|
|
944
|
+
export declare const isFirstMultiSelectedBlock: {
|
|
945
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
943
946
|
isRegistrySelector?: boolean;
|
|
944
947
|
registry?: any;
|
|
945
948
|
};
|
|
946
949
|
/**
|
|
947
950
|
* @see isBlockMultiSelected in core/block-editor store.
|
|
948
951
|
*/
|
|
949
|
-
export const isBlockMultiSelected: {
|
|
950
|
-
(state: any, ...args: any[]): any
|
|
952
|
+
export declare const isBlockMultiSelected: {
|
|
953
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
951
954
|
isRegistrySelector?: boolean;
|
|
952
955
|
registry?: any;
|
|
953
956
|
};
|
|
954
957
|
/**
|
|
955
958
|
* @see isAncestorMultiSelected in core/block-editor store.
|
|
956
959
|
*/
|
|
957
|
-
export const isAncestorMultiSelected: {
|
|
958
|
-
(state: any, ...args: any[]): any
|
|
960
|
+
export declare const isAncestorMultiSelected: {
|
|
961
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
959
962
|
isRegistrySelector?: boolean;
|
|
960
963
|
registry?: any;
|
|
961
964
|
};
|
|
962
965
|
/**
|
|
963
966
|
* @see getMultiSelectedBlocksStartClientId in core/block-editor store.
|
|
964
967
|
*/
|
|
965
|
-
export const getMultiSelectedBlocksStartClientId: {
|
|
966
|
-
(state: any, ...args: any[]): any
|
|
968
|
+
export declare const getMultiSelectedBlocksStartClientId: {
|
|
969
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
967
970
|
isRegistrySelector?: boolean;
|
|
968
971
|
registry?: any;
|
|
969
972
|
};
|
|
970
973
|
/**
|
|
971
974
|
* @see getMultiSelectedBlocksEndClientId in core/block-editor store.
|
|
972
975
|
*/
|
|
973
|
-
export const getMultiSelectedBlocksEndClientId: {
|
|
974
|
-
(state: any, ...args: any[]): any
|
|
976
|
+
export declare const getMultiSelectedBlocksEndClientId: {
|
|
977
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
975
978
|
isRegistrySelector?: boolean;
|
|
976
979
|
registry?: any;
|
|
977
980
|
};
|
|
978
981
|
/**
|
|
979
982
|
* @see getBlockOrder in core/block-editor store.
|
|
980
983
|
*/
|
|
981
|
-
export const getBlockOrder: {
|
|
982
|
-
(state: any, ...args: any[]): any
|
|
984
|
+
export declare const getBlockOrder: {
|
|
985
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
983
986
|
isRegistrySelector?: boolean;
|
|
984
987
|
registry?: any;
|
|
985
988
|
};
|
|
986
989
|
/**
|
|
987
990
|
* @see getBlockIndex in core/block-editor store.
|
|
988
991
|
*/
|
|
989
|
-
export const getBlockIndex: {
|
|
990
|
-
(state: any, ...args: any[]): any
|
|
992
|
+
export declare const getBlockIndex: {
|
|
993
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
991
994
|
isRegistrySelector?: boolean;
|
|
992
995
|
registry?: any;
|
|
993
996
|
};
|
|
994
997
|
/**
|
|
995
998
|
* @see isBlockSelected in core/block-editor store.
|
|
996
999
|
*/
|
|
997
|
-
export const isBlockSelected: {
|
|
998
|
-
(state: any, ...args: any[]): any
|
|
1000
|
+
export declare const isBlockSelected: {
|
|
1001
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
999
1002
|
isRegistrySelector?: boolean;
|
|
1000
1003
|
registry?: any;
|
|
1001
1004
|
};
|
|
1002
1005
|
/**
|
|
1003
1006
|
* @see hasSelectedInnerBlock in core/block-editor store.
|
|
1004
1007
|
*/
|
|
1005
|
-
export const hasSelectedInnerBlock: {
|
|
1006
|
-
(state: any, ...args: any[]): any
|
|
1008
|
+
export declare const hasSelectedInnerBlock: {
|
|
1009
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1007
1010
|
isRegistrySelector?: boolean;
|
|
1008
1011
|
registry?: any;
|
|
1009
1012
|
};
|
|
1010
1013
|
/**
|
|
1011
1014
|
* @see isBlockWithinSelection in core/block-editor store.
|
|
1012
1015
|
*/
|
|
1013
|
-
export const isBlockWithinSelection: {
|
|
1014
|
-
(state: any, ...args: any[]): any
|
|
1016
|
+
export declare const isBlockWithinSelection: {
|
|
1017
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1015
1018
|
isRegistrySelector?: boolean;
|
|
1016
1019
|
registry?: any;
|
|
1017
1020
|
};
|
|
1018
1021
|
/**
|
|
1019
1022
|
* @see hasMultiSelection in core/block-editor store.
|
|
1020
1023
|
*/
|
|
1021
|
-
export const hasMultiSelection: {
|
|
1022
|
-
(state: any, ...args: any[]): any
|
|
1024
|
+
export declare const hasMultiSelection: {
|
|
1025
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1023
1026
|
isRegistrySelector?: boolean;
|
|
1024
1027
|
registry?: any;
|
|
1025
1028
|
};
|
|
1026
1029
|
/**
|
|
1027
1030
|
* @see isMultiSelecting in core/block-editor store.
|
|
1028
1031
|
*/
|
|
1029
|
-
export const isMultiSelecting: {
|
|
1030
|
-
(state: any, ...args: any[]): any
|
|
1032
|
+
export declare const isMultiSelecting: {
|
|
1033
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1031
1034
|
isRegistrySelector?: boolean;
|
|
1032
1035
|
registry?: any;
|
|
1033
1036
|
};
|
|
1034
1037
|
/**
|
|
1035
1038
|
* @see isSelectionEnabled in core/block-editor store.
|
|
1036
1039
|
*/
|
|
1037
|
-
export const isSelectionEnabled: {
|
|
1038
|
-
(state: any, ...args: any[]): any
|
|
1040
|
+
export declare const isSelectionEnabled: {
|
|
1041
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1039
1042
|
isRegistrySelector?: boolean;
|
|
1040
1043
|
registry?: any;
|
|
1041
1044
|
};
|
|
1042
1045
|
/**
|
|
1043
1046
|
* @see getBlockMode in core/block-editor store.
|
|
1044
1047
|
*/
|
|
1045
|
-
export const getBlockMode: {
|
|
1046
|
-
(state: any, ...args: any[]): any
|
|
1048
|
+
export declare const getBlockMode: {
|
|
1049
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1047
1050
|
isRegistrySelector?: boolean;
|
|
1048
1051
|
registry?: any;
|
|
1049
1052
|
};
|
|
1050
1053
|
/**
|
|
1051
1054
|
* @see isTyping in core/block-editor store.
|
|
1052
1055
|
*/
|
|
1053
|
-
export const isTyping: {
|
|
1054
|
-
(state: any, ...args: any[]): any
|
|
1056
|
+
export declare const isTyping: {
|
|
1057
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1055
1058
|
isRegistrySelector?: boolean;
|
|
1056
1059
|
registry?: any;
|
|
1057
1060
|
};
|
|
1058
1061
|
/**
|
|
1059
1062
|
* @see isCaretWithinFormattedText in core/block-editor store.
|
|
1060
1063
|
*/
|
|
1061
|
-
export const isCaretWithinFormattedText: {
|
|
1062
|
-
(state: any, ...args: any[]): any
|
|
1064
|
+
export declare const isCaretWithinFormattedText: {
|
|
1065
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1063
1066
|
isRegistrySelector?: boolean;
|
|
1064
1067
|
registry?: any;
|
|
1065
1068
|
};
|
|
1066
1069
|
/**
|
|
1067
1070
|
* @see getBlockInsertionPoint in core/block-editor store.
|
|
1068
1071
|
*/
|
|
1069
|
-
export const getBlockInsertionPoint: {
|
|
1070
|
-
(state: any, ...args: any[]): any
|
|
1072
|
+
export declare const getBlockInsertionPoint: {
|
|
1073
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1071
1074
|
isRegistrySelector?: boolean;
|
|
1072
1075
|
registry?: any;
|
|
1073
1076
|
};
|
|
1074
1077
|
/**
|
|
1075
1078
|
* @see isBlockInsertionPointVisible in core/block-editor store.
|
|
1076
1079
|
*/
|
|
1077
|
-
export const isBlockInsertionPointVisible: {
|
|
1078
|
-
(state: any, ...args: any[]): any
|
|
1080
|
+
export declare const isBlockInsertionPointVisible: {
|
|
1081
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1079
1082
|
isRegistrySelector?: boolean;
|
|
1080
1083
|
registry?: any;
|
|
1081
1084
|
};
|
|
1082
1085
|
/**
|
|
1083
1086
|
* @see isValidTemplate in core/block-editor store.
|
|
1084
1087
|
*/
|
|
1085
|
-
export const isValidTemplate: {
|
|
1086
|
-
(state: any, ...args: any[]): any
|
|
1088
|
+
export declare const isValidTemplate: {
|
|
1089
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1087
1090
|
isRegistrySelector?: boolean;
|
|
1088
1091
|
registry?: any;
|
|
1089
1092
|
};
|
|
1090
1093
|
/**
|
|
1091
1094
|
* @see getTemplate in core/block-editor store.
|
|
1092
1095
|
*/
|
|
1093
|
-
export const getTemplate: {
|
|
1094
|
-
(state: any, ...args: any[]): any
|
|
1096
|
+
export declare const getTemplate: {
|
|
1097
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1095
1098
|
isRegistrySelector?: boolean;
|
|
1096
1099
|
registry?: any;
|
|
1097
1100
|
};
|
|
1098
1101
|
/**
|
|
1099
1102
|
* @see getTemplateLock in core/block-editor store.
|
|
1100
1103
|
*/
|
|
1101
|
-
export const getTemplateLock: {
|
|
1102
|
-
(state: any, ...args: any[]): any
|
|
1104
|
+
export declare const getTemplateLock: {
|
|
1105
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1103
1106
|
isRegistrySelector?: boolean;
|
|
1104
1107
|
registry?: any;
|
|
1105
1108
|
};
|
|
1106
1109
|
/**
|
|
1107
1110
|
* @see canInsertBlockType in core/block-editor store.
|
|
1108
1111
|
*/
|
|
1109
|
-
export const canInsertBlockType: {
|
|
1110
|
-
(state: any, ...args: any[]): any
|
|
1112
|
+
export declare const canInsertBlockType: {
|
|
1113
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1111
1114
|
isRegistrySelector?: boolean;
|
|
1112
1115
|
registry?: any;
|
|
1113
1116
|
};
|
|
1114
1117
|
/**
|
|
1115
1118
|
* @see getInserterItems in core/block-editor store.
|
|
1116
1119
|
*/
|
|
1117
|
-
export const getInserterItems: {
|
|
1118
|
-
(state: any, ...args: any[]): any
|
|
1120
|
+
export declare const getInserterItems: {
|
|
1121
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1119
1122
|
isRegistrySelector?: boolean;
|
|
1120
1123
|
registry?: any;
|
|
1121
1124
|
};
|
|
1122
1125
|
/**
|
|
1123
1126
|
* @see hasInserterItems in core/block-editor store.
|
|
1124
1127
|
*/
|
|
1125
|
-
export const hasInserterItems: {
|
|
1126
|
-
(state: any, ...args: any[]): any
|
|
1128
|
+
export declare const hasInserterItems: {
|
|
1129
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1127
1130
|
isRegistrySelector?: boolean;
|
|
1128
1131
|
registry?: any;
|
|
1129
1132
|
};
|
|
1130
1133
|
/**
|
|
1131
1134
|
* @see getBlockListSettings in core/block-editor store.
|
|
1132
1135
|
*/
|
|
1133
|
-
export const getBlockListSettings: {
|
|
1134
|
-
(state: any, ...args: any[]): any
|
|
1136
|
+
export declare const getBlockListSettings: {
|
|
1137
|
+
(state: any, ...args: any[]): ReturnType<(state: any, ...args: any[]) => any>;
|
|
1135
1138
|
isRegistrySelector?: boolean;
|
|
1136
1139
|
registry?: any;
|
|
1137
1140
|
};
|
|
1138
|
-
export const __experimentalGetDefaultTemplateTypes: {
|
|
1141
|
+
export declare const __experimentalGetDefaultTemplateTypes: {
|
|
1139
1142
|
(): any;
|
|
1140
1143
|
isRegistrySelector?: boolean;
|
|
1141
1144
|
registry?: any;
|
|
@@ -1147,7 +1150,7 @@ export const __experimentalGetDefaultTemplateTypes: {
|
|
|
1147
1150
|
*
|
|
1148
1151
|
* @return {Array} The template part areas.
|
|
1149
1152
|
*/
|
|
1150
|
-
export const __experimentalGetDefaultTemplatePartAreas: {
|
|
1153
|
+
export declare const __experimentalGetDefaultTemplatePartAreas: {
|
|
1151
1154
|
(): any;
|
|
1152
1155
|
isRegistrySelector?: boolean;
|
|
1153
1156
|
registry?: any;
|
|
@@ -1160,8 +1163,8 @@ export const __experimentalGetDefaultTemplatePartAreas: {
|
|
|
1160
1163
|
*
|
|
1161
1164
|
* @return {Object} The template type.
|
|
1162
1165
|
*/
|
|
1163
|
-
export const __experimentalGetDefaultTemplateType: {
|
|
1164
|
-
(state: any, slug: any):
|
|
1166
|
+
export declare const __experimentalGetDefaultTemplateType: {
|
|
1167
|
+
(state: any, slug: any): {};
|
|
1165
1168
|
isRegistrySelector?: boolean;
|
|
1166
1169
|
registry?: any;
|
|
1167
1170
|
};
|
|
@@ -1173,7 +1176,7 @@ export const __experimentalGetDefaultTemplateType: {
|
|
|
1173
1176
|
* @param {Object} template The template for which we need information.
|
|
1174
1177
|
* @return {Object} Information about the template, including title, description, and icon.
|
|
1175
1178
|
*/
|
|
1176
|
-
export const __experimentalGetTemplateInfo: {
|
|
1179
|
+
export declare const __experimentalGetTemplateInfo: {
|
|
1177
1180
|
(state: any, template: any): {};
|
|
1178
1181
|
isRegistrySelector?: boolean;
|
|
1179
1182
|
registry?: any;
|
|
@@ -1185,37 +1188,27 @@ export const __experimentalGetTemplateInfo: {
|
|
|
1185
1188
|
*
|
|
1186
1189
|
* @return {string|undefined} The post type label if available, otherwise undefined.
|
|
1187
1190
|
*/
|
|
1188
|
-
export const getPostTypeLabel: {
|
|
1191
|
+
export declare const getPostTypeLabel: {
|
|
1189
1192
|
(state: any): string | undefined;
|
|
1190
1193
|
isRegistrySelector?: boolean;
|
|
1191
1194
|
registry?: any;
|
|
1192
1195
|
};
|
|
1196
|
+
/**
|
|
1197
|
+
* Returns true if the publish sidebar is opened.
|
|
1198
|
+
*
|
|
1199
|
+
* @param {Object} state Global application state
|
|
1200
|
+
*
|
|
1201
|
+
* @return {boolean} Whether the publish sidebar is open.
|
|
1202
|
+
*/
|
|
1203
|
+
export declare function isPublishSidebarOpened(state: Object): boolean;
|
|
1193
1204
|
/**
|
|
1194
1205
|
* Returns whether the collaboration is enabled for the current post.
|
|
1195
1206
|
*
|
|
1196
1207
|
* @return {boolean} Whether collaboration is enabled.
|
|
1197
1208
|
*/
|
|
1198
|
-
export const isCollaborationEnabledForCurrentPost: {
|
|
1209
|
+
export declare const isCollaborationEnabledForCurrentPost: {
|
|
1199
1210
|
(state: any): boolean;
|
|
1200
1211
|
isRegistrySelector?: boolean;
|
|
1201
1212
|
registry?: any;
|
|
1202
1213
|
};
|
|
1203
|
-
/**
|
|
1204
|
-
* A block selection object.
|
|
1205
|
-
*/
|
|
1206
|
-
export type WPBlockSelection = {
|
|
1207
|
-
/**
|
|
1208
|
-
* A block client ID.
|
|
1209
|
-
*/
|
|
1210
|
-
clientId: string;
|
|
1211
|
-
/**
|
|
1212
|
-
* A block attribute key.
|
|
1213
|
-
*/
|
|
1214
|
-
attributeKey: string;
|
|
1215
|
-
/**
|
|
1216
|
-
* An attribute value offset, based on the rich
|
|
1217
|
-
* text value. See `wp.richText.create`.
|
|
1218
|
-
*/
|
|
1219
|
-
offset: number;
|
|
1220
|
-
};
|
|
1221
1214
|
//# sourceMappingURL=selectors.d.ts.map
|