@wordpress/editor 14.2.0 → 14.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/build/bindings/pattern-overrides.js +8 -5
- package/build/bindings/pattern-overrides.js.map +1 -1
- package/build/bindings/post-meta.js +4 -0
- package/build/bindings/post-meta.js.map +1 -1
- package/build/components/editor-interface/index.js +2 -1
- package/build/components/editor-interface/index.js.map +1 -1
- package/build/components/entities-saved-states/index.js +1 -1
- package/build/components/entities-saved-states/index.js.map +1 -1
- package/build/components/inserter-sidebar/index.js +10 -21
- package/build/components/inserter-sidebar/index.js.map +1 -1
- package/build/components/list-view-sidebar/index.js +19 -47
- package/build/components/list-view-sidebar/index.js.map +1 -1
- package/build/components/page-attributes/parent.js +2 -1
- package/build/components/page-attributes/parent.js.map +1 -1
- package/build/components/post-actions/actions.js +67 -215
- package/build/components/post-actions/actions.js.map +1 -1
- package/build/components/post-actions/index.js +1 -1
- package/build/components/post-actions/index.js.map +1 -1
- package/build/components/post-excerpt/panel.js +1 -1
- package/build/components/post-excerpt/panel.js.map +1 -1
- package/build/components/post-preview-button/index.js +1 -1
- package/build/components/post-preview-button/index.js.map +1 -1
- package/build/components/post-publish-panel/index.js +1 -1
- package/build/components/post-publish-panel/index.js.map +1 -1
- package/build/components/post-saved-state/index.js +11 -1
- package/build/components/post-saved-state/index.js.map +1 -1
- package/build/components/post-schedule/index.js +3 -0
- package/build/components/post-schedule/index.js.map +1 -1
- package/build/components/post-status/index.js +2 -1
- package/build/components/post-status/index.js.map +1 -1
- package/build/components/post-title/index.js +5 -13
- package/build/components/post-title/index.js.map +1 -1
- package/build/components/preview-dropdown/index.js +1 -1
- package/build/components/preview-dropdown/index.js.map +1 -1
- package/build/components/provider/index.native.js +0 -4
- package/build/components/provider/index.native.js.map +1 -1
- package/build/components/provider/use-block-editor-settings.js +7 -4
- package/build/components/provider/use-block-editor-settings.js.map +1 -1
- package/build/components/save-publish-panels/index.js +30 -16
- package/build/components/save-publish-panels/index.js.map +1 -1
- package/build/components/sidebar/index.js +3 -1
- package/build/components/sidebar/index.js.map +1 -1
- package/build/components/sidebar/post-summary.js +1 -2
- package/build/components/sidebar/post-summary.js.map +1 -1
- package/build/components/template-content-panel/index.js +29 -4
- package/build/components/template-content-panel/index.js.map +1 -1
- package/build/components/visual-editor/index.js +1 -1
- package/build/components/visual-editor/index.js.map +1 -1
- package/build/dataviews/actions/delete-post.js +96 -0
- package/build/dataviews/actions/delete-post.js.map +1 -0
- package/build/{components/post-actions/export-pattern-action.js → dataviews/actions/export-pattern.js} +11 -20
- package/build/dataviews/actions/export-pattern.js.map +1 -0
- package/build/dataviews/actions/index.js +32 -0
- package/build/dataviews/actions/index.js.map +1 -0
- package/build/dataviews/actions/reset-post.js +111 -0
- package/build/dataviews/actions/reset-post.js.map +1 -0
- package/build/dataviews/actions/utils.js +50 -0
- package/build/dataviews/actions/utils.js.map +1 -0
- package/build/dataviews/store/private-actions.js.map +1 -1
- package/build/dataviews/store/private-selectors.js +6 -6
- package/build/dataviews/store/private-selectors.js.map +1 -1
- package/build/dataviews/store/reducer.js +6 -2
- package/build/dataviews/store/reducer.js.map +1 -1
- package/build/dataviews/types.js +6 -0
- package/build/dataviews/types.js.map +1 -0
- package/build/hooks/pattern-overrides.js +2 -2
- package/build/hooks/pattern-overrides.js.map +1 -1
- package/build/private-apis.js +2 -0
- package/build/private-apis.js.map +1 -1
- package/build/private-apis.native.js +0 -2
- package/build/private-apis.native.js.map +1 -1
- package/build/store/constants.js.map +1 -1
- package/build/store/private-actions.js +1 -1
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +0 -18
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/utils/is-template-revertable.js +6 -8
- package/build/store/utils/is-template-revertable.js.map +1 -1
- package/build-module/bindings/pattern-overrides.js +8 -5
- package/build-module/bindings/pattern-overrides.js.map +1 -1
- package/build-module/bindings/post-meta.js +4 -0
- package/build-module/bindings/post-meta.js.map +1 -1
- package/build-module/components/editor-interface/index.js +2 -1
- package/build-module/components/editor-interface/index.js.map +1 -1
- package/build-module/components/entities-saved-states/index.js +1 -1
- package/build-module/components/entities-saved-states/index.js.map +1 -1
- package/build-module/components/inserter-sidebar/index.js +11 -22
- package/build-module/components/inserter-sidebar/index.js.map +1 -1
- package/build-module/components/list-view-sidebar/index.js +20 -49
- package/build-module/components/list-view-sidebar/index.js.map +1 -1
- package/build-module/components/page-attributes/parent.js +2 -1
- package/build-module/components/page-attributes/parent.js.map +1 -1
- package/build-module/components/post-actions/actions.js +63 -210
- package/build-module/components/post-actions/actions.js.map +1 -1
- package/build-module/components/post-actions/index.js +1 -1
- package/build-module/components/post-actions/index.js.map +1 -1
- package/build-module/components/post-excerpt/panel.js +1 -1
- package/build-module/components/post-excerpt/panel.js.map +1 -1
- package/build-module/components/post-preview-button/index.js +1 -1
- package/build-module/components/post-preview-button/index.js.map +1 -1
- package/build-module/components/post-publish-panel/index.js +1 -1
- package/build-module/components/post-publish-panel/index.js.map +1 -1
- package/build-module/components/post-saved-state/index.js +11 -1
- package/build-module/components/post-saved-state/index.js.map +1 -1
- package/build-module/components/post-schedule/index.js +3 -0
- package/build-module/components/post-schedule/index.js.map +1 -1
- package/build-module/components/post-status/index.js +1 -1
- package/build-module/components/post-status/index.js.map +1 -1
- package/build-module/components/post-title/index.js +5 -13
- package/build-module/components/post-title/index.js.map +1 -1
- package/build-module/components/preview-dropdown/index.js +1 -1
- package/build-module/components/preview-dropdown/index.js.map +1 -1
- package/build-module/components/provider/index.native.js +0 -4
- package/build-module/components/provider/index.native.js.map +1 -1
- package/build-module/components/provider/use-block-editor-settings.js +7 -4
- package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
- package/build-module/components/save-publish-panels/index.js +30 -16
- package/build-module/components/save-publish-panels/index.js.map +1 -1
- package/build-module/components/sidebar/index.js +3 -1
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/sidebar/post-summary.js +1 -2
- package/build-module/components/sidebar/post-summary.js.map +1 -1
- package/build-module/components/template-content-panel/index.js +30 -5
- package/build-module/components/template-content-panel/index.js.map +1 -1
- package/build-module/components/visual-editor/index.js +1 -1
- package/build-module/components/visual-editor/index.js.map +1 -1
- package/build-module/dataviews/actions/delete-post.js +87 -0
- package/build-module/dataviews/actions/delete-post.js.map +1 -0
- package/build-module/{components/post-actions/export-pattern-action.js → dataviews/actions/export-pattern.js} +10 -19
- package/build-module/dataviews/actions/export-pattern.js.map +1 -0
- package/build-module/dataviews/actions/index.js +24 -0
- package/build-module/dataviews/actions/index.js.map +1 -0
- package/build-module/dataviews/actions/reset-post.js +104 -0
- package/build-module/dataviews/actions/reset-post.js.map +1 -0
- package/build-module/dataviews/actions/utils.js +41 -0
- package/build-module/dataviews/actions/utils.js.map +1 -0
- package/build-module/dataviews/store/private-actions.js.map +1 -1
- package/build-module/dataviews/store/private-selectors.js +5 -5
- package/build-module/dataviews/store/private-selectors.js.map +1 -1
- package/build-module/dataviews/store/reducer.js +6 -2
- package/build-module/dataviews/store/reducer.js.map +1 -1
- package/build-module/dataviews/types.js +2 -0
- package/build-module/dataviews/types.js.map +1 -0
- package/build-module/hooks/pattern-overrides.js +3 -1
- package/build-module/hooks/pattern-overrides.js.map +1 -1
- package/build-module/private-apis.js +2 -0
- package/build-module/private-apis.js.map +1 -1
- package/build-module/private-apis.native.js +0 -2
- package/build-module/private-apis.native.js.map +1 -1
- package/build-module/store/constants.js.map +1 -1
- package/build-module/store/private-actions.js +1 -1
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +0 -17
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/utils/is-template-revertable.js +6 -8
- package/build-module/store/utils/is-template-revertable.js.map +1 -1
- package/build-style/style-rtl.css +15 -53
- package/build-style/style.css +15 -53
- package/build-types/bindings/index.d.ts +2 -0
- package/build-types/bindings/index.d.ts.map +1 -0
- package/build-types/bindings/pattern-overrides.d.ts +18 -0
- package/build-types/bindings/pattern-overrides.d.ts.map +1 -0
- package/build-types/bindings/post-meta.d.ts +25 -0
- package/build-types/bindings/post-meta.d.ts.map +1 -0
- package/build-types/components/autocompleters/index.d.ts +2 -0
- package/build-types/components/autocompleters/index.d.ts.map +1 -0
- package/build-types/components/autocompleters/user.d.ts +6 -0
- package/build-types/components/autocompleters/user.d.ts.map +1 -0
- package/build-types/components/autosave-monitor/index.d.ts +15 -0
- package/build-types/components/autosave-monitor/index.d.ts.map +1 -0
- package/build-types/components/block-manager/category.d.ts +6 -0
- package/build-types/components/block-manager/category.d.ts.map +1 -0
- package/build-types/components/block-manager/checklist.d.ts +7 -0
- package/build-types/components/block-manager/checklist.d.ts.map +1 -0
- package/build-types/components/block-manager/index.d.ts +3 -0
- package/build-types/components/block-manager/index.d.ts.map +1 -0
- package/build-types/components/block-removal-warnings/index.d.ts +2 -0
- package/build-types/components/block-removal-warnings/index.d.ts.map +1 -0
- package/build-types/components/block-settings-menu/content-only-settings-menu.d.ts +2 -0
- package/build-types/components/block-settings-menu/content-only-settings-menu.d.ts.map +1 -0
- package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts +65 -0
- package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts.map +1 -0
- package/build-types/components/blog-title/index.d.ts +2 -0
- package/build-types/components/blog-title/index.d.ts.map +1 -0
- package/build-types/components/character-count/index.d.ts +7 -0
- package/build-types/components/character-count/index.d.ts.map +1 -0
- package/build-types/components/collapsible-block-toolbar/index.d.ts +6 -0
- package/build-types/components/collapsible-block-toolbar/index.d.ts.map +1 -0
- package/build-types/components/commands/index.d.ts +2 -0
- package/build-types/components/commands/index.d.ts.map +1 -0
- package/build-types/components/create-template-part-modal/index.d.ts +14 -0
- package/build-types/components/create-template-part-modal/index.d.ts.map +1 -0
- package/build-types/components/create-template-part-modal/utils.d.ts +4 -0
- package/build-types/components/create-template-part-modal/utils.d.ts.map +1 -0
- package/build-types/components/deprecated.d.ts +182 -0
- package/build-types/components/deprecated.d.ts.map +1 -0
- package/build-types/components/document-bar/index.d.ts +22 -0
- package/build-types/components/document-bar/index.d.ts.map +1 -0
- package/build-types/components/document-outline/check.d.ts +12 -0
- package/build-types/components/document-outline/check.d.ts.map +1 -0
- package/build-types/components/document-outline/index.d.ts +16 -0
- package/build-types/components/document-outline/index.d.ts.map +1 -0
- package/build-types/components/document-outline/item.d.ts +9 -0
- package/build-types/components/document-outline/item.d.ts.map +1 -0
- package/build-types/components/document-tools/index.d.ts +6 -0
- package/build-types/components/document-tools/index.d.ts.map +1 -0
- package/build-types/components/editor/index.d.ts +14 -0
- package/build-types/components/editor/index.d.ts.map +1 -0
- package/build-types/components/editor-history/redo.d.ts +4 -0
- package/build-types/components/editor-history/redo.d.ts.map +1 -0
- package/build-types/components/editor-history/undo.d.ts +4 -0
- package/build-types/components/editor-history/undo.d.ts.map +1 -0
- package/build-types/components/editor-interface/content-slot-fill.d.ts +3 -0
- package/build-types/components/editor-interface/content-slot-fill.d.ts.map +1 -0
- package/build-types/components/editor-interface/index.d.ts +17 -0
- package/build-types/components/editor-interface/index.d.ts.map +1 -0
- package/build-types/components/editor-notices/index.d.ts +13 -0
- package/build-types/components/editor-notices/index.d.ts.map +1 -0
- package/build-types/components/editor-snackbars/index.d.ts +7 -0
- package/build-types/components/editor-snackbars/index.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/entity-record-item.d.ts +6 -0
- package/build-types/components/entities-saved-states/entity-record-item.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/entity-type-list.d.ts +6 -0
- package/build-types/components/entities-saved-states/entity-type-list.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/hooks/use-is-dirty.d.ts +2 -0
- package/build-types/components/entities-saved-states/hooks/use-is-dirty.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/index.d.ts +43 -0
- package/build-types/components/entities-saved-states/index.d.ts.map +1 -0
- package/build-types/components/error-boundary/index.d.ts +14 -0
- package/build-types/components/error-boundary/index.d.ts.map +1 -0
- package/build-types/components/global-keyboard-shortcuts/index.d.ts +9 -0
- package/build-types/components/global-keyboard-shortcuts/index.d.ts.map +1 -0
- package/build-types/components/global-keyboard-shortcuts/register-shortcuts.d.ts +8 -0
- package/build-types/components/global-keyboard-shortcuts/register-shortcuts.d.ts.map +1 -0
- package/build-types/components/global-styles-provider/index.d.ts +20 -0
- package/build-types/components/global-styles-provider/index.d.ts.map +1 -0
- package/build-types/components/header/back-button.d.ts +6 -0
- package/build-types/components/header/back-button.d.ts.map +1 -0
- package/build-types/components/header/index.d.ts +10 -0
- package/build-types/components/header/index.d.ts.map +1 -0
- package/build-types/components/index.d.ts +108 -0
- package/build-types/components/index.d.ts.map +1 -0
- package/build-types/components/inserter-sidebar/index.d.ts +2 -0
- package/build-types/components/inserter-sidebar/index.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/config.d.ts +26 -0
- package/build-types/components/keyboard-shortcut-help-modal/config.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts +5 -0
- package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/index.d.ts +3 -0
- package/build-types/components/keyboard-shortcut-help-modal/index.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts +8 -0
- package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts.map +1 -0
- package/build-types/components/list-view-sidebar/index.d.ts +2 -0
- package/build-types/components/list-view-sidebar/index.d.ts.map +1 -0
- package/build-types/components/list-view-sidebar/list-view-outline.d.ts +2 -0
- package/build-types/components/list-view-sidebar/list-view-outline.d.ts.map +1 -0
- package/build-types/components/local-autosave-monitor/index.d.ts +3 -0
- package/build-types/components/local-autosave-monitor/index.d.ts.map +1 -0
- package/build-types/components/media-categories/index.d.ts +7 -0
- package/build-types/components/media-categories/index.d.ts.map +1 -0
- package/build-types/components/mode-switcher/index.d.ts +3 -0
- package/build-types/components/mode-switcher/index.d.ts.map +1 -0
- package/build-types/components/more-menu/copy-content-menu-item.d.ts +2 -0
- package/build-types/components/more-menu/copy-content-menu-item.d.ts.map +1 -0
- package/build-types/components/more-menu/index.d.ts +2 -0
- package/build-types/components/more-menu/index.d.ts.map +1 -0
- package/build-types/components/more-menu/tools-more-menu-group.d.ts +6 -0
- package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -0
- package/build-types/components/more-menu/view-more-menu-group.d.ts +6 -0
- package/build-types/components/more-menu/view-more-menu-group.d.ts.map +1 -0
- package/build-types/components/page-attributes/check.d.ts +13 -0
- package/build-types/components/page-attributes/check.d.ts.map +1 -0
- package/build-types/components/page-attributes/order.d.ts +9 -0
- package/build-types/components/page-attributes/order.d.ts.map +1 -0
- package/build-types/components/page-attributes/panel.d.ts +7 -0
- package/build-types/components/page-attributes/panel.d.ts.map +1 -0
- package/build-types/components/page-attributes/parent.d.ts +11 -0
- package/build-types/components/page-attributes/parent.d.ts.map +1 -0
- package/build-types/components/pattern-duplicate-modal/index.d.ts +3 -0
- package/build-types/components/pattern-duplicate-modal/index.d.ts.map +1 -0
- package/build-types/components/pattern-overrides-panel/index.d.ts +2 -0
- package/build-types/components/pattern-overrides-panel/index.d.ts.map +1 -0
- package/build-types/components/pattern-rename-modal/index.d.ts +3 -0
- package/build-types/components/pattern-rename-modal/index.d.ts.map +1 -0
- package/build-types/components/plugin-document-setting-panel/index.d.ts +69 -0
- package/build-types/components/plugin-document-setting-panel/index.d.ts.map +1 -0
- package/build-types/components/plugin-more-menu-item/index.d.ts +3 -0
- package/build-types/components/plugin-more-menu-item/index.d.ts.map +1 -0
- package/build-types/components/plugin-post-publish-panel/index.d.ts +47 -0
- package/build-types/components/plugin-post-publish-panel/index.d.ts.map +1 -0
- package/build-types/components/plugin-post-status-info/index.d.ts +57 -0
- package/build-types/components/plugin-post-status-info/index.d.ts.map +1 -0
- package/build-types/components/plugin-pre-publish-panel/index.d.ts +50 -0
- package/build-types/components/plugin-pre-publish-panel/index.d.ts.map +1 -0
- package/build-types/components/plugin-sidebar/index.d.ts +73 -0
- package/build-types/components/plugin-sidebar/index.d.ts.map +1 -0
- package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts +52 -0
- package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts.map +1 -0
- package/build-types/components/post-actions/actions.d.ts +31 -0
- package/build-types/components/post-actions/actions.d.ts.map +1 -0
- package/build-types/components/post-actions/index.d.ts +5 -0
- package/build-types/components/post-actions/index.d.ts.map +1 -0
- package/build-types/components/post-author/check.d.ts +13 -0
- package/build-types/components/post-author/check.d.ts.map +1 -0
- package/build-types/components/post-author/combobox.d.ts +2 -0
- package/build-types/components/post-author/combobox.d.ts.map +1 -0
- package/build-types/components/post-author/constants.d.ts +9 -0
- package/build-types/components/post-author/constants.d.ts.map +1 -0
- package/build-types/components/post-author/hook.d.ts +6 -0
- package/build-types/components/post-author/hook.d.ts.map +1 -0
- package/build-types/components/post-author/index.d.ts +8 -0
- package/build-types/components/post-author/index.d.ts.map +1 -0
- package/build-types/components/post-author/panel.d.ts +8 -0
- package/build-types/components/post-author/panel.d.ts.map +1 -0
- package/build-types/components/post-author/select.d.ts +2 -0
- package/build-types/components/post-author/select.d.ts.map +1 -0
- package/build-types/components/post-card-panel/index.d.ts +4 -0
- package/build-types/components/post-card-panel/index.d.ts.map +1 -0
- package/build-types/components/post-comments/index.d.ts +3 -0
- package/build-types/components/post-comments/index.d.ts.map +1 -0
- package/build-types/components/post-content-information/index.d.ts +2 -0
- package/build-types/components/post-content-information/index.d.ts.map +1 -0
- package/build-types/components/post-discussion/panel.d.ts +10 -0
- package/build-types/components/post-discussion/panel.d.ts.map +1 -0
- package/build-types/components/post-excerpt/check.d.ts +13 -0
- package/build-types/components/post-excerpt/check.d.ts.map +1 -0
- package/build-types/components/post-excerpt/index.d.ts +15 -0
- package/build-types/components/post-excerpt/index.d.ts.map +1 -0
- package/build-types/components/post-excerpt/panel.d.ts +8 -0
- package/build-types/components/post-excerpt/panel.d.ts.map +1 -0
- package/build-types/components/post-excerpt/plugin.d.ts +53 -0
- package/build-types/components/post-excerpt/plugin.d.ts.map +1 -0
- package/build-types/components/post-featured-image/check.d.ts +14 -0
- package/build-types/components/post-featured-image/check.d.ts.map +1 -0
- package/build-types/components/post-featured-image/index.d.ts +3 -0
- package/build-types/components/post-featured-image/index.d.ts.map +1 -0
- package/build-types/components/post-featured-image/panel.d.ts +13 -0
- package/build-types/components/post-featured-image/panel.d.ts.map +1 -0
- package/build-types/components/post-format/check.d.ts +5 -0
- package/build-types/components/post-format/check.d.ts.map +1 -0
- package/build-types/components/post-format/index.d.ts +16 -0
- package/build-types/components/post-format/index.d.ts.map +1 -0
- package/build-types/components/post-format/panel.d.ts +8 -0
- package/build-types/components/post-format/panel.d.ts.map +1 -0
- package/build-types/components/post-last-edited-panel/index.d.ts +2 -0
- package/build-types/components/post-last-edited-panel/index.d.ts.map +1 -0
- package/build-types/components/post-last-revision/check.d.ts +13 -0
- package/build-types/components/post-last-revision/check.d.ts.map +1 -0
- package/build-types/components/post-last-revision/index.d.ts +9 -0
- package/build-types/components/post-last-revision/index.d.ts.map +1 -0
- package/build-types/components/post-last-revision/panel.d.ts +8 -0
- package/build-types/components/post-last-revision/panel.d.ts.map +1 -0
- package/build-types/components/post-locked-modal/index.d.ts +8 -0
- package/build-types/components/post-locked-modal/index.d.ts.map +1 -0
- package/build-types/components/post-panel-row/index.d.ts +3 -0
- package/build-types/components/post-panel-row/index.d.ts.map +1 -0
- package/build-types/components/post-panel-section/index.d.ts +6 -0
- package/build-types/components/post-panel-section/index.d.ts.map +1 -0
- package/build-types/components/post-pending-status/check.d.ts +15 -0
- package/build-types/components/post-pending-status/check.d.ts.map +1 -0
- package/build-types/components/post-pending-status/index.d.ts +8 -0
- package/build-types/components/post-pending-status/index.d.ts.map +1 -0
- package/build-types/components/post-pingbacks/index.d.ts +3 -0
- package/build-types/components/post-pingbacks/index.d.ts.map +1 -0
- package/build-types/components/post-preview-button/index.d.ts +23 -0
- package/build-types/components/post-preview-button/index.d.ts.map +1 -0
- package/build-types/components/post-publish-button/index.d.ts +17 -0
- package/build-types/components/post-publish-button/index.d.ts.map +1 -0
- package/build-types/components/post-publish-button/label.d.ts +7 -0
- package/build-types/components/post-publish-button/label.d.ts.map +1 -0
- package/build-types/components/post-publish-button/post-publish-button-or-toggle.d.ts +17 -0
- package/build-types/components/post-publish-button/post-publish-button-or-toggle.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/index.d.ts +10 -0
- package/build-types/components/post-publish-panel/index.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-category-panel.d.ts +3 -0
- package/build-types/components/post-publish-panel/maybe-category-panel.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-post-format-panel.d.ts +2 -0
- package/build-types/components/post-publish-panel/maybe-post-format-panel.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-tags-panel.d.ts +3 -0
- package/build-types/components/post-publish-panel/maybe-tags-panel.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-upload-media.d.ts +2 -0
- package/build-types/components/post-publish-panel/maybe-upload-media.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/postpublish.d.ts +3 -0
- package/build-types/components/post-publish-panel/postpublish.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/prepublish.d.ts +5 -0
- package/build-types/components/post-publish-panel/prepublish.d.ts.map +1 -0
- package/build-types/components/post-saved-state/index.d.ts +13 -0
- package/build-types/components/post-saved-state/index.d.ts.map +1 -0
- package/build-types/components/post-schedule/check.d.ts +12 -0
- package/build-types/components/post-schedule/check.d.ts.map +1 -0
- package/build-types/components/post-schedule/index.d.ts +17 -0
- package/build-types/components/post-schedule/index.d.ts.map +1 -0
- package/build-types/components/post-schedule/label.d.ts +25 -0
- package/build-types/components/post-schedule/label.d.ts.map +1 -0
- package/build-types/components/post-schedule/panel.d.ts +7 -0
- package/build-types/components/post-schedule/panel.d.ts.map +1 -0
- package/build-types/components/post-slug/check.d.ts +12 -0
- package/build-types/components/post-slug/check.d.ts.map +1 -0
- package/build-types/components/post-slug/index.d.ts +7 -0
- package/build-types/components/post-slug/index.d.ts.map +1 -0
- package/build-types/components/post-slug/panel.d.ts +3 -0
- package/build-types/components/post-slug/panel.d.ts.map +1 -0
- package/build-types/components/post-status/index.d.ts +6 -0
- package/build-types/components/post-status/index.d.ts.map +1 -0
- package/build-types/components/post-sticky/check.d.ts +12 -0
- package/build-types/components/post-sticky/check.d.ts.map +1 -0
- package/build-types/components/post-sticky/index.d.ts +7 -0
- package/build-types/components/post-sticky/index.d.ts.map +1 -0
- package/build-types/components/post-sticky/panel.d.ts +3 -0
- package/build-types/components/post-sticky/panel.d.ts.map +1 -0
- package/build-types/components/post-switch-to-draft-button/index.d.ts +7 -0
- package/build-types/components/post-switch-to-draft-button/index.d.ts.map +1 -0
- package/build-types/components/post-sync-status/index.d.ts +7 -0
- package/build-types/components/post-sync-status/index.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/check.d.ts +12 -0
- package/build-types/components/post-taxonomies/check.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts +64 -0
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts +102 -0
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/index.d.ts +5 -0
- package/build-types/components/post-taxonomies/index.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/most-used-terms.d.ts +5 -0
- package/build-types/components/post-taxonomies/most-used-terms.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/panel.d.ts +3 -0
- package/build-types/components/post-taxonomies/panel.d.ts.map +1 -0
- package/build-types/components/post-template/block-theme.d.ts +4 -0
- package/build-types/components/post-template/block-theme.d.ts.map +1 -0
- package/build-types/components/post-template/classic-theme.d.ts +3 -0
- package/build-types/components/post-template/classic-theme.d.ts.map +1 -0
- package/build-types/components/post-template/create-new-template-modal.d.ts +4 -0
- package/build-types/components/post-template/create-new-template-modal.d.ts.map +1 -0
- package/build-types/components/post-template/create-new-template.d.ts +4 -0
- package/build-types/components/post-template/create-new-template.d.ts.map +1 -0
- package/build-types/components/post-template/hooks.d.ts +8 -0
- package/build-types/components/post-template/hooks.d.ts.map +1 -0
- package/build-types/components/post-template/panel.d.ts +7 -0
- package/build-types/components/post-template/panel.d.ts.map +1 -0
- package/build-types/components/post-template/reset-default-template.d.ts +4 -0
- package/build-types/components/post-template/reset-default-template.d.ts.map +1 -0
- package/build-types/components/post-template/swap-template-button.d.ts +4 -0
- package/build-types/components/post-template/swap-template-button.d.ts.map +1 -0
- package/build-types/components/post-text-editor/index.d.ts +7 -0
- package/build-types/components/post-text-editor/index.d.ts.map +1 -0
- package/build-types/components/post-title/constants.d.ts +3 -0
- package/build-types/components/post-title/constants.d.ts.map +1 -0
- package/build-types/components/post-title/index.d.ts +3 -0
- package/build-types/components/post-title/index.d.ts.map +1 -0
- package/build-types/components/post-title/post-title-raw.d.ts +3 -0
- package/build-types/components/post-title/post-title-raw.d.ts.map +1 -0
- package/build-types/components/post-title/use-post-title-focus.d.ts +9 -0
- package/build-types/components/post-title/use-post-title-focus.d.ts.map +1 -0
- package/build-types/components/post-title/use-post-title.d.ts +7 -0
- package/build-types/components/post-title/use-post-title.d.ts.map +1 -0
- package/build-types/components/post-transform-panel/hooks.d.ts +2 -0
- package/build-types/components/post-transform-panel/hooks.d.ts.map +1 -0
- package/build-types/components/post-transform-panel/index.d.ts +2 -0
- package/build-types/components/post-transform-panel/index.d.ts.map +1 -0
- package/build-types/components/post-trash/check.d.ts +12 -0
- package/build-types/components/post-trash/check.d.ts.map +1 -0
- package/build-types/components/post-trash/index.d.ts +7 -0
- package/build-types/components/post-trash/index.d.ts.map +1 -0
- package/build-types/components/post-type-support-check/index.d.ts +18 -0
- package/build-types/components/post-type-support-check/index.d.ts.map +1 -0
- package/build-types/components/post-url/check.d.ts +12 -0
- package/build-types/components/post-url/check.d.ts.map +1 -0
- package/build-types/components/post-url/index.d.ts +14 -0
- package/build-types/components/post-url/index.d.ts.map +1 -0
- package/build-types/components/post-url/label.d.ts +13 -0
- package/build-types/components/post-url/label.d.ts.map +1 -0
- package/build-types/components/post-url/panel.d.ts +7 -0
- package/build-types/components/post-url/panel.d.ts.map +1 -0
- package/build-types/components/post-view-link/index.d.ts +2 -0
- package/build-types/components/post-view-link/index.d.ts.map +1 -0
- package/build-types/components/post-visibility/check.d.ts +13 -0
- package/build-types/components/post-visibility/check.d.ts.map +1 -0
- package/build-types/components/post-visibility/index.d.ts +11 -0
- package/build-types/components/post-visibility/index.d.ts.map +1 -0
- package/build-types/components/post-visibility/label.d.ts +13 -0
- package/build-types/components/post-visibility/label.d.ts.map +1 -0
- package/build-types/components/post-visibility/utils.d.ts +21 -0
- package/build-types/components/post-visibility/utils.d.ts.map +1 -0
- package/build-types/components/posts-per-page/index.d.ts +2 -0
- package/build-types/components/posts-per-page/index.d.ts.map +1 -0
- package/build-types/components/preferences-modal/enable-panel.d.ts +3 -0
- package/build-types/components/preferences-modal/enable-panel.d.ts.map +1 -0
- package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts +14 -0
- package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts.map +1 -0
- package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts +3 -0
- package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts.map +1 -0
- package/build-types/components/preferences-modal/index.d.ts +4 -0
- package/build-types/components/preferences-modal/index.d.ts.map +1 -0
- package/build-types/components/preview-dropdown/index.d.ts +5 -0
- package/build-types/components/preview-dropdown/index.d.ts.map +1 -0
- package/build-types/components/provider/disable-non-page-content-blocks.d.ts +6 -0
- package/build-types/components/provider/disable-non-page-content-blocks.d.ts.map +1 -0
- package/build-types/components/provider/index.d.ts +65 -0
- package/build-types/components/provider/index.d.ts.map +1 -0
- package/build-types/components/provider/navigation-block-editing-mode.d.ts +9 -0
- package/build-types/components/provider/navigation-block-editing-mode.d.ts.map +1 -0
- package/build-types/components/provider/use-auto-switch-editor-sidebars.d.ts +7 -0
- package/build-types/components/provider/use-auto-switch-editor-sidebars.d.ts.map +1 -0
- package/build-types/components/provider/use-block-editor-settings.d.ts +13 -0
- package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -0
- package/build-types/components/provider/use-hide-blocks-from-inserter.d.ts +9 -0
- package/build-types/components/provider/use-hide-blocks-from-inserter.d.ts.map +1 -0
- package/build-types/components/provider/with-registry-provider.d.ts +3 -0
- package/build-types/components/provider/with-registry-provider.d.ts.map +1 -0
- package/build-types/components/resizable-editor/index.d.ts +8 -0
- package/build-types/components/resizable-editor/index.d.ts.map +1 -0
- package/build-types/components/resizable-editor/resize-handle.d.ts +5 -0
- package/build-types/components/resizable-editor/resize-handle.d.ts.map +1 -0
- package/build-types/components/save-publish-panels/index.d.ts +11 -0
- package/build-types/components/save-publish-panels/index.d.ts.map +1 -0
- package/build-types/components/sidebar/constants.d.ts +5 -0
- package/build-types/components/sidebar/constants.d.ts.map +1 -0
- package/build-types/components/sidebar/header.d.ts +3 -0
- package/build-types/components/sidebar/header.d.ts.map +1 -0
- package/build-types/components/sidebar/index.d.ts +6 -0
- package/build-types/components/sidebar/index.d.ts.map +1 -0
- package/build-types/components/sidebar/post-summary.d.ts +4 -0
- package/build-types/components/sidebar/post-summary.d.ts.map +1 -0
- package/build-types/components/site-discussion/index.d.ts +2 -0
- package/build-types/components/site-discussion/index.d.ts.map +1 -0
- package/build-types/components/start-page-options/index.d.ts +2 -0
- package/build-types/components/start-page-options/index.d.ts.map +1 -0
- package/build-types/components/start-template-options/index.d.ts +2 -0
- package/build-types/components/start-template-options/index.d.ts.map +1 -0
- package/build-types/components/table-of-contents/index.d.ts +7 -0
- package/build-types/components/table-of-contents/index.d.ts.map +1 -0
- package/build-types/components/table-of-contents/panel.d.ts +6 -0
- package/build-types/components/table-of-contents/panel.d.ts.map +1 -0
- package/build-types/components/template-content-panel/index.d.ts +4 -0
- package/build-types/components/template-content-panel/index.d.ts.map +1 -0
- package/build-types/components/template-part-content-panel/index.d.ts +2 -0
- package/build-types/components/template-part-content-panel/index.d.ts.map +1 -0
- package/build-types/components/template-part-menu-items/convert-to-regular.d.ts +5 -0
- package/build-types/components/template-part-menu-items/convert-to-regular.d.ts.map +1 -0
- package/build-types/components/template-part-menu-items/convert-to-template-part.d.ts +5 -0
- package/build-types/components/template-part-menu-items/convert-to-template-part.d.ts.map +1 -0
- package/build-types/components/template-part-menu-items/index.d.ts +2 -0
- package/build-types/components/template-part-menu-items/index.d.ts.map +1 -0
- package/build-types/components/template-validation-notice/index.d.ts +2 -0
- package/build-types/components/template-validation-notice/index.d.ts.map +1 -0
- package/build-types/components/text-editor/index.d.ts +4 -0
- package/build-types/components/text-editor/index.d.ts.map +1 -0
- package/build-types/components/theme-support-check/index.d.ts +14 -0
- package/build-types/components/theme-support-check/index.d.ts.map +1 -0
- package/build-types/components/time-to-read/index.d.ts +7 -0
- package/build-types/components/time-to-read/index.d.ts.map +1 -0
- package/build-types/components/unsaved-changes-warning/index.d.ts +8 -0
- package/build-types/components/unsaved-changes-warning/index.d.ts.map +1 -0
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts +18 -0
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts.map +1 -0
- package/build-types/components/visual-editor/index.d.ts +10 -0
- package/build-types/components/visual-editor/index.d.ts.map +1 -0
- package/build-types/components/word-count/index.d.ts +7 -0
- package/build-types/components/word-count/index.d.ts.map +1 -0
- package/build-types/dataviews/actions/delete-post.d.ts +5 -0
- package/build-types/dataviews/actions/delete-post.d.ts.map +1 -0
- package/build-types/dataviews/actions/export-pattern.d.ts +8 -0
- package/build-types/dataviews/actions/export-pattern.d.ts.map +1 -0
- package/build-types/dataviews/actions/index.d.ts +2 -0
- package/build-types/dataviews/actions/index.d.ts.map +1 -0
- package/build-types/dataviews/actions/reset-post.d.ts +5 -0
- package/build-types/dataviews/actions/reset-post.d.ts.map +1 -0
- package/build-types/dataviews/actions/utils.d.ts +11 -0
- package/build-types/dataviews/actions/utils.d.ts.map +1 -0
- package/build-types/dataviews/api.d.ts +27 -0
- package/build-types/dataviews/api.d.ts.map +1 -0
- package/build-types/dataviews/store/private-actions.d.ts +2 -2
- package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/dataviews/store/private-selectors.d.ts +2 -5
- package/build-types/dataviews/store/private-selectors.d.ts.map +1 -1
- package/build-types/dataviews/store/reducer.d.ts +5 -1
- package/build-types/dataviews/store/reducer.d.ts.map +1 -1
- package/build-types/dataviews/types.d.ts +34 -0
- package/build-types/dataviews/types.d.ts.map +1 -0
- package/build-types/hooks/custom-sources-backwards-compatibility.d.ts +10 -0
- package/build-types/hooks/custom-sources-backwards-compatibility.d.ts.map +1 -0
- package/build-types/hooks/default-autocompleters.d.ts +2 -0
- package/build-types/hooks/default-autocompleters.d.ts.map +1 -0
- package/build-types/hooks/index.d.ts +2 -0
- package/build-types/hooks/index.d.ts.map +1 -0
- package/build-types/hooks/media-upload.d.ts +2 -0
- package/build-types/hooks/media-upload.d.ts.map +1 -0
- package/build-types/hooks/pattern-overrides.d.ts +2 -0
- package/build-types/hooks/pattern-overrides.d.ts.map +1 -0
- package/build-types/hooks/use-select-nearest-editable-block.d.ts +4 -0
- package/build-types/hooks/use-select-nearest-editable-block.d.ts.map +1 -0
- package/build-types/index.d.ts +6 -0
- package/build-types/index.d.ts.map +1 -0
- package/build-types/lock-unlock.d.ts +3 -0
- package/build-types/lock-unlock.d.ts.map +1 -0
- package/build-types/private-apis.d.ts +2 -0
- package/build-types/private-apis.d.ts.map +1 -0
- package/build-types/store/actions.d.ts +367 -0
- package/build-types/store/actions.d.ts.map +1 -0
- package/build-types/store/constants.d.ts +31 -0
- package/build-types/store/constants.d.ts.map +1 -0
- package/build-types/store/defaults.d.ts +21 -0
- package/build-types/store/defaults.d.ts.map +1 -0
- package/build-types/store/index.d.ts +17 -0
- package/build-types/store/index.d.ts.map +1 -0
- package/build-types/store/local-autosave.d.ts +4 -0
- package/build-types/store/local-autosave.d.ts.map +1 -0
- package/build-types/store/private-actions.d.ts +37 -0
- package/build-types/store/private-actions.d.ts.map +1 -0
- package/build-types/store/private-selectors.d.ts +24 -0
- package/build-types/store/private-selectors.d.ts.map +1 -0
- package/build-types/store/reducer.d.ts +228 -0
- package/build-types/store/reducer.d.ts.map +1 -0
- package/build-types/store/selectors.d.ts +854 -0
- package/build-types/store/selectors.d.ts.map +1 -0
- package/build-types/store/utils/get-filtered-template-parts.d.ts +3 -0
- package/build-types/store/utils/get-filtered-template-parts.d.ts.map +1 -0
- package/build-types/store/utils/is-template-revertable.d.ts +8 -0
- package/build-types/store/utils/is-template-revertable.d.ts.map +1 -0
- package/build-types/store/utils/notice-builder.d.ts +27 -0
- package/build-types/store/utils/notice-builder.d.ts.map +1 -0
- package/build-types/utils/get-template-part-icon.d.ts +9 -0
- package/build-types/utils/get-template-part-icon.d.ts.map +1 -0
- package/build-types/utils/index.d.ts +5 -0
- package/build-types/utils/index.d.ts.map +1 -0
- package/build-types/utils/media-upload/index.d.ts +21 -0
- package/build-types/utils/media-upload/index.d.ts.map +1 -0
- package/build-types/utils/set-nested-value.d.ts +20 -0
- package/build-types/utils/set-nested-value.d.ts.map +1 -0
- package/build-types/utils/terms.d.ts +12 -0
- package/build-types/utils/terms.d.ts.map +1 -0
- package/build-types/utils/url.d.ts +18 -0
- package/build-types/utils/url.d.ts.map +1 -0
- package/package.json +36 -35
- package/src/bindings/pattern-overrides.js +9 -10
- package/src/bindings/post-meta.js +5 -0
- package/src/components/editor-interface/index.js +17 -12
- package/src/components/entities-saved-states/index.js +1 -1
- package/src/components/inserter-sidebar/index.js +4 -24
- package/src/components/list-view-sidebar/index.js +34 -62
- package/src/components/list-view-sidebar/style.scss +0 -34
- package/src/components/page-attributes/parent.js +6 -3
- package/src/components/post-actions/actions.js +82 -277
- package/src/components/post-actions/index.js +1 -1
- package/src/components/post-excerpt/panel.js +1 -1
- package/src/components/post-featured-image/style.scss +15 -0
- package/src/components/post-panel-row/style.scss +1 -0
- package/src/components/post-preview-button/index.js +1 -1
- package/src/components/post-publish-panel/index.js +1 -1
- package/src/components/post-saved-state/index.js +11 -1
- package/src/components/post-schedule/index.js +5 -0
- package/src/components/post-status/index.js +1 -1
- package/src/components/post-taxonomies/README.md +1 -1
- package/src/components/post-title/index.js +5 -12
- package/src/components/preview-dropdown/index.js +1 -1
- package/src/components/provider/index.native.js +3 -11
- package/src/components/provider/use-block-editor-settings.js +10 -5
- package/src/components/save-publish-panels/index.js +33 -23
- package/src/components/sidebar/index.js +1 -3
- package/src/components/sidebar/post-summary.js +0 -2
- package/src/components/template-content-panel/index.js +29 -5
- package/src/components/visual-editor/index.js +1 -1
- package/src/components/visual-editor/style.scss +1 -1
- package/src/dataviews/actions/delete-post.tsx +107 -0
- package/src/{components/post-actions/export-pattern-action.js → dataviews/actions/export-pattern.tsx} +19 -19
- package/src/dataviews/actions/index.ts +25 -0
- package/src/dataviews/actions/reset-post.tsx +144 -0
- package/src/dataviews/actions/utils.ts +54 -0
- package/src/dataviews/store/private-actions.ts +2 -2
- package/src/dataviews/store/private-selectors.ts +13 -6
- package/src/dataviews/store/reducer.ts +12 -5
- package/src/dataviews/types.ts +33 -0
- package/src/hooks/pattern-overrides.js +4 -1
- package/src/private-apis.js +2 -0
- package/src/private-apis.native.js +0 -2
- package/src/store/private-actions.js +1 -6
- package/src/store/private-selectors.js +0 -25
- package/src/store/utils/is-template-revertable.js +8 -8
- package/src/style.scss +0 -1
- package/tsconfig.json +3 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/build/components/post-actions/export-pattern-action.js.map +0 -1
- package/build/components/post-actions/export-pattern-action.native.js +0 -11
- package/build/components/post-actions/export-pattern-action.native.js.map +0 -1
- package/build/components/template-areas/index.js +0 -84
- package/build/components/template-areas/index.js.map +0 -1
- package/build-module/components/post-actions/export-pattern-action.js.map +0 -1
- package/build-module/components/post-actions/export-pattern-action.native.js +0 -5
- package/build-module/components/post-actions/export-pattern-action.native.js.map +0 -1
- package/build-module/components/template-areas/index.js +0 -78
- package/build-module/components/template-areas/index.js.map +0 -1
- package/src/components/post-actions/export-pattern-action.native.js +0 -4
- package/src/components/template-areas/index.js +0 -94
- package/src/components/template-areas/style.scss +0 -22
- /package/src/store/{constants.js → constants.ts} +0 -0
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns an action object signalling that the editor is being destroyed and
|
|
3
|
+
* that any necessary state or side-effect cleanup should occur.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated
|
|
6
|
+
*
|
|
7
|
+
* @return {Object} Action object.
|
|
8
|
+
*/
|
|
9
|
+
export function __experimentalTearDownEditor(): Object;
|
|
10
|
+
/**
|
|
11
|
+
* Returns an action object used in signalling that the latest version of the
|
|
12
|
+
* post has been received, either by initialization or save.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated Since WordPress 6.0.
|
|
15
|
+
*/
|
|
16
|
+
export function resetPost(): {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Returns an action object used in signalling that a patch of updates for the
|
|
21
|
+
* latest version of the post have been received.
|
|
22
|
+
*
|
|
23
|
+
* @return {Object} Action object.
|
|
24
|
+
* @deprecated since Gutenberg 9.7.0.
|
|
25
|
+
*/
|
|
26
|
+
export function updatePost(): Object;
|
|
27
|
+
/**
|
|
28
|
+
* Setup the editor state.
|
|
29
|
+
*
|
|
30
|
+
* @deprecated
|
|
31
|
+
*
|
|
32
|
+
* @param {Object} post Post object.
|
|
33
|
+
*/
|
|
34
|
+
export function setupEditorState(post: Object): Object;
|
|
35
|
+
/**
|
|
36
|
+
* Returns an action that sets the current post Type and post ID.
|
|
37
|
+
*
|
|
38
|
+
* @param {string} postType Post Type.
|
|
39
|
+
* @param {string} postId Post ID.
|
|
40
|
+
*
|
|
41
|
+
* @return {Object} Action object.
|
|
42
|
+
*/
|
|
43
|
+
export function setEditedPost(postType: string, postId: string): Object;
|
|
44
|
+
/**
|
|
45
|
+
* Action for refreshing the current post.
|
|
46
|
+
*
|
|
47
|
+
* @deprecated Since WordPress 6.0.
|
|
48
|
+
*/
|
|
49
|
+
export function refreshPost(): {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Action that creates an undo history record.
|
|
54
|
+
*
|
|
55
|
+
* @deprecated Since WordPress 6.0
|
|
56
|
+
*/
|
|
57
|
+
export function createUndoLevel(): {
|
|
58
|
+
type: string;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Action that locks the editor.
|
|
62
|
+
*
|
|
63
|
+
* @param {Object} lock Details about the post lock status, user, and nonce.
|
|
64
|
+
* @return {Object} Action object.
|
|
65
|
+
*/
|
|
66
|
+
export function updatePostLock(lock: Object): Object;
|
|
67
|
+
/**
|
|
68
|
+
* Action that locks post saving.
|
|
69
|
+
*
|
|
70
|
+
* @param {string} lockName The lock name.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```
|
|
74
|
+
* const { subscribe } = wp.data;
|
|
75
|
+
*
|
|
76
|
+
* const initialPostStatus = wp.data.select( 'core/editor' ).getEditedPostAttribute( 'status' );
|
|
77
|
+
*
|
|
78
|
+
* // Only allow publishing posts that are set to a future date.
|
|
79
|
+
* if ( 'publish' !== initialPostStatus ) {
|
|
80
|
+
*
|
|
81
|
+
* // Track locking.
|
|
82
|
+
* let locked = false;
|
|
83
|
+
*
|
|
84
|
+
* // Watch for the publish event.
|
|
85
|
+
* let unssubscribe = subscribe( () => {
|
|
86
|
+
* const currentPostStatus = wp.data.select( 'core/editor' ).getEditedPostAttribute( 'status' );
|
|
87
|
+
* if ( 'publish' !== currentPostStatus ) {
|
|
88
|
+
*
|
|
89
|
+
* // Compare the post date to the current date, lock the post if the date isn't in the future.
|
|
90
|
+
* const postDate = new Date( wp.data.select( 'core/editor' ).getEditedPostAttribute( 'date' ) );
|
|
91
|
+
* const currentDate = new Date();
|
|
92
|
+
* if ( postDate.getTime() <= currentDate.getTime() ) {
|
|
93
|
+
* if ( ! locked ) {
|
|
94
|
+
* locked = true;
|
|
95
|
+
* wp.data.dispatch( 'core/editor' ).lockPostSaving( 'futurelock' );
|
|
96
|
+
* }
|
|
97
|
+
* } else {
|
|
98
|
+
* if ( locked ) {
|
|
99
|
+
* locked = false;
|
|
100
|
+
* wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'futurelock' );
|
|
101
|
+
* }
|
|
102
|
+
* }
|
|
103
|
+
* }
|
|
104
|
+
* } );
|
|
105
|
+
* }
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* @return {Object} Action object
|
|
109
|
+
*/
|
|
110
|
+
export function lockPostSaving(lockName: string): Object;
|
|
111
|
+
/**
|
|
112
|
+
* Action that unlocks post saving.
|
|
113
|
+
*
|
|
114
|
+
* @param {string} lockName The lock name.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```
|
|
118
|
+
* // Unlock post saving with the lock key `mylock`:
|
|
119
|
+
* wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'mylock' );
|
|
120
|
+
* ```
|
|
121
|
+
*
|
|
122
|
+
* @return {Object} Action object
|
|
123
|
+
*/
|
|
124
|
+
export function unlockPostSaving(lockName: string): Object;
|
|
125
|
+
/**
|
|
126
|
+
* Action that locks post autosaving.
|
|
127
|
+
*
|
|
128
|
+
* @param {string} lockName The lock name.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* ```
|
|
132
|
+
* // Lock post autosaving with the lock key `mylock`:
|
|
133
|
+
* wp.data.dispatch( 'core/editor' ).lockPostAutosaving( 'mylock' );
|
|
134
|
+
* ```
|
|
135
|
+
*
|
|
136
|
+
* @return {Object} Action object
|
|
137
|
+
*/
|
|
138
|
+
export function lockPostAutosaving(lockName: string): Object;
|
|
139
|
+
/**
|
|
140
|
+
* Action that unlocks post autosaving.
|
|
141
|
+
*
|
|
142
|
+
* @param {string} lockName The lock name.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```
|
|
146
|
+
* // Unlock post saving with the lock key `mylock`:
|
|
147
|
+
* wp.data.dispatch( 'core/editor' ).unlockPostAutosaving( 'mylock' );
|
|
148
|
+
* ```
|
|
149
|
+
*
|
|
150
|
+
* @return {Object} Action object
|
|
151
|
+
*/
|
|
152
|
+
export function unlockPostAutosaving(lockName: string): Object;
|
|
153
|
+
export function updateEditorSettings(settings: any): {
|
|
154
|
+
type: string;
|
|
155
|
+
settings: any;
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Action that changes the width of the editing canvas.
|
|
159
|
+
*
|
|
160
|
+
* @param {string} deviceType
|
|
161
|
+
*
|
|
162
|
+
* @return {Object} Action object.
|
|
163
|
+
*/
|
|
164
|
+
export function setDeviceType(deviceType: string): Object;
|
|
165
|
+
/**
|
|
166
|
+
* Returns an action object used to remove a panel from the editor.
|
|
167
|
+
*
|
|
168
|
+
* @param {string} panelName A string that identifies the panel to remove.
|
|
169
|
+
*
|
|
170
|
+
* @return {Object} Action object.
|
|
171
|
+
*/
|
|
172
|
+
export function removeEditorPanel(panelName: string): Object;
|
|
173
|
+
/**
|
|
174
|
+
* Returns an action object used to open/close the inserter.
|
|
175
|
+
*
|
|
176
|
+
* @param {boolean|Object} value Whether the inserter should be
|
|
177
|
+
* opened (true) or closed (false).
|
|
178
|
+
* To specify an insertion point,
|
|
179
|
+
* use an object.
|
|
180
|
+
* @param {string} value.rootClientId The root client ID to insert at.
|
|
181
|
+
* @param {number} value.insertionIndex The index to insert at.
|
|
182
|
+
*
|
|
183
|
+
* @return {Object} Action object.
|
|
184
|
+
*/
|
|
185
|
+
export function setIsInserterOpened(value: boolean | Object): Object;
|
|
186
|
+
/**
|
|
187
|
+
* Returns an action object used to open/close the list view.
|
|
188
|
+
*
|
|
189
|
+
* @param {boolean} isOpen A boolean representing whether the list view should be opened or closed.
|
|
190
|
+
* @return {Object} Action object.
|
|
191
|
+
*/
|
|
192
|
+
export function setIsListViewOpened(isOpen: boolean): Object;
|
|
193
|
+
/**
|
|
194
|
+
* Returns an action object used in signalling that the user opened the publish
|
|
195
|
+
* sidebar.
|
|
196
|
+
*
|
|
197
|
+
* @return {Object} Action object
|
|
198
|
+
*/
|
|
199
|
+
export function openPublishSidebar(): Object;
|
|
200
|
+
/**
|
|
201
|
+
* Returns an action object used in signalling that the user closed the
|
|
202
|
+
* publish sidebar.
|
|
203
|
+
*
|
|
204
|
+
* @return {Object} Action object.
|
|
205
|
+
*/
|
|
206
|
+
export function closePublishSidebar(): Object;
|
|
207
|
+
/**
|
|
208
|
+
* Returns an action object used in signalling that the user toggles the publish sidebar.
|
|
209
|
+
*
|
|
210
|
+
* @return {Object} Action object
|
|
211
|
+
*/
|
|
212
|
+
export function togglePublishSidebar(): Object;
|
|
213
|
+
export function setupEditor(post: Object, edits: Object, template: any[] | null): ({ dispatch }: {
|
|
214
|
+
dispatch: any;
|
|
215
|
+
}) => void;
|
|
216
|
+
export function editPost(edits: Object, options: Object): ({ select, registry }: {
|
|
217
|
+
select: any;
|
|
218
|
+
registry: any;
|
|
219
|
+
}) => void;
|
|
220
|
+
export function savePost(options?: Object): ({ select, dispatch, registry }: {
|
|
221
|
+
select: any;
|
|
222
|
+
dispatch: any;
|
|
223
|
+
registry: any;
|
|
224
|
+
}) => Promise<void>;
|
|
225
|
+
export function trashPost(): ({ select, dispatch, registry }: {
|
|
226
|
+
select: any;
|
|
227
|
+
dispatch: any;
|
|
228
|
+
registry: any;
|
|
229
|
+
}) => Promise<void>;
|
|
230
|
+
export function autosave({ local, ...options }?: Object | null): ({ select, dispatch }: {
|
|
231
|
+
select: any;
|
|
232
|
+
dispatch: any;
|
|
233
|
+
}) => Promise<void>;
|
|
234
|
+
export function __unstableSaveForPreview({ forceIsAutosaveable }?: {
|
|
235
|
+
forceIsAutosaveable: any;
|
|
236
|
+
}): ({ select, dispatch }: {
|
|
237
|
+
select: any;
|
|
238
|
+
dispatch: any;
|
|
239
|
+
}) => Promise<any>;
|
|
240
|
+
export function redo(): ({ registry }: {
|
|
241
|
+
registry: any;
|
|
242
|
+
}) => void;
|
|
243
|
+
export function undo(): ({ registry }: {
|
|
244
|
+
registry: any;
|
|
245
|
+
}) => void;
|
|
246
|
+
export function enablePublishSidebar(): ({ registry }: {
|
|
247
|
+
registry: any;
|
|
248
|
+
}) => void;
|
|
249
|
+
export function disablePublishSidebar(): ({ registry }: {
|
|
250
|
+
registry: any;
|
|
251
|
+
}) => void;
|
|
252
|
+
export function resetEditorBlocks(blocks: any[], options?: Object | null): ({ select, dispatch, registry }: {
|
|
253
|
+
select: any;
|
|
254
|
+
dispatch: any;
|
|
255
|
+
registry: any;
|
|
256
|
+
}) => void;
|
|
257
|
+
export function setRenderingMode(mode: string): ({ dispatch, registry, select }: {
|
|
258
|
+
dispatch: any;
|
|
259
|
+
registry: any;
|
|
260
|
+
select: any;
|
|
261
|
+
}) => void;
|
|
262
|
+
export function toggleEditorPanelEnabled(panelName: string): Object;
|
|
263
|
+
export function toggleEditorPanelOpened(panelName: string): ({ registry }: {
|
|
264
|
+
registry: any;
|
|
265
|
+
}) => void;
|
|
266
|
+
export function toggleDistractionFree(): ({ dispatch, registry }: {
|
|
267
|
+
dispatch: any;
|
|
268
|
+
registry: any;
|
|
269
|
+
}) => void;
|
|
270
|
+
export function switchEditorMode(mode: string): ({ dispatch, registry }: {
|
|
271
|
+
dispatch: any;
|
|
272
|
+
registry: any;
|
|
273
|
+
}) => void;
|
|
274
|
+
export function resetBlocks(...args: any[]): ({ registry }: {
|
|
275
|
+
registry: any;
|
|
276
|
+
}) => void;
|
|
277
|
+
export function receiveBlocks(...args: any[]): ({ registry }: {
|
|
278
|
+
registry: any;
|
|
279
|
+
}) => void;
|
|
280
|
+
export function updateBlock(...args: any[]): ({ registry }: {
|
|
281
|
+
registry: any;
|
|
282
|
+
}) => void;
|
|
283
|
+
export function updateBlockAttributes(...args: any[]): ({ registry }: {
|
|
284
|
+
registry: any;
|
|
285
|
+
}) => void;
|
|
286
|
+
export function selectBlock(...args: any[]): ({ registry }: {
|
|
287
|
+
registry: any;
|
|
288
|
+
}) => void;
|
|
289
|
+
export function startMultiSelect(...args: any[]): ({ registry }: {
|
|
290
|
+
registry: any;
|
|
291
|
+
}) => void;
|
|
292
|
+
export function stopMultiSelect(...args: any[]): ({ registry }: {
|
|
293
|
+
registry: any;
|
|
294
|
+
}) => void;
|
|
295
|
+
export function multiSelect(...args: any[]): ({ registry }: {
|
|
296
|
+
registry: any;
|
|
297
|
+
}) => void;
|
|
298
|
+
export function clearSelectedBlock(...args: any[]): ({ registry }: {
|
|
299
|
+
registry: any;
|
|
300
|
+
}) => void;
|
|
301
|
+
export function toggleSelection(...args: any[]): ({ registry }: {
|
|
302
|
+
registry: any;
|
|
303
|
+
}) => void;
|
|
304
|
+
export function replaceBlocks(...args: any[]): ({ registry }: {
|
|
305
|
+
registry: any;
|
|
306
|
+
}) => void;
|
|
307
|
+
export function replaceBlock(...args: any[]): ({ registry }: {
|
|
308
|
+
registry: any;
|
|
309
|
+
}) => void;
|
|
310
|
+
export function moveBlocksDown(...args: any[]): ({ registry }: {
|
|
311
|
+
registry: any;
|
|
312
|
+
}) => void;
|
|
313
|
+
export function moveBlocksUp(...args: any[]): ({ registry }: {
|
|
314
|
+
registry: any;
|
|
315
|
+
}) => void;
|
|
316
|
+
export function moveBlockToPosition(...args: any[]): ({ registry }: {
|
|
317
|
+
registry: any;
|
|
318
|
+
}) => void;
|
|
319
|
+
export function insertBlock(...args: any[]): ({ registry }: {
|
|
320
|
+
registry: any;
|
|
321
|
+
}) => void;
|
|
322
|
+
export function insertBlocks(...args: any[]): ({ registry }: {
|
|
323
|
+
registry: any;
|
|
324
|
+
}) => void;
|
|
325
|
+
export function showInsertionPoint(...args: any[]): ({ registry }: {
|
|
326
|
+
registry: any;
|
|
327
|
+
}) => void;
|
|
328
|
+
export function hideInsertionPoint(...args: any[]): ({ registry }: {
|
|
329
|
+
registry: any;
|
|
330
|
+
}) => void;
|
|
331
|
+
export function setTemplateValidity(...args: any[]): ({ registry }: {
|
|
332
|
+
registry: any;
|
|
333
|
+
}) => void;
|
|
334
|
+
export function synchronizeTemplate(...args: any[]): ({ registry }: {
|
|
335
|
+
registry: any;
|
|
336
|
+
}) => void;
|
|
337
|
+
export function mergeBlocks(...args: any[]): ({ registry }: {
|
|
338
|
+
registry: any;
|
|
339
|
+
}) => void;
|
|
340
|
+
export function removeBlocks(...args: any[]): ({ registry }: {
|
|
341
|
+
registry: any;
|
|
342
|
+
}) => void;
|
|
343
|
+
export function removeBlock(...args: any[]): ({ registry }: {
|
|
344
|
+
registry: any;
|
|
345
|
+
}) => void;
|
|
346
|
+
export function toggleBlockMode(...args: any[]): ({ registry }: {
|
|
347
|
+
registry: any;
|
|
348
|
+
}) => void;
|
|
349
|
+
export function startTyping(...args: any[]): ({ registry }: {
|
|
350
|
+
registry: any;
|
|
351
|
+
}) => void;
|
|
352
|
+
export function stopTyping(...args: any[]): ({ registry }: {
|
|
353
|
+
registry: any;
|
|
354
|
+
}) => void;
|
|
355
|
+
export function enterFormattedText(...args: any[]): ({ registry }: {
|
|
356
|
+
registry: any;
|
|
357
|
+
}) => void;
|
|
358
|
+
export function exitFormattedText(...args: any[]): ({ registry }: {
|
|
359
|
+
registry: any;
|
|
360
|
+
}) => void;
|
|
361
|
+
export function insertDefaultBlock(...args: any[]): ({ registry }: {
|
|
362
|
+
registry: any;
|
|
363
|
+
}) => void;
|
|
364
|
+
export function updateBlockListSettings(...args: any[]): ({ registry }: {
|
|
365
|
+
registry: any;
|
|
366
|
+
}) => void;
|
|
367
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AAsEA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC;AAED;;;;;;GAMG;AACH,8BAHY,MAAM,CAWjB;AAED;;;;;;GAMG;AACH,uCAFW,MAAM,UAQhB;AAED;;;;;;;GAOG;AACH,wCALW,MAAM,UACN,MAAM,GAEL,MAAM,CAQjB;AA+GD;;;;GAIG;AACH;;EAOC;AAqGD;;;;GAIG;AACH;;EAOC;AAED;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAOjB;AAwBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,yCAxCW,MAAM,GAsCL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,2CAVW,MAAM,GAQL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,6CAVW,MAAM,GAQL,MAAM,CAOjB;AAED;;;;;;;;;;;;GAYG;AACH,+CAVW,MAAM,GAQL,MAAM,CAOjB;AA6CD;;;EAKC;AAyBD;;;;;;GAMG;AACH,0CAJW,MAAM,GAEL,MAAM,CAOjB;AAiED;;;;;;GAMG;AACH,6CAJW,MAAM,GAEL,MAAM,CAOjB;AAED;;;;;;;;;;;GAWG;AACH,2CATW,OAAO,GAAC,MAAM,GAOb,MAAM,CAOjB;AAED;;;;;GAKG;AACH,4CAHW,OAAO,GACN,MAAM,CAOjB;AA+FD;;;;;GAKG;AACH,sCAFY,MAAM,CAMjB;AAED;;;;;GAKG;AACH,uCAFY,MAAM,CAMjB;AAED;;;;GAIG;AACH,wCAFY,MAAM,CAMjB;AAjzBM,kCAJI,MAAM,SACN,MAAM;;WAkCf;AA0FK,gCAHI,MAAM,WACN,MAAM;;;WASf;AAOK,mCAFI,MAAM;;;;oBAwFf;AAmBK;;;;oBA2BL;AAUK,iDAFI,MAAM;;;oBAqBf;AAEK;;;;;mBAkBL;AAKK;;WAIL;AAKK;;WAIL;AAgCK;;WAML;AAKK;;WAML;AAsHK,2DAFK,MAAM;;;;WA8BhB;AAwBK,uCAFI,MAAM;;;;WAef;AAuBK,oDAJI,MAAM,GAEL,MAAM,CA0BhB;AAOK,mDAFI,MAAM;;WAyBf;AAqDK;;;WA0DL;AAOK,uCAFI,MAAM;;;WAuBf;AA2CD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Set of post properties for which edits should assume a merging behavior,
|
|
3
|
+
* assuming an object value.
|
|
4
|
+
*
|
|
5
|
+
* @type {Set}
|
|
6
|
+
*/
|
|
7
|
+
export declare const EDIT_MERGE_PROPERTIES: Set<string>;
|
|
8
|
+
/**
|
|
9
|
+
* Constant for the store module (or reducer) key.
|
|
10
|
+
*
|
|
11
|
+
* @type {string}
|
|
12
|
+
*/
|
|
13
|
+
export declare const STORE_NAME = "core/editor";
|
|
14
|
+
export declare const SAVE_POST_NOTICE_ID = "SAVE_POST_NOTICE_ID";
|
|
15
|
+
export declare const TRASH_POST_NOTICE_ID = "TRASH_POST_NOTICE_ID";
|
|
16
|
+
export declare const PERMALINK_POSTNAME_REGEX: RegExp;
|
|
17
|
+
export declare const ONE_MINUTE_IN_MS: number;
|
|
18
|
+
export declare const AUTOSAVE_PROPERTIES: string[];
|
|
19
|
+
export declare const TEMPLATE_PART_AREA_DEFAULT_CATEGORY = "uncategorized";
|
|
20
|
+
export declare const TEMPLATE_POST_TYPE = "wp_template";
|
|
21
|
+
export declare const TEMPLATE_PART_POST_TYPE = "wp_template_part";
|
|
22
|
+
export declare const PATTERN_POST_TYPE = "wp_block";
|
|
23
|
+
export declare const NAVIGATION_POST_TYPE = "wp_navigation";
|
|
24
|
+
export declare const TEMPLATE_ORIGINS: {
|
|
25
|
+
custom: string;
|
|
26
|
+
theme: string;
|
|
27
|
+
plugin: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const TEMPLATE_POST_TYPES: string[];
|
|
30
|
+
export declare const GLOBAL_POST_TYPES: string[];
|
|
31
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/store/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,aAAwB,CAAC;AAE3D;;;;GAIG;AACH,eAAO,MAAM,UAAU,gBAAgB,CAAC;AAExC,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,wBAAwB,QAA4B,CAAC;AAClE,eAAO,MAAM,gBAAgB,QAAY,CAAC;AAC1C,eAAO,MAAM,mBAAmB,UAAoC,CAAC;AACrE,eAAO,MAAM,mCAAmC,kBAAkB,CAAC;AACnE,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAChD,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAC1D,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAC5C,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AACpD,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAwC,CAAC;AACzE,eAAO,MAAM,iBAAiB,UAI7B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The default post editor settings.
|
|
3
|
+
*
|
|
4
|
+
* @property {boolean|Array} allowedBlockTypes Allowed block types
|
|
5
|
+
* @property {boolean} richEditingEnabled Whether rich editing is enabled or not
|
|
6
|
+
* @property {boolean} codeEditingEnabled Whether code editing is enabled or not
|
|
7
|
+
* @property {boolean} fontLibraryEnabled Whether the font library is enabled or not.
|
|
8
|
+
* @property {boolean} enableCustomFields Whether the WordPress custom fields are enabled or not.
|
|
9
|
+
* true = the user has opted to show the Custom Fields panel at the bottom of the editor.
|
|
10
|
+
* false = the user has opted to hide the Custom Fields panel at the bottom of the editor.
|
|
11
|
+
* undefined = the current environment does not support Custom Fields, so the option toggle in Preferences -> Panels to enable the Custom Fields panel is not displayed.
|
|
12
|
+
* @property {number} autosaveInterval How often in seconds the post will be auto-saved via the REST API.
|
|
13
|
+
* @property {number} localAutosaveInterval How often in seconds the post will be backed up to sessionStorage.
|
|
14
|
+
* @property {Array?} availableTemplates The available post templates
|
|
15
|
+
* @property {boolean} disablePostFormats Whether or not the post formats are disabled
|
|
16
|
+
* @property {Array?} allowedMimeTypes List of allowed mime types and file extensions
|
|
17
|
+
* @property {number} maxUploadFileSize Maximum upload file size
|
|
18
|
+
* @property {boolean} supportsLayout Whether the editor supports layouts.
|
|
19
|
+
*/
|
|
20
|
+
export const EDITOR_SETTINGS_DEFAULTS: any;
|
|
21
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../src/store/defaults.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AACH,2CAQE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Post editor data store configuration.
|
|
3
|
+
*
|
|
4
|
+
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#registerStore
|
|
5
|
+
*
|
|
6
|
+
* @type {Object}
|
|
7
|
+
*/
|
|
8
|
+
export const storeConfig: Object;
|
|
9
|
+
/**
|
|
10
|
+
* Store definition for the editor namespace.
|
|
11
|
+
*
|
|
12
|
+
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore
|
|
13
|
+
*
|
|
14
|
+
* @type {Object}
|
|
15
|
+
*/
|
|
16
|
+
export const store: Object;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/store/index.js"],"names":[],"mappings":"AAgBA;;;;;;GAMG;AACH,0BAFU,MAAM,CAMd;AAEF;;;;;;GAMG;AACH,oBAFU,MAAM,CAIZ"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export function localAutosaveGet(postId: any, isPostNew: any): string | null;
|
|
2
|
+
export function localAutosaveSet(postId: any, isPostNew: any, title: any, content: any, excerpt: any): void;
|
|
3
|
+
export function localAutosaveClear(postId: any, isPostNew: any): void;
|
|
4
|
+
//# sourceMappingURL=local-autosave.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-autosave.d.ts","sourceRoot":"","sources":["../../src/store/local-autosave.js"],"names":[],"mappings":"AAoBA,6EAEC;AAED,4GASC;AAED,sEAEC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns an action object used to set which template is currently being used/edited.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} id Template Id.
|
|
5
|
+
*
|
|
6
|
+
* @return {Object} Action object.
|
|
7
|
+
*/
|
|
8
|
+
export function setCurrentTemplateId(id: string): Object;
|
|
9
|
+
export * from "../dataviews/store/private-actions";
|
|
10
|
+
export function createTemplate(template: Object | null): ({ select, dispatch, registry }: {
|
|
11
|
+
select: any;
|
|
12
|
+
dispatch: any;
|
|
13
|
+
registry: any;
|
|
14
|
+
}) => Promise<any>;
|
|
15
|
+
export function showBlockTypes(blockNames: string[]): ({ registry }: {
|
|
16
|
+
registry: any;
|
|
17
|
+
}) => void;
|
|
18
|
+
export function hideBlockTypes(blockNames: string[]): ({ registry }: {
|
|
19
|
+
registry: any;
|
|
20
|
+
}) => void;
|
|
21
|
+
export function saveDirtyEntities({ onSave, dirtyEntityRecords, entitiesToSkip, close }?: {
|
|
22
|
+
onSave?: Function | undefined;
|
|
23
|
+
dirtyEntityRecords?: object[] | undefined;
|
|
24
|
+
entitiesToSkip?: object[] | undefined;
|
|
25
|
+
close?: Function | undefined;
|
|
26
|
+
}): ({ registry }: {
|
|
27
|
+
registry: any;
|
|
28
|
+
}) => void;
|
|
29
|
+
export function revertTemplate(template: Object, { allowUndo }?: {
|
|
30
|
+
allowUndo?: boolean | undefined;
|
|
31
|
+
} | undefined): ({ registry }: {
|
|
32
|
+
registry: any;
|
|
33
|
+
}) => Promise<void>;
|
|
34
|
+
export function removeTemplates(items: any[]): ({ registry }: {
|
|
35
|
+
registry: any;
|
|
36
|
+
}) => Promise<void>;
|
|
37
|
+
//# sourceMappingURL=private-actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;;AAOM,yCAFI,MAAM;;;;mBAqCf;AAOK,2CAFI,MAAM,EAAE;;WAoBjB;AAOK,2CAFI,MAAM,EAAE;;WAkBjB;AAWK;IALuB,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;;;WAkGjC;AAUK,yCALI,MAAM;;;;oBAiIf;AAOK;;oBAsHL"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export function getListViewToggleRef(state: any): any;
|
|
2
|
+
export function getInserterSidebarToggleRef(state: any): any;
|
|
3
|
+
export function getEntityActions(state: any, ...args: any[]): import("@wordpress/dataviews").Action<any>[];
|
|
4
|
+
/**
|
|
5
|
+
* Get the insertion point for the inserter.
|
|
6
|
+
*
|
|
7
|
+
* @param {Object} state Global application state.
|
|
8
|
+
*
|
|
9
|
+
* @return {Object} The root client ID, index to insert at and starting filter value.
|
|
10
|
+
*/
|
|
11
|
+
export const getInsertionPoint: Function;
|
|
12
|
+
export const getPostIcon: Function;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if there are unsaved changes to the
|
|
15
|
+
* post's meta fields, and false otherwise.
|
|
16
|
+
*
|
|
17
|
+
* @param {Object} state Global application state.
|
|
18
|
+
* @param {string} postType The post type of the post.
|
|
19
|
+
* @param {number} postId The ID of the post.
|
|
20
|
+
*
|
|
21
|
+
* @return {boolean} Whether there are edits or not in the meta fields of the relevant post.
|
|
22
|
+
*/
|
|
23
|
+
export const hasPostMetaChanges: Function;
|
|
24
|
+
//# sourceMappingURL=private-selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AA+EA,sDAEC;AACD,6DAEC;AA2ED,2GAEC;AA9HD;;;;;;GAMG;AACH,yCAmCE;AAeF,mCA0BE;AAEF;;;;;;;;;GASG;AACH,0CA2BE"}
|