@wordpress/editor 14.12.0 → 14.13.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/README.md +120 -99
- package/build/components/block-settings-menu/plugin-block-settings-menu-item.js +1 -1
- package/build/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
- package/build/components/collab-sidebar/add-comment.js +17 -65
- package/build/components/collab-sidebar/add-comment.js.map +1 -1
- package/build/components/collab-sidebar/comment-author-info.js +76 -0
- package/build/components/collab-sidebar/comment-author-info.js.map +1 -0
- package/build/components/collab-sidebar/comment-button-toolbar.js +2 -2
- package/build/components/collab-sidebar/comment-button-toolbar.js.map +1 -1
- package/build/components/collab-sidebar/comment-button.js +2 -2
- package/build/components/collab-sidebar/comment-button.js.map +1 -1
- package/build/components/collab-sidebar/comment-form.js +64 -0
- package/build/components/collab-sidebar/comment-form.js.map +1 -0
- package/build/components/collab-sidebar/comments.js +33 -91
- package/build/components/collab-sidebar/comments.js.map +1 -1
- package/build/components/create-template-part-modal/index.js +1 -2
- package/build/components/create-template-part-modal/index.js.map +1 -1
- package/build/components/document-bar/index.js +10 -3
- package/build/components/document-bar/index.js.map +1 -1
- package/build/components/document-outline/check.js +4 -4
- package/build/components/document-outline/check.js.map +1 -1
- package/build/components/document-outline/index.js +8 -8
- package/build/components/document-outline/index.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-history/redo.js +1 -1
- package/build/components/editor-history/redo.js.map +1 -1
- package/build/components/editor-history/undo.js +1 -1
- package/build/components/editor-history/undo.js.map +1 -1
- package/build/components/editor-interface/content-slot-fill.js +1 -10
- package/build/components/editor-interface/content-slot-fill.js.map +1 -1
- package/build/components/editor-interface/index.js +3 -9
- package/build/components/editor-interface/index.js.map +1 -1
- package/build/components/editor-notices/index.js +1 -1
- package/build/components/editor-notices/index.js.map +1 -1
- package/build/components/editor-snackbars/index.js +1 -1
- package/build/components/editor-snackbars/index.js.map +1 -1
- package/build/components/entities-saved-states/entity-record-item.js +9 -1
- package/build/components/entities-saved-states/entity-record-item.js.map +1 -1
- package/build/components/entities-saved-states/index.js +2 -2
- package/build/components/entities-saved-states/index.js.map +1 -1
- package/build/components/page-attributes/check.js +3 -3
- package/build/components/page-attributes/check.js.map +1 -1
- package/build/components/page-attributes/order.js +1 -1
- package/build/components/page-attributes/order.js.map +1 -1
- package/build/components/page-attributes/panel.js +1 -1
- package/build/components/page-attributes/panel.js.map +1 -1
- package/build/components/page-attributes/parent.js +1 -1
- package/build/components/page-attributes/parent.js.map +1 -1
- package/build/components/plugin-document-setting-panel/index.js +2 -2
- package/build/components/plugin-document-setting-panel/index.js.map +1 -1
- package/build/components/plugin-more-menu-item/index.js +2 -1
- package/build/components/plugin-more-menu-item/index.js.map +1 -1
- package/build/components/plugin-post-publish-panel/index.js +2 -2
- package/build/components/plugin-post-publish-panel/index.js.map +1 -1
- package/build/components/plugin-post-status-info/index.js +4 -4
- package/build/components/plugin-post-status-info/index.js.map +1 -1
- package/build/components/plugin-pre-publish-panel/index.js +2 -2
- package/build/components/plugin-pre-publish-panel/index.js.map +1 -1
- package/build/components/plugin-preview-menu-item/index.js +2 -1
- package/build/components/plugin-preview-menu-item/index.js.map +1 -1
- package/build/components/plugin-sidebar/index.js +1 -0
- package/build/components/plugin-sidebar/index.js.map +1 -1
- package/build/components/plugin-sidebar-more-menu-item/index.js +2 -1
- package/build/components/plugin-sidebar-more-menu-item/index.js.map +1 -1
- package/build/components/post-actions/actions.js +3 -3
- package/build/components/post-actions/actions.js.map +1 -1
- package/build/components/post-author/check.js +3 -3
- package/build/components/post-author/check.js.map +1 -1
- package/build/components/post-author/index.js +1 -1
- package/build/components/post-author/index.js.map +1 -1
- package/build/components/post-author/panel.js +1 -1
- package/build/components/post-author/panel.js.map +1 -1
- package/build/components/post-card-panel/index.js +9 -4
- package/build/components/post-card-panel/index.js.map +1 -1
- package/build/components/post-comments/index.js +1 -1
- package/build/components/post-comments/index.js.map +1 -1
- package/build/components/post-discussion/panel.js +1 -1
- package/build/components/post-discussion/panel.js.map +1 -1
- package/build/components/post-excerpt/check.js +3 -3
- package/build/components/post-excerpt/check.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-excerpt/plugin.js +4 -4
- package/build/components/post-excerpt/plugin.js.map +1 -1
- package/build/components/post-featured-image/check.js +3 -3
- package/build/components/post-featured-image/check.js.map +1 -1
- package/build/components/post-featured-image/index.js +39 -9
- package/build/components/post-featured-image/index.js.map +1 -1
- package/build/components/post-featured-image/panel.js +1 -1
- package/build/components/post-featured-image/panel.js.map +1 -1
- package/build/components/post-fields/index.js +70 -0
- package/build/components/post-fields/index.js.map +1 -0
- package/build/components/post-format/check.js +9 -12
- package/build/components/post-format/check.js.map +1 -1
- package/build/components/post-format/index.js +1 -1
- package/build/components/post-format/index.js.map +1 -1
- package/build/components/post-format/panel.js +1 -1
- package/build/components/post-format/panel.js.map +1 -1
- package/build/components/post-last-revision/check.js +3 -3
- package/build/components/post-last-revision/check.js.map +1 -1
- package/build/components/post-last-revision/index.js +1 -1
- package/build/components/post-last-revision/index.js.map +1 -1
- package/build/components/post-last-revision/panel.js +1 -1
- package/build/components/post-last-revision/panel.js.map +1 -1
- package/build/components/post-locked-modal/index.js +1 -1
- package/build/components/post-locked-modal/index.js.map +1 -1
- package/build/components/post-pending-status/check.js +3 -3
- package/build/components/post-pending-status/check.js.map +1 -1
- package/build/components/post-pending-status/index.js +1 -1
- package/build/components/post-pending-status/index.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 +5 -2
- package/build/components/post-publish-panel/index.js.map +1 -1
- package/build/components/post-schedule/check.js +3 -3
- package/build/components/post-schedule/check.js.map +1 -1
- package/build/components/post-schedule/index.js +1 -1
- package/build/components/post-schedule/index.js.map +1 -1
- package/build/components/post-schedule/label.js +1 -1
- package/build/components/post-schedule/label.js.map +1 -1
- package/build/components/post-schedule/panel.js +1 -1
- package/build/components/post-schedule/panel.js.map +1 -1
- package/build/components/post-slug/check.js +3 -3
- package/build/components/post-slug/check.js.map +1 -1
- package/build/components/post-slug/index.js +1 -1
- package/build/components/post-slug/index.js.map +1 -1
- package/build/components/post-sticky/check.js +3 -3
- package/build/components/post-sticky/check.js.map +1 -1
- package/build/components/post-sticky/index.js +1 -1
- package/build/components/post-sticky/index.js.map +1 -1
- package/build/components/post-switch-to-draft-button/index.js +1 -1
- package/build/components/post-switch-to-draft-button/index.js.map +1 -1
- package/build/components/post-sync-status/index.js +1 -1
- package/build/components/post-sync-status/index.js.map +1 -1
- package/build/components/post-taxonomies/check.js +3 -3
- package/build/components/post-taxonomies/check.js.map +1 -1
- package/build/components/post-taxonomies/flat-term-selector.js +1 -1
- package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build/components/post-taxonomies/panel.js +16 -13
- package/build/components/post-taxonomies/panel.js.map +1 -1
- package/build/components/post-template/classic-theme.js +2 -2
- package/build/components/post-template/classic-theme.js.map +1 -1
- package/build/components/post-template/panel.js +1 -1
- package/build/components/post-template/panel.js.map +1 -1
- package/build/components/post-text-editor/index.js +1 -1
- package/build/components/post-text-editor/index.js.map +1 -1
- package/build/components/post-title/index.js +20 -18
- package/build/components/post-title/index.js.map +1 -1
- package/build/components/post-title/post-title-raw.js +1 -1
- package/build/components/post-title/post-title-raw.js.map +1 -1
- package/build/components/post-trash/check.js +3 -3
- package/build/components/post-trash/check.js.map +1 -1
- package/build/components/post-trash/index.js +1 -1
- package/build/components/post-trash/index.js.map +1 -1
- package/build/components/post-type-support-check/index.js +6 -6
- package/build/components/post-type-support-check/index.js.map +1 -1
- package/build/components/post-url/check.js +3 -3
- package/build/components/post-url/check.js.map +1 -1
- package/build/components/post-url/index.js +1 -1
- package/build/components/post-url/index.js.map +1 -1
- package/build/components/post-url/label.js +1 -1
- package/build/components/post-url/label.js.map +1 -1
- package/build/components/post-url/panel.js +1 -1
- package/build/components/post-url/panel.js.map +1 -1
- package/build/components/post-visibility/check.js +1 -1
- package/build/components/post-visibility/check.js.map +1 -1
- package/build/components/post-visibility/index.js +1 -1
- package/build/components/post-visibility/index.js.map +1 -1
- package/build/components/preferences-modal/block-visibility.js +87 -0
- package/build/components/preferences-modal/block-visibility.js.map +1 -0
- package/build/components/preferences-modal/enable-panel.js +27 -19
- package/build/components/preferences-modal/enable-panel.js.map +1 -1
- package/build/components/preferences-modal/enable-publish-sidebar.js +13 -10
- package/build/components/preferences-modal/enable-publish-sidebar.js.map +1 -1
- package/build/components/preferences-modal/index.js +2 -2
- package/build/components/preferences-modal/index.js.map +1 -1
- package/build/components/provider/index.js +14 -8
- package/build/components/provider/index.js.map +1 -1
- package/build/components/table-of-contents/index.js +1 -1
- package/build/components/table-of-contents/index.js.map +1 -1
- package/build/components/theme-support-check/index.js +4 -4
- package/build/components/theme-support-check/index.js.map +1 -1
- package/build/components/time-to-read/index.js +1 -1
- package/build/components/time-to-read/index.js.map +1 -1
- package/build/components/unsaved-changes-warning/index.js +1 -1
- package/build/components/unsaved-changes-warning/index.js.map +1 -1
- package/build/components/word-count/index.js +1 -1
- package/build/components/word-count/index.js.map +1 -1
- package/build/components/zoom-out-toggle/index.js +8 -3
- package/build/components/zoom-out-toggle/index.js.map +1 -1
- package/build/dataviews/api.js +41 -0
- package/build/dataviews/api.js.map +1 -1
- package/build/dataviews/store/private-actions.js +26 -4
- package/build/dataviews/store/private-actions.js.map +1 -1
- package/build/dataviews/store/private-selectors.js +5 -0
- package/build/dataviews/store/private-selectors.js.map +1 -1
- package/build/dataviews/store/reducer.js +23 -0
- package/build/dataviews/store/reducer.js.map +1 -1
- package/build/private-apis.js +4 -0
- package/build/private-apis.js.map +1 -1
- package/build/store/actions.js +11 -9
- package/build/store/actions.js.map +1 -1
- package/build/store/private-selectors.js +5 -1
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/reducer.native.js +1 -0
- package/build/store/reducer.native.js.map +1 -1
- package/build/store/selectors.js +34 -42
- package/build/store/selectors.js.map +1 -1
- package/build/utils/get-template-info.js +60 -0
- package/build/utils/get-template-info.js.map +1 -0
- package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js +1 -1
- package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
- package/build-module/components/collab-sidebar/add-comment.js +18 -67
- package/build-module/components/collab-sidebar/add-comment.js.map +1 -1
- package/build-module/components/collab-sidebar/comment-author-info.js +71 -0
- package/build-module/components/collab-sidebar/comment-author-info.js.map +1 -0
- package/build-module/components/collab-sidebar/comment-button-toolbar.js +2 -2
- package/build-module/components/collab-sidebar/comment-button-toolbar.js.map +1 -1
- package/build-module/components/collab-sidebar/comment-button.js +2 -2
- package/build-module/components/collab-sidebar/comment-button.js.map +1 -1
- package/build-module/components/collab-sidebar/comment-form.js +59 -0
- package/build-module/components/collab-sidebar/comment-form.js.map +1 -0
- package/build-module/components/collab-sidebar/comments.js +33 -91
- package/build-module/components/collab-sidebar/comments.js.map +1 -1
- package/build-module/components/create-template-part-modal/index.js +1 -2
- package/build-module/components/create-template-part-modal/index.js.map +1 -1
- package/build-module/components/document-bar/index.js +10 -3
- package/build-module/components/document-bar/index.js.map +1 -1
- package/build-module/components/document-outline/check.js +4 -4
- package/build-module/components/document-outline/check.js.map +1 -1
- package/build-module/components/document-outline/index.js +8 -8
- package/build-module/components/document-outline/index.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-history/redo.js +1 -1
- package/build-module/components/editor-history/redo.js.map +1 -1
- package/build-module/components/editor-history/undo.js +1 -1
- package/build-module/components/editor-history/undo.js.map +1 -1
- package/build-module/components/editor-interface/content-slot-fill.js +2 -11
- package/build-module/components/editor-interface/content-slot-fill.js.map +1 -1
- package/build-module/components/editor-interface/index.js +4 -10
- package/build-module/components/editor-interface/index.js.map +1 -1
- package/build-module/components/editor-notices/index.js +1 -1
- package/build-module/components/editor-notices/index.js.map +1 -1
- package/build-module/components/editor-snackbars/index.js +1 -1
- package/build-module/components/editor-snackbars/index.js.map +1 -1
- package/build-module/components/entities-saved-states/entity-record-item.js +9 -1
- package/build-module/components/entities-saved-states/entity-record-item.js.map +1 -1
- package/build-module/components/entities-saved-states/index.js +2 -2
- package/build-module/components/entities-saved-states/index.js.map +1 -1
- package/build-module/components/page-attributes/check.js +3 -3
- package/build-module/components/page-attributes/check.js.map +1 -1
- package/build-module/components/page-attributes/order.js +1 -1
- package/build-module/components/page-attributes/order.js.map +1 -1
- package/build-module/components/page-attributes/panel.js +1 -1
- package/build-module/components/page-attributes/panel.js.map +1 -1
- package/build-module/components/page-attributes/parent.js +1 -1
- package/build-module/components/page-attributes/parent.js.map +1 -1
- package/build-module/components/plugin-document-setting-panel/index.js +2 -2
- package/build-module/components/plugin-document-setting-panel/index.js.map +1 -1
- package/build-module/components/plugin-more-menu-item/index.js +2 -1
- package/build-module/components/plugin-more-menu-item/index.js.map +1 -1
- package/build-module/components/plugin-post-publish-panel/index.js +2 -2
- package/build-module/components/plugin-post-publish-panel/index.js.map +1 -1
- package/build-module/components/plugin-post-status-info/index.js +4 -4
- package/build-module/components/plugin-post-status-info/index.js.map +1 -1
- package/build-module/components/plugin-pre-publish-panel/index.js +2 -2
- package/build-module/components/plugin-pre-publish-panel/index.js.map +1 -1
- package/build-module/components/plugin-preview-menu-item/index.js +2 -1
- package/build-module/components/plugin-preview-menu-item/index.js.map +1 -1
- package/build-module/components/plugin-sidebar/index.js +1 -0
- package/build-module/components/plugin-sidebar/index.js.map +1 -1
- package/build-module/components/plugin-sidebar-more-menu-item/index.js +2 -1
- package/build-module/components/plugin-sidebar-more-menu-item/index.js.map +1 -1
- package/build-module/components/post-actions/actions.js +3 -3
- package/build-module/components/post-actions/actions.js.map +1 -1
- package/build-module/components/post-author/check.js +3 -3
- package/build-module/components/post-author/check.js.map +1 -1
- package/build-module/components/post-author/index.js +1 -1
- package/build-module/components/post-author/index.js.map +1 -1
- package/build-module/components/post-author/panel.js +1 -1
- package/build-module/components/post-author/panel.js.map +1 -1
- package/build-module/components/post-card-panel/index.js +9 -4
- package/build-module/components/post-card-panel/index.js.map +1 -1
- package/build-module/components/post-comments/index.js +1 -1
- package/build-module/components/post-comments/index.js.map +1 -1
- package/build-module/components/post-discussion/panel.js +1 -1
- package/build-module/components/post-discussion/panel.js.map +1 -1
- package/build-module/components/post-excerpt/check.js +3 -3
- package/build-module/components/post-excerpt/check.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-excerpt/plugin.js +4 -4
- package/build-module/components/post-excerpt/plugin.js.map +1 -1
- package/build-module/components/post-featured-image/check.js +3 -3
- package/build-module/components/post-featured-image/check.js.map +1 -1
- package/build-module/components/post-featured-image/index.js +40 -10
- package/build-module/components/post-featured-image/index.js.map +1 -1
- package/build-module/components/post-featured-image/panel.js +1 -1
- package/build-module/components/post-featured-image/panel.js.map +1 -1
- package/build-module/components/post-fields/index.js +62 -0
- package/build-module/components/post-fields/index.js.map +1 -0
- package/build-module/components/post-format/check.js +10 -11
- package/build-module/components/post-format/check.js.map +1 -1
- package/build-module/components/post-format/index.js +1 -1
- package/build-module/components/post-format/index.js.map +1 -1
- package/build-module/components/post-format/panel.js +1 -1
- package/build-module/components/post-format/panel.js.map +1 -1
- package/build-module/components/post-last-revision/check.js +3 -3
- package/build-module/components/post-last-revision/check.js.map +1 -1
- package/build-module/components/post-last-revision/index.js +1 -1
- package/build-module/components/post-last-revision/index.js.map +1 -1
- package/build-module/components/post-last-revision/panel.js +1 -1
- package/build-module/components/post-last-revision/panel.js.map +1 -1
- package/build-module/components/post-locked-modal/index.js +1 -1
- package/build-module/components/post-locked-modal/index.js.map +1 -1
- package/build-module/components/post-pending-status/check.js +3 -3
- package/build-module/components/post-pending-status/check.js.map +1 -1
- package/build-module/components/post-pending-status/index.js +1 -1
- package/build-module/components/post-pending-status/index.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 +5 -2
- package/build-module/components/post-publish-panel/index.js.map +1 -1
- package/build-module/components/post-schedule/check.js +3 -3
- package/build-module/components/post-schedule/check.js.map +1 -1
- package/build-module/components/post-schedule/index.js +1 -1
- package/build-module/components/post-schedule/index.js.map +1 -1
- package/build-module/components/post-schedule/label.js +1 -1
- package/build-module/components/post-schedule/label.js.map +1 -1
- package/build-module/components/post-schedule/panel.js +1 -1
- package/build-module/components/post-schedule/panel.js.map +1 -1
- package/build-module/components/post-slug/check.js +3 -3
- package/build-module/components/post-slug/check.js.map +1 -1
- package/build-module/components/post-slug/index.js +1 -1
- package/build-module/components/post-slug/index.js.map +1 -1
- package/build-module/components/post-sticky/check.js +3 -3
- package/build-module/components/post-sticky/check.js.map +1 -1
- package/build-module/components/post-sticky/index.js +1 -1
- package/build-module/components/post-sticky/index.js.map +1 -1
- package/build-module/components/post-switch-to-draft-button/index.js +1 -1
- package/build-module/components/post-switch-to-draft-button/index.js.map +1 -1
- package/build-module/components/post-sync-status/index.js +1 -1
- package/build-module/components/post-sync-status/index.js.map +1 -1
- package/build-module/components/post-taxonomies/check.js +3 -3
- package/build-module/components/post-taxonomies/check.js.map +1 -1
- package/build-module/components/post-taxonomies/flat-term-selector.js +1 -1
- package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build-module/components/post-taxonomies/panel.js +17 -12
- package/build-module/components/post-taxonomies/panel.js.map +1 -1
- package/build-module/components/post-template/classic-theme.js +2 -2
- package/build-module/components/post-template/classic-theme.js.map +1 -1
- package/build-module/components/post-template/panel.js +1 -1
- package/build-module/components/post-template/panel.js.map +1 -1
- package/build-module/components/post-text-editor/index.js +1 -1
- package/build-module/components/post-text-editor/index.js.map +1 -1
- package/build-module/components/post-title/index.js +20 -18
- package/build-module/components/post-title/index.js.map +1 -1
- package/build-module/components/post-title/post-title-raw.js +1 -1
- package/build-module/components/post-title/post-title-raw.js.map +1 -1
- package/build-module/components/post-trash/check.js +3 -3
- package/build-module/components/post-trash/check.js.map +1 -1
- package/build-module/components/post-trash/index.js +1 -1
- package/build-module/components/post-trash/index.js.map +1 -1
- package/build-module/components/post-type-support-check/index.js +6 -6
- package/build-module/components/post-type-support-check/index.js.map +1 -1
- package/build-module/components/post-url/check.js +3 -3
- package/build-module/components/post-url/check.js.map +1 -1
- package/build-module/components/post-url/index.js +1 -1
- package/build-module/components/post-url/index.js.map +1 -1
- package/build-module/components/post-url/label.js +1 -1
- package/build-module/components/post-url/label.js.map +1 -1
- package/build-module/components/post-url/panel.js +1 -1
- package/build-module/components/post-url/panel.js.map +1 -1
- package/build-module/components/post-visibility/check.js +1 -1
- package/build-module/components/post-visibility/check.js.map +1 -1
- package/build-module/components/post-visibility/index.js +1 -1
- package/build-module/components/post-visibility/index.js.map +1 -1
- package/build-module/components/preferences-modal/block-visibility.js +80 -0
- package/build-module/components/preferences-modal/block-visibility.js.map +1 -0
- package/build-module/components/preferences-modal/enable-panel.js +27 -19
- package/build-module/components/preferences-modal/enable-panel.js.map +1 -1
- package/build-module/components/preferences-modal/enable-publish-sidebar.js +13 -10
- package/build-module/components/preferences-modal/enable-publish-sidebar.js.map +1 -1
- package/build-module/components/preferences-modal/index.js +2 -2
- package/build-module/components/preferences-modal/index.js.map +1 -1
- package/build-module/components/provider/index.js +14 -8
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/table-of-contents/index.js +1 -1
- package/build-module/components/table-of-contents/index.js.map +1 -1
- package/build-module/components/theme-support-check/index.js +4 -4
- package/build-module/components/theme-support-check/index.js.map +1 -1
- package/build-module/components/time-to-read/index.js +1 -1
- package/build-module/components/time-to-read/index.js.map +1 -1
- package/build-module/components/unsaved-changes-warning/index.js +1 -1
- package/build-module/components/unsaved-changes-warning/index.js.map +1 -1
- package/build-module/components/word-count/index.js +1 -1
- package/build-module/components/word-count/index.js.map +1 -1
- package/build-module/components/zoom-out-toggle/index.js +8 -3
- package/build-module/components/zoom-out-toggle/index.js.map +1 -1
- package/build-module/dataviews/api.js +39 -0
- package/build-module/dataviews/api.js.map +1 -1
- package/build-module/dataviews/store/private-actions.js +23 -3
- package/build-module/dataviews/store/private-actions.js.map +1 -1
- package/build-module/dataviews/store/private-selectors.js +4 -0
- package/build-module/dataviews/store/private-selectors.js.map +1 -1
- package/build-module/dataviews/store/reducer.js +23 -0
- package/build-module/dataviews/store/reducer.js.map +1 -1
- package/build-module/private-apis.js +4 -0
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/actions.js +11 -9
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/private-selectors.js +6 -3
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/reducer.native.js +2 -1
- package/build-module/store/reducer.native.js.map +1 -1
- package/build-module/store/selectors.js +33 -39
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/utils/get-template-info.js +51 -0
- package/build-module/utils/get-template-info.js.map +1 -0
- package/build-style/style-rtl.css +11 -81
- package/build-style/style.css +11 -81
- package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts +2 -2
- package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/add-comment.d.ts +2 -2
- package/build-types/components/collab-sidebar/add-comment.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/comment-author-info.d.ts +17 -0
- package/build-types/components/collab-sidebar/comment-author-info.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/comment-form.d.ts +18 -0
- package/build-types/components/collab-sidebar/comment-form.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/comments.d.ts +2 -2
- package/build-types/components/collab-sidebar/comments.d.ts.map +1 -1
- package/build-types/components/create-template-part-modal/index.d.ts.map +1 -1
- package/build-types/components/document-bar/index.d.ts +2 -2
- package/build-types/components/document-bar/index.d.ts.map +1 -1
- package/build-types/components/document-outline/check.d.ts +5 -5
- package/build-types/components/document-outline/check.d.ts.map +1 -1
- package/build-types/components/document-outline/index.d.ts +4 -6
- package/build-types/components/document-outline/index.d.ts.map +1 -1
- package/build-types/components/document-tools/index.d.ts.map +1 -1
- package/build-types/components/editor-interface/content-slot-fill.d.ts +12 -1
- package/build-types/components/editor-interface/content-slot-fill.d.ts.map +1 -1
- package/build-types/components/editor-interface/index.d.ts.map +1 -1
- package/build-types/components/editor-notices/index.d.ts +2 -2
- package/build-types/components/editor-notices/index.d.ts.map +1 -1
- package/build-types/components/editor-snackbars/index.d.ts +2 -2
- package/build-types/components/editor-snackbars/index.d.ts.map +1 -1
- package/build-types/components/entities-saved-states/entity-record-item.d.ts.map +1 -1
- package/build-types/components/entities-saved-states/index.d.ts +4 -4
- package/build-types/components/entities-saved-states/index.d.ts.map +1 -1
- package/build-types/components/header/back-button.d.ts.map +1 -1
- package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -1
- package/build-types/components/more-menu/view-more-menu-group.d.ts.map +1 -1
- package/build-types/components/page-attributes/check.d.ts +5 -5
- package/build-types/components/page-attributes/check.d.ts.map +1 -1
- package/build-types/components/page-attributes/order.d.ts +2 -2
- package/build-types/components/page-attributes/order.d.ts.map +1 -1
- package/build-types/components/page-attributes/panel.d.ts +2 -2
- package/build-types/components/page-attributes/panel.d.ts.map +1 -1
- package/build-types/components/page-attributes/parent.d.ts +2 -2
- package/build-types/components/page-attributes/parent.d.ts.map +1 -1
- package/build-types/components/plugin-document-setting-panel/index.d.ts +4 -4
- package/build-types/components/plugin-document-setting-panel/index.d.ts.map +1 -1
- package/build-types/components/plugin-more-menu-item/index.d.ts +4 -2
- package/build-types/components/plugin-more-menu-item/index.d.ts.map +1 -1
- package/build-types/components/plugin-post-publish-panel/index.d.ts +4 -4
- package/build-types/components/plugin-post-publish-panel/index.d.ts.map +1 -1
- package/build-types/components/plugin-post-status-info/index.d.ts +6 -6
- package/build-types/components/plugin-post-status-info/index.d.ts.map +1 -1
- package/build-types/components/plugin-pre-publish-panel/index.d.ts +4 -4
- package/build-types/components/plugin-pre-publish-panel/index.d.ts.map +1 -1
- package/build-types/components/plugin-preview-menu-item/index.d.ts +4 -2
- package/build-types/components/plugin-preview-menu-item/index.d.ts.map +1 -1
- package/build-types/components/plugin-sidebar/index.d.ts +2 -0
- package/build-types/components/plugin-sidebar/index.d.ts.map +1 -1
- package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts +4 -2
- package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts.map +1 -1
- package/build-types/components/post-author/check.d.ts +5 -5
- package/build-types/components/post-author/check.d.ts.map +1 -1
- package/build-types/components/post-author/index.d.ts +2 -2
- package/build-types/components/post-author/index.d.ts.map +1 -1
- package/build-types/components/post-author/panel.d.ts +2 -2
- package/build-types/components/post-author/panel.d.ts.map +1 -1
- package/build-types/components/post-card-panel/index.d.ts.map +1 -1
- package/build-types/components/post-discussion/panel.d.ts +2 -2
- package/build-types/components/post-discussion/panel.d.ts.map +1 -1
- package/build-types/components/post-excerpt/check.d.ts +5 -5
- package/build-types/components/post-excerpt/check.d.ts.map +1 -1
- package/build-types/components/post-excerpt/panel.d.ts +2 -2
- package/build-types/components/post-excerpt/panel.d.ts.map +1 -1
- package/build-types/components/post-excerpt/plugin.d.ts +6 -6
- package/build-types/components/post-excerpt/plugin.d.ts.map +1 -1
- package/build-types/components/post-featured-image/check.d.ts +5 -5
- package/build-types/components/post-featured-image/check.d.ts.map +1 -1
- package/build-types/components/post-featured-image/panel.d.ts +2 -2
- package/build-types/components/post-featured-image/panel.d.ts.map +1 -1
- package/build-types/components/post-fields/index.d.ts +12 -0
- package/build-types/components/post-fields/index.d.ts.map +1 -0
- package/build-types/components/post-format/check.d.ts +11 -4
- package/build-types/components/post-format/check.d.ts.map +1 -1
- package/build-types/components/post-format/index.d.ts +2 -2
- package/build-types/components/post-format/index.d.ts.map +1 -1
- package/build-types/components/post-format/panel.d.ts +2 -2
- package/build-types/components/post-format/panel.d.ts.map +1 -1
- package/build-types/components/post-last-revision/check.d.ts +5 -5
- package/build-types/components/post-last-revision/check.d.ts.map +1 -1
- package/build-types/components/post-last-revision/index.d.ts +2 -2
- package/build-types/components/post-last-revision/index.d.ts.map +1 -1
- package/build-types/components/post-last-revision/panel.d.ts +2 -2
- package/build-types/components/post-last-revision/panel.d.ts.map +1 -1
- package/build-types/components/post-locked-modal/index.d.ts +2 -2
- package/build-types/components/post-locked-modal/index.d.ts.map +1 -1
- package/build-types/components/post-pending-status/check.d.ts +5 -5
- package/build-types/components/post-pending-status/check.d.ts.map +1 -1
- package/build-types/components/post-pending-status/index.d.ts +2 -2
- package/build-types/components/post-pending-status/index.d.ts.map +1 -1
- package/build-types/components/post-preview-button/index.d.ts +2 -2
- package/build-types/components/post-preview-button/index.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/index.d.ts.map +1 -1
- package/build-types/components/post-schedule/check.d.ts +5 -5
- package/build-types/components/post-schedule/check.d.ts.map +1 -1
- package/build-types/components/post-schedule/index.d.ts +2 -2
- package/build-types/components/post-schedule/index.d.ts.map +1 -1
- package/build-types/components/post-schedule/label.d.ts +2 -2
- package/build-types/components/post-schedule/label.d.ts.map +1 -1
- package/build-types/components/post-schedule/panel.d.ts +2 -2
- package/build-types/components/post-schedule/panel.d.ts.map +1 -1
- package/build-types/components/post-slug/check.d.ts +5 -5
- package/build-types/components/post-slug/check.d.ts.map +1 -1
- package/build-types/components/post-slug/index.d.ts +2 -2
- package/build-types/components/post-slug/index.d.ts.map +1 -1
- package/build-types/components/post-sticky/check.d.ts +5 -5
- package/build-types/components/post-sticky/check.d.ts.map +1 -1
- package/build-types/components/post-sticky/index.d.ts +2 -2
- package/build-types/components/post-sticky/index.d.ts.map +1 -1
- package/build-types/components/post-switch-to-draft-button/index.d.ts +2 -2
- package/build-types/components/post-switch-to-draft-button/index.d.ts.map +1 -1
- package/build-types/components/post-sync-status/index.d.ts +2 -2
- package/build-types/components/post-sync-status/index.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/check.d.ts +5 -5
- package/build-types/components/post-taxonomies/check.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts +2 -2
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/panel.d.ts +6 -2
- package/build-types/components/post-taxonomies/panel.d.ts.map +1 -1
- package/build-types/components/post-template/panel.d.ts +2 -2
- package/build-types/components/post-template/panel.d.ts.map +1 -1
- package/build-types/components/post-text-editor/index.d.ts +2 -2
- package/build-types/components/post-text-editor/index.d.ts.map +1 -1
- package/build-types/components/post-title/index.d.ts +1 -1
- package/build-types/components/post-trash/check.d.ts +5 -5
- package/build-types/components/post-trash/check.d.ts.map +1 -1
- package/build-types/components/post-trash/index.d.ts +2 -2
- package/build-types/components/post-trash/index.d.ts.map +1 -1
- package/build-types/components/post-type-support-check/index.d.ts +8 -8
- package/build-types/components/post-type-support-check/index.d.ts.map +1 -1
- package/build-types/components/post-url/check.d.ts +5 -5
- package/build-types/components/post-url/check.d.ts.map +1 -1
- package/build-types/components/post-url/index.d.ts +2 -2
- package/build-types/components/post-url/index.d.ts.map +1 -1
- package/build-types/components/post-url/label.d.ts +2 -2
- package/build-types/components/post-url/label.d.ts.map +1 -1
- package/build-types/components/post-url/panel.d.ts +2 -2
- package/build-types/components/post-url/panel.d.ts.map +1 -1
- package/build-types/components/post-visibility/check.d.ts +2 -2
- package/build-types/components/post-visibility/check.d.ts.map +1 -1
- package/build-types/components/post-visibility/index.d.ts +2 -2
- package/build-types/components/post-visibility/index.d.ts.map +1 -1
- package/build-types/components/preferences-modal/block-visibility.d.ts +2 -0
- package/build-types/components/preferences-modal/block-visibility.d.ts.map +1 -0
- package/build-types/components/preferences-modal/enable-panel.d.ts +1 -2
- package/build-types/components/preferences-modal/enable-panel.d.ts.map +1 -1
- package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts.map +1 -1
- package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts +1 -2
- package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts +2 -2
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/components/save-publish-panels/index.d.ts.map +1 -1
- package/build-types/components/theme-support-check/index.d.ts +6 -6
- package/build-types/components/theme-support-check/index.d.ts.map +1 -1
- package/build-types/components/time-to-read/index.d.ts +2 -2
- package/build-types/components/time-to-read/index.d.ts.map +1 -1
- package/build-types/components/unsaved-changes-warning/index.d.ts +2 -2
- package/build-types/components/unsaved-changes-warning/index.d.ts.map +1 -1
- package/build-types/components/word-count/index.d.ts +2 -2
- package/build-types/components/word-count/index.d.ts.map +1 -1
- package/build-types/components/zoom-out-toggle/index.d.ts.map +1 -1
- package/build-types/dataviews/api.d.ts +24 -0
- package/build-types/dataviews/api.d.ts.map +1 -1
- package/build-types/dataviews/store/private-actions.d.ts +14 -2
- package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/dataviews/store/private-selectors.d.ts +1 -0
- package/build-types/dataviews/store/private-selectors.d.ts.map +1 -1
- package/build-types/dataviews/store/reducer.d.ts +10 -2
- package/build-types/dataviews/store/reducer.d.ts.map +1 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/store/actions.d.ts +7 -5
- package/build-types/store/actions.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts +1 -0
- package/build-types/store/private-selectors.d.ts.map +1 -1
- package/build-types/store/reducer.d.ts +5 -0
- package/build-types/store/reducer.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +4 -11
- package/build-types/store/selectors.d.ts.map +1 -1
- package/build-types/utils/get-template-info.d.ts +6 -0
- package/build-types/utils/get-template-info.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/components/block-settings-menu/plugin-block-settings-menu-item.js +1 -1
- package/src/components/collab-sidebar/add-comment.js +21 -78
- package/src/components/collab-sidebar/comment-author-info.js +68 -0
- package/src/components/collab-sidebar/comment-button-toolbar.js +3 -3
- package/src/components/collab-sidebar/comment-button.js +3 -3
- package/src/components/collab-sidebar/comment-form.js +62 -0
- package/src/components/collab-sidebar/comments.js +39 -101
- package/src/components/create-template-part-modal/index.js +3 -2
- package/src/components/document-bar/index.js +12 -3
- package/src/components/document-outline/check.js +4 -4
- package/src/components/document-outline/index.js +9 -9
- package/src/components/document-tools/index.js +3 -2
- package/src/components/editor-history/redo.js +1 -1
- package/src/components/editor-history/undo.js +1 -1
- package/src/components/editor-interface/content-slot-fill.js +4 -9
- package/src/components/editor-interface/index.js +1 -11
- package/src/components/editor-notices/index.js +1 -1
- package/src/components/editor-snackbars/index.js +1 -1
- package/src/components/entities-saved-states/entity-record-item.js +12 -4
- package/src/components/entities-saved-states/index.js +2 -2
- package/src/components/header/style.scss +2 -1
- package/src/components/page-attributes/check.js +3 -3
- package/src/components/page-attributes/order.js +1 -1
- package/src/components/page-attributes/panel.js +1 -1
- package/src/components/page-attributes/parent.js +1 -1
- package/src/components/plugin-document-setting-panel/index.js +2 -2
- package/src/components/plugin-more-menu-item/index.js +2 -1
- package/src/components/plugin-post-publish-panel/index.js +2 -2
- package/src/components/plugin-post-status-info/index.js +4 -4
- package/src/components/plugin-pre-publish-panel/index.js +2 -2
- package/src/components/plugin-preview-menu-item/index.js +2 -1
- package/src/components/plugin-sidebar/index.js +1 -0
- package/src/components/plugin-sidebar-more-menu-item/index.js +2 -2
- package/src/components/post-actions/actions.js +3 -3
- package/src/components/post-author/check.js +3 -3
- package/src/components/post-author/index.js +1 -1
- package/src/components/post-author/panel.js +1 -1
- package/src/components/post-card-panel/index.js +18 -5
- package/src/components/post-comments/index.js +1 -1
- package/src/components/post-discussion/panel.js +1 -1
- package/src/components/post-excerpt/check.js +3 -3
- package/src/components/post-excerpt/panel.js +1 -1
- package/src/components/post-excerpt/plugin.js +4 -4
- package/src/components/post-featured-image/check.js +3 -3
- package/src/components/post-featured-image/index.js +107 -43
- package/src/components/post-featured-image/panel.js +1 -1
- package/src/components/post-featured-image/style.scss +23 -13
- package/src/components/post-fields/index.ts +76 -0
- package/src/components/post-format/check.js +9 -11
- package/src/components/post-format/index.js +1 -1
- package/src/components/post-format/panel.js +1 -1
- package/src/components/post-last-revision/check.js +3 -3
- package/src/components/post-last-revision/index.js +1 -1
- package/src/components/post-last-revision/panel.js +1 -1
- package/src/components/post-locked-modal/index.js +1 -1
- package/src/components/post-pending-status/check.js +3 -3
- package/src/components/post-pending-status/index.js +1 -1
- package/src/components/post-preview-button/index.js +1 -1
- package/src/components/post-publish-panel/index.js +7 -3
- package/src/components/post-schedule/check.js +3 -3
- package/src/components/post-schedule/index.js +1 -1
- package/src/components/post-schedule/label.js +1 -1
- package/src/components/post-schedule/panel.js +1 -1
- package/src/components/post-slug/check.js +3 -3
- package/src/components/post-slug/index.js +1 -1
- package/src/components/post-sticky/check.js +3 -3
- package/src/components/post-sticky/index.js +1 -1
- package/src/components/post-switch-to-draft-button/index.js +1 -1
- package/src/components/post-sync-status/index.js +1 -1
- package/src/components/post-taxonomies/check.js +3 -3
- package/src/components/post-taxonomies/flat-term-selector.js +1 -1
- package/src/components/post-taxonomies/panel.js +15 -12
- package/src/components/post-template/classic-theme.js +2 -2
- package/src/components/post-template/panel.js +1 -1
- package/src/components/post-text-editor/index.js +1 -1
- package/src/components/post-title/index.js +20 -18
- package/src/components/post-title/post-title-raw.js +1 -1
- package/src/components/post-trash/check.js +3 -3
- package/src/components/post-trash/index.js +1 -1
- package/src/components/post-type-support-check/index.js +6 -6
- package/src/components/post-url/check.js +3 -3
- package/src/components/post-url/index.js +1 -1
- package/src/components/post-url/label.js +1 -1
- package/src/components/post-url/panel.js +1 -1
- package/src/components/post-visibility/check.js +1 -1
- package/src/components/post-visibility/index.js +1 -1
- package/src/components/preferences-modal/block-visibility.js +96 -0
- package/src/components/preferences-modal/enable-panel.js +27 -17
- package/src/components/preferences-modal/enable-publish-sidebar.js +18 -15
- package/src/components/preferences-modal/index.js +2 -2
- package/src/components/provider/index.js +55 -30
- package/src/components/table-of-contents/index.js +1 -1
- package/src/components/theme-support-check/index.js +4 -4
- package/src/components/time-to-read/index.js +1 -1
- package/src/components/unsaved-changes-warning/index.js +1 -1
- package/src/components/word-count/index.js +1 -1
- package/src/components/zoom-out-toggle/index.js +26 -13
- package/src/dataviews/api.js +41 -0
- package/src/dataviews/store/private-actions.ts +57 -3
- package/src/dataviews/store/private-selectors.ts +4 -0
- package/src/dataviews/store/reducer.ts +38 -1
- package/src/private-apis.js +4 -1
- package/src/store/actions.js +13 -9
- package/src/store/private-selectors.js +13 -8
- package/src/store/reducer.native.js +2 -0
- package/src/store/selectors.js +80 -62
- package/src/store/test/selectors.js +0 -255
- package/src/style.scss +0 -1
- package/src/utils/get-template-info.js +52 -0
- package/src/utils/test/get-template-info.js +224 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/build/components/block-manager/category.js +0 -107
- package/build/components/block-manager/category.js.map +0 -1
- package/build/components/block-manager/checklist.js +0 -35
- package/build/components/block-manager/checklist.js.map +0 -1
- package/build/components/block-manager/index.js +0 -115
- package/build/components/block-manager/index.js.map +0 -1
- package/build-module/components/block-manager/category.js +0 -99
- package/build-module/components/block-manager/category.js.map +0 -1
- package/build-module/components/block-manager/checklist.js +0 -28
- package/build-module/components/block-manager/checklist.js.map +0 -1
- package/build-module/components/block-manager/index.js +0 -107
- package/build-module/components/block-manager/index.js.map +0 -1
- package/build-types/components/block-manager/category.d.ts +0 -6
- package/build-types/components/block-manager/category.d.ts.map +0 -1
- package/build-types/components/block-manager/checklist.d.ts +0 -7
- package/build-types/components/block-manager/checklist.d.ts.map +0 -1
- package/build-types/components/block-manager/index.d.ts +0 -2
- package/build-types/components/block-manager/index.d.ts.map +0 -1
- package/src/components/block-manager/category.js +0 -96
- package/src/components/block-manager/checklist.js +0 -30
- package/src/components/block-manager/index.js +0 -145
- package/src/components/block-manager/style.scss +0 -82
package/README.md
CHANGED
|
@@ -270,7 +270,7 @@ _Parameters_
|
|
|
270
270
|
|
|
271
271
|
_Returns_
|
|
272
272
|
|
|
273
|
-
- `
|
|
273
|
+
- `React.ReactNode`: The rendered DocumentBar component.
|
|
274
274
|
|
|
275
275
|
### DocumentOutline
|
|
276
276
|
|
|
@@ -279,13 +279,12 @@ Renders a document outline component.
|
|
|
279
279
|
_Parameters_
|
|
280
280
|
|
|
281
281
|
- _props_ `Object`: Props.
|
|
282
|
-
- _props.onSelect_ `Function`: Function to be called when an outline item is selected
|
|
283
|
-
- _props.isTitleSupported_ `boolean`: Indicates whether the title is supported.
|
|
282
|
+
- _props.onSelect_ `Function`: Function to be called when an outline item is selected
|
|
284
283
|
- _props.hasOutlineItemsDisabled_ `boolean`: Indicates whether the outline items are disabled.
|
|
285
284
|
|
|
286
285
|
_Returns_
|
|
287
286
|
|
|
288
|
-
- `
|
|
287
|
+
- `React.ReactNode`: The rendered component.
|
|
289
288
|
|
|
290
289
|
### DocumentOutlineCheck
|
|
291
290
|
|
|
@@ -294,11 +293,11 @@ Component check if there are any headings (core/heading blocks) present in the d
|
|
|
294
293
|
_Parameters_
|
|
295
294
|
|
|
296
295
|
- _props_ `Object`: Props.
|
|
297
|
-
- _props.children_ `
|
|
296
|
+
- _props.children_ `React.ReactElement`: Children to be rendered.
|
|
298
297
|
|
|
299
298
|
_Returns_
|
|
300
299
|
|
|
301
|
-
- `
|
|
300
|
+
- `React.ReactElement`: The component to be rendered or null if there are headings.
|
|
302
301
|
|
|
303
302
|
### EditorHistoryRedo
|
|
304
303
|
|
|
@@ -311,7 +310,7 @@ _Parameters_
|
|
|
311
310
|
|
|
312
311
|
_Returns_
|
|
313
312
|
|
|
314
|
-
- `
|
|
313
|
+
- `React.ReactNode`: The rendered component.
|
|
315
314
|
|
|
316
315
|
### EditorHistoryUndo
|
|
317
316
|
|
|
@@ -324,7 +323,7 @@ _Parameters_
|
|
|
324
323
|
|
|
325
324
|
_Returns_
|
|
326
325
|
|
|
327
|
-
- `
|
|
326
|
+
- `React.ReactNode`: The rendered component.
|
|
328
327
|
|
|
329
328
|
### EditorKeyboardShortcuts
|
|
330
329
|
|
|
@@ -352,7 +351,7 @@ _Usage_
|
|
|
352
351
|
|
|
353
352
|
_Returns_
|
|
354
353
|
|
|
355
|
-
- `
|
|
354
|
+
- `React.ReactNode`: The rendered EditorNotices component.
|
|
356
355
|
|
|
357
356
|
### EditorProvider
|
|
358
357
|
|
|
@@ -384,7 +383,7 @@ _Parameters_
|
|
|
384
383
|
|
|
385
384
|
_Returns_
|
|
386
385
|
|
|
387
|
-
- `
|
|
386
|
+
- `React.ReactNode`: The rendered EditorProvider component.
|
|
388
387
|
|
|
389
388
|
### EditorSnackbars
|
|
390
389
|
|
|
@@ -392,7 +391,7 @@ Renders the editor snackbars component.
|
|
|
392
391
|
|
|
393
392
|
_Returns_
|
|
394
393
|
|
|
395
|
-
- `
|
|
394
|
+
- `React.ReactNode`: The rendered component.
|
|
396
395
|
|
|
397
396
|
### EntitiesSavedStates
|
|
398
397
|
|
|
@@ -406,7 +405,7 @@ _Parameters_
|
|
|
406
405
|
|
|
407
406
|
_Returns_
|
|
408
407
|
|
|
409
|
-
- `
|
|
408
|
+
- `React.ReactNode`: The rendered component.
|
|
410
409
|
|
|
411
410
|
### ErrorBoundary
|
|
412
411
|
|
|
@@ -524,11 +523,11 @@ Wrapper component that renders its children only if the post type supports page
|
|
|
524
523
|
_Parameters_
|
|
525
524
|
|
|
526
525
|
- _props_ `Object`: - The component props.
|
|
527
|
-
- _props.children_ `
|
|
526
|
+
- _props.children_ `React.ReactElement`: - The child components to render.
|
|
528
527
|
|
|
529
528
|
_Returns_
|
|
530
529
|
|
|
531
|
-
- `
|
|
530
|
+
- `React.ReactElement`: The rendered child components or null if page attributes are not supported.
|
|
532
531
|
|
|
533
532
|
### PageAttributesOrder
|
|
534
533
|
|
|
@@ -536,7 +535,7 @@ Renders the Page Attributes Order component. A number input in an editor interfa
|
|
|
536
535
|
|
|
537
536
|
_Returns_
|
|
538
537
|
|
|
539
|
-
- `
|
|
538
|
+
- `React.ReactNode`: The rendered component.
|
|
540
539
|
|
|
541
540
|
### PageAttributesPanel
|
|
542
541
|
|
|
@@ -544,7 +543,7 @@ Renders the Page Attributes Panel component.
|
|
|
544
543
|
|
|
545
544
|
_Returns_
|
|
546
545
|
|
|
547
|
-
- `
|
|
546
|
+
- `React.ReactNode`: The rendered component.
|
|
548
547
|
|
|
549
548
|
### PageAttributesParent
|
|
550
549
|
|
|
@@ -552,7 +551,7 @@ Renders the Page Attributes Parent component. A dropdown menu in an editor inter
|
|
|
552
551
|
|
|
553
552
|
_Returns_
|
|
554
553
|
|
|
555
|
-
- `
|
|
554
|
+
- `React.ReactNode`: The component to be rendered. Return null if post type is not hierarchical.
|
|
556
555
|
|
|
557
556
|
### PageTemplate
|
|
558
557
|
|
|
@@ -562,7 +561,7 @@ The dropdown menu includes a button for toggling the menu, a list of available t
|
|
|
562
561
|
|
|
563
562
|
_Returns_
|
|
564
563
|
|
|
565
|
-
- `
|
|
564
|
+
- `React.ReactNode`: The rendered ClassicThemeControl component.
|
|
566
565
|
|
|
567
566
|
### PanelColorSettings
|
|
568
567
|
|
|
@@ -628,7 +627,7 @@ _Parameters_
|
|
|
628
627
|
|
|
629
628
|
_Returns_
|
|
630
629
|
|
|
631
|
-
- `
|
|
630
|
+
- `React.ReactNode`: The rendered component.
|
|
632
631
|
|
|
633
632
|
### PluginDocumentSettingPanel
|
|
634
633
|
|
|
@@ -685,11 +684,11 @@ _Parameters_
|
|
|
685
684
|
- _props.className_ `[string]`: An optional class name added to the row.
|
|
686
685
|
- _props.title_ `[string]`: The title of the panel
|
|
687
686
|
- _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.
|
|
688
|
-
- _props.children_ `
|
|
687
|
+
- _props.children_ `React.ReactNode`: Children to be rendered
|
|
689
688
|
|
|
690
689
|
_Returns_
|
|
691
690
|
|
|
692
|
-
- `
|
|
691
|
+
- `React.ReactNode`: The component to be rendered.
|
|
693
692
|
|
|
694
693
|
### PluginMoreMenuItem
|
|
695
694
|
|
|
@@ -739,6 +738,7 @@ const MyButtonMoreMenuItem = () => (
|
|
|
739
738
|
_Parameters_
|
|
740
739
|
|
|
741
740
|
- _props_ `Object`: Component properties.
|
|
741
|
+
- _props.children_ `[React.ReactNode]`: Children to be rendered.
|
|
742
742
|
- _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.
|
|
743
743
|
- _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.
|
|
744
744
|
- _props.onClick_ `[Function]`: The callback function to be executed when the user clicks the menu item.
|
|
@@ -746,7 +746,7 @@ _Parameters_
|
|
|
746
746
|
|
|
747
747
|
_Returns_
|
|
748
748
|
|
|
749
|
-
- `
|
|
749
|
+
- `React.ReactNode`: The rendered component.
|
|
750
750
|
|
|
751
751
|
### PluginPostPublishPanel
|
|
752
752
|
|
|
@@ -777,11 +777,11 @@ _Parameters_
|
|
|
777
777
|
- _props.title_ `[string]`: Title displayed at the top of the panel.
|
|
778
778
|
- _props.initialOpen_ `[boolean]`: Whether to have the panel initially opened. When no title is provided it is always opened.
|
|
779
779
|
- _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.
|
|
780
|
-
- _props.children_ `
|
|
780
|
+
- _props.children_ `React.ReactNode`: Children to be rendered
|
|
781
781
|
|
|
782
782
|
_Returns_
|
|
783
783
|
|
|
784
|
-
- `
|
|
784
|
+
- `React.ReactNode`: The rendered component.
|
|
785
785
|
|
|
786
786
|
### PluginPostStatusInfo
|
|
787
787
|
|
|
@@ -821,11 +821,11 @@ _Parameters_
|
|
|
821
821
|
|
|
822
822
|
- _props_ `Object`: Component properties.
|
|
823
823
|
- _props.className_ `[string]`: An optional class name added to the row.
|
|
824
|
-
- _props.children_ `
|
|
824
|
+
- _props.children_ `React.ReactNode`: Children to be rendered.
|
|
825
825
|
|
|
826
826
|
_Returns_
|
|
827
827
|
|
|
828
|
-
- `
|
|
828
|
+
- `React.ReactNode`: The rendered component.
|
|
829
829
|
|
|
830
830
|
### PluginPrePublishPanel
|
|
831
831
|
|
|
@@ -856,11 +856,11 @@ _Parameters_
|
|
|
856
856
|
- _props.title_ `[string]`: Title displayed at the top of the panel.
|
|
857
857
|
- _props.initialOpen_ `[boolean]`: Whether to have the panel initially opened. When no title is provided it is always opened.
|
|
858
858
|
- _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.
|
|
859
|
-
- _props.children_ `
|
|
859
|
+
- _props.children_ `React.ReactNode`: Children to be rendered
|
|
860
860
|
|
|
861
861
|
_Returns_
|
|
862
862
|
|
|
863
|
-
- `
|
|
863
|
+
- `React.ReactNode`: The rendered component.
|
|
864
864
|
|
|
865
865
|
### PluginPreviewMenuItem
|
|
866
866
|
|
|
@@ -890,6 +890,7 @@ registerPlugin( 'external-preview-menu-item', {
|
|
|
890
890
|
_Parameters_
|
|
891
891
|
|
|
892
892
|
- _props_ `Object`: Component properties.
|
|
893
|
+
- _props.children_ `[React.ReactNode]`: Children to be rendered.
|
|
893
894
|
- _props.href_ `[string]`: When `href` is provided, the menu item is rendered as an anchor instead of a button. It corresponds to the `href` attribute of the anchor.
|
|
894
895
|
- _props.icon_ `[WPBlockTypeIconRender]`: The icon to be rendered to the left of the menu item label. Can be a Dashicon slug or an SVG WP element.
|
|
895
896
|
- _props.onClick_ `[Function]`: The callback function to be executed when the user clicks the menu item.
|
|
@@ -897,7 +898,7 @@ _Parameters_
|
|
|
897
898
|
|
|
898
899
|
_Returns_
|
|
899
900
|
|
|
900
|
-
- `
|
|
901
|
+
- `React.ReactNode`: The rendered menu item component.
|
|
901
902
|
|
|
902
903
|
### PluginSidebar
|
|
903
904
|
|
|
@@ -954,6 +955,7 @@ _Parameters_
|
|
|
954
955
|
|
|
955
956
|
- _props_ `Object`: Element props.
|
|
956
957
|
- _props.name_ `string`: A string identifying the sidebar. Must be unique for every sidebar registered within the scope of your plugin.
|
|
958
|
+
- _props.children_ `[React.ReactNode]`: Children to be rendered.
|
|
957
959
|
- _props.className_ `[string]`: An optional class name added to the sidebar body.
|
|
958
960
|
- _props.title_ `string`: Title displayed at the top of the sidebar.
|
|
959
961
|
- _props.isPinnable_ `[boolean]`: Whether to allow to pin sidebar to the toolbar. When set to `true` it also automatically renders a corresponding menu item.
|
|
@@ -1000,11 +1002,12 @@ _Parameters_
|
|
|
1000
1002
|
|
|
1001
1003
|
- _props_ `Object`: Component props.
|
|
1002
1004
|
- _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.
|
|
1005
|
+
- _props.children_ `[React.ReactNode]`: Children to be rendered.
|
|
1003
1006
|
- _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.
|
|
1004
1007
|
|
|
1005
1008
|
_Returns_
|
|
1006
1009
|
|
|
1007
|
-
- `
|
|
1010
|
+
- `React.ReactNode`: The rendered component.
|
|
1008
1011
|
|
|
1009
1012
|
### PostAuthor
|
|
1010
1013
|
|
|
@@ -1012,7 +1015,7 @@ Renders the component for selecting the post author.
|
|
|
1012
1015
|
|
|
1013
1016
|
_Returns_
|
|
1014
1017
|
|
|
1015
|
-
- `
|
|
1018
|
+
- `React.ReactNode`: The rendered component.
|
|
1016
1019
|
|
|
1017
1020
|
### PostAuthorCheck
|
|
1018
1021
|
|
|
@@ -1021,11 +1024,11 @@ Wrapper component that renders its children only if the post type supports the a
|
|
|
1021
1024
|
_Parameters_
|
|
1022
1025
|
|
|
1023
1026
|
- _props_ `Object`: The component props.
|
|
1024
|
-
- _props.children_ `
|
|
1027
|
+
- _props.children_ `React.ReactNode`: Children to be rendered.
|
|
1025
1028
|
|
|
1026
1029
|
_Returns_
|
|
1027
1030
|
|
|
1028
|
-
- `
|
|
1031
|
+
- `React.ReactNode`: The component to be rendered. Return `null` if the post type doesn't supports the author or if there are no authors available.
|
|
1029
1032
|
|
|
1030
1033
|
### PostAuthorPanel
|
|
1031
1034
|
|
|
@@ -1033,7 +1036,7 @@ Renders the Post Author Panel component.
|
|
|
1033
1036
|
|
|
1034
1037
|
_Returns_
|
|
1035
1038
|
|
|
1036
|
-
- `
|
|
1039
|
+
- `React.ReactNode`: The rendered component.
|
|
1037
1040
|
|
|
1038
1041
|
### PostComments
|
|
1039
1042
|
|
|
@@ -1041,7 +1044,7 @@ A form for managing comment status.
|
|
|
1041
1044
|
|
|
1042
1045
|
_Returns_
|
|
1043
1046
|
|
|
1044
|
-
- `
|
|
1047
|
+
- `React.ReactNode`: The rendered PostComments component.
|
|
1045
1048
|
|
|
1046
1049
|
### PostDiscussionPanel
|
|
1047
1050
|
|
|
@@ -1049,7 +1052,7 @@ This component allows to update comment and pingback settings for the current po
|
|
|
1049
1052
|
|
|
1050
1053
|
_Returns_
|
|
1051
1054
|
|
|
1052
|
-
- `
|
|
1055
|
+
- `React.ReactNode`: The rendered PostDiscussionPanel component.
|
|
1053
1056
|
|
|
1054
1057
|
### PostExcerpt
|
|
1055
1058
|
|
|
@@ -1068,11 +1071,11 @@ Component for checking if the post type supports the excerpt field.
|
|
|
1068
1071
|
_Parameters_
|
|
1069
1072
|
|
|
1070
1073
|
- _props_ `Object`: Props.
|
|
1071
|
-
- _props.children_ `
|
|
1074
|
+
- _props.children_ `React.ReactNode`: Children to be rendered.
|
|
1072
1075
|
|
|
1073
1076
|
_Returns_
|
|
1074
1077
|
|
|
1075
|
-
- `
|
|
1078
|
+
- `React.ReactNode`: The rendered component.
|
|
1076
1079
|
|
|
1077
1080
|
### PostExcerptPanel
|
|
1078
1081
|
|
|
@@ -1080,7 +1083,7 @@ Is rendered if the post type supports excerpts and allows editing the excerpt.
|
|
|
1080
1083
|
|
|
1081
1084
|
_Returns_
|
|
1082
1085
|
|
|
1083
|
-
- `
|
|
1086
|
+
- `React.ReactNode`: The rendered PostExcerptPanel component.
|
|
1084
1087
|
|
|
1085
1088
|
### PostFeaturedImage
|
|
1086
1089
|
|
|
@@ -1109,11 +1112,11 @@ Wrapper component that renders its children only if the post type supports a fea
|
|
|
1109
1112
|
_Parameters_
|
|
1110
1113
|
|
|
1111
1114
|
- _props_ `Object`: Props.
|
|
1112
|
-
- _props.children_ `
|
|
1115
|
+
- _props.children_ `React.ReactNode`: Children to be rendered.
|
|
1113
1116
|
|
|
1114
1117
|
_Returns_
|
|
1115
1118
|
|
|
1116
|
-
- `
|
|
1119
|
+
- `React.ReactNode`: The rendered component.
|
|
1117
1120
|
|
|
1118
1121
|
### PostFeaturedImagePanel
|
|
1119
1122
|
|
|
@@ -1126,7 +1129,7 @@ _Parameters_
|
|
|
1126
1129
|
|
|
1127
1130
|
_Returns_
|
|
1128
1131
|
|
|
1129
|
-
- `
|
|
1132
|
+
- `React.ReactNode`: The component to be rendered. Return Null if the editor panel is disabled for featured image.
|
|
1130
1133
|
|
|
1131
1134
|
### PostFormat
|
|
1132
1135
|
|
|
@@ -1140,7 +1143,7 @@ _Usage_
|
|
|
1140
1143
|
|
|
1141
1144
|
_Returns_
|
|
1142
1145
|
|
|
1143
|
-
- `
|
|
1146
|
+
- `React.ReactNode`: The rendered PostFormat component.
|
|
1144
1147
|
|
|
1145
1148
|
### PostFormatCheck
|
|
1146
1149
|
|
|
@@ -1149,11 +1152,11 @@ Component check if there are any post formats.
|
|
|
1149
1152
|
_Parameters_
|
|
1150
1153
|
|
|
1151
1154
|
- _props_ `Object`: The component props.
|
|
1152
|
-
- _props.children_ `
|
|
1155
|
+
- _props.children_ `React.ReactNode`: The child elements to render.
|
|
1153
1156
|
|
|
1154
1157
|
_Returns_
|
|
1155
1158
|
|
|
1156
|
-
- `
|
|
1159
|
+
- `React.ReactNode`: The rendered component or null if post formats are disabled.
|
|
1157
1160
|
|
|
1158
1161
|
### PostLastRevision
|
|
1159
1162
|
|
|
@@ -1161,7 +1164,7 @@ Renders the component for displaying the last revision of a post.
|
|
|
1161
1164
|
|
|
1162
1165
|
_Returns_
|
|
1163
1166
|
|
|
1164
|
-
- `
|
|
1167
|
+
- `React.ReactNode`: The rendered component.
|
|
1165
1168
|
|
|
1166
1169
|
### PostLastRevisionCheck
|
|
1167
1170
|
|
|
@@ -1170,11 +1173,11 @@ Wrapper component that renders its children if the post has more than one revisi
|
|
|
1170
1173
|
_Parameters_
|
|
1171
1174
|
|
|
1172
1175
|
- _props_ `Object`: Props.
|
|
1173
|
-
- _props.children_ `
|
|
1176
|
+
- _props.children_ `React.ReactNode`: Children to be rendered.
|
|
1174
1177
|
|
|
1175
1178
|
_Returns_
|
|
1176
1179
|
|
|
1177
|
-
- `
|
|
1180
|
+
- `React.ReactNode`: Rendered child components if post has more than one revision, otherwise null.
|
|
1178
1181
|
|
|
1179
1182
|
### PostLastRevisionPanel
|
|
1180
1183
|
|
|
@@ -1182,7 +1185,7 @@ Renders the panel for displaying the last revision of a post.
|
|
|
1182
1185
|
|
|
1183
1186
|
_Returns_
|
|
1184
1187
|
|
|
1185
|
-
- `
|
|
1188
|
+
- `React.ReactNode`: The rendered component.
|
|
1186
1189
|
|
|
1187
1190
|
### PostLockedModal
|
|
1188
1191
|
|
|
@@ -1190,7 +1193,7 @@ A modal component that is displayed when a post is locked for editing by another
|
|
|
1190
1193
|
|
|
1191
1194
|
_Returns_
|
|
1192
1195
|
|
|
1193
|
-
- `
|
|
1196
|
+
- `React.ReactNode`: The rendered PostLockedModal component.
|
|
1194
1197
|
|
|
1195
1198
|
### PostPendingStatus
|
|
1196
1199
|
|
|
@@ -1198,7 +1201,7 @@ A component for displaying and toggling the pending status of a post.
|
|
|
1198
1201
|
|
|
1199
1202
|
_Returns_
|
|
1200
1203
|
|
|
1201
|
-
- `
|
|
1204
|
+
- `React.ReactNode`: The rendered component.
|
|
1202
1205
|
|
|
1203
1206
|
### PostPendingStatusCheck
|
|
1204
1207
|
|
|
@@ -1207,11 +1210,11 @@ This component checks the publishing status of the current post. If the post is
|
|
|
1207
1210
|
_Parameters_
|
|
1208
1211
|
|
|
1209
1212
|
- _props_ `Object`: Component properties.
|
|
1210
|
-
- _props.children_ `
|
|
1213
|
+
- _props.children_ `React.ReactElement`: Children to be rendered.
|
|
1211
1214
|
|
|
1212
1215
|
_Returns_
|
|
1213
1216
|
|
|
1214
|
-
- `
|
|
1217
|
+
- `React.ReactElement`: The rendered child elements or null if the post is already published or the user doesn't have the capability to publish.
|
|
1215
1218
|
|
|
1216
1219
|
### PostPingbacks
|
|
1217
1220
|
|
|
@@ -1232,7 +1235,7 @@ _Parameters_
|
|
|
1232
1235
|
|
|
1233
1236
|
_Returns_
|
|
1234
1237
|
|
|
1235
|
-
- `
|
|
1238
|
+
- `React.ReactNode`: The rendered button component.
|
|
1236
1239
|
|
|
1237
1240
|
### PostPublishButton
|
|
1238
1241
|
|
|
@@ -1274,7 +1277,7 @@ _Parameters_
|
|
|
1274
1277
|
|
|
1275
1278
|
_Returns_
|
|
1276
1279
|
|
|
1277
|
-
- `
|
|
1280
|
+
- `React.ReactNode`: The rendered component.
|
|
1278
1281
|
|
|
1279
1282
|
### PostScheduleCheck
|
|
1280
1283
|
|
|
@@ -1283,11 +1286,11 @@ Wrapper component that renders its children only if post has a publish action.
|
|
|
1283
1286
|
_Parameters_
|
|
1284
1287
|
|
|
1285
1288
|
- _props_ `Object`: Props.
|
|
1286
|
-
- _props.children_ `
|
|
1289
|
+
- _props.children_ `React.ReactElement`: Children to be rendered.
|
|
1287
1290
|
|
|
1288
1291
|
_Returns_
|
|
1289
1292
|
|
|
1290
|
-
- `
|
|
1293
|
+
- `React.ReactElement`: - The component to be rendered or null if there is no publish action.
|
|
1291
1294
|
|
|
1292
1295
|
### PostScheduleLabel
|
|
1293
1296
|
|
|
@@ -1299,7 +1302,7 @@ _Parameters_
|
|
|
1299
1302
|
|
|
1300
1303
|
_Returns_
|
|
1301
1304
|
|
|
1302
|
-
- `
|
|
1305
|
+
- `React.ReactNode`: The rendered component.
|
|
1303
1306
|
|
|
1304
1307
|
### PostSchedulePanel
|
|
1305
1308
|
|
|
@@ -1307,7 +1310,7 @@ Renders the Post Schedule Panel component.
|
|
|
1307
1310
|
|
|
1308
1311
|
_Returns_
|
|
1309
1312
|
|
|
1310
|
-
- `
|
|
1313
|
+
- `React.ReactNode`: The rendered component.
|
|
1311
1314
|
|
|
1312
1315
|
### PostSlug
|
|
1313
1316
|
|
|
@@ -1315,7 +1318,7 @@ Renders the PostSlug component. It provide a control for editing the post slug.
|
|
|
1315
1318
|
|
|
1316
1319
|
_Returns_
|
|
1317
1320
|
|
|
1318
|
-
- `
|
|
1321
|
+
- `React.ReactNode`: The rendered component.
|
|
1319
1322
|
|
|
1320
1323
|
### PostSlugCheck
|
|
1321
1324
|
|
|
@@ -1324,11 +1327,11 @@ Wrapper component that renders its children only if the post type supports the s
|
|
|
1324
1327
|
_Parameters_
|
|
1325
1328
|
|
|
1326
1329
|
- _props_ `Object`: Props.
|
|
1327
|
-
- _props.children_ `
|
|
1330
|
+
- _props.children_ `React.ReactNode`: Children to be rendered.
|
|
1328
1331
|
|
|
1329
1332
|
_Returns_
|
|
1330
1333
|
|
|
1331
|
-
- `
|
|
1334
|
+
- `React.ReactNode`: The rendered component.
|
|
1332
1335
|
|
|
1333
1336
|
### PostSticky
|
|
1334
1337
|
|
|
@@ -1336,7 +1339,7 @@ Renders the PostSticky component. It provides a checkbox control for the sticky
|
|
|
1336
1339
|
|
|
1337
1340
|
_Returns_
|
|
1338
1341
|
|
|
1339
|
-
- `
|
|
1342
|
+
- `React.ReactNode`: The rendered component.
|
|
1340
1343
|
|
|
1341
1344
|
### PostStickyCheck
|
|
1342
1345
|
|
|
@@ -1345,11 +1348,11 @@ Wrapper component that renders its children only if post has a sticky action.
|
|
|
1345
1348
|
_Parameters_
|
|
1346
1349
|
|
|
1347
1350
|
- _props_ `Object`: Props.
|
|
1348
|
-
- _props.children_ `
|
|
1351
|
+
- _props.children_ `React.ReactElement`: Children to be rendered.
|
|
1349
1352
|
|
|
1350
1353
|
_Returns_
|
|
1351
1354
|
|
|
1352
|
-
- `
|
|
1355
|
+
- `React.ReactElement`: The component to be rendered or null if post type is not 'post' or hasStickyAction is false.
|
|
1353
1356
|
|
|
1354
1357
|
### PostSwitchToDraftButton
|
|
1355
1358
|
|
|
@@ -1357,7 +1360,7 @@ Renders a button component that allows the user to switch a post to draft status
|
|
|
1357
1360
|
|
|
1358
1361
|
_Returns_
|
|
1359
1362
|
|
|
1360
|
-
- `
|
|
1363
|
+
- `React.ReactNode`: The rendered component.
|
|
1361
1364
|
|
|
1362
1365
|
### PostSyncStatus
|
|
1363
1366
|
|
|
@@ -1365,7 +1368,7 @@ Renders the sync status of a post.
|
|
|
1365
1368
|
|
|
1366
1369
|
_Returns_
|
|
1367
1370
|
|
|
1368
|
-
- `
|
|
1371
|
+
- `React.ReactNode`: The rendered sync status component.
|
|
1369
1372
|
|
|
1370
1373
|
### PostTaxonomies
|
|
1371
1374
|
|
|
@@ -1387,11 +1390,11 @@ Renders the children components only if the current post type has taxonomies.
|
|
|
1387
1390
|
_Parameters_
|
|
1388
1391
|
|
|
1389
1392
|
- _props_ `Object`: The component props.
|
|
1390
|
-
- _props.children_ `
|
|
1393
|
+
- _props.children_ `React.ReactNode`: The children components to render.
|
|
1391
1394
|
|
|
1392
1395
|
_Returns_
|
|
1393
1396
|
|
|
1394
|
-
- `
|
|
1397
|
+
- `React.ReactElement`: The rendered children components or null if the current post type has no taxonomies.
|
|
1395
1398
|
|
|
1396
1399
|
### PostTaxonomiesFlatTermSelector
|
|
1397
1400
|
|
|
@@ -1405,7 +1408,7 @@ _Parameters_
|
|
|
1405
1408
|
|
|
1406
1409
|
_Returns_
|
|
1407
1410
|
|
|
1408
|
-
- `
|
|
1411
|
+
- `React.ReactNode`: The rendered flat term selector component.
|
|
1409
1412
|
|
|
1410
1413
|
### PostTaxonomiesHierarchicalTermSelector
|
|
1411
1414
|
|
|
@@ -1422,17 +1425,11 @@ _Returns_
|
|
|
1422
1425
|
|
|
1423
1426
|
### PostTaxonomiesPanel
|
|
1424
1427
|
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
_Parameters_
|
|
1428
|
-
|
|
1429
|
-
- _props_ `Object`: The component props.
|
|
1430
|
-
- _props.taxonomy_ `Object`: The taxonomy object.
|
|
1431
|
-
- _props.children_ `Element`: The child components.
|
|
1428
|
+
Component that renders the post taxonomies panel.
|
|
1432
1429
|
|
|
1433
1430
|
_Returns_
|
|
1434
1431
|
|
|
1435
|
-
- `
|
|
1432
|
+
- `React.ReactNode`: The rendered component.
|
|
1436
1433
|
|
|
1437
1434
|
### PostTemplatePanel
|
|
1438
1435
|
|
|
@@ -1440,7 +1437,7 @@ Displays the template controls based on the current editor settings and user per
|
|
|
1440
1437
|
|
|
1441
1438
|
_Returns_
|
|
1442
1439
|
|
|
1443
|
-
- `
|
|
1440
|
+
- `React.ReactNode`: The rendered PostTemplatePanel component.
|
|
1444
1441
|
|
|
1445
1442
|
### PostTextEditor
|
|
1446
1443
|
|
|
@@ -1448,7 +1445,7 @@ Displays the Post Text Editor along with content in Visual and Text mode.
|
|
|
1448
1445
|
|
|
1449
1446
|
_Returns_
|
|
1450
1447
|
|
|
1451
|
-
- `
|
|
1448
|
+
- `React.ReactNode`: The rendered PostTextEditor component.
|
|
1452
1449
|
|
|
1453
1450
|
### PostTitle
|
|
1454
1451
|
|
|
@@ -1461,7 +1458,7 @@ _Parameters_
|
|
|
1461
1458
|
|
|
1462
1459
|
_Returns_
|
|
1463
1460
|
|
|
1464
|
-
- `
|
|
1461
|
+
- `React.ReactNode`: The rendered PostTitle component.
|
|
1465
1462
|
|
|
1466
1463
|
### PostTitleRaw
|
|
1467
1464
|
|
|
@@ -1477,7 +1474,7 @@ _Parameters_
|
|
|
1477
1474
|
|
|
1478
1475
|
_Returns_
|
|
1479
1476
|
|
|
1480
|
-
- `
|
|
1477
|
+
- `React.ReactNode`: The rendered PostTrash component.
|
|
1481
1478
|
|
|
1482
1479
|
### PostTrashCheck
|
|
1483
1480
|
|
|
@@ -1486,11 +1483,11 @@ Wrapper component that renders its children only if the post can trashed.
|
|
|
1486
1483
|
_Parameters_
|
|
1487
1484
|
|
|
1488
1485
|
- _props_ `Object`: - The component props.
|
|
1489
|
-
- _props.children_ `
|
|
1486
|
+
- _props.children_ `React.ReactEl`: - The child components to render.
|
|
1490
1487
|
|
|
1491
1488
|
_Returns_
|
|
1492
1489
|
|
|
1493
|
-
- `
|
|
1490
|
+
- `React.ReactElement`: The rendered child components or null if the post can not trashed.
|
|
1494
1491
|
|
|
1495
1492
|
### PostTypeSupportCheck
|
|
1496
1493
|
|
|
@@ -1499,12 +1496,12 @@ A component which renders its own children only if the current editor post type
|
|
|
1499
1496
|
_Parameters_
|
|
1500
1497
|
|
|
1501
1498
|
- _props_ `Object`: Props.
|
|
1502
|
-
- _props.children_ `
|
|
1499
|
+
- _props.children_ `React.ReactElement`: Children to be rendered if post type supports.
|
|
1503
1500
|
- _props.supportKeys_ `(string|string[])`: String or string array of keys to test.
|
|
1504
1501
|
|
|
1505
1502
|
_Returns_
|
|
1506
1503
|
|
|
1507
|
-
- `
|
|
1504
|
+
- `React.ReactElement`: The component to be rendered.
|
|
1508
1505
|
|
|
1509
1506
|
### PostURL
|
|
1510
1507
|
|
|
@@ -1522,7 +1519,7 @@ _Parameters_
|
|
|
1522
1519
|
|
|
1523
1520
|
_Returns_
|
|
1524
1521
|
|
|
1525
|
-
- `
|
|
1522
|
+
- `React.ReactNode`: The rendered PostURL component.
|
|
1526
1523
|
|
|
1527
1524
|
### PostURLCheck
|
|
1528
1525
|
|
|
@@ -1531,11 +1528,11 @@ Check if the post URL is valid and visible.
|
|
|
1531
1528
|
_Parameters_
|
|
1532
1529
|
|
|
1533
1530
|
- _props_ `Object`: The component props.
|
|
1534
|
-
- _props.children_ `
|
|
1531
|
+
- _props.children_ `React.ReactElement`: The child components.
|
|
1535
1532
|
|
|
1536
1533
|
_Returns_
|
|
1537
1534
|
|
|
1538
|
-
- `
|
|
1535
|
+
- `React.ReactElement`: The child components if the post URL is valid and visible, otherwise null.
|
|
1539
1536
|
|
|
1540
1537
|
### PostURLLabel
|
|
1541
1538
|
|
|
@@ -1543,7 +1540,7 @@ Represents a label component for a post URL.
|
|
|
1543
1540
|
|
|
1544
1541
|
_Returns_
|
|
1545
1542
|
|
|
1546
|
-
- `
|
|
1543
|
+
- `React.ReactNode`: The PostURLLabel component.
|
|
1547
1544
|
|
|
1548
1545
|
### PostURLPanel
|
|
1549
1546
|
|
|
@@ -1551,7 +1548,7 @@ Renders the `PostURLPanel` component.
|
|
|
1551
1548
|
|
|
1552
1549
|
_Returns_
|
|
1553
1550
|
|
|
1554
|
-
- `
|
|
1551
|
+
- `React.ReactNode`: The rendered PostURLPanel component.
|
|
1555
1552
|
|
|
1556
1553
|
### PostVisibility
|
|
1557
1554
|
|
|
@@ -1564,7 +1561,7 @@ _Parameters_
|
|
|
1564
1561
|
|
|
1565
1562
|
_Returns_
|
|
1566
1563
|
|
|
1567
|
-
- `
|
|
1564
|
+
- `React.ReactNode`: The rendered component.
|
|
1568
1565
|
|
|
1569
1566
|
### PostVisibilityCheck
|
|
1570
1567
|
|
|
@@ -1577,7 +1574,7 @@ _Parameters_
|
|
|
1577
1574
|
|
|
1578
1575
|
_Returns_
|
|
1579
1576
|
|
|
1580
|
-
- `
|
|
1577
|
+
- `React.ReactNode`: The rendered component.
|
|
1581
1578
|
|
|
1582
1579
|
### PostVisibilityLabel
|
|
1583
1580
|
|
|
@@ -1603,6 +1600,18 @@ _Parameters_
|
|
|
1603
1600
|
- _name_ `string`: Entity name.
|
|
1604
1601
|
- _config_ `Action`: Action configuration.
|
|
1605
1602
|
|
|
1603
|
+
### registerEntityField
|
|
1604
|
+
|
|
1605
|
+
Registers a new DataViews field.
|
|
1606
|
+
|
|
1607
|
+
This is an experimental API and is subject to change. it's only available in the Gutenberg plugin for now.
|
|
1608
|
+
|
|
1609
|
+
_Parameters_
|
|
1610
|
+
|
|
1611
|
+
- _kind_ `string`: Entity kind.
|
|
1612
|
+
- _name_ `string`: Entity name.
|
|
1613
|
+
- _config_ `Field`: Field configuration.
|
|
1614
|
+
|
|
1606
1615
|
### RichText
|
|
1607
1616
|
|
|
1608
1617
|
> **Deprecated** since 5.3, use `wp.blockEditor.RichText` instead.
|
|
@@ -1652,7 +1661,7 @@ _Parameters_
|
|
|
1652
1661
|
|
|
1653
1662
|
_Returns_
|
|
1654
1663
|
|
|
1655
|
-
- `
|
|
1664
|
+
- `React.ReactNode`: The rendered table of contents component.
|
|
1656
1665
|
|
|
1657
1666
|
### TextEditorGlobalKeyboardShortcuts
|
|
1658
1667
|
|
|
@@ -1667,12 +1676,12 @@ Checks if the current theme supports specific features and renders the children
|
|
|
1667
1676
|
_Parameters_
|
|
1668
1677
|
|
|
1669
1678
|
- _props_ `Object`: The component props.
|
|
1670
|
-
- _props.children_ `
|
|
1679
|
+
- _props.children_ `React.ReactElement`: The children to render if the theme supports the specified features.
|
|
1671
1680
|
- _props.supportKeys_ `string|string[]`: The key(s) of the theme support(s) to check.
|
|
1672
1681
|
|
|
1673
1682
|
_Returns_
|
|
1674
1683
|
|
|
1675
|
-
- `
|
|
1684
|
+
- `React.ReactElement`: The rendered children if the theme supports the specified features, otherwise null.
|
|
1676
1685
|
|
|
1677
1686
|
### TimeToRead
|
|
1678
1687
|
|
|
@@ -1680,7 +1689,7 @@ Component for showing Time To Read in Content.
|
|
|
1680
1689
|
|
|
1681
1690
|
_Returns_
|
|
1682
1691
|
|
|
1683
|
-
- `
|
|
1692
|
+
- `React.ReactNode`: The rendered TimeToRead component.
|
|
1684
1693
|
|
|
1685
1694
|
### transformStyles
|
|
1686
1695
|
|
|
@@ -1698,13 +1707,25 @@ _Parameters_
|
|
|
1698
1707
|
- _name_ `string`: Entity name.
|
|
1699
1708
|
- _actionId_ `string`: Action ID.
|
|
1700
1709
|
|
|
1710
|
+
### unregisterEntityField
|
|
1711
|
+
|
|
1712
|
+
Unregisters a DataViews field.
|
|
1713
|
+
|
|
1714
|
+
This is an experimental API and is subject to change. it's only available in the Gutenberg plugin for now.
|
|
1715
|
+
|
|
1716
|
+
_Parameters_
|
|
1717
|
+
|
|
1718
|
+
- _kind_ `string`: Entity kind.
|
|
1719
|
+
- _name_ `string`: Entity name.
|
|
1720
|
+
- _fieldId_ `string`: Field ID.
|
|
1721
|
+
|
|
1701
1722
|
### UnsavedChangesWarning
|
|
1702
1723
|
|
|
1703
1724
|
Warns the user if there are unsaved changes before leaving the editor. Compatible with Post Editor and Site Editor.
|
|
1704
1725
|
|
|
1705
1726
|
_Returns_
|
|
1706
1727
|
|
|
1707
|
-
- `
|
|
1728
|
+
- `React.ReactNode`: The component.
|
|
1708
1729
|
|
|
1709
1730
|
### URLInput
|
|
1710
1731
|
|
|
@@ -1791,7 +1812,7 @@ Renders the word count of the post content.
|
|
|
1791
1812
|
|
|
1792
1813
|
_Returns_
|
|
1793
1814
|
|
|
1794
|
-
- `
|
|
1815
|
+
- `React.ReactNode`: The rendered WordCount component.
|
|
1795
1816
|
|
|
1796
1817
|
### WritingFlow
|
|
1797
1818
|
|