@wordpress/editor 14.1.0 → 14.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -12
- package/README.md +28 -7
- package/build/bindings/pattern-overrides.js +8 -5
- package/build/bindings/pattern-overrides.js.map +1 -1
- package/build/bindings/post-meta.js +4 -0
- package/build/bindings/post-meta.js.map +1 -1
- package/build/components/create-template-part-modal/index.js +2 -0
- package/build/components/create-template-part-modal/index.js.map +1 -1
- package/build/components/document-bar/index.js +11 -4
- package/build/components/document-bar/index.js.map +1 -1
- package/build/components/editor-interface/index.js +6 -3
- package/build/components/editor-interface/index.js.map +1 -1
- package/build/components/entities-saved-states/entity-record-item.js +4 -12
- package/build/components/entities-saved-states/entity-record-item.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-keyboard-shortcuts/index.js +1 -1
- package/build/components/global-keyboard-shortcuts/index.js.map +1 -1
- package/build/components/global-styles-provider/index.js +6 -65
- package/build/components/global-styles-provider/index.js.map +1 -1
- package/build/components/header/index.js +6 -2
- package/build/components/header/index.js.map +1 -1
- package/build/components/index.js +10 -2
- package/build/components/index.js.map +1 -1
- package/build/components/inserter-sidebar/index.js +10 -21
- package/build/components/inserter-sidebar/index.js.map +1 -1
- package/build/components/list-view-sidebar/index.js +19 -47
- package/build/components/list-view-sidebar/index.js.map +1 -1
- package/build/components/page-attributes/parent.js +2 -1
- package/build/components/page-attributes/parent.js.map +1 -1
- package/build/components/post-actions/actions.js +371 -452
- package/build/components/post-actions/actions.js.map +1 -1
- package/build/components/post-actions/index.js +7 -2
- package/build/components/post-actions/index.js.map +1 -1
- package/build/components/post-excerpt/index.js +2 -1
- package/build/components/post-excerpt/index.js.map +1 -1
- package/build/components/post-excerpt/panel.js +3 -2
- package/build/components/post-excerpt/panel.js.map +1 -1
- package/build/components/post-preview-button/index.js +1 -1
- package/build/components/post-preview-button/index.js.map +1 -1
- package/build/components/post-publish-panel/index.js +1 -1
- package/build/components/post-publish-panel/index.js.map +1 -1
- package/build/components/post-saved-state/index.js +11 -1
- package/build/components/post-saved-state/index.js.map +1 -1
- package/build/components/post-schedule/index.js +3 -0
- package/build/components/post-schedule/index.js.map +1 -1
- package/build/components/post-slug/check.js +8 -1
- package/build/components/post-slug/check.js.map +1 -1
- package/build/components/post-slug/index.js +6 -0
- package/build/components/post-slug/index.js.map +1 -1
- package/build/components/post-status/index.js +4 -2
- package/build/components/post-status/index.js.map +1 -1
- package/build/components/post-sticky/index.js +9 -13
- package/build/components/post-sticky/index.js.map +1 -1
- package/build/components/post-template/create-new-template-modal.js +2 -0
- package/build/components/post-template/create-new-template-modal.js.map +1 -1
- package/build/components/post-title/index.js +5 -13
- package/build/components/post-title/index.js.map +1 -1
- package/build/components/preview-dropdown/index.js +1 -1
- package/build/components/preview-dropdown/index.js.map +1 -1
- package/build/components/provider/index.native.js +0 -4
- package/build/components/provider/index.native.js.map +1 -1
- package/build/components/provider/use-block-editor-settings.js +7 -4
- package/build/components/provider/use-block-editor-settings.js.map +1 -1
- package/build/components/save-publish-panels/index.js +30 -16
- package/build/components/save-publish-panels/index.js.map +1 -1
- package/build/components/sidebar/index.js +4 -1
- package/build/components/sidebar/index.js.map +1 -1
- package/build/components/sidebar/post-summary.js +2 -4
- package/build/components/sidebar/post-summary.js.map +1 -1
- package/build/components/template-content-panel/index.js +29 -4
- package/build/components/template-content-panel/index.js.map +1 -1
- package/build/components/template-part-content-panel/index.js +70 -0
- package/build/components/template-part-content-panel/index.js.map +1 -0
- package/build/components/visual-editor/index.js +1 -1
- package/build/components/visual-editor/index.js.map +1 -1
- package/build/dataviews/actions/delete-post.js +96 -0
- package/build/dataviews/actions/delete-post.js.map +1 -0
- package/build/{components/post-actions/export-pattern-action.js → dataviews/actions/export-pattern.js} +11 -20
- package/build/dataviews/actions/export-pattern.js.map +1 -0
- package/build/dataviews/actions/index.js +32 -0
- package/build/dataviews/actions/index.js.map +1 -0
- package/build/dataviews/actions/reset-post.js +111 -0
- package/build/dataviews/actions/reset-post.js.map +1 -0
- package/build/dataviews/actions/utils.js +50 -0
- package/build/dataviews/actions/utils.js.map +1 -0
- package/build/dataviews/store/private-actions.js.map +1 -1
- package/build/dataviews/store/private-selectors.js +6 -6
- package/build/dataviews/store/private-selectors.js.map +1 -1
- package/build/dataviews/store/reducer.js +6 -2
- package/build/dataviews/store/reducer.js.map +1 -1
- package/build/dataviews/types.js +6 -0
- package/build/dataviews/types.js.map +1 -0
- package/build/hooks/pattern-overrides.js +3 -3
- package/build/hooks/pattern-overrides.js.map +1 -1
- package/build/lock-unlock.js +1 -1
- package/build/lock-unlock.js.map +1 -1
- package/build/private-apis.js +2 -0
- package/build/private-apis.js.map +1 -1
- package/build/private-apis.native.js +0 -2
- package/build/private-apis.native.js.map +1 -1
- package/build/store/constants.js.map +1 -1
- package/build/store/private-actions.js +9 -5
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +0 -18
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/utils/is-template-revertable.js +6 -8
- package/build/store/utils/is-template-revertable.js.map +1 -1
- package/build-module/bindings/pattern-overrides.js +8 -5
- package/build-module/bindings/pattern-overrides.js.map +1 -1
- package/build-module/bindings/post-meta.js +4 -0
- package/build-module/bindings/post-meta.js.map +1 -1
- package/build-module/components/create-template-part-modal/index.js +2 -0
- package/build-module/components/create-template-part-modal/index.js.map +1 -1
- package/build-module/components/document-bar/index.js +11 -4
- package/build-module/components/document-bar/index.js.map +1 -1
- package/build-module/components/editor-interface/index.js +6 -3
- package/build-module/components/editor-interface/index.js.map +1 -1
- package/build-module/components/entities-saved-states/entity-record-item.js +6 -14
- package/build-module/components/entities-saved-states/entity-record-item.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-keyboard-shortcuts/index.js +1 -1
- package/build-module/components/global-keyboard-shortcuts/index.js.map +1 -1
- package/build-module/components/global-styles-provider/index.js +7 -66
- package/build-module/components/global-styles-provider/index.js.map +1 -1
- package/build-module/components/header/index.js +6 -2
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/index.js +11 -2
- package/build-module/components/index.js.map +1 -1
- package/build-module/components/inserter-sidebar/index.js +11 -22
- package/build-module/components/inserter-sidebar/index.js.map +1 -1
- package/build-module/components/list-view-sidebar/index.js +20 -49
- package/build-module/components/list-view-sidebar/index.js.map +1 -1
- package/build-module/components/page-attributes/parent.js +2 -1
- package/build-module/components/page-attributes/parent.js.map +1 -1
- package/build-module/components/post-actions/actions.js +370 -450
- package/build-module/components/post-actions/actions.js.map +1 -1
- package/build-module/components/post-actions/index.js +7 -2
- package/build-module/components/post-actions/index.js.map +1 -1
- package/build-module/components/post-excerpt/index.js +2 -1
- package/build-module/components/post-excerpt/index.js.map +1 -1
- package/build-module/components/post-excerpt/panel.js +3 -2
- package/build-module/components/post-excerpt/panel.js.map +1 -1
- package/build-module/components/post-preview-button/index.js +1 -1
- package/build-module/components/post-preview-button/index.js.map +1 -1
- package/build-module/components/post-publish-panel/index.js +1 -1
- package/build-module/components/post-publish-panel/index.js.map +1 -1
- package/build-module/components/post-saved-state/index.js +11 -1
- package/build-module/components/post-saved-state/index.js.map +1 -1
- package/build-module/components/post-schedule/index.js +3 -0
- package/build-module/components/post-schedule/index.js.map +1 -1
- package/build-module/components/post-slug/check.js +9 -0
- package/build-module/components/post-slug/check.js.map +1 -1
- package/build-module/components/post-slug/index.js +6 -0
- package/build-module/components/post-slug/index.js.map +1 -1
- package/build-module/components/post-status/index.js +3 -2
- package/build-module/components/post-status/index.js.map +1 -1
- package/build-module/components/post-sticky/index.js +10 -14
- package/build-module/components/post-sticky/index.js.map +1 -1
- package/build-module/components/post-template/create-new-template-modal.js +2 -0
- package/build-module/components/post-template/create-new-template-modal.js.map +1 -1
- package/build-module/components/post-title/index.js +5 -13
- package/build-module/components/post-title/index.js.map +1 -1
- package/build-module/components/preview-dropdown/index.js +1 -1
- package/build-module/components/preview-dropdown/index.js.map +1 -1
- package/build-module/components/provider/index.native.js +0 -4
- package/build-module/components/provider/index.native.js.map +1 -1
- package/build-module/components/provider/use-block-editor-settings.js +7 -4
- package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
- package/build-module/components/save-publish-panels/index.js +30 -16
- package/build-module/components/save-publish-panels/index.js.map +1 -1
- package/build-module/components/sidebar/index.js +4 -1
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/sidebar/post-summary.js +2 -4
- package/build-module/components/sidebar/post-summary.js.map +1 -1
- package/build-module/components/template-content-panel/index.js +30 -5
- package/build-module/components/template-content-panel/index.js.map +1 -1
- package/build-module/components/template-part-content-panel/index.js +63 -0
- package/build-module/components/template-part-content-panel/index.js.map +1 -0
- package/build-module/components/visual-editor/index.js +1 -1
- package/build-module/components/visual-editor/index.js.map +1 -1
- package/build-module/dataviews/actions/delete-post.js +87 -0
- package/build-module/dataviews/actions/delete-post.js.map +1 -0
- package/build-module/{components/post-actions/export-pattern-action.js → dataviews/actions/export-pattern.js} +10 -19
- package/build-module/dataviews/actions/export-pattern.js.map +1 -0
- package/build-module/dataviews/actions/index.js +24 -0
- package/build-module/dataviews/actions/index.js.map +1 -0
- package/build-module/dataviews/actions/reset-post.js +104 -0
- package/build-module/dataviews/actions/reset-post.js.map +1 -0
- package/build-module/dataviews/actions/utils.js +41 -0
- package/build-module/dataviews/actions/utils.js.map +1 -0
- package/build-module/dataviews/store/private-actions.js.map +1 -1
- package/build-module/dataviews/store/private-selectors.js +5 -5
- package/build-module/dataviews/store/private-selectors.js.map +1 -1
- package/build-module/dataviews/store/reducer.js +6 -2
- package/build-module/dataviews/store/reducer.js.map +1 -1
- package/build-module/dataviews/types.js +2 -0
- package/build-module/dataviews/types.js.map +1 -0
- package/build-module/hooks/pattern-overrides.js +4 -2
- package/build-module/hooks/pattern-overrides.js.map +1 -1
- package/build-module/lock-unlock.js +1 -1
- package/build-module/lock-unlock.js.map +1 -1
- package/build-module/private-apis.js +2 -0
- package/build-module/private-apis.js.map +1 -1
- package/build-module/private-apis.native.js +0 -2
- package/build-module/private-apis.native.js.map +1 -1
- package/build-module/store/constants.js.map +1 -1
- package/build-module/store/private-actions.js +9 -5
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +0 -17
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/utils/is-template-revertable.js +6 -8
- package/build-module/store/utils/is-template-revertable.js.map +1 -1
- package/build-style/style-rtl.css +26 -76
- package/build-style/style.css +26 -76
- package/build-types/bindings/index.d.ts +2 -0
- package/build-types/bindings/index.d.ts.map +1 -0
- package/build-types/bindings/pattern-overrides.d.ts +18 -0
- package/build-types/bindings/pattern-overrides.d.ts.map +1 -0
- package/build-types/bindings/post-meta.d.ts +25 -0
- package/build-types/bindings/post-meta.d.ts.map +1 -0
- package/build-types/components/autocompleters/index.d.ts +2 -0
- package/build-types/components/autocompleters/index.d.ts.map +1 -0
- package/build-types/components/autocompleters/user.d.ts +6 -0
- package/build-types/components/autocompleters/user.d.ts.map +1 -0
- package/build-types/components/autosave-monitor/index.d.ts +15 -0
- package/build-types/components/autosave-monitor/index.d.ts.map +1 -0
- package/build-types/components/block-manager/category.d.ts +6 -0
- package/build-types/components/block-manager/category.d.ts.map +1 -0
- package/build-types/components/block-manager/checklist.d.ts +7 -0
- package/build-types/components/block-manager/checklist.d.ts.map +1 -0
- package/build-types/components/block-manager/index.d.ts +3 -0
- package/build-types/components/block-manager/index.d.ts.map +1 -0
- package/build-types/components/block-removal-warnings/index.d.ts +2 -0
- package/build-types/components/block-removal-warnings/index.d.ts.map +1 -0
- package/build-types/components/block-settings-menu/content-only-settings-menu.d.ts +2 -0
- package/build-types/components/block-settings-menu/content-only-settings-menu.d.ts.map +1 -0
- package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts +65 -0
- package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts.map +1 -0
- package/build-types/components/blog-title/index.d.ts +2 -0
- package/build-types/components/blog-title/index.d.ts.map +1 -0
- package/build-types/components/character-count/index.d.ts +7 -0
- package/build-types/components/character-count/index.d.ts.map +1 -0
- package/build-types/components/collapsible-block-toolbar/index.d.ts +6 -0
- package/build-types/components/collapsible-block-toolbar/index.d.ts.map +1 -0
- package/build-types/components/commands/index.d.ts +2 -0
- package/build-types/components/commands/index.d.ts.map +1 -0
- package/build-types/components/create-template-part-modal/index.d.ts +14 -0
- package/build-types/components/create-template-part-modal/index.d.ts.map +1 -0
- package/build-types/components/create-template-part-modal/utils.d.ts +4 -0
- package/build-types/components/create-template-part-modal/utils.d.ts.map +1 -0
- package/build-types/components/deprecated.d.ts +182 -0
- package/build-types/components/deprecated.d.ts.map +1 -0
- package/build-types/components/document-bar/index.d.ts +22 -0
- package/build-types/components/document-bar/index.d.ts.map +1 -0
- package/build-types/components/document-outline/check.d.ts +12 -0
- package/build-types/components/document-outline/check.d.ts.map +1 -0
- package/build-types/components/document-outline/index.d.ts +16 -0
- package/build-types/components/document-outline/index.d.ts.map +1 -0
- package/build-types/components/document-outline/item.d.ts +9 -0
- package/build-types/components/document-outline/item.d.ts.map +1 -0
- package/build-types/components/document-tools/index.d.ts +6 -0
- package/build-types/components/document-tools/index.d.ts.map +1 -0
- package/build-types/components/editor/index.d.ts +14 -0
- package/build-types/components/editor/index.d.ts.map +1 -0
- package/build-types/components/editor-history/redo.d.ts +4 -0
- package/build-types/components/editor-history/redo.d.ts.map +1 -0
- package/build-types/components/editor-history/undo.d.ts +4 -0
- package/build-types/components/editor-history/undo.d.ts.map +1 -0
- package/build-types/components/editor-interface/content-slot-fill.d.ts +3 -0
- package/build-types/components/editor-interface/content-slot-fill.d.ts.map +1 -0
- package/build-types/components/editor-interface/index.d.ts +17 -0
- package/build-types/components/editor-interface/index.d.ts.map +1 -0
- package/build-types/components/editor-notices/index.d.ts +13 -0
- package/build-types/components/editor-notices/index.d.ts.map +1 -0
- package/build-types/components/editor-snackbars/index.d.ts +7 -0
- package/build-types/components/editor-snackbars/index.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/entity-record-item.d.ts +6 -0
- package/build-types/components/entities-saved-states/entity-record-item.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/entity-type-list.d.ts +6 -0
- package/build-types/components/entities-saved-states/entity-type-list.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/hooks/use-is-dirty.d.ts +2 -0
- package/build-types/components/entities-saved-states/hooks/use-is-dirty.d.ts.map +1 -0
- package/build-types/components/entities-saved-states/index.d.ts +43 -0
- package/build-types/components/entities-saved-states/index.d.ts.map +1 -0
- package/build-types/components/error-boundary/index.d.ts +14 -0
- package/build-types/components/error-boundary/index.d.ts.map +1 -0
- package/build-types/components/global-keyboard-shortcuts/index.d.ts +9 -0
- package/build-types/components/global-keyboard-shortcuts/index.d.ts.map +1 -0
- package/build-types/components/global-keyboard-shortcuts/register-shortcuts.d.ts +8 -0
- package/build-types/components/global-keyboard-shortcuts/register-shortcuts.d.ts.map +1 -0
- package/build-types/components/global-styles-provider/index.d.ts +20 -0
- package/build-types/components/global-styles-provider/index.d.ts.map +1 -0
- package/build-types/components/header/back-button.d.ts +6 -0
- package/build-types/components/header/back-button.d.ts.map +1 -0
- package/build-types/components/header/index.d.ts +10 -0
- package/build-types/components/header/index.d.ts.map +1 -0
- package/build-types/components/index.d.ts +108 -0
- package/build-types/components/index.d.ts.map +1 -0
- package/build-types/components/inserter-sidebar/index.d.ts +2 -0
- package/build-types/components/inserter-sidebar/index.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/config.d.ts +26 -0
- package/build-types/components/keyboard-shortcut-help-modal/config.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts +5 -0
- package/build-types/components/keyboard-shortcut-help-modal/dynamic-shortcut.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/index.d.ts +3 -0
- package/build-types/components/keyboard-shortcut-help-modal/index.d.ts.map +1 -0
- package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts +8 -0
- package/build-types/components/keyboard-shortcut-help-modal/shortcut.d.ts.map +1 -0
- package/build-types/components/list-view-sidebar/index.d.ts +2 -0
- package/build-types/components/list-view-sidebar/index.d.ts.map +1 -0
- package/build-types/components/list-view-sidebar/list-view-outline.d.ts +2 -0
- package/build-types/components/list-view-sidebar/list-view-outline.d.ts.map +1 -0
- package/build-types/components/local-autosave-monitor/index.d.ts +3 -0
- package/build-types/components/local-autosave-monitor/index.d.ts.map +1 -0
- package/build-types/components/media-categories/index.d.ts +7 -0
- package/build-types/components/media-categories/index.d.ts.map +1 -0
- package/build-types/components/mode-switcher/index.d.ts +3 -0
- package/build-types/components/mode-switcher/index.d.ts.map +1 -0
- package/build-types/components/more-menu/copy-content-menu-item.d.ts +2 -0
- package/build-types/components/more-menu/copy-content-menu-item.d.ts.map +1 -0
- package/build-types/components/more-menu/index.d.ts +2 -0
- package/build-types/components/more-menu/index.d.ts.map +1 -0
- package/build-types/components/more-menu/tools-more-menu-group.d.ts +6 -0
- package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -0
- package/build-types/components/more-menu/view-more-menu-group.d.ts +6 -0
- package/build-types/components/more-menu/view-more-menu-group.d.ts.map +1 -0
- package/build-types/components/page-attributes/check.d.ts +13 -0
- package/build-types/components/page-attributes/check.d.ts.map +1 -0
- package/build-types/components/page-attributes/order.d.ts +9 -0
- package/build-types/components/page-attributes/order.d.ts.map +1 -0
- package/build-types/components/page-attributes/panel.d.ts +7 -0
- package/build-types/components/page-attributes/panel.d.ts.map +1 -0
- package/build-types/components/page-attributes/parent.d.ts +11 -0
- package/build-types/components/page-attributes/parent.d.ts.map +1 -0
- package/build-types/components/pattern-duplicate-modal/index.d.ts +3 -0
- package/build-types/components/pattern-duplicate-modal/index.d.ts.map +1 -0
- package/build-types/components/pattern-overrides-panel/index.d.ts +2 -0
- package/build-types/components/pattern-overrides-panel/index.d.ts.map +1 -0
- package/build-types/components/pattern-rename-modal/index.d.ts +3 -0
- package/build-types/components/pattern-rename-modal/index.d.ts.map +1 -0
- package/build-types/components/plugin-document-setting-panel/index.d.ts +69 -0
- package/build-types/components/plugin-document-setting-panel/index.d.ts.map +1 -0
- package/build-types/components/plugin-more-menu-item/index.d.ts +3 -0
- package/build-types/components/plugin-more-menu-item/index.d.ts.map +1 -0
- package/build-types/components/plugin-post-publish-panel/index.d.ts +47 -0
- package/build-types/components/plugin-post-publish-panel/index.d.ts.map +1 -0
- package/build-types/components/plugin-post-status-info/index.d.ts +57 -0
- package/build-types/components/plugin-post-status-info/index.d.ts.map +1 -0
- package/build-types/components/plugin-pre-publish-panel/index.d.ts +50 -0
- package/build-types/components/plugin-pre-publish-panel/index.d.ts.map +1 -0
- package/build-types/components/plugin-sidebar/index.d.ts +73 -0
- package/build-types/components/plugin-sidebar/index.d.ts.map +1 -0
- package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts +52 -0
- package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts.map +1 -0
- package/build-types/components/post-actions/actions.d.ts +31 -0
- package/build-types/components/post-actions/actions.d.ts.map +1 -0
- package/build-types/components/post-actions/index.d.ts +5 -0
- package/build-types/components/post-actions/index.d.ts.map +1 -0
- package/build-types/components/post-author/check.d.ts +13 -0
- package/build-types/components/post-author/check.d.ts.map +1 -0
- package/build-types/components/post-author/combobox.d.ts +2 -0
- package/build-types/components/post-author/combobox.d.ts.map +1 -0
- package/build-types/components/post-author/constants.d.ts +9 -0
- package/build-types/components/post-author/constants.d.ts.map +1 -0
- package/build-types/components/post-author/hook.d.ts +6 -0
- package/build-types/components/post-author/hook.d.ts.map +1 -0
- package/build-types/components/post-author/index.d.ts +8 -0
- package/build-types/components/post-author/index.d.ts.map +1 -0
- package/build-types/components/post-author/panel.d.ts +8 -0
- package/build-types/components/post-author/panel.d.ts.map +1 -0
- package/build-types/components/post-author/select.d.ts +2 -0
- package/build-types/components/post-author/select.d.ts.map +1 -0
- package/build-types/components/post-card-panel/index.d.ts +4 -0
- package/build-types/components/post-card-panel/index.d.ts.map +1 -0
- package/build-types/components/post-comments/index.d.ts +3 -0
- package/build-types/components/post-comments/index.d.ts.map +1 -0
- package/build-types/components/post-content-information/index.d.ts +2 -0
- package/build-types/components/post-content-information/index.d.ts.map +1 -0
- package/build-types/components/post-discussion/panel.d.ts +10 -0
- package/build-types/components/post-discussion/panel.d.ts.map +1 -0
- package/build-types/components/post-excerpt/check.d.ts +13 -0
- package/build-types/components/post-excerpt/check.d.ts.map +1 -0
- package/build-types/components/post-excerpt/index.d.ts +15 -0
- package/build-types/components/post-excerpt/index.d.ts.map +1 -0
- package/build-types/components/post-excerpt/panel.d.ts +8 -0
- package/build-types/components/post-excerpt/panel.d.ts.map +1 -0
- package/build-types/components/post-excerpt/plugin.d.ts +53 -0
- package/build-types/components/post-excerpt/plugin.d.ts.map +1 -0
- package/build-types/components/post-featured-image/check.d.ts +14 -0
- package/build-types/components/post-featured-image/check.d.ts.map +1 -0
- package/build-types/components/post-featured-image/index.d.ts +3 -0
- package/build-types/components/post-featured-image/index.d.ts.map +1 -0
- package/build-types/components/post-featured-image/panel.d.ts +13 -0
- package/build-types/components/post-featured-image/panel.d.ts.map +1 -0
- package/build-types/components/post-format/check.d.ts +5 -0
- package/build-types/components/post-format/check.d.ts.map +1 -0
- package/build-types/components/post-format/index.d.ts +16 -0
- package/build-types/components/post-format/index.d.ts.map +1 -0
- package/build-types/components/post-format/panel.d.ts +8 -0
- package/build-types/components/post-format/panel.d.ts.map +1 -0
- package/build-types/components/post-last-edited-panel/index.d.ts +2 -0
- package/build-types/components/post-last-edited-panel/index.d.ts.map +1 -0
- package/build-types/components/post-last-revision/check.d.ts +13 -0
- package/build-types/components/post-last-revision/check.d.ts.map +1 -0
- package/build-types/components/post-last-revision/index.d.ts +9 -0
- package/build-types/components/post-last-revision/index.d.ts.map +1 -0
- package/build-types/components/post-last-revision/panel.d.ts +8 -0
- package/build-types/components/post-last-revision/panel.d.ts.map +1 -0
- package/build-types/components/post-locked-modal/index.d.ts +8 -0
- package/build-types/components/post-locked-modal/index.d.ts.map +1 -0
- package/build-types/components/post-panel-row/index.d.ts +3 -0
- package/build-types/components/post-panel-row/index.d.ts.map +1 -0
- package/build-types/components/post-panel-section/index.d.ts +6 -0
- package/build-types/components/post-panel-section/index.d.ts.map +1 -0
- package/build-types/components/post-pending-status/check.d.ts +15 -0
- package/build-types/components/post-pending-status/check.d.ts.map +1 -0
- package/build-types/components/post-pending-status/index.d.ts +8 -0
- package/build-types/components/post-pending-status/index.d.ts.map +1 -0
- package/build-types/components/post-pingbacks/index.d.ts +3 -0
- package/build-types/components/post-pingbacks/index.d.ts.map +1 -0
- package/build-types/components/post-preview-button/index.d.ts +23 -0
- package/build-types/components/post-preview-button/index.d.ts.map +1 -0
- package/build-types/components/post-publish-button/index.d.ts +17 -0
- package/build-types/components/post-publish-button/index.d.ts.map +1 -0
- package/build-types/components/post-publish-button/label.d.ts +7 -0
- package/build-types/components/post-publish-button/label.d.ts.map +1 -0
- package/build-types/components/post-publish-button/post-publish-button-or-toggle.d.ts +17 -0
- package/build-types/components/post-publish-button/post-publish-button-or-toggle.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/index.d.ts +10 -0
- package/build-types/components/post-publish-panel/index.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-category-panel.d.ts +3 -0
- package/build-types/components/post-publish-panel/maybe-category-panel.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-post-format-panel.d.ts +2 -0
- package/build-types/components/post-publish-panel/maybe-post-format-panel.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-tags-panel.d.ts +3 -0
- package/build-types/components/post-publish-panel/maybe-tags-panel.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/maybe-upload-media.d.ts +2 -0
- package/build-types/components/post-publish-panel/maybe-upload-media.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/postpublish.d.ts +3 -0
- package/build-types/components/post-publish-panel/postpublish.d.ts.map +1 -0
- package/build-types/components/post-publish-panel/prepublish.d.ts +5 -0
- package/build-types/components/post-publish-panel/prepublish.d.ts.map +1 -0
- package/build-types/components/post-saved-state/index.d.ts +13 -0
- package/build-types/components/post-saved-state/index.d.ts.map +1 -0
- package/build-types/components/post-schedule/check.d.ts +12 -0
- package/build-types/components/post-schedule/check.d.ts.map +1 -0
- package/build-types/components/post-schedule/index.d.ts +17 -0
- package/build-types/components/post-schedule/index.d.ts.map +1 -0
- package/build-types/components/post-schedule/label.d.ts +25 -0
- package/build-types/components/post-schedule/label.d.ts.map +1 -0
- package/build-types/components/post-schedule/panel.d.ts +7 -0
- package/build-types/components/post-schedule/panel.d.ts.map +1 -0
- package/build-types/components/post-slug/check.d.ts +12 -0
- package/build-types/components/post-slug/check.d.ts.map +1 -0
- package/build-types/components/post-slug/index.d.ts +7 -0
- package/build-types/components/post-slug/index.d.ts.map +1 -0
- package/build-types/components/post-slug/panel.d.ts +3 -0
- package/build-types/components/post-slug/panel.d.ts.map +1 -0
- package/build-types/components/post-status/index.d.ts +6 -0
- package/build-types/components/post-status/index.d.ts.map +1 -0
- package/build-types/components/post-sticky/check.d.ts +12 -0
- package/build-types/components/post-sticky/check.d.ts.map +1 -0
- package/build-types/components/post-sticky/index.d.ts +7 -0
- package/build-types/components/post-sticky/index.d.ts.map +1 -0
- package/build-types/components/post-sticky/panel.d.ts +3 -0
- package/build-types/components/post-sticky/panel.d.ts.map +1 -0
- package/build-types/components/post-switch-to-draft-button/index.d.ts +7 -0
- package/build-types/components/post-switch-to-draft-button/index.d.ts.map +1 -0
- package/build-types/components/post-sync-status/index.d.ts +7 -0
- package/build-types/components/post-sync-status/index.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/check.d.ts +12 -0
- package/build-types/components/post-taxonomies/check.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts +64 -0
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts +102 -0
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/index.d.ts +5 -0
- package/build-types/components/post-taxonomies/index.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/most-used-terms.d.ts +5 -0
- package/build-types/components/post-taxonomies/most-used-terms.d.ts.map +1 -0
- package/build-types/components/post-taxonomies/panel.d.ts +3 -0
- package/build-types/components/post-taxonomies/panel.d.ts.map +1 -0
- package/build-types/components/post-template/block-theme.d.ts +4 -0
- package/build-types/components/post-template/block-theme.d.ts.map +1 -0
- package/build-types/components/post-template/classic-theme.d.ts +3 -0
- package/build-types/components/post-template/classic-theme.d.ts.map +1 -0
- package/build-types/components/post-template/create-new-template-modal.d.ts +4 -0
- package/build-types/components/post-template/create-new-template-modal.d.ts.map +1 -0
- package/build-types/components/post-template/create-new-template.d.ts +4 -0
- package/build-types/components/post-template/create-new-template.d.ts.map +1 -0
- package/build-types/components/post-template/hooks.d.ts +8 -0
- package/build-types/components/post-template/hooks.d.ts.map +1 -0
- package/build-types/components/post-template/panel.d.ts +7 -0
- package/build-types/components/post-template/panel.d.ts.map +1 -0
- package/build-types/components/post-template/reset-default-template.d.ts +4 -0
- package/build-types/components/post-template/reset-default-template.d.ts.map +1 -0
- package/build-types/components/post-template/swap-template-button.d.ts +4 -0
- package/build-types/components/post-template/swap-template-button.d.ts.map +1 -0
- package/build-types/components/post-text-editor/index.d.ts +7 -0
- package/build-types/components/post-text-editor/index.d.ts.map +1 -0
- package/build-types/components/post-title/constants.d.ts +3 -0
- package/build-types/components/post-title/constants.d.ts.map +1 -0
- package/build-types/components/post-title/index.d.ts +3 -0
- package/build-types/components/post-title/index.d.ts.map +1 -0
- package/build-types/components/post-title/post-title-raw.d.ts +3 -0
- package/build-types/components/post-title/post-title-raw.d.ts.map +1 -0
- package/build-types/components/post-title/use-post-title-focus.d.ts +9 -0
- package/build-types/components/post-title/use-post-title-focus.d.ts.map +1 -0
- package/build-types/components/post-title/use-post-title.d.ts +7 -0
- package/build-types/components/post-title/use-post-title.d.ts.map +1 -0
- package/build-types/components/post-transform-panel/hooks.d.ts +2 -0
- package/build-types/components/post-transform-panel/hooks.d.ts.map +1 -0
- package/build-types/components/post-transform-panel/index.d.ts +2 -0
- package/build-types/components/post-transform-panel/index.d.ts.map +1 -0
- package/build-types/components/post-trash/check.d.ts +12 -0
- package/build-types/components/post-trash/check.d.ts.map +1 -0
- package/build-types/components/post-trash/index.d.ts +7 -0
- package/build-types/components/post-trash/index.d.ts.map +1 -0
- package/build-types/components/post-type-support-check/index.d.ts +18 -0
- package/build-types/components/post-type-support-check/index.d.ts.map +1 -0
- package/build-types/components/post-url/check.d.ts +12 -0
- package/build-types/components/post-url/check.d.ts.map +1 -0
- package/build-types/components/post-url/index.d.ts +14 -0
- package/build-types/components/post-url/index.d.ts.map +1 -0
- package/build-types/components/post-url/label.d.ts +13 -0
- package/build-types/components/post-url/label.d.ts.map +1 -0
- package/build-types/components/post-url/panel.d.ts +7 -0
- package/build-types/components/post-url/panel.d.ts.map +1 -0
- package/build-types/components/post-view-link/index.d.ts +2 -0
- package/build-types/components/post-view-link/index.d.ts.map +1 -0
- package/build-types/components/post-visibility/check.d.ts +13 -0
- package/build-types/components/post-visibility/check.d.ts.map +1 -0
- package/build-types/components/post-visibility/index.d.ts +11 -0
- package/build-types/components/post-visibility/index.d.ts.map +1 -0
- package/build-types/components/post-visibility/label.d.ts +13 -0
- package/build-types/components/post-visibility/label.d.ts.map +1 -0
- package/build-types/components/post-visibility/utils.d.ts +21 -0
- package/build-types/components/post-visibility/utils.d.ts.map +1 -0
- package/build-types/components/posts-per-page/index.d.ts +2 -0
- package/build-types/components/posts-per-page/index.d.ts.map +1 -0
- package/build-types/components/preferences-modal/enable-panel.d.ts +3 -0
- package/build-types/components/preferences-modal/enable-panel.d.ts.map +1 -0
- package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts +14 -0
- package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts.map +1 -0
- package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts +3 -0
- package/build-types/components/preferences-modal/enable-publish-sidebar.d.ts.map +1 -0
- package/build-types/components/preferences-modal/index.d.ts +4 -0
- package/build-types/components/preferences-modal/index.d.ts.map +1 -0
- package/build-types/components/preview-dropdown/index.d.ts +5 -0
- package/build-types/components/preview-dropdown/index.d.ts.map +1 -0
- package/build-types/components/provider/disable-non-page-content-blocks.d.ts +6 -0
- package/build-types/components/provider/disable-non-page-content-blocks.d.ts.map +1 -0
- package/build-types/components/provider/index.d.ts +65 -0
- package/build-types/components/provider/index.d.ts.map +1 -0
- package/build-types/components/provider/navigation-block-editing-mode.d.ts +9 -0
- package/build-types/components/provider/navigation-block-editing-mode.d.ts.map +1 -0
- package/build-types/components/provider/use-auto-switch-editor-sidebars.d.ts +7 -0
- package/build-types/components/provider/use-auto-switch-editor-sidebars.d.ts.map +1 -0
- package/build-types/components/provider/use-block-editor-settings.d.ts +13 -0
- package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -0
- package/build-types/components/provider/use-hide-blocks-from-inserter.d.ts +9 -0
- package/build-types/components/provider/use-hide-blocks-from-inserter.d.ts.map +1 -0
- package/build-types/components/provider/with-registry-provider.d.ts +3 -0
- package/build-types/components/provider/with-registry-provider.d.ts.map +1 -0
- package/build-types/components/resizable-editor/index.d.ts +8 -0
- package/build-types/components/resizable-editor/index.d.ts.map +1 -0
- package/build-types/components/resizable-editor/resize-handle.d.ts +5 -0
- package/build-types/components/resizable-editor/resize-handle.d.ts.map +1 -0
- package/build-types/components/save-publish-panels/index.d.ts +11 -0
- package/build-types/components/save-publish-panels/index.d.ts.map +1 -0
- package/build-types/components/sidebar/constants.d.ts +5 -0
- package/build-types/components/sidebar/constants.d.ts.map +1 -0
- package/build-types/components/sidebar/header.d.ts +3 -0
- package/build-types/components/sidebar/header.d.ts.map +1 -0
- package/build-types/components/sidebar/index.d.ts +6 -0
- package/build-types/components/sidebar/index.d.ts.map +1 -0
- package/build-types/components/sidebar/post-summary.d.ts +4 -0
- package/build-types/components/sidebar/post-summary.d.ts.map +1 -0
- package/build-types/components/site-discussion/index.d.ts +2 -0
- package/build-types/components/site-discussion/index.d.ts.map +1 -0
- package/build-types/components/start-page-options/index.d.ts +2 -0
- package/build-types/components/start-page-options/index.d.ts.map +1 -0
- package/build-types/components/start-template-options/index.d.ts +2 -0
- package/build-types/components/start-template-options/index.d.ts.map +1 -0
- package/build-types/components/table-of-contents/index.d.ts +7 -0
- package/build-types/components/table-of-contents/index.d.ts.map +1 -0
- package/build-types/components/table-of-contents/panel.d.ts +6 -0
- package/build-types/components/table-of-contents/panel.d.ts.map +1 -0
- package/build-types/components/template-content-panel/index.d.ts +4 -0
- package/build-types/components/template-content-panel/index.d.ts.map +1 -0
- package/build-types/components/template-part-content-panel/index.d.ts +2 -0
- package/build-types/components/template-part-content-panel/index.d.ts.map +1 -0
- package/build-types/components/template-part-menu-items/convert-to-regular.d.ts +5 -0
- package/build-types/components/template-part-menu-items/convert-to-regular.d.ts.map +1 -0
- package/build-types/components/template-part-menu-items/convert-to-template-part.d.ts +5 -0
- package/build-types/components/template-part-menu-items/convert-to-template-part.d.ts.map +1 -0
- package/build-types/components/template-part-menu-items/index.d.ts +2 -0
- package/build-types/components/template-part-menu-items/index.d.ts.map +1 -0
- package/build-types/components/template-validation-notice/index.d.ts +2 -0
- package/build-types/components/template-validation-notice/index.d.ts.map +1 -0
- package/build-types/components/text-editor/index.d.ts +4 -0
- package/build-types/components/text-editor/index.d.ts.map +1 -0
- package/build-types/components/theme-support-check/index.d.ts +14 -0
- package/build-types/components/theme-support-check/index.d.ts.map +1 -0
- package/build-types/components/time-to-read/index.d.ts +7 -0
- package/build-types/components/time-to-read/index.d.ts.map +1 -0
- package/build-types/components/unsaved-changes-warning/index.d.ts +8 -0
- package/build-types/components/unsaved-changes-warning/index.d.ts.map +1 -0
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts +18 -0
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts.map +1 -0
- package/build-types/components/visual-editor/index.d.ts +10 -0
- package/build-types/components/visual-editor/index.d.ts.map +1 -0
- package/build-types/components/word-count/index.d.ts +7 -0
- package/build-types/components/word-count/index.d.ts.map +1 -0
- package/build-types/dataviews/actions/delete-post.d.ts +5 -0
- package/build-types/dataviews/actions/delete-post.d.ts.map +1 -0
- package/build-types/dataviews/actions/export-pattern.d.ts +8 -0
- package/build-types/dataviews/actions/export-pattern.d.ts.map +1 -0
- package/build-types/dataviews/actions/index.d.ts +2 -0
- package/build-types/dataviews/actions/index.d.ts.map +1 -0
- package/build-types/dataviews/actions/reset-post.d.ts +5 -0
- package/build-types/dataviews/actions/reset-post.d.ts.map +1 -0
- package/build-types/dataviews/actions/utils.d.ts +11 -0
- package/build-types/dataviews/actions/utils.d.ts.map +1 -0
- package/build-types/dataviews/api.d.ts +27 -0
- package/build-types/dataviews/api.d.ts.map +1 -0
- package/build-types/dataviews/store/private-actions.d.ts +2 -2
- package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/dataviews/store/private-selectors.d.ts +2 -5
- package/build-types/dataviews/store/private-selectors.d.ts.map +1 -1
- package/build-types/dataviews/store/reducer.d.ts +5 -1
- package/build-types/dataviews/store/reducer.d.ts.map +1 -1
- package/build-types/dataviews/types.d.ts +34 -0
- package/build-types/dataviews/types.d.ts.map +1 -0
- package/build-types/hooks/custom-sources-backwards-compatibility.d.ts +10 -0
- package/build-types/hooks/custom-sources-backwards-compatibility.d.ts.map +1 -0
- package/build-types/hooks/default-autocompleters.d.ts +2 -0
- package/build-types/hooks/default-autocompleters.d.ts.map +1 -0
- package/build-types/hooks/index.d.ts +2 -0
- package/build-types/hooks/index.d.ts.map +1 -0
- package/build-types/hooks/media-upload.d.ts +2 -0
- package/build-types/hooks/media-upload.d.ts.map +1 -0
- package/build-types/hooks/pattern-overrides.d.ts +2 -0
- package/build-types/hooks/pattern-overrides.d.ts.map +1 -0
- package/build-types/hooks/use-select-nearest-editable-block.d.ts +4 -0
- package/build-types/hooks/use-select-nearest-editable-block.d.ts.map +1 -0
- package/build-types/index.d.ts +6 -0
- package/build-types/index.d.ts.map +1 -0
- package/build-types/lock-unlock.d.ts +3 -0
- package/build-types/lock-unlock.d.ts.map +1 -0
- package/build-types/private-apis.d.ts +2 -0
- package/build-types/private-apis.d.ts.map +1 -0
- package/build-types/store/actions.d.ts +367 -0
- package/build-types/store/actions.d.ts.map +1 -0
- package/build-types/store/constants.d.ts +31 -0
- package/build-types/store/constants.d.ts.map +1 -0
- package/build-types/store/defaults.d.ts +21 -0
- package/build-types/store/defaults.d.ts.map +1 -0
- package/build-types/store/index.d.ts +17 -0
- package/build-types/store/index.d.ts.map +1 -0
- package/build-types/store/local-autosave.d.ts +4 -0
- package/build-types/store/local-autosave.d.ts.map +1 -0
- package/build-types/store/private-actions.d.ts +37 -0
- package/build-types/store/private-actions.d.ts.map +1 -0
- package/build-types/store/private-selectors.d.ts +24 -0
- package/build-types/store/private-selectors.d.ts.map +1 -0
- package/build-types/store/reducer.d.ts +228 -0
- package/build-types/store/reducer.d.ts.map +1 -0
- package/build-types/store/selectors.d.ts +854 -0
- package/build-types/store/selectors.d.ts.map +1 -0
- package/build-types/store/utils/get-filtered-template-parts.d.ts +3 -0
- package/build-types/store/utils/get-filtered-template-parts.d.ts.map +1 -0
- package/build-types/store/utils/is-template-revertable.d.ts +8 -0
- package/build-types/store/utils/is-template-revertable.d.ts.map +1 -0
- package/build-types/store/utils/notice-builder.d.ts +27 -0
- package/build-types/store/utils/notice-builder.d.ts.map +1 -0
- package/build-types/utils/get-template-part-icon.d.ts +9 -0
- package/build-types/utils/get-template-part-icon.d.ts.map +1 -0
- package/build-types/utils/index.d.ts +5 -0
- package/build-types/utils/index.d.ts.map +1 -0
- package/build-types/utils/media-upload/index.d.ts +21 -0
- package/build-types/utils/media-upload/index.d.ts.map +1 -0
- package/build-types/utils/set-nested-value.d.ts +20 -0
- package/build-types/utils/set-nested-value.d.ts.map +1 -0
- package/build-types/utils/terms.d.ts +12 -0
- package/build-types/utils/terms.d.ts.map +1 -0
- package/build-types/utils/url.d.ts +18 -0
- package/build-types/utils/url.d.ts.map +1 -0
- package/package.json +36 -35
- package/src/bindings/pattern-overrides.js +9 -10
- package/src/bindings/post-meta.js +5 -0
- package/src/components/create-template-part-modal/index.js +2 -0
- package/src/components/create-template-part-modal/style.scss +0 -6
- package/src/components/document-bar/index.js +11 -4
- package/src/components/editor-interface/index.js +19 -8
- package/src/components/entities-saved-states/entity-record-item.js +4 -14
- package/src/components/entities-saved-states/index.js +1 -1
- package/src/components/entities-saved-states/style.scss +0 -13
- package/src/components/global-keyboard-shortcuts/index.js +1 -1
- package/src/components/global-styles-provider/index.js +7 -90
- package/src/components/header/index.js +2 -1
- package/src/components/index.js +11 -2
- package/src/components/inserter-sidebar/index.js +4 -24
- package/src/components/list-view-sidebar/index.js +34 -62
- package/src/components/list-view-sidebar/style.scss +0 -34
- package/src/components/page-attributes/parent.js +6 -3
- package/src/components/post-actions/actions.js +495 -621
- package/src/components/post-actions/index.js +4 -2
- package/src/components/post-card-panel/style.scss +1 -0
- package/src/components/post-excerpt/index.js +4 -1
- package/src/components/post-excerpt/panel.js +3 -2
- package/src/components/post-featured-image/style.scss +15 -0
- package/src/components/post-panel-row/style.scss +1 -0
- package/src/components/post-preview-button/index.js +1 -1
- package/src/components/post-publish-panel/index.js +1 -1
- package/src/components/post-publish-panel/style.scss +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-slug/check.js +8 -0
- package/src/components/post-slug/index.js +5 -0
- package/src/components/post-status/index.js +3 -1
- package/src/components/post-sticky/index.js +10 -13
- package/src/components/post-sticky/style.scss +3 -2
- package/src/components/post-taxonomies/README.md +1 -1
- package/src/components/post-template/create-new-template-modal.js +2 -0
- package/src/components/post-title/index.js +5 -12
- package/src/components/post-url/style.scss +4 -0
- package/src/components/preview-dropdown/index.js +1 -1
- package/src/components/provider/index.native.js +3 -11
- package/src/components/provider/use-block-editor-settings.js +10 -5
- package/src/components/save-publish-panels/index.js +33 -23
- package/src/components/sidebar/index.js +3 -3
- package/src/components/sidebar/post-summary.js +0 -4
- package/src/components/template-content-panel/index.js +29 -5
- package/src/components/template-part-content-panel/index.js +62 -0
- package/src/components/visual-editor/index.js +1 -1
- package/src/components/visual-editor/style.scss +3 -1
- package/src/dataviews/actions/delete-post.tsx +107 -0
- package/src/{components/post-actions/export-pattern-action.js → dataviews/actions/export-pattern.tsx} +19 -19
- package/src/dataviews/actions/index.ts +25 -0
- package/src/dataviews/actions/reset-post.tsx +144 -0
- package/src/dataviews/actions/utils.ts +54 -0
- package/src/dataviews/store/private-actions.ts +2 -2
- package/src/dataviews/store/private-selectors.ts +13 -6
- package/src/dataviews/store/reducer.ts +12 -5
- package/src/dataviews/types.ts +33 -0
- package/src/hooks/pattern-overrides.js +6 -4
- package/src/lock-unlock.js +1 -1
- package/src/private-apis.js +2 -0
- package/src/private-apis.native.js +0 -2
- package/src/store/private-actions.js +49 -21
- package/src/store/private-selectors.js +0 -25
- package/src/store/utils/is-template-revertable.js +8 -8
- package/src/style.scss +0 -1
- package/tsconfig.json +3 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/build/components/post-actions/export-pattern-action.js.map +0 -1
- package/build/components/post-actions/export-pattern-action.native.js +0 -11
- package/build/components/post-actions/export-pattern-action.native.js.map +0 -1
- package/build/components/template-areas/index.js +0 -84
- package/build/components/template-areas/index.js.map +0 -1
- package/build-module/components/post-actions/export-pattern-action.js.map +0 -1
- package/build-module/components/post-actions/export-pattern-action.native.js +0 -5
- package/build-module/components/post-actions/export-pattern-action.native.js.map +0 -1
- package/build-module/components/template-areas/index.js +0 -78
- package/build-module/components/template-areas/index.js.map +0 -1
- package/src/components/post-actions/export-pattern-action.native.js +0 -4
- package/src/components/template-areas/index.js +0 -94
- package/src/components/template-areas/style.scss +0 -22
- /package/src/store/{constants.js → constants.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.js"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { memoizedGetFilteredTemplatePartBlocks as getFilteredTemplatePartBlocks };
|
|
2
|
+
declare const memoizedGetFilteredTemplatePartBlocks: ((blocks: any[] | undefined, templateParts: any[] | null) => any[]) & import("memize").MemizeMemoizedFunction;
|
|
3
|
+
//# sourceMappingURL=get-filtered-template-parts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-filtered-template-parts.d.ts","sourceRoot":"","sources":["../../../src/store/utils/get-filtered-template-parts.js"],"names":[],"mappings":";AAgEA,mKAEE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if a template or template part is revertable to its original theme-provided file.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} templateOrTemplatePart The entity to check.
|
|
5
|
+
* @return {boolean} Whether the entity is revertable.
|
|
6
|
+
*/
|
|
7
|
+
export default function isTemplateRevertable(templateOrTemplatePart: Object): boolean;
|
|
8
|
+
//# sourceMappingURL=is-template-revertable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-template-revertable.d.ts","sourceRoot":"","sources":["../../../src/store/utils/is-template-revertable.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,qEAHW,MAAM,GACL,OAAO,CAWlB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds the arguments for a success notification dispatch.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} data Incoming data to build the arguments from.
|
|
5
|
+
*
|
|
6
|
+
* @return {Array} Arguments for dispatch. An empty array signals no
|
|
7
|
+
* notification should be sent.
|
|
8
|
+
*/
|
|
9
|
+
export function getNotificationArgumentsForSaveSuccess(data: Object): any[];
|
|
10
|
+
/**
|
|
11
|
+
* Builds the fail notification arguments for dispatch.
|
|
12
|
+
*
|
|
13
|
+
* @param {Object} data Incoming data to build the arguments with.
|
|
14
|
+
*
|
|
15
|
+
* @return {Array} Arguments for dispatch. An empty array signals no
|
|
16
|
+
* notification should be sent.
|
|
17
|
+
*/
|
|
18
|
+
export function getNotificationArgumentsForSaveFail(data: Object): any[];
|
|
19
|
+
/**
|
|
20
|
+
* Builds the trash fail notification arguments for dispatch.
|
|
21
|
+
*
|
|
22
|
+
* @param {Object} data
|
|
23
|
+
*
|
|
24
|
+
* @return {Array} Arguments for dispatch.
|
|
25
|
+
*/
|
|
26
|
+
export function getNotificationArgumentsForTrashFail(data: Object): any[];
|
|
27
|
+
//# sourceMappingURL=notice-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notice-builder.d.ts","sourceRoot":"","sources":["../../../src/store/utils/notice-builder.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,6DALW,MAAM,SA8DhB;AAED;;;;;;;GAOG;AACH,0DALW,MAAM,SAsChB;AAED;;;;;;GAMG;AACH,2DAJW,MAAM,SAahB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper function to retrieve the corresponding icon by name.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} iconName The name of the icon.
|
|
5
|
+
*
|
|
6
|
+
* @return {Object} The corresponding icon.
|
|
7
|
+
*/
|
|
8
|
+
export function getTemplatePartIcon(iconName: string): Object;
|
|
9
|
+
//# sourceMappingURL=get-template-part-icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-template-part-icon.d.ts","sourceRoot":"","sources":["../../src/utils/get-template-part-icon.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AACH,8CAJW,MAAM,GAEL,MAAM,CAWjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":";;;wBAGwB,gBAAgB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Upload a media file when the file upload button is activated.
|
|
3
|
+
* Wrapper around mediaUpload() that injects the current post ID.
|
|
4
|
+
*
|
|
5
|
+
* @param {Object} $0 Parameters object passed to the function.
|
|
6
|
+
* @param {?Object} $0.additionalData Additional data to include in the request.
|
|
7
|
+
* @param {string} $0.allowedTypes Array with the types of media that can be uploaded, if unset all types are allowed.
|
|
8
|
+
* @param {Array} $0.filesList List of files.
|
|
9
|
+
* @param {?number} $0.maxUploadFileSize Maximum upload size in bytes allowed for the site.
|
|
10
|
+
* @param {Function} $0.onError Function called when an error happens.
|
|
11
|
+
* @param {Function} $0.onFileChange Function called each time a file or a temporary representation of the file is available.
|
|
12
|
+
*/
|
|
13
|
+
export default function mediaUpload({ additionalData, allowedTypes, filesList, maxUploadFileSize, onError, onFileChange, }: {
|
|
14
|
+
additionalData: Object | null;
|
|
15
|
+
allowedTypes: string;
|
|
16
|
+
filesList: any[];
|
|
17
|
+
maxUploadFileSize: number | null;
|
|
18
|
+
onError: Function;
|
|
19
|
+
onFileChange: Function;
|
|
20
|
+
}): void;
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/media-upload/index.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;GAWG;AACH;IAPwB,cAAc,EAA1B,MAAM;IACM,YAAY,EAAzB,MAAM;IACO,SAAS;IACT,iBAAiB,EAA7B,MAAM;IACM,OAAO;IACP,YAAY;SAkCnC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sets the value at path of object.
|
|
3
|
+
* If a portion of path doesn’t exist, it’s created.
|
|
4
|
+
* Arrays are created for missing index properties while objects are created
|
|
5
|
+
* for all other missing properties.
|
|
6
|
+
*
|
|
7
|
+
* This function intentionally mutates the input object.
|
|
8
|
+
*
|
|
9
|
+
* Inspired by _.set().
|
|
10
|
+
*
|
|
11
|
+
* @see https://lodash.com/docs/4.17.15#set
|
|
12
|
+
*
|
|
13
|
+
* @todo Needs to be deduplicated with its copy in `@wordpress/core-data`.
|
|
14
|
+
*
|
|
15
|
+
* @param {Object} object Object to modify
|
|
16
|
+
* @param {Array} path Path of the property to set.
|
|
17
|
+
* @param {*} value Value to set.
|
|
18
|
+
*/
|
|
19
|
+
export default function setNestedValue(object: Object, path: any[], value: any): Object;
|
|
20
|
+
//# sourceMappingURL=set-nested-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-nested-value.d.ts","sourceRoot":"","sources":["../../src/utils/set-nested-value.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,+CAJW,MAAM,mCAwBhB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns terms in a tree form.
|
|
3
|
+
*
|
|
4
|
+
* @param {Array} flatTerms Array of terms in flat format.
|
|
5
|
+
*
|
|
6
|
+
* @return {Array} Array of terms in tree format.
|
|
7
|
+
*/
|
|
8
|
+
export function buildTermsTree(flatTerms: any[]): any[];
|
|
9
|
+
export function unescapeString(arg: any): string;
|
|
10
|
+
export function unescapeTerm(term: Object): Object;
|
|
11
|
+
export function unescapeTerms(terms: Object[]): Object[];
|
|
12
|
+
//# sourceMappingURL=terms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terms.d.ts","sourceRoot":"","sources":["../../src/utils/terms.js"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wDA0CC;AAEM,iDAEN;AASM,mCAJI,MAAM,GAEL,MAAM,CAOjB;AAUM,qCAJI,MAAM,EAAE,GAEP,MAAM,EAAE,CAInB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performs some basic cleanup of a string for use as a post slug
|
|
3
|
+
*
|
|
4
|
+
* This replicates some of what sanitize_title() does in WordPress core, but
|
|
5
|
+
* is only designed to approximate what the slug will be.
|
|
6
|
+
*
|
|
7
|
+
* Converts Latin-1 Supplement and Latin Extended-A letters to basic Latin letters.
|
|
8
|
+
* Removes combining diacritical marks. Converts whitespace, periods,
|
|
9
|
+
* and forward slashes to hyphens. Removes any remaining non-word characters
|
|
10
|
+
* except hyphens and underscores. Converts remaining string to lowercase.
|
|
11
|
+
* It does not account for octets, HTML entities, or other encoded characters.
|
|
12
|
+
*
|
|
13
|
+
* @param {string} string Title or slug to be processed
|
|
14
|
+
*
|
|
15
|
+
* @return {string} Processed string
|
|
16
|
+
*/
|
|
17
|
+
export function cleanForSlug(string: string): string;
|
|
18
|
+
//# sourceMappingURL=url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../src/utils/url.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;GAeG;AACH,qCAJW,MAAM,GAEL,MAAM,CASjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/editor",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.3.0",
|
|
4
4
|
"description": "Enhanced block editor for WordPress posts.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -32,39 +32,40 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.16.0",
|
|
35
|
-
"@wordpress/a11y": "^4.
|
|
36
|
-
"@wordpress/api-fetch": "^7.
|
|
37
|
-
"@wordpress/blob": "^4.
|
|
38
|
-
"@wordpress/block-editor": "^13.
|
|
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/
|
|
46
|
-
"@wordpress/
|
|
47
|
-
"@wordpress/
|
|
48
|
-
"@wordpress/
|
|
49
|
-
"@wordpress/
|
|
50
|
-
"@wordpress/
|
|
51
|
-
"@wordpress/
|
|
52
|
-
"@wordpress/
|
|
53
|
-
"@wordpress/
|
|
54
|
-
"@wordpress/
|
|
55
|
-
"@wordpress/
|
|
56
|
-
"@wordpress/
|
|
57
|
-
"@wordpress/
|
|
58
|
-
"@wordpress/
|
|
59
|
-
"@wordpress/
|
|
60
|
-
"@wordpress/
|
|
61
|
-
"@wordpress/
|
|
62
|
-
"@wordpress/
|
|
63
|
-
"@wordpress/
|
|
64
|
-
"@wordpress/
|
|
65
|
-
"@wordpress/
|
|
66
|
-
"@wordpress/
|
|
67
|
-
"@wordpress/
|
|
35
|
+
"@wordpress/a11y": "^4.3.0",
|
|
36
|
+
"@wordpress/api-fetch": "^7.3.0",
|
|
37
|
+
"@wordpress/blob": "^4.3.0",
|
|
38
|
+
"@wordpress/block-editor": "^13.3.0",
|
|
39
|
+
"@wordpress/blocks": "^13.3.0",
|
|
40
|
+
"@wordpress/commands": "^1.3.0",
|
|
41
|
+
"@wordpress/components": "^28.3.0",
|
|
42
|
+
"@wordpress/compose": "^7.3.0",
|
|
43
|
+
"@wordpress/core-data": "^7.3.0",
|
|
44
|
+
"@wordpress/data": "^10.3.0",
|
|
45
|
+
"@wordpress/dataviews": "^3.0.0",
|
|
46
|
+
"@wordpress/date": "^5.3.0",
|
|
47
|
+
"@wordpress/deprecated": "^4.3.0",
|
|
48
|
+
"@wordpress/dom": "^4.3.0",
|
|
49
|
+
"@wordpress/element": "^6.3.0",
|
|
50
|
+
"@wordpress/hooks": "^4.3.0",
|
|
51
|
+
"@wordpress/html-entities": "^4.3.0",
|
|
52
|
+
"@wordpress/i18n": "^5.3.0",
|
|
53
|
+
"@wordpress/icons": "^10.3.0",
|
|
54
|
+
"@wordpress/interface": "^6.3.0",
|
|
55
|
+
"@wordpress/keyboard-shortcuts": "^5.3.0",
|
|
56
|
+
"@wordpress/keycodes": "^4.3.0",
|
|
57
|
+
"@wordpress/media-utils": "^5.3.0",
|
|
58
|
+
"@wordpress/notices": "^5.3.0",
|
|
59
|
+
"@wordpress/patterns": "^2.3.0",
|
|
60
|
+
"@wordpress/plugins": "^7.3.0",
|
|
61
|
+
"@wordpress/preferences": "^4.3.0",
|
|
62
|
+
"@wordpress/private-apis": "^1.3.0",
|
|
63
|
+
"@wordpress/reusable-blocks": "^5.3.0",
|
|
64
|
+
"@wordpress/rich-text": "^7.3.0",
|
|
65
|
+
"@wordpress/server-side-render": "^5.3.0",
|
|
66
|
+
"@wordpress/url": "^4.3.0",
|
|
67
|
+
"@wordpress/warning": "^3.3.0",
|
|
68
|
+
"@wordpress/wordcount": "^4.3.0",
|
|
68
69
|
"change-case": "^4.1.2",
|
|
69
70
|
"client-zip": "^2.4.5",
|
|
70
71
|
"clsx": "^2.1.1",
|
|
@@ -83,5 +84,5 @@
|
|
|
83
84
|
"publishConfig": {
|
|
84
85
|
"access": "public"
|
|
85
86
|
},
|
|
86
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "122867d355ca4edc63d3a3bbd9411d3a2e1458df"
|
|
87
88
|
}
|
|
@@ -9,23 +9,22 @@ const CONTENT = 'content';
|
|
|
9
9
|
export default {
|
|
10
10
|
name: 'core/pattern-overrides',
|
|
11
11
|
label: _x( 'Pattern Overrides', 'block bindings source' ),
|
|
12
|
-
getValue( { registry, clientId, attributeName } ) {
|
|
13
|
-
const
|
|
14
|
-
|
|
12
|
+
getValue( { registry, clientId, context, attributeName } ) {
|
|
13
|
+
const patternOverridesContent = context[ 'pattern/overrides' ];
|
|
14
|
+
const { getBlockAttributes } = registry.select( blockEditorStore );
|
|
15
15
|
const currentBlockAttributes = getBlockAttributes( clientId );
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
);
|
|
16
|
+
|
|
17
|
+
if ( ! patternOverridesContent ) {
|
|
18
|
+
return currentBlockAttributes[ attributeName ];
|
|
19
|
+
}
|
|
21
20
|
|
|
22
21
|
const overridableValue =
|
|
23
|
-
|
|
22
|
+
patternOverridesContent?.[
|
|
24
23
|
currentBlockAttributes?.metadata?.name
|
|
25
24
|
]?.[ attributeName ];
|
|
26
25
|
|
|
27
26
|
// If there is no pattern client ID, or it is not overwritten, return the default value.
|
|
28
|
-
if (
|
|
27
|
+
if ( overridableValue === undefined ) {
|
|
29
28
|
return currentBlockAttributes[ attributeName ];
|
|
30
29
|
}
|
|
31
30
|
|
|
@@ -34,6 +34,11 @@ export default {
|
|
|
34
34
|
} );
|
|
35
35
|
},
|
|
36
36
|
canUserEditValue( { select, context, args } ) {
|
|
37
|
+
// Lock editing in query loop.
|
|
38
|
+
if ( context?.query || context?.queryId ) {
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
|
|
37
42
|
const postType =
|
|
38
43
|
context?.postType || select( editorStore ).getCurrentPostType();
|
|
39
44
|
|
|
@@ -53,6 +53,8 @@ export default function CreateTemplatePartModal( {
|
|
|
53
53
|
title={ modalTitle || defaultModalTitle }
|
|
54
54
|
onRequestClose={ restProps.closeModal }
|
|
55
55
|
overlayClassName="editor-create-template-part-modal"
|
|
56
|
+
focusOnMount="firstContentElement"
|
|
57
|
+
size="medium"
|
|
56
58
|
>
|
|
57
59
|
<CreateTemplatePartModalContents { ...restProps } />
|
|
58
60
|
</Modal>
|
|
@@ -52,10 +52,15 @@ const MotionButton = motion( Button );
|
|
|
52
52
|
* ```jsx
|
|
53
53
|
* <DocumentBar />
|
|
54
54
|
* ```
|
|
55
|
+
* @param {Object} props The component props.
|
|
56
|
+
* @param {string} props.title A title for the document, defaulting to the document or
|
|
57
|
+
* template title currently being edited.
|
|
58
|
+
* @param {import("@wordpress/components").IconType} props.icon An icon for the document, defaulting to an icon for document
|
|
59
|
+
* or template currently being edited.
|
|
55
60
|
*
|
|
56
61
|
* @return {JSX.Element} The rendered DocumentBar component.
|
|
57
62
|
*/
|
|
58
|
-
export default function DocumentBar() {
|
|
63
|
+
export default function DocumentBar( props ) {
|
|
59
64
|
const {
|
|
60
65
|
postType,
|
|
61
66
|
documentTitle,
|
|
@@ -111,7 +116,9 @@ export default function DocumentBar() {
|
|
|
111
116
|
const isTemplate = TEMPLATE_POST_TYPES.includes( postType );
|
|
112
117
|
const isGlobalEntity = GLOBAL_POST_TYPES.includes( postType );
|
|
113
118
|
const hasBackButton = !! onNavigateToPreviousEntityRecord;
|
|
114
|
-
const
|
|
119
|
+
const entityTitle = isTemplate ? templateTitle : documentTitle;
|
|
120
|
+
const title = props.title || entityTitle;
|
|
121
|
+
const icon = props.icon || templateIcon;
|
|
115
122
|
|
|
116
123
|
const mounted = useRef( false );
|
|
117
124
|
useEffect( () => {
|
|
@@ -180,12 +187,12 @@ export default function DocumentBar() {
|
|
|
180
187
|
isReducedMotion ? { duration: 0 } : undefined
|
|
181
188
|
}
|
|
182
189
|
>
|
|
183
|
-
<BlockIcon icon={
|
|
190
|
+
<BlockIcon icon={ icon } />
|
|
184
191
|
<Text
|
|
185
192
|
size="body"
|
|
186
193
|
as="h1"
|
|
187
194
|
aria-label={
|
|
188
|
-
TYPE_LABELS[ postType ]
|
|
195
|
+
! props.title && TYPE_LABELS[ postType ]
|
|
189
196
|
? // eslint-disable-next-line @wordpress/valid-sprintf
|
|
190
197
|
sprintf( TYPE_LABELS[ postType ], title )
|
|
191
198
|
: undefined
|
|
@@ -55,8 +55,10 @@ export default function EditorInterface( {
|
|
|
55
55
|
disableIframe,
|
|
56
56
|
autoFocus,
|
|
57
57
|
customSaveButton,
|
|
58
|
+
customSavePanel,
|
|
58
59
|
forceDisableBlockTools,
|
|
59
60
|
title,
|
|
61
|
+
icon,
|
|
60
62
|
iframeProps,
|
|
61
63
|
} ) {
|
|
62
64
|
const {
|
|
@@ -140,6 +142,7 @@ export default function EditorInterface( {
|
|
|
140
142
|
customSaveButton={ customSaveButton }
|
|
141
143
|
forceDisableBlockTools={ forceDisableBlockTools }
|
|
142
144
|
title={ title }
|
|
145
|
+
icon={ icon }
|
|
143
146
|
/>
|
|
144
147
|
)
|
|
145
148
|
}
|
|
@@ -212,14 +215,22 @@ export default function EditorInterface( {
|
|
|
212
215
|
)
|
|
213
216
|
}
|
|
214
217
|
actions={
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
218
|
+
! isPreviewMode
|
|
219
|
+
? customSavePanel || (
|
|
220
|
+
<SavePublishPanels
|
|
221
|
+
closeEntitiesSavedStates={
|
|
222
|
+
closeEntitiesSavedStates
|
|
223
|
+
}
|
|
224
|
+
isEntitiesSavedStatesOpen={
|
|
225
|
+
entitiesSavedStatesCallback
|
|
226
|
+
}
|
|
227
|
+
setEntitiesSavedStatesCallback={
|
|
228
|
+
setEntitiesSavedStatesCallback
|
|
229
|
+
}
|
|
230
|
+
forceIsDirtyPublishPanel={ forceIsDirty }
|
|
231
|
+
/>
|
|
232
|
+
)
|
|
233
|
+
: undefined
|
|
223
234
|
}
|
|
224
235
|
shortcuts={ {
|
|
225
236
|
previous: previousShortcut,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { CheckboxControl, PanelRow } from '@wordpress/components';
|
|
5
5
|
import { __ } from '@wordpress/i18n';
|
|
6
6
|
import { useSelect } from '@wordpress/data';
|
|
7
7
|
import { store as coreStore } from '@wordpress/core-data';
|
|
8
8
|
import { decodeEntities } from '@wordpress/html-entities';
|
|
9
|
-
import { connection } from '@wordpress/icons';
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Internal dependencies
|
|
@@ -60,18 +59,9 @@ export default function EntityRecordItem( { record, checked, onChange } ) {
|
|
|
60
59
|
/>
|
|
61
60
|
</PanelRow>
|
|
62
61
|
{ hasPostMetaChanges && (
|
|
63
|
-
<
|
|
64
|
-
<
|
|
65
|
-
|
|
66
|
-
className="entities-saved-states__connections-icon"
|
|
67
|
-
icon={ connection }
|
|
68
|
-
size={ 24 }
|
|
69
|
-
/>
|
|
70
|
-
<span className="entities-saved-states__bindings-text">
|
|
71
|
-
{ __( 'Post Meta.' ) }
|
|
72
|
-
</span>
|
|
73
|
-
</Flex>
|
|
74
|
-
</PanelRow>
|
|
62
|
+
<ul className="entities-saved-states__changes">
|
|
63
|
+
<li>{ __( 'Post Meta.' ) }</li>
|
|
64
|
+
</ul>
|
|
75
65
|
) }
|
|
76
66
|
</>
|
|
77
67
|
);
|
|
@@ -30,16 +30,3 @@
|
|
|
30
30
|
margin-bottom: $grid-unit-05;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
.entities-saved-states__post-meta {
|
|
35
|
-
margin-left: $grid-unit-30;
|
|
36
|
-
align-items: center;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.entities-saved-states__connections-icon {
|
|
40
|
-
flex-grow: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.entities-saved-states__bindings-text {
|
|
44
|
-
flex-grow: 1;
|
|
45
|
-
}
|
|
@@ -12,7 +12,7 @@ import { store as blockEditorStore } from '@wordpress/block-editor';
|
|
|
12
12
|
import { store as editorStore } from '../../store';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Handles the keyboard shortcuts for the editor.
|
|
16
16
|
*
|
|
17
17
|
* It provides functionality for various keyboard shortcuts such as toggling editor mode,
|
|
18
18
|
* toggling distraction-free mode, undo/redo, saving the post, toggling list view,
|