@wordpress/editor 13.34.0 → 14.0.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 +17 -4
- package/README.md +333 -39
- package/build/bindings/index.js +1 -3
- package/build/bindings/index.js.map +1 -1
- package/build/bindings/pattern-overrides.js +71 -2
- package/build/bindings/pattern-overrides.js.map +1 -1
- package/build/bindings/post-meta.js +38 -2
- package/build/bindings/post-meta.js.map +1 -1
- package/build/components/autocompleters/user.js +12 -8
- package/build/components/autocompleters/user.js.map +1 -1
- package/build/components/block-manager/category.js +19 -17
- package/build/components/block-manager/category.js.map +1 -1
- package/build/components/block-manager/checklist.js +15 -14
- package/build/components/block-manager/checklist.js.map +1 -1
- package/build/components/block-manager/index.js +37 -33
- package/build/components/block-manager/index.js.map +1 -1
- package/build/components/block-removal-warnings/index.js +2 -2
- package/build/components/block-removal-warnings/index.js.map +1 -1
- package/build/components/block-settings-menu/content-only-settings-menu.js +140 -0
- package/build/components/block-settings-menu/content-only-settings-menu.js.map +1 -0
- package/build/components/block-settings-menu/content-only-settings-menu.native.js +11 -0
- package/build/components/block-settings-menu/content-only-settings-menu.native.js.map +1 -0
- package/build/components/block-settings-menu/plugin-block-settings-menu-item.js +16 -13
- package/build/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
- package/build/components/blog-title/index.js +116 -0
- package/build/components/blog-title/index.js.map +1 -0
- package/build/components/collapsible-block-toolbar/index.js +22 -19
- package/build/components/collapsible-block-toolbar/index.js.map +1 -1
- package/build/components/commands/index.js +109 -3
- package/build/components/commands/index.js.map +1 -1
- package/build/components/create-template-part-modal/index.js +167 -0
- package/build/components/create-template-part-modal/index.js.map +1 -0
- package/build/components/create-template-part-modal/utils.js +64 -0
- package/build/components/create-template-part-modal/utils.js.map +1 -0
- package/build/components/deprecated.js +2 -2
- package/build/components/deprecated.js.map +1 -1
- package/build/components/document-bar/index.js +96 -72
- package/build/components/document-bar/index.js.map +1 -1
- package/build/components/document-outline/index.js +124 -121
- package/build/components/document-outline/index.js.map +1 -1
- package/build/components/document-outline/item.js +20 -16
- package/build/components/document-outline/item.js.map +1 -1
- package/build/components/document-tools/index.js +69 -69
- package/build/components/document-tools/index.js.map +1 -1
- package/build/components/editor-help/add-blocks.native.js +14 -11
- package/build/components/editor-help/add-blocks.native.js.map +1 -1
- package/build/components/editor-help/customize-blocks.native.js +14 -11
- package/build/components/editor-help/customize-blocks.native.js.map +1 -1
- package/build/components/editor-help/help-detail-navigation-screen.native.js +32 -22
- package/build/components/editor-help/help-detail-navigation-screen.native.js.map +1 -1
- package/build/components/editor-help/help-get-support-button.native.js +8 -6
- package/build/components/editor-help/help-get-support-button.native.js.map +1 -1
- package/build/components/editor-help/help-section-title.native.js +8 -6
- package/build/components/editor-help/help-section-title.native.js.map +1 -1
- package/build/components/editor-help/help-topic-row.native.js +7 -6
- package/build/components/editor-help/help-topic-row.native.js.map +1 -1
- package/build/components/editor-help/icon-move-blocks.native.js +7 -6
- package/build/components/editor-help/icon-move-blocks.native.js.map +1 -1
- package/build/components/editor-help/index.native.js +94 -76
- package/build/components/editor-help/index.native.js.map +1 -1
- package/build/components/editor-help/intro-to-blocks.native.js +41 -37
- package/build/components/editor-help/intro-to-blocks.native.js.map +1 -1
- package/build/components/editor-help/move-blocks.native.js +25 -21
- package/build/components/editor-help/move-blocks.native.js.map +1 -1
- package/build/components/editor-help/remove-blocks.native.js +12 -9
- package/build/components/editor-help/remove-blocks.native.js.map +1 -1
- package/build/components/editor-help/view-sections.native.js +24 -19
- package/build/components/editor-help/view-sections.native.js.map +1 -1
- package/build/components/editor-history/redo.js +2 -2
- package/build/components/editor-history/redo.js.map +1 -1
- package/build/components/editor-history/undo.js +2 -2
- package/build/components/editor-history/undo.js.map +1 -1
- package/build/components/editor-interface/content-slot-fill.js +23 -0
- package/build/components/editor-interface/content-slot-fill.js.map +1 -0
- package/build/components/editor-interface/index.js +178 -0
- package/build/components/editor-interface/index.js.map +1 -0
- package/build/components/editor-notices/index.js +22 -9
- package/build/components/editor-notices/index.js.map +1 -1
- package/build/components/editor-snackbars/index.js +2 -2
- package/build/components/editor-snackbars/index.js.map +1 -1
- package/build/components/entities-saved-states/entity-record-item.js +37 -10
- package/build/components/entities-saved-states/entity-record-item.js.map +1 -1
- package/build/components/entities-saved-states/entity-type-list.js +25 -22
- package/build/components/entities-saved-states/entity-type-list.js.map +1 -1
- package/build/components/entities-saved-states/index.js +53 -46
- package/build/components/entities-saved-states/index.js.map +1 -1
- package/build/components/error-boundary/index.js +27 -14
- package/build/components/error-boundary/index.js.map +1 -1
- package/build/components/error-boundary/index.native.js +45 -35
- package/build/components/error-boundary/index.native.js.map +1 -1
- package/build/components/global-keyboard-shortcuts/register-shortcuts.js +4 -5
- package/build/components/global-keyboard-shortcuts/register-shortcuts.js.map +1 -1
- package/build/components/global-styles-provider/index.js +195 -0
- package/build/components/global-styles-provider/index.js.map +1 -0
- package/build/components/header/back-button.js +34 -0
- package/build/components/header/back-button.js.map +1 -0
- package/build/components/header/index.js +176 -0
- package/build/components/header/index.js.map +1 -0
- package/build/components/inserter-sidebar/index.js +83 -32
- package/build/components/inserter-sidebar/index.js.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +2 -2
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/index.js +54 -49
- package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -1
- package/build/components/keyboard-shortcut-help-modal/shortcut.js +30 -26
- package/build/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
- package/build/components/list-view-sidebar/index.js +59 -47
- package/build/components/list-view-sidebar/index.js.map +1 -1
- package/build/components/list-view-sidebar/list-view-outline.js +21 -4
- package/build/components/list-view-sidebar/list-view-outline.js.map +1 -1
- package/build/components/local-autosave-monitor/index.js +15 -2
- package/build/components/local-autosave-monitor/index.js.map +1 -1
- package/build/components/mode-switcher/index.js +10 -10
- package/build/components/mode-switcher/index.js.map +1 -1
- package/build/components/more-menu/copy-content-menu-item.js +5 -4
- package/build/components/more-menu/copy-content-menu-item.js.map +1 -1
- package/build/components/more-menu/index.js +89 -76
- package/build/components/more-menu/index.js.map +1 -1
- package/build/components/more-menu/tools-more-menu-group.js +2 -2
- package/build/components/more-menu/tools-more-menu-group.js.map +1 -1
- package/build/components/more-menu/view-more-menu-group.js +2 -2
- package/build/components/more-menu/view-more-menu-group.js.map +1 -1
- package/build/components/offline-status/index.native.js +12 -11
- package/build/components/offline-status/index.native.js.map +1 -1
- package/build/components/page-attributes/order.js +87 -14
- package/build/components/page-attributes/order.js.map +1 -1
- package/build/components/page-attributes/panel.js +10 -19
- package/build/components/page-attributes/panel.js.map +1 -1
- package/build/components/page-attributes/parent.js +86 -3
- package/build/components/page-attributes/parent.js.map +1 -1
- package/build/components/pattern-duplicate-modal/index.js +59 -0
- package/build/components/pattern-duplicate-modal/index.js.map +1 -0
- package/build/components/pattern-overrides-panel/index.js +2 -2
- package/build/components/pattern-overrides-panel/index.js.map +1 -1
- package/build/components/pattern-rename-modal/index.js +58 -0
- package/build/components/pattern-rename-modal/index.js.map +1 -0
- package/build/components/plugin-document-setting-panel/index.js +17 -12
- package/build/components/plugin-document-setting-panel/index.js.map +1 -1
- package/build/components/plugin-post-publish-panel/index.js +10 -7
- package/build/components/plugin-post-publish-panel/index.js.map +1 -1
- package/build/components/plugin-post-status-info/index.js +7 -4
- package/build/components/plugin-post-status-info/index.js.map +1 -1
- package/build/components/plugin-pre-publish-panel/index.js +10 -7
- package/build/components/plugin-pre-publish-panel/index.js.map +1 -1
- package/build/components/plugin-sidebar/index.js +3 -4
- package/build/components/plugin-sidebar/index.js.map +1 -1
- package/build/components/plugin-sidebar-more-menu-item/index.js +3 -5
- package/build/components/plugin-sidebar-more-menu-item/index.js.map +1 -1
- package/build/components/post-actions/actions.js +454 -327
- package/build/components/post-actions/actions.js.map +1 -1
- package/build/components/post-actions/export-pattern-action.js +64 -0
- package/build/components/post-actions/export-pattern-action.js.map +1 -0
- package/build/components/post-actions/export-pattern-action.native.js +11 -0
- package/build/components/post-actions/export-pattern-action.native.js.map +1 -0
- package/build/components/post-actions/index.js +71 -62
- package/build/components/post-actions/index.js.map +1 -1
- package/build/components/post-author/check.js +6 -6
- package/build/components/post-author/check.js.map +1 -1
- package/build/components/post-author/combobox.js +4 -3
- package/build/components/post-author/combobox.js.map +1 -1
- package/build/components/post-author/hook.js +2 -1
- package/build/components/post-author/hook.js.map +1 -1
- package/build/components/post-author/index.js +3 -3
- package/build/components/post-author/index.js.map +1 -1
- package/build/components/post-author/panel.js +72 -4
- package/build/components/post-author/panel.js.map +1 -1
- package/build/components/post-author/select.js +4 -3
- package/build/components/post-author/select.js.map +1 -1
- package/build/components/post-card-panel/index.js +46 -35
- package/build/components/post-card-panel/index.js.map +1 -1
- package/build/components/post-comments/index.js +44 -8
- package/build/components/post-comments/index.js.map +1 -1
- package/build/components/post-content-information/index.js +8 -5
- package/build/components/post-content-information/index.js.map +1 -1
- package/build/components/post-discussion/panel.js +122 -24
- package/build/components/post-discussion/panel.js.map +1 -1
- package/build/components/post-excerpt/check.js +6 -6
- package/build/components/post-excerpt/check.js.map +1 -1
- package/build/components/post-excerpt/index.js +18 -17
- package/build/components/post-excerpt/index.js.map +1 -1
- package/build/components/post-excerpt/panel.js +59 -42
- package/build/components/post-excerpt/panel.js.map +1 -1
- package/build/components/post-excerpt/plugin.js +7 -4
- package/build/components/post-excerpt/plugin.js.map +1 -1
- package/build/components/post-featured-image/check.js +17 -7
- package/build/components/post-featured-image/check.js.map +1 -1
- package/build/components/post-featured-image/index.js +77 -49
- package/build/components/post-featured-image/index.js.map +1 -1
- package/build/components/post-featured-image/panel.js +22 -7
- package/build/components/post-featured-image/panel.js.map +1 -1
- package/build/components/post-format/check.js +14 -4
- package/build/components/post-format/check.js.map +1 -1
- package/build/components/post-format/index.js +37 -20
- package/build/components/post-format/index.js.map +1 -1
- package/build/components/post-format/panel.js +93 -0
- package/build/components/post-format/panel.js.map +1 -0
- package/build/components/post-last-edited-panel/index.js +7 -4
- package/build/components/post-last-edited-panel/index.js.map +1 -1
- package/build/components/post-last-revision/check.js +13 -5
- package/build/components/post-last-revision/check.js.map +1 -1
- package/build/components/post-last-revision/index.js +19 -13
- package/build/components/post-last-revision/index.js.map +1 -1
- package/build/components/post-last-revision/panel.js +12 -5
- package/build/components/post-last-revision/panel.js.map +1 -1
- package/build/components/post-locked-modal/index.js +57 -35
- package/build/components/post-locked-modal/index.js.map +1 -1
- package/build/components/post-panel-row/index.js +13 -10
- package/build/components/post-panel-row/index.js.map +1 -1
- package/build/components/post-panel-section/index.js +29 -0
- package/build/components/post-panel-section/index.js.map +1 -0
- package/build/components/post-pending-status/check.js +10 -0
- package/build/components/post-pending-status/check.js.map +1 -1
- package/build/components/post-pending-status/index.js +14 -7
- package/build/components/post-pending-status/index.js.map +1 -1
- package/build/components/post-pingbacks/index.js +15 -4
- package/build/components/post-pingbacks/index.js.map +1 -1
- package/build/components/post-preview-button/index.js +45 -21
- package/build/components/post-preview-button/index.js.map +1 -1
- package/build/components/post-publish-button/index.js +21 -11
- package/build/components/post-publish-button/index.js.map +1 -1
- package/build/components/post-publish-button/post-publish-button-or-toggle.js +2 -2
- package/build/components/post-publish-button/post-publish-button-or-toggle.js.map +1 -1
- package/build/components/post-publish-panel/index.js +46 -33
- package/build/components/post-publish-panel/index.js.map +1 -1
- package/build/components/post-publish-panel/maybe-category-panel.js +12 -9
- package/build/components/post-publish-panel/maybe-category-panel.js.map +1 -1
- package/build/components/post-publish-panel/maybe-post-format-panel.js +21 -15
- package/build/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
- package/build/components/post-publish-panel/maybe-tags-panel.js +13 -10
- package/build/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
- package/build/components/post-publish-panel/maybe-upload-media.js +29 -24
- package/build/components/post-publish-panel/maybe-upload-media.js.map +1 -1
- package/build/components/post-publish-panel/postpublish.js +55 -38
- package/build/components/post-publish-panel/postpublish.js.map +1 -1
- package/build/components/post-publish-panel/prepublish.js +41 -26
- package/build/components/post-publish-panel/prepublish.js.map +1 -1
- package/build/components/post-saved-state/index.js +10 -10
- package/build/components/post-saved-state/index.js.map +1 -1
- package/build/components/post-schedule/check.js +8 -0
- package/build/components/post-schedule/check.js.map +1 -1
- package/build/components/post-schedule/index.js +30 -5
- package/build/components/post-schedule/index.js.map +1 -1
- package/build/components/post-schedule/label.js +16 -0
- package/build/components/post-schedule/label.js.map +1 -1
- package/build/components/post-schedule/panel.js +43 -30
- package/build/components/post-schedule/panel.js.map +1 -1
- package/build/components/post-slug/check.js +5 -4
- package/build/components/post-slug/check.js.map +1 -1
- package/build/components/post-slug/index.js +5 -3
- package/build/components/post-slug/index.js.map +1 -1
- package/build/components/post-slug/panel.js +30 -0
- package/build/components/post-slug/panel.js.map +1 -0
- package/build/components/post-status/index.js +118 -119
- package/build/components/post-status/index.js.map +1 -1
- package/build/components/post-sticky/index.js +16 -8
- package/build/components/post-sticky/index.js.map +1 -1
- package/build/components/post-sticky/panel.js +25 -0
- package/build/components/post-sticky/panel.js.map +1 -0
- package/build/components/post-switch-to-draft-button/index.js +25 -21
- package/build/components/post-switch-to-draft-button/index.js.map +1 -1
- package/build/components/post-sync-status/index.js +8 -6
- package/build/components/post-sync-status/index.js.map +1 -1
- package/build/components/post-taxonomies/flat-term-selector.js +21 -20
- package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build/components/post-taxonomies/hierarchical-term-selector.js +71 -61
- package/build/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
- package/build/components/post-taxonomies/index.js +6 -6
- package/build/components/post-taxonomies/index.js.map +1 -1
- package/build/components/post-taxonomies/most-used-terms.js +19 -15
- package/build/components/post-taxonomies/most-used-terms.js.map +1 -1
- package/build/components/post-taxonomies/panel.js +15 -11
- package/build/components/post-taxonomies/panel.js.map +1 -1
- package/build/components/post-template/block-theme.js +42 -32
- package/build/components/post-template/block-theme.js.map +1 -1
- package/build/components/post-template/classic-theme.js +73 -50
- package/build/components/post-template/classic-theme.js.map +1 -1
- package/build/components/post-template/create-new-template-modal.js +33 -27
- package/build/components/post-template/create-new-template-modal.js.map +1 -1
- package/build/components/post-template/create-new-template.js +14 -11
- package/build/components/post-template/create-new-template.js.map +1 -1
- package/build/components/post-template/panel.js +16 -10
- package/build/components/post-template/panel.js.map +1 -1
- package/build/components/post-template/reset-default-template.js +5 -4
- package/build/components/post-template/reset-default-template.js.map +1 -1
- package/build/components/post-template/swap-template-button.js +20 -15
- package/build/components/post-template/swap-template-button.js.map +1 -1
- package/build/components/post-text-editor/index.js +27 -20
- package/build/components/post-text-editor/index.js.map +1 -1
- package/build/components/post-title/index.js +31 -19
- package/build/components/post-title/index.js.map +1 -1
- package/build/components/post-title/index.native.js +81 -57
- package/build/components/post-title/index.native.js.map +1 -1
- package/build/components/post-title/post-title-raw.js +12 -5
- package/build/components/post-title/post-title-raw.js.map +1 -1
- package/build/components/post-title/use-post-title-focus.js +7 -0
- package/build/components/post-title/use-post-title-focus.js.map +1 -1
- package/build/components/post-title/use-post-title.js +5 -0
- package/build/components/post-title/use-post-title.js.map +1 -1
- package/build/components/post-transform-panel/hooks.js +90 -0
- package/build/components/post-transform-panel/hooks.js.map +1 -0
- package/build/components/post-transform-panel/index.js +101 -0
- package/build/components/post-transform-panel/index.js.map +1 -0
- package/build/components/post-trash/index.js +19 -15
- package/build/components/post-trash/index.js.map +1 -1
- package/build/components/post-type-support-check/index.js +1 -1
- package/build/components/post-type-support-check/index.js.map +1 -1
- package/build/components/post-url/check.js +8 -0
- package/build/components/post-url/check.js.map +1 -1
- package/build/components/post-url/index.js +98 -73
- package/build/components/post-url/index.js.map +1 -1
- package/build/components/post-url/label.js +11 -0
- package/build/components/post-url/label.js.map +1 -1
- package/build/components/post-url/panel.js +33 -25
- package/build/components/post-url/panel.js.map +1 -1
- package/build/components/post-view-link/index.js +2 -2
- package/build/components/post-view-link/index.js.map +1 -1
- package/build/components/post-visibility/check.js +9 -0
- package/build/components/post-visibility/check.js.map +1 -1
- package/build/components/post-visibility/index.js +83 -68
- package/build/components/post-visibility/index.js.map +1 -1
- package/build/components/post-visibility/label.js +11 -0
- package/build/components/post-visibility/label.js.map +1 -1
- package/build/components/posts-per-page/index.js +109 -0
- package/build/components/posts-per-page/index.js.map +1 -0
- package/build/components/preferences-modal/enable-plugin-document-setting-panel.js +7 -5
- package/build/components/preferences-modal/enable-plugin-document-setting-panel.js.map +1 -1
- package/build/components/preferences-modal/index.js +124 -102
- package/build/components/preferences-modal/index.js.map +1 -1
- package/build/components/preview-dropdown/index.js +47 -31
- package/build/components/preview-dropdown/index.js.map +1 -1
- package/build/components/provider/index.js +96 -20
- package/build/components/provider/index.js.map +1 -1
- package/build/components/provider/index.native.js +55 -19
- package/build/components/provider/index.native.js.map +1 -1
- package/build/components/provider/use-block-editor-settings.js +23 -4
- package/build/components/provider/use-block-editor-settings.js.map +1 -1
- package/build/components/provider/with-registry-provider.js +31 -24
- package/build/components/provider/with-registry-provider.js.map +1 -1
- package/build/components/resizable-editor/index.js +96 -0
- package/build/components/resizable-editor/index.js.map +1 -0
- package/build/components/resizable-editor/resize-handle.js +59 -0
- package/build/components/resizable-editor/resize-handle.js.map +1 -0
- package/build/components/save-publish-panels/index.js +35 -26
- package/build/components/save-publish-panels/index.js.map +1 -1
- package/build/components/sidebar/constants.js +11 -0
- package/build/components/sidebar/constants.js.map +1 -0
- package/build/components/sidebar/header.js +56 -0
- package/build/components/sidebar/header.js.map +1 -0
- package/build/components/sidebar/index.js +161 -0
- package/build/components/sidebar/index.js.map +1 -0
- package/build/components/sidebar/post-summary.js +89 -0
- package/build/components/sidebar/post-summary.js.map +1 -0
- package/build/components/site-discussion/index.js +133 -0
- package/build/components/site-discussion/index.js.map +1 -0
- package/build/components/start-page-options/index.js +18 -18
- package/build/components/start-page-options/index.js.map +1 -1
- package/build/components/start-template-options/index.js +198 -0
- package/build/components/start-template-options/index.js.map +1 -0
- package/build/components/table-of-contents/index.js +4 -4
- package/build/components/table-of-contents/index.js.map +1 -1
- package/build/components/table-of-contents/panel.js +53 -35
- package/build/components/table-of-contents/panel.js.map +1 -1
- package/build/components/template-areas/index.js +36 -22
- package/build/components/template-areas/index.js.map +1 -1
- package/build/components/template-content-panel/index.js +39 -0
- package/build/components/template-content-panel/index.js.map +1 -0
- package/build/components/template-validation-notice/index.js +25 -21
- package/build/components/template-validation-notice/index.js.map +1 -1
- package/build/components/text-editor/index.js +73 -0
- package/build/components/text-editor/index.js.map +1 -0
- package/build/components/time-to-read/index.js +8 -8
- package/build/components/time-to-read/index.js.map +1 -1
- package/build/components/{editor-canvas → visual-editor}/edit-template-blocks-notification.js +6 -6
- package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -0
- package/build/components/{editor-canvas → visual-editor}/index.js +130 -78
- package/build/components/visual-editor/index.js.map +1 -0
- package/build/components/word-count/index.js +5 -4
- package/build/components/word-count/index.js.map +1 -1
- package/build/hooks/custom-sources-backwards-compatibility.js +3 -4
- package/build/hooks/custom-sources-backwards-compatibility.js.map +1 -1
- package/build/hooks/index.js +1 -0
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/media-upload.js +10 -0
- package/build/hooks/media-upload.js.map +1 -0
- package/build/hooks/pattern-overrides.js +25 -16
- package/build/hooks/pattern-overrides.js.map +1 -1
- package/build/private-apis.js +15 -38
- package/build/private-apis.js.map +1 -1
- package/build/private-apis.native.js +48 -0
- package/build/private-apis.native.js.map +1 -0
- package/build/store/constants.js +4 -1
- package/build/store/constants.js.map +1 -1
- package/build/store/private-actions.js +10 -14
- package/build/store/private-actions.js.map +1 -1
- package/build/store/private-selectors.js +45 -2
- package/build/store/private-selectors.js.map +1 -1
- package/build/store/reducer.js +15 -0
- package/build/store/reducer.js.map +1 -1
- package/build/store/selectors.js +1 -1
- package/build/store/selectors.js.map +1 -1
- package/build/utils/set-nested-value.js +44 -0
- package/build/utils/set-nested-value.js.map +1 -0
- package/build-module/bindings/index.js +1 -3
- package/build-module/bindings/index.js.map +1 -1
- package/build-module/bindings/pattern-overrides.js +70 -2
- package/build-module/bindings/pattern-overrides.js.map +1 -1
- package/build-module/bindings/post-meta.js +38 -2
- package/build-module/bindings/post-meta.js.map +1 -1
- package/build-module/components/autocompleters/user.js +14 -9
- package/build-module/components/autocompleters/user.js.map +1 -1
- package/build-module/components/block-manager/category.js +20 -17
- package/build-module/components/block-manager/category.js.map +1 -1
- package/build-module/components/block-manager/checklist.js +16 -14
- package/build-module/components/block-manager/checklist.js.map +1 -1
- package/build-module/components/block-manager/index.js +38 -33
- package/build-module/components/block-manager/index.js.map +1 -1
- package/build-module/components/block-removal-warnings/index.js +2 -2
- package/build-module/components/block-removal-warnings/index.js.map +1 -1
- package/build-module/components/block-settings-menu/content-only-settings-menu.js +135 -0
- package/build-module/components/block-settings-menu/content-only-settings-menu.js.map +1 -0
- package/build-module/components/block-settings-menu/content-only-settings-menu.native.js +5 -0
- package/build-module/components/block-settings-menu/content-only-settings-menu.native.js.map +1 -0
- package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js +16 -13
- package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js.map +1 -1
- package/build-module/components/blog-title/index.js +110 -0
- package/build-module/components/blog-title/index.js.map +1 -0
- package/build-module/components/collapsible-block-toolbar/index.js +24 -19
- package/build-module/components/collapsible-block-toolbar/index.js.map +1 -1
- package/build-module/components/commands/index.js +111 -5
- package/build-module/components/commands/index.js.map +1 -1
- package/build-module/components/create-template-part-modal/index.js +160 -0
- package/build-module/components/create-template-part-modal/index.js.map +1 -0
- package/build-module/components/create-template-part-modal/utils.js +54 -0
- package/build-module/components/create-template-part-modal/utils.js.map +1 -0
- package/build-module/components/deprecated.js +2 -2
- package/build-module/components/deprecated.js.map +1 -1
- package/build-module/components/document-bar/index.js +95 -70
- package/build-module/components/document-bar/index.js.map +1 -1
- package/build-module/components/document-outline/index.js +125 -120
- package/build-module/components/document-outline/index.js.map +1 -1
- package/build-module/components/document-outline/item.js +21 -16
- package/build-module/components/document-outline/item.js.map +1 -1
- package/build-module/components/document-tools/index.js +72 -70
- package/build-module/components/document-tools/index.js.map +1 -1
- package/build-module/components/editor-help/add-blocks.native.js +16 -11
- package/build-module/components/editor-help/add-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/customize-blocks.native.js +16 -11
- 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 +33 -22
- package/build-module/components/editor-help/help-detail-navigation-screen.native.js.map +1 -1
- package/build-module/components/editor-help/help-get-support-button.native.js +8 -6
- package/build-module/components/editor-help/help-get-support-button.native.js.map +1 -1
- package/build-module/components/editor-help/help-section-title.native.js +8 -6
- package/build-module/components/editor-help/help-section-title.native.js.map +1 -1
- package/build-module/components/editor-help/help-topic-row.native.js +7 -6
- package/build-module/components/editor-help/help-topic-row.native.js.map +1 -1
- package/build-module/components/editor-help/icon-move-blocks.native.js +7 -6
- package/build-module/components/editor-help/icon-move-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/index.native.js +96 -76
- package/build-module/components/editor-help/index.native.js.map +1 -1
- package/build-module/components/editor-help/intro-to-blocks.native.js +43 -37
- package/build-module/components/editor-help/intro-to-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/move-blocks.native.js +27 -21
- package/build-module/components/editor-help/move-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/remove-blocks.native.js +14 -9
- package/build-module/components/editor-help/remove-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/view-sections.native.js +25 -19
- package/build-module/components/editor-help/view-sections.native.js.map +1 -1
- package/build-module/components/editor-history/redo.js +2 -2
- package/build-module/components/editor-history/redo.js.map +1 -1
- package/build-module/components/editor-history/undo.js +2 -2
- package/build-module/components/editor-history/undo.js.map +1 -1
- package/build-module/components/editor-interface/content-slot-fill.js +16 -0
- package/build-module/components/editor-interface/content-slot-fill.js.map +1 -0
- package/build-module/components/editor-interface/index.js +172 -0
- package/build-module/components/editor-interface/index.js.map +1 -0
- package/build-module/components/editor-notices/index.js +25 -9
- package/build-module/components/editor-notices/index.js.map +1 -1
- package/build-module/components/editor-snackbars/index.js +2 -2
- package/build-module/components/editor-snackbars/index.js.map +1 -1
- package/build-module/components/entities-saved-states/entity-record-item.js +40 -11
- 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 +26 -22
- package/build-module/components/entities-saved-states/entity-type-list.js.map +1 -1
- package/build-module/components/entities-saved-states/index.js +54 -46
- package/build-module/components/entities-saved-states/index.js.map +1 -1
- package/build-module/components/error-boundary/index.js +27 -14
- package/build-module/components/error-boundary/index.js.map +1 -1
- package/build-module/components/error-boundary/index.native.js +46 -35
- package/build-module/components/error-boundary/index.native.js.map +1 -1
- package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js +3 -3
- package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js.map +1 -1
- package/build-module/components/global-styles-provider/index.js +185 -0
- package/build-module/components/global-styles-provider/index.js.map +1 -0
- package/build-module/components/header/back-button.js +28 -0
- package/build-module/components/header/back-button.js.map +1 -0
- package/build-module/components/header/index.js +169 -0
- package/build-module/components/header/index.js.map +1 -0
- package/build-module/components/inserter-sidebar/index.js +85 -34
- package/build-module/components/inserter-sidebar/index.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +2 -2
- package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/index.js +55 -49
- package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +32 -26
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
- package/build-module/components/list-view-sidebar/index.js +60 -47
- package/build-module/components/list-view-sidebar/index.js.map +1 -1
- package/build-module/components/list-view-sidebar/list-view-outline.js +23 -4
- package/build-module/components/list-view-sidebar/list-view-outline.js.map +1 -1
- package/build-module/components/local-autosave-monitor/index.js +15 -2
- package/build-module/components/local-autosave-monitor/index.js.map +1 -1
- package/build-module/components/mode-switcher/index.js +9 -8
- package/build-module/components/mode-switcher/index.js.map +1 -1
- package/build-module/components/more-menu/copy-content-menu-item.js +5 -4
- package/build-module/components/more-menu/copy-content-menu-item.js.map +1 -1
- package/build-module/components/more-menu/index.js +91 -76
- package/build-module/components/more-menu/index.js.map +1 -1
- package/build-module/components/more-menu/tools-more-menu-group.js +2 -2
- package/build-module/components/more-menu/tools-more-menu-group.js.map +1 -1
- package/build-module/components/more-menu/view-more-menu-group.js +2 -2
- package/build-module/components/more-menu/view-more-menu-group.js.map +1 -1
- package/build-module/components/offline-status/index.native.js +12 -9
- package/build-module/components/offline-status/index.native.js.map +1 -1
- package/build-module/components/page-attributes/order.js +90 -17
- package/build-module/components/page-attributes/order.js.map +1 -1
- package/build-module/components/page-attributes/panel.js +13 -21
- package/build-module/components/page-attributes/panel.js.map +1 -1
- package/build-module/components/page-attributes/parent.js +88 -5
- package/build-module/components/page-attributes/parent.js.map +1 -1
- package/build-module/components/pattern-duplicate-modal/index.js +51 -0
- package/build-module/components/pattern-duplicate-modal/index.js.map +1 -0
- package/build-module/components/pattern-overrides-panel/index.js +2 -2
- package/build-module/components/pattern-overrides-panel/index.js.map +1 -1
- package/build-module/components/pattern-rename-modal/index.js +50 -0
- package/build-module/components/pattern-rename-modal/index.js.map +1 -0
- package/build-module/components/plugin-document-setting-panel/index.js +19 -12
- package/build-module/components/plugin-document-setting-panel/index.js.map +1 -1
- package/build-module/components/plugin-post-publish-panel/index.js +10 -7
- package/build-module/components/plugin-post-publish-panel/index.js.map +1 -1
- package/build-module/components/plugin-post-status-info/index.js +7 -4
- package/build-module/components/plugin-post-status-info/index.js.map +1 -1
- package/build-module/components/plugin-pre-publish-panel/index.js +10 -7
- package/build-module/components/plugin-pre-publish-panel/index.js.map +1 -1
- package/build-module/components/plugin-sidebar/index.js +2 -2
- package/build-module/components/plugin-sidebar/index.js.map +1 -1
- package/build-module/components/plugin-sidebar-more-menu-item/index.js +2 -3
- package/build-module/components/plugin-sidebar-more-menu-item/index.js.map +1 -1
- package/build-module/components/post-actions/actions.js +458 -329
- package/build-module/components/post-actions/actions.js.map +1 -1
- package/build-module/components/post-actions/export-pattern-action.js +58 -0
- package/build-module/components/post-actions/export-pattern-action.js.map +1 -0
- package/build-module/components/post-actions/export-pattern-action.native.js +5 -0
- package/build-module/components/post-actions/export-pattern-action.native.js.map +1 -0
- package/build-module/components/post-actions/index.js +73 -62
- package/build-module/components/post-actions/index.js.map +1 -1
- package/build-module/components/post-author/check.js +5 -4
- package/build-module/components/post-author/check.js.map +1 -1
- package/build-module/components/post-author/combobox.js +4 -3
- package/build-module/components/post-author/combobox.js.map +1 -1
- package/build-module/components/post-author/hook.js +2 -1
- package/build-module/components/post-author/hook.js.map +1 -1
- package/build-module/components/post-author/index.js +3 -3
- package/build-module/components/post-author/index.js.map +1 -1
- package/build-module/components/post-author/panel.js +72 -4
- package/build-module/components/post-author/panel.js.map +1 -1
- package/build-module/components/post-author/select.js +4 -3
- package/build-module/components/post-author/select.js.map +1 -1
- package/build-module/components/post-card-panel/index.js +49 -38
- package/build-module/components/post-card-panel/index.js.map +1 -1
- package/build-module/components/post-comments/index.js +47 -9
- package/build-module/components/post-comments/index.js.map +1 -1
- package/build-module/components/post-content-information/index.js +8 -5
- package/build-module/components/post-content-information/index.js.map +1 -1
- package/build-module/components/post-discussion/panel.js +125 -26
- package/build-module/components/post-discussion/panel.js.map +1 -1
- package/build-module/components/post-excerpt/check.js +5 -4
- package/build-module/components/post-excerpt/check.js.map +1 -1
- package/build-module/components/post-excerpt/index.js +17 -15
- package/build-module/components/post-excerpt/index.js.map +1 -1
- package/build-module/components/post-excerpt/panel.js +60 -40
- package/build-module/components/post-excerpt/panel.js.map +1 -1
- package/build-module/components/post-excerpt/plugin.js +7 -4
- package/build-module/components/post-excerpt/plugin.js.map +1 -1
- package/build-module/components/post-featured-image/check.js +18 -6
- package/build-module/components/post-featured-image/check.js.map +1 -1
- package/build-module/components/post-featured-image/index.js +78 -49
- package/build-module/components/post-featured-image/index.js.map +1 -1
- package/build-module/components/post-featured-image/panel.js +22 -7
- package/build-module/components/post-featured-image/panel.js.map +1 -1
- package/build-module/components/post-format/check.js +14 -4
- package/build-module/components/post-format/check.js.map +1 -1
- package/build-module/components/post-format/index.js +39 -21
- package/build-module/components/post-format/index.js.map +1 -1
- package/build-module/components/post-format/panel.js +86 -0
- package/build-module/components/post-format/panel.js.map +1 -0
- package/build-module/components/post-last-edited-panel/index.js +7 -4
- package/build-module/components/post-last-edited-panel/index.js.map +1 -1
- package/build-module/components/post-last-revision/check.js +14 -4
- package/build-module/components/post-last-revision/check.js.map +1 -1
- package/build-module/components/post-last-revision/index.js +21 -13
- package/build-module/components/post-last-revision/index.js.map +1 -1
- package/build-module/components/post-last-revision/panel.js +13 -4
- package/build-module/components/post-last-revision/panel.js.map +1 -1
- package/build-module/components/post-locked-modal/index.js +60 -34
- package/build-module/components/post-locked-modal/index.js.map +1 -1
- package/build-module/components/post-panel-row/index.js +14 -10
- package/build-module/components/post-panel-row/index.js.map +1 -1
- package/build-module/components/post-panel-section/index.js +21 -0
- package/build-module/components/post-panel-section/index.js.map +1 -0
- package/build-module/components/post-pending-status/check.js +11 -0
- package/build-module/components/post-pending-status/check.js.map +1 -1
- package/build-module/components/post-pending-status/index.js +15 -7
- package/build-module/components/post-pending-status/index.js.map +1 -1
- package/build-module/components/post-pingbacks/index.js +16 -5
- package/build-module/components/post-pingbacks/index.js.map +1 -1
- package/build-module/components/post-preview-button/index.js +47 -21
- package/build-module/components/post-preview-button/index.js.map +1 -1
- package/build-module/components/post-publish-button/index.js +22 -11
- package/build-module/components/post-publish-button/index.js.map +1 -1
- package/build-module/components/post-publish-button/post-publish-button-or-toggle.js +2 -2
- package/build-module/components/post-publish-button/post-publish-button-or-toggle.js.map +1 -1
- package/build-module/components/post-publish-panel/index.js +48 -33
- package/build-module/components/post-publish-panel/index.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-category-panel.js +13 -9
- 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 +22 -15
- 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 +14 -10
- 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 +30 -24
- package/build-module/components/post-publish-panel/maybe-upload-media.js.map +1 -1
- package/build-module/components/post-publish-panel/postpublish.js +57 -38
- package/build-module/components/post-publish-panel/postpublish.js.map +1 -1
- package/build-module/components/post-publish-panel/prepublish.js +43 -26
- package/build-module/components/post-publish-panel/prepublish.js.map +1 -1
- package/build-module/components/post-saved-state/index.js +10 -8
- package/build-module/components/post-saved-state/index.js.map +1 -1
- package/build-module/components/post-schedule/check.js +9 -0
- package/build-module/components/post-schedule/check.js.map +1 -1
- package/build-module/components/post-schedule/index.js +30 -6
- package/build-module/components/post-schedule/index.js.map +1 -1
- package/build-module/components/post-schedule/label.js +17 -0
- package/build-module/components/post-schedule/label.js.map +1 -1
- package/build-module/components/post-schedule/panel.js +43 -30
- package/build-module/components/post-schedule/panel.js.map +1 -1
- package/build-module/components/post-slug/check.js +5 -4
- package/build-module/components/post-slug/check.js.map +1 -1
- package/build-module/components/post-slug/index.js +5 -3
- package/build-module/components/post-slug/index.js.map +1 -1
- package/build-module/components/post-slug/panel.js +21 -0
- package/build-module/components/post-slug/panel.js.map +1 -0
- package/build-module/components/post-status/index.js +121 -120
- package/build-module/components/post-status/index.js.map +1 -1
- package/build-module/components/post-sticky/index.js +17 -9
- package/build-module/components/post-sticky/index.js.map +1 -1
- package/build-module/components/post-sticky/panel.js +16 -0
- package/build-module/components/post-sticky/panel.js.map +1 -0
- package/build-module/components/post-switch-to-draft-button/index.js +27 -21
- package/build-module/components/post-switch-to-draft-button/index.js.map +1 -1
- package/build-module/components/post-sync-status/index.js +8 -6
- package/build-module/components/post-sync-status/index.js.map +1 -1
- package/build-module/components/post-taxonomies/flat-term-selector.js +22 -18
- package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build-module/components/post-taxonomies/hierarchical-term-selector.js +71 -59
- package/build-module/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
- package/build-module/components/post-taxonomies/index.js +6 -6
- package/build-module/components/post-taxonomies/index.js.map +1 -1
- package/build-module/components/post-taxonomies/most-used-terms.js +20 -15
- package/build-module/components/post-taxonomies/most-used-terms.js.map +1 -1
- package/build-module/components/post-taxonomies/panel.js +15 -11
- package/build-module/components/post-taxonomies/panel.js.map +1 -1
- package/build-module/components/post-template/block-theme.js +44 -32
- package/build-module/components/post-template/block-theme.js.map +1 -1
- package/build-module/components/post-template/classic-theme.js +74 -50
- package/build-module/components/post-template/classic-theme.js.map +1 -1
- package/build-module/components/post-template/create-new-template-modal.js +34 -27
- package/build-module/components/post-template/create-new-template-modal.js.map +1 -1
- package/build-module/components/post-template/create-new-template.js +16 -11
- package/build-module/components/post-template/create-new-template.js.map +1 -1
- package/build-module/components/post-template/panel.js +17 -9
- package/build-module/components/post-template/panel.js.map +1 -1
- package/build-module/components/post-template/reset-default-template.js +5 -4
- package/build-module/components/post-template/reset-default-template.js.map +1 -1
- package/build-module/components/post-template/swap-template-button.js +22 -15
- package/build-module/components/post-template/swap-template-button.js.map +1 -1
- package/build-module/components/post-text-editor/index.js +30 -19
- package/build-module/components/post-text-editor/index.js.map +1 -1
- package/build-module/components/post-title/index.js +31 -20
- package/build-module/components/post-title/index.js.map +1 -1
- package/build-module/components/post-title/index.native.js +81 -57
- package/build-module/components/post-title/index.native.js.map +1 -1
- package/build-module/components/post-title/post-title-raw.js +13 -4
- package/build-module/components/post-title/post-title-raw.js.map +1 -1
- package/build-module/components/post-title/use-post-title-focus.js +8 -0
- package/build-module/components/post-title/use-post-title-focus.js.map +1 -1
- package/build-module/components/post-title/use-post-title.js +6 -0
- package/build-module/components/post-title/use-post-title.js.map +1 -1
- package/build-module/components/post-transform-panel/hooks.js +83 -0
- package/build-module/components/post-transform-panel/hooks.js.map +1 -0
- package/build-module/components/post-transform-panel/index.js +94 -0
- package/build-module/components/post-transform-panel/index.js.map +1 -0
- package/build-module/components/post-trash/index.js +21 -15
- package/build-module/components/post-trash/index.js.map +1 -1
- package/build-module/components/post-type-support-check/index.js +1 -1
- package/build-module/components/post-type-support-check/index.js.map +1 -1
- package/build-module/components/post-url/check.js +9 -0
- package/build-module/components/post-url/check.js.map +1 -1
- package/build-module/components/post-url/index.js +100 -72
- package/build-module/components/post-url/index.js.map +1 -1
- package/build-module/components/post-url/label.js +12 -0
- package/build-module/components/post-url/label.js.map +1 -1
- package/build-module/components/post-url/panel.js +35 -24
- package/build-module/components/post-url/panel.js.map +1 -1
- package/build-module/components/post-view-link/index.js +2 -2
- package/build-module/components/post-view-link/index.js.map +1 -1
- package/build-module/components/post-visibility/check.js +10 -0
- package/build-module/components/post-visibility/check.js.map +1 -1
- package/build-module/components/post-visibility/index.js +85 -67
- package/build-module/components/post-visibility/index.js.map +1 -1
- package/build-module/components/post-visibility/label.js +12 -0
- package/build-module/components/post-visibility/label.js.map +1 -1
- package/build-module/components/posts-per-page/index.js +103 -0
- package/build-module/components/posts-per-page/index.js.map +1 -0
- package/build-module/components/preferences-modal/enable-plugin-document-setting-panel.js +7 -5
- package/build-module/components/preferences-modal/enable-plugin-document-setting-panel.js.map +1 -1
- package/build-module/components/preferences-modal/index.js +126 -102
- package/build-module/components/preferences-modal/index.js.map +1 -1
- package/build-module/components/preview-dropdown/index.js +49 -31
- package/build-module/components/preview-dropdown/index.js.map +1 -1
- package/build-module/components/provider/index.js +98 -20
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/provider/index.native.js +58 -20
- package/build-module/components/provider/index.native.js.map +1 -1
- package/build-module/components/provider/use-block-editor-settings.js +23 -4
- package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
- package/build-module/components/provider/with-registry-provider.js +33 -26
- package/build-module/components/provider/with-registry-provider.js.map +1 -1
- package/build-module/components/resizable-editor/index.js +89 -0
- package/build-module/components/resizable-editor/index.js.map +1 -0
- package/build-module/components/resizable-editor/resize-handle.js +54 -0
- package/build-module/components/resizable-editor/resize-handle.js.map +1 -0
- package/build-module/components/save-publish-panels/index.js +37 -26
- package/build-module/components/save-publish-panels/index.js.map +1 -1
- package/build-module/components/sidebar/constants.js +5 -0
- package/build-module/components/sidebar/constants.js.map +1 -0
- package/build-module/components/sidebar/header.js +50 -0
- package/build-module/components/sidebar/header.js.map +1 -0
- package/build-module/components/sidebar/index.js +154 -0
- package/build-module/components/sidebar/index.js.map +1 -0
- package/build-module/components/sidebar/post-summary.js +85 -0
- package/build-module/components/sidebar/post-summary.js.map +1 -0
- package/build-module/components/site-discussion/index.js +127 -0
- package/build-module/components/site-discussion/index.js.map +1 -0
- package/build-module/components/start-page-options/index.js +18 -18
- package/build-module/components/start-page-options/index.js.map +1 -1
- package/build-module/components/start-template-options/index.js +192 -0
- package/build-module/components/start-template-options/index.js.map +1 -0
- package/build-module/components/table-of-contents/index.js +4 -4
- package/build-module/components/table-of-contents/index.js.map +1 -1
- package/build-module/components/table-of-contents/panel.js +55 -35
- package/build-module/components/table-of-contents/panel.js.map +1 -1
- package/build-module/components/template-areas/index.js +37 -22
- package/build-module/components/template-areas/index.js.map +1 -1
- package/build-module/components/template-content-panel/index.js +32 -0
- package/build-module/components/template-content-panel/index.js.map +1 -0
- package/build-module/components/template-validation-notice/index.js +27 -21
- package/build-module/components/template-validation-notice/index.js.map +1 -1
- package/build-module/components/text-editor/index.js +66 -0
- package/build-module/components/text-editor/index.js.map +1 -0
- package/build-module/components/time-to-read/index.js +7 -6
- package/build-module/components/time-to-read/index.js.map +1 -1
- package/build-module/components/{editor-canvas → visual-editor}/edit-template-blocks-notification.js +5 -4
- package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -0
- package/build-module/components/{editor-canvas → visual-editor}/index.js +133 -79
- package/build-module/components/visual-editor/index.js.map +1 -0
- package/build-module/components/word-count/index.js +5 -4
- package/build-module/components/word-count/index.js.map +1 -1
- package/build-module/hooks/custom-sources-backwards-compatibility.js +2 -2
- package/build-module/hooks/custom-sources-backwards-compatibility.js.map +1 -1
- package/build-module/hooks/index.js +1 -0
- package/build-module/hooks/index.js.map +1 -1
- package/build-module/hooks/media-upload.js +7 -0
- package/build-module/hooks/media-upload.js.map +1 -0
- package/build-module/hooks/pattern-overrides.js +27 -16
- package/build-module/hooks/pattern-overrides.js.map +1 -1
- package/build-module/private-apis.js +15 -38
- package/build-module/private-apis.js.map +1 -1
- package/build-module/private-apis.native.js +38 -0
- package/build-module/private-apis.native.js.map +1 -0
- package/build-module/store/constants.js +3 -0
- package/build-module/store/constants.js.map +1 -1
- package/build-module/store/private-actions.js +10 -14
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/private-selectors.js +41 -1
- package/build-module/store/private-selectors.js.map +1 -1
- package/build-module/store/reducer.js +14 -0
- package/build-module/store/reducer.js.map +1 -1
- package/build-module/store/selectors.js +1 -1
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/utils/set-nested-value.js +38 -0
- package/build-module/utils/set-nested-value.js.map +1 -0
- package/build-style/style-rtl.css +623 -85
- package/build-style/style.css +623 -85
- package/package.json +43 -37
- package/src/bindings/index.js +1 -4
- package/src/bindings/pattern-overrides.js +84 -2
- package/src/bindings/post-meta.js +46 -6
- package/src/components/autocompleters/style.scss +1 -2
- package/src/components/block-settings-menu/content-only-settings-menu.js +175 -0
- package/src/components/block-settings-menu/content-only-settings-menu.native.js +4 -0
- package/src/components/block-settings-menu/style.scss +4 -0
- package/src/components/blog-title/index.js +124 -0
- package/src/components/blog-title/style.scss +4 -0
- package/src/components/collapsible-block-toolbar/index.js +2 -2
- package/src/components/commands/index.js +113 -3
- package/src/components/create-template-part-modal/index.js +205 -0
- package/src/components/create-template-part-modal/style.scss +69 -0
- package/src/components/create-template-part-modal/test/utils.js +60 -0
- package/src/components/create-template-part-modal/utils.js +67 -0
- package/src/components/document-bar/index.js +34 -23
- package/src/components/document-outline/item.js +2 -2
- package/src/components/document-tools/index.js +21 -28
- package/src/components/editor-help/help-get-support-button.native.js +1 -1
- package/src/components/editor-interface/content-slot-fill.js +15 -0
- package/src/components/editor-interface/index.js +230 -0
- package/src/components/editor-notices/index.js +10 -0
- package/src/components/entities-saved-states/entity-record-item.js +45 -16
- package/src/components/entities-saved-states/style.scss +13 -0
- package/src/components/error-boundary/index.js +10 -0
- package/src/components/error-boundary/index.native.js +1 -1
- package/src/components/global-keyboard-shortcuts/register-shortcuts.js +1 -1
- package/src/components/global-styles-provider/index.js +254 -0
- package/src/components/header/back-button.js +27 -0
- package/src/components/header/index.js +169 -0
- package/src/components/header/style.scss +236 -0
- package/src/components/inserter-sidebar/index.js +92 -36
- package/src/components/inserter-sidebar/style.scss +1 -7
- package/src/components/keyboard-shortcut-help-modal/index.js +2 -2
- package/src/components/list-view-sidebar/style.scss +1 -0
- package/src/components/local-autosave-monitor/index.js +12 -0
- package/src/components/page-attributes/order.js +79 -3
- package/src/components/page-attributes/panel.js +10 -26
- package/src/components/page-attributes/parent.js +98 -2
- package/src/components/page-attributes/style.scss +19 -0
- package/src/components/page-attributes/test/order.js +5 -1
- package/src/components/pattern-duplicate-modal/index.js +50 -0
- package/src/components/pattern-rename-modal/index.js +44 -0
- package/src/components/post-actions/actions.js +522 -371
- package/src/components/post-actions/export-pattern-action.js +74 -0
- package/src/components/post-actions/export-pattern-action.native.js +4 -0
- package/src/components/post-actions/index.js +20 -42
- package/src/components/post-author/combobox.js +1 -0
- package/src/components/post-author/hook.js +1 -1
- package/src/components/post-author/panel.js +63 -2
- package/src/components/post-author/select.js +1 -0
- package/src/components/post-author/style.scss +6 -0
- package/src/components/post-card-panel/index.js +56 -55
- package/src/components/post-card-panel/style.scss +23 -1
- package/src/components/post-comments/index.js +52 -9
- package/src/components/post-discussion/panel.js +115 -31
- package/src/components/post-discussion/style.scss +24 -0
- package/src/components/post-excerpt/panel.js +45 -48
- package/src/components/post-excerpt/style.scss +0 -17
- package/src/components/post-featured-image/check.js +9 -0
- package/src/components/post-featured-image/index.js +15 -0
- package/src/components/post-featured-image/panel.js +9 -0
- package/src/components/post-format/check.js +8 -0
- package/src/components/post-format/index.js +15 -4
- package/src/components/post-format/panel.js +87 -0
- package/src/components/post-format/style.scss +12 -0
- package/src/components/post-last-revision/check.js +8 -0
- package/src/components/post-last-revision/index.js +7 -2
- package/src/components/post-last-revision/panel.js +5 -0
- package/src/components/post-last-revision/test/check.js +5 -1
- package/src/components/post-locked-modal/index.js +6 -0
- package/src/components/post-panel-row/index.js +2 -2
- package/src/components/post-panel-row/style.scss +15 -0
- package/src/components/post-panel-section/index.js +19 -0
- package/src/components/post-panel-section/style.scss +3 -0
- package/src/components/post-pending-status/check.js +10 -0
- package/src/components/post-pending-status/index.js +5 -0
- package/src/components/post-pingbacks/index.js +17 -2
- package/src/components/post-preview-button/index.js +15 -0
- package/src/components/post-publish-button/index.js +17 -4
- package/src/components/post-publish-panel/index.js +1 -0
- package/src/components/post-publish-panel/maybe-tags-panel.js +1 -1
- package/src/components/post-publish-panel/style.scss +5 -0
- package/src/components/post-publish-panel/test/__snapshots__/index.js.snap +3 -3
- package/src/components/post-saved-state/index.js +2 -2
- package/src/components/post-schedule/check.js +8 -0
- package/src/components/post-schedule/index.js +30 -3
- package/src/components/post-schedule/label.js +15 -0
- package/src/components/post-schedule/panel.js +9 -1
- package/src/components/post-schedule/style.scss +0 -11
- package/src/components/post-slug/panel.js +22 -0
- package/src/components/post-slug/style.scss +5 -0
- package/src/components/post-slug/test/index.js +5 -1
- package/src/components/post-status/index.js +30 -52
- package/src/components/post-status/style.scss +4 -34
- package/src/components/post-sticky/index.js +12 -7
- package/src/components/post-sticky/panel.js +18 -0
- package/src/components/post-sticky/style.scss +3 -0
- package/src/components/post-template/block-theme.js +1 -0
- package/src/components/post-template/classic-theme.js +15 -0
- package/src/components/post-template/panel.js +5 -0
- package/src/components/post-template/style.scss +0 -8
- package/src/components/post-text-editor/index.js +5 -0
- package/src/components/post-title/index.js +10 -3
- package/src/components/post-title/index.native.js +70 -35
- package/src/components/post-title/post-title-raw.js +10 -2
- package/src/components/post-title/use-post-title-focus.js +7 -0
- package/src/components/post-title/use-post-title.js +5 -0
- package/src/components/post-transform-panel/hooks.js +114 -0
- package/src/components/post-transform-panel/index.js +91 -0
- package/src/components/post-type-support-check/index.js +1 -1
- package/src/components/post-type-support-check/test/index.js +2 -2
- package/src/components/post-url/check.js +8 -0
- package/src/components/post-url/index.js +41 -24
- package/src/components/post-url/label.js +10 -0
- package/src/components/post-url/panel.js +6 -1
- package/src/components/post-url/style.scss +0 -9
- package/src/components/post-visibility/check.js +9 -0
- package/src/components/post-visibility/index.js +7 -0
- package/src/components/post-visibility/label.js +10 -0
- package/src/components/posts-per-page/index.js +101 -0
- package/src/components/posts-per-page/style.scss +4 -0
- package/src/components/preferences-modal/index.js +3 -3
- package/src/components/provider/index.js +72 -0
- package/src/components/provider/index.native.js +43 -2
- package/src/components/provider/use-block-editor-settings.js +19 -6
- package/src/components/provider/with-registry-provider.js +32 -31
- package/src/components/resizable-editor/index.js +90 -0
- package/src/components/resizable-editor/resize-handle.js +62 -0
- package/src/components/resizable-editor/style.scss +53 -0
- package/src/components/save-publish-panels/index.js +10 -2
- package/src/components/sidebar/constants.js +4 -0
- package/src/components/sidebar/header.js +49 -0
- package/src/components/sidebar/index.js +196 -0
- package/src/components/sidebar/post-summary.js +97 -0
- package/src/components/sidebar/style.scss +18 -0
- package/src/components/site-discussion/index.js +138 -0
- package/src/components/site-discussion/style.scss +19 -0
- package/src/components/start-page-options/index.js +6 -4
- package/src/components/start-template-options/index.js +219 -0
- package/src/components/start-template-options/style.scss +47 -0
- package/src/components/template-areas/index.js +15 -6
- package/src/components/template-areas/style.scss +0 -1
- package/src/components/template-content-panel/index.js +36 -0
- package/src/components/text-editor/index.js +57 -0
- package/src/components/text-editor/style.scss +71 -0
- package/src/components/{editor-canvas → visual-editor}/index.js +191 -110
- package/src/components/visual-editor/style.scss +37 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/media-upload.js +11 -0
- package/src/hooks/pattern-overrides.js +12 -6
- package/src/private-apis.js +18 -38
- package/src/private-apis.native.js +37 -0
- package/src/store/constants.js +7 -0
- package/src/store/private-actions.js +22 -50
- package/src/store/private-selectors.js +48 -0
- package/src/store/reducer.js +12 -0
- package/src/store/selectors.js +1 -1
- package/src/style.scss +16 -0
- package/src/utils/set-nested-value.js +39 -0
- package/build/components/editor-canvas/edit-template-blocks-notification.js.map +0 -1
- package/build/components/editor-canvas/index.js.map +0 -1
- package/build-module/components/editor-canvas/edit-template-blocks-notification.js.map +0 -1
- package/build-module/components/editor-canvas/index.js.map +0 -1
- package/src/components/post-slug/test/check.js +0 -17
- package/src/components/provider/README.md +0 -37
- /package/src/components/{editor-canvas → visual-editor}/edit-template-blocks-notification.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* External dependencies
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import clsx from 'clsx';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* WordPress dependencies
|
|
@@ -20,7 +20,11 @@ import { useEffect, useRef, useMemo } from '@wordpress/element';
|
|
|
20
20
|
import { useSelect } from '@wordpress/data';
|
|
21
21
|
import { parse } from '@wordpress/blocks';
|
|
22
22
|
import { store as coreStore } from '@wordpress/core-data';
|
|
23
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
useMergeRefs,
|
|
25
|
+
useViewportMatch,
|
|
26
|
+
useResizeObserver,
|
|
27
|
+
} from '@wordpress/compose';
|
|
24
28
|
|
|
25
29
|
/**
|
|
26
30
|
* Internal dependencies
|
|
@@ -29,7 +33,14 @@ import PostTitle from '../post-title';
|
|
|
29
33
|
import { store as editorStore } from '../../store';
|
|
30
34
|
import { unlock } from '../../lock-unlock';
|
|
31
35
|
import EditTemplateBlocksNotification from './edit-template-blocks-notification';
|
|
36
|
+
import ResizableEditor from '../resizable-editor';
|
|
32
37
|
import useSelectNearestEditableBlock from '../../hooks/use-select-nearest-editable-block';
|
|
38
|
+
import {
|
|
39
|
+
NAVIGATION_POST_TYPE,
|
|
40
|
+
PATTERN_POST_TYPE,
|
|
41
|
+
TEMPLATE_PART_POST_TYPE,
|
|
42
|
+
TEMPLATE_POST_TYPE,
|
|
43
|
+
} from '../../store/constants';
|
|
33
44
|
|
|
34
45
|
const {
|
|
35
46
|
LayoutStyle,
|
|
@@ -44,10 +55,10 @@ const {
|
|
|
44
55
|
* and they don't apply the layout styles.
|
|
45
56
|
*/
|
|
46
57
|
const DESIGN_POST_TYPES = [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
58
|
+
PATTERN_POST_TYPE,
|
|
59
|
+
TEMPLATE_POST_TYPE,
|
|
60
|
+
NAVIGATION_POST_TYPE,
|
|
61
|
+
TEMPLATE_PART_POST_TYPE,
|
|
51
62
|
];
|
|
52
63
|
|
|
53
64
|
/**
|
|
@@ -85,17 +96,17 @@ function checkForPostContentAtRootLevel( blocks ) {
|
|
|
85
96
|
return false;
|
|
86
97
|
}
|
|
87
98
|
|
|
88
|
-
function
|
|
99
|
+
function VisualEditor( {
|
|
89
100
|
// Ideally as we unify post and site editors, we won't need these props.
|
|
90
101
|
autoFocus,
|
|
91
|
-
className,
|
|
92
|
-
renderAppender,
|
|
93
102
|
styles,
|
|
94
103
|
disableIframe = false,
|
|
95
104
|
iframeProps,
|
|
96
105
|
contentRef,
|
|
97
|
-
|
|
106
|
+
className,
|
|
98
107
|
} ) {
|
|
108
|
+
const [ resizeObserver, sizes ] = useResizeObserver();
|
|
109
|
+
const isMobileViewport = useViewportMatch( 'small', '<' );
|
|
99
110
|
const {
|
|
100
111
|
renderingMode,
|
|
101
112
|
postContentAttributes,
|
|
@@ -103,8 +114,10 @@ function EditorCanvas( {
|
|
|
103
114
|
wrapperBlockName,
|
|
104
115
|
wrapperUniqueId,
|
|
105
116
|
deviceType,
|
|
106
|
-
|
|
117
|
+
isFocusedEntity,
|
|
107
118
|
isDesignPostType,
|
|
119
|
+
postType,
|
|
120
|
+
isPreview,
|
|
108
121
|
} = useSelect( ( select ) => {
|
|
109
122
|
const {
|
|
110
123
|
getCurrentPostId,
|
|
@@ -120,7 +133,7 @@ function EditorCanvas( {
|
|
|
120
133
|
const _renderingMode = getRenderingMode();
|
|
121
134
|
let _wrapperBlockName;
|
|
122
135
|
|
|
123
|
-
if ( postTypeSlug ===
|
|
136
|
+
if ( postTypeSlug === PATTERN_POST_TYPE ) {
|
|
124
137
|
_wrapperBlockName = 'core/block';
|
|
125
138
|
} else if ( _renderingMode === 'post-only' ) {
|
|
126
139
|
_wrapperBlockName = 'core/post-content';
|
|
@@ -128,13 +141,13 @@ function EditorCanvas( {
|
|
|
128
141
|
|
|
129
142
|
const editorSettings = getEditorSettings();
|
|
130
143
|
const supportsTemplateMode = editorSettings.supportsTemplateMode;
|
|
131
|
-
const
|
|
144
|
+
const postTypeObject = getPostType( postTypeSlug );
|
|
132
145
|
const canEditTemplate = canUser( 'create', 'templates' );
|
|
133
146
|
const currentTemplateId = getCurrentTemplateId();
|
|
134
147
|
const template = currentTemplateId
|
|
135
148
|
? getEditedEntityRecord(
|
|
136
149
|
'postType',
|
|
137
|
-
|
|
150
|
+
TEMPLATE_POST_TYPE,
|
|
138
151
|
currentTemplateId
|
|
139
152
|
)
|
|
140
153
|
: undefined;
|
|
@@ -146,14 +159,17 @@ function EditorCanvas( {
|
|
|
146
159
|
// Post template fetch returns a 404 on classic themes, which
|
|
147
160
|
// messes with e2e tests, so check it's a block theme first.
|
|
148
161
|
editedPostTemplate:
|
|
149
|
-
|
|
162
|
+
postTypeObject?.viewable &&
|
|
163
|
+
supportsTemplateMode &&
|
|
164
|
+
canEditTemplate
|
|
150
165
|
? template
|
|
151
166
|
: undefined,
|
|
152
167
|
wrapperBlockName: _wrapperBlockName,
|
|
153
168
|
wrapperUniqueId: getCurrentPostId(),
|
|
154
169
|
deviceType: getDeviceType(),
|
|
155
|
-
|
|
156
|
-
|
|
170
|
+
isFocusedEntity: !! editorSettings.onNavigateToPreviousEntityRecord,
|
|
171
|
+
postType: postTypeSlug,
|
|
172
|
+
isPreview: editorSettings.__unstableIsPreviewMode,
|
|
157
173
|
};
|
|
158
174
|
}, [] );
|
|
159
175
|
const { isCleanNewPost } = useSelect( editorStore );
|
|
@@ -161,13 +177,17 @@ function EditorCanvas( {
|
|
|
161
177
|
hasRootPaddingAwareAlignments,
|
|
162
178
|
themeHasDisabledLayoutStyles,
|
|
163
179
|
themeSupportsLayout,
|
|
180
|
+
isZoomOutMode,
|
|
164
181
|
} = useSelect( ( select ) => {
|
|
165
|
-
const
|
|
182
|
+
const { getSettings, __unstableGetEditorMode } =
|
|
183
|
+
select( blockEditorStore );
|
|
184
|
+
const _settings = getSettings();
|
|
166
185
|
return {
|
|
167
186
|
themeHasDisabledLayoutStyles: _settings.disableLayoutStyles,
|
|
168
187
|
themeSupportsLayout: _settings.supportsLayout,
|
|
169
188
|
hasRootPaddingAwareAlignments:
|
|
170
189
|
_settings.__experimentalFeatures?.useRootPaddingAwareAlignments,
|
|
190
|
+
isZoomOutMode: __unstableGetEditorMode() === 'zoom-out',
|
|
171
191
|
};
|
|
172
192
|
}, [] );
|
|
173
193
|
|
|
@@ -248,7 +268,7 @@ function EditorCanvas( {
|
|
|
248
268
|
'core/post-content'
|
|
249
269
|
);
|
|
250
270
|
|
|
251
|
-
const blockListLayoutClass =
|
|
271
|
+
const blockListLayoutClass = clsx(
|
|
252
272
|
{
|
|
253
273
|
'is-layout-flow': ! themeSupportsLayout,
|
|
254
274
|
},
|
|
@@ -289,7 +309,6 @@ function EditorCanvas( {
|
|
|
289
309
|
blockListLayout?.type === 'default' && ! hasPostContentAtRootLevel
|
|
290
310
|
? fallbackLayout
|
|
291
311
|
: blockListLayout;
|
|
292
|
-
|
|
293
312
|
const observeTypingRef = useTypingObserver();
|
|
294
313
|
const titleRef = useRef();
|
|
295
314
|
useEffect( () => {
|
|
@@ -319,102 +338,164 @@ function EditorCanvas( {
|
|
|
319
338
|
} ),
|
|
320
339
|
] );
|
|
321
340
|
|
|
341
|
+
const zoomOutProps = isZoomOutMode
|
|
342
|
+
? {
|
|
343
|
+
scale: 'default',
|
|
344
|
+
frameSize: '20px',
|
|
345
|
+
}
|
|
346
|
+
: {};
|
|
347
|
+
|
|
348
|
+
const forceFullHeight = postType === NAVIGATION_POST_TYPE;
|
|
349
|
+
const enableResizing =
|
|
350
|
+
[
|
|
351
|
+
NAVIGATION_POST_TYPE,
|
|
352
|
+
TEMPLATE_PART_POST_TYPE,
|
|
353
|
+
PATTERN_POST_TYPE,
|
|
354
|
+
].includes( postType ) &&
|
|
355
|
+
// Disable in previews / view mode.
|
|
356
|
+
! isPreview &&
|
|
357
|
+
// Disable resizing in mobile viewport.
|
|
358
|
+
! isMobileViewport &&
|
|
359
|
+
// Dsiable resizing in zoomed-out mode.
|
|
360
|
+
! isZoomOutMode;
|
|
361
|
+
const shouldIframe =
|
|
362
|
+
! disableIframe || [ 'Tablet', 'Mobile' ].includes( deviceType );
|
|
363
|
+
|
|
364
|
+
const iframeStyles = useMemo( () => {
|
|
365
|
+
return [
|
|
366
|
+
...( styles ?? [] ),
|
|
367
|
+
{
|
|
368
|
+
css: `.is-root-container{display:flow-root;${
|
|
369
|
+
// Some themes will have `min-height: 100vh` for the root container,
|
|
370
|
+
// which isn't a requirement in auto resize mode.
|
|
371
|
+
enableResizing ? 'min-height:0!important;' : ''
|
|
372
|
+
}}`,
|
|
373
|
+
},
|
|
374
|
+
];
|
|
375
|
+
}, [ styles, enableResizing ] );
|
|
376
|
+
|
|
322
377
|
return (
|
|
323
|
-
<
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
'
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
style: {
|
|
336
|
-
...iframeProps?.style,
|
|
337
|
-
...deviceStyles,
|
|
338
|
-
},
|
|
339
|
-
} }
|
|
378
|
+
<div
|
|
379
|
+
className={ clsx(
|
|
380
|
+
'editor-visual-editor',
|
|
381
|
+
// this class is here for backward compatibility reasons.
|
|
382
|
+
'edit-post-visual-editor',
|
|
383
|
+
className,
|
|
384
|
+
{
|
|
385
|
+
'has-padding': isFocusedEntity || enableResizing,
|
|
386
|
+
'is-resizable': enableResizing,
|
|
387
|
+
'is-iframed': shouldIframe,
|
|
388
|
+
}
|
|
389
|
+
) }
|
|
340
390
|
>
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
{
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
/>
|
|
360
|
-
) }
|
|
361
|
-
</>
|
|
362
|
-
) }
|
|
363
|
-
{ renderingMode === 'post-only' && ! isDesignPostType && (
|
|
364
|
-
<div
|
|
365
|
-
className={ classnames(
|
|
366
|
-
'editor-editor-canvas__post-title-wrapper',
|
|
367
|
-
// The following class is only here for backward comapatibility
|
|
368
|
-
// some themes might be using it to style the post title.
|
|
369
|
-
'edit-post-visual-editor__post-title-wrapper',
|
|
370
|
-
{
|
|
371
|
-
'has-global-padding': hasRootPaddingAwareAlignments,
|
|
372
|
-
}
|
|
373
|
-
) }
|
|
374
|
-
contentEditable={ false }
|
|
375
|
-
ref={ observeTypingRef }
|
|
376
|
-
style={ {
|
|
377
|
-
// This is using inline styles
|
|
378
|
-
// so it's applied for both iframed and non iframed editors.
|
|
379
|
-
marginTop: '4rem',
|
|
391
|
+
<ResizableEditor
|
|
392
|
+
enableResizing={ enableResizing }
|
|
393
|
+
height={
|
|
394
|
+
sizes.height && ! forceFullHeight ? sizes.height : '100%'
|
|
395
|
+
}
|
|
396
|
+
>
|
|
397
|
+
<BlockCanvas
|
|
398
|
+
shouldIframe={ shouldIframe }
|
|
399
|
+
contentRef={ contentRef }
|
|
400
|
+
styles={ iframeStyles }
|
|
401
|
+
height="100%"
|
|
402
|
+
iframeProps={ {
|
|
403
|
+
...iframeProps,
|
|
404
|
+
...zoomOutProps,
|
|
405
|
+
style: {
|
|
406
|
+
...iframeProps?.style,
|
|
407
|
+
...deviceStyles,
|
|
408
|
+
},
|
|
380
409
|
} }
|
|
381
410
|
>
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
411
|
+
{ themeSupportsLayout &&
|
|
412
|
+
! themeHasDisabledLayoutStyles &&
|
|
413
|
+
renderingMode === 'post-only' &&
|
|
414
|
+
! isDesignPostType && (
|
|
415
|
+
<>
|
|
416
|
+
<LayoutStyle
|
|
417
|
+
selector=".editor-visual-editor__post-title-wrapper"
|
|
418
|
+
layout={ fallbackLayout }
|
|
419
|
+
/>
|
|
420
|
+
<LayoutStyle
|
|
421
|
+
selector=".block-editor-block-list__layout.is-root-container"
|
|
422
|
+
layout={ postEditorLayout }
|
|
423
|
+
/>
|
|
424
|
+
{ align && <LayoutStyle css={ alignCSS } /> }
|
|
425
|
+
{ postContentLayoutStyles && (
|
|
426
|
+
<LayoutStyle
|
|
427
|
+
layout={ postContentLayout }
|
|
428
|
+
css={ postContentLayoutStyles }
|
|
429
|
+
/>
|
|
430
|
+
) }
|
|
431
|
+
</>
|
|
432
|
+
) }
|
|
433
|
+
{ renderingMode === 'post-only' && ! isDesignPostType && (
|
|
434
|
+
<div
|
|
435
|
+
className={ clsx(
|
|
436
|
+
'editor-visual-editor__post-title-wrapper',
|
|
437
|
+
// The following class is only here for backward comapatibility
|
|
438
|
+
// some themes might be using it to style the post title.
|
|
439
|
+
'edit-post-visual-editor__post-title-wrapper',
|
|
440
|
+
{
|
|
441
|
+
'has-global-padding':
|
|
442
|
+
hasRootPaddingAwareAlignments,
|
|
443
|
+
}
|
|
444
|
+
) }
|
|
445
|
+
contentEditable={ false }
|
|
446
|
+
ref={ observeTypingRef }
|
|
447
|
+
style={ {
|
|
448
|
+
// This is using inline styles
|
|
449
|
+
// so it's applied for both iframed and non iframed editors.
|
|
450
|
+
marginTop: '4rem',
|
|
451
|
+
} }
|
|
452
|
+
>
|
|
453
|
+
<PostTitle ref={ titleRef } />
|
|
454
|
+
</div>
|
|
396
455
|
) }
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
456
|
+
<RecursionProvider
|
|
457
|
+
blockName={ wrapperBlockName }
|
|
458
|
+
uniqueId={ wrapperUniqueId }
|
|
459
|
+
>
|
|
460
|
+
<BlockList
|
|
461
|
+
className={ clsx(
|
|
462
|
+
'is-' + deviceType.toLowerCase() + '-preview',
|
|
463
|
+
renderingMode !== 'post-only' ||
|
|
464
|
+
isDesignPostType
|
|
465
|
+
? 'wp-site-blocks'
|
|
466
|
+
: `${ blockListLayoutClass } wp-block-post-content` // Ensure root level blocks receive default/flow blockGap styling rules.
|
|
467
|
+
) }
|
|
468
|
+
layout={ blockListLayout }
|
|
469
|
+
dropZoneElement={
|
|
470
|
+
// When iframed, pass in the html element of the iframe to
|
|
471
|
+
// ensure the drop zone extends to the edges of the iframe.
|
|
472
|
+
disableIframe
|
|
473
|
+
? localRef.current
|
|
474
|
+
: localRef.current?.parentNode
|
|
475
|
+
}
|
|
476
|
+
__unstableDisableDropZone={
|
|
477
|
+
// In template preview mode, disable drop zones at the root of the template.
|
|
478
|
+
renderingMode === 'template-locked'
|
|
479
|
+
? true
|
|
480
|
+
: false
|
|
481
|
+
}
|
|
482
|
+
/>
|
|
483
|
+
{ renderingMode === 'template-locked' && (
|
|
484
|
+
<EditTemplateBlocksNotification
|
|
485
|
+
contentRef={ localRef }
|
|
486
|
+
/>
|
|
487
|
+
) }
|
|
488
|
+
</RecursionProvider>
|
|
489
|
+
{
|
|
490
|
+
// Avoid resize listeners when not needed,
|
|
491
|
+
// these will trigger unnecessary re-renders
|
|
492
|
+
// when animating the iframe width.
|
|
493
|
+
enableResizing && resizeObserver
|
|
409
494
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
) }
|
|
414
|
-
</RecursionProvider>
|
|
415
|
-
{ children }
|
|
416
|
-
</BlockCanvas>
|
|
495
|
+
</BlockCanvas>
|
|
496
|
+
</ResizableEditor>
|
|
497
|
+
</div>
|
|
417
498
|
);
|
|
418
499
|
}
|
|
419
500
|
|
|
420
|
-
export default
|
|
501
|
+
export default VisualEditor;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.editor-visual-editor {
|
|
2
|
+
position: relative;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: block;
|
|
5
|
+
background-color: $gray-300;
|
|
6
|
+
|
|
7
|
+
// Centralize the editor horizontally (flex-direction is column).
|
|
8
|
+
align-items: center;
|
|
9
|
+
|
|
10
|
+
&.is-resizable {
|
|
11
|
+
max-height: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.has-padding {
|
|
15
|
+
padding: $grid-unit-30 $grid-unit-30 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// In the iframed canvas this keeps extra scrollbars from appearing (when block toolbars overflow). In the
|
|
19
|
+
// legacy (non-iframed) canvas, overflow must not be hidden in order to maintain support for sticky positioning.
|
|
20
|
+
.is-iframed {
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// The button element easily inherits styles that are meant for the editor style.
|
|
25
|
+
// These rules enhance the specificity to reduce that inheritance.
|
|
26
|
+
// This is duplicated in edit-site.
|
|
27
|
+
& .components-button {
|
|
28
|
+
font-family: $default-font;
|
|
29
|
+
font-size: $default-font-size;
|
|
30
|
+
padding: 6px 12px;
|
|
31
|
+
|
|
32
|
+
&.is-tertiary,
|
|
33
|
+
&.has-icon {
|
|
34
|
+
padding: 6px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
package/src/hooks/index.js
CHANGED
|
@@ -19,6 +19,7 @@ const {
|
|
|
19
19
|
ResetOverridesControl,
|
|
20
20
|
PATTERN_TYPES,
|
|
21
21
|
PARTIAL_SYNCING_SUPPORTED_BLOCKS,
|
|
22
|
+
PATTERN_SYNC_TYPES,
|
|
22
23
|
} = unlock( patternsPrivateApis );
|
|
23
24
|
|
|
24
25
|
/**
|
|
@@ -51,18 +52,23 @@ const withPatternOverrideControls = createHigherOrderComponent(
|
|
|
51
52
|
// on every block.
|
|
52
53
|
function ControlsWithStoreSubscription( props ) {
|
|
53
54
|
const blockEditingMode = useBlockEditingMode();
|
|
54
|
-
const { hasPatternOverridesSource,
|
|
55
|
+
const { hasPatternOverridesSource, isEditingSyncedPattern } = useSelect(
|
|
55
56
|
( select ) => {
|
|
56
57
|
const { getBlockBindingsSource } = unlock( select( blocksStore ) );
|
|
58
|
+
const { getCurrentPostType, getEditedPostAttribute } =
|
|
59
|
+
select( editorStore );
|
|
57
60
|
|
|
58
61
|
return {
|
|
59
62
|
// For editing link to the site editor if the theme and user permissions support it.
|
|
60
63
|
hasPatternOverridesSource: !! getBlockBindingsSource(
|
|
61
64
|
'core/pattern-overrides'
|
|
62
65
|
),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
isEditingSyncedPattern:
|
|
67
|
+
getCurrentPostType() === PATTERN_TYPES.user &&
|
|
68
|
+
getEditedPostAttribute( 'meta' )?.wp_pattern_sync_status !==
|
|
69
|
+
PATTERN_SYNC_TYPES.unsynced &&
|
|
70
|
+
getEditedPostAttribute( 'wp_pattern_sync_status' ) !==
|
|
71
|
+
PATTERN_SYNC_TYPES.unsynced,
|
|
66
72
|
};
|
|
67
73
|
},
|
|
68
74
|
[]
|
|
@@ -76,9 +82,9 @@ function ControlsWithStoreSubscription( props ) {
|
|
|
76
82
|
);
|
|
77
83
|
|
|
78
84
|
const shouldShowPatternOverridesControls =
|
|
79
|
-
|
|
85
|
+
isEditingSyncedPattern && blockEditingMode === 'default';
|
|
80
86
|
const shouldShowResetOverridesControl =
|
|
81
|
-
!
|
|
87
|
+
! isEditingSyncedPattern &&
|
|
82
88
|
!! props.attributes.metadata?.name &&
|
|
83
89
|
blockEditingMode !== 'disabled' &&
|
|
84
90
|
hasPatternBindings;
|
package/src/private-apis.js
CHANGED
|
@@ -6,67 +6,47 @@ import * as interfaceApis from '@wordpress/interface';
|
|
|
6
6
|
/**
|
|
7
7
|
* Internal dependencies
|
|
8
8
|
*/
|
|
9
|
-
import CollapsableBlockToolbar from './components/collapsible-block-toolbar';
|
|
10
|
-
import EditorCanvas from './components/editor-canvas';
|
|
11
9
|
import { ExperimentalEditorProvider } from './components/provider';
|
|
12
10
|
import { lock } from './lock-unlock';
|
|
13
11
|
import { EntitiesSavedStatesExtensible } from './components/entities-saved-states';
|
|
14
|
-
import
|
|
12
|
+
import EditorContentSlotFill from './components/editor-interface/content-slot-fill';
|
|
15
13
|
import useBlockEditorSettings from './components/provider/use-block-editor-settings';
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import MoreMenu from './components/more-menu';
|
|
20
|
-
import PatternOverridesPanel from './components/pattern-overrides-panel';
|
|
14
|
+
import BackButton from './components/header/back-button';
|
|
15
|
+
import EditorInterface from './components/editor-interface';
|
|
16
|
+
import CreateTemplatePartModal from './components/create-template-part-modal';
|
|
21
17
|
import PluginPostExcerpt from './components/post-excerpt/plugin';
|
|
22
|
-
import PostPanelRow from './components/post-panel-row';
|
|
23
|
-
import PostViewLink from './components/post-view-link';
|
|
24
|
-
import PreviewDropdown from './components/preview-dropdown';
|
|
25
18
|
import PreferencesModal from './components/preferences-modal';
|
|
26
|
-
import PostActions from './components/post-actions';
|
|
27
19
|
import { usePostActions } from './components/post-actions/actions';
|
|
28
|
-
import PostCardPanel from './components/post-card-panel';
|
|
29
|
-
import PostStatus from './components/post-status';
|
|
30
20
|
import ToolsMoreMenuGroup from './components/more-menu/tools-more-menu-group';
|
|
31
21
|
import ViewMoreMenuGroup from './components/more-menu/view-more-menu-group';
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
import ResizableEditor from './components/resizable-editor';
|
|
23
|
+
import Sidebar from './components/sidebar';
|
|
24
|
+
import {
|
|
25
|
+
mergeBaseAndUserConfigs,
|
|
26
|
+
GlobalStylesProvider,
|
|
27
|
+
} from './components/global-styles-provider';
|
|
37
28
|
|
|
38
29
|
const { store: interfaceStore, ...remainingInterfaceApis } = interfaceApis;
|
|
39
30
|
|
|
40
31
|
export const privateApis = {};
|
|
41
32
|
lock( privateApis, {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
EditorCanvas,
|
|
33
|
+
CreateTemplatePartModal,
|
|
34
|
+
BackButton,
|
|
45
35
|
ExperimentalEditorProvider,
|
|
46
36
|
EntitiesSavedStatesExtensible,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
37
|
+
EditorInterface,
|
|
38
|
+
EditorContentSlotFill,
|
|
39
|
+
GlobalStylesProvider,
|
|
40
|
+
mergeBaseAndUserConfigs,
|
|
51
41
|
PluginPostExcerpt,
|
|
52
|
-
PostActions,
|
|
53
|
-
PostPanelRow,
|
|
54
|
-
PostViewLink,
|
|
55
|
-
PreviewDropdown,
|
|
56
42
|
PreferencesModal,
|
|
57
43
|
usePostActions,
|
|
58
|
-
PostCardPanel,
|
|
59
|
-
PostStatus,
|
|
60
44
|
ToolsMoreMenuGroup,
|
|
61
45
|
ViewMoreMenuGroup,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
SavePublishPanels,
|
|
65
|
-
PostContentInformation,
|
|
66
|
-
PostLastEditedPanel,
|
|
46
|
+
ResizableEditor,
|
|
47
|
+
Sidebar,
|
|
67
48
|
|
|
68
49
|
// This is a temporary private API while we're updating the site editor to use EditorProvider.
|
|
69
|
-
useAutoSwitchEditorSidebars,
|
|
70
50
|
useBlockEditorSettings,
|
|
71
51
|
interfaceStore,
|
|
72
52
|
...remainingInterfaceApis,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import * as interfaceApis from '@wordpress/interface';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Internal dependencies
|
|
8
|
+
*/
|
|
9
|
+
import VisualEditor from './components/visual-editor';
|
|
10
|
+
import { ExperimentalEditorProvider } from './components/provider';
|
|
11
|
+
import { lock } from './lock-unlock';
|
|
12
|
+
import { EntitiesSavedStatesExtensible } from './components/entities-saved-states';
|
|
13
|
+
import useBlockEditorSettings from './components/provider/use-block-editor-settings';
|
|
14
|
+
import PluginPostExcerpt from './components/post-excerpt/plugin';
|
|
15
|
+
import PreferencesModal from './components/preferences-modal';
|
|
16
|
+
import { usePostActions } from './components/post-actions/actions';
|
|
17
|
+
import ToolsMoreMenuGroup from './components/more-menu/tools-more-menu-group';
|
|
18
|
+
import ViewMoreMenuGroup from './components/more-menu/view-more-menu-group';
|
|
19
|
+
|
|
20
|
+
const { store: interfaceStore, ...remainingInterfaceApis } = interfaceApis;
|
|
21
|
+
|
|
22
|
+
export const privateApis = {};
|
|
23
|
+
lock( privateApis, {
|
|
24
|
+
VisualEditor,
|
|
25
|
+
ExperimentalEditorProvider,
|
|
26
|
+
EntitiesSavedStatesExtensible,
|
|
27
|
+
PluginPostExcerpt,
|
|
28
|
+
PreferencesModal,
|
|
29
|
+
usePostActions,
|
|
30
|
+
ToolsMoreMenuGroup,
|
|
31
|
+
ViewMoreMenuGroup,
|
|
32
|
+
|
|
33
|
+
// This is a temporary private API while we're updating the site editor to use EditorProvider.
|
|
34
|
+
useBlockEditorSettings,
|
|
35
|
+
interfaceStore,
|
|
36
|
+
...remainingInterfaceApis,
|
|
37
|
+
} );
|
package/src/store/constants.js
CHANGED
|
@@ -18,6 +18,7 @@ export const TRASH_POST_NOTICE_ID = 'TRASH_POST_NOTICE_ID';
|
|
|
18
18
|
export const PERMALINK_POSTNAME_REGEX = /%(?:postname|pagename)%/;
|
|
19
19
|
export const ONE_MINUTE_IN_MS = 60 * 1000;
|
|
20
20
|
export const AUTOSAVE_PROPERTIES = [ 'title', 'excerpt', 'content' ];
|
|
21
|
+
export const TEMPLATE_PART_AREA_DEFAULT_CATEGORY = 'uncategorized';
|
|
21
22
|
export const TEMPLATE_POST_TYPE = 'wp_template';
|
|
22
23
|
export const TEMPLATE_PART_POST_TYPE = 'wp_template_part';
|
|
23
24
|
export const PATTERN_POST_TYPE = 'wp_block';
|
|
@@ -27,3 +28,9 @@ export const TEMPLATE_ORIGINS = {
|
|
|
27
28
|
theme: 'theme',
|
|
28
29
|
plugin: 'plugin',
|
|
29
30
|
};
|
|
31
|
+
export const TEMPLATE_POST_TYPES = [ 'wp_template', 'wp_template_part' ];
|
|
32
|
+
export const GLOBAL_POST_TYPES = [
|
|
33
|
+
...TEMPLATE_POST_TYPES,
|
|
34
|
+
'wp_block',
|
|
35
|
+
'wp_navigation',
|
|
36
|
+
];
|