@wordpress/editor 14.8.8 → 14.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/build/bindings/api.js +0 -29
- package/build/bindings/api.js.map +1 -1
- package/build/components/autocompleters/user.js.map +1 -1
- package/build/components/block-manager/index.js +2 -2
- package/build/components/block-manager/index.js.map +1 -1
- package/build/components/block-settings-menu/content-only-settings-menu.js +15 -18
- package/build/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
- package/build/components/commands/index.js.map +1 -1
- package/build/components/create-template-part-modal/index.js.map +1 -1
- package/build/components/create-template-part-modal/utils.js.map +1 -1
- package/build/components/document-outline/index.js.map +1 -1
- package/build/components/document-outline/item.js.map +1 -1
- package/build/components/document-tools/index.js +2 -7
- package/build/components/document-tools/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/header/index.js +19 -16
- package/build/components/header/index.js.map +1 -1
- package/build/components/inserter-sidebar/index.js +8 -9
- package/build/components/inserter-sidebar/index.js.map +1 -1
- package/build/components/media-categories/index.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.map +1 -1
- package/build/components/post-actions/index.js.map +1 -1
- package/build/components/post-content-information/index.js +1 -1
- package/build/components/post-content-information/index.js.map +1 -1
- package/build/components/post-featured-image/index.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-last-revision/index.js +1 -1
- package/build/components/post-last-revision/index.js.map +1 -1
- package/build/components/post-locked-modal/index.js +2 -2
- package/build/components/post-locked-modal/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.map +1 -1
- package/build/components/post-publish-panel/maybe-post-format-panel.js +1 -1
- package/build/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
- package/build/components/post-publish-panel/maybe-upload-media.js +1 -0
- package/build/components/post-publish-panel/maybe-upload-media.js.map +1 -1
- package/build/components/post-publish-panel/media-util.js +1 -0
- package/build/components/post-publish-panel/media-util.js.map +1 -1
- package/build/components/post-publish-panel/postpublish.js +1 -1
- package/build/components/post-publish-panel/postpublish.js.map +1 -1
- package/build/components/post-schedule/label.js.map +1 -1
- package/build/components/post-taxonomies/flat-term-selector.js +4 -4
- package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build/components/post-taxonomies/hierarchical-term-selector.js +3 -2
- package/build/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
- package/build/components/post-taxonomies/index.js +1 -1
- package/build/components/post-taxonomies/index.js.map +1 -1
- package/build/components/post-taxonomies/panel.js.map +1 -1
- package/build/components/post-template/classic-theme.js +2 -4
- package/build/components/post-template/classic-theme.js.map +1 -1
- package/build/components/post-text-editor/index.js.map +1 -1
- package/build/components/post-title/index.js +15 -19
- package/build/components/post-title/index.js.map +1 -1
- package/build/components/post-title/index.native.js +2 -2
- package/build/components/post-title/index.native.js.map +1 -1
- package/build/components/post-url/index.js +76 -63
- package/build/components/post-url/index.js.map +1 -1
- package/build/components/post-url/panel.js +46 -26
- package/build/components/post-url/panel.js.map +1 -1
- package/build/components/post-visibility/index.js.map +1 -1
- package/build/components/preferences-modal/index.js.map +1 -1
- package/build/components/preview-dropdown/index.js.map +1 -1
- package/build/components/provider/disable-non-page-content-blocks.js +17 -18
- package/build/components/provider/disable-non-page-content-blocks.js.map +1 -1
- package/build/components/provider/index.js +1 -1
- package/build/components/provider/index.js.map +1 -1
- package/build/components/provider/use-post-content-blocks.js +34 -0
- package/build/components/provider/use-post-content-blocks.js.map +1 -0
- package/build/components/resizable-editor/resize-handle.js +4 -0
- package/build/components/resizable-editor/resize-handle.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/visual-editor/index.js.map +1 -1
- package/build/components/visual-editor/use-select-nearest-editable-block.js.map +1 -1
- package/build/components/zoom-out-toggle/index.js +1 -1
- package/build/components/zoom-out-toggle/index.js.map +1 -1
- package/build/dataviews/actions/duplicate-template-part.js +1 -1
- package/build/dataviews/actions/duplicate-template-part.js.map +1 -1
- package/build/dataviews/store/private-actions.js +2 -7
- package/build/dataviews/store/private-actions.js.map +1 -1
- package/build/private-apis.js +0 -1
- package/build/private-apis.js.map +1 -1
- package/build/store/actions.js +46 -6
- package/build/store/actions.js.map +1 -1
- package/build/store/constants.js +1 -0
- package/build/store/constants.js.map +1 -1
- package/build/store/local-autosave.js.map +1 -1
- package/build/store/private-actions.js +7 -6
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +3 -3
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/selectors.js +21 -0
- package/build/store/selectors.js.map +1 -1
- package/build/utils/media-upload/index.js.map +1 -1
- package/build-module/bindings/api.js +1 -29
- package/build-module/bindings/api.js.map +1 -1
- package/build-module/components/autocompleters/user.js +1 -3
- package/build-module/components/autocompleters/user.js.map +1 -1
- package/build-module/components/block-manager/category.js +1 -2
- package/build-module/components/block-manager/category.js.map +1 -1
- package/build-module/components/block-manager/checklist.js +1 -2
- package/build-module/components/block-manager/checklist.js.map +1 -1
- package/build-module/components/block-manager/index.js +3 -4
- package/build-module/components/block-manager/index.js.map +1 -1
- package/build-module/components/block-settings-menu/content-only-settings-menu.js +15 -21
- package/build-module/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
- package/build-module/components/blog-title/index.js +1 -3
- package/build-module/components/blog-title/index.js.map +1 -1
- package/build-module/components/collapsible-block-toolbar/index.js +1 -3
- package/build-module/components/collapsible-block-toolbar/index.js.map +1 -1
- package/build-module/components/commands/index.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/create-template-part-modal/utils.js.map +1 -1
- package/build-module/components/document-bar/index.js +1 -2
- package/build-module/components/document-bar/index.js.map +1 -1
- package/build-module/components/document-outline/index.js +1 -2
- package/build-module/components/document-outline/index.js.map +1 -1
- package/build-module/components/document-outline/item.js +1 -2
- package/build-module/components/document-outline/item.js.map +1 -1
- package/build-module/components/document-tools/index.js +3 -10
- package/build-module/components/document-tools/index.js.map +1 -1
- package/build-module/components/editor/index.js +1 -3
- package/build-module/components/editor/index.js.map +1 -1
- package/build-module/components/editor-help/add-blocks.native.js +1 -3
- package/build-module/components/editor-help/add-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/customize-blocks.native.js +1 -3
- package/build-module/components/editor-help/customize-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/help-detail-navigation-screen.native.js +1 -2
- package/build-module/components/editor-help/help-detail-navigation-screen.native.js.map +1 -1
- package/build-module/components/editor-help/index.native.js +1 -3
- package/build-module/components/editor-help/index.native.js.map +1 -1
- package/build-module/components/editor-help/intro-to-blocks.native.js +1 -3
- package/build-module/components/editor-help/intro-to-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/move-blocks.native.js +1 -3
- package/build-module/components/editor-help/move-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/remove-blocks.native.js +1 -3
- package/build-module/components/editor-help/remove-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/view-sections.native.js +1 -2
- package/build-module/components/editor-help/view-sections.native.js.map +1 -1
- package/build-module/components/editor-interface/index.js +1 -3
- package/build-module/components/editor-interface/index.js.map +1 -1
- package/build-module/components/editor-notices/index.js +1 -3
- package/build-module/components/editor-notices/index.js.map +1 -1
- package/build-module/components/entities-saved-states/entity-record-item.js +1 -3
- package/build-module/components/entities-saved-states/entity-record-item.js.map +1 -1
- package/build-module/components/entities-saved-states/entity-type-list.js +1 -2
- package/build-module/components/entities-saved-states/entity-type-list.js.map +1 -1
- package/build-module/components/entities-saved-states/index.js +2 -3
- package/build-module/components/entities-saved-states/index.js.map +1 -1
- package/build-module/components/error-boundary/index.native.js +1 -2
- package/build-module/components/error-boundary/index.native.js.map +1 -1
- package/build-module/components/header/index.js +20 -18
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/inserter-sidebar/index.js +8 -9
- package/build-module/components/inserter-sidebar/index.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -2
- package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +1 -3
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
- package/build-module/components/list-view-sidebar/list-view-outline.js +1 -3
- package/build-module/components/list-view-sidebar/list-view-outline.js.map +1 -1
- package/build-module/components/media-categories/index.js.map +1 -1
- package/build-module/components/more-menu/index.js +1 -3
- package/build-module/components/more-menu/index.js.map +1 -1
- package/build-module/components/offline-status/index.native.js +1 -2
- package/build-module/components/offline-status/index.native.js.map +1 -1
- package/build-module/components/page-attributes/parent.js +2 -3
- package/build-module/components/page-attributes/parent.js.map +1 -1
- package/build-module/components/plugin-document-setting-panel/index.js +1 -3
- package/build-module/components/plugin-document-setting-panel/index.js.map +1 -1
- package/build-module/components/post-actions/index.js +1 -3
- package/build-module/components/post-actions/index.js.map +1 -1
- package/build-module/components/post-author/panel.js +1 -2
- package/build-module/components/post-author/panel.js.map +1 -1
- package/build-module/components/post-card-panel/index.js +1 -2
- package/build-module/components/post-card-panel/index.js.map +1 -1
- package/build-module/components/post-content-information/index.js +1 -1
- package/build-module/components/post-content-information/index.js.map +1 -1
- package/build-module/components/post-discussion/panel.js +1 -2
- package/build-module/components/post-discussion/panel.js.map +1 -1
- package/build-module/components/post-excerpt/panel.js +1 -3
- package/build-module/components/post-excerpt/panel.js.map +1 -1
- package/build-module/components/post-featured-image/index.js +1 -2
- package/build-module/components/post-featured-image/index.js.map +1 -1
- package/build-module/components/post-format/index.js +2 -3
- package/build-module/components/post-format/index.js.map +1 -1
- package/build-module/components/post-format/panel.js +1 -2
- package/build-module/components/post-format/panel.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-locked-modal/index.js +3 -5
- package/build-module/components/post-locked-modal/index.js.map +1 -1
- package/build-module/components/post-panel-row/index.js +1 -2
- package/build-module/components/post-panel-row/index.js.map +1 -1
- package/build-module/components/post-preview-button/index.js +2 -4
- package/build-module/components/post-preview-button/index.js.map +1 -1
- package/build-module/components/post-publish-button/index.js +1 -2
- package/build-module/components/post-publish-button/index.js.map +1 -1
- package/build-module/components/post-publish-panel/index.js +1 -3
- package/build-module/components/post-publish-panel/index.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-category-panel.js +1 -2
- package/build-module/components/post-publish-panel/maybe-category-panel.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-post-format-panel.js +2 -3
- package/build-module/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-tags-panel.js +1 -2
- package/build-module/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-upload-media.js +2 -2
- package/build-module/components/post-publish-panel/maybe-upload-media.js.map +1 -1
- package/build-module/components/post-publish-panel/media-util.js +1 -0
- package/build-module/components/post-publish-panel/media-util.js.map +1 -1
- package/build-module/components/post-publish-panel/postpublish.js +2 -4
- package/build-module/components/post-publish-panel/postpublish.js.map +1 -1
- package/build-module/components/post-publish-panel/prepublish.js +1 -3
- package/build-module/components/post-publish-panel/prepublish.js.map +1 -1
- package/build-module/components/post-saved-state/index.js +1 -2
- package/build-module/components/post-saved-state/index.js.map +1 -1
- package/build-module/components/post-schedule/label.js.map +1 -1
- package/build-module/components/post-status/index.js +1 -3
- package/build-module/components/post-status/index.js.map +1 -1
- package/build-module/components/post-switch-to-draft-button/index.js +1 -3
- package/build-module/components/post-switch-to-draft-button/index.js.map +1 -1
- package/build-module/components/post-taxonomies/flat-term-selector.js +5 -7
- package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build-module/components/post-taxonomies/hierarchical-term-selector.js +4 -4
- package/build-module/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
- package/build-module/components/post-taxonomies/index.js +1 -1
- package/build-module/components/post-taxonomies/index.js.map +1 -1
- package/build-module/components/post-taxonomies/most-used-terms.js +1 -2
- package/build-module/components/post-taxonomies/most-used-terms.js.map +1 -1
- package/build-module/components/post-taxonomies/panel.js.map +1 -1
- package/build-module/components/post-template/block-theme.js +1 -3
- package/build-module/components/post-template/block-theme.js.map +1 -1
- package/build-module/components/post-template/classic-theme.js +3 -6
- package/build-module/components/post-template/classic-theme.js.map +1 -1
- package/build-module/components/post-template/create-new-template-modal.js +1 -2
- package/build-module/components/post-template/create-new-template-modal.js.map +1 -1
- package/build-module/components/post-template/create-new-template.js +1 -3
- package/build-module/components/post-template/create-new-template.js.map +1 -1
- package/build-module/components/post-template/swap-template-button.js +1 -3
- package/build-module/components/post-template/swap-template-button.js.map +1 -1
- package/build-module/components/post-text-editor/index.js +1 -3
- package/build-module/components/post-text-editor/index.js.map +1 -1
- package/build-module/components/post-title/index.js +15 -19
- package/build-module/components/post-title/index.js.map +1 -1
- package/build-module/components/post-title/index.native.js +2 -2
- package/build-module/components/post-title/index.native.js.map +1 -1
- package/build-module/components/post-trash/index.js +1 -2
- package/build-module/components/post-trash/index.js.map +1 -1
- package/build-module/components/post-url/index.js +78 -66
- package/build-module/components/post-url/index.js.map +1 -1
- package/build-module/components/post-url/panel.js +48 -28
- package/build-module/components/post-url/panel.js.map +1 -1
- package/build-module/components/post-visibility/index.js +1 -2
- package/build-module/components/post-visibility/index.js.map +1 -1
- package/build-module/components/posts-per-page/index.js +1 -3
- package/build-module/components/posts-per-page/index.js.map +1 -1
- package/build-module/components/preferences-modal/index.js +1 -3
- package/build-module/components/preferences-modal/index.js.map +1 -1
- package/build-module/components/preview-dropdown/index.js +1 -3
- package/build-module/components/preview-dropdown/index.js.map +1 -1
- package/build-module/components/provider/disable-non-page-content-blocks.js +17 -18
- package/build-module/components/provider/disable-non-page-content-blocks.js.map +1 -1
- package/build-module/components/provider/index.js +2 -4
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/provider/index.native.js +1 -3
- package/build-module/components/provider/index.native.js.map +1 -1
- package/build-module/components/provider/use-post-content-blocks.js +27 -0
- package/build-module/components/provider/use-post-content-blocks.js.map +1 -0
- package/build-module/components/resizable-editor/resize-handle.js +5 -3
- package/build-module/components/resizable-editor/resize-handle.js.map +1 -1
- package/build-module/components/save-publish-panels/index.js +1 -3
- package/build-module/components/save-publish-panels/index.js.map +1 -1
- package/build-module/components/sidebar/header.js +1 -2
- package/build-module/components/sidebar/header.js.map +1 -1
- package/build-module/components/sidebar/index.js +1 -2
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/sidebar/post-summary.js +1 -3
- package/build-module/components/sidebar/post-summary.js.map +1 -1
- package/build-module/components/site-discussion/index.js +1 -3
- package/build-module/components/site-discussion/index.js.map +1 -1
- package/build-module/components/start-template-options/index.js +1 -2
- package/build-module/components/start-template-options/index.js.map +1 -1
- package/build-module/components/table-of-contents/panel.js +1 -3
- package/build-module/components/table-of-contents/panel.js.map +1 -1
- package/build-module/components/template-part-menu-items/convert-to-template-part.js +1 -3
- package/build-module/components/template-part-menu-items/convert-to-template-part.js.map +1 -1
- package/build-module/components/template-validation-notice/index.js +1 -3
- package/build-module/components/template-validation-notice/index.js.map +1 -1
- package/build-module/components/text-editor/index.js +1 -2
- package/build-module/components/text-editor/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/visual-editor/index.js +1 -3
- package/build-module/components/visual-editor/index.js.map +1 -1
- package/build-module/components/visual-editor/use-select-nearest-editable-block.js.map +1 -1
- package/build-module/components/zoom-out-toggle/index.js +1 -1
- package/build-module/components/zoom-out-toggle/index.js.map +1 -1
- package/build-module/dataviews/actions/duplicate-template-part.js +1 -1
- package/build-module/dataviews/actions/duplicate-template-part.js.map +1 -1
- package/build-module/dataviews/store/private-actions.js +4 -8
- package/build-module/dataviews/store/private-actions.js.map +1 -1
- package/build-module/hooks/pattern-overrides.js +1 -3
- package/build-module/hooks/pattern-overrides.js.map +1 -1
- package/build-module/private-apis.js +1 -2
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/actions.js +44 -6
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/constants.js +1 -0
- package/build-module/store/constants.js.map +1 -1
- package/build-module/store/local-autosave.js.map +1 -1
- package/build-module/store/private-actions.js +7 -6
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +2 -2
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/selectors.js +21 -0
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/utils/media-upload/index.js.map +1 -1
- package/build-style/style-rtl.css +29 -6
- package/build-style/style.css +29 -6
- package/build-types/bindings/api.d.ts +0 -13
- package/build-types/bindings/api.d.ts.map +1 -1
- package/build-types/components/document-tools/index.d.ts.map +1 -1
- package/build-types/components/header/index.d.ts.map +1 -1
- package/build-types/components/inserter-sidebar/index.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -1
- package/build-types/components/post-template/classic-theme.d.ts.map +1 -1
- package/build-types/components/post-url/index.d.ts.map +1 -1
- package/build-types/components/post-url/panel.d.ts.map +1 -1
- package/build-types/components/provider/disable-non-page-content-blocks.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/components/provider/use-post-content-blocks.d.ts +2 -0
- package/build-types/components/provider/use-post-content-blocks.d.ts.map +1 -0
- package/build-types/components/resizable-editor/resize-handle.d.ts.map +1 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/store/actions.d.ts +2 -17
- package/build-types/store/actions.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts +2 -2
- package/build-types/store/private-selectors.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +21 -0
- package/build-types/store/selectors.d.ts.map +1 -1
- package/package.json +38 -38
- package/src/bindings/api.js +1 -32
- package/src/components/block-settings-menu/content-only-settings-menu.js +19 -19
- package/src/components/document-tools/index.js +2 -5
- package/src/components/header/index.js +24 -13
- package/src/components/inserter-sidebar/index.js +8 -11
- package/src/components/post-saved-state/test/__snapshots__/index.js.snap +1 -1
- package/src/components/post-taxonomies/hierarchical-term-selector.js +1 -0
- package/src/components/post-template/classic-theme.js +1 -2
- package/src/components/post-url/index.js +67 -55
- package/src/components/post-url/panel.js +57 -33
- package/src/components/post-url/style.scss +21 -3
- package/src/components/provider/disable-non-page-content-blocks.js +20 -34
- package/src/components/provider/index.js +1 -0
- package/src/components/provider/use-post-content-blocks.js +42 -0
- package/src/components/resizable-editor/resize-handle.js +5 -0
- package/src/components/zoom-out-toggle/index.js +1 -1
- package/src/dataviews/store/private-actions.ts +7 -7
- package/src/private-apis.js +1 -5
- package/src/store/actions.js +51 -7
- package/src/store/private-selectors.js +2 -2
- package/src/store/selectors.js +21 -0
- package/src/store/test/actions.js +76 -0
- package/src/store/test/reducer.js +0 -22
- package/tsconfig.tsbuildinfo +1 -1
- package/build/dataviews/actions/delete-post.js +0 -98
- package/build/dataviews/actions/delete-post.js.map +0 -1
- package/build/dataviews/actions/rename-post.js +0 -125
- package/build/dataviews/actions/rename-post.js.map +0 -1
- package/build/dataviews/actions/reset-post.js +0 -113
- package/build/dataviews/actions/reset-post.js.map +0 -1
- package/build/dataviews/actions/restore-post.js +0 -112
- package/build/dataviews/actions/restore-post.js.map +0 -1
- package/build/dataviews/actions/trash-post.js +0 -144
- package/build/dataviews/actions/trash-post.js.map +0 -1
- package/build/dataviews/fields/index.js +0 -32
- package/build/dataviews/fields/index.js.map +0 -1
- package/build-module/dataviews/actions/delete-post.js +0 -89
- package/build-module/dataviews/actions/delete-post.js.map +0 -1
- package/build-module/dataviews/actions/rename-post.js +0 -118
- package/build-module/dataviews/actions/rename-post.js.map +0 -1
- package/build-module/dataviews/actions/reset-post.js +0 -106
- package/build-module/dataviews/actions/reset-post.js.map +0 -1
- package/build-module/dataviews/actions/restore-post.js +0 -104
- package/build-module/dataviews/actions/restore-post.js.map +0 -1
- package/build-module/dataviews/actions/trash-post.js +0 -137
- package/build-module/dataviews/actions/trash-post.js.map +0 -1
- package/build-module/dataviews/fields/index.js +0 -26
- package/build-module/dataviews/fields/index.js.map +0 -1
- package/build-types/dataviews/actions/delete-post.d.ts +0 -5
- package/build-types/dataviews/actions/delete-post.d.ts.map +0 -1
- package/build-types/dataviews/actions/rename-post.d.ts +0 -5
- package/build-types/dataviews/actions/rename-post.d.ts.map +0 -1
- package/build-types/dataviews/actions/reset-post.d.ts +0 -5
- package/build-types/dataviews/actions/reset-post.d.ts.map +0 -1
- package/build-types/dataviews/actions/restore-post.d.ts +0 -5
- package/build-types/dataviews/actions/restore-post.d.ts.map +0 -1
- package/build-types/dataviews/actions/trash-post.d.ts +0 -5
- package/build-types/dataviews/actions/trash-post.d.ts.map +0 -1
- package/build-types/dataviews/fields/index.d.ts +0 -8
- package/build-types/dataviews/fields/index.d.ts.map +0 -1
- package/src/dataviews/actions/delete-post.tsx +0 -109
- package/src/dataviews/actions/rename-post.tsx +0 -146
- package/src/dataviews/actions/reset-post.tsx +0 -147
- package/src/dataviews/actions/restore-post.tsx +0 -134
- package/src/dataviews/actions/trash-post.tsx +0 -198
- package/src/dataviews/fields/index.ts +0 -26
|
@@ -9,17 +9,4 @@
|
|
|
9
9
|
* ```
|
|
10
10
|
*/
|
|
11
11
|
export function registerCoreBlockBindingsSources(): void;
|
|
12
|
-
/**
|
|
13
|
-
* Function to bootstrap core block bindings sources defined in the server.
|
|
14
|
-
*
|
|
15
|
-
* @param {Object} sources Object containing the sources to bootstrap.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```js
|
|
19
|
-
* import { bootstrapBlockBindingsSourcesFromServer } from '@wordpress/editor';
|
|
20
|
-
*
|
|
21
|
-
* bootstrapBlockBindingsSourcesFromServer( sources );
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export function bootstrapBlockBindingsSourcesFromServer(sources: Object): void;
|
|
25
12
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/bindings/api.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/bindings/api.js"],"names":[],"mappings":"AAWA;;;;;;;;;GASG;AACH,yDAGC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-tools/index.js"],"names":[],"mappings":";AA8BA;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/document-tools/index.js"],"names":[],"mappings":";AA8BA;;;gCA0JC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AA2CA;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AA2CA;;;;;;;gCA2IC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inserter-sidebar/index.js"],"names":[],"mappings":"AAsBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inserter-sidebar/index.js"],"names":[],"mappings":"AAsBA,uEA0FC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hierarchical-term-selector.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/hierarchical-term-selector.js"],"names":[],"mappings":"AA2CA;;;;;;;GAOG;AACH,0CALW,MAAM,EAAE,SACR,MAAM,EAAE,GAEP,MAAM,EAAE,CAqCnB;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,EAAE,UACR,MAAM,GAAC,MAAM,QACb,MAAM,GACL,MAAM,CAUjB;AAED;;;;;GAKG;AACH,8CAHW,MAAM,GACL,CAAC,CAAS,IAAM,EAAN,MAAM,KAAG,CAAC,MAAM,GAAC,OAAO,CAAC,CAAC,CAmC/C;AAED;;;;;;GAMG;AACH,mDAHG;IAAsB,IAAI,EAAlB,MAAM;CACd,GAAS,OAAO,
|
|
1
|
+
{"version":3,"file":"hierarchical-term-selector.d.ts","sourceRoot":"","sources":["../../../src/components/post-taxonomies/hierarchical-term-selector.js"],"names":[],"mappings":"AA2CA;;;;;;;GAOG;AACH,0CALW,MAAM,EAAE,SACR,MAAM,EAAE,GAEP,MAAM,EAAE,CAqCnB;AAED;;;;;;;GAOG;AACH,gCALW,MAAM,EAAE,UACR,MAAM,GAAC,MAAM,QACb,MAAM,GACL,MAAM,CAUjB;AAED;;;;;GAKG;AACH,8CAHW,MAAM,GACL,CAAC,CAAS,IAAM,EAAN,MAAM,KAAG,CAAC,MAAM,GAAC,OAAO,CAAC,CAAC,CAmC/C;AAED;;;;;;GAMG;AACH,mDAHG;IAAsB,IAAI,EAAlB,MAAM;CACd,GAAS,OAAO,CAuUlB;;;;;;;yBA1ae,OAAO;;wJASC,CAAC;4BAGS,CAAC;;;;kCAIJ,OAAO;;6BAIJ,CAAC;yBASjC,CAAC,iCAC6B,OAChC;+BACQ,CAAA;0BAMyB,CAAA,2DAE3B,CAAC;0BACJ,CAAC;iCAEM,CAAC;iCACP,CAAC;wCAGS,CAAA;2BACsB,CAAC;kCASpC,CAAD;;;;;yBAI0B,OACxB;;wJAOW,CAAC;4BACX,CAAC;;;;kCAIuB,OAAO;;6BAGiB,CAAC;yBAG7C,CAAC,iCACuB,OAAO;+BACjB,CAAC;0BAKmC,CAAC,2DAEtD,CAAC;0BAEoB,CAAC;iCAMzB,CAAD;iCAA2C,CAAC;wCAED,CAAC;2BAES,CAAA;kCAInD,CAAC;;yBAGgB,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classic-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/classic-theme.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"classic-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/classic-theme.js"],"names":[],"mappings":";AAyNA,oEAaC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/index.js"],"names":[],"mappings":"AA0BA;;;;;;;;;;;GAWG;AACH,wDAFY,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/index.js"],"names":[],"mappings":"AA0BA;;;;;;;;;;;GAWG;AACH,wDAFY,SAAS,CAgKpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/panel.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/panel.js"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,wCAFY,GAAG,CAAC,OAAO,CA2DtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable-non-page-content-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/disable-non-page-content-blocks.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"disable-non-page-content-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/disable-non-page-content-blocks.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH,4DAoDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AAiWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAwB,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ;CAGhC,GAWS,GAAG,CAAC,OAAO,CAWtB;AAtQD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GAmME"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-post-content-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-post-content-blocks.js"],"names":[],"mappings":"AAmBA,oDAsBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resize-handle.d.ts","sourceRoot":"","sources":["../../../src/components/resizable-editor/resize-handle.js"],"names":[],"mappings":"AAaA;;;
|
|
1
|
+
{"version":3,"file":"resize-handle.d.ts","sourceRoot":"","sources":["../../../src/components/resizable-editor/resize-handle.js"],"names":[],"mappings":"AAaA;;;gCAqDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AA6BA,6BAA8B"}
|
|
@@ -170,19 +170,6 @@ export function setDeviceType(deviceType: string): Object;
|
|
|
170
170
|
* @return {Object} Action object.
|
|
171
171
|
*/
|
|
172
172
|
export function removeEditorPanel(panelName: string): Object;
|
|
173
|
-
/**
|
|
174
|
-
* Returns an action object used to open/close the inserter.
|
|
175
|
-
*
|
|
176
|
-
* @param {boolean|Object} value Whether the inserter should be
|
|
177
|
-
* opened (true) or closed (false).
|
|
178
|
-
* To specify an insertion point,
|
|
179
|
-
* use an object.
|
|
180
|
-
* @param {string} value.rootClientId The root client ID to insert at.
|
|
181
|
-
* @param {number} value.insertionIndex The index to insert at.
|
|
182
|
-
*
|
|
183
|
-
* @return {Object} Action object.
|
|
184
|
-
*/
|
|
185
|
-
export function setIsInserterOpened(value: boolean | Object): Object;
|
|
186
173
|
/**
|
|
187
174
|
* Returns an action object used to open/close the list view.
|
|
188
175
|
*
|
|
@@ -213,10 +200,7 @@ export function togglePublishSidebar(): Object;
|
|
|
213
200
|
export function setupEditor(post: Object, edits: Object, template: any[] | null): ({ dispatch }: {
|
|
214
201
|
dispatch: any;
|
|
215
202
|
}) => void;
|
|
216
|
-
export function editPost(edits: Object, options: Object):
|
|
217
|
-
select: any;
|
|
218
|
-
registry: any;
|
|
219
|
-
}) => void;
|
|
203
|
+
export function editPost(edits: Object, options: Object): Object;
|
|
220
204
|
export function savePost(options?: Object): ({ select, dispatch, registry }: {
|
|
221
205
|
select: any;
|
|
222
206
|
dispatch: any;
|
|
@@ -263,6 +247,7 @@ export function toggleEditorPanelEnabled(panelName: string): Object;
|
|
|
263
247
|
export function toggleEditorPanelOpened(panelName: string): ({ registry }: {
|
|
264
248
|
registry: any;
|
|
265
249
|
}) => void;
|
|
250
|
+
export function setIsInserterOpened(value: boolean | Object): Object;
|
|
266
251
|
export function toggleDistractionFree(): ({ dispatch, registry }: {
|
|
267
252
|
dispatch: any;
|
|
268
253
|
registry: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AA0EA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC;AAED;;;;;;GAMG;AACH,8BAHY,MAAM,CAWjB;AAED;;;;;;GAMG;AACH,uCAFW,MAAM,UAQhB;AAED;;;;;;;GAOG;AACH,wCALW,MAAM,UACN,MAAM,GAEL,MAAM,CAQjB;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AA0EA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC;AAED;;;;;;GAMG;AACH,8BAHY,MAAM,CAWjB;AA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,MAAM,GAWb,MAAM,CAoBhB;AAoBK;;;WA0DL;AAOK,uCAFI,MAAM;;;WAuBf;AA2CD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC"}
|
|
@@ -3,13 +3,13 @@ export function getInserterSidebarToggleRef(state: any): any;
|
|
|
3
3
|
export function getEntityActions(state: any, ...args: any[]): import("@wordpress/dataviews").Action<any>[];
|
|
4
4
|
export function isEntityReady(state: any, ...args: any[]): boolean;
|
|
5
5
|
/**
|
|
6
|
-
* Get the
|
|
6
|
+
* Get the inserter.
|
|
7
7
|
*
|
|
8
8
|
* @param {Object} state Global application state.
|
|
9
9
|
*
|
|
10
10
|
* @return {Object} The root client ID, index to insert at and starting filter value.
|
|
11
11
|
*/
|
|
12
|
-
export const
|
|
12
|
+
export const getInserter: Function;
|
|
13
13
|
export const getPostIcon: Function;
|
|
14
14
|
/**
|
|
15
15
|
* Returns true if there are unsaved changes to the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAkFA,sDAEC;AACD,6DAEC;AA8ED,2GAEC;AAED,mEAEC;AArID;;;;;;GAMG;AACH,
|
|
1
|
+
{"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAkFA,sDAEC;AACD,6DAEC;AA8ED,2GAEC;AAED,mEAEC;AArID;;;;;;GAMG;AACH,mCAmCE;AAeF,mCA6BE;AAEF;;;;;;;;;GASG;AACH,0CA2BE;AAUF;;;;;;;;GAQG;AACH,2CAsBE"}
|
|
@@ -29,6 +29,11 @@ export function isCleanNewPost(state: Object): boolean;
|
|
|
29
29
|
*
|
|
30
30
|
* @param {Object} state Global application state.
|
|
31
31
|
*
|
|
32
|
+
* @example
|
|
33
|
+
*
|
|
34
|
+
*```js
|
|
35
|
+
* const currentPostType = wp.data.select( 'core/editor' ).getCurrentPostType();
|
|
36
|
+
*```
|
|
32
37
|
* @return {string} Post type.
|
|
33
38
|
*/
|
|
34
39
|
export function getCurrentPostType(state: Object): string;
|
|
@@ -83,6 +88,22 @@ export function getCurrentPostAttribute(state: Object, attributeName: string): a
|
|
|
83
88
|
* @param {Object} state Global application state.
|
|
84
89
|
* @param {string} attributeName Post attribute name.
|
|
85
90
|
*
|
|
91
|
+
* @example
|
|
92
|
+
*
|
|
93
|
+
*```js
|
|
94
|
+
* // Get specific media size based on the featured media ID
|
|
95
|
+
* // Note: change sizes?.large for any registered size
|
|
96
|
+
* const getFeaturedMediaUrl = useSelect( ( select ) => {
|
|
97
|
+
* const getFeaturedMediaId =
|
|
98
|
+
* select( 'core/editor' ).getEditedPostAttribute( 'featured_media' );
|
|
99
|
+
* const getMedia = select( 'core' ).getMedia( getFeaturedMediaId );
|
|
100
|
+
*
|
|
101
|
+
* return (
|
|
102
|
+
* getMedia?.media_details?.sizes?.large?.source_url || getMedia?.source_url || ''
|
|
103
|
+
* );
|
|
104
|
+
* }, [] );
|
|
105
|
+
*```
|
|
106
|
+
*
|
|
86
107
|
* @return {*} Post attribute value.
|
|
87
108
|
*/
|
|
88
109
|
export function getEditedPostAttribute(state: Object, attributeName: string): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.js"],"names":[],"mappings":"AA+DA;;;;;;;GAOG;AACH,uCAJW,MAAM,GAEL,OAAO,CAIlB;AAED;;;;;;GAMG;AACH,yCAJW,MAAM,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EF;;;;;;;GAOG;AACH,wHAcE;AAEF;;;;;;;GAOG;AACH,oHAgCE;AAEF;;;;;;GAMG;AACH,wCAQE;;;;;;;;cAzlBY,MAAM;;;;kBACN,MAAM;;;;;YACN,MAAM"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/editor",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.10.0",
|
|
4
4
|
"description": "Enhanced block editor for WordPress posts.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -31,42 +31,42 @@
|
|
|
31
31
|
"{src,build,build-module}/{index.js,store/index.js,hooks/**,bindings/**}"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@babel/runtime": "
|
|
35
|
-
"@wordpress/a11y": "^4.
|
|
36
|
-
"@wordpress/api-fetch": "^7.
|
|
37
|
-
"@wordpress/blob": "^4.
|
|
38
|
-
"@wordpress/block-editor": "^14.
|
|
39
|
-
"@wordpress/blocks": "^13.
|
|
40
|
-
"@wordpress/commands": "^1.
|
|
41
|
-
"@wordpress/components": "^28.
|
|
42
|
-
"@wordpress/compose": "^7.
|
|
43
|
-
"@wordpress/core-data": "^7.
|
|
44
|
-
"@wordpress/data": "^10.
|
|
45
|
-
"@wordpress/dataviews": "^4.
|
|
46
|
-
"@wordpress/date": "^5.
|
|
47
|
-
"@wordpress/deprecated": "^4.
|
|
48
|
-
"@wordpress/dom": "^4.
|
|
49
|
-
"@wordpress/element": "^6.
|
|
50
|
-
"@wordpress/fields": "^0.0
|
|
51
|
-
"@wordpress/hooks": "^4.
|
|
52
|
-
"@wordpress/html-entities": "^4.
|
|
53
|
-
"@wordpress/i18n": "^5.
|
|
54
|
-
"@wordpress/icons": "^10.
|
|
55
|
-
"@wordpress/interface": "^
|
|
56
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
57
|
-
"@wordpress/keycodes": "^4.
|
|
58
|
-
"@wordpress/media-utils": "^5.
|
|
59
|
-
"@wordpress/notices": "^5.
|
|
60
|
-
"@wordpress/patterns": "^2.
|
|
61
|
-
"@wordpress/plugins": "^7.
|
|
62
|
-
"@wordpress/preferences": "^4.
|
|
63
|
-
"@wordpress/private-apis": "^1.
|
|
64
|
-
"@wordpress/reusable-blocks": "^5.
|
|
65
|
-
"@wordpress/rich-text": "^7.
|
|
66
|
-
"@wordpress/server-side-render": "^5.
|
|
67
|
-
"@wordpress/url": "^4.
|
|
68
|
-
"@wordpress/warning": "^3.
|
|
69
|
-
"@wordpress/wordcount": "^4.
|
|
34
|
+
"@babel/runtime": "7.25.7",
|
|
35
|
+
"@wordpress/a11y": "^4.10.0",
|
|
36
|
+
"@wordpress/api-fetch": "^7.10.0",
|
|
37
|
+
"@wordpress/blob": "^4.10.0",
|
|
38
|
+
"@wordpress/block-editor": "^14.5.0",
|
|
39
|
+
"@wordpress/blocks": "^13.10.0",
|
|
40
|
+
"@wordpress/commands": "^1.10.0",
|
|
41
|
+
"@wordpress/components": "^28.10.0",
|
|
42
|
+
"@wordpress/compose": "^7.10.0",
|
|
43
|
+
"@wordpress/core-data": "^7.10.0",
|
|
44
|
+
"@wordpress/data": "^10.10.0",
|
|
45
|
+
"@wordpress/dataviews": "^4.6.0",
|
|
46
|
+
"@wordpress/date": "^5.10.0",
|
|
47
|
+
"@wordpress/deprecated": "^4.10.0",
|
|
48
|
+
"@wordpress/dom": "^4.10.0",
|
|
49
|
+
"@wordpress/element": "^6.10.0",
|
|
50
|
+
"@wordpress/fields": "^0.2.0",
|
|
51
|
+
"@wordpress/hooks": "^4.10.0",
|
|
52
|
+
"@wordpress/html-entities": "^4.10.0",
|
|
53
|
+
"@wordpress/i18n": "^5.10.0",
|
|
54
|
+
"@wordpress/icons": "^10.10.0",
|
|
55
|
+
"@wordpress/interface": "^7.0.0",
|
|
56
|
+
"@wordpress/keyboard-shortcuts": "^5.10.0",
|
|
57
|
+
"@wordpress/keycodes": "^4.10.0",
|
|
58
|
+
"@wordpress/media-utils": "^5.10.0",
|
|
59
|
+
"@wordpress/notices": "^5.10.0",
|
|
60
|
+
"@wordpress/patterns": "^2.10.0",
|
|
61
|
+
"@wordpress/plugins": "^7.10.0",
|
|
62
|
+
"@wordpress/preferences": "^4.10.0",
|
|
63
|
+
"@wordpress/private-apis": "^1.10.0",
|
|
64
|
+
"@wordpress/reusable-blocks": "^5.10.0",
|
|
65
|
+
"@wordpress/rich-text": "^7.10.0",
|
|
66
|
+
"@wordpress/server-side-render": "^5.10.0",
|
|
67
|
+
"@wordpress/url": "^4.10.0",
|
|
68
|
+
"@wordpress/warning": "^3.10.0",
|
|
69
|
+
"@wordpress/wordcount": "^4.10.0",
|
|
70
70
|
"change-case": "^4.1.2",
|
|
71
71
|
"client-zip": "^2.4.5",
|
|
72
72
|
"clsx": "^2.1.1",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "ab34a7ac935fd1478eac63b596242d83270897ee"
|
|
90
90
|
}
|
package/src/bindings/api.js
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
store as blocksStore,
|
|
6
|
-
registerBlockBindingsSource,
|
|
7
|
-
} from '@wordpress/blocks';
|
|
8
|
-
import { dispatch } from '@wordpress/data';
|
|
4
|
+
import { registerBlockBindingsSource } from '@wordpress/blocks';
|
|
9
5
|
|
|
10
6
|
/**
|
|
11
7
|
* Internal dependencies
|
|
12
8
|
*/
|
|
13
9
|
import patternOverrides from './pattern-overrides';
|
|
14
10
|
import postMeta from './post-meta';
|
|
15
|
-
import { unlock } from '../lock-unlock';
|
|
16
11
|
|
|
17
12
|
/**
|
|
18
13
|
* Function to register core block bindings sources provided by the editor.
|
|
@@ -28,29 +23,3 @@ export function registerCoreBlockBindingsSources() {
|
|
|
28
23
|
registerBlockBindingsSource( patternOverrides );
|
|
29
24
|
registerBlockBindingsSource( postMeta );
|
|
30
25
|
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Function to bootstrap core block bindings sources defined in the server.
|
|
34
|
-
*
|
|
35
|
-
* @param {Object} sources Object containing the sources to bootstrap.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```js
|
|
39
|
-
* import { bootstrapBlockBindingsSourcesFromServer } from '@wordpress/editor';
|
|
40
|
-
*
|
|
41
|
-
* bootstrapBlockBindingsSourcesFromServer( sources );
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export function bootstrapBlockBindingsSourcesFromServer( sources ) {
|
|
45
|
-
if ( sources ) {
|
|
46
|
-
const { addBootstrappedBlockBindingsSource } = unlock(
|
|
47
|
-
dispatch( blocksStore )
|
|
48
|
-
);
|
|
49
|
-
for ( const [ name, args ] of Object.entries( sources ) ) {
|
|
50
|
-
addBootstrappedBlockBindingsSource( {
|
|
51
|
-
name,
|
|
52
|
-
...args,
|
|
53
|
-
} );
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -17,21 +17,20 @@ import { __, _x } from '@wordpress/i18n';
|
|
|
17
17
|
*/
|
|
18
18
|
import { store as editorStore } from '../../store';
|
|
19
19
|
import { unlock } from '../../lock-unlock';
|
|
20
|
+
import usePostContentBlocks from '../provider/use-post-content-blocks';
|
|
20
21
|
|
|
21
22
|
function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
|
|
23
|
+
const postContentBlocks = usePostContentBlocks();
|
|
22
24
|
const { entity, onNavigateToEntityRecord, canEditTemplates } = useSelect(
|
|
23
25
|
( select ) => {
|
|
24
26
|
const {
|
|
25
|
-
getBlockEditingMode,
|
|
26
27
|
getBlockParentsByBlockName,
|
|
27
28
|
getSettings,
|
|
28
29
|
getBlockAttributes,
|
|
30
|
+
getBlockParents,
|
|
29
31
|
} = select( blockEditorStore );
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
if ( ! contentOnly ) {
|
|
33
|
-
return {};
|
|
34
|
-
}
|
|
32
|
+
const { getCurrentTemplateId, getRenderingMode } =
|
|
33
|
+
select( editorStore );
|
|
35
34
|
const patternParent = getBlockParentsByBlockName(
|
|
36
35
|
clientId,
|
|
37
36
|
'core/block',
|
|
@@ -45,19 +44,20 @@ function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
|
|
|
45
44
|
'wp_block',
|
|
46
45
|
getBlockAttributes( patternParent ).ref
|
|
47
46
|
);
|
|
48
|
-
} else
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
} else if (
|
|
48
|
+
getRenderingMode() === 'template-locked' &&
|
|
49
|
+
! getBlockParents( clientId ).some( ( parent ) =>
|
|
50
|
+
postContentBlocks.includes( parent )
|
|
51
|
+
)
|
|
52
|
+
) {
|
|
53
|
+
record = select( coreStore ).getEntityRecord(
|
|
54
|
+
'postType',
|
|
55
|
+
'wp_template',
|
|
56
|
+
getCurrentTemplateId()
|
|
53
57
|
);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
'wp_template',
|
|
58
|
-
templateId
|
|
59
|
-
);
|
|
60
|
-
}
|
|
58
|
+
}
|
|
59
|
+
if ( ! record ) {
|
|
60
|
+
return {};
|
|
61
61
|
}
|
|
62
62
|
const _canEditTemplates = select( coreStore ).canUser( 'create', {
|
|
63
63
|
kind: 'postType',
|
|
@@ -70,7 +70,7 @@ function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
|
|
|
70
70
|
getSettings().onNavigateToEntityRecord,
|
|
71
71
|
};
|
|
72
72
|
},
|
|
73
|
-
[ clientId ]
|
|
73
|
+
[ clientId, postContentBlocks ]
|
|
74
74
|
);
|
|
75
75
|
|
|
76
76
|
if ( ! entity ) {
|
|
@@ -38,10 +38,8 @@ function DocumentTools( { className, disableBlockTools = false } ) {
|
|
|
38
38
|
listViewShortcut,
|
|
39
39
|
inserterSidebarToggleRef,
|
|
40
40
|
listViewToggleRef,
|
|
41
|
-
hasFixedToolbar,
|
|
42
41
|
showIconLabels,
|
|
43
42
|
} = useSelect( ( select ) => {
|
|
44
|
-
const { getSettings } = select( blockEditorStore );
|
|
45
43
|
const { get } = select( preferencesStore );
|
|
46
44
|
const {
|
|
47
45
|
isListViewOpened,
|
|
@@ -60,7 +58,6 @@ function DocumentTools( { className, disableBlockTools = false } ) {
|
|
|
60
58
|
),
|
|
61
59
|
inserterSidebarToggleRef: getInserterSidebarToggleRef(),
|
|
62
60
|
listViewToggleRef: getListViewToggleRef(),
|
|
63
|
-
hasFixedToolbar: getSettings().hasFixedToolbar,
|
|
64
61
|
showIconLabels: get( 'core', 'showIconLabels' ),
|
|
65
62
|
isDistractionFree: get( 'core', 'distractionFree' ),
|
|
66
63
|
isVisualMode: getEditorMode() === 'visual',
|
|
@@ -99,7 +96,7 @@ function DocumentTools( { className, disableBlockTools = false } ) {
|
|
|
99
96
|
|
|
100
97
|
/* translators: button label text should, if possible, be under 16 characters. */
|
|
101
98
|
const longLabel = _x(
|
|
102
|
-
'
|
|
99
|
+
'Block Inserter',
|
|
103
100
|
'Generic label for block inserter button'
|
|
104
101
|
);
|
|
105
102
|
const shortLabel = ! isInserterOpened ? __( 'Add' ) : __( 'Close' );
|
|
@@ -137,7 +134,7 @@ function DocumentTools( { className, disableBlockTools = false } ) {
|
|
|
137
134
|
) }
|
|
138
135
|
{ ( isWideViewport || ! showIconLabels ) && (
|
|
139
136
|
<>
|
|
140
|
-
{ isLargeViewport &&
|
|
137
|
+
{ isLargeViewport && (
|
|
141
138
|
<ToolbarItem
|
|
142
139
|
as={ ToolSelector }
|
|
143
140
|
showTooltip={ ! showIconLabels }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
+
import { store as blockEditorStore } from '@wordpress/block-editor';
|
|
4
5
|
import { useSelect } from '@wordpress/data';
|
|
5
6
|
import { useMediaQuery, useViewportMatch } from '@wordpress/compose';
|
|
6
7
|
import { __unstableMotion as motion } from '@wordpress/components';
|
|
7
8
|
import { store as preferencesStore } from '@wordpress/preferences';
|
|
8
9
|
import { useState } from '@wordpress/element';
|
|
9
10
|
import { PinnedItems } from '@wordpress/interface';
|
|
10
|
-
import { store as blockEditorStore } from '@wordpress/block-editor';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Internal dependencies
|
|
@@ -53,6 +53,7 @@ function Header( {
|
|
|
53
53
|
const isLargeViewport = useViewportMatch( 'medium' );
|
|
54
54
|
const isTooNarrowForDocumentBar = useMediaQuery( '(max-width: 403px)' );
|
|
55
55
|
const {
|
|
56
|
+
postType,
|
|
56
57
|
isTextEditor,
|
|
57
58
|
isPublishSidebarOpened,
|
|
58
59
|
showIconLabels,
|
|
@@ -64,11 +65,12 @@ function Header( {
|
|
|
64
65
|
const {
|
|
65
66
|
getEditorMode,
|
|
66
67
|
getEditorSettings,
|
|
68
|
+
getCurrentPostType,
|
|
67
69
|
isPublishSidebarOpened: _isPublishSidebarOpened,
|
|
68
70
|
} = select( editorStore );
|
|
69
|
-
const { __unstableGetEditorMode } = select( blockEditorStore );
|
|
70
71
|
|
|
71
72
|
return {
|
|
73
|
+
postType: getCurrentPostType(),
|
|
72
74
|
isTextEditor: getEditorMode() === 'text',
|
|
73
75
|
isPublishSidebarOpened: _isPublishSidebarOpened(),
|
|
74
76
|
showIconLabels: getPreference( 'core', 'showIconLabels' ),
|
|
@@ -77,10 +79,13 @@ function Header( {
|
|
|
77
79
|
!! select( blockEditorStore ).getBlockSelectionStart(),
|
|
78
80
|
isNestedEntity:
|
|
79
81
|
!! getEditorSettings().onNavigateToPreviousEntityRecord,
|
|
80
|
-
isZoomedOutView: __unstableGetEditorMode() === 'zoom-out',
|
|
81
82
|
};
|
|
82
83
|
}, [] );
|
|
83
84
|
|
|
85
|
+
const canBeZoomedOut = [ 'post', 'page', 'wp_template' ].includes(
|
|
86
|
+
postType
|
|
87
|
+
);
|
|
88
|
+
|
|
84
89
|
const [ isBlockToolsCollapsed, setIsBlockToolsCollapsed ] =
|
|
85
90
|
useState( true );
|
|
86
91
|
|
|
@@ -88,9 +93,10 @@ function Header( {
|
|
|
88
93
|
( ! hasBlockSelection || isBlockToolsCollapsed ) &&
|
|
89
94
|
! isTooNarrowForDocumentBar;
|
|
90
95
|
const hasBackButton = useHasBackButton();
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
96
|
+
/*
|
|
97
|
+
* The edit-post-header classname is only kept for backward compatability
|
|
98
|
+
* as some plugins might be relying on its presence.
|
|
99
|
+
*/
|
|
94
100
|
return (
|
|
95
101
|
<div className="editor-header edit-post-header">
|
|
96
102
|
{ hasBackButton && (
|
|
@@ -132,13 +138,20 @@ function Header( {
|
|
|
132
138
|
className="editor-header__settings"
|
|
133
139
|
>
|
|
134
140
|
{ ! customSaveButton && ! isPublishSidebarOpened && (
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
141
|
+
/*
|
|
142
|
+
* This button isn't completely hidden by the publish sidebar.
|
|
143
|
+
* We can't hide the whole toolbar when the publish sidebar is open because
|
|
144
|
+
* we want to prevent mounting/unmounting the PostPublishButtonOrToggle DOM node.
|
|
145
|
+
* We track that DOM node to return focus to the PostPublishButtonOrToggle
|
|
146
|
+
* when the publish sidebar has been closed.
|
|
147
|
+
*/
|
|
140
148
|
<PostSavedState forceIsDirty={ forceIsDirty } />
|
|
141
149
|
) }
|
|
150
|
+
|
|
151
|
+
{ canBeZoomedOut && isEditorIframed && isWideViewport && (
|
|
152
|
+
<ZoomOutToggle />
|
|
153
|
+
) }
|
|
154
|
+
|
|
142
155
|
<PreviewDropdown
|
|
143
156
|
forceIsAutosaveable={ forceIsDirty }
|
|
144
157
|
disabled={ isNestedEntity }
|
|
@@ -149,8 +162,6 @@ function Header( {
|
|
|
149
162
|
/>
|
|
150
163
|
<PostViewLink />
|
|
151
164
|
|
|
152
|
-
{ isEditorIframed && isWideViewport && <ZoomOutToggle /> }
|
|
153
|
-
|
|
154
165
|
{ ( isWideViewport || ! showIconLabels ) && (
|
|
155
166
|
<PinnedItems.Slot scope="core" />
|
|
156
167
|
) }
|
|
@@ -24,13 +24,13 @@ export default function InserterSidebar() {
|
|
|
24
24
|
const {
|
|
25
25
|
blockSectionRootClientId,
|
|
26
26
|
inserterSidebarToggleRef,
|
|
27
|
-
|
|
27
|
+
inserter,
|
|
28
28
|
showMostUsedBlocks,
|
|
29
29
|
sidebarIsOpened,
|
|
30
30
|
} = useSelect( ( select ) => {
|
|
31
31
|
const {
|
|
32
32
|
getInserterSidebarToggleRef,
|
|
33
|
-
|
|
33
|
+
getInserter,
|
|
34
34
|
isPublishSidebarOpened,
|
|
35
35
|
} = unlock( select( editorStore ) );
|
|
36
36
|
const {
|
|
@@ -52,7 +52,7 @@ export default function InserterSidebar() {
|
|
|
52
52
|
};
|
|
53
53
|
return {
|
|
54
54
|
inserterSidebarToggleRef: getInserterSidebarToggleRef(),
|
|
55
|
-
|
|
55
|
+
inserter: getInserter(),
|
|
56
56
|
showMostUsedBlocks: get( 'core', 'mostUsedBlocks' ),
|
|
57
57
|
blockSectionRootClientId: getBlockSectionRootClientId(),
|
|
58
58
|
sidebarIsOpened: !! (
|
|
@@ -88,14 +88,11 @@ export default function InserterSidebar() {
|
|
|
88
88
|
showMostUsedBlocks={ showMostUsedBlocks }
|
|
89
89
|
showInserterHelpPanel
|
|
90
90
|
shouldFocusBlock={ isMobileViewport }
|
|
91
|
-
rootClientId={
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
__experimentalInitialTab={ insertionPoint.tab }
|
|
97
|
-
__experimentalInitialCategory={ insertionPoint.category }
|
|
98
|
-
__experimentalFilterValue={ insertionPoint.filterValue }
|
|
91
|
+
rootClientId={ blockSectionRootClientId }
|
|
92
|
+
onSelect={ inserter.onSelect }
|
|
93
|
+
__experimentalInitialTab={ inserter.tab }
|
|
94
|
+
__experimentalInitialCategory={ inserter.category }
|
|
95
|
+
__experimentalFilterValue={ inserter.filterValue }
|
|
99
96
|
onPatternCategorySelection={
|
|
100
97
|
sidebarIsOpened
|
|
101
98
|
? () => disableComplementaryArea( 'core' )
|
|
@@ -16,7 +16,7 @@ exports[`PostSavedState returns a disabled button if the post is not saveable 1`
|
|
|
16
16
|
xmlns="http://www.w3.org/2000/svg"
|
|
17
17
|
>
|
|
18
18
|
<path
|
|
19
|
-
d="M17.3 10.
|
|
19
|
+
d="M17.3 10.1C17.3 7.60001 15.2 5.70001 12.5 5.70001C10.3 5.70001 8.4 7.10001 7.9 9.00001H7.7C5.7 9.00001 4 10.7 4 12.8C4 14.9 5.7 16.6 7.7 16.6H9.5V15.2H7.7C6.5 15.2 5.5 14.1 5.5 12.9C5.5 11.7 6.5 10.5 7.7 10.5H9L9.3 9.40001C9.7 8.10001 11 7.20001 12.5 7.20001C14.3 7.20001 15.8 8.50001 15.8 10.1V11.4L17.1 11.6C17.9 11.7 18.5 12.5 18.5 13.4C18.5 14.4 17.7 15.2 16.8 15.2H14.5V16.6H16.7C18.5 16.6 19.9 15.1 19.9 13.3C20 11.7 18.8 10.4 17.3 10.1Z M14.1245 14.2426L15.1852 13.182L12.0032 10L8.82007 13.1831L9.88072 14.2438L11.25 12.8745V18H12.75V12.8681L14.1245 14.2426Z"
|
|
20
20
|
/>
|
|
21
21
|
</svg>
|
|
22
22
|
</button>
|