@wordpress/editor 14.2.0 → 14.4.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 +8 -0
- package/README.md +2 -1
- package/build/bindings/api.js +65 -0
- package/build/bindings/api.js.map +1 -0
- package/build/bindings/pattern-overrides.js +26 -13
- package/build/bindings/pattern-overrides.js.map +1 -1
- package/build/bindings/post-meta.js +27 -12
- package/build/bindings/post-meta.js.map +1 -1
- package/build/components/block-settings-menu/content-only-settings-menu.js +4 -1
- package/build/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
- package/build/components/blog-title/index.js +6 -2
- package/build/components/blog-title/index.js.map +1 -1
- package/build/components/collapsible-block-toolbar/index.js +2 -3
- package/build/components/collapsible-block-toolbar/index.js.map +1 -1
- package/build/components/editor-interface/index.js +2 -1
- package/build/components/editor-interface/index.js.map +1 -1
- package/build/components/entities-saved-states/index.js +1 -1
- package/build/components/entities-saved-states/index.js.map +1 -1
- package/build/components/global-styles-provider/index.js +15 -3
- package/build/components/global-styles-provider/index.js.map +1 -1
- package/build/components/header/back-button.js +7 -8
- package/build/components/header/back-button.js.map +1 -1
- package/build/components/header/index.js +19 -17
- package/build/components/header/index.js.map +1 -1
- package/build/components/inserter-sidebar/index.js +10 -21
- package/build/components/inserter-sidebar/index.js.map +1 -1
- package/build/components/list-view-sidebar/index.js +19 -47
- package/build/components/list-view-sidebar/index.js.map +1 -1
- package/build/components/page-attributes/order.js +1 -67
- package/build/components/page-attributes/order.js.map +1 -1
- package/build/components/page-attributes/panel.js +1 -4
- package/build/components/page-attributes/panel.js.map +1 -1
- package/build/components/page-attributes/parent.js +2 -1
- package/build/components/page-attributes/parent.js.map +1 -1
- package/build/components/post-actions/actions.js +189 -244
- package/build/components/post-actions/actions.js.map +1 -1
- package/build/components/post-actions/index.js +1 -1
- package/build/components/post-actions/index.js.map +1 -1
- package/build/components/post-card-panel/index.js +8 -2
- 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-content-information/index.js +7 -1
- package/build/components/post-content-information/index.js.map +1 -1
- package/build/components/post-discussion/panel.js +2 -2
- package/build/components/post-discussion/panel.js.map +1 -1
- package/build/components/post-excerpt/panel.js +2 -2
- package/build/components/post-excerpt/panel.js.map +1 -1
- package/build/components/post-featured-image/index.js +3 -1
- package/build/components/post-featured-image/index.js.map +1 -1
- package/build/components/post-last-revision/index.js +2 -1
- package/build/components/post-last-revision/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-button/index.js +4 -11
- package/build/components/post-publish-button/index.js.map +1 -1
- package/build/components/post-publish-panel/index.js +1 -1
- package/build/components/post-publish-panel/index.js.map +1 -1
- package/build/components/post-publish-panel/maybe-category-panel.js +4 -1
- package/build/components/post-publish-panel/maybe-category-panel.js.map +1 -1
- package/build/components/post-publish-panel/maybe-tags-panel.js +2 -1
- package/build/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
- package/build/components/post-saved-state/index.js +11 -1
- package/build/components/post-saved-state/index.js.map +1 -1
- package/build/components/post-schedule/index.js +3 -0
- package/build/components/post-schedule/index.js.map +1 -1
- package/build/components/post-status/index.js +32 -11
- package/build/components/post-status/index.js.map +1 -1
- package/build/components/post-taxonomies/flat-term-selector.js +17 -6
- package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build/components/post-taxonomies/index.js +7 -1
- package/build/components/post-taxonomies/index.js.map +1 -1
- package/build/components/post-template/block-theme.js +4 -4
- package/build/components/post-template/block-theme.js.map +1 -1
- package/build/components/post-template/classic-theme.js +8 -2
- package/build/components/post-template/classic-theme.js.map +1 -1
- package/build/components/post-template/create-new-template.js +4 -1
- package/build/components/post-template/create-new-template.js.map +1 -1
- package/build/components/post-template/hooks.js +5 -1
- package/build/components/post-template/hooks.js.map +1 -1
- package/build/components/post-template/panel.js +8 -2
- package/build/components/post-template/panel.js.map +1 -1
- package/build/components/post-title/index.js +5 -13
- package/build/components/post-title/index.js.map +1 -1
- package/build/components/post-trash/check.js +6 -4
- package/build/components/post-trash/check.js.map +1 -1
- package/build/components/post-url/panel.js +6 -2
- package/build/components/post-url/panel.js.map +1 -1
- package/build/components/posts-per-page/index.js +6 -2
- package/build/components/posts-per-page/index.js.map +1 -1
- package/build/components/preview-dropdown/index.js +1 -1
- package/build/components/preview-dropdown/index.js.map +1 -1
- package/build/components/provider/index.native.js +0 -4
- package/build/components/provider/index.native.js.map +1 -1
- package/build/components/provider/use-block-editor-settings.js +21 -9
- package/build/components/provider/use-block-editor-settings.js.map +1 -1
- package/build/components/save-publish-panels/index.js +30 -17
- package/build/components/save-publish-panels/index.js.map +1 -1
- package/build/components/sidebar/index.js +3 -7
- package/build/components/sidebar/index.js.map +1 -1
- package/build/components/sidebar/post-summary.js +1 -2
- package/build/components/sidebar/post-summary.js.map +1 -1
- package/build/components/site-discussion/index.js +7 -3
- package/build/components/site-discussion/index.js.map +1 -1
- package/build/components/template-content-panel/index.js +28 -3
- package/build/components/template-content-panel/index.js.map +1 -1
- package/build/components/visual-editor/edit-template-blocks-notification.js +4 -4
- package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build/components/visual-editor/index.js +6 -3
- package/build/components/visual-editor/index.js.map +1 -1
- package/build/{hooks → components/visual-editor}/use-select-nearest-editable-block.js +1 -1
- package/build/components/visual-editor/use-select-nearest-editable-block.js.map +1 -0
- package/build/dataviews/actions/delete-post.js +98 -0
- package/build/dataviews/actions/delete-post.js.map +1 -0
- package/build/{components/post-actions/export-pattern-action.js → dataviews/actions/export-pattern.js} +11 -20
- package/build/dataviews/actions/export-pattern.js.map +1 -0
- package/build/dataviews/actions/index.js +32 -0
- package/build/dataviews/actions/index.js.map +1 -0
- package/build/dataviews/actions/reset-post.js +111 -0
- package/build/dataviews/actions/reset-post.js.map +1 -0
- package/build/dataviews/actions/utils.js +50 -0
- package/build/dataviews/actions/utils.js.map +1 -0
- package/build/dataviews/store/private-actions.js.map +1 -1
- package/build/dataviews/store/private-selectors.js +6 -6
- package/build/dataviews/store/private-selectors.js.map +1 -1
- package/build/dataviews/store/reducer.js +6 -2
- package/build/dataviews/store/reducer.js.map +1 -1
- package/build/dataviews/types.js +6 -0
- package/build/dataviews/types.js.map +1 -0
- package/build/hooks/pattern-overrides.js +3 -3
- package/build/hooks/pattern-overrides.js.map +1 -1
- package/build/index.js +0 -1
- package/build/index.js.map +1 -1
- package/build/private-apis.js +5 -0
- package/build/private-apis.js.map +1 -1
- package/build/private-apis.native.js +0 -2
- package/build/private-apis.native.js.map +1 -1
- package/build/store/constants.js.map +1 -1
- package/build/store/private-actions.js +1 -1
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +0 -18
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/utils/is-template-revertable.js +6 -8
- package/build/store/utils/is-template-revertable.js.map +1 -1
- package/build/utils/media-upload/index.js +35 -2
- package/build/utils/media-upload/index.js.map +1 -1
- package/build-module/bindings/api.js +57 -0
- package/build-module/bindings/api.js.map +1 -0
- package/build-module/bindings/pattern-overrides.js +26 -13
- package/build-module/bindings/pattern-overrides.js.map +1 -1
- package/build-module/bindings/post-meta.js +27 -12
- package/build-module/bindings/post-meta.js.map +1 -1
- package/build-module/components/block-settings-menu/content-only-settings-menu.js +4 -1
- package/build-module/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
- package/build-module/components/blog-title/index.js +6 -2
- package/build-module/components/blog-title/index.js.map +1 -1
- package/build-module/components/collapsible-block-toolbar/index.js +1 -2
- package/build-module/components/collapsible-block-toolbar/index.js.map +1 -1
- package/build-module/components/editor-interface/index.js +2 -1
- package/build-module/components/editor-interface/index.js.map +1 -1
- package/build-module/components/entities-saved-states/index.js +1 -1
- package/build-module/components/entities-saved-states/index.js.map +1 -1
- package/build-module/components/global-styles-provider/index.js +15 -3
- package/build-module/components/global-styles-provider/index.js.map +1 -1
- package/build-module/components/header/back-button.js +5 -7
- package/build-module/components/header/back-button.js.map +1 -1
- package/build-module/components/header/index.js +19 -19
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/inserter-sidebar/index.js +11 -22
- package/build-module/components/inserter-sidebar/index.js.map +1 -1
- package/build-module/components/list-view-sidebar/index.js +20 -49
- package/build-module/components/list-view-sidebar/index.js.map +1 -1
- package/build-module/components/page-attributes/order.js +4 -70
- package/build-module/components/page-attributes/order.js.map +1 -1
- package/build-module/components/page-attributes/panel.js +1 -6
- package/build-module/components/page-attributes/panel.js.map +1 -1
- package/build-module/components/page-attributes/parent.js +2 -1
- package/build-module/components/page-attributes/parent.js.map +1 -1
- package/build-module/components/post-actions/actions.js +186 -240
- package/build-module/components/post-actions/actions.js.map +1 -1
- package/build-module/components/post-actions/index.js +1 -1
- package/build-module/components/post-actions/index.js.map +1 -1
- package/build-module/components/post-card-panel/index.js +8 -2
- package/build-module/components/post-card-panel/index.js.map +1 -1
- package/build-module/components/post-comments/index.js +2 -2
- package/build-module/components/post-comments/index.js.map +1 -1
- package/build-module/components/post-content-information/index.js +7 -1
- package/build-module/components/post-content-information/index.js.map +1 -1
- package/build-module/components/post-discussion/panel.js +3 -3
- package/build-module/components/post-discussion/panel.js.map +1 -1
- package/build-module/components/post-excerpt/panel.js +2 -2
- package/build-module/components/post-excerpt/panel.js.map +1 -1
- package/build-module/components/post-featured-image/index.js +3 -1
- package/build-module/components/post-featured-image/index.js.map +1 -1
- package/build-module/components/post-last-revision/index.js +2 -1
- package/build-module/components/post-last-revision/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-button/index.js +4 -11
- package/build-module/components/post-publish-button/index.js.map +1 -1
- package/build-module/components/post-publish-panel/index.js +1 -1
- package/build-module/components/post-publish-panel/index.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-category-panel.js +4 -1
- package/build-module/components/post-publish-panel/maybe-category-panel.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-tags-panel.js +2 -1
- package/build-module/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
- package/build-module/components/post-saved-state/index.js +11 -1
- package/build-module/components/post-saved-state/index.js.map +1 -1
- package/build-module/components/post-schedule/index.js +3 -0
- package/build-module/components/post-schedule/index.js.map +1 -1
- package/build-module/components/post-status/index.js +31 -11
- package/build-module/components/post-status/index.js.map +1 -1
- package/build-module/components/post-taxonomies/flat-term-selector.js +17 -6
- package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build-module/components/post-taxonomies/index.js +7 -1
- package/build-module/components/post-taxonomies/index.js.map +1 -1
- package/build-module/components/post-template/block-theme.js +4 -4
- package/build-module/components/post-template/block-theme.js.map +1 -1
- package/build-module/components/post-template/classic-theme.js +8 -2
- package/build-module/components/post-template/classic-theme.js.map +1 -1
- package/build-module/components/post-template/create-new-template.js +4 -1
- package/build-module/components/post-template/create-new-template.js.map +1 -1
- package/build-module/components/post-template/hooks.js +5 -1
- package/build-module/components/post-template/hooks.js.map +1 -1
- package/build-module/components/post-template/panel.js +8 -2
- package/build-module/components/post-template/panel.js.map +1 -1
- package/build-module/components/post-title/index.js +5 -13
- package/build-module/components/post-title/index.js.map +1 -1
- package/build-module/components/post-trash/check.js +6 -4
- package/build-module/components/post-trash/check.js.map +1 -1
- package/build-module/components/post-url/panel.js +6 -2
- package/build-module/components/post-url/panel.js.map +1 -1
- package/build-module/components/posts-per-page/index.js +6 -2
- package/build-module/components/posts-per-page/index.js.map +1 -1
- package/build-module/components/preview-dropdown/index.js +1 -1
- package/build-module/components/preview-dropdown/index.js.map +1 -1
- package/build-module/components/provider/index.native.js +0 -4
- package/build-module/components/provider/index.native.js.map +1 -1
- package/build-module/components/provider/use-block-editor-settings.js +21 -9
- package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
- package/build-module/components/save-publish-panels/index.js +30 -17
- package/build-module/components/save-publish-panels/index.js.map +1 -1
- package/build-module/components/sidebar/index.js +3 -7
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/sidebar/post-summary.js +1 -2
- package/build-module/components/sidebar/post-summary.js.map +1 -1
- package/build-module/components/site-discussion/index.js +8 -4
- package/build-module/components/site-discussion/index.js.map +1 -1
- package/build-module/components/template-content-panel/index.js +29 -4
- package/build-module/components/template-content-panel/index.js.map +1 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.js +4 -4
- package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build-module/components/visual-editor/index.js +6 -3
- package/build-module/components/visual-editor/index.js.map +1 -1
- package/build-module/{hooks → components/visual-editor}/use-select-nearest-editable-block.js +1 -1
- package/build-module/components/visual-editor/use-select-nearest-editable-block.js.map +1 -0
- package/build-module/dataviews/actions/delete-post.js +89 -0
- package/build-module/dataviews/actions/delete-post.js.map +1 -0
- package/build-module/{components/post-actions/export-pattern-action.js → dataviews/actions/export-pattern.js} +10 -19
- package/build-module/dataviews/actions/export-pattern.js.map +1 -0
- package/build-module/dataviews/actions/index.js +24 -0
- package/build-module/dataviews/actions/index.js.map +1 -0
- package/build-module/dataviews/actions/reset-post.js +104 -0
- package/build-module/dataviews/actions/reset-post.js.map +1 -0
- package/build-module/dataviews/actions/utils.js +41 -0
- package/build-module/dataviews/actions/utils.js.map +1 -0
- package/build-module/dataviews/store/private-actions.js.map +1 -1
- package/build-module/dataviews/store/private-selectors.js +5 -5
- package/build-module/dataviews/store/private-selectors.js.map +1 -1
- package/build-module/dataviews/store/reducer.js +6 -2
- package/build-module/dataviews/store/reducer.js.map +1 -1
- package/build-module/dataviews/types.js +2 -0
- package/build-module/dataviews/types.js.map +1 -0
- package/build-module/hooks/pattern-overrides.js +4 -2
- package/build-module/hooks/pattern-overrides.js.map +1 -1
- package/build-module/index.js +0 -1
- package/build-module/index.js.map +1 -1
- package/build-module/private-apis.js +5 -0
- package/build-module/private-apis.js.map +1 -1
- package/build-module/private-apis.native.js +0 -2
- package/build-module/private-apis.native.js.map +1 -1
- package/build-module/store/constants.js.map +1 -1
- package/build-module/store/private-actions.js +1 -1
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +0 -17
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/utils/is-template-revertable.js +6 -8
- package/build-module/store/utils/is-template-revertable.js.map +1 -1
- package/build-module/utils/media-upload/index.js +36 -3
- package/build-module/utils/media-upload/index.js.map +1 -1
- package/build-style/style-rtl.css +93 -95
- package/build-style/style.css +93 -95
- package/build-types/bindings/api.d.ts +25 -0
- package/build-types/bindings/api.d.ts.map +1 -0
- package/build-types/bindings/pattern-overrides.d.ts +17 -0
- package/build-types/bindings/pattern-overrides.d.ts.map +1 -0
- package/build-types/bindings/post-meta.d.ts +23 -0
- package/build-types/bindings/post-meta.d.ts.map +1 -0
- package/build-types/components/autocompleters/index.d.ts +2 -0
- package/build-types/components/autocompleters/index.d.ts.map +1 -0
- package/build-types/components/autocompleters/user.d.ts +6 -0
- package/build-types/components/autocompleters/user.d.ts.map +1 -0
- package/build-types/components/autosave-monitor/index.d.ts +15 -0
- package/build-types/components/autosave-monitor/index.d.ts.map +1 -0
- package/build-types/components/block-manager/category.d.ts +6 -0
- package/build-types/components/block-manager/category.d.ts.map +1 -0
- package/build-types/components/block-manager/checklist.d.ts +7 -0
- package/build-types/components/block-manager/checklist.d.ts.map +1 -0
- package/build-types/components/block-manager/index.d.ts +3 -0
- package/build-types/components/block-manager/index.d.ts.map +1 -0
- package/build-types/components/block-removal-warnings/index.d.ts +2 -0
- package/build-types/components/block-removal-warnings/index.d.ts.map +1 -0
- package/build-types/components/block-settings-menu/content-only-settings-menu.d.ts +2 -0
- package/build-types/components/block-settings-menu/content-only-settings-menu.d.ts.map +1 -0
- package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts +65 -0
- package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts.map +1 -0
- package/build-types/components/blog-title/index.d.ts +2 -0
- package/build-types/components/blog-title/index.d.ts.map +1 -0
- package/build-types/components/character-count/index.d.ts +7 -0
- package/build-types/components/character-count/index.d.ts.map +1 -0
- package/build-types/components/collapsible-block-toolbar/index.d.ts +5 -0
- package/build-types/components/collapsible-block-toolbar/index.d.ts.map +1 -0
- package/build-types/components/commands/index.d.ts +2 -0
- package/build-types/components/commands/index.d.ts.map +1 -0
- package/build-types/components/create-template-part-modal/index.d.ts +14 -0
- package/build-types/components/create-template-part-modal/index.d.ts.map +1 -0
- package/build-types/components/create-template-part-modal/utils.d.ts +4 -0
- package/build-types/components/create-template-part-modal/utils.d.ts.map +1 -0
- package/build-types/components/deprecated.d.ts +182 -0
- package/build-types/components/deprecated.d.ts.map +1 -0
- package/build-types/components/document-bar/index.d.ts +22 -0
- package/build-types/components/document-bar/index.d.ts.map +1 -0
- package/build-types/components/document-outline/check.d.ts +12 -0
- package/build-types/components/document-outline/check.d.ts.map +1 -0
- package/build-types/components/document-outline/index.d.ts +16 -0
- package/build-types/components/document-outline/index.d.ts.map +1 -0
- package/build-types/components/document-outline/item.d.ts +9 -0
- package/build-types/components/document-outline/item.d.ts.map +1 -0
- package/build-types/components/document-tools/index.d.ts +6 -0
- package/build-types/components/document-tools/index.d.ts.map +1 -0
- package/build-types/components/editor/index.d.ts +14 -0
- package/build-types/components/editor/index.d.ts.map +1 -0
- package/build-types/components/editor-history/redo.d.ts +4 -0
- package/build-types/components/editor-history/redo.d.ts.map +1 -0
- package/build-types/components/editor-history/undo.d.ts +4 -0
- package/build-types/components/editor-history/undo.d.ts.map +1 -0
- package/build-types/components/editor-interface/content-slot-fill.d.ts +3 -0
- package/build-types/components/editor-interface/content-slot-fill.d.ts.map +1 -0
- package/build-types/components/editor-interface/index.d.ts +17 -0
- package/build-types/components/editor-interface/index.d.ts.map +1 -0
- package/build-types/components/editor-notices/index.d.ts +13 -0
- package/build-types/components/editor-notices/index.d.ts.map +1 -0
- package/build-types/components/editor-snackbars/index.d.ts +7 -0
- package/build-types/components/editor-snackbars/index.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/entity-record-item.d.ts +6 -0
- package/build-types/components/entities-saved-states/entity-record-item.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/entity-type-list.d.ts +6 -0
- package/build-types/components/entities-saved-states/entity-type-list.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/hooks/use-is-dirty.d.ts +2 -0
- package/build-types/components/entities-saved-states/hooks/use-is-dirty.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/index.d.ts +43 -0
- package/build-types/components/entities-saved-states/index.d.ts.map +1 -0
- package/build-types/components/error-boundary/index.d.ts +14 -0
- package/build-types/components/error-boundary/index.d.ts.map +1 -0
- package/build-types/components/global-keyboard-shortcuts/index.d.ts +9 -0
- package/build-types/components/global-keyboard-shortcuts/index.d.ts.map +1 -0
- package/build-types/components/global-keyboard-shortcuts/register-shortcuts.d.ts +8 -0
- package/build-types/components/global-keyboard-shortcuts/register-shortcuts.d.ts.map +1 -0
- package/build-types/components/global-styles-provider/index.d.ts +20 -0
- package/build-types/components/global-styles-provider/index.d.ts.map +1 -0
- package/build-types/components/header/back-button.d.ts +7 -0
- package/build-types/components/header/back-button.d.ts.map +1 -0
- package/build-types/components/header/index.d.ts +10 -0
- package/build-types/components/header/index.d.ts.map +1 -0
- package/build-types/components/index.d.ts +108 -0
- package/build-types/components/index.d.ts.map +1 -0
- package/build-types/components/inserter-sidebar/index.d.ts +2 -0
- package/build-types/components/inserter-sidebar/index.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/config.d.ts +26 -0
- package/build-types/components/keyboard-shortcut-help-modal/config.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts +5 -0
- package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/index.d.ts +3 -0
- package/build-types/components/keyboard-shortcut-help-modal/index.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts +8 -0
- package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts.map +1 -0
- package/build-types/components/list-view-sidebar/index.d.ts +2 -0
- package/build-types/components/list-view-sidebar/index.d.ts.map +1 -0
- package/build-types/components/list-view-sidebar/list-view-outline.d.ts +2 -0
- package/build-types/components/list-view-sidebar/list-view-outline.d.ts.map +1 -0
- package/build-types/components/local-autosave-monitor/index.d.ts +3 -0
- package/build-types/components/local-autosave-monitor/index.d.ts.map +1 -0
- package/build-types/components/media-categories/index.d.ts +7 -0
- package/build-types/components/media-categories/index.d.ts.map +1 -0
- package/build-types/components/mode-switcher/index.d.ts +3 -0
- package/build-types/components/mode-switcher/index.d.ts.map +1 -0
- package/build-types/components/more-menu/copy-content-menu-item.d.ts +2 -0
- package/build-types/components/more-menu/copy-content-menu-item.d.ts.map +1 -0
- package/build-types/components/more-menu/index.d.ts +2 -0
- package/build-types/components/more-menu/index.d.ts.map +1 -0
- package/build-types/components/more-menu/tools-more-menu-group.d.ts +6 -0
- package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -0
- package/build-types/components/more-menu/view-more-menu-group.d.ts +6 -0
- package/build-types/components/more-menu/view-more-menu-group.d.ts.map +1 -0
- package/build-types/components/page-attributes/check.d.ts +13 -0
- package/build-types/components/page-attributes/check.d.ts.map +1 -0
- package/build-types/components/page-attributes/order.d.ts +9 -0
- package/build-types/components/page-attributes/order.d.ts.map +1 -0
- package/build-types/components/page-attributes/panel.d.ts +7 -0
- package/build-types/components/page-attributes/panel.d.ts.map +1 -0
- package/build-types/components/page-attributes/parent.d.ts +11 -0
- package/build-types/components/page-attributes/parent.d.ts.map +1 -0
- package/build-types/components/pattern-duplicate-modal/index.d.ts +3 -0
- package/build-types/components/pattern-duplicate-modal/index.d.ts.map +1 -0
- package/build-types/components/pattern-overrides-panel/index.d.ts +2 -0
- package/build-types/components/pattern-overrides-panel/index.d.ts.map +1 -0
- package/build-types/components/pattern-rename-modal/index.d.ts +3 -0
- package/build-types/components/pattern-rename-modal/index.d.ts.map +1 -0
- package/build-types/components/plugin-document-setting-panel/index.d.ts +69 -0
- package/build-types/components/plugin-document-setting-panel/index.d.ts.map +1 -0
- package/build-types/components/plugin-more-menu-item/index.d.ts +3 -0
- package/build-types/components/plugin-more-menu-item/index.d.ts.map +1 -0
- package/build-types/components/plugin-post-publish-panel/index.d.ts +47 -0
- package/build-types/components/plugin-post-publish-panel/index.d.ts.map +1 -0
- package/build-types/components/plugin-post-status-info/index.d.ts +57 -0
- package/build-types/components/plugin-post-status-info/index.d.ts.map +1 -0
- package/build-types/components/plugin-pre-publish-panel/index.d.ts +50 -0
- package/build-types/components/plugin-pre-publish-panel/index.d.ts.map +1 -0
- package/build-types/components/plugin-sidebar/index.d.ts +73 -0
- package/build-types/components/plugin-sidebar/index.d.ts.map +1 -0
- package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts +52 -0
- package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts.map +1 -0
- package/build-types/components/post-actions/actions.d.ts +31 -0
- package/build-types/components/post-actions/actions.d.ts.map +1 -0
- package/build-types/components/post-actions/index.d.ts +5 -0
- package/build-types/components/post-actions/index.d.ts.map +1 -0
- package/build-types/components/post-author/check.d.ts +13 -0
- package/build-types/components/post-author/check.d.ts.map +1 -0
- package/build-types/components/post-author/combobox.d.ts +2 -0
- package/build-types/components/post-author/combobox.d.ts.map +1 -0
- package/build-types/components/post-author/constants.d.ts +9 -0
- package/build-types/components/post-author/constants.d.ts.map +1 -0
- package/build-types/components/post-author/hook.d.ts +6 -0
- package/build-types/components/post-author/hook.d.ts.map +1 -0
- package/build-types/components/post-author/index.d.ts +8 -0
- package/build-types/components/post-author/index.d.ts.map +1 -0
- package/build-types/components/post-author/panel.d.ts +8 -0
- package/build-types/components/post-author/panel.d.ts.map +1 -0
- package/build-types/components/post-author/select.d.ts +2 -0
- package/build-types/components/post-author/select.d.ts.map +1 -0
- package/build-types/components/post-card-panel/index.d.ts +4 -0
- package/build-types/components/post-card-panel/index.d.ts.map +1 -0
- package/build-types/components/post-comments/index.d.ts +3 -0
- package/build-types/components/post-comments/index.d.ts.map +1 -0
- package/build-types/components/post-content-information/index.d.ts +2 -0
- package/build-types/components/post-content-information/index.d.ts.map +1 -0
- package/build-types/components/post-discussion/panel.d.ts +10 -0
- package/build-types/components/post-discussion/panel.d.ts.map +1 -0
- package/build-types/components/post-excerpt/check.d.ts +13 -0
- package/build-types/components/post-excerpt/check.d.ts.map +1 -0
- package/build-types/components/post-excerpt/index.d.ts +15 -0
- package/build-types/components/post-excerpt/index.d.ts.map +1 -0
- package/build-types/components/post-excerpt/panel.d.ts +8 -0
- package/build-types/components/post-excerpt/panel.d.ts.map +1 -0
- package/build-types/components/post-excerpt/plugin.d.ts +53 -0
- package/build-types/components/post-excerpt/plugin.d.ts.map +1 -0
- package/build-types/components/post-featured-image/check.d.ts +14 -0
- package/build-types/components/post-featured-image/check.d.ts.map +1 -0
- package/build-types/components/post-featured-image/index.d.ts +3 -0
- package/build-types/components/post-featured-image/index.d.ts.map +1 -0
- package/build-types/components/post-featured-image/panel.d.ts +13 -0
- package/build-types/components/post-featured-image/panel.d.ts.map +1 -0
- package/build-types/components/post-format/check.d.ts +5 -0
- package/build-types/components/post-format/check.d.ts.map +1 -0
- package/build-types/components/post-format/index.d.ts +16 -0
- package/build-types/components/post-format/index.d.ts.map +1 -0
- package/build-types/components/post-format/panel.d.ts +8 -0
- package/build-types/components/post-format/panel.d.ts.map +1 -0
- package/build-types/components/post-last-edited-panel/index.d.ts +2 -0
- package/build-types/components/post-last-edited-panel/index.d.ts.map +1 -0
- package/build-types/components/post-last-revision/check.d.ts +13 -0
- package/build-types/components/post-last-revision/check.d.ts.map +1 -0
- package/build-types/components/post-last-revision/index.d.ts +9 -0
- package/build-types/components/post-last-revision/index.d.ts.map +1 -0
- package/build-types/components/post-last-revision/panel.d.ts +8 -0
- package/build-types/components/post-last-revision/panel.d.ts.map +1 -0
- package/build-types/components/post-locked-modal/index.d.ts +8 -0
- package/build-types/components/post-locked-modal/index.d.ts.map +1 -0
- package/build-types/components/post-panel-row/index.d.ts +3 -0
- package/build-types/components/post-panel-row/index.d.ts.map +1 -0
- package/build-types/components/post-panel-section/index.d.ts +6 -0
- package/build-types/components/post-panel-section/index.d.ts.map +1 -0
- package/build-types/components/post-pending-status/check.d.ts +15 -0
- package/build-types/components/post-pending-status/check.d.ts.map +1 -0
- package/build-types/components/post-pending-status/index.d.ts +8 -0
- package/build-types/components/post-pending-status/index.d.ts.map +1 -0
- package/build-types/components/post-pingbacks/index.d.ts +3 -0
- package/build-types/components/post-pingbacks/index.d.ts.map +1 -0
- package/build-types/components/post-preview-button/index.d.ts +23 -0
- package/build-types/components/post-preview-button/index.d.ts.map +1 -0
- package/build-types/components/post-publish-button/index.d.ts +17 -0
- package/build-types/components/post-publish-button/index.d.ts.map +1 -0
- package/build-types/components/post-publish-button/label.d.ts +7 -0
- package/build-types/components/post-publish-button/label.d.ts.map +1 -0
- package/build-types/components/post-publish-button/post-publish-button-or-toggle.d.ts +17 -0
- package/build-types/components/post-publish-button/post-publish-button-or-toggle.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/index.d.ts +10 -0
- package/build-types/components/post-publish-panel/index.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-category-panel.d.ts +3 -0
- package/build-types/components/post-publish-panel/maybe-category-panel.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-post-format-panel.d.ts +2 -0
- package/build-types/components/post-publish-panel/maybe-post-format-panel.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-tags-panel.d.ts +3 -0
- package/build-types/components/post-publish-panel/maybe-tags-panel.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-upload-media.d.ts +2 -0
- package/build-types/components/post-publish-panel/maybe-upload-media.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/postpublish.d.ts +3 -0
- package/build-types/components/post-publish-panel/postpublish.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/prepublish.d.ts +5 -0
- package/build-types/components/post-publish-panel/prepublish.d.ts.map +1 -0
- package/build-types/components/post-saved-state/index.d.ts +13 -0
- package/build-types/components/post-saved-state/index.d.ts.map +1 -0
- package/build-types/components/post-schedule/check.d.ts +12 -0
- package/build-types/components/post-schedule/check.d.ts.map +1 -0
- package/build-types/components/post-schedule/index.d.ts +17 -0
- package/build-types/components/post-schedule/index.d.ts.map +1 -0
- package/build-types/components/post-schedule/label.d.ts +25 -0
- package/build-types/components/post-schedule/label.d.ts.map +1 -0
- package/build-types/components/post-schedule/panel.d.ts +7 -0
- package/build-types/components/post-schedule/panel.d.ts.map +1 -0
- package/build-types/components/post-slug/check.d.ts +12 -0
- package/build-types/components/post-slug/check.d.ts.map +1 -0
- package/build-types/components/post-slug/index.d.ts +7 -0
- package/build-types/components/post-slug/index.d.ts.map +1 -0
- package/build-types/components/post-slug/panel.d.ts +3 -0
- package/build-types/components/post-slug/panel.d.ts.map +1 -0
- package/build-types/components/post-status/index.d.ts +6 -0
- package/build-types/components/post-status/index.d.ts.map +1 -0
- package/build-types/components/post-sticky/check.d.ts +12 -0
- package/build-types/components/post-sticky/check.d.ts.map +1 -0
- package/build-types/components/post-sticky/index.d.ts +7 -0
- package/build-types/components/post-sticky/index.d.ts.map +1 -0
- package/build-types/components/post-sticky/panel.d.ts +3 -0
- package/build-types/components/post-sticky/panel.d.ts.map +1 -0
- package/build-types/components/post-switch-to-draft-button/index.d.ts +7 -0
- package/build-types/components/post-switch-to-draft-button/index.d.ts.map +1 -0
- package/build-types/components/post-sync-status/index.d.ts +7 -0
- package/build-types/components/post-sync-status/index.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/check.d.ts +12 -0
- package/build-types/components/post-taxonomies/check.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts +66 -0
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts +104 -0
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/index.d.ts +5 -0
- package/build-types/components/post-taxonomies/index.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/most-used-terms.d.ts +5 -0
- package/build-types/components/post-taxonomies/most-used-terms.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/panel.d.ts +3 -0
- package/build-types/components/post-taxonomies/panel.d.ts.map +1 -0
- package/build-types/components/post-template/block-theme.d.ts +4 -0
- package/build-types/components/post-template/block-theme.d.ts.map +1 -0
- package/build-types/components/post-template/classic-theme.d.ts +3 -0
- package/build-types/components/post-template/classic-theme.d.ts.map +1 -0
- package/build-types/components/post-template/create-new-template-modal.d.ts +4 -0
- package/build-types/components/post-template/create-new-template-modal.d.ts.map +1 -0
- package/build-types/components/post-template/create-new-template.d.ts +4 -0
- package/build-types/components/post-template/create-new-template.d.ts.map +1 -0
- package/build-types/components/post-template/hooks.d.ts +8 -0
- package/build-types/components/post-template/hooks.d.ts.map +1 -0
- package/build-types/components/post-template/panel.d.ts +7 -0
- package/build-types/components/post-template/panel.d.ts.map +1 -0
- package/build-types/components/post-template/reset-default-template.d.ts +4 -0
- package/build-types/components/post-template/reset-default-template.d.ts.map +1 -0
- package/build-types/components/post-template/swap-template-button.d.ts +4 -0
- package/build-types/components/post-template/swap-template-button.d.ts.map +1 -0
- package/build-types/components/post-text-editor/index.d.ts +7 -0
- package/build-types/components/post-text-editor/index.d.ts.map +1 -0
- package/build-types/components/post-title/constants.d.ts +3 -0
- package/build-types/components/post-title/constants.d.ts.map +1 -0
- package/build-types/components/post-title/index.d.ts +3 -0
- package/build-types/components/post-title/index.d.ts.map +1 -0
- package/build-types/components/post-title/post-title-raw.d.ts +3 -0
- package/build-types/components/post-title/post-title-raw.d.ts.map +1 -0
- package/build-types/components/post-title/use-post-title-focus.d.ts +9 -0
- package/build-types/components/post-title/use-post-title-focus.d.ts.map +1 -0
- package/build-types/components/post-title/use-post-title.d.ts +7 -0
- package/build-types/components/post-title/use-post-title.d.ts.map +1 -0
- package/build-types/components/post-transform-panel/hooks.d.ts +2 -0
- package/build-types/components/post-transform-panel/hooks.d.ts.map +1 -0
- package/build-types/components/post-transform-panel/index.d.ts +2 -0
- package/build-types/components/post-transform-panel/index.d.ts.map +1 -0
- package/build-types/components/post-trash/check.d.ts +12 -0
- package/build-types/components/post-trash/check.d.ts.map +1 -0
- package/build-types/components/post-trash/index.d.ts +7 -0
- package/build-types/components/post-trash/index.d.ts.map +1 -0
- package/build-types/components/post-type-support-check/index.d.ts +18 -0
- package/build-types/components/post-type-support-check/index.d.ts.map +1 -0
- package/build-types/components/post-url/check.d.ts +12 -0
- package/build-types/components/post-url/check.d.ts.map +1 -0
- package/build-types/components/post-url/index.d.ts +14 -0
- package/build-types/components/post-url/index.d.ts.map +1 -0
- package/build-types/components/post-url/label.d.ts +13 -0
- package/build-types/components/post-url/label.d.ts.map +1 -0
- package/build-types/components/post-url/panel.d.ts +7 -0
- package/build-types/components/post-url/panel.d.ts.map +1 -0
- package/build-types/components/post-view-link/index.d.ts +2 -0
- package/build-types/components/post-view-link/index.d.ts.map +1 -0
- package/build-types/components/post-visibility/check.d.ts +13 -0
- package/build-types/components/post-visibility/check.d.ts.map +1 -0
- package/build-types/components/post-visibility/index.d.ts +11 -0
- package/build-types/components/post-visibility/index.d.ts.map +1 -0
- package/build-types/components/post-visibility/label.d.ts +13 -0
- package/build-types/components/post-visibility/label.d.ts.map +1 -0
- package/build-types/components/post-visibility/utils.d.ts +21 -0
- package/build-types/components/post-visibility/utils.d.ts.map +1 -0
- package/build-types/components/posts-per-page/index.d.ts +2 -0
- package/build-types/components/posts-per-page/index.d.ts.map +1 -0
- package/build-types/components/preferences-modal/enable-panel.d.ts +3 -0
- package/build-types/components/preferences-modal/enable-panel.d.ts.map +1 -0
- package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts +14 -0
- package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts.map +1 -0
- package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts +3 -0
- package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts.map +1 -0
- package/build-types/components/preferences-modal/index.d.ts +4 -0
- package/build-types/components/preferences-modal/index.d.ts.map +1 -0
- package/build-types/components/preview-dropdown/index.d.ts +5 -0
- package/build-types/components/preview-dropdown/index.d.ts.map +1 -0
- package/build-types/components/provider/disable-non-page-content-blocks.d.ts +6 -0
- package/build-types/components/provider/disable-non-page-content-blocks.d.ts.map +1 -0
- package/build-types/components/provider/index.d.ts +65 -0
- package/build-types/components/provider/index.d.ts.map +1 -0
- package/build-types/components/provider/navigation-block-editing-mode.d.ts +9 -0
- package/build-types/components/provider/navigation-block-editing-mode.d.ts.map +1 -0
- package/build-types/components/provider/use-auto-switch-editor-sidebars.d.ts +7 -0
- package/build-types/components/provider/use-auto-switch-editor-sidebars.d.ts.map +1 -0
- package/build-types/components/provider/use-block-editor-settings.d.ts +13 -0
- package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -0
- package/build-types/components/provider/use-hide-blocks-from-inserter.d.ts +9 -0
- package/build-types/components/provider/use-hide-blocks-from-inserter.d.ts.map +1 -0
- package/build-types/components/provider/with-registry-provider.d.ts +3 -0
- package/build-types/components/provider/with-registry-provider.d.ts.map +1 -0
- package/build-types/components/resizable-editor/index.d.ts +8 -0
- package/build-types/components/resizable-editor/index.d.ts.map +1 -0
- package/build-types/components/resizable-editor/resize-handle.d.ts +5 -0
- package/build-types/components/resizable-editor/resize-handle.d.ts.map +1 -0
- package/build-types/components/save-publish-panels/index.d.ts +11 -0
- package/build-types/components/save-publish-panels/index.d.ts.map +1 -0
- package/build-types/components/sidebar/constants.d.ts +5 -0
- package/build-types/components/sidebar/constants.d.ts.map +1 -0
- package/build-types/components/sidebar/header.d.ts +3 -0
- package/build-types/components/sidebar/header.d.ts.map +1 -0
- package/build-types/components/sidebar/index.d.ts +6 -0
- package/build-types/components/sidebar/index.d.ts.map +1 -0
- package/build-types/components/sidebar/post-summary.d.ts +4 -0
- package/build-types/components/sidebar/post-summary.d.ts.map +1 -0
- package/build-types/components/site-discussion/index.d.ts +2 -0
- package/build-types/components/site-discussion/index.d.ts.map +1 -0
- package/build-types/components/start-page-options/index.d.ts +2 -0
- package/build-types/components/start-page-options/index.d.ts.map +1 -0
- package/build-types/components/start-template-options/index.d.ts +2 -0
- package/build-types/components/start-template-options/index.d.ts.map +1 -0
- package/build-types/components/table-of-contents/index.d.ts +7 -0
- package/build-types/components/table-of-contents/index.d.ts.map +1 -0
- package/build-types/components/table-of-contents/panel.d.ts +6 -0
- package/build-types/components/table-of-contents/panel.d.ts.map +1 -0
- package/build-types/components/template-content-panel/index.d.ts +2 -0
- package/build-types/components/template-content-panel/index.d.ts.map +1 -0
- package/build-types/components/template-part-content-panel/index.d.ts +2 -0
- package/build-types/components/template-part-content-panel/index.d.ts.map +1 -0
- package/build-types/components/template-part-menu-items/convert-to-regular.d.ts +5 -0
- package/build-types/components/template-part-menu-items/convert-to-regular.d.ts.map +1 -0
- package/build-types/components/template-part-menu-items/convert-to-template-part.d.ts +5 -0
- package/build-types/components/template-part-menu-items/convert-to-template-part.d.ts.map +1 -0
- package/build-types/components/template-part-menu-items/index.d.ts +2 -0
- package/build-types/components/template-part-menu-items/index.d.ts.map +1 -0
- package/build-types/components/template-validation-notice/index.d.ts +2 -0
- package/build-types/components/template-validation-notice/index.d.ts.map +1 -0
- package/build-types/components/text-editor/index.d.ts +4 -0
- package/build-types/components/text-editor/index.d.ts.map +1 -0
- package/build-types/components/theme-support-check/index.d.ts +14 -0
- package/build-types/components/theme-support-check/index.d.ts.map +1 -0
- package/build-types/components/time-to-read/index.d.ts +7 -0
- package/build-types/components/time-to-read/index.d.ts.map +1 -0
- package/build-types/components/unsaved-changes-warning/index.d.ts +8 -0
- package/build-types/components/unsaved-changes-warning/index.d.ts.map +1 -0
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts +18 -0
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts.map +1 -0
- package/build-types/components/visual-editor/index.d.ts +10 -0
- package/build-types/components/visual-editor/index.d.ts.map +1 -0
- package/build-types/components/visual-editor/use-select-nearest-editable-block.d.ts +4 -0
- package/build-types/components/visual-editor/use-select-nearest-editable-block.d.ts.map +1 -0
- package/build-types/components/word-count/index.d.ts +7 -0
- package/build-types/components/word-count/index.d.ts.map +1 -0
- package/build-types/dataviews/actions/delete-post.d.ts +5 -0
- package/build-types/dataviews/actions/delete-post.d.ts.map +1 -0
- package/build-types/dataviews/actions/export-pattern.d.ts +8 -0
- package/build-types/dataviews/actions/export-pattern.d.ts.map +1 -0
- package/build-types/dataviews/actions/index.d.ts +2 -0
- package/build-types/dataviews/actions/index.d.ts.map +1 -0
- package/build-types/dataviews/actions/reset-post.d.ts +5 -0
- package/build-types/dataviews/actions/reset-post.d.ts.map +1 -0
- package/build-types/dataviews/actions/utils.d.ts +11 -0
- package/build-types/dataviews/actions/utils.d.ts.map +1 -0
- package/build-types/dataviews/api.d.ts +27 -0
- package/build-types/dataviews/api.d.ts.map +1 -0
- package/build-types/dataviews/store/private-actions.d.ts +2 -2
- package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/dataviews/store/private-selectors.d.ts +1 -5
- package/build-types/dataviews/store/private-selectors.d.ts.map +1 -1
- package/build-types/dataviews/store/reducer.d.ts +5 -1
- package/build-types/dataviews/store/reducer.d.ts.map +1 -1
- package/build-types/dataviews/types.d.ts +34 -0
- package/build-types/dataviews/types.d.ts.map +1 -0
- package/build-types/hooks/custom-sources-backwards-compatibility.d.ts +10 -0
- package/build-types/hooks/custom-sources-backwards-compatibility.d.ts.map +1 -0
- package/build-types/hooks/default-autocompleters.d.ts +2 -0
- package/build-types/hooks/default-autocompleters.d.ts.map +1 -0
- package/build-types/hooks/index.d.ts +2 -0
- package/build-types/hooks/index.d.ts.map +1 -0
- package/build-types/hooks/media-upload.d.ts +2 -0
- package/build-types/hooks/media-upload.d.ts.map +1 -0
- package/build-types/hooks/pattern-overrides.d.ts +2 -0
- package/build-types/hooks/pattern-overrides.d.ts.map +1 -0
- package/build-types/index.d.ts +6 -0
- package/build-types/index.d.ts.map +1 -0
- package/build-types/lock-unlock.d.ts +3 -0
- package/build-types/lock-unlock.d.ts.map +1 -0
- package/build-types/private-apis.d.ts +2 -0
- package/build-types/private-apis.d.ts.map +1 -0
- package/build-types/store/actions.d.ts +367 -0
- package/build-types/store/actions.d.ts.map +1 -0
- package/build-types/store/constants.d.ts +31 -0
- package/build-types/store/constants.d.ts.map +1 -0
- package/build-types/store/defaults.d.ts +21 -0
- package/build-types/store/defaults.d.ts.map +1 -0
- package/build-types/store/index.d.ts +17 -0
- package/build-types/store/index.d.ts.map +1 -0
- package/build-types/store/local-autosave.d.ts +4 -0
- package/build-types/store/local-autosave.d.ts.map +1 -0
- package/build-types/store/private-actions.d.ts +37 -0
- package/build-types/store/private-actions.d.ts.map +1 -0
- package/build-types/store/private-selectors.d.ts +24 -0
- package/build-types/store/private-selectors.d.ts.map +1 -0
- package/build-types/store/reducer.d.ts +228 -0
- package/build-types/store/reducer.d.ts.map +1 -0
- package/build-types/store/selectors.d.ts +853 -0
- package/build-types/store/selectors.d.ts.map +1 -0
- package/build-types/store/utils/is-template-revertable.d.ts +8 -0
- package/build-types/store/utils/is-template-revertable.d.ts.map +1 -0
- package/build-types/store/utils/notice-builder.d.ts +27 -0
- package/build-types/store/utils/notice-builder.d.ts.map +1 -0
- package/build-types/utils/get-template-part-icon.d.ts +9 -0
- package/build-types/utils/get-template-part-icon.d.ts.map +1 -0
- package/build-types/utils/index.d.ts +5 -0
- package/build-types/utils/index.d.ts.map +1 -0
- package/build-types/utils/media-upload/index.d.ts +21 -0
- package/build-types/utils/media-upload/index.d.ts.map +1 -0
- package/build-types/utils/terms.d.ts +12 -0
- package/build-types/utils/terms.d.ts.map +1 -0
- package/build-types/utils/url.d.ts +18 -0
- package/build-types/utils/url.d.ts.map +1 -0
- package/package.json +38 -36
- package/src/bindings/api.js +57 -0
- package/src/bindings/pattern-overrides.js +30 -20
- package/src/bindings/post-meta.js +24 -14
- package/src/components/block-settings-menu/content-only-settings-menu.js +4 -4
- package/src/components/blog-title/index.js +7 -2
- package/src/components/collapsible-block-toolbar/index.js +1 -3
- package/src/components/collapsible-block-toolbar/style.scss +0 -3
- package/src/components/document-bar/style.scss +1 -5
- package/src/components/document-tools/style.scss +4 -4
- package/src/components/editor-interface/index.js +17 -12
- package/src/components/editor-interface/style.scss +4 -0
- package/src/components/entities-saved-states/index.js +1 -1
- package/src/components/global-styles-provider/index.js +22 -11
- package/src/components/header/back-button.js +6 -6
- package/src/components/header/index.js +26 -25
- package/src/components/header/style.scss +64 -21
- package/src/components/inserter-sidebar/index.js +4 -24
- package/src/components/inserter-sidebar/style.scss +1 -6
- package/src/components/list-view-sidebar/index.js +34 -62
- package/src/components/list-view-sidebar/style.scss +0 -34
- package/src/components/page-attributes/order.js +3 -77
- package/src/components/page-attributes/panel.js +1 -7
- package/src/components/page-attributes/parent.js +6 -3
- package/src/components/post-actions/actions.js +227 -304
- package/src/components/post-actions/index.js +1 -1
- package/src/components/post-card-panel/index.js +8 -2
- package/src/components/post-comments/index.js +2 -2
- package/src/components/post-content-information/index.js +7 -1
- package/src/components/post-discussion/panel.js +5 -3
- package/src/components/post-excerpt/panel.js +3 -2
- package/src/components/post-featured-image/index.js +5 -1
- package/src/components/post-featured-image/style.scss +15 -0
- package/src/components/post-last-revision/index.js +1 -0
- package/src/components/post-panel-row/style.scss +1 -1
- package/src/components/post-preview-button/index.js +1 -1
- package/src/components/post-publish-button/index.js +4 -17
- package/src/components/post-publish-panel/index.js +1 -1
- package/src/components/post-publish-panel/maybe-category-panel.js +4 -1
- package/src/components/post-publish-panel/maybe-tags-panel.js +1 -1
- package/src/components/post-saved-state/index.js +11 -1
- package/src/components/post-schedule/index.js +5 -0
- package/src/components/post-status/index.js +19 -11
- package/src/components/post-taxonomies/README.md +1 -1
- package/src/components/post-taxonomies/flat-term-selector.js +19 -5
- package/src/components/post-taxonomies/index.js +8 -1
- package/src/components/post-template/block-theme.js +5 -1
- package/src/components/post-template/classic-theme.js +8 -3
- package/src/components/post-template/create-new-template.js +4 -1
- package/src/components/post-template/hooks.js +8 -2
- package/src/components/post-template/panel.js +10 -2
- package/src/components/post-title/index.js +5 -12
- package/src/components/post-trash/check.js +9 -5
- package/src/components/post-url/panel.js +7 -2
- package/src/components/posts-per-page/index.js +7 -2
- package/src/components/preview-dropdown/index.js +1 -1
- package/src/components/provider/index.native.js +3 -11
- package/src/components/provider/use-block-editor-settings.js +25 -11
- package/src/components/save-publish-panels/index.js +31 -24
- package/src/components/sidebar/index.js +2 -7
- package/src/components/sidebar/post-summary.js +0 -2
- package/src/components/site-discussion/index.js +9 -4
- package/src/components/template-content-panel/index.js +29 -4
- package/src/components/visual-editor/edit-template-blocks-notification.js +5 -1
- package/src/components/visual-editor/index.js +6 -3
- package/src/components/visual-editor/style.scss +1 -2
- package/src/{hooks → components/visual-editor}/use-select-nearest-editable-block.js +1 -1
- package/src/dataviews/actions/delete-post.tsx +109 -0
- package/src/{components/post-actions/export-pattern-action.js → dataviews/actions/export-pattern.tsx} +19 -19
- package/src/dataviews/actions/index.ts +25 -0
- package/src/dataviews/actions/reset-post.tsx +144 -0
- package/src/dataviews/actions/utils.ts +54 -0
- package/src/dataviews/store/private-actions.ts +2 -2
- package/src/dataviews/store/private-selectors.ts +13 -6
- package/src/dataviews/store/reducer.ts +12 -5
- package/src/dataviews/types.ts +33 -0
- package/src/hooks/pattern-overrides.js +5 -2
- package/src/index.js +0 -1
- package/src/private-apis.js +8 -0
- package/src/private-apis.native.js +0 -2
- package/src/store/private-actions.js +1 -6
- package/src/store/private-selectors.js +0 -25
- package/src/store/test/actions.js +9 -3
- package/src/store/utils/is-template-revertable.js +8 -8
- package/src/style.scss +0 -1
- package/src/utils/media-upload/index.js +38 -3
- package/tsconfig.json +3 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/build/bindings/index.js +0 -22
- package/build/bindings/index.js.map +0 -1
- package/build/components/post-actions/export-pattern-action.js.map +0 -1
- package/build/components/post-actions/export-pattern-action.native.js +0 -11
- package/build/components/post-actions/export-pattern-action.native.js.map +0 -1
- package/build/components/template-areas/index.js +0 -84
- package/build/components/template-areas/index.js.map +0 -1
- package/build/hooks/use-select-nearest-editable-block.js.map +0 -1
- package/build/store/utils/get-filtered-template-parts.js +0 -71
- package/build/store/utils/get-filtered-template-parts.js.map +0 -1
- package/build/utils/set-nested-value.js +0 -44
- package/build/utils/set-nested-value.js.map +0 -1
- package/build-module/bindings/index.js +0 -17
- package/build-module/bindings/index.js.map +0 -1
- package/build-module/components/post-actions/export-pattern-action.js.map +0 -1
- package/build-module/components/post-actions/export-pattern-action.native.js +0 -5
- package/build-module/components/post-actions/export-pattern-action.native.js.map +0 -1
- package/build-module/components/template-areas/index.js +0 -78
- package/build-module/components/template-areas/index.js.map +0 -1
- package/build-module/hooks/use-select-nearest-editable-block.js.map +0 -1
- package/build-module/store/utils/get-filtered-template-parts.js +0 -64
- package/build-module/store/utils/get-filtered-template-parts.js.map +0 -1
- package/build-module/utils/set-nested-value.js +0 -38
- package/build-module/utils/set-nested-value.js.map +0 -1
- package/src/bindings/index.js +0 -15
- package/src/components/post-actions/export-pattern-action.native.js +0 -4
- package/src/components/template-areas/index.js +0 -94
- package/src/components/template-areas/style.scss +0 -22
- package/src/store/utils/get-filtered-template-parts.js +0 -69
- package/src/store/utils/test/get-filtered-template-parts.js +0 -189
- package/src/utils/set-nested-value.js +0 -39
- /package/src/store/{constants.js → constants.ts} +0 -0
|
@@ -24,8 +24,13 @@ export default function PostsPerPage() {
|
|
|
24
24
|
const { postsPerPage, isTemplate, postSlug } = useSelect( ( select ) => {
|
|
25
25
|
const { getEditedPostAttribute, getCurrentPostType } =
|
|
26
26
|
select( editorStore );
|
|
27
|
-
const { getEditedEntityRecord } = select( coreStore );
|
|
28
|
-
const siteSettings =
|
|
27
|
+
const { getEditedEntityRecord, canUser } = select( coreStore );
|
|
28
|
+
const siteSettings = canUser( 'read', {
|
|
29
|
+
kind: 'root',
|
|
30
|
+
name: 'site',
|
|
31
|
+
} )
|
|
32
|
+
? getEditedEntityRecord( 'root', 'site' )
|
|
33
|
+
: undefined;
|
|
29
34
|
return {
|
|
30
35
|
isTemplate: getCurrentPostType() === TEMPLATE_POST_TYPE,
|
|
31
36
|
postSlug: getEditedPostAttribute( 'slug' ),
|
|
@@ -50,7 +50,7 @@ export default function PreviewDropdown( { forceIsAutosaveable, disabled } ) {
|
|
|
50
50
|
size: 'compact',
|
|
51
51
|
showTooltip: ! showIconLabels,
|
|
52
52
|
disabled,
|
|
53
|
-
|
|
53
|
+
accessibleWhenDisabled: disabled,
|
|
54
54
|
};
|
|
55
55
|
const menuProps = {
|
|
56
56
|
'aria-label': __( 'View options' ),
|
|
@@ -171,17 +171,9 @@ class NativeEditorProvider extends Component {
|
|
|
171
171
|
);
|
|
172
172
|
|
|
173
173
|
this.subscriptionParentUpdateEditorSettings =
|
|
174
|
-
subscribeUpdateEditorSettings(
|
|
175
|
-
(
|
|
176
|
-
|
|
177
|
-
window.wp.galleryBlockV2Enabled =
|
|
178
|
-
galleryWithImageBlocks;
|
|
179
|
-
}
|
|
180
|
-
updateEditorSettings(
|
|
181
|
-
this.getThemeColors( editorSettings )
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
|
-
);
|
|
174
|
+
subscribeUpdateEditorSettings( ( { ...editorSettings } ) => {
|
|
175
|
+
updateEditorSettings( this.getThemeColors( editorSettings ) );
|
|
176
|
+
} );
|
|
185
177
|
|
|
186
178
|
this.subscriptionParentUpdateCapabilities = subscribeUpdateCapabilities(
|
|
187
179
|
( payload ) => {
|
|
@@ -27,7 +27,7 @@ import { lock, unlock } from '../../lock-unlock';
|
|
|
27
27
|
import { useGlobalStylesContext } from '../global-styles-provider';
|
|
28
28
|
|
|
29
29
|
const EMPTY_BLOCKS_LIST = [];
|
|
30
|
-
const
|
|
30
|
+
const EMPTY_OBJECT = {};
|
|
31
31
|
|
|
32
32
|
function __experimentalReusableBlocksSelect( select ) {
|
|
33
33
|
return (
|
|
@@ -42,7 +42,6 @@ const BLOCK_EDITOR_SETTINGS = [
|
|
|
42
42
|
'__experimentalDiscussionSettings',
|
|
43
43
|
'__experimentalFeatures',
|
|
44
44
|
'__experimentalGlobalStylesBaseStyles',
|
|
45
|
-
'__unstableGalleryWithImageBlocks',
|
|
46
45
|
'alignWide',
|
|
47
46
|
'blockInspectorTabs',
|
|
48
47
|
'allowedMimeTypes',
|
|
@@ -84,12 +83,14 @@ const BLOCK_EDITOR_SETTINGS = [
|
|
|
84
83
|
'__unstableIsPreviewMode',
|
|
85
84
|
'__unstableResolvedAssets',
|
|
86
85
|
'__unstableIsBlockBasedTheme',
|
|
87
|
-
'__experimentalArchiveTitleTypeLabel',
|
|
88
|
-
'__experimentalArchiveTitleNameLabel',
|
|
89
86
|
];
|
|
90
87
|
|
|
91
|
-
const {
|
|
92
|
-
|
|
88
|
+
const {
|
|
89
|
+
globalStylesDataKey,
|
|
90
|
+
globalStylesLinksDataKey,
|
|
91
|
+
selectBlockPatternsKey,
|
|
92
|
+
reusableBlocksSelectKey,
|
|
93
|
+
} = unlock( privateApis );
|
|
93
94
|
|
|
94
95
|
/**
|
|
95
96
|
* React hook used to compute the block editor settings to use for the post editor.
|
|
@@ -132,7 +133,10 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) {
|
|
|
132
133
|
const { getBlockTypes } = select( blocksStore );
|
|
133
134
|
const { getBlocksByName, getBlockAttributes } =
|
|
134
135
|
select( blockEditorStore );
|
|
135
|
-
const siteSettings = canUser( 'read',
|
|
136
|
+
const siteSettings = canUser( 'read', {
|
|
137
|
+
kind: 'root',
|
|
138
|
+
name: 'site',
|
|
139
|
+
} )
|
|
136
140
|
? getEntityRecord( 'root', 'site' )
|
|
137
141
|
: undefined;
|
|
138
142
|
|
|
@@ -166,8 +170,15 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) {
|
|
|
166
170
|
hiddenBlockTypes: get( 'core', 'hiddenBlockTypes' ),
|
|
167
171
|
isDistractionFree: get( 'core', 'distractionFree' ),
|
|
168
172
|
keepCaretInsideBlock: get( 'core', 'keepCaretInsideBlock' ),
|
|
169
|
-
hasUploadPermissions:
|
|
170
|
-
|
|
173
|
+
hasUploadPermissions:
|
|
174
|
+
canUser( 'create', {
|
|
175
|
+
kind: 'root',
|
|
176
|
+
name: 'media',
|
|
177
|
+
} ) ?? true,
|
|
178
|
+
userCanCreatePages: canUser( 'create', {
|
|
179
|
+
kind: 'postType',
|
|
180
|
+
name: 'page',
|
|
181
|
+
} ),
|
|
171
182
|
pageOnFront: siteSettings?.page_on_front,
|
|
172
183
|
pageForPosts: siteSettings?.page_for_posts,
|
|
173
184
|
userPatternCategories: getUserPatternCategories(),
|
|
@@ -179,7 +190,8 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) {
|
|
|
179
190
|
);
|
|
180
191
|
|
|
181
192
|
const { merged: mergedGlobalStyles } = useGlobalStylesContext();
|
|
182
|
-
const globalStylesData = mergedGlobalStyles.styles ??
|
|
193
|
+
const globalStylesData = mergedGlobalStyles.styles ?? EMPTY_OBJECT;
|
|
194
|
+
const globalStylesLinksData = mergedGlobalStyles._links ?? EMPTY_OBJECT;
|
|
183
195
|
|
|
184
196
|
const settingsBlockPatterns =
|
|
185
197
|
settings.__experimentalAdditionalBlockPatterns ?? // WP 6.0
|
|
@@ -268,6 +280,7 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) {
|
|
|
268
280
|
)
|
|
269
281
|
),
|
|
270
282
|
[ globalStylesDataKey ]: globalStylesData,
|
|
283
|
+
[ globalStylesLinksDataKey ]: globalStylesLinksData,
|
|
271
284
|
allowedBlockTypes,
|
|
272
285
|
allowRightClickOverrides,
|
|
273
286
|
focusMode: focusMode && ! forceDisableFocusMode,
|
|
@@ -298,7 +311,7 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) {
|
|
|
298
311
|
__experimentalUndo: undo,
|
|
299
312
|
// Check whether we want all site editor frames to have outlines
|
|
300
313
|
// including the navigation / pattern / parts editors.
|
|
301
|
-
outlineMode: postType === 'wp_template',
|
|
314
|
+
outlineMode: ! isDistractionFree && postType === 'wp_template',
|
|
302
315
|
// Check these two properties: they were not present in the site editor.
|
|
303
316
|
__experimentalCreatePageEntity: createPageEntity,
|
|
304
317
|
__experimentalUserCanCreatePages: userCanCreatePages,
|
|
@@ -340,6 +353,7 @@ function useBlockEditorSettings( settings, postType, postId, renderingMode ) {
|
|
|
340
353
|
setIsInserterOpened,
|
|
341
354
|
sectionRootClientId,
|
|
342
355
|
globalStylesData,
|
|
356
|
+
globalStylesLinksData,
|
|
343
357
|
] );
|
|
344
358
|
}
|
|
345
359
|
|
|
@@ -14,7 +14,6 @@ import PostPublishPanel from '../post-publish-panel';
|
|
|
14
14
|
import PluginPrePublishPanel from '../plugin-pre-publish-panel';
|
|
15
15
|
import PluginPostPublishPanel from '../plugin-post-publish-panel';
|
|
16
16
|
import { store as editorStore } from '../../store';
|
|
17
|
-
import { unlock } from '../../lock-unlock';
|
|
18
17
|
|
|
19
18
|
const { Fill, Slot } = createSlotFill( 'ActionsPanel' );
|
|
20
19
|
|
|
@@ -30,20 +29,26 @@ export default function SavePublishPanels( {
|
|
|
30
29
|
useDispatch( editorStore );
|
|
31
30
|
const {
|
|
32
31
|
publishSidebarOpened,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
32
|
+
isPublishable,
|
|
33
|
+
isDirty,
|
|
34
|
+
hasOtherEntitiesChanges,
|
|
35
|
+
} = useSelect( ( select ) => {
|
|
36
|
+
const {
|
|
37
|
+
isPublishSidebarOpened,
|
|
38
|
+
isEditedPostPublishable,
|
|
39
|
+
isCurrentPostPublished,
|
|
40
|
+
isEditedPostDirty,
|
|
41
|
+
hasNonPostEntityChanges,
|
|
42
|
+
} = select( editorStore );
|
|
43
|
+
const _hasOtherEntitiesChanges = hasNonPostEntityChanges();
|
|
44
|
+
return {
|
|
45
|
+
publishSidebarOpened: isPublishSidebarOpened(),
|
|
46
|
+
isPublishable:
|
|
47
|
+
! isCurrentPostPublished() && isEditedPostPublishable(),
|
|
48
|
+
isDirty: _hasOtherEntitiesChanges || isEditedPostDirty(),
|
|
49
|
+
hasOtherEntitiesChanges: _hasOtherEntitiesChanges,
|
|
50
|
+
};
|
|
51
|
+
}, [] );
|
|
47
52
|
|
|
48
53
|
const openEntitiesSavedStates = useCallback(
|
|
49
54
|
() => setEntitiesSavedStatesCallback( true ),
|
|
@@ -62,29 +67,31 @@ export default function SavePublishPanels( {
|
|
|
62
67
|
PostPublishExtension={ PluginPostPublishPanel.Slot }
|
|
63
68
|
/>
|
|
64
69
|
);
|
|
65
|
-
} else if (
|
|
70
|
+
} else if ( isPublishable && ! hasOtherEntitiesChanges ) {
|
|
66
71
|
unmountableContent = (
|
|
67
|
-
<div className="editor-layout__toggle-
|
|
72
|
+
<div className="editor-layout__toggle-publish-panel">
|
|
68
73
|
<Button
|
|
69
74
|
variant="secondary"
|
|
70
|
-
className="editor-layout__toggle-
|
|
71
|
-
onClick={
|
|
75
|
+
className="editor-layout__toggle-publish-panel-button"
|
|
76
|
+
onClick={ togglePublishSidebar }
|
|
72
77
|
aria-expanded={ false }
|
|
73
78
|
>
|
|
74
|
-
{ __( 'Open
|
|
79
|
+
{ __( 'Open publish panel' ) }
|
|
75
80
|
</Button>
|
|
76
81
|
</div>
|
|
77
82
|
);
|
|
78
83
|
} else {
|
|
79
84
|
unmountableContent = (
|
|
80
|
-
<div className="editor-layout__toggle-
|
|
85
|
+
<div className="editor-layout__toggle-entities-saved-states-panel">
|
|
81
86
|
<Button
|
|
82
87
|
variant="secondary"
|
|
83
|
-
className="editor-layout__toggle-
|
|
84
|
-
onClick={
|
|
88
|
+
className="editor-layout__toggle-entities-saved-states-panel-button"
|
|
89
|
+
onClick={ openEntitiesSavedStates }
|
|
85
90
|
aria-expanded={ false }
|
|
91
|
+
disabled={ ! isDirty }
|
|
92
|
+
accessibleWhenDisabled
|
|
86
93
|
>
|
|
87
|
-
{ __( 'Open
|
|
94
|
+
{ __( 'Open save panel' ) }
|
|
88
95
|
</Button>
|
|
89
96
|
</div>
|
|
90
97
|
);
|
|
@@ -51,7 +51,6 @@ const SIDEBAR_ACTIVE_BY_DEFAULT = Platform.select( {
|
|
|
51
51
|
const SidebarContent = ( {
|
|
52
52
|
tabName,
|
|
53
53
|
keyboardShortcut,
|
|
54
|
-
renderingMode,
|
|
55
54
|
onActionPerformed,
|
|
56
55
|
extraPanels,
|
|
57
56
|
} ) => {
|
|
@@ -112,9 +111,7 @@ const SidebarContent = ( {
|
|
|
112
111
|
<Tabs.TabPanel tabId={ sidebars.document } focusable={ false }>
|
|
113
112
|
<PostSummary onActionPerformed={ onActionPerformed } />
|
|
114
113
|
<PluginDocumentSettingPanel.Slot />
|
|
115
|
-
|
|
116
|
-
<TemplateContentPanel />
|
|
117
|
-
) }
|
|
114
|
+
<TemplateContentPanel />
|
|
118
115
|
<TemplatePartContentPanel />
|
|
119
116
|
<PostTransformPanel />
|
|
120
117
|
<PostTaxonomiesPanel />
|
|
@@ -131,7 +128,7 @@ const SidebarContent = ( {
|
|
|
131
128
|
|
|
132
129
|
const Sidebar = ( { extraPanels, onActionPerformed } ) => {
|
|
133
130
|
useAutoSwitchEditorSidebars();
|
|
134
|
-
const { tabName, keyboardShortcut, showSummary
|
|
131
|
+
const { tabName, keyboardShortcut, showSummary } = useSelect(
|
|
135
132
|
( select ) => {
|
|
136
133
|
const shortcut = select(
|
|
137
134
|
keyboardShortcutsStore
|
|
@@ -160,7 +157,6 @@ const Sidebar = ( { extraPanels, onActionPerformed } ) => {
|
|
|
160
157
|
TEMPLATE_PART_POST_TYPE,
|
|
161
158
|
NAVIGATION_POST_TYPE,
|
|
162
159
|
].includes( select( editorStore ).getCurrentPostType() ),
|
|
163
|
-
renderingMode: select( editorStore ).getRenderingMode(),
|
|
164
160
|
};
|
|
165
161
|
},
|
|
166
162
|
[]
|
|
@@ -187,7 +183,6 @@ const Sidebar = ( { extraPanels, onActionPerformed } ) => {
|
|
|
187
183
|
tabName={ tabName }
|
|
188
184
|
keyboardShortcut={ keyboardShortcut }
|
|
189
185
|
showSummary={ showSummary }
|
|
190
|
-
renderingMode={ renderingMode }
|
|
191
186
|
onActionPerformed={ onActionPerformed }
|
|
192
187
|
extraPanels={ extraPanels }
|
|
193
188
|
/>
|
|
@@ -28,7 +28,6 @@ import BlogTitle from '../blog-title';
|
|
|
28
28
|
import PostsPerPage from '../posts-per-page';
|
|
29
29
|
import SiteDiscussion from '../site-discussion';
|
|
30
30
|
import { store as editorStore } from '../../store';
|
|
31
|
-
import TemplateAreas from '../template-areas';
|
|
32
31
|
import { PrivatePostLastRevision } from '../post-last-revision';
|
|
33
32
|
|
|
34
33
|
/**
|
|
@@ -84,7 +83,6 @@ export default function PostSummary( { onActionPerformed } ) {
|
|
|
84
83
|
<SiteDiscussion />
|
|
85
84
|
<PostFormatPanel />
|
|
86
85
|
</VStack>
|
|
87
|
-
<TemplateAreas />
|
|
88
86
|
{ fills }
|
|
89
87
|
</VStack>
|
|
90
88
|
) }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { __ } from '@wordpress/i18n';
|
|
4
|
+
import { __, _x } from '@wordpress/i18n';
|
|
5
5
|
import { useSelect, useDispatch } from '@wordpress/data';
|
|
6
6
|
import { store as coreStore } from '@wordpress/core-data';
|
|
7
7
|
import {
|
|
@@ -25,7 +25,7 @@ const COMMENT_OPTIONS = [
|
|
|
25
25
|
{
|
|
26
26
|
label: (
|
|
27
27
|
<>
|
|
28
|
-
{
|
|
28
|
+
{ _x( 'Open', 'Adjective: e.g. "Comments are open"' ) }
|
|
29
29
|
<Text variant="muted" size={ 12 }>
|
|
30
30
|
{ __( 'Visitors can add new comments and replies.' ) }
|
|
31
31
|
</Text>
|
|
@@ -55,8 +55,13 @@ export default function SiteDiscussion() {
|
|
|
55
55
|
( select ) => {
|
|
56
56
|
const { getEditedPostAttribute, getCurrentPostType } =
|
|
57
57
|
select( editorStore );
|
|
58
|
-
const { getEditedEntityRecord } = select( coreStore );
|
|
59
|
-
const siteSettings =
|
|
58
|
+
const { getEditedEntityRecord, canUser } = select( coreStore );
|
|
59
|
+
const siteSettings = canUser( 'read', {
|
|
60
|
+
kind: 'root',
|
|
61
|
+
name: 'site',
|
|
62
|
+
} )
|
|
63
|
+
? getEditedEntityRecord( 'root', 'site' )
|
|
64
|
+
: undefined;
|
|
60
65
|
return {
|
|
61
66
|
isTemplate: getCurrentPostType() === TEMPLATE_POST_TYPE,
|
|
62
67
|
postSlug: getEditedPostAttribute( 'slug' ),
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import { useSelect } from '@wordpress/data';
|
|
4
|
+
import { useSelect, useDispatch } from '@wordpress/data';
|
|
5
5
|
import {
|
|
6
6
|
store as blockEditorStore,
|
|
7
7
|
privateApis as blockEditorPrivateApis,
|
|
8
8
|
} from '@wordpress/block-editor';
|
|
9
9
|
import { PanelBody } from '@wordpress/components';
|
|
10
10
|
import { __ } from '@wordpress/i18n';
|
|
11
|
+
import { store as interfaceStore } from '@wordpress/interface';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Internal dependencies
|
|
14
15
|
*/
|
|
15
16
|
import { unlock } from '../../lock-unlock';
|
|
17
|
+
import { TEMPLATE_POST_TYPE } from '../../store/constants';
|
|
18
|
+
import { store as editorStore } from '../../store';
|
|
16
19
|
|
|
17
20
|
const { BlockQuickNavigation } = unlock( blockEditorPrivateApis );
|
|
18
21
|
|
|
@@ -22,15 +25,37 @@ const PAGE_CONTENT_BLOCKS = [
|
|
|
22
25
|
'core/post-title',
|
|
23
26
|
];
|
|
24
27
|
|
|
28
|
+
const TEMPLATE_PART_BLOCK = 'core/template-part';
|
|
29
|
+
|
|
25
30
|
export default function TemplateContentPanel() {
|
|
26
|
-
const
|
|
31
|
+
const { enableComplementaryArea } = useDispatch( interfaceStore );
|
|
32
|
+
const { clientIds, postType, renderingMode } = useSelect( ( select ) => {
|
|
27
33
|
const { getBlocksByName } = select( blockEditorStore );
|
|
28
|
-
|
|
34
|
+
const { getCurrentPostType } = select( editorStore );
|
|
35
|
+
const _postType = getCurrentPostType();
|
|
36
|
+
return {
|
|
37
|
+
postType: _postType,
|
|
38
|
+
clientIds: getBlocksByName(
|
|
39
|
+
TEMPLATE_POST_TYPE === _postType
|
|
40
|
+
? TEMPLATE_PART_BLOCK
|
|
41
|
+
: PAGE_CONTENT_BLOCKS
|
|
42
|
+
),
|
|
43
|
+
renderingMode: select( editorStore ).getRenderingMode(),
|
|
44
|
+
};
|
|
29
45
|
}, [] );
|
|
30
46
|
|
|
47
|
+
if ( renderingMode === 'post-only' && postType !== TEMPLATE_POST_TYPE ) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
|
|
31
51
|
return (
|
|
32
52
|
<PanelBody title={ __( 'Content' ) }>
|
|
33
|
-
<BlockQuickNavigation
|
|
53
|
+
<BlockQuickNavigation
|
|
54
|
+
clientIds={ clientIds }
|
|
55
|
+
onSelect={ () => {
|
|
56
|
+
enableComplementaryArea( 'core', 'edit-post/document' );
|
|
57
|
+
} }
|
|
58
|
+
/>
|
|
34
59
|
</PanelBody>
|
|
35
60
|
);
|
|
36
61
|
}
|
|
@@ -40,7 +40,11 @@ export default function EditTemplateBlocksNotification( { contentRef } ) {
|
|
|
40
40
|
|
|
41
41
|
const canEditTemplate = useSelect(
|
|
42
42
|
( select ) =>
|
|
43
|
-
select( coreStore ).canUser( 'create',
|
|
43
|
+
!! select( coreStore ).canUser( 'create', {
|
|
44
|
+
kind: 'postType',
|
|
45
|
+
name: 'wp_template',
|
|
46
|
+
} ),
|
|
47
|
+
[]
|
|
44
48
|
);
|
|
45
49
|
|
|
46
50
|
const [ isDialogOpen, setIsDialogOpen ] = useState( false );
|
|
@@ -34,7 +34,7 @@ import { store as editorStore } from '../../store';
|
|
|
34
34
|
import { unlock } from '../../lock-unlock';
|
|
35
35
|
import EditTemplateBlocksNotification from './edit-template-blocks-notification';
|
|
36
36
|
import ResizableEditor from '../resizable-editor';
|
|
37
|
-
import useSelectNearestEditableBlock from '
|
|
37
|
+
import useSelectNearestEditableBlock from './use-select-nearest-editable-block';
|
|
38
38
|
import {
|
|
39
39
|
NAVIGATION_POST_TYPE,
|
|
40
40
|
PATTERN_POST_TYPE,
|
|
@@ -142,7 +142,10 @@ function VisualEditor( {
|
|
|
142
142
|
const editorSettings = getEditorSettings();
|
|
143
143
|
const supportsTemplateMode = editorSettings.supportsTemplateMode;
|
|
144
144
|
const postTypeObject = getPostType( postTypeSlug );
|
|
145
|
-
const canEditTemplate = canUser( 'create',
|
|
145
|
+
const canEditTemplate = canUser( 'create', {
|
|
146
|
+
kind: 'postType',
|
|
147
|
+
name: 'wp_template',
|
|
148
|
+
} );
|
|
146
149
|
const currentTemplateId = getCurrentTemplateId();
|
|
147
150
|
const template = currentTemplateId
|
|
148
151
|
? getEditedEntityRecord(
|
|
@@ -341,7 +344,7 @@ function VisualEditor( {
|
|
|
341
344
|
const zoomOutProps = isZoomOutMode
|
|
342
345
|
? {
|
|
343
346
|
scale: 'default',
|
|
344
|
-
frameSize: '
|
|
347
|
+
frameSize: '48px',
|
|
345
348
|
}
|
|
346
349
|
: {};
|
|
347
350
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.editor-visual-editor {
|
|
2
2
|
position: relative;
|
|
3
|
-
height: 100%;
|
|
4
3
|
display: block;
|
|
5
4
|
background-color: $gray-300;
|
|
6
5
|
// Make this a stacking context to contain the z-index of children elements.
|
|
@@ -19,7 +18,7 @@
|
|
|
19
18
|
|
|
20
19
|
// In the iframed canvas this keeps extra scrollbars from appearing (when block toolbars overflow). In the
|
|
21
20
|
// legacy (non-iframed) canvas, overflow must not be hidden in order to maintain support for sticky positioning.
|
|
22
|
-
|
|
21
|
+
&.is-iframed {
|
|
23
22
|
overflow: hidden;
|
|
24
23
|
}
|
|
25
24
|
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { trash } from '@wordpress/icons';
|
|
5
|
+
import { useDispatch } from '@wordpress/data';
|
|
6
|
+
import { __, _n, sprintf } from '@wordpress/i18n';
|
|
7
|
+
import { useState } from '@wordpress/element';
|
|
8
|
+
import {
|
|
9
|
+
Button,
|
|
10
|
+
__experimentalText as Text,
|
|
11
|
+
__experimentalHStack as HStack,
|
|
12
|
+
__experimentalVStack as VStack,
|
|
13
|
+
} from '@wordpress/components';
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
import { privateApis as patternsPrivateApis } from '@wordpress/patterns';
|
|
16
|
+
import type { Action } from '@wordpress/dataviews';
|
|
17
|
+
import type { StoreDescriptor } from '@wordpress/data';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Internal dependencies
|
|
21
|
+
*/
|
|
22
|
+
import {
|
|
23
|
+
isTemplateRemovable,
|
|
24
|
+
getItemTitle,
|
|
25
|
+
isTemplateOrTemplatePart,
|
|
26
|
+
} from './utils';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { store as editorStore } from '../../store';
|
|
29
|
+
import { unlock } from '../../lock-unlock';
|
|
30
|
+
import type { Post } from '../types';
|
|
31
|
+
|
|
32
|
+
const { PATTERN_TYPES } = unlock( patternsPrivateApis );
|
|
33
|
+
|
|
34
|
+
// This action is used for templates, patterns and template parts.
|
|
35
|
+
// Every other post type uses the similar `trashPostAction` which
|
|
36
|
+
// moves the post to trash.
|
|
37
|
+
const deletePostAction: Action< Post > = {
|
|
38
|
+
id: 'delete-post',
|
|
39
|
+
label: __( 'Delete' ),
|
|
40
|
+
isPrimary: true,
|
|
41
|
+
icon: trash,
|
|
42
|
+
isEligible( post ) {
|
|
43
|
+
if ( isTemplateOrTemplatePart( post ) ) {
|
|
44
|
+
return isTemplateRemovable( post );
|
|
45
|
+
}
|
|
46
|
+
// We can only remove user patterns.
|
|
47
|
+
return post.type === PATTERN_TYPES.user;
|
|
48
|
+
},
|
|
49
|
+
supportsBulk: true,
|
|
50
|
+
hideModalHeader: true,
|
|
51
|
+
RenderModal: ( { items, closeModal, onActionPerformed } ) => {
|
|
52
|
+
const [ isBusy, setIsBusy ] = useState( false );
|
|
53
|
+
const { removeTemplates } = unlock(
|
|
54
|
+
useDispatch( editorStore as StoreDescriptor )
|
|
55
|
+
);
|
|
56
|
+
return (
|
|
57
|
+
<VStack spacing="5">
|
|
58
|
+
<Text>
|
|
59
|
+
{ items.length > 1
|
|
60
|
+
? sprintf(
|
|
61
|
+
// translators: %d: number of items to delete.
|
|
62
|
+
_n(
|
|
63
|
+
'Delete %d item?',
|
|
64
|
+
'Delete %d items?',
|
|
65
|
+
items.length
|
|
66
|
+
),
|
|
67
|
+
items.length
|
|
68
|
+
)
|
|
69
|
+
: sprintf(
|
|
70
|
+
// translators: %s: The template or template part's titles
|
|
71
|
+
__( 'Delete "%s"?' ),
|
|
72
|
+
getItemTitle( items[ 0 ] )
|
|
73
|
+
) }
|
|
74
|
+
</Text>
|
|
75
|
+
<HStack justify="right">
|
|
76
|
+
<Button
|
|
77
|
+
variant="tertiary"
|
|
78
|
+
onClick={ closeModal }
|
|
79
|
+
disabled={ isBusy }
|
|
80
|
+
accessibleWhenDisabled
|
|
81
|
+
__next40pxDefaultSize
|
|
82
|
+
>
|
|
83
|
+
{ __( 'Cancel' ) }
|
|
84
|
+
</Button>
|
|
85
|
+
<Button
|
|
86
|
+
variant="primary"
|
|
87
|
+
onClick={ async () => {
|
|
88
|
+
setIsBusy( true );
|
|
89
|
+
await removeTemplates( items, {
|
|
90
|
+
allowUndo: false,
|
|
91
|
+
} );
|
|
92
|
+
onActionPerformed?.( items );
|
|
93
|
+
setIsBusy( false );
|
|
94
|
+
closeModal?.();
|
|
95
|
+
} }
|
|
96
|
+
isBusy={ isBusy }
|
|
97
|
+
disabled={ isBusy }
|
|
98
|
+
accessibleWhenDisabled
|
|
99
|
+
__next40pxDefaultSize
|
|
100
|
+
>
|
|
101
|
+
{ __( 'Delete' ) }
|
|
102
|
+
</Button>
|
|
103
|
+
</HStack>
|
|
104
|
+
</VStack>
|
|
105
|
+
);
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export default deletePostAction;
|
|
@@ -9,50 +9,48 @@ import { downloadZip } from 'client-zip';
|
|
|
9
9
|
*/
|
|
10
10
|
import { downloadBlob } from '@wordpress/blob';
|
|
11
11
|
import { __ } from '@wordpress/i18n';
|
|
12
|
-
import {
|
|
12
|
+
import type { Action } from '@wordpress/dataviews';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Internal dependencies
|
|
16
16
|
*/
|
|
17
|
-
import {
|
|
17
|
+
import type { Pattern } from '../types';
|
|
18
|
+
import { getItemTitle } from './utils';
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
const { PATTERN_TYPES } = unlock( patternsPrivateApis );
|
|
21
|
-
|
|
22
|
-
function getJsonFromItem( item ) {
|
|
20
|
+
function getJsonFromItem( item: Pattern ) {
|
|
23
21
|
return JSON.stringify(
|
|
24
22
|
{
|
|
25
23
|
__file: item.type,
|
|
26
|
-
title: item
|
|
27
|
-
content:
|
|
28
|
-
|
|
24
|
+
title: getItemTitle( item ),
|
|
25
|
+
content:
|
|
26
|
+
typeof item.content === 'string'
|
|
27
|
+
? item.content
|
|
28
|
+
: item.content?.raw,
|
|
29
|
+
syncStatus: item.wp_pattern_sync_status,
|
|
29
30
|
},
|
|
30
31
|
null,
|
|
31
32
|
2
|
|
32
33
|
);
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
|
|
36
|
+
const exportPattern: Action< Pattern > = {
|
|
36
37
|
id: 'export-pattern',
|
|
37
38
|
label: __( 'Export as JSON' ),
|
|
38
39
|
supportsBulk: true,
|
|
39
|
-
isEligible: ( item ) =>
|
|
40
|
-
if ( ! item.type ) {
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
return item.type === PATTERN_TYPES.user;
|
|
44
|
-
},
|
|
40
|
+
isEligible: ( item ) => item.type === 'wp_block',
|
|
45
41
|
callback: async ( items ) => {
|
|
46
42
|
if ( items.length === 1 ) {
|
|
47
43
|
return downloadBlob(
|
|
48
|
-
`${ kebabCase(
|
|
44
|
+
`${ kebabCase(
|
|
45
|
+
getItemTitle( items[ 0 ] ) || items[ 0 ].slug
|
|
46
|
+
) }.json`,
|
|
49
47
|
getJsonFromItem( items[ 0 ] ),
|
|
50
48
|
'application/json'
|
|
51
49
|
);
|
|
52
50
|
}
|
|
53
|
-
const nameCount = {};
|
|
51
|
+
const nameCount: Record< string, number > = {};
|
|
54
52
|
const filesToZip = items.map( ( item ) => {
|
|
55
|
-
const name = kebabCase( item
|
|
53
|
+
const name = kebabCase( getItemTitle( item ) || item.slug );
|
|
56
54
|
nameCount[ name ] = ( nameCount[ name ] || 0 ) + 1;
|
|
57
55
|
return {
|
|
58
56
|
name: `${
|
|
@@ -72,3 +70,5 @@ export const exportPatternAsJSONAction = {
|
|
|
72
70
|
);
|
|
73
71
|
},
|
|
74
72
|
};
|
|
73
|
+
|
|
74
|
+
export default exportPattern;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { type StoreDescriptor, dispatch } from '@wordpress/data';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Internal dependencies
|
|
8
|
+
*/
|
|
9
|
+
import deletePost from './delete-post';
|
|
10
|
+
import exportPattern from './export-pattern';
|
|
11
|
+
import resetPost from './reset-post';
|
|
12
|
+
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
import { store as editorStore } from '../../store';
|
|
15
|
+
import { unlock } from '../../lock-unlock';
|
|
16
|
+
|
|
17
|
+
export default function registerDefaultActions() {
|
|
18
|
+
const { registerEntityAction } = unlock(
|
|
19
|
+
dispatch( editorStore as StoreDescriptor )
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
registerEntityAction( 'postType', 'wp_block', exportPattern );
|
|
23
|
+
registerEntityAction( 'postType', '*', resetPost );
|
|
24
|
+
registerEntityAction( 'postType', '*', deletePost );
|
|
25
|
+
}
|