@wordpress/editor 13.31.0 → 13.33.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 +4 -0
- package/README.md +1080 -0
- package/build/bindings/index.js.map +1 -1
- package/build/bindings/pattern-overrides.js.map +1 -1
- package/build/bindings/post-meta.js +12 -30
- package/build/bindings/post-meta.js.map +1 -1
- package/build/components/autocompleters/index.js.map +1 -1
- package/build/components/autocompleters/user.js.map +1 -1
- package/build/components/autosave-monitor/index.js +10 -0
- package/build/components/autosave-monitor/index.js.map +1 -1
- package/build/components/block-manager/category.js.map +1 -1
- package/build/components/block-manager/checklist.js.map +1 -1
- package/build/components/block-manager/index.js.map +1 -1
- package/build/components/block-removal-warnings/index.js.map +1 -1
- package/build/components/block-settings-menu/plugin-block-settings-menu-item.js +107 -0
- package/build/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -0
- package/build/components/character-count/index.js.map +1 -1
- package/build/components/commands/index.js +20 -1
- package/build/components/commands/index.js.map +1 -1
- package/build/components/commands/index.native.js.map +1 -1
- package/build/components/deprecated.js +158 -0
- package/build/components/deprecated.js.map +1 -1
- package/build/components/deprecated.native.js.map +1 -1
- package/build/components/document-bar/index.js +5 -8
- package/build/components/document-bar/index.js.map +1 -1
- package/build/components/document-outline/check.js.map +1 -1
- package/build/components/document-outline/index.js.map +1 -1
- package/build/components/document-outline/item.js.map +1 -1
- package/build/components/document-tools/index.js +1 -1
- package/build/components/document-tools/index.js.map +1 -1
- package/build/components/editor-canvas/edit-template-blocks-notification.js +12 -38
- package/build/components/editor-canvas/edit-template-blocks-notification.js.map +1 -1
- package/build/components/editor-canvas/index.js +5 -2
- package/build/components/editor-canvas/index.js.map +1 -1
- package/build/components/editor-help/add-blocks.native.js.map +1 -1
- package/build/components/editor-help/customize-blocks.native.js.map +1 -1
- package/build/components/editor-help/help-detail-navigation-screen.native.js.map +1 -1
- package/build/components/editor-help/help-get-support-button.native.js.map +1 -1
- package/build/components/editor-help/help-section-title.native.js.map +1 -1
- package/build/components/editor-help/help-topic-row.native.js.map +1 -1
- package/build/components/editor-help/icon-move-blocks.native.js.map +1 -1
- package/build/components/editor-help/index.native.js.map +1 -1
- package/build/components/editor-help/intro-to-blocks.native.js.map +1 -1
- package/build/components/editor-help/move-blocks.native.js.map +1 -1
- package/build/components/editor-help/remove-blocks.native.js.map +1 -1
- package/build/components/editor-help/view-sections.native.js.map +1 -1
- package/build/components/editor-history/redo.js.map +1 -1
- package/build/components/editor-history/undo.js.map +1 -1
- package/build/components/editor-notices/index.js.map +1 -1
- package/build/components/editor-snackbars/index.js.map +1 -1
- package/build/components/entities-saved-states/entity-record-item.js.map +1 -1
- package/build/components/entities-saved-states/entity-type-list.js.map +1 -1
- package/build/components/entities-saved-states/hooks/use-is-dirty.js.map +1 -1
- package/build/components/entities-saved-states/index.js +11 -85
- package/build/components/entities-saved-states/index.js.map +1 -1
- package/build/components/error-boundary/index.js.map +1 -1
- package/build/components/error-boundary/index.native.js.map +1 -1
- package/build/components/global-keyboard-shortcuts/index.js +24 -0
- package/build/components/global-keyboard-shortcuts/index.js.map +1 -1
- package/build/components/global-keyboard-shortcuts/register-shortcuts.js +18 -0
- package/build/components/global-keyboard-shortcuts/register-shortcuts.js.map +1 -1
- package/build/components/index.js +57 -1
- package/build/components/index.js.map +1 -1
- package/build/components/index.native.js.map +1 -1
- package/build/components/inserter-sidebar/index.js +5 -1
- package/build/components/inserter-sidebar/index.js.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/config.js +78 -0
- package/build/components/keyboard-shortcut-help-modal/config.js.map +1 -0
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +49 -0
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -0
- package/build/components/keyboard-shortcut-help-modal/index.js +126 -0
- package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -0
- package/build/components/keyboard-shortcut-help-modal/shortcut.js +55 -0
- package/build/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -0
- package/build/components/list-view-sidebar/index.js +2 -1
- package/build/components/list-view-sidebar/index.js.map +1 -1
- package/build/components/list-view-sidebar/list-view-outline.js.map +1 -1
- package/build/components/local-autosave-monitor/index.js.map +1 -1
- package/build/components/media-categories/index.js.map +1 -1
- package/build/components/mode-switcher/index.js.map +1 -1
- package/build/components/offline-status/index.native.js.map +1 -1
- package/build/components/page-attributes/check.js.map +1 -1
- package/build/components/page-attributes/order.js.map +1 -1
- package/build/components/page-attributes/panel.js.map +1 -1
- package/build/components/page-attributes/parent.js.map +1 -1
- package/build/components/pattern-overrides-panel/index.js +30 -0
- package/build/components/pattern-overrides-panel/index.js.map +1 -0
- package/build/components/plugin-document-setting-panel/index.js.map +1 -1
- package/build/components/plugin-more-menu-item/index.js +78 -0
- package/build/components/plugin-more-menu-item/index.js.map +1 -0
- package/build/components/plugin-post-publish-panel/index.js +68 -0
- package/build/components/plugin-post-publish-panel/index.js.map +1 -0
- package/build/components/plugin-post-status-info/index.js +73 -0
- package/build/components/plugin-post-status-info/index.js.map +1 -0
- package/build/components/plugin-pre-publish-panel/index.js +71 -0
- package/build/components/plugin-pre-publish-panel/index.js.map +1 -0
- package/build/components/plugin-sidebar/index.js +108 -0
- package/build/components/plugin-sidebar/index.js.map +1 -0
- package/build/components/plugin-sidebar-more-menu-item/index.js +71 -0
- package/build/components/plugin-sidebar-more-menu-item/index.js.map +1 -0
- package/build/components/post-actions/actions.js +656 -0
- package/build/components/post-actions/actions.js.map +1 -0
- package/build/components/post-actions/index.js +137 -0
- package/build/components/post-actions/index.js.map +1 -0
- package/build/components/post-author/check.js.map +1 -1
- package/build/components/post-author/combobox.js.map +1 -1
- package/build/components/post-author/constants.js.map +1 -1
- package/build/components/post-author/hook.js.map +1 -1
- package/build/components/post-author/index.js.map +1 -1
- package/build/components/post-author/panel.js.map +1 -1
- package/build/components/post-author/select.js.map +1 -1
- package/build/components/post-card-panel/index.js +127 -0
- package/build/components/post-card-panel/index.js.map +1 -0
- package/build/components/post-comments/index.js.map +1 -1
- package/build/components/post-discussion/panel.js.map +1 -1
- package/build/components/post-excerpt/check.js +8 -0
- package/build/components/post-excerpt/check.js.map +1 -1
- package/build/components/post-excerpt/index.js.map +1 -1
- package/build/components/post-excerpt/panel.js.map +1 -1
- package/build/components/post-excerpt/plugin.js.map +1 -1
- package/build/components/post-featured-image/check.js.map +1 -1
- package/build/components/post-featured-image/index.js.map +1 -1
- package/build/components/post-featured-image/panel.js.map +1 -1
- package/build/components/post-format/check.js.map +1 -1
- package/build/components/post-format/index.js.map +1 -1
- package/build/components/post-last-revision/check.js.map +1 -1
- package/build/components/post-last-revision/index.js.map +1 -1
- package/build/components/post-last-revision/panel.js.map +1 -1
- package/build/components/post-locked-modal/index.js.map +1 -1
- package/build/components/post-panel-row/index.js.map +1 -1
- package/build/components/post-pending-status/check.js.map +1 -1
- package/build/components/post-pending-status/index.js.map +1 -1
- package/build/components/post-pingbacks/index.js.map +1 -1
- package/build/components/post-preview-button/index.js.map +1 -1
- package/build/components/post-publish-button/index.js +31 -31
- package/build/components/post-publish-button/index.js.map +1 -1
- package/build/components/post-publish-button/label.js +51 -43
- package/build/components/post-publish-button/label.js.map +1 -1
- package/build/components/post-publish-panel/index.js.map +1 -1
- package/build/components/post-publish-panel/maybe-category-panel.js.map +1 -1
- package/build/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
- package/build/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
- package/build/components/post-publish-panel/maybe-upload-media.js.map +1 -1
- package/build/components/post-publish-panel/postpublish.js.map +1 -1
- package/build/components/post-publish-panel/prepublish.js.map +1 -1
- package/build/components/post-saved-state/index.js +10 -6
- package/build/components/post-saved-state/index.js.map +1 -1
- package/build/components/post-schedule/check.js.map +1 -1
- package/build/components/post-schedule/index.js.map +1 -1
- package/build/components/post-schedule/label.js.map +1 -1
- package/build/components/post-schedule/panel.js +8 -0
- package/build/components/post-schedule/panel.js.map +1 -1
- package/build/components/post-slug/check.js.map +1 -1
- package/build/components/post-slug/index.js +43 -68
- package/build/components/post-slug/index.js.map +1 -1
- package/build/components/post-status/index.js +239 -0
- package/build/components/post-status/index.js.map +1 -0
- package/build/components/post-sticky/check.js.map +1 -1
- package/build/components/post-sticky/index.js.map +1 -1
- package/build/components/post-switch-to-draft-button/index.js +6 -1
- package/build/components/post-switch-to-draft-button/index.js.map +1 -1
- package/build/components/post-sync-status/index.js.map +1 -1
- package/build/components/post-taxonomies/check.js.map +1 -1
- package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
- package/build/components/post-taxonomies/index.js.map +1 -1
- package/build/components/post-taxonomies/most-used-terms.js.map +1 -1
- package/build/components/post-taxonomies/panel.js.map +1 -1
- package/build/components/post-template/block-theme.js +6 -2
- package/build/components/post-template/block-theme.js.map +1 -1
- package/build/components/post-template/classic-theme.js.map +1 -1
- package/build/components/post-template/create-new-template-modal.js.map +1 -1
- package/build/components/post-template/create-new-template.js.map +1 -1
- package/build/components/post-template/hooks.js.map +1 -1
- package/build/components/post-template/panel.js.map +1 -1
- package/build/components/post-template/reset-default-template.js.map +1 -1
- package/build/components/post-template/swap-template-button.js.map +1 -1
- package/build/components/post-text-editor/index.js.map +1 -1
- package/build/components/post-title/constants.js.map +1 -1
- package/build/components/post-title/index.js.map +1 -1
- package/build/components/post-title/index.native.js +1 -1
- package/build/components/post-title/index.native.js.map +1 -1
- package/build/components/post-title/post-title-raw.js.map +1 -1
- package/build/components/post-title/use-post-title-focus.js.map +1 -1
- package/build/components/post-title/use-post-title.js.map +1 -1
- package/build/components/post-trash/check.js +23 -25
- package/build/components/post-trash/check.js.map +1 -1
- package/build/components/post-trash/index.js +2 -1
- package/build/components/post-trash/index.js.map +1 -1
- package/build/components/post-type-support-check/index.js.map +1 -1
- package/build/components/post-url/check.js.map +1 -1
- package/build/components/post-url/index.js +44 -19
- package/build/components/post-url/index.js.map +1 -1
- package/build/components/post-url/label.js.map +1 -1
- package/build/components/post-url/panel.js +14 -7
- package/build/components/post-url/panel.js.map +1 -1
- package/build/components/post-view-link/index.js.map +1 -1
- package/build/components/post-visibility/check.js.map +1 -1
- package/build/components/post-visibility/index.js +2 -1
- package/build/components/post-visibility/index.js.map +1 -1
- package/build/components/post-visibility/label.js.map +1 -1
- package/build/components/post-visibility/utils.js.map +1 -1
- package/build/components/preferences-modal/enable-panel.js.map +1 -1
- package/build/components/preferences-modal/enable-plugin-document-setting-panel.js.map +1 -1
- package/build/components/preferences-modal/index.js +19 -17
- package/build/components/preferences-modal/index.js.map +1 -1
- package/build/components/preview-dropdown/index.js.map +1 -1
- package/build/components/provider/disable-non-page-content-blocks.js +36 -20
- package/build/components/provider/disable-non-page-content-blocks.js.map +1 -1
- package/build/components/provider/index.js +4 -2
- package/build/components/provider/index.js.map +1 -1
- package/build/components/provider/index.native.js +6 -1
- package/build/components/provider/index.native.js.map +1 -1
- package/build/components/provider/navigation-block-editing-mode.js.map +1 -1
- package/build/components/provider/use-auto-switch-editor-sidebars.js +52 -0
- package/build/components/provider/use-auto-switch-editor-sidebars.js.map +1 -0
- package/build/components/provider/use-block-editor-settings.js +70 -50
- package/build/components/provider/use-block-editor-settings.js.map +1 -1
- package/build/components/provider/use-block-editor-settings.native.js.map +1 -1
- package/build/components/provider/use-hide-blocks-from-inserter.js.map +1 -1
- package/build/components/provider/with-registry-provider.js +1 -0
- package/build/components/provider/with-registry-provider.js.map +1 -1
- package/build/components/start-page-options/index.js +139 -0
- package/build/components/start-page-options/index.js.map +1 -0
- package/build/components/table-of-contents/index.js.map +1 -1
- package/build/components/table-of-contents/panel.js.map +1 -1
- package/build/components/template-areas/index.js +70 -0
- package/build/components/template-areas/index.js.map +1 -0
- package/build/components/template-validation-notice/index.js +23 -29
- package/build/components/template-validation-notice/index.js.map +1 -1
- package/build/components/theme-support-check/index.js +10 -16
- package/build/components/theme-support-check/index.js.map +1 -1
- package/build/components/time-to-read/index.js.map +1 -1
- package/build/components/unsaved-changes-warning/index.js.map +1 -1
- package/build/components/word-count/index.js.map +1 -1
- package/build/hooks/custom-sources-backwards-compatibility.js.map +1 -1
- package/build/hooks/default-autocompleters.js.map +1 -1
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/index.native.js.map +1 -1
- package/build/hooks/pattern-overrides.js +22 -10
- package/build/hooks/pattern-overrides.js.map +1 -1
- package/build/hooks/use-select-nearest-editable-block.js +87 -0
- package/build/hooks/use-select-nearest-editable-block.js.map +1 -0
- package/build/index.js.map +1 -1
- package/build/index.native.js.map +1 -1
- package/build/lock-unlock.js.map +1 -1
- package/build/private-apis.js +26 -1
- package/build/private-apis.js.map +1 -1
- package/build/store/actions.js +46 -6
- package/build/store/actions.js.map +1 -1
- package/build/store/actions.native.js.map +1 -1
- package/build/store/constants.js +10 -1
- package/build/store/constants.js.map +1 -1
- package/build/store/defaults.js.map +1 -1
- package/build/store/index.js +1 -1
- package/build/store/index.js.map +1 -1
- package/build/store/local-autosave.js.map +1 -1
- package/build/store/private-actions.js +253 -1
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +50 -3
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/reducer.js +14 -1
- package/build/store/reducer.js.map +1 -1
- package/build/store/reducer.native.js.map +1 -1
- package/build/store/selectors.js +25 -20
- package/build/store/selectors.js.map +1 -1
- package/build/store/selectors.native.js.map +1 -1
- package/build/store/utils/get-filtered-template-parts.js +71 -0
- package/build/store/utils/get-filtered-template-parts.js.map +1 -0
- package/build/store/utils/is-template-revertable.js +28 -0
- package/build/store/utils/is-template-revertable.js.map +1 -0
- package/build/store/utils/notice-builder.js.map +1 -1
- package/build/utils/get-template-part-icon.js.map +1 -1
- package/build/utils/index.js.map +1 -1
- package/build/utils/index.native.js.map +1 -1
- package/build/utils/media-upload/index.js.map +1 -1
- package/build/utils/media-upload/index.native.js.map +1 -1
- package/build/utils/terms.js.map +1 -1
- package/build/utils/url.js.map +1 -1
- package/build-module/bindings/index.js.map +1 -1
- package/build-module/bindings/pattern-overrides.js.map +1 -1
- package/build-module/bindings/post-meta.js +14 -31
- package/build-module/bindings/post-meta.js.map +1 -1
- package/build-module/components/autocompleters/index.js.map +1 -1
- package/build-module/components/autocompleters/user.js.map +1 -1
- package/build-module/components/autosave-monitor/index.js +10 -0
- package/build-module/components/autosave-monitor/index.js.map +1 -1
- package/build-module/components/block-manager/category.js.map +1 -1
- package/build-module/components/block-manager/checklist.js.map +1 -1
- package/build-module/components/block-manager/index.js.map +1 -1
- package/build-module/components/block-removal-warnings/index.js.map +1 -1
- package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js +100 -0
- package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -0
- package/build-module/components/character-count/index.js.map +1 -1
- package/build-module/components/commands/index.js +21 -2
- package/build-module/components/commands/index.js.map +1 -1
- package/build-module/components/commands/index.native.js.map +1 -1
- package/build-module/components/deprecated.js +159 -0
- package/build-module/components/deprecated.js.map +1 -1
- package/build-module/components/deprecated.native.js.map +1 -1
- package/build-module/components/document-bar/index.js +6 -9
- package/build-module/components/document-bar/index.js.map +1 -1
- package/build-module/components/document-outline/check.js.map +1 -1
- package/build-module/components/document-outline/index.js.map +1 -1
- package/build-module/components/document-outline/item.js.map +1 -1
- package/build-module/components/document-tools/index.js +1 -1
- package/build-module/components/document-tools/index.js.map +1 -1
- package/build-module/components/editor-canvas/edit-template-blocks-notification.js +14 -40
- package/build-module/components/editor-canvas/edit-template-blocks-notification.js.map +1 -1
- package/build-module/components/editor-canvas/index.js +5 -2
- package/build-module/components/editor-canvas/index.js.map +1 -1
- package/build-module/components/editor-help/add-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/customize-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/help-detail-navigation-screen.native.js.map +1 -1
- package/build-module/components/editor-help/help-get-support-button.native.js.map +1 -1
- package/build-module/components/editor-help/help-section-title.native.js.map +1 -1
- package/build-module/components/editor-help/help-topic-row.native.js.map +1 -1
- package/build-module/components/editor-help/icon-move-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/index.native.js.map +1 -1
- package/build-module/components/editor-help/intro-to-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/move-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/remove-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/view-sections.native.js.map +1 -1
- package/build-module/components/editor-history/redo.js.map +1 -1
- package/build-module/components/editor-history/undo.js.map +1 -1
- package/build-module/components/editor-notices/index.js.map +1 -1
- package/build-module/components/editor-snackbars/index.js.map +1 -1
- package/build-module/components/entities-saved-states/entity-record-item.js.map +1 -1
- package/build-module/components/entities-saved-states/entity-type-list.js.map +1 -1
- package/build-module/components/entities-saved-states/hooks/use-is-dirty.js.map +1 -1
- package/build-module/components/entities-saved-states/index.js +11 -85
- package/build-module/components/entities-saved-states/index.js.map +1 -1
- package/build-module/components/error-boundary/index.js.map +1 -1
- package/build-module/components/error-boundary/index.native.js.map +1 -1
- package/build-module/components/global-keyboard-shortcuts/index.js +24 -0
- package/build-module/components/global-keyboard-shortcuts/index.js.map +1 -1
- package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js +18 -0
- package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js.map +1 -1
- package/build-module/components/index.js +7 -0
- package/build-module/components/index.js.map +1 -1
- package/build-module/components/index.native.js.map +1 -1
- package/build-module/components/inserter-sidebar/index.js +5 -1
- package/build-module/components/inserter-sidebar/index.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/config.js +71 -0
- package/build-module/components/keyboard-shortcut-help-modal/config.js.map +1 -0
- package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +41 -0
- package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -0
- package/build-module/components/keyboard-shortcut-help-modal/index.js +118 -0
- package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -0
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +48 -0
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -0
- package/build-module/components/list-view-sidebar/index.js +2 -1
- package/build-module/components/list-view-sidebar/index.js.map +1 -1
- package/build-module/components/list-view-sidebar/list-view-outline.js.map +1 -1
- package/build-module/components/local-autosave-monitor/index.js.map +1 -1
- package/build-module/components/media-categories/index.js.map +1 -1
- package/build-module/components/mode-switcher/index.js.map +1 -1
- package/build-module/components/offline-status/index.native.js.map +1 -1
- package/build-module/components/page-attributes/check.js.map +1 -1
- package/build-module/components/page-attributes/order.js.map +1 -1
- package/build-module/components/page-attributes/panel.js.map +1 -1
- package/build-module/components/page-attributes/parent.js.map +1 -1
- package/build-module/components/pattern-overrides-panel/index.js +23 -0
- package/build-module/components/pattern-overrides-panel/index.js.map +1 -0
- package/build-module/components/plugin-document-setting-panel/index.js.map +1 -1
- package/build-module/components/plugin-more-menu-item/index.js +73 -0
- package/build-module/components/plugin-more-menu-item/index.js.map +1 -0
- package/build-module/components/plugin-post-publish-panel/index.js +61 -0
- package/build-module/components/plugin-post-publish-panel/index.js.map +1 -0
- package/build-module/components/plugin-post-status-info/index.js +66 -0
- package/build-module/components/plugin-post-status-info/index.js.map +1 -0
- package/build-module/components/plugin-pre-publish-panel/index.js +64 -0
- package/build-module/components/plugin-pre-publish-panel/index.js.map +1 -0
- package/build-module/components/plugin-sidebar/index.js +102 -0
- package/build-module/components/plugin-sidebar/index.js.map +1 -0
- package/build-module/components/plugin-sidebar-more-menu-item/index.js +65 -0
- package/build-module/components/plugin-sidebar-more-menu-item/index.js.map +1 -0
- package/build-module/components/post-actions/actions.js +648 -0
- package/build-module/components/post-actions/actions.js.map +1 -0
- package/build-module/components/post-actions/index.js +130 -0
- package/build-module/components/post-actions/index.js.map +1 -0
- package/build-module/components/post-author/check.js.map +1 -1
- package/build-module/components/post-author/combobox.js.map +1 -1
- package/build-module/components/post-author/constants.js.map +1 -1
- package/build-module/components/post-author/hook.js.map +1 -1
- package/build-module/components/post-author/index.js.map +1 -1
- package/build-module/components/post-author/panel.js.map +1 -1
- package/build-module/components/post-author/select.js.map +1 -1
- package/build-module/components/post-card-panel/index.js +119 -0
- package/build-module/components/post-card-panel/index.js.map +1 -0
- package/build-module/components/post-comments/index.js.map +1 -1
- package/build-module/components/post-discussion/panel.js.map +1 -1
- package/build-module/components/post-excerpt/check.js +9 -0
- package/build-module/components/post-excerpt/check.js.map +1 -1
- package/build-module/components/post-excerpt/index.js.map +1 -1
- package/build-module/components/post-excerpt/panel.js.map +1 -1
- package/build-module/components/post-excerpt/plugin.js.map +1 -1
- package/build-module/components/post-featured-image/check.js.map +1 -1
- package/build-module/components/post-featured-image/index.js.map +1 -1
- package/build-module/components/post-featured-image/panel.js.map +1 -1
- package/build-module/components/post-format/check.js.map +1 -1
- package/build-module/components/post-format/index.js.map +1 -1
- package/build-module/components/post-last-revision/check.js.map +1 -1
- package/build-module/components/post-last-revision/index.js.map +1 -1
- package/build-module/components/post-last-revision/panel.js.map +1 -1
- package/build-module/components/post-locked-modal/index.js.map +1 -1
- package/build-module/components/post-panel-row/index.js.map +1 -1
- package/build-module/components/post-pending-status/check.js.map +1 -1
- package/build-module/components/post-pending-status/index.js.map +1 -1
- package/build-module/components/post-pingbacks/index.js.map +1 -1
- package/build-module/components/post-preview-button/index.js.map +1 -1
- package/build-module/components/post-publish-button/index.js +31 -31
- package/build-module/components/post-publish-button/index.js.map +1 -1
- package/build-module/components/post-publish-button/label.js +51 -42
- package/build-module/components/post-publish-button/label.js.map +1 -1
- package/build-module/components/post-publish-panel/index.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-category-panel.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-upload-media.js.map +1 -1
- package/build-module/components/post-publish-panel/postpublish.js.map +1 -1
- package/build-module/components/post-publish-panel/prepublish.js.map +1 -1
- package/build-module/components/post-saved-state/index.js +10 -6
- package/build-module/components/post-saved-state/index.js.map +1 -1
- package/build-module/components/post-schedule/check.js.map +1 -1
- package/build-module/components/post-schedule/index.js.map +1 -1
- package/build-module/components/post-schedule/label.js.map +1 -1
- package/build-module/components/post-schedule/panel.js +8 -0
- package/build-module/components/post-schedule/panel.js.map +1 -1
- package/build-module/components/post-slug/check.js.map +1 -1
- package/build-module/components/post-slug/index.js +44 -68
- package/build-module/components/post-slug/index.js.map +1 -1
- package/build-module/components/post-status/index.js +231 -0
- package/build-module/components/post-status/index.js.map +1 -0
- package/build-module/components/post-sticky/check.js.map +1 -1
- package/build-module/components/post-sticky/index.js.map +1 -1
- package/build-module/components/post-switch-to-draft-button/index.js +7 -1
- package/build-module/components/post-switch-to-draft-button/index.js.map +1 -1
- package/build-module/components/post-sync-status/index.js.map +1 -1
- package/build-module/components/post-taxonomies/check.js.map +1 -1
- package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build-module/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
- package/build-module/components/post-taxonomies/index.js.map +1 -1
- package/build-module/components/post-taxonomies/most-used-terms.js.map +1 -1
- package/build-module/components/post-taxonomies/panel.js.map +1 -1
- package/build-module/components/post-template/block-theme.js +7 -3
- package/build-module/components/post-template/block-theme.js.map +1 -1
- package/build-module/components/post-template/classic-theme.js.map +1 -1
- package/build-module/components/post-template/create-new-template-modal.js.map +1 -1
- package/build-module/components/post-template/create-new-template.js.map +1 -1
- package/build-module/components/post-template/hooks.js.map +1 -1
- package/build-module/components/post-template/panel.js.map +1 -1
- package/build-module/components/post-template/reset-default-template.js.map +1 -1
- package/build-module/components/post-template/swap-template-button.js.map +1 -1
- package/build-module/components/post-text-editor/index.js.map +1 -1
- package/build-module/components/post-title/constants.js.map +1 -1
- package/build-module/components/post-title/index.js.map +1 -1
- package/build-module/components/post-title/index.native.js +1 -1
- package/build-module/components/post-title/index.native.js.map +1 -1
- package/build-module/components/post-title/post-title-raw.js.map +1 -1
- package/build-module/components/post-title/use-post-title-focus.js.map +1 -1
- package/build-module/components/post-title/use-post-title.js.map +1 -1
- package/build-module/components/post-trash/check.js +24 -26
- package/build-module/components/post-trash/check.js.map +1 -1
- package/build-module/components/post-trash/index.js +2 -1
- package/build-module/components/post-trash/index.js.map +1 -1
- package/build-module/components/post-type-support-check/index.js.map +1 -1
- package/build-module/components/post-url/check.js.map +1 -1
- package/build-module/components/post-url/index.js +46 -21
- package/build-module/components/post-url/index.js.map +1 -1
- package/build-module/components/post-url/label.js.map +1 -1
- package/build-module/components/post-url/panel.js +14 -7
- package/build-module/components/post-url/panel.js.map +1 -1
- package/build-module/components/post-view-link/index.js.map +1 -1
- package/build-module/components/post-visibility/check.js.map +1 -1
- package/build-module/components/post-visibility/index.js +2 -1
- package/build-module/components/post-visibility/index.js.map +1 -1
- package/build-module/components/post-visibility/label.js.map +1 -1
- package/build-module/components/post-visibility/utils.js.map +1 -1
- package/build-module/components/preferences-modal/enable-panel.js.map +1 -1
- package/build-module/components/preferences-modal/enable-plugin-document-setting-panel.js.map +1 -1
- package/build-module/components/preferences-modal/index.js +19 -17
- package/build-module/components/preferences-modal/index.js.map +1 -1
- package/build-module/components/preview-dropdown/index.js.map +1 -1
- package/build-module/components/provider/disable-non-page-content-blocks.js +36 -20
- package/build-module/components/provider/disable-non-page-content-blocks.js.map +1 -1
- package/build-module/components/provider/index.js +5 -3
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/provider/index.native.js.map +1 -1
- package/build-module/components/provider/navigation-block-editing-mode.js.map +1 -1
- package/build-module/components/provider/use-auto-switch-editor-sidebars.js +46 -0
- package/build-module/components/provider/use-auto-switch-editor-sidebars.js.map +1 -0
- package/build-module/components/provider/use-block-editor-settings.js +73 -53
- package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
- package/build-module/components/provider/use-block-editor-settings.native.js.map +1 -1
- package/build-module/components/provider/use-hide-blocks-from-inserter.js.map +1 -1
- package/build-module/components/provider/with-registry-provider.js +1 -0
- package/build-module/components/provider/with-registry-provider.js.map +1 -1
- package/build-module/components/start-page-options/index.js +132 -0
- package/build-module/components/start-page-options/index.js.map +1 -0
- package/build-module/components/table-of-contents/index.js.map +1 -1
- package/build-module/components/table-of-contents/panel.js.map +1 -1
- package/build-module/components/template-areas/index.js +63 -0
- package/build-module/components/template-areas/index.js.map +1 -0
- package/build-module/components/template-validation-notice/index.js +25 -31
- package/build-module/components/template-validation-notice/index.js.map +1 -1
- package/build-module/components/theme-support-check/index.js +11 -16
- package/build-module/components/theme-support-check/index.js.map +1 -1
- package/build-module/components/time-to-read/index.js.map +1 -1
- package/build-module/components/unsaved-changes-warning/index.js.map +1 -1
- package/build-module/components/word-count/index.js.map +1 -1
- package/build-module/hooks/custom-sources-backwards-compatibility.js.map +1 -1
- package/build-module/hooks/default-autocompleters.js.map +1 -1
- package/build-module/hooks/index.js.map +1 -1
- package/build-module/hooks/index.native.js.map +1 -1
- package/build-module/hooks/pattern-overrides.js +22 -10
- package/build-module/hooks/pattern-overrides.js.map +1 -1
- package/build-module/hooks/use-select-nearest-editable-block.js +80 -0
- package/build-module/hooks/use-select-nearest-editable-block.js.map +1 -0
- package/build-module/index.js.map +1 -1
- package/build-module/index.native.js.map +1 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/private-apis.js +24 -1
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/actions.js +37 -3
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/actions.native.js.map +1 -1
- package/build-module/store/constants.js +9 -0
- package/build-module/store/constants.js.map +1 -1
- package/build-module/store/defaults.js.map +1 -1
- package/build-module/store/index.js.map +1 -1
- package/build-module/store/local-autosave.js.map +1 -1
- package/build-module/store/private-actions.js +249 -1
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +50 -4
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/reducer.js +13 -1
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/reducer.native.js.map +1 -1
- package/build-module/store/selectors.js +20 -16
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/store/selectors.native.js.map +1 -1
- package/build-module/store/utils/get-filtered-template-parts.js +64 -0
- package/build-module/store/utils/get-filtered-template-parts.js.map +1 -0
- package/build-module/store/utils/is-template-revertable.js +22 -0
- package/build-module/store/utils/is-template-revertable.js.map +1 -0
- package/build-module/store/utils/notice-builder.js.map +1 -1
- package/build-module/utils/get-template-part-icon.js.map +1 -1
- package/build-module/utils/index.js.map +1 -1
- package/build-module/utils/index.native.js.map +1 -1
- package/build-module/utils/media-upload/index.js.map +1 -1
- package/build-module/utils/media-upload/index.native.js.map +1 -1
- package/build-module/utils/terms.js.map +1 -1
- package/build-module/utils/url.js.map +1 -1
- package/build-style/style-rtl.css +565 -49
- package/build-style/style.css +565 -49
- package/package.json +36 -36
- package/src/bindings/post-meta.js +11 -27
- package/src/components/autosave-monitor/index.js +9 -0
- package/src/components/block-settings-menu/plugin-block-settings-menu-item.js +108 -0
- package/src/components/commands/index.js +21 -2
- package/src/components/deprecated.js +157 -0
- package/src/components/document-bar/index.js +9 -15
- package/src/components/document-bar/style.scss +9 -12
- package/src/components/document-tools/index.js +16 -14
- package/src/components/document-tools/style.scss +4 -11
- package/src/components/editor-canvas/edit-template-blocks-notification.js +17 -53
- package/src/components/editor-canvas/index.js +8 -4
- package/src/components/entities-saved-states/index.js +12 -113
- package/src/components/error-boundary/style.native.scss +1 -1
- package/src/components/global-keyboard-shortcuts/index.js +25 -0
- package/src/components/global-keyboard-shortcuts/register-shortcuts.js +20 -0
- package/src/components/index.js +7 -0
- package/src/components/inserter-sidebar/index.js +7 -1
- package/src/components/keyboard-shortcut-help-modal/config.js +53 -0
- package/src/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +43 -0
- package/src/components/keyboard-shortcut-help-modal/index.js +160 -0
- package/src/components/keyboard-shortcut-help-modal/shortcut.js +67 -0
- package/src/components/keyboard-shortcut-help-modal/style.scss +61 -0
- package/src/components/list-view-sidebar/index.js +1 -0
- package/src/components/list-view-sidebar/style.scss +1 -1
- package/src/components/pattern-overrides-panel/index.js +26 -0
- package/src/components/plugin-more-menu-item/index.js +73 -0
- package/src/components/plugin-post-publish-panel/index.js +64 -0
- package/src/components/plugin-post-publish-panel/test/__snapshots__/index.js.snap +39 -0
- package/src/components/plugin-post-publish-panel/test/index.js +33 -0
- package/src/components/plugin-post-status-info/index.js +63 -0
- package/src/components/plugin-pre-publish-panel/index.js +67 -0
- package/src/components/plugin-pre-publish-panel/test/index.js +33 -0
- package/src/components/plugin-sidebar/index.js +98 -0
- package/src/components/plugin-sidebar-more-menu-item/index.js +64 -0
- package/src/components/post-actions/actions.js +862 -0
- package/src/components/post-actions/index.js +156 -0
- package/src/components/post-actions/style.scss +3 -0
- package/src/components/post-card-panel/index.js +168 -0
- package/src/components/post-card-panel/style.scss +32 -0
- package/src/components/post-excerpt/check.js +8 -0
- package/src/components/post-featured-image/style.scss +3 -2
- package/src/components/post-publish-button/index.js +23 -36
- package/src/components/post-publish-button/label.js +54 -39
- package/src/components/post-publish-button/test/index.js +15 -26
- package/src/components/post-publish-button/test/label.js +44 -21
- package/src/components/post-saved-state/index.js +13 -6
- package/src/components/post-saved-state/test/index.js +4 -0
- package/src/components/post-schedule/panel.js +22 -0
- package/src/components/post-slug/index.js +50 -68
- package/src/components/post-slug/test/index.js +29 -6
- package/src/components/post-status/index.js +310 -0
- package/src/components/post-status/style.scss +75 -0
- package/src/components/post-switch-to-draft-button/index.js +5 -0
- package/src/components/post-template/block-theme.js +31 -22
- package/src/components/post-title/index.native.js +1 -1
- package/src/components/post-trash/check.js +19 -19
- package/src/components/post-trash/index.js +1 -0
- package/src/components/post-url/index.js +131 -101
- package/src/components/post-url/panel.js +20 -7
- package/src/components/post-url/style.scss +8 -6
- package/src/components/post-visibility/index.js +1 -0
- package/src/components/preferences-modal/index.js +26 -22
- package/src/components/provider/disable-non-page-content-blocks.js +40 -20
- package/src/components/provider/index.js +17 -8
- package/src/components/provider/use-auto-switch-editor-sidebars.js +49 -0
- package/src/components/provider/use-block-editor-settings.js +70 -44
- package/src/components/provider/with-registry-provider.js +1 -0
- package/src/components/start-page-options/index.js +135 -0
- package/src/components/start-page-options/style.scss +26 -0
- package/src/components/template-areas/index.js +85 -0
- package/src/components/template-areas/style.scss +23 -0
- package/src/components/template-validation-notice/index.js +48 -50
- package/src/components/theme-support-check/index.js +9 -16
- package/src/components/theme-support-check/test/index.js +44 -43
- package/src/hooks/pattern-overrides.js +25 -14
- package/src/hooks/use-select-nearest-editable-block.js +95 -0
- package/src/private-apis.js +21 -0
- package/src/store/actions.js +37 -3
- package/src/store/constants.js +9 -0
- package/src/store/private-actions.js +377 -1
- package/src/store/private-selectors.js +101 -18
- package/src/store/reducer.js +13 -0
- package/src/store/selectors.js +51 -46
- package/src/store/utils/get-filtered-template-parts.js +69 -0
- package/src/store/utils/is-template-revertable.js +23 -0
- package/src/store/utils/test/get-filtered-template-parts.js +189 -0
- package/src/style.scss +8 -2
- package/src/components/post-publish-button/style.scss +0 -8
- package/src/components/provider/test/disable-non-page-content-blocks.js +0 -90
- package/src/components/template-validation-notice/style.scss +0 -9
package/README.md
CHANGED
|
@@ -114,6 +114,1086 @@ Example:
|
|
|
114
114
|
} )( window.wp.editor, window.React );
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
+
## API
|
|
118
|
+
|
|
119
|
+
<!-- START TOKEN(Autogenerated API docs) -->
|
|
120
|
+
|
|
121
|
+
### AlignmentToolbar
|
|
122
|
+
|
|
123
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.AlignmentToolbar` instead.
|
|
124
|
+
|
|
125
|
+
### Autocomplete
|
|
126
|
+
|
|
127
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.Autocomplete` instead.
|
|
128
|
+
|
|
129
|
+
### AutosaveMonitor
|
|
130
|
+
|
|
131
|
+
AutosaveMonitor component. Monitors the changes made to the edited post and triggers autosave if necessary.
|
|
132
|
+
|
|
133
|
+
_Usage_
|
|
134
|
+
|
|
135
|
+
```jsx
|
|
136
|
+
<AutosaveMonitor interval={ 30000 } />
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### BlockAlignmentToolbar
|
|
140
|
+
|
|
141
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockAlignmentToolbar` instead.
|
|
142
|
+
|
|
143
|
+
### BlockControls
|
|
144
|
+
|
|
145
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockControls` instead.
|
|
146
|
+
|
|
147
|
+
### BlockEdit
|
|
148
|
+
|
|
149
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockEdit` instead.
|
|
150
|
+
|
|
151
|
+
### BlockEditorKeyboardShortcuts
|
|
152
|
+
|
|
153
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockEditorKeyboardShortcuts` instead.
|
|
154
|
+
|
|
155
|
+
### BlockFormatControls
|
|
156
|
+
|
|
157
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockFormatControls` instead.
|
|
158
|
+
|
|
159
|
+
### BlockIcon
|
|
160
|
+
|
|
161
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockIcon` instead.
|
|
162
|
+
|
|
163
|
+
### BlockInspector
|
|
164
|
+
|
|
165
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockInspector` instead.
|
|
166
|
+
|
|
167
|
+
### BlockList
|
|
168
|
+
|
|
169
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockList` instead.
|
|
170
|
+
|
|
171
|
+
### BlockMover
|
|
172
|
+
|
|
173
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockMover` instead.
|
|
174
|
+
|
|
175
|
+
### BlockNavigationDropdown
|
|
176
|
+
|
|
177
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockNavigationDropdown` instead.
|
|
178
|
+
|
|
179
|
+
### BlockSelectionClearer
|
|
180
|
+
|
|
181
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockSelectionClearer` instead.
|
|
182
|
+
|
|
183
|
+
### BlockSettingsMenu
|
|
184
|
+
|
|
185
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockSettingsMenu` instead.
|
|
186
|
+
|
|
187
|
+
### BlockTitle
|
|
188
|
+
|
|
189
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockTitle` instead.
|
|
190
|
+
|
|
191
|
+
### BlockToolbar
|
|
192
|
+
|
|
193
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.BlockToolbar` instead.
|
|
194
|
+
|
|
195
|
+
### CharacterCount
|
|
196
|
+
|
|
197
|
+
Undocumented declaration.
|
|
198
|
+
|
|
199
|
+
### cleanForSlug
|
|
200
|
+
|
|
201
|
+
Performs some basic cleanup of a string for use as a post slug
|
|
202
|
+
|
|
203
|
+
This replicates some of what sanitize_title() does in WordPress core, but is only designed to approximate what the slug will be.
|
|
204
|
+
|
|
205
|
+
Converts Latin-1 Supplement and Latin Extended-A letters to basic Latin letters. Removes combining diacritical marks. Converts whitespace, periods, and forward slashes to hyphens. Removes any remaining non-word characters except hyphens and underscores. Converts remaining string to lowercase. It does not account for octets, HTML entities, or other encoded characters.
|
|
206
|
+
|
|
207
|
+
_Parameters_
|
|
208
|
+
|
|
209
|
+
- _string_ `string`: Title or slug to be processed
|
|
210
|
+
|
|
211
|
+
_Returns_
|
|
212
|
+
|
|
213
|
+
- `string`: Processed string
|
|
214
|
+
|
|
215
|
+
### ColorPalette
|
|
216
|
+
|
|
217
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.ColorPalette` instead.
|
|
218
|
+
|
|
219
|
+
### ContrastChecker
|
|
220
|
+
|
|
221
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.ContrastChecker` instead.
|
|
222
|
+
|
|
223
|
+
### CopyHandler
|
|
224
|
+
|
|
225
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.CopyHandler` instead.
|
|
226
|
+
|
|
227
|
+
### createCustomColorsHOC
|
|
228
|
+
|
|
229
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.createCustomColorsHOC` instead.
|
|
230
|
+
|
|
231
|
+
### DefaultBlockAppender
|
|
232
|
+
|
|
233
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.DefaultBlockAppender` instead.
|
|
234
|
+
|
|
235
|
+
### DocumentBar
|
|
236
|
+
|
|
237
|
+
Undocumented declaration.
|
|
238
|
+
|
|
239
|
+
### DocumentOutline
|
|
240
|
+
|
|
241
|
+
Undocumented declaration.
|
|
242
|
+
|
|
243
|
+
### DocumentOutlineCheck
|
|
244
|
+
|
|
245
|
+
Undocumented declaration.
|
|
246
|
+
|
|
247
|
+
### EditorHistoryRedo
|
|
248
|
+
|
|
249
|
+
Undocumented declaration.
|
|
250
|
+
|
|
251
|
+
### EditorHistoryUndo
|
|
252
|
+
|
|
253
|
+
Undocumented declaration.
|
|
254
|
+
|
|
255
|
+
### EditorKeyboardShortcuts
|
|
256
|
+
|
|
257
|
+
Undocumented declaration.
|
|
258
|
+
|
|
259
|
+
### EditorKeyboardShortcutsRegister
|
|
260
|
+
|
|
261
|
+
Undocumented declaration.
|
|
262
|
+
|
|
263
|
+
### EditorNotices
|
|
264
|
+
|
|
265
|
+
Undocumented declaration.
|
|
266
|
+
|
|
267
|
+
### EditorProvider
|
|
268
|
+
|
|
269
|
+
Undocumented declaration.
|
|
270
|
+
|
|
271
|
+
### EditorSnackbars
|
|
272
|
+
|
|
273
|
+
Undocumented declaration.
|
|
274
|
+
|
|
275
|
+
### EntitiesSavedStates
|
|
276
|
+
|
|
277
|
+
Undocumented declaration.
|
|
278
|
+
|
|
279
|
+
### ErrorBoundary
|
|
280
|
+
|
|
281
|
+
Undocumented declaration.
|
|
282
|
+
|
|
283
|
+
### FontSizePicker
|
|
284
|
+
|
|
285
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.FontSizePicker` instead.
|
|
286
|
+
|
|
287
|
+
### getColorClassName
|
|
288
|
+
|
|
289
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.getColorClassName` instead.
|
|
290
|
+
|
|
291
|
+
### getColorObjectByAttributeValues
|
|
292
|
+
|
|
293
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.getColorObjectByAttributeValues` instead.
|
|
294
|
+
|
|
295
|
+
### getColorObjectByColorValue
|
|
296
|
+
|
|
297
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.getColorObjectByColorValue` instead.
|
|
298
|
+
|
|
299
|
+
### getFontSize
|
|
300
|
+
|
|
301
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.getFontSize` instead.
|
|
302
|
+
|
|
303
|
+
### getFontSizeClass
|
|
304
|
+
|
|
305
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.getFontSizeClass` instead.
|
|
306
|
+
|
|
307
|
+
### getTemplatePartIcon
|
|
308
|
+
|
|
309
|
+
Helper function to retrieve the corresponding icon by name.
|
|
310
|
+
|
|
311
|
+
_Parameters_
|
|
312
|
+
|
|
313
|
+
- _iconName_ `string`: The name of the icon.
|
|
314
|
+
|
|
315
|
+
_Returns_
|
|
316
|
+
|
|
317
|
+
- `Object`: The corresponding icon.
|
|
318
|
+
|
|
319
|
+
### InnerBlocks
|
|
320
|
+
|
|
321
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.InnerBlocks` instead.
|
|
322
|
+
|
|
323
|
+
### Inserter
|
|
324
|
+
|
|
325
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.Inserter` instead.
|
|
326
|
+
|
|
327
|
+
### InspectorAdvancedControls
|
|
328
|
+
|
|
329
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.InspectorAdvancedControls` instead.
|
|
330
|
+
|
|
331
|
+
### InspectorControls
|
|
332
|
+
|
|
333
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.InspectorControls` instead.
|
|
334
|
+
|
|
335
|
+
### LocalAutosaveMonitor
|
|
336
|
+
|
|
337
|
+
Undocumented declaration.
|
|
338
|
+
|
|
339
|
+
### MediaPlaceholder
|
|
340
|
+
|
|
341
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.MediaPlaceholder` instead.
|
|
342
|
+
|
|
343
|
+
### MediaUpload
|
|
344
|
+
|
|
345
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.MediaUpload` instead.
|
|
346
|
+
|
|
347
|
+
### mediaUpload
|
|
348
|
+
|
|
349
|
+
Upload a media file when the file upload button is activated. Wrapper around mediaUpload() that injects the current post ID.
|
|
350
|
+
|
|
351
|
+
_Parameters_
|
|
352
|
+
|
|
353
|
+
- _$0_ `Object`: Parameters object passed to the function.
|
|
354
|
+
- _$0.additionalData_ `?Object`: Additional data to include in the request.
|
|
355
|
+
- _$0.allowedTypes_ `string`: Array with the types of media that can be uploaded, if unset all types are allowed.
|
|
356
|
+
- _$0.filesList_ `Array`: List of files.
|
|
357
|
+
- _$0.maxUploadFileSize_ `?number`: Maximum upload size in bytes allowed for the site.
|
|
358
|
+
- _$0.onError_ `Function`: Function called when an error happens.
|
|
359
|
+
- _$0.onFileChange_ `Function`: Function called each time a file or a temporary representation of the file is available.
|
|
360
|
+
|
|
361
|
+
### MediaUploadCheck
|
|
362
|
+
|
|
363
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.MediaUploadCheck` instead.
|
|
364
|
+
|
|
365
|
+
### MultiSelectScrollIntoView
|
|
366
|
+
|
|
367
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.MultiSelectScrollIntoView` instead.
|
|
368
|
+
|
|
369
|
+
### NavigableToolbar
|
|
370
|
+
|
|
371
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.NavigableToolbar` instead.
|
|
372
|
+
|
|
373
|
+
### ObserveTyping
|
|
374
|
+
|
|
375
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.ObserveTyping` instead.
|
|
376
|
+
|
|
377
|
+
### PageAttributesCheck
|
|
378
|
+
|
|
379
|
+
Undocumented declaration.
|
|
380
|
+
|
|
381
|
+
### PageAttributesOrder
|
|
382
|
+
|
|
383
|
+
Undocumented declaration.
|
|
384
|
+
|
|
385
|
+
### PageAttributesPanel
|
|
386
|
+
|
|
387
|
+
Undocumented declaration.
|
|
388
|
+
|
|
389
|
+
### PageAttributesParent
|
|
390
|
+
|
|
391
|
+
Undocumented declaration.
|
|
392
|
+
|
|
393
|
+
### PageTemplate
|
|
394
|
+
|
|
395
|
+
Undocumented declaration.
|
|
396
|
+
|
|
397
|
+
### PanelColorSettings
|
|
398
|
+
|
|
399
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.PanelColorSettings` instead.
|
|
400
|
+
|
|
401
|
+
### PlainText
|
|
402
|
+
|
|
403
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.PlainText` instead.
|
|
404
|
+
|
|
405
|
+
### PluginBlockSettingsMenuItem
|
|
406
|
+
|
|
407
|
+
Renders a new item in the block settings menu.
|
|
408
|
+
|
|
409
|
+
_Usage_
|
|
410
|
+
|
|
411
|
+
```js
|
|
412
|
+
// Using ES5 syntax
|
|
413
|
+
var __ = wp.i18n.__;
|
|
414
|
+
var PluginBlockSettingsMenuItem = wp.editor.PluginBlockSettingsMenuItem;
|
|
415
|
+
|
|
416
|
+
function doOnClick() {
|
|
417
|
+
// To be called when the user clicks the menu item.
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
function MyPluginBlockSettingsMenuItem() {
|
|
421
|
+
return React.createElement( PluginBlockSettingsMenuItem, {
|
|
422
|
+
allowedBlocks: [ 'core/paragraph' ],
|
|
423
|
+
icon: 'dashicon-name',
|
|
424
|
+
label: __( 'Menu item text' ),
|
|
425
|
+
onClick: doOnClick,
|
|
426
|
+
} );
|
|
427
|
+
}
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
```jsx
|
|
431
|
+
// Using ESNext syntax
|
|
432
|
+
import { __ } from '@wordpress/i18n';
|
|
433
|
+
import { PluginBlockSettingsMenuItem } from '@wordpress/editor';
|
|
434
|
+
|
|
435
|
+
const doOnClick = () => {
|
|
436
|
+
// To be called when the user clicks the menu item.
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
const MyPluginBlockSettingsMenuItem = () => (
|
|
440
|
+
<PluginBlockSettingsMenuItem
|
|
441
|
+
allowedBlocks={ [ 'core/paragraph' ] }
|
|
442
|
+
icon="dashicon-name"
|
|
443
|
+
label={ __( 'Menu item text' ) }
|
|
444
|
+
onClick={ doOnClick }
|
|
445
|
+
/>
|
|
446
|
+
);
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
_Parameters_
|
|
450
|
+
|
|
451
|
+
- _props_ `Object`: Component props.
|
|
452
|
+
- _props.allowedBlocks_ `[Array]`: An array containing a list of block names for which the item should be shown. If not present, it'll be rendered for any block. If multiple blocks are selected, it'll be shown if and only if all of them are in the allowed list.
|
|
453
|
+
- _props.icon_ `[WPBlockTypeIconRender]`: The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element.
|
|
454
|
+
- _props.label_ `string`: The menu item text.
|
|
455
|
+
- _props.onClick_ `Function`: Callback function to be executed when the user click the menu item.
|
|
456
|
+
- _props.small_ `[boolean]`: Whether to render the label or not.
|
|
457
|
+
- _props.role_ `[string]`: The ARIA role for the menu item.
|
|
458
|
+
|
|
459
|
+
_Returns_
|
|
460
|
+
|
|
461
|
+
- `Component`: The component to be rendered.
|
|
462
|
+
|
|
463
|
+
### PluginDocumentSettingPanel
|
|
464
|
+
|
|
465
|
+
Renders items below the Status & Availability panel in the Document Sidebar.
|
|
466
|
+
|
|
467
|
+
_Usage_
|
|
468
|
+
|
|
469
|
+
```js
|
|
470
|
+
// Using ES5 syntax
|
|
471
|
+
var el = React.createElement;
|
|
472
|
+
var __ = wp.i18n.__;
|
|
473
|
+
var registerPlugin = wp.plugins.registerPlugin;
|
|
474
|
+
var PluginDocumentSettingPanel = wp.editor.PluginDocumentSettingPanel;
|
|
475
|
+
|
|
476
|
+
function MyDocumentSettingPlugin() {
|
|
477
|
+
return el(
|
|
478
|
+
PluginDocumentSettingPanel,
|
|
479
|
+
{
|
|
480
|
+
className: 'my-document-setting-plugin',
|
|
481
|
+
title: 'My Panel',
|
|
482
|
+
name: 'my-panel',
|
|
483
|
+
},
|
|
484
|
+
__( 'My Document Setting Panel' )
|
|
485
|
+
);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
registerPlugin( 'my-document-setting-plugin', {
|
|
489
|
+
render: MyDocumentSettingPlugin,
|
|
490
|
+
} );
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
```jsx
|
|
494
|
+
// Using ESNext syntax
|
|
495
|
+
import { registerPlugin } from '@wordpress/plugins';
|
|
496
|
+
import { PluginDocumentSettingPanel } from '@wordpress/editor';
|
|
497
|
+
|
|
498
|
+
const MyDocumentSettingTest = () => (
|
|
499
|
+
<PluginDocumentSettingPanel
|
|
500
|
+
className="my-document-setting-plugin"
|
|
501
|
+
title="My Panel"
|
|
502
|
+
name="my-panel"
|
|
503
|
+
>
|
|
504
|
+
<p>My Document Setting Panel</p>
|
|
505
|
+
</PluginDocumentSettingPanel>
|
|
506
|
+
);
|
|
507
|
+
|
|
508
|
+
registerPlugin( 'document-setting-test', { render: MyDocumentSettingTest } );
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
_Parameters_
|
|
512
|
+
|
|
513
|
+
- _props_ `Object`: Component properties.
|
|
514
|
+
- _props.name_ `string`: Required. A machine-friendly name for the panel.
|
|
515
|
+
- _props.className_ `[string]`: An optional class name added to the row.
|
|
516
|
+
- _props.title_ `[string]`: The title of the panel
|
|
517
|
+
- _props.icon_ `[WPBlockTypeIconRender]`: The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
|
|
518
|
+
- _props.children_ `Element`: Children to be rendered
|
|
519
|
+
|
|
520
|
+
_Returns_
|
|
521
|
+
|
|
522
|
+
- `Component`: The component to be rendered.
|
|
523
|
+
|
|
524
|
+
### PluginMoreMenuItem
|
|
525
|
+
|
|
526
|
+
Renders a menu item in `Plugins` group in `More Menu` drop down, and can be used to as a button or link depending on the props provided. The text within the component appears as the menu item label.
|
|
527
|
+
|
|
528
|
+
_Usage_
|
|
529
|
+
|
|
530
|
+
```js
|
|
531
|
+
// Using ES5 syntax
|
|
532
|
+
var __ = wp.i18n.__;
|
|
533
|
+
var PluginMoreMenuItem = wp.editor.PluginMoreMenuItem;
|
|
534
|
+
var moreIcon = wp.element.createElement( 'svg' ); //... svg element.
|
|
535
|
+
|
|
536
|
+
function onButtonClick() {
|
|
537
|
+
alert( 'Button clicked.' );
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
function MyButtonMoreMenuItem() {
|
|
541
|
+
return wp.element.createElement(
|
|
542
|
+
PluginMoreMenuItem,
|
|
543
|
+
{
|
|
544
|
+
icon: moreIcon,
|
|
545
|
+
onClick: onButtonClick,
|
|
546
|
+
},
|
|
547
|
+
__( 'My button title' )
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
```jsx
|
|
553
|
+
// Using ESNext syntax
|
|
554
|
+
import { __ } from '@wordpress/i18n';
|
|
555
|
+
import { PluginMoreMenuItem } from '@wordpress/editor';
|
|
556
|
+
import { more } from '@wordpress/icons';
|
|
557
|
+
|
|
558
|
+
function onButtonClick() {
|
|
559
|
+
alert( 'Button clicked.' );
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
const MyButtonMoreMenuItem = () => (
|
|
563
|
+
<PluginMoreMenuItem icon={ more } onClick={ onButtonClick }>
|
|
564
|
+
{ __( 'My button title' ) }
|
|
565
|
+
</PluginMoreMenuItem>
|
|
566
|
+
);
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
_Parameters_
|
|
570
|
+
|
|
571
|
+
- _props_ `Object`: Component properties.
|
|
572
|
+
- _props.href_ `[string]`: When `href` is provided then the menu item is represented as an anchor rather than button. It corresponds to the `href` attribute of the anchor.
|
|
573
|
+
- _props.icon_ `[WPBlockTypeIconRender]`: The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
|
|
574
|
+
- _props.onClick_ `[Function]`: The callback function to be executed when the user clicks the menu item.
|
|
575
|
+
- _props.other_ `[...*]`: Any additional props are passed through to the underlying [Button](/packages/components/src/button/README.md) component.
|
|
576
|
+
|
|
577
|
+
_Returns_
|
|
578
|
+
|
|
579
|
+
- `Component`: The component to be rendered.
|
|
580
|
+
|
|
581
|
+
### PluginPostPublishPanel
|
|
582
|
+
|
|
583
|
+
Renders provided content to the post-publish panel in the publish flow (side panel that opens after a user publishes the post).
|
|
584
|
+
|
|
585
|
+
_Usage_
|
|
586
|
+
|
|
587
|
+
```jsx
|
|
588
|
+
// Using ESNext syntax
|
|
589
|
+
import { __ } from '@wordpress/i18n';
|
|
590
|
+
import { PluginPostPublishPanel } from '@wordpress/edit-post';
|
|
591
|
+
|
|
592
|
+
const MyPluginPostPublishPanel = () => (
|
|
593
|
+
<PluginPostPublishPanel
|
|
594
|
+
className="my-plugin-post-publish-panel"
|
|
595
|
+
title={ __( 'My panel title' ) }
|
|
596
|
+
initialOpen={ true }
|
|
597
|
+
>
|
|
598
|
+
{ __( 'My panel content' ) }
|
|
599
|
+
</PluginPostPublishPanel>
|
|
600
|
+
);
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
_Parameters_
|
|
604
|
+
|
|
605
|
+
- _props_ `Object`: Component properties.
|
|
606
|
+
- _props.className_ `[string]`: An optional class name added to the panel.
|
|
607
|
+
- _props.title_ `[string]`: Title displayed at the top of the panel.
|
|
608
|
+
- _props.initialOpen_ `[boolean]`: Whether to have the panel initially opened. When no title is provided it is always opened.
|
|
609
|
+
- _props.icon_ `[WPBlockTypeIconRender]`: The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
|
|
610
|
+
- _props.children_ `Element`: Children to be rendered
|
|
611
|
+
|
|
612
|
+
_Returns_
|
|
613
|
+
|
|
614
|
+
- `Component`: The component to be rendered.
|
|
615
|
+
|
|
616
|
+
### PluginPostStatusInfo
|
|
617
|
+
|
|
618
|
+
Renders a row in the Summary panel of the Document sidebar. It should be noted that this is named and implemented around the function it serves and not its location, which may change in future iterations.
|
|
619
|
+
|
|
620
|
+
_Usage_
|
|
621
|
+
|
|
622
|
+
```js
|
|
623
|
+
// Using ES5 syntax
|
|
624
|
+
var __ = wp.i18n.__;
|
|
625
|
+
var PluginPostStatusInfo = wp.editor.PluginPostStatusInfo;
|
|
626
|
+
|
|
627
|
+
function MyPluginPostStatusInfo() {
|
|
628
|
+
return React.createElement(
|
|
629
|
+
PluginPostStatusInfo,
|
|
630
|
+
{
|
|
631
|
+
className: 'my-plugin-post-status-info',
|
|
632
|
+
},
|
|
633
|
+
__( 'My post status info' )
|
|
634
|
+
);
|
|
635
|
+
}
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
```jsx
|
|
639
|
+
// Using ESNext syntax
|
|
640
|
+
import { __ } from '@wordpress/i18n';
|
|
641
|
+
import { PluginPostStatusInfo } from '@wordpress/editor';
|
|
642
|
+
|
|
643
|
+
const MyPluginPostStatusInfo = () => (
|
|
644
|
+
<PluginPostStatusInfo className="my-plugin-post-status-info">
|
|
645
|
+
{ __( 'My post status info' ) }
|
|
646
|
+
</PluginPostStatusInfo>
|
|
647
|
+
);
|
|
648
|
+
```
|
|
649
|
+
|
|
650
|
+
_Parameters_
|
|
651
|
+
|
|
652
|
+
- _props_ `Object`: Component properties.
|
|
653
|
+
- _props.className_ `[string]`: An optional class name added to the row.
|
|
654
|
+
- _props.children_ `Element`: Children to be rendered.
|
|
655
|
+
|
|
656
|
+
_Returns_
|
|
657
|
+
|
|
658
|
+
- `Component`: The component to be rendered.
|
|
659
|
+
|
|
660
|
+
### PluginPrePublishPanel
|
|
661
|
+
|
|
662
|
+
Renders provided content to the pre-publish side panel in the publish flow (side panel that opens when a user first pushes "Publish" from the main editor).
|
|
663
|
+
|
|
664
|
+
_Usage_
|
|
665
|
+
|
|
666
|
+
```jsx
|
|
667
|
+
// Using ESNext syntax
|
|
668
|
+
import { __ } from '@wordpress/i18n';
|
|
669
|
+
import { PluginPrePublishPanel } from '@wordpress/edit-post';
|
|
670
|
+
|
|
671
|
+
const MyPluginPrePublishPanel = () => (
|
|
672
|
+
<PluginPrePublishPanel
|
|
673
|
+
className="my-plugin-pre-publish-panel"
|
|
674
|
+
title={ __( 'My panel title' ) }
|
|
675
|
+
initialOpen={ true }
|
|
676
|
+
>
|
|
677
|
+
{ __( 'My panel content' ) }
|
|
678
|
+
</PluginPrePublishPanel>
|
|
679
|
+
);
|
|
680
|
+
```
|
|
681
|
+
|
|
682
|
+
_Parameters_
|
|
683
|
+
|
|
684
|
+
- _props_ `Object`: Component props.
|
|
685
|
+
- _props.className_ `[string]`: An optional class name added to the panel.
|
|
686
|
+
- _props.title_ `[string]`: Title displayed at the top of the panel.
|
|
687
|
+
- _props.initialOpen_ `[boolean]`: Whether to have the panel initially opened. When no title is provided it is always opened.
|
|
688
|
+
- _props.icon_ `[WPBlockTypeIconRender]`: The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
|
|
689
|
+
- _props.children_ `Element`: Children to be rendered
|
|
690
|
+
|
|
691
|
+
_Returns_
|
|
692
|
+
|
|
693
|
+
- `Component`: The component to be rendered.
|
|
694
|
+
|
|
695
|
+
### PluginSidebar
|
|
696
|
+
|
|
697
|
+
Renders a sidebar when activated. The contents within the `PluginSidebar` will appear as content within the sidebar. It also automatically renders a corresponding `PluginSidebarMenuItem` component when `isPinnable` flag is set to `true`. If you wish to display the sidebar, you can with use the `PluginSidebarMoreMenuItem` component or the `wp.data.dispatch` API:
|
|
698
|
+
|
|
699
|
+
```js
|
|
700
|
+
wp.data
|
|
701
|
+
.dispatch( 'core/edit-post' )
|
|
702
|
+
.openGeneralSidebar( 'plugin-name/sidebar-name' );
|
|
703
|
+
```
|
|
704
|
+
|
|
705
|
+
_Related_
|
|
706
|
+
|
|
707
|
+
- PluginSidebarMoreMenuItem
|
|
708
|
+
|
|
709
|
+
_Usage_
|
|
710
|
+
|
|
711
|
+
```js
|
|
712
|
+
// Using ES5 syntax
|
|
713
|
+
var __ = wp.i18n.__;
|
|
714
|
+
var el = React.createElement;
|
|
715
|
+
var PanelBody = wp.components.PanelBody;
|
|
716
|
+
var PluginSidebar = wp.editor.PluginSidebar;
|
|
717
|
+
var moreIcon = React.createElement( 'svg' ); //... svg element.
|
|
718
|
+
|
|
719
|
+
function MyPluginSidebar() {
|
|
720
|
+
return el(
|
|
721
|
+
PluginSidebar,
|
|
722
|
+
{
|
|
723
|
+
name: 'my-sidebar',
|
|
724
|
+
title: 'My sidebar title',
|
|
725
|
+
icon: moreIcon,
|
|
726
|
+
},
|
|
727
|
+
el( PanelBody, {}, __( 'My sidebar content' ) )
|
|
728
|
+
);
|
|
729
|
+
}
|
|
730
|
+
```
|
|
731
|
+
|
|
732
|
+
```jsx
|
|
733
|
+
// Using ESNext syntax
|
|
734
|
+
import { __ } from '@wordpress/i18n';
|
|
735
|
+
import { PanelBody } from '@wordpress/components';
|
|
736
|
+
import { PluginSidebar } from '@wordpress/edit-post';
|
|
737
|
+
import { more } from '@wordpress/icons';
|
|
738
|
+
|
|
739
|
+
const MyPluginSidebar = () => (
|
|
740
|
+
<PluginSidebar name="my-sidebar" title="My sidebar title" icon={ more }>
|
|
741
|
+
<PanelBody>{ __( 'My sidebar content' ) }</PanelBody>
|
|
742
|
+
</PluginSidebar>
|
|
743
|
+
);
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
_Parameters_
|
|
747
|
+
|
|
748
|
+
- _props_ `Object`: Element props.
|
|
749
|
+
- _props.name_ `string`: A string identifying the sidebar. Must be unique for every sidebar registered within the scope of your plugin.
|
|
750
|
+
- _props.className_ `[string]`: An optional class name added to the sidebar body.
|
|
751
|
+
- _props.title_ `string`: Title displayed at the top of the sidebar.
|
|
752
|
+
- _props.isPinnable_ `[boolean]`: Whether to allow to pin sidebar to the toolbar. When set to `true` it also automatically renders a corresponding menu item.
|
|
753
|
+
- _props.icon_ `[WPBlockTypeIconRender]`: The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered when the sidebar is pinned to toolbar.
|
|
754
|
+
|
|
755
|
+
### PluginSidebarMoreMenuItem
|
|
756
|
+
|
|
757
|
+
Renders a menu item in `Plugins` group in `More Menu` drop down, and can be used to activate the corresponding `PluginSidebar` component. The text within the component appears as the menu item label.
|
|
758
|
+
|
|
759
|
+
_Usage_
|
|
760
|
+
|
|
761
|
+
```js
|
|
762
|
+
// Using ES5 syntax
|
|
763
|
+
var __ = wp.i18n.__;
|
|
764
|
+
var PluginSidebarMoreMenuItem = wp.editor.PluginSidebarMoreMenuItem;
|
|
765
|
+
var moreIcon = React.createElement( 'svg' ); //... svg element.
|
|
766
|
+
|
|
767
|
+
function MySidebarMoreMenuItem() {
|
|
768
|
+
return React.createElement(
|
|
769
|
+
PluginSidebarMoreMenuItem,
|
|
770
|
+
{
|
|
771
|
+
target: 'my-sidebar',
|
|
772
|
+
icon: moreIcon,
|
|
773
|
+
},
|
|
774
|
+
__( 'My sidebar title' )
|
|
775
|
+
);
|
|
776
|
+
}
|
|
777
|
+
```
|
|
778
|
+
|
|
779
|
+
```jsx
|
|
780
|
+
// Using ESNext syntax
|
|
781
|
+
import { __ } from '@wordpress/i18n';
|
|
782
|
+
import { PluginSidebarMoreMenuItem } from '@wordpress/editor';
|
|
783
|
+
import { more } from '@wordpress/icons';
|
|
784
|
+
|
|
785
|
+
const MySidebarMoreMenuItem = () => (
|
|
786
|
+
<PluginSidebarMoreMenuItem target="my-sidebar" icon={ more }>
|
|
787
|
+
{ __( 'My sidebar title' ) }
|
|
788
|
+
</PluginSidebarMoreMenuItem>
|
|
789
|
+
);
|
|
790
|
+
```
|
|
791
|
+
|
|
792
|
+
_Parameters_
|
|
793
|
+
|
|
794
|
+
- _props_ `Object`: Component props.
|
|
795
|
+
- _props.target_ `string`: A string identifying the target sidebar you wish to be activated by this menu item. Must be the same as the `name` prop you have given to that sidebar.
|
|
796
|
+
- _props.icon_ `[WPBlockTypeIconRender]`: The [Dashicon](https://developer.wordpress.org/resource/dashicons/) icon slug string, or an SVG WP element, to be rendered to the left of the menu item label.
|
|
797
|
+
|
|
798
|
+
_Returns_
|
|
799
|
+
|
|
800
|
+
- `Component`: The component to be rendered.
|
|
801
|
+
|
|
802
|
+
### PostAuthor
|
|
803
|
+
|
|
804
|
+
Undocumented declaration.
|
|
805
|
+
|
|
806
|
+
### PostAuthorCheck
|
|
807
|
+
|
|
808
|
+
Undocumented declaration.
|
|
809
|
+
|
|
810
|
+
### PostAuthorPanel
|
|
811
|
+
|
|
812
|
+
Undocumented declaration.
|
|
813
|
+
|
|
814
|
+
### PostComments
|
|
815
|
+
|
|
816
|
+
Undocumented declaration.
|
|
817
|
+
|
|
818
|
+
### PostDiscussionPanel
|
|
819
|
+
|
|
820
|
+
Undocumented declaration.
|
|
821
|
+
|
|
822
|
+
### PostExcerpt
|
|
823
|
+
|
|
824
|
+
Undocumented declaration.
|
|
825
|
+
|
|
826
|
+
### PostExcerptCheck
|
|
827
|
+
|
|
828
|
+
Component for checking if the post type supports the excerpt field.
|
|
829
|
+
|
|
830
|
+
_Parameters_
|
|
831
|
+
|
|
832
|
+
- _props_ `Object`: Props.
|
|
833
|
+
- _props.children_ `Element`: Children to be rendered.
|
|
834
|
+
|
|
835
|
+
_Returns_
|
|
836
|
+
|
|
837
|
+
- `Component`: The component to be rendered.
|
|
838
|
+
|
|
839
|
+
### PostExcerptPanel
|
|
840
|
+
|
|
841
|
+
Undocumented declaration.
|
|
842
|
+
|
|
843
|
+
### PostFeaturedImage
|
|
844
|
+
|
|
845
|
+
Undocumented declaration.
|
|
846
|
+
|
|
847
|
+
### PostFeaturedImageCheck
|
|
848
|
+
|
|
849
|
+
Undocumented declaration.
|
|
850
|
+
|
|
851
|
+
### PostFeaturedImagePanel
|
|
852
|
+
|
|
853
|
+
Undocumented declaration.
|
|
854
|
+
|
|
855
|
+
### PostFormat
|
|
856
|
+
|
|
857
|
+
Undocumented declaration.
|
|
858
|
+
|
|
859
|
+
### PostFormatCheck
|
|
860
|
+
|
|
861
|
+
Undocumented declaration.
|
|
862
|
+
|
|
863
|
+
### PostLastRevision
|
|
864
|
+
|
|
865
|
+
Undocumented declaration.
|
|
866
|
+
|
|
867
|
+
### PostLastRevisionCheck
|
|
868
|
+
|
|
869
|
+
Undocumented declaration.
|
|
870
|
+
|
|
871
|
+
### PostLastRevisionPanel
|
|
872
|
+
|
|
873
|
+
Undocumented declaration.
|
|
874
|
+
|
|
875
|
+
### PostLockedModal
|
|
876
|
+
|
|
877
|
+
Undocumented declaration.
|
|
878
|
+
|
|
879
|
+
### PostPendingStatus
|
|
880
|
+
|
|
881
|
+
Undocumented declaration.
|
|
882
|
+
|
|
883
|
+
### PostPendingStatusCheck
|
|
884
|
+
|
|
885
|
+
Undocumented declaration.
|
|
886
|
+
|
|
887
|
+
### PostPingbacks
|
|
888
|
+
|
|
889
|
+
Undocumented declaration.
|
|
890
|
+
|
|
891
|
+
### PostPreviewButton
|
|
892
|
+
|
|
893
|
+
Undocumented declaration.
|
|
894
|
+
|
|
895
|
+
### PostPublishButton
|
|
896
|
+
|
|
897
|
+
Undocumented declaration.
|
|
898
|
+
|
|
899
|
+
### PostPublishButtonLabel
|
|
900
|
+
|
|
901
|
+
Undocumented declaration.
|
|
902
|
+
|
|
903
|
+
### PostPublishPanel
|
|
904
|
+
|
|
905
|
+
Undocumented declaration.
|
|
906
|
+
|
|
907
|
+
### PostSavedState
|
|
908
|
+
|
|
909
|
+
Component showing whether the post is saved or not and providing save buttons.
|
|
910
|
+
|
|
911
|
+
_Parameters_
|
|
912
|
+
|
|
913
|
+
- _props_ `Object`: Component props.
|
|
914
|
+
- _props.forceIsDirty_ `?boolean`: Whether to force the post to be marked as dirty.
|
|
915
|
+
|
|
916
|
+
_Returns_
|
|
917
|
+
|
|
918
|
+
- `import('react').ComponentType`: The component.
|
|
919
|
+
|
|
920
|
+
### PostSchedule
|
|
921
|
+
|
|
922
|
+
Undocumented declaration.
|
|
923
|
+
|
|
924
|
+
### PostScheduleCheck
|
|
925
|
+
|
|
926
|
+
Undocumented declaration.
|
|
927
|
+
|
|
928
|
+
### PostScheduleLabel
|
|
929
|
+
|
|
930
|
+
Undocumented declaration.
|
|
931
|
+
|
|
932
|
+
### PostSchedulePanel
|
|
933
|
+
|
|
934
|
+
Undocumented declaration.
|
|
935
|
+
|
|
936
|
+
### PostSlug
|
|
937
|
+
|
|
938
|
+
Undocumented declaration.
|
|
939
|
+
|
|
940
|
+
### PostSlugCheck
|
|
941
|
+
|
|
942
|
+
Undocumented declaration.
|
|
943
|
+
|
|
944
|
+
### PostSticky
|
|
945
|
+
|
|
946
|
+
Undocumented declaration.
|
|
947
|
+
|
|
948
|
+
### PostStickyCheck
|
|
949
|
+
|
|
950
|
+
Undocumented declaration.
|
|
951
|
+
|
|
952
|
+
### PostSwitchToDraftButton
|
|
953
|
+
|
|
954
|
+
Undocumented declaration.
|
|
955
|
+
|
|
956
|
+
### PostSyncStatus
|
|
957
|
+
|
|
958
|
+
Undocumented declaration.
|
|
959
|
+
|
|
960
|
+
### PostTaxonomies
|
|
961
|
+
|
|
962
|
+
Undocumented declaration.
|
|
963
|
+
|
|
964
|
+
### PostTaxonomiesCheck
|
|
965
|
+
|
|
966
|
+
Undocumented declaration.
|
|
967
|
+
|
|
968
|
+
### PostTaxonomiesFlatTermSelector
|
|
969
|
+
|
|
970
|
+
Undocumented declaration.
|
|
971
|
+
|
|
972
|
+
### PostTaxonomiesHierarchicalTermSelector
|
|
973
|
+
|
|
974
|
+
Hierarchical term selector.
|
|
975
|
+
|
|
976
|
+
_Parameters_
|
|
977
|
+
|
|
978
|
+
- _props_ `Object`: Component props.
|
|
979
|
+
- _props.slug_ `string`: Taxonomy slug.
|
|
980
|
+
|
|
981
|
+
_Returns_
|
|
982
|
+
|
|
983
|
+
- `Element`: Hierarchical term selector component.
|
|
984
|
+
|
|
985
|
+
### PostTaxonomiesPanel
|
|
986
|
+
|
|
987
|
+
Undocumented declaration.
|
|
988
|
+
|
|
989
|
+
### PostTemplatePanel
|
|
990
|
+
|
|
991
|
+
Undocumented declaration.
|
|
992
|
+
|
|
993
|
+
### PostTextEditor
|
|
994
|
+
|
|
995
|
+
Undocumented declaration.
|
|
996
|
+
|
|
997
|
+
### PostTitle
|
|
998
|
+
|
|
999
|
+
Undocumented declaration.
|
|
1000
|
+
|
|
1001
|
+
### PostTitleRaw
|
|
1002
|
+
|
|
1003
|
+
Undocumented declaration.
|
|
1004
|
+
|
|
1005
|
+
### PostTrash
|
|
1006
|
+
|
|
1007
|
+
Undocumented declaration.
|
|
1008
|
+
|
|
1009
|
+
### PostTrashCheck
|
|
1010
|
+
|
|
1011
|
+
Undocumented declaration.
|
|
1012
|
+
|
|
1013
|
+
### PostTypeSupportCheck
|
|
1014
|
+
|
|
1015
|
+
A component which renders its own children only if the current editor post type supports one of the given `supportKeys` prop.
|
|
1016
|
+
|
|
1017
|
+
_Parameters_
|
|
1018
|
+
|
|
1019
|
+
- _props_ `Object`: Props.
|
|
1020
|
+
- _props.children_ `Element`: Children to be rendered if post type supports.
|
|
1021
|
+
- _props.supportKeys_ `(string|string[])`: String or string array of keys to test.
|
|
1022
|
+
|
|
1023
|
+
_Returns_
|
|
1024
|
+
|
|
1025
|
+
- `Component`: The component to be rendered.
|
|
1026
|
+
|
|
1027
|
+
### PostURL
|
|
1028
|
+
|
|
1029
|
+
Undocumented declaration.
|
|
1030
|
+
|
|
1031
|
+
### PostURLCheck
|
|
1032
|
+
|
|
1033
|
+
Undocumented declaration.
|
|
1034
|
+
|
|
1035
|
+
### PostURLLabel
|
|
1036
|
+
|
|
1037
|
+
Undocumented declaration.
|
|
1038
|
+
|
|
1039
|
+
### PostURLPanel
|
|
1040
|
+
|
|
1041
|
+
Undocumented declaration.
|
|
1042
|
+
|
|
1043
|
+
### PostVisibility
|
|
1044
|
+
|
|
1045
|
+
Undocumented declaration.
|
|
1046
|
+
|
|
1047
|
+
### PostVisibilityCheck
|
|
1048
|
+
|
|
1049
|
+
Undocumented declaration.
|
|
1050
|
+
|
|
1051
|
+
### PostVisibilityLabel
|
|
1052
|
+
|
|
1053
|
+
Undocumented declaration.
|
|
1054
|
+
|
|
1055
|
+
### privateApis
|
|
1056
|
+
|
|
1057
|
+
Undocumented declaration.
|
|
1058
|
+
|
|
1059
|
+
### RichText
|
|
1060
|
+
|
|
1061
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.RichText` instead.
|
|
1062
|
+
|
|
1063
|
+
### RichTextShortcut
|
|
1064
|
+
|
|
1065
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.RichTextShortcut` instead.
|
|
1066
|
+
|
|
1067
|
+
### RichTextToolbarButton
|
|
1068
|
+
|
|
1069
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.RichTextToolbarButton` instead.
|
|
1070
|
+
|
|
1071
|
+
### ServerSideRender
|
|
1072
|
+
|
|
1073
|
+
Undocumented declaration.
|
|
1074
|
+
|
|
1075
|
+
### SkipToSelectedBlock
|
|
1076
|
+
|
|
1077
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.SkipToSelectedBlock` instead.
|
|
1078
|
+
|
|
1079
|
+
### store
|
|
1080
|
+
|
|
1081
|
+
Store definition for the editor namespace.
|
|
1082
|
+
|
|
1083
|
+
_Related_
|
|
1084
|
+
|
|
1085
|
+
- <https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#createReduxStore>
|
|
1086
|
+
|
|
1087
|
+
_Type_
|
|
1088
|
+
|
|
1089
|
+
- `Object`
|
|
1090
|
+
|
|
1091
|
+
### storeConfig
|
|
1092
|
+
|
|
1093
|
+
Post editor data store configuration.
|
|
1094
|
+
|
|
1095
|
+
_Related_
|
|
1096
|
+
|
|
1097
|
+
- <https://github.com/WordPress/gutenberg/blob/HEAD/packages/data/README.md#registerStore>
|
|
1098
|
+
|
|
1099
|
+
_Type_
|
|
1100
|
+
|
|
1101
|
+
- `Object`
|
|
1102
|
+
|
|
1103
|
+
### TableOfContents
|
|
1104
|
+
|
|
1105
|
+
Undocumented declaration.
|
|
1106
|
+
|
|
1107
|
+
### TextEditorGlobalKeyboardShortcuts
|
|
1108
|
+
|
|
1109
|
+
Undocumented declaration.
|
|
1110
|
+
|
|
1111
|
+
### ThemeSupportCheck
|
|
1112
|
+
|
|
1113
|
+
Undocumented declaration.
|
|
1114
|
+
|
|
1115
|
+
### TimeToRead
|
|
1116
|
+
|
|
1117
|
+
Undocumented declaration.
|
|
1118
|
+
|
|
1119
|
+
### transformStyles
|
|
1120
|
+
|
|
1121
|
+
Undocumented declaration.
|
|
1122
|
+
|
|
1123
|
+
### UnsavedChangesWarning
|
|
1124
|
+
|
|
1125
|
+
Warns the user if there are unsaved changes before leaving the editor. Compatible with Post Editor and Site Editor.
|
|
1126
|
+
|
|
1127
|
+
_Returns_
|
|
1128
|
+
|
|
1129
|
+
- `Component`: The component.
|
|
1130
|
+
|
|
1131
|
+
### URLInput
|
|
1132
|
+
|
|
1133
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.URLInput` instead.
|
|
1134
|
+
|
|
1135
|
+
### URLInputButton
|
|
1136
|
+
|
|
1137
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.URLInputButton` instead.
|
|
1138
|
+
|
|
1139
|
+
### URLPopover
|
|
1140
|
+
|
|
1141
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.URLPopover` instead.
|
|
1142
|
+
|
|
1143
|
+
### useEntitiesSavedStatesIsDirty
|
|
1144
|
+
|
|
1145
|
+
Undocumented declaration.
|
|
1146
|
+
|
|
1147
|
+
### usePostScheduleLabel
|
|
1148
|
+
|
|
1149
|
+
Undocumented declaration.
|
|
1150
|
+
|
|
1151
|
+
### usePostURLLabel
|
|
1152
|
+
|
|
1153
|
+
Undocumented declaration.
|
|
1154
|
+
|
|
1155
|
+
### usePostVisibilityLabel
|
|
1156
|
+
|
|
1157
|
+
Undocumented declaration.
|
|
1158
|
+
|
|
1159
|
+
### userAutocompleter
|
|
1160
|
+
|
|
1161
|
+
A user mentions completer.
|
|
1162
|
+
|
|
1163
|
+
_Type_
|
|
1164
|
+
|
|
1165
|
+
- `WPCompleter`
|
|
1166
|
+
|
|
1167
|
+
### VisualEditorGlobalKeyboardShortcuts
|
|
1168
|
+
|
|
1169
|
+
Undocumented declaration.
|
|
1170
|
+
|
|
1171
|
+
### Warning
|
|
1172
|
+
|
|
1173
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.Warning` instead.
|
|
1174
|
+
|
|
1175
|
+
### withColorContext
|
|
1176
|
+
|
|
1177
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.createCustomColorsHOC` instead.
|
|
1178
|
+
|
|
1179
|
+
### withColors
|
|
1180
|
+
|
|
1181
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.withColors` instead.
|
|
1182
|
+
|
|
1183
|
+
### withFontSizes
|
|
1184
|
+
|
|
1185
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.withFontSizes` instead.
|
|
1186
|
+
|
|
1187
|
+
### WordCount
|
|
1188
|
+
|
|
1189
|
+
Undocumented declaration.
|
|
1190
|
+
|
|
1191
|
+
### WritingFlow
|
|
1192
|
+
|
|
1193
|
+
> **Deprecated** since 5.3, use `wp.blockEditor.WritingFlow` instead.
|
|
1194
|
+
|
|
1195
|
+
<!-- END TOKEN(Autogenerated API docs) -->
|
|
1196
|
+
|
|
117
1197
|
## Contributing to this package
|
|
118
1198
|
|
|
119
1199
|
This is an individual package that's part of the Gutenberg project. The project is organized as a monorepo. It's made up of multiple self-contained software packages, each with a specific purpose. The packages in this monorepo are published to [npm](https://www.npmjs.com/) and used by [WordPress](https://make.wordpress.org/core/) as well as other software projects.
|