@wordpress/editor 14.32.0 → 14.32.1-next.ff1cebbba.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/build/bindings/api.js +45 -33
- package/build/bindings/api.js.map +7 -1
- package/build/bindings/entity.js +78 -0
- package/build/bindings/entity.js.map +7 -0
- package/build/bindings/pattern-overrides.js +58 -65
- package/build/bindings/pattern-overrides.js.map +7 -1
- package/build/bindings/post-data.js +71 -91
- package/build/bindings/post-data.js.map +7 -1
- package/build/bindings/post-meta.js +74 -106
- package/build/bindings/post-meta.js.map +7 -1
- package/build/components/autocompleters/index.js +36 -11
- package/build/components/autocompleters/index.js.map +7 -1
- package/build/components/autocompleters/user.js +66 -54
- package/build/components/autocompleters/user.js.map +7 -1
- package/build/components/autosave-monitor/index.js +59 -73
- package/build/components/autosave-monitor/index.js.map +7 -1
- package/build/components/block-removal-warnings/index.js +81 -57
- package/build/components/block-removal-warnings/index.js.map +7 -1
- package/build/components/block-settings-menu/content-only-settings-menu.js +161 -121
- package/build/components/block-settings-menu/content-only-settings-menu.js.map +7 -1
- package/build/components/block-settings-menu/plugin-block-settings-menu-item.js +42 -99
- package/build/components/block-settings-menu/plugin-block-settings-menu-item.js.map +7 -1
- package/build/components/block-visibility/index.js +123 -0
- package/build/components/block-visibility/index.js.map +7 -0
- package/build/components/blog-title/index.js +127 -108
- package/build/components/blog-title/index.js.map +7 -1
- package/build/components/character-count/index.js +30 -23
- package/build/components/character-count/index.js.map +7 -1
- package/build/components/collab-sidebar/add-comment.js +89 -70
- package/build/components/collab-sidebar/add-comment.js.map +7 -1
- package/build/components/collab-sidebar/comment-author-info.js +72 -84
- package/build/components/collab-sidebar/comment-author-info.js.map +7 -1
- package/build/components/collab-sidebar/comment-form.js +92 -81
- package/build/components/collab-sidebar/comment-form.js.map +7 -1
- package/build/components/collab-sidebar/comment-indicator-toolbar.js +96 -83
- package/build/components/collab-sidebar/comment-indicator-toolbar.js.map +7 -1
- package/build/components/collab-sidebar/comment-menu-item.js +46 -0
- package/build/components/collab-sidebar/comment-menu-item.js.map +7 -0
- package/build/components/collab-sidebar/comments.js +544 -317
- package/build/components/collab-sidebar/comments.js.map +7 -1
- package/build/components/collab-sidebar/constants.js +30 -7
- package/build/components/collab-sidebar/constants.js.map +7 -1
- package/build/components/collab-sidebar/hooks.js +312 -58
- package/build/components/collab-sidebar/hooks.js.map +7 -1
- package/build/components/collab-sidebar/index.js +183 -252
- package/build/components/collab-sidebar/index.js.map +7 -1
- package/build/components/collab-sidebar/utils.js +94 -79
- package/build/components/collab-sidebar/utils.js.map +7 -1
- package/build/components/collapsible-block-toolbar/index.js +70 -60
- package/build/components/collapsible-block-toolbar/index.js.map +7 -1
- package/build/components/commands/index.js +218 -268
- package/build/components/commands/index.js.map +7 -1
- package/build/components/deprecated.js +328 -248
- package/build/components/deprecated.js.map +7 -1
- package/build/components/document-bar/index.js +145 -153
- package/build/components/document-bar/index.js.map +7 -1
- package/build/components/document-outline/check.js +28 -27
- package/build/components/document-outline/check.js.map +7 -1
- package/build/components/document-outline/index.js +169 -207
- package/build/components/document-outline/index.js.map +7 -1
- package/build/components/document-outline/item.js +68 -35
- package/build/components/document-outline/item.js.map +7 -1
- package/build/components/document-tools/index.js +145 -133
- package/build/components/document-tools/index.js.map +7 -1
- package/build/components/editor/index.js +99 -63
- package/build/components/editor/index.js.map +7 -1
- package/build/components/editor-history/redo.js +51 -54
- package/build/components/editor-history/redo.js.map +7 -1
- package/build/components/editor-history/undo.js +50 -53
- package/build/components/editor-history/undo.js.map +7 -1
- package/build/components/editor-interface/content-slot-fill.js +27 -12
- package/build/components/editor-interface/content-slot-fill.js.map +7 -1
- package/build/components/editor-interface/index.js +142 -127
- package/build/components/editor-interface/index.js.map +7 -1
- package/build/components/editor-notices/index.js +74 -58
- package/build/components/editor-notices/index.js.map +7 -1
- package/build/components/editor-snackbars/index.js +40 -32
- package/build/components/editor-snackbars/index.js.map +7 -1
- package/build/components/entities-saved-states/entity-record-item.js +70 -70
- package/build/components/entities-saved-states/entity-record-item.js.map +7 -1
- package/build/components/entities-saved-states/entity-type-list.js +108 -78
- package/build/components/entities-saved-states/entity-type-list.js.map +7 -1
- package/build/components/entities-saved-states/hooks/use-is-dirty.js +62 -61
- package/build/components/entities-saved-states/hooks/use-is-dirty.js.map +7 -1
- package/build/components/entities-saved-states/index.js +177 -161
- package/build/components/entities-saved-states/index.js.map +7 -1
- package/build/components/error-boundary/index.js +59 -85
- package/build/components/error-boundary/index.js.map +7 -1
- package/build/components/global-keyboard-shortcuts/index.js +58 -71
- package/build/components/global-keyboard-shortcuts/index.js.map +7 -1
- package/build/components/global-keyboard-shortcuts/register-shortcuts.js +106 -93
- package/build/components/global-keyboard-shortcuts/register-shortcuts.js.map +7 -1
- package/build/components/global-styles-provider/index.js +173 -146
- package/build/components/global-styles-provider/index.js.map +7 -1
- package/build/components/header/back-button.js +40 -26
- package/build/components/header/back-button.js.map +7 -1
- package/build/components/header/index.js +175 -162
- package/build/components/header/index.js.map +7 -1
- package/build/components/index.js +311 -780
- package/build/components/index.js.map +7 -1
- package/build/components/inserter-sidebar/index.js +62 -71
- package/build/components/inserter-sidebar/index.js.map +7 -1
- package/build/components/keyboard-shortcut-help-modal/config.js +74 -70
- package/build/components/keyboard-shortcut-help-modal/config.js.map +7 -1
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +61 -43
- package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +7 -1
- package/build/components/keyboard-shortcut-help-modal/index.js +165 -111
- package/build/components/keyboard-shortcut-help-modal/index.js.map +7 -1
- package/build/components/keyboard-shortcut-help-modal/shortcut.js +76 -55
- package/build/components/keyboard-shortcut-help-modal/shortcut.js.map +7 -1
- package/build/components/list-view-sidebar/index.js +117 -121
- package/build/components/list-view-sidebar/index.js.map +7 -1
- package/build/components/list-view-sidebar/list-view-outline.js +56 -41
- package/build/components/list-view-sidebar/list-view-outline.js.map +7 -1
- package/build/components/local-autosave-monitor/index.js +118 -148
- package/build/components/local-autosave-monitor/index.js.map +7 -1
- package/build/components/media-categories/index.js +160 -144
- package/build/components/media-categories/index.js.map +7 -1
- package/build/components/mode-switcher/index.js +68 -63
- package/build/components/mode-switcher/index.js.map +7 -1
- package/build/components/more-menu/copy-content-menu-item.js +46 -43
- package/build/components/more-menu/copy-content-menu-item.js.map +7 -1
- package/build/components/more-menu/index.js +174 -119
- package/build/components/more-menu/index.js.map +7 -1
- package/build/components/more-menu/tools-more-menu-group.js +27 -21
- package/build/components/more-menu/tools-more-menu-group.js.map +7 -1
- package/build/components/more-menu/view-more-menu-group.js +30 -22
- package/build/components/more-menu/view-more-menu-group.js.map +7 -1
- package/build/components/page-attributes/check.js +37 -40
- package/build/components/page-attributes/check.js.map +7 -1
- package/build/components/page-attributes/order.js +66 -64
- package/build/components/page-attributes/order.js.map +7 -1
- package/build/components/page-attributes/panel.js +45 -43
- package/build/components/page-attributes/panel.js.map +7 -1
- package/build/components/page-attributes/parent.js +224 -207
- package/build/components/page-attributes/parent.js.map +7 -1
- package/build/components/pattern-duplicate-modal/index.js +58 -48
- package/build/components/pattern-duplicate-modal/index.js.map +7 -1
- package/build/components/pattern-overrides-panel/index.js +33 -23
- package/build/components/pattern-overrides-panel/index.js.map +7 -1
- package/build/components/pattern-rename-modal/index.js +51 -47
- package/build/components/pattern-rename-modal/index.js.map +7 -1
- package/build/components/plugin-document-setting-panel/index.js +74 -114
- package/build/components/plugin-document-setting-panel/index.js.map +7 -1
- package/build/components/plugin-more-menu-item/index.js +37 -78
- package/build/components/plugin-more-menu-item/index.js.map +7 -1
- package/build/components/plugin-post-publish-panel/index.js +37 -59
- package/build/components/plugin-post-publish-panel/index.js.map +7 -1
- package/build/components/plugin-post-status-info/index.js +27 -73
- package/build/components/plugin-post-status-info/index.js.map +7 -1
- package/build/components/plugin-pre-publish-panel/index.js +37 -62
- package/build/components/plugin-pre-publish-panel/index.js.map +7 -1
- package/build/components/plugin-preview-menu-item/index.js +37 -57
- package/build/components/plugin-preview-menu-item/index.js.map +7 -1
- package/build/components/plugin-sidebar/index.js +34 -86
- package/build/components/plugin-sidebar/index.js.map +7 -1
- package/build/components/plugin-sidebar-more-menu-item/index.js +33 -67
- package/build/components/plugin-sidebar-more-menu-item/index.js.map +7 -1
- package/build/components/post-actions/actions.js +111 -103
- package/build/components/post-actions/actions.js.map +7 -1
- package/build/components/post-actions/index.js +126 -131
- package/build/components/post-actions/index.js.map +7 -1
- package/build/components/post-actions/set-as-homepage.js +123 -123
- package/build/components/post-actions/set-as-homepage.js.map +7 -1
- package/build/components/post-actions/set-as-posts-page.js +118 -120
- package/build/components/post-actions/set-as-posts-page.js.map +7 -1
- package/build/components/post-author/check.js +41 -38
- package/build/components/post-author/check.js.map +7 -1
- package/build/components/post-author/combobox.js +50 -52
- package/build/components/post-author/combobox.js.map +7 -1
- package/build/components/post-author/constants.js +34 -10
- package/build/components/post-author/constants.js.map +7 -1
- package/build/components/post-author/hook.js +71 -71
- package/build/components/post-author/hook.js.map +7 -1
- package/build/components/post-author/index.js +43 -31
- package/build/components/post-author/index.js.map +7 -1
- package/build/components/post-author/panel.js +106 -95
- package/build/components/post-author/panel.js.map +7 -1
- package/build/components/post-author/select.js +45 -40
- package/build/components/post-author/select.js.map +7 -1
- package/build/components/post-card-panel/index.js +128 -113
- package/build/components/post-card-panel/index.js.map +7 -1
- package/build/components/post-comments/index.js +60 -55
- package/build/components/post-comments/index.js.map +7 -1
- package/build/components/post-content-information/index.js +64 -65
- package/build/components/post-content-information/index.js.map +7 -1
- package/build/components/post-discussion/panel.js +114 -128
- package/build/components/post-discussion/panel.js.map +7 -1
- package/build/components/post-excerpt/check.js +37 -27
- package/build/components/post-excerpt/check.js.map +7 -1
- package/build/components/post-excerpt/index.js +75 -71
- package/build/components/post-excerpt/index.js.map +7 -1
- package/build/components/post-excerpt/panel.js +152 -141
- package/build/components/post-excerpt/panel.js.map +7 -1
- package/build/components/post-excerpt/plugin.js +28 -70
- package/build/components/post-excerpt/plugin.js.map +7 -1
- package/build/components/post-featured-image/check.js +38 -32
- package/build/components/post-featured-image/check.js.map +7 -1
- package/build/components/post-featured-image/index.js +224 -211
- package/build/components/post-featured-image/index.js.map +7 -1
- package/build/components/post-featured-image/panel.js +55 -59
- package/build/components/post-featured-image/panel.js.map +7 -1
- package/build/components/post-fields/index.js +55 -56
- package/build/components/post-fields/index.js.map +7 -1
- package/build/components/post-format/check.js +42 -33
- package/build/components/post-format/check.js.map +7 -1
- package/build/components/post-format/index.js +100 -113
- package/build/components/post-format/index.js.map +7 -1
- package/build/components/post-format/panel.js +91 -82
- package/build/components/post-format/panel.js.map +7 -1
- package/build/components/post-last-edited-panel/index.js +38 -29
- package/build/components/post-last-edited-panel/index.js.map +7 -1
- package/build/components/post-last-revision/check.js +41 -41
- package/build/components/post-last-revision/check.js.map +7 -1
- package/build/components/post-last-revision/index.js +75 -66
- package/build/components/post-last-revision/index.js.map +7 -1
- package/build/components/post-last-revision/panel.js +39 -30
- package/build/components/post-last-revision/panel.js.map +7 -1
- package/build/components/post-locked-modal/index.js +148 -145
- package/build/components/post-locked-modal/index.js.map +7 -1
- package/build/components/post-panel-row/index.js +49 -35
- package/build/components/post-panel-row/index.js.map +7 -1
- package/build/components/post-panel-section/index.js +38 -26
- package/build/components/post-panel-section/index.js.map +7 -1
- package/build/components/post-pending-status/check.js +34 -40
- package/build/components/post-pending-status/check.js.map +7 -1
- package/build/components/post-pending-status/index.js +58 -41
- package/build/components/post-pending-status/index.js.map +7 -1
- package/build/components/post-pingbacks/index.js +52 -44
- package/build/components/post-pingbacks/index.js.map +7 -1
- package/build/components/post-preview-button/index.js +90 -120
- package/build/components/post-preview-button/index.js.map +7 -1
- package/build/components/post-publish-button/index.js +125 -137
- package/build/components/post-publish-button/index.js.map +7 -1
- package/build/components/post-publish-button/label.js +39 -40
- package/build/components/post-publish-button/label.js.map +7 -1
- package/build/components/post-publish-button/post-publish-button-or-toggle.js +62 -68
- package/build/components/post-publish-button/post-publish-button-or-toggle.js.map +7 -1
- package/build/components/post-publish-panel/index.js +136 -135
- package/build/components/post-publish-panel/index.js.map +7 -1
- package/build/components/post-publish-panel/maybe-category-panel.js +71 -67
- package/build/components/post-publish-panel/maybe-category-panel.js.map +7 -1
- package/build/components/post-publish-panel/maybe-post-format-panel.js +72 -63
- package/build/components/post-publish-panel/maybe-post-format-panel.js.map +7 -1
- package/build/components/post-publish-panel/maybe-tags-panel.js +86 -80
- package/build/components/post-publish-panel/maybe-tags-panel.js.map +7 -1
- package/build/components/post-publish-panel/maybe-upload-media.js +172 -214
- package/build/components/post-publish-panel/maybe-upload-media.js.map +7 -1
- package/build/components/post-publish-panel/media-util.js +63 -72
- package/build/components/post-publish-panel/media-util.js.map +7 -1
- package/build/components/post-publish-panel/postpublish.js +135 -130
- package/build/components/post-publish-panel/postpublish.js.map +7 -1
- package/build/components/post-publish-panel/prepublish.js +137 -103
- package/build/components/post-publish-panel/prepublish.js.map +7 -1
- package/build/components/post-saved-state/index.js +115 -131
- package/build/components/post-saved-state/index.js.map +7 -1
- package/build/components/post-schedule/check.js +27 -29
- package/build/components/post-schedule/check.js.map +7 -1
- package/build/components/post-schedule/index.js +96 -93
- package/build/components/post-schedule/index.js.map +7 -1
- package/build/components/post-schedule/label.js +79 -86
- package/build/components/post-schedule/label.js.map +7 -1
- package/build/components/post-schedule/panel.js +88 -73
- package/build/components/post-schedule/panel.js.map +7 -1
- package/build/components/post-status/index.js +238 -202
- package/build/components/post-status/index.js.map +7 -1
- package/build/components/post-sticky/check.js +30 -35
- package/build/components/post-sticky/check.js.map +7 -1
- package/build/components/post-sticky/index.js +50 -40
- package/build/components/post-sticky/index.js.map +7 -1
- package/build/components/post-sticky/panel.js +43 -21
- package/build/components/post-sticky/panel.js.map +7 -1
- package/build/components/post-switch-to-draft-button/index.js +80 -75
- package/build/components/post-switch-to-draft-button/index.js.map +7 -1
- package/build/components/post-sync-status/index.js +45 -44
- package/build/components/post-sync-status/index.js.map +7 -1
- package/build/components/post-taxonomies/check.js +36 -33
- package/build/components/post-taxonomies/check.js.map +7 -1
- package/build/components/post-taxonomies/flat-term-selector.js +189 -189
- package/build/components/post-taxonomies/flat-term-selector.js.map +7 -1
- package/build/components/post-taxonomies/hierarchical-term-selector.js +244 -280
- package/build/components/post-taxonomies/hierarchical-term-selector.js.map +7 -1
- package/build/components/post-taxonomies/index.js +68 -58
- package/build/components/post-taxonomies/index.js.map +7 -1
- package/build/components/post-taxonomies/most-used-terms.js +73 -56
- package/build/components/post-taxonomies/most-used-terms.js.map +7 -1
- package/build/components/post-taxonomies/panel.js +66 -69
- package/build/components/post-taxonomies/panel.js.map +7 -1
- package/build/components/post-template/block-theme.js +165 -123
- package/build/components/post-template/block-theme.js.map +7 -1
- package/build/components/post-template/classic-theme.js +193 -187
- package/build/components/post-template/classic-theme.js.map +7 -1
- package/build/components/post-template/create-new-template-modal.js +139 -110
- package/build/components/post-template/create-new-template-modal.js.map +7 -1
- package/build/components/post-template/create-new-template.js +65 -46
- package/build/components/post-template/create-new-template.js.map +7 -1
- package/build/components/post-template/hooks.js +116 -84
- package/build/components/post-template/hooks.js.map +7 -1
- package/build/components/post-template/panel.js +56 -52
- package/build/components/post-template/panel.js.map +7 -1
- package/build/components/post-template/reset-default-template.js +49 -43
- package/build/components/post-template/reset-default-template.js.map +7 -1
- package/build/components/post-template/swap-template-button.js +109 -91
- package/build/components/post-template/swap-template-button.js.map +7 -1
- package/build/components/post-text-editor/index.js +80 -81
- package/build/components/post-text-editor/index.js.map +7 -1
- package/build/components/post-title/constants.js +30 -7
- package/build/components/post-title/constants.js.map +7 -1
- package/build/components/post-title/index.js +99 -126
- package/build/components/post-title/index.js.map +7 -1
- package/build/components/post-title/post-title-raw.js +74 -78
- package/build/components/post-title/post-title-raw.js.map +7 -1
- package/build/components/post-title/use-post-title-focus.js +35 -52
- package/build/components/post-title/use-post-title-focus.js.map +7 -1
- package/build/components/post-title/use-post-title.js +30 -37
- package/build/components/post-title/use-post-title.js.map +7 -1
- package/build/components/post-transform-panel/hooks.js +70 -67
- package/build/components/post-transform-panel/hooks.js.map +7 -1
- package/build/components/post-transform-panel/index.js +69 -75
- package/build/components/post-transform-panel/index.js.map +7 -1
- package/build/components/post-trash/check.js +33 -42
- package/build/components/post-trash/check.js.map +7 -1
- package/build/components/post-trash/index.js +78 -67
- package/build/components/post-trash/index.js.map +7 -1
- package/build/components/post-type-support-check/index.js +34 -47
- package/build/components/post-type-support-check/index.js.map +7 -1
- package/build/components/post-url/check.js +31 -32
- package/build/components/post-url/check.js.map +7 -1
- package/build/components/post-url/index.js +155 -156
- package/build/components/post-url/index.js.map +7 -1
- package/build/components/post-url/label.js +35 -30
- package/build/components/post-url/label.js.map +7 -1
- package/build/components/post-url/panel.js +111 -112
- package/build/components/post-url/panel.js.map +7 -1
- package/build/components/post-view-link/index.js +48 -47
- package/build/components/post-view-link/index.js.map +7 -1
- package/build/components/post-visibility/check.js +28 -33
- package/build/components/post-visibility/check.js.map +7 -1
- package/build/components/post-visibility/index.js +83 -84
- package/build/components/post-visibility/index.js.map +7 -1
- package/build/components/post-visibility/label.js +35 -30
- package/build/components/post-visibility/label.js.map +7 -1
- package/build/components/post-visibility/utils.js +44 -23
- package/build/components/post-visibility/utils.js.map +7 -1
- package/build/components/posts-per-page/index.js +110 -98
- package/build/components/posts-per-page/index.js.map +7 -1
- package/build/components/preferences-modal/enable-panel.js +47 -42
- package/build/components/preferences-modal/enable-panel.js.map +7 -1
- package/build/components/preferences-modal/enable-plugin-document-setting-panel.js +40 -31
- package/build/components/preferences-modal/enable-plugin-document-setting-panel.js.map +7 -1
- package/build/components/preferences-modal/enable-publish-sidebar.js +39 -32
- package/build/components/preferences-modal/enable-publish-sidebar.js.map +7 -1
- package/build/components/preferences-modal/index.js +391 -231
- package/build/components/preferences-modal/index.js.map +7 -1
- package/build/components/preview-dropdown/index.js +165 -151
- package/build/components/preview-dropdown/index.js.map +7 -1
- package/build/components/provider/disable-non-page-content-blocks.js +67 -82
- package/build/components/provider/disable-non-page-content-blocks.js.map +7 -1
- package/build/components/provider/index.js +283 -325
- package/build/components/provider/index.js.map +7 -1
- package/build/components/provider/navigation-block-editing-mode.js +32 -29
- package/build/components/provider/navigation-block-editing-mode.js.map +7 -1
- package/build/components/provider/use-auto-switch-editor-sidebars.js +48 -39
- package/build/components/provider/use-auto-switch-editor-sidebars.js.map +7 -1
- package/build/components/provider/use-block-editor-settings.js +249 -178
- package/build/components/provider/use-block-editor-settings.js.map +7 -1
- package/build/components/provider/use-hide-blocks-from-inserter.js +87 -46
- package/build/components/provider/use-hide-blocks-from-inserter.js.map +7 -1
- package/build/components/provider/use-post-content-blocks.js +48 -29
- package/build/components/provider/use-post-content-blocks.js.map +7 -1
- package/build/components/provider/with-registry-provider.js +52 -46
- package/build/components/provider/with-registry-provider.js.map +7 -1
- package/build/components/resizable-editor/index.js +99 -86
- package/build/components/resizable-editor/index.js.map +7 -1
- package/build/components/resizable-editor/resize-handle.js +42 -36
- package/build/components/resizable-editor/resize-handle.js.map +7 -1
- package/build/components/save-publish-panels/index.js +88 -69
- package/build/components/save-publish-panels/index.js.map +7 -1
- package/build/components/sidebar/constants.js +29 -8
- package/build/components/sidebar/constants.js.map +7 -1
- package/build/components/sidebar/header.js +56 -50
- package/build/components/sidebar/header.js.map +7 -1
- package/build/components/sidebar/index.js +156 -136
- package/build/components/sidebar/index.js.map +7 -1
- package/build/components/sidebar/post-summary.js +114 -91
- package/build/components/sidebar/post-summary.js.map +7 -1
- package/build/components/site-discussion/index.js +132 -113
- package/build/components/site-discussion/index.js.map +7 -1
- package/build/components/start-page-options/index.js +136 -146
- package/build/components/start-page-options/index.js.map +7 -1
- package/build/components/start-template-options/index.js +168 -157
- package/build/components/start-template-options/index.js.map +7 -1
- package/build/components/table-of-contents/index.js +78 -69
- package/build/components/table-of-contents/index.js.map +7 -1
- package/build/components/table-of-contents/panel.js +101 -94
- package/build/components/table-of-contents/panel.js.map +7 -1
- package/build/components/template-content-panel/index.js +74 -58
- package/build/components/template-content-panel/index.js.map +7 -1
- package/build/components/template-part-content-panel/index.js +51 -54
- package/build/components/template-part-content-panel/index.js.map +7 -1
- package/build/components/template-part-menu-items/convert-to-regular.js +44 -32
- package/build/components/template-part-menu-items/convert-to-regular.js.map +7 -1
- package/build/components/template-part-menu-items/convert-to-template-part.js +76 -68
- package/build/components/template-part-menu-items/convert-to-template-part.js.map +7 -1
- package/build/components/template-part-menu-items/index.js +62 -52
- package/build/components/template-part-menu-items/index.js.map +7 -1
- package/build/components/template-validation-notice/index.js +71 -47
- package/build/components/template-validation-notice/index.js.map +7 -1
- package/build/components/text-editor/index.js +68 -62
- package/build/components/text-editor/index.js.map +7 -1
- package/build/components/theme-support-check/index.js +32 -43
- package/build/components/theme-support-check/index.js.map +7 -1
- package/build/components/time-to-read/index.js +54 -51
- package/build/components/time-to-read/index.js.map +7 -1
- package/build/components/unsaved-changes-warning/index.js +34 -38
- package/build/components/unsaved-changes-warning/index.js.map +7 -1
- package/build/components/visual-editor/edit-template-blocks-notification.js +64 -68
- package/build/components/visual-editor/edit-template-blocks-notification.js.map +7 -1
- package/build/components/visual-editor/index.js +286 -247
- package/build/components/visual-editor/index.js.map +7 -1
- package/build/components/visual-editor/use-select-nearest-editable-block.js +75 -68
- package/build/components/visual-editor/use-select-nearest-editable-block.js.map +7 -1
- package/build/components/visual-editor/use-zoom-out-mode-exit.js +52 -46
- package/build/components/visual-editor/use-zoom-out-mode-exit.js.map +7 -1
- package/build/components/word-count/index.js +34 -35
- package/build/components/word-count/index.js.map +7 -1
- package/build/components/zoom-out-toggle/index.js +88 -72
- package/build/components/zoom-out-toggle/index.js.map +7 -1
- package/build/dataviews/api.js +47 -80
- package/build/dataviews/api.js.map +7 -1
- package/build/dataviews/fields/content-preview/content-preview-view.js +81 -89
- package/build/dataviews/fields/content-preview/content-preview-view.js.map +7 -1
- package/build/dataviews/fields/content-preview/index.js +39 -21
- package/build/dataviews/fields/content-preview/index.js.map +7 -1
- package/build/dataviews/store/private-actions.js +122 -56
- package/build/dataviews/store/private-actions.js.map +7 -1
- package/build/dataviews/store/private-selectors.js +32 -15
- package/build/dataviews/store/private-selectors.js.map +7 -1
- package/build/dataviews/store/reducer.js +50 -31
- package/build/dataviews/store/reducer.js.map +7 -1
- package/build/hooks/custom-sources-backwards-compatibility.js +70 -83
- package/build/hooks/custom-sources-backwards-compatibility.js.map +7 -1
- package/build/hooks/default-autocompleters.js +9 -17
- package/build/hooks/default-autocompleters.js.map +7 -1
- package/build/hooks/index.js +7 -7
- package/build/hooks/index.js.map +7 -1
- package/build/hooks/media-upload.js +8 -9
- package/build/hooks/media-upload.js.map +7 -1
- package/build/hooks/navigation-link-view-button.js +44 -66
- package/build/hooks/navigation-link-view-button.js.map +7 -1
- package/build/hooks/pattern-overrides.js +51 -70
- package/build/hooks/pattern-overrides.js.map +7 -1
- package/build/hooks/template-part-navigation-edit-button.js +91 -0
- package/build/hooks/template-part-navigation-edit-button.js.map +7 -0
- package/build/index.js +41 -77
- package/build/index.js.map +7 -1
- package/build/lock-unlock.js +31 -14
- package/build/lock-unlock.js.map +7 -1
- package/build/private-apis.js +76 -59
- package/build/private-apis.js.map +7 -1
- package/build/store/actions.js +516 -931
- package/build/store/actions.js.map +7 -1
- package/build/store/constants.js +70 -31
- package/build/store/constants.js.map +7 -1
- package/build/store/defaults.js +31 -33
- package/build/store/defaults.js.map +7 -1
- package/build/store/index.js +52 -41
- package/build/store/index.js.map +7 -1
- package/build/store/local-autosave.js +39 -27
- package/build/store/local-autosave.js.map +7 -1
- package/build/store/private-actions.js +290 -299
- package/build/store/private-actions.js.map +7 -1
- package/build/store/private-selectors.js +189 -188
- package/build/store/private-selectors.js.map +7 -1
- package/build/store/reducer.js +128 -280
- package/build/store/reducer.js.map +7 -1
- package/build/store/selectors.js +819 -1470
- package/build/store/selectors.js.map +7 -1
- package/build/store/utils/is-template-revertable.js +24 -19
- package/build/store/utils/is-template-revertable.js.map +7 -1
- package/build/store/utils/notice-builder.js +73 -94
- package/build/store/utils/notice-builder.js.map +7 -1
- package/build/utils/get-item-title.js +34 -25
- package/build/utils/get-item-title.js.map +7 -1
- package/build/utils/get-template-info.js +37 -46
- package/build/utils/get-template-info.js.map +7 -1
- package/build/utils/get-template-part-icon.js +34 -24
- package/build/utils/get-template-part-icon.js.map +7 -1
- package/build/utils/index.js +41 -24
- package/build/utils/index.js.map +7 -1
- package/build/utils/media-sideload/index.js +26 -19
- package/build/utils/media-sideload/index.js.map +7 -1
- package/build/utils/media-upload/index.js +46 -63
- package/build/utils/media-upload/index.js.map +7 -1
- package/build/utils/pageTypeBadge.js +33 -31
- package/build/utils/pageTypeBadge.js.map +7 -1
- package/build/utils/search-templates.js +45 -47
- package/build/utils/search-templates.js.map +7 -1
- package/build/utils/terms.js +57 -63
- package/build/utils/terms.js.map +7 -1
- package/build/utils/url.js +43 -33
- package/build/utils/url.js.map +7 -1
- package/build-module/bindings/api.js +11 -26
- package/build-module/bindings/api.js.map +7 -1
- package/build-module/bindings/entity.js +58 -0
- package/build-module/bindings/entity.js.map +7 -0
- package/build-module/bindings/pattern-overrides.js +39 -59
- package/build-module/bindings/pattern-overrides.js.map +7 -1
- package/build-module/bindings/post-data.js +53 -87
- package/build-module/bindings/post-data.js.map +7 -1
- package/build-module/bindings/post-meta.js +55 -101
- package/build-module/bindings/post-meta.js.map +7 -1
- package/build-module/components/autocompleters/index.js +5 -2
- package/build-module/components/autocompleters/index.js.map +7 -1
- package/build-module/components/autocompleters/user.js +45 -49
- package/build-module/components/autocompleters/user.js.map +7 -1
- package/build-module/components/autosave-monitor/index.js +37 -67
- package/build-module/components/autosave-monitor/index.js.map +7 -1
- package/build-module/components/block-removal-warnings/index.js +64 -54
- package/build-module/components/block-removal-warnings/index.js.map +7 -1
- package/build-module/components/block-settings-menu/content-only-settings-menu.js +136 -113
- package/build-module/components/block-settings-menu/content-only-settings-menu.js.map +7 -1
- package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js +23 -93
- package/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js.map +7 -1
- package/build-module/components/block-visibility/index.js +103 -0
- package/build-module/components/block-visibility/index.js.map +7 -0
- package/build-module/components/blog-title/index.js +102 -101
- package/build-module/components/blog-title/index.js.map +7 -1
- package/build-module/components/character-count/index.js +13 -20
- package/build-module/components/character-count/index.js.map +7 -1
- package/build-module/components/collab-sidebar/add-comment.js +64 -66
- package/build-module/components/collab-sidebar/add-comment.js.map +7 -1
- package/build-module/components/collab-sidebar/comment-author-info.js +55 -77
- package/build-module/components/collab-sidebar/comment-author-info.js.map +7 -1
- package/build-module/components/collab-sidebar/comment-form.js +68 -75
- package/build-module/components/collab-sidebar/comment-form.js.map +7 -1
- package/build-module/components/collab-sidebar/comment-indicator-toolbar.js +67 -76
- package/build-module/components/collab-sidebar/comment-indicator-toolbar.js.map +7 -1
- package/build-module/components/collab-sidebar/comment-menu-item.js +26 -0
- package/build-module/components/collab-sidebar/comment-menu-item.js.map +7 -0
- package/build-module/components/collab-sidebar/comments.js +521 -309
- package/build-module/components/collab-sidebar/comments.js.map +7 -1
- package/build-module/components/collab-sidebar/constants.js +7 -3
- package/build-module/components/collab-sidebar/constants.js.map +7 -1
- package/build-module/components/collab-sidebar/hooks.js +301 -54
- package/build-module/components/collab-sidebar/hooks.js.map +7 -1
- package/build-module/components/collab-sidebar/index.js +158 -245
- package/build-module/components/collab-sidebar/index.js.map +7 -1
- package/build-module/components/collab-sidebar/utils.js +71 -76
- package/build-module/components/collab-sidebar/utils.js.map +7 -1
- package/build-module/components/collapsible-block-toolbar/index.js +44 -52
- package/build-module/components/collapsible-block-toolbar/index.js.map +7 -1
- package/build-module/components/commands/index.js +188 -241
- package/build-module/components/commands/index.js.map +7 -1
- package/build-module/components/deprecated.js +297 -237
- package/build-module/components/deprecated.js.map +7 -1
- package/build-module/components/document-bar/index.js +114 -141
- package/build-module/components/document-bar/index.js.map +7 -1
- package/build-module/components/document-outline/check.js +10 -23
- package/build-module/components/document-outline/check.js.map +7 -1
- package/build-module/components/document-outline/index.js +141 -203
- package/build-module/components/document-outline/index.js.map +7 -1
- package/build-module/components/document-outline/item.js +40 -29
- package/build-module/components/document-outline/item.js.map +7 -1
- package/build-module/components/document-tools/index.js +115 -125
- package/build-module/components/document-tools/index.js.map +7 -1
- package/build-module/components/editor/index.js +71 -57
- package/build-module/components/editor/index.js.map +7 -1
- package/build-module/components/editor-history/redo.js +33 -49
- package/build-module/components/editor-history/redo.js.map +7 -1
- package/build-module/components/editor-history/undo.js +32 -48
- package/build-module/components/editor-history/undo.js.map +7 -1
- package/build-module/components/editor-interface/content-slot-fill.js +9 -7
- package/build-module/components/editor-interface/content-slot-fill.js.map +7 -1
- package/build-module/components/editor-interface/index.js +111 -118
- package/build-module/components/editor-interface/index.js.map +7 -1
- package/build-module/components/editor-notices/index.js +43 -53
- package/build-module/components/editor-notices/index.js.map +7 -1
- package/build-module/components/editor-snackbars/index.js +23 -29
- package/build-module/components/editor-snackbars/index.js.map +7 -1
- package/build-module/components/entities-saved-states/entity-record-item.js +52 -65
- package/build-module/components/entities-saved-states/entity-record-item.js.map +7 -1
- package/build-module/components/entities-saved-states/entity-type-list.js +81 -73
- package/build-module/components/entities-saved-states/entity-type-list.js.map +7 -1
- package/build-module/components/entities-saved-states/hooks/use-is-dirty.js +39 -55
- package/build-module/components/entities-saved-states/hooks/use-is-dirty.js.map +7 -1
- package/build-module/components/entities-saved-states/index.js +150 -152
- package/build-module/components/entities-saved-states/index.js.map +7 -1
- package/build-module/components/error-boundary/index.js +42 -77
- package/build-module/components/error-boundary/index.js.map +7 -1
- package/build-module/components/global-keyboard-shortcuts/index.js +39 -66
- package/build-module/components/global-keyboard-shortcuts/index.js.map +7 -1
- package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js +86 -88
- package/build-module/components/global-keyboard-shortcuts/register-shortcuts.js.map +7 -1
- package/build-module/components/global-styles-provider/index.js +135 -134
- package/build-module/components/global-styles-provider/index.js.map +7 -1
- package/build-module/components/header/back-button.js +20 -20
- package/build-module/components/header/back-button.js.map +7 -1
- package/build-module/components/header/index.js +148 -151
- package/build-module/components/header/index.js.map +7 -1
- package/build-module/components/index.js +192 -118
- package/build-module/components/index.js.map +7 -1
- package/build-module/components/inserter-sidebar/index.js +45 -64
- package/build-module/components/inserter-sidebar/index.js.map +7 -1
- package/build-module/components/keyboard-shortcut-help-modal/config.js +62 -75
- package/build-module/components/keyboard-shortcut-help-modal/config.js.map +7 -1
- package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +33 -37
- package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +7 -1
- package/build-module/components/keyboard-shortcut-help-modal/index.js +140 -105
- package/build-module/components/keyboard-shortcut-help-modal/index.js.map +7 -1
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +58 -50
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js.map +7 -1
- package/build-module/components/list-view-sidebar/index.js +86 -109
- package/build-module/components/list-view-sidebar/index.js.map +7 -1
- package/build-module/components/list-view-sidebar/list-view-outline.js +29 -36
- package/build-module/components/list-view-sidebar/list-view-outline.js.map +7 -1
- package/build-module/components/local-autosave-monitor/index.js +81 -130
- package/build-module/components/local-autosave-monitor/index.js.map +7 -1
- package/build-module/components/media-categories/index.js +139 -137
- package/build-module/components/media-categories/index.js.map +7 -1
- package/build-module/components/mode-switcher/index.js +50 -60
- package/build-module/components/mode-switcher/index.js.map +7 -1
- package/build-module/components/more-menu/copy-content-menu-item.js +27 -37
- package/build-module/components/more-menu/copy-content-menu-item.js.map +7 -1
- package/build-module/components/more-menu/index.js +154 -113
- package/build-module/components/more-menu/index.js.map +7 -1
- package/build-module/components/more-menu/tools-more-menu-group.js +9 -16
- package/build-module/components/more-menu/tools-more-menu-group.js.map +7 -1
- package/build-module/components/more-menu/view-more-menu-group.js +12 -17
- package/build-module/components/more-menu/view-more-menu-group.js.map +7 -1
- package/build-module/components/page-attributes/check.js +15 -35
- package/build-module/components/page-attributes/check.js.map +7 -1
- package/build-module/components/page-attributes/order.js +42 -58
- package/build-module/components/page-attributes/order.js.map +7 -1
- package/build-module/components/page-attributes/panel.js +18 -37
- package/build-module/components/page-attributes/panel.js.map +7 -1
- package/build-module/components/page-attributes/parent.js +198 -197
- package/build-module/components/page-attributes/parent.js.map +7 -1
- package/build-module/components/pattern-duplicate-modal/index.js +36 -42
- package/build-module/components/pattern-duplicate-modal/index.js.map +7 -1
- package/build-module/components/pattern-overrides-panel/index.js +16 -19
- package/build-module/components/pattern-overrides-panel/index.js.map +7 -1
- package/build-module/components/pattern-rename-modal/index.js +29 -41
- package/build-module/components/pattern-rename-modal/index.js.map +7 -1
- package/build-module/components/plugin-document-setting-panel/index.js +46 -108
- package/build-module/components/plugin-document-setting-panel/index.js.map +7 -1
- package/build-module/components/plugin-more-menu-item/index.js +18 -74
- package/build-module/components/plugin-more-menu-item/index.js.map +7 -1
- package/build-module/components/plugin-post-publish-panel/index.js +19 -54
- package/build-module/components/plugin-post-publish-panel/index.js.map +7 -1
- package/build-module/components/plugin-post-status-info/index.js +9 -68
- package/build-module/components/plugin-post-status-info/index.js.map +7 -1
- package/build-module/components/plugin-pre-publish-panel/index.js +19 -57
- package/build-module/components/plugin-pre-publish-panel/index.js.map +7 -1
- package/build-module/components/plugin-preview-menu-item/index.js +18 -53
- package/build-module/components/plugin-preview-menu-item/index.js.map +7 -1
- package/build-module/components/plugin-sidebar/index.js +16 -83
- package/build-module/components/plugin-sidebar/index.js.map +7 -1
- package/build-module/components/plugin-sidebar-more-menu-item/index.js +15 -64
- package/build-module/components/plugin-sidebar-more-menu-item/index.js.map +7 -1
- package/build-module/components/post-actions/actions.js +85 -94
- package/build-module/components/post-actions/actions.js.map +7 -1
- package/build-module/components/post-actions/index.js +104 -121
- package/build-module/components/post-actions/index.js.map +7 -1
- package/build-module/components/post-actions/set-as-homepage.js +104 -115
- package/build-module/components/post-actions/set-as-homepage.js.map +7 -1
- package/build-module/components/post-actions/set-as-posts-page.js +99 -112
- package/build-module/components/post-actions/set-as-posts-page.js.map +7 -1
- package/build-module/components/post-author/check.js +12 -33
- package/build-module/components/post-author/check.js.map +7 -1
- package/build-module/components/post-author/combobox.js +32 -47
- package/build-module/components/post-author/combobox.js.map +7 -1
- package/build-module/components/post-author/constants.js +11 -6
- package/build-module/components/post-author/constants.js.map +7 -1
- package/build-module/components/post-author/hook.js +48 -65
- package/build-module/components/post-author/hook.js.map +7 -1
- package/build-module/components/post-author/index.js +14 -24
- package/build-module/components/post-author/index.js.map +7 -1
- package/build-module/components/post-author/panel.js +73 -87
- package/build-module/components/post-author/panel.js.map +7 -1
- package/build-module/components/post-author/select.js +28 -36
- package/build-module/components/post-author/select.js.map +7 -1
- package/build-module/components/post-card-panel/index.js +107 -105
- package/build-module/components/post-card-panel/index.js.map +7 -1
- package/build-module/components/post-comments/index.js +45 -50
- package/build-module/components/post-comments/index.js.map +7 -1
- package/build-module/components/post-content-information/index.js +49 -61
- package/build-module/components/post-content-information/index.js.map +7 -1
- package/build-module/components/post-discussion/panel.js +90 -122
- package/build-module/components/post-discussion/panel.js.map +7 -1
- package/build-module/components/post-excerpt/check.js +9 -23
- package/build-module/components/post-excerpt/check.js.map +7 -1
- package/build-module/components/post-excerpt/index.js +57 -68
- package/build-module/components/post-excerpt/index.js.map +7 -1
- package/build-module/components/post-excerpt/panel.js +124 -134
- package/build-module/components/post-excerpt/panel.js.map +7 -1
- package/build-module/components/post-excerpt/plugin.js +10 -65
- package/build-module/components/post-excerpt/plugin.js.map +7 -1
- package/build-module/components/post-featured-image/check.js +10 -28
- package/build-module/components/post-featured-image/check.js.map +7 -1
- package/build-module/components/post-featured-image/index.js +203 -200
- package/build-module/components/post-featured-image/index.js.map +7 -1
- package/build-module/components/post-featured-image/panel.js +26 -52
- package/build-module/components/post-featured-image/panel.js.map +7 -1
- package/build-module/components/post-fields/index.js +36 -49
- package/build-module/components/post-fields/index.js.map +7 -1
- package/build-module/components/post-format/check.js +14 -29
- package/build-module/components/post-format/check.js.map +7 -1
- package/build-module/components/post-format/index.js +68 -107
- package/build-module/components/post-format/index.js.map +7 -1
- package/build-module/components/post-format/panel.js +60 -73
- package/build-module/components/post-format/panel.js.map +7 -1
- package/build-module/components/post-last-edited-panel/index.js +20 -24
- package/build-module/components/post-last-edited-panel/index.js.map +7 -1
- package/build-module/components/post-last-revision/check.js +13 -37
- package/build-module/components/post-last-revision/check.js.map +7 -1
- package/build-module/components/post-last-revision/index.js +43 -59
- package/build-module/components/post-last-revision/index.js.map +7 -1
- package/build-module/components/post-last-revision/panel.js +10 -25
- package/build-module/components/post-last-revision/panel.js.map +7 -1
- package/build-module/components/post-locked-modal/index.js +133 -137
- package/build-module/components/post-locked-modal/index.js.map +7 -1
- package/build-module/components/post-panel-row/index.js +21 -29
- package/build-module/components/post-panel-row/index.js.map +7 -1
- package/build-module/components/post-panel-section/index.js +10 -20
- package/build-module/components/post-panel-section/index.js.map +7 -1
- package/build-module/components/post-pending-status/check.js +12 -35
- package/build-module/components/post-pending-status/check.js.map +7 -1
- package/build-module/components/post-pending-status/index.js +27 -36
- package/build-module/components/post-pending-status/index.js.map +7 -1
- package/build-module/components/post-pingbacks/index.js +34 -39
- package/build-module/components/post-pingbacks/index.js.map +7 -1
- package/build-module/components/post-preview-button/index.js +71 -114
- package/build-module/components/post-preview-button/index.js.map +7 -1
- package/build-module/components/post-publish-button/index.js +93 -130
- package/build-module/components/post-publish-button/index.js.map +7 -1
- package/build-module/components/post-publish-button/label.js +20 -35
- package/build-module/components/post-publish-button/label.js.map +7 -1
- package/build-module/components/post-publish-button/post-publish-button-or-toggle.js +28 -56
- package/build-module/components/post-publish-button/post-publish-button-or-toggle.js.map +7 -1
- package/build-module/components/post-publish-panel/index.js +108 -126
- package/build-module/components/post-publish-panel/index.js.map +7 -1
- package/build-module/components/post-publish-panel/maybe-category-panel.js +40 -58
- package/build-module/components/post-publish-panel/maybe-category-panel.js.map +7 -1
- package/build-module/components/post-publish-panel/maybe-post-format-panel.js +55 -59
- package/build-module/components/post-publish-panel/maybe-post-format-panel.js.map +7 -1
- package/build-module/components/post-publish-panel/maybe-tags-panel.js +57 -73
- package/build-module/components/post-publish-panel/maybe-tags-panel.js.map +7 -1
- package/build-module/components/post-publish-panel/maybe-upload-media.js +158 -207
- package/build-module/components/post-publish-panel/maybe-upload-media.js.map +7 -1
- package/build-module/components/post-publish-panel/media-util.js +42 -69
- package/build-module/components/post-publish-panel/media-util.js.map +7 -1
- package/build-module/components/post-publish-panel/postpublish.js +109 -120
- package/build-module/components/post-publish-panel/postpublish.js.map +7 -1
- package/build-module/components/post-publish-panel/prepublish.js +108 -96
- package/build-module/components/post-publish-panel/prepublish.js.map +7 -1
- package/build-module/components/post-saved-state/index.js +87 -124
- package/build-module/components/post-saved-state/index.js.map +7 -1
- package/build-module/components/post-schedule/check.js +9 -25
- package/build-module/components/post-schedule/check.js.map +7 -1
- package/build-module/components/post-schedule/index.js +75 -88
- package/build-module/components/post-schedule/index.js.map +7 -1
- package/build-module/components/post-schedule/label.js +49 -73
- package/build-module/components/post-schedule/label.js.map +7 -1
- package/build-module/components/post-schedule/panel.js +63 -65
- package/build-module/components/post-schedule/panel.js.map +7 -1
- package/build-module/components/post-status/index.js +223 -194
- package/build-module/components/post-status/index.js.map +7 -1
- package/build-module/components/post-sticky/check.js +10 -29
- package/build-module/components/post-sticky/check.js.map +7 -1
- package/build-module/components/post-sticky/index.js +22 -36
- package/build-module/components/post-sticky/index.js.map +7 -1
- package/build-module/components/post-sticky/panel.js +12 -15
- package/build-module/components/post-sticky/panel.js.map +7 -1
- package/build-module/components/post-switch-to-draft-button/index.js +54 -70
- package/build-module/components/post-switch-to-draft-button/index.js.map +7 -1
- package/build-module/components/post-sync-status/index.js +17 -40
- package/build-module/components/post-sync-status/index.js.map +7 -1
- package/build-module/components/post-taxonomies/check.js +17 -28
- package/build-module/components/post-taxonomies/check.js.map +7 -1
- package/build-module/components/post-taxonomies/flat-term-selector.js +154 -177
- package/build-module/components/post-taxonomies/flat-term-selector.js.map +7 -1
- package/build-module/components/post-taxonomies/hierarchical-term-selector.js +232 -270
- package/build-module/components/post-taxonomies/hierarchical-term-selector.js.map +7 -1
- package/build-module/components/post-taxonomies/index.js +34 -49
- package/build-module/components/post-taxonomies/index.js.map +7 -1
- package/build-module/components/post-taxonomies/most-used-terms.js +54 -50
- package/build-module/components/post-taxonomies/most-used-terms.js.map +7 -1
- package/build-module/components/post-taxonomies/panel.js +39 -66
- package/build-module/components/post-taxonomies/panel.js.map +7 -1
- package/build-module/components/post-template/block-theme.js +134 -114
- package/build-module/components/post-template/block-theme.js.map +7 -1
- package/build-module/components/post-template/classic-theme.js +161 -177
- package/build-module/components/post-template/classic-theme.js.map +7 -1
- package/build-module/components/post-template/create-new-template-modal.js +126 -104
- package/build-module/components/post-template/create-new-template-modal.js.map +7 -1
- package/build-module/components/post-template/create-new-template.js +36 -39
- package/build-module/components/post-template/create-new-template.js.map +7 -1
- package/build-module/components/post-template/hooks.js +95 -80
- package/build-module/components/post-template/hooks.js.map +7 -1
- package/build-module/components/post-template/panel.js +25 -45
- package/build-module/components/post-template/panel.js.map +7 -1
- package/build-module/components/post-template/reset-default-template.js +33 -36
- package/build-module/components/post-template/reset-default-template.js.map +7 -1
- package/build-module/components/post-template/swap-template-button.js +86 -81
- package/build-module/components/post-template/swap-template-button.js.map +7 -1
- package/build-module/components/post-text-editor/index.js +49 -74
- package/build-module/components/post-text-editor/index.js.map +7 -1
- package/build-module/components/post-title/constants.js +7 -3
- package/build-module/components/post-title/constants.js.map +7 -1
- package/build-module/components/post-title/index.js +67 -111
- package/build-module/components/post-title/index.js.map +7 -1
- package/build-module/components/post-title/post-title-raw.js +43 -71
- package/build-module/components/post-title/post-title-raw.js.map +7 -1
- package/build-module/components/post-title/use-post-title-focus.js +15 -46
- package/build-module/components/post-title/use-post-title-focus.js.map +7 -1
- package/build-module/components/post-title/use-post-title.js +13 -33
- package/build-module/components/post-title/use-post-title.js.map +7 -1
- package/build-module/components/post-transform-panel/hooks.js +44 -58
- package/build-module/components/post-transform-panel/hooks.js.map +7 -1
- package/build-module/components/post-transform-panel/index.js +53 -69
- package/build-module/components/post-transform-panel/index.js.map +7 -1
- package/build-module/components/post-trash/check.js +14 -37
- package/build-module/components/post-trash/check.js.map +7 -1
- package/build-module/components/post-trash/index.js +49 -59
- package/build-module/components/post-trash/index.js.map +7 -1
- package/build-module/components/post-type-support-check/index.js +16 -42
- package/build-module/components/post-type-support-check/index.js.map +7 -1
- package/build-module/components/post-url/check.js +9 -24
- package/build-module/components/post-url/check.js.map +7 -1
- package/build-module/components/post-url/index.js +137 -146
- package/build-module/components/post-url/index.js.map +7 -1
- package/build-module/components/post-url/label.js +14 -26
- package/build-module/components/post-url/label.js.map +7 -1
- package/build-module/components/post-url/panel.js +80 -105
- package/build-module/components/post-url/panel.js.map +7 -1
- package/build-module/components/post-view-link/index.js +27 -39
- package/build-module/components/post-view-link/index.js.map +7 -1
- package/build-module/components/post-visibility/check.js +10 -29
- package/build-module/components/post-visibility/check.js.map +7 -1
- package/build-module/components/post-visibility/index.js +66 -78
- package/build-module/components/post-visibility/index.js.map +7 -1
- package/build-module/components/post-visibility/label.js +15 -27
- package/build-module/components/post-visibility/label.js.map +7 -1
- package/build-module/components/post-visibility/utils.js +22 -18
- package/build-module/components/post-visibility/utils.js.map +7 -1
- package/build-module/components/posts-per-page/index.js +85 -91
- package/build-module/components/posts-per-page/index.js.map +7 -1
- package/build-module/components/preferences-modal/enable-panel.js +30 -38
- package/build-module/components/preferences-modal/enable-panel.js.map +7 -1
- package/build-module/components/preferences-modal/enable-plugin-document-setting-panel.js +12 -25
- package/build-module/components/preferences-modal/enable-plugin-document-setting-panel.js.map +7 -1
- package/build-module/components/preferences-modal/enable-publish-sidebar.js +21 -27
- package/build-module/components/preferences-modal/enable-publish-sidebar.js.map +7 -1
- package/build-module/components/preferences-modal/index.js +365 -225
- package/build-module/components/preferences-modal/index.js.map +7 -1
- package/build-module/components/preview-dropdown/index.js +140 -141
- package/build-module/components/preview-dropdown/index.js.map +7 -1
- package/build-module/components/provider/disable-non-page-content-blocks.js +34 -72
- package/build-module/components/provider/disable-non-page-content-blocks.js.map +7 -1
- package/build-module/components/provider/index.js +257 -317
- package/build-module/components/provider/index.js.map +7 -1
- package/build-module/components/provider/navigation-block-editing-mode.js +14 -25
- package/build-module/components/provider/navigation-block-editing-mode.js.map +7 -1
- package/build-module/components/provider/use-auto-switch-editor-sidebars.js +28 -33
- package/build-module/components/provider/use-auto-switch-editor-sidebars.js.map +7 -1
- package/build-module/components/provider/use-block-editor-settings.js +223 -166
- package/build-module/components/provider/use-block-editor-settings.js.map +7 -1
- package/build-module/components/provider/use-hide-blocks-from-inserter.js +65 -42
- package/build-module/components/provider/use-hide-blocks-from-inserter.js.map +7 -1
- package/build-module/components/provider/use-post-content-blocks.js +31 -25
- package/build-module/components/provider/use-post-content-blocks.js.map +7 -1
- package/build-module/components/provider/with-registry-provider.js +34 -41
- package/build-module/components/provider/with-registry-provider.js.map +7 -1
- package/build-module/components/resizable-editor/index.js +70 -80
- package/build-module/components/resizable-editor/index.js.map +7 -1
- package/build-module/components/resizable-editor/resize-handle.js +27 -30
- package/build-module/components/resizable-editor/resize-handle.js.map +7 -1
- package/build-module/components/save-publish-panels/index.js +56 -62
- package/build-module/components/save-publish-panels/index.js.map +7 -1
- package/build-module/components/sidebar/constants.js +7 -4
- package/build-module/components/sidebar/constants.js.map +7 -1
- package/build-module/components/sidebar/header.js +38 -45
- package/build-module/components/sidebar/header.js.map +7 -1
- package/build-module/components/sidebar/index.js +136 -125
- package/build-module/components/sidebar/index.js.map +7 -1
- package/build-module/components/sidebar/post-summary.js +86 -87
- package/build-module/components/sidebar/post-summary.js.map +7 -1
- package/build-module/components/site-discussion/index.js +110 -107
- package/build-module/components/site-discussion/index.js.map +7 -1
- package/build-module/components/start-page-options/index.js +114 -137
- package/build-module/components/start-page-options/index.js.map +7 -1
- package/build-module/components/start-template-options/index.js +148 -150
- package/build-module/components/start-template-options/index.js.map +7 -1
- package/build-module/components/table-of-contents/index.js +50 -63
- package/build-module/components/table-of-contents/index.js.map +7 -1
- package/build-module/components/table-of-contents/panel.js +73 -88
- package/build-module/components/table-of-contents/panel.js.map +7 -1
- package/build-module/components/template-content-panel/index.js +57 -54
- package/build-module/components/template-content-panel/index.js.map +7 -1
- package/build-module/components/template-part-content-panel/index.js +35 -48
- package/build-module/components/template-part-content-panel/index.js.map +7 -1
- package/build-module/components/template-part-menu-items/convert-to-regular.js +26 -27
- package/build-module/components/template-part-menu-items/convert-to-regular.js.map +7 -1
- package/build-module/components/template-part-menu-items/convert-to-template-part.js +56 -61
- package/build-module/components/template-part-menu-items/convert-to-template-part.js.map +7 -1
- package/build-module/components/template-part-menu-items/index.js +38 -47
- package/build-module/components/template-part-menu-items/index.js.map +7 -1
- package/build-module/components/template-validation-notice/index.js +55 -41
- package/build-module/components/template-validation-notice/index.js.map +7 -1
- package/build-module/components/text-editor/index.js +38 -54
- package/build-module/components/text-editor/index.js.map +7 -1
- package/build-module/components/theme-support-check/index.js +13 -38
- package/build-module/components/theme-support-check/index.js.map +7 -1
- package/build-module/components/time-to-read/index.js +36 -48
- package/build-module/components/time-to-read/index.js.map +7 -1
- package/build-module/components/unsaved-changes-warning/index.js +16 -34
- package/build-module/components/unsaved-changes-warning/index.js.map +7 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.js +44 -63
- package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +7 -1
- package/build-module/components/visual-editor/index.js +256 -225
- package/build-module/components/visual-editor/index.js.map +7 -1
- package/build-module/components/visual-editor/use-select-nearest-editable-block.js +58 -64
- package/build-module/components/visual-editor/use-select-nearest-editable-block.js.map +7 -1
- package/build-module/components/visual-editor/use-zoom-out-mode-exit.js +31 -43
- package/build-module/components/visual-editor/use-zoom-out-mode-exit.js.map +7 -1
- package/build-module/components/word-count/index.js +16 -32
- package/build-module/components/word-count/index.js.map +7 -1
- package/build-module/components/zoom-out-toggle/index.js +72 -66
- package/build-module/components/zoom-out-toggle/index.js.map +7 -1
- package/build-module/dataviews/api.js +26 -77
- package/build-module/dataviews/api.js.map +7 -1
- package/build-module/dataviews/fields/content-preview/content-preview-view.js +66 -85
- package/build-module/dataviews/fields/content-preview/content-preview-view.js.map +7 -1
- package/build-module/dataviews/fields/content-preview/index.js +10 -15
- package/build-module/dataviews/fields/content-preview/index.js.map +7 -1
- package/build-module/dataviews/store/private-actions.js +113 -43
- package/build-module/dataviews/store/private-actions.js.map +7 -1
- package/build-module/dataviews/store/private-selectors.js +11 -12
- package/build-module/dataviews/store/private-selectors.js.map +7 -1
- package/build-module/dataviews/store/reducer.js +32 -26
- package/build-module/dataviews/store/reducer.js.map +7 -1
- package/build-module/hooks/custom-sources-backwards-compatibility.js +70 -83
- package/build-module/hooks/custom-sources-backwards-compatibility.js.map +7 -1
- package/build-module/hooks/default-autocompleters.js +9 -15
- package/build-module/hooks/default-autocompleters.js.map +7 -1
- package/build-module/hooks/index.js +7 -9
- package/build-module/hooks/index.js.map +7 -1
- package/build-module/hooks/media-upload.js +8 -7
- package/build-module/hooks/media-upload.js.map +7 -1
- package/build-module/hooks/navigation-link-view-button.js +46 -63
- package/build-module/hooks/navigation-link-view-button.js.map +7 -1
- package/build-module/hooks/pattern-overrides.js +48 -67
- package/build-module/hooks/pattern-overrides.js.map +7 -1
- package/build-module/hooks/template-part-navigation-edit-button.js +97 -0
- package/build-module/hooks/template-part-navigation-edit-button.js.map +7 -0
- package/build-module/index.js +13 -15
- package/build-module/index.js.map +7 -1
- package/build-module/lock-unlock.js +8 -7
- package/build-module/lock-unlock.js.map +7 -1
- package/build-module/private-apis.js +31 -31
- package/build-module/private-apis.js.map +7 -1
- package/build-module/store/actions.js +424 -872
- package/build-module/store/actions.js.map +7 -1
- package/build-module/store/constants.js +36 -27
- package/build-module/store/constants.js.map +7 -1
- package/build-module/store/defaults.js +8 -28
- package/build-module/store/defaults.js.map +7 -1
- package/build-module/store/index.js +15 -30
- package/build-module/store/index.js.map +7 -1
- package/build-module/store/local-autosave.js +18 -24
- package/build-module/store/local-autosave.js.map +7 -1
- package/build-module/store/private-actions.js +242 -257
- package/build-module/store/private-actions.js.map +7 -1
- package/build-module/store/private-selectors.js +157 -174
- package/build-module/store/private-selectors.js.map +7 -1
- package/build-module/store/reducer.js +89 -267
- package/build-module/store/reducer.js.map +7 -1
- package/build-module/store/selectors.js +712 -1433
- package/build-module/store/selectors.js.map +7 -1
- package/build-module/store/utils/is-template-revertable.js +6 -15
- package/build-module/store/utils/is-template-revertable.js.map +7 -1
- package/build-module/store/utils/notice-builder.js +52 -91
- package/build-module/store/utils/notice-builder.js.map +7 -1
- package/build-module/utils/get-item-title.js +10 -19
- package/build-module/utils/get-item-title.js.map +7 -1
- package/build-module/utils/get-template-info.js +14 -38
- package/build-module/utils/get-template-info.js.map +7 -1
- package/build-module/utils/get-template-part-icon.js +14 -16
- package/build-module/utils/get-template-part-icon.js.map +7 -1
- package/build-module/utils/index.js +9 -8
- package/build-module/utils/index.js.map +7 -1
- package/build-module/utils/media-sideload/index.js +8 -14
- package/build-module/utils/media-sideload/index.js.map +7 -1
- package/build-module/utils/media-upload/index.js +26 -56
- package/build-module/utils/media-upload/index.js.map +7 -1
- package/build-module/utils/pageTypeBadge.js +16 -28
- package/build-module/utils/pageTypeBadge.js.map +7 -1
- package/build-module/utils/search-templates.js +12 -41
- package/build-module/utils/search-templates.js.map +7 -1
- package/build-module/utils/terms.js +32 -55
- package/build-module/utils/terms.js.map +7 -1
- package/build-module/utils/url.js +11 -28
- package/build-module/utils/url.js.map +7 -1
- package/build-style/style-rtl.css +327 -136
- package/build-style/style.css +327 -136
- package/build-types/bindings/entity.d.ts +16 -0
- package/build-types/bindings/entity.d.ts.map +1 -0
- package/build-types/bindings/post-data.d.ts +16 -0
- package/build-types/bindings/post-meta.d.ts +13 -0
- package/build-types/components/{preferences-modal/block-visibility.d.ts → block-visibility/index.d.ts} +1 -1
- package/build-types/components/block-visibility/index.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/add-comment.d.ts +6 -14
- package/build-types/components/collab-sidebar/add-comment.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/comment-form.d.ts +9 -18
- package/build-types/components/collab-sidebar/comment-form.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/comment-menu-item.d.ts +5 -0
- package/build-types/components/collab-sidebar/comment-menu-item.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/comments.d.ts +10 -1
- package/build-types/components/collab-sidebar/comments.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/hooks.d.ts +33 -0
- package/build-types/components/collab-sidebar/hooks.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/utils.d.ts +20 -0
- package/build-types/components/collab-sidebar/utils.d.ts.map +1 -1
- package/build-types/components/document-tools/index.d.ts.map +1 -1
- package/build-types/components/header/index.d.ts.map +1 -1
- package/build-types/components/post-excerpt/panel.d.ts.map +1 -1
- package/build-types/components/post-template/block-theme.d.ts.map +1 -1
- package/build-types/components/post-template/hooks.d.ts.map +1 -1
- package/build-types/components/provider/disable-non-page-content-blocks.d.ts.map +1 -1
- package/build-types/components/provider/use-hide-blocks-from-inserter.d.ts.map +1 -1
- package/build-types/components/visual-editor/index.d.ts.map +1 -1
- package/build-types/hooks/template-part-navigation-edit-button.d.ts +2 -0
- package/build-types/hooks/template-part-navigation-edit-button.d.ts.map +1 -0
- package/build-types/store/actions.d.ts.map +1 -1
- package/package.json +59 -39
- package/src/bindings/api.js +2 -2
- package/src/bindings/entity.js +89 -0
- package/src/bindings/post-data.js +23 -0
- package/src/bindings/post-meta.js +19 -0
- package/src/components/autocompleters/style.scss +2 -0
- package/src/components/block-settings-menu/style.scss +2 -0
- package/src/components/{preferences-modal/block-visibility.js → block-visibility/index.js} +37 -5
- package/src/components/block-visibility/style.scss +25 -0
- package/src/components/blog-title/style.scss +2 -0
- package/src/components/collab-sidebar/add-comment.js +18 -17
- package/src/components/collab-sidebar/comment-author-info.js +2 -2
- package/src/components/collab-sidebar/comment-form.js +15 -17
- package/src/components/collab-sidebar/comment-indicator-toolbar.js +2 -2
- package/src/components/collab-sidebar/{comment-button.js → comment-menu-item.js} +4 -4
- package/src/components/collab-sidebar/comments.js +413 -183
- package/src/components/collab-sidebar/hooks.js +343 -22
- package/src/components/collab-sidebar/index.js +94 -190
- package/src/components/collab-sidebar/style.scss +44 -26
- package/src/components/collab-sidebar/utils.js +55 -0
- package/src/components/collapsible-block-toolbar/style.scss +5 -1
- package/src/components/commands/index.js +2 -2
- package/src/components/document-bar/style.scss +5 -0
- package/src/components/document-outline/style.scss +3 -0
- package/src/components/document-tools/index.js +1 -20
- package/src/components/document-tools/style.scss +4 -0
- package/src/components/editor-help/style.scss +3 -0
- package/src/components/editor-interface/style.scss +2 -0
- package/src/components/editor-notices/style.scss +3 -0
- package/src/components/entities-saved-states/style.scss +3 -0
- package/src/components/error-boundary/style.scss +3 -0
- package/src/components/header/index.js +3 -8
- package/src/components/header/style.scss +6 -0
- package/src/components/inserter-sidebar/style.scss +2 -0
- package/src/components/keyboard-shortcut-help-modal/style.scss +2 -0
- package/src/components/list-view-sidebar/style.scss +4 -1
- package/src/components/page-attributes/style.scss +2 -0
- package/src/components/post-actions/style.scss +2 -0
- package/src/components/post-author/style.scss +2 -0
- package/src/components/post-card-panel/style.scss +4 -0
- package/src/components/post-content-information/style.scss +2 -0
- package/src/components/post-discussion/style.scss +2 -0
- package/src/components/post-excerpt/panel.js +12 -6
- package/src/components/post-excerpt/style.scss +2 -0
- package/src/components/post-featured-image/style.scss +7 -0
- package/src/components/post-format/style.scss +2 -0
- package/src/components/post-last-edited-panel/style.scss +2 -0
- package/src/components/post-last-revision/style.scss +3 -0
- package/src/components/post-locked-modal/style.scss +2 -0
- package/src/components/post-panel-row/style.scss +2 -0
- package/src/components/post-panel-section/style.scss +2 -0
- package/src/components/post-publish-button/post-publish-button-or-toggle.js +1 -1
- package/src/components/post-publish-panel/style.scss +5 -0
- package/src/components/post-saved-state/style.scss +4 -0
- package/src/components/post-schedule/style.scss +2 -0
- package/src/components/post-status/style.scss +3 -0
- package/src/components/post-sticky/style.scss +3 -0
- package/src/components/post-sync-status/style.scss +2 -0
- package/src/components/post-taxonomies/style.scss +2 -0
- package/src/components/post-template/block-theme.js +45 -3
- package/src/components/post-template/hooks.js +48 -21
- package/src/components/post-template/style.scss +5 -0
- package/src/components/post-text-editor/style.scss +4 -0
- package/src/components/post-title/style.scss +2 -0
- package/src/components/post-url/style.scss +2 -0
- package/src/components/posts-per-page/style.scss +2 -0
- package/src/components/preferences-modal/index.js +1 -1
- package/src/components/provider/disable-non-page-content-blocks.js +7 -13
- package/src/components/provider/use-hide-blocks-from-inserter.js +37 -6
- package/src/components/resizable-editor/style.scss +4 -0
- package/src/components/save-publish-panels/style.scss +4 -0
- package/src/components/sidebar/style.scss +3 -0
- package/src/components/site-discussion/style.scss +2 -1
- package/src/components/start-page-options/style.scss +5 -0
- package/src/components/start-template-options/style.scss +5 -0
- package/src/components/table-of-contents/style.scss +5 -0
- package/src/components/text-editor/style.scss +6 -0
- package/src/components/visual-editor/index.js +11 -21
- package/src/components/visual-editor/style.scss +3 -1
- package/src/dataviews/fields/content-preview/style.scss +2 -0
- package/src/hooks/index.js +1 -0
- package/src/hooks/template-part-navigation-edit-button.js +145 -0
- package/src/store/actions.js +6 -1
- package/src/style.scss +57 -56
- package/tsconfig.tsbuildinfo +1 -1
- package/build/bindings/term-data.js +0 -171
- package/build/bindings/term-data.js.map +0 -1
- package/build/components/block-settings-menu/content-only-settings-menu.native.js +0 -11
- package/build/components/block-settings-menu/content-only-settings-menu.native.js.map +0 -1
- package/build/components/collab-sidebar/comment-button.js +0 -42
- package/build/components/collab-sidebar/comment-button.js.map +0 -1
- package/build/components/commands/index.native.js +0 -9
- package/build/components/commands/index.native.js.map +0 -1
- package/build/components/deprecated.native.js +0 -121
- package/build/components/deprecated.native.js.map +0 -1
- package/build/components/editor-help/add-blocks.native.js +0 -41
- package/build/components/editor-help/add-blocks.native.js.map +0 -1
- package/build/components/editor-help/customize-blocks.native.js +0 -41
- package/build/components/editor-help/customize-blocks.native.js.map +0 -1
- package/build/components/editor-help/help-detail-navigation-screen.native.js +0 -69
- package/build/components/editor-help/help-detail-navigation-screen.native.js.map +0 -1
- package/build/components/editor-help/help-get-support-button.native.js +0 -41
- package/build/components/editor-help/help-get-support-button.native.js.map +0 -1
- package/build/components/editor-help/help-section-title.native.js +0 -37
- package/build/components/editor-help/help-section-title.native.js.map +0 -1
- package/build/components/editor-help/help-topic-row.native.js +0 -42
- package/build/components/editor-help/help-topic-row.native.js.map +0 -1
- package/build/components/editor-help/icon-move-blocks.native.js +0 -19
- package/build/components/editor-help/icon-move-blocks.native.js.map +0 -1
- package/build/components/editor-help/index.native.js +0 -173
- package/build/components/editor-help/index.native.js.map +0 -1
- package/build/components/editor-help/intro-to-blocks.native.js +0 -70
- package/build/components/editor-help/intro-to-blocks.native.js.map +0 -1
- package/build/components/editor-help/move-blocks.native.js +0 -52
- package/build/components/editor-help/move-blocks.native.js.map +0 -1
- package/build/components/editor-help/remove-blocks.native.js +0 -39
- package/build/components/editor-help/remove-blocks.native.js.map +0 -1
- package/build/components/editor-help/view-sections.native.js +0 -80
- package/build/components/editor-help/view-sections.native.js.map +0 -1
- package/build/components/error-boundary/index.native.js +0 -143
- package/build/components/error-boundary/index.native.js.map +0 -1
- package/build/components/index.native.js +0 -85
- package/build/components/index.native.js.map +0 -1
- package/build/components/offline-status/index.native.js +0 -83
- package/build/components/offline-status/index.native.js.map +0 -1
- package/build/components/post-title/index.native.js +0 -251
- package/build/components/post-title/index.native.js.map +0 -1
- package/build/components/preferences-modal/block-visibility.js +0 -88
- package/build/components/preferences-modal/block-visibility.js.map +0 -1
- package/build/components/provider/index.native.js +0 -426
- package/build/components/provider/index.native.js.map +0 -1
- package/build/components/provider/use-block-editor-settings.native.js +0 -46
- package/build/components/provider/use-block-editor-settings.native.js.map +0 -1
- package/build/components/template-part-menu-items/index.native.js +0 -10
- package/build/components/template-part-menu-items/index.native.js.map +0 -1
- package/build/hooks/index.native.js +0 -2
- package/build/hooks/index.native.js.map +0 -1
- package/build/index.native.js +0 -56
- package/build/index.native.js.map +0 -1
- package/build/private-apis.native.js +0 -44
- package/build/private-apis.native.js.map +0 -1
- package/build/store/actions.native.js +0 -51
- package/build/store/actions.native.js.map +0 -1
- package/build/store/reducer.native.js +0 -105
- package/build/store/reducer.native.js.map +0 -1
- package/build/store/selectors.native.js +0 -70
- package/build/store/selectors.native.js.map +0 -1
- package/build/utils/index.native.js +0 -14
- package/build/utils/index.native.js.map +0 -1
- package/build/utils/media-sideload/index.native.js +0 -8
- package/build/utils/media-sideload/index.native.js.map +0 -1
- package/build/utils/media-upload/index.native.js +0 -8
- package/build/utils/media-upload/index.native.js.map +0 -1
- package/build-module/bindings/term-data.js +0 -165
- package/build-module/bindings/term-data.js.map +0 -1
- package/build-module/components/block-settings-menu/content-only-settings-menu.native.js +0 -5
- package/build-module/components/block-settings-menu/content-only-settings-menu.native.js.map +0 -1
- package/build-module/components/collab-sidebar/comment-button.js +0 -35
- package/build-module/components/collab-sidebar/comment-button.js.map +0 -1
- package/build-module/components/commands/index.native.js +0 -3
- package/build-module/components/commands/index.native.js.map +0 -1
- package/build-module/components/deprecated.native.js +0 -7
- package/build-module/components/deprecated.native.js.map +0 -1
- package/build-module/components/editor-help/add-blocks.native.js +0 -33
- package/build-module/components/editor-help/add-blocks.native.js.map +0 -1
- package/build-module/components/editor-help/customize-blocks.native.js +0 -33
- package/build-module/components/editor-help/customize-blocks.native.js.map +0 -1
- package/build-module/components/editor-help/help-detail-navigation-screen.native.js +0 -61
- package/build-module/components/editor-help/help-detail-navigation-screen.native.js.map +0 -1
- package/build-module/components/editor-help/help-get-support-button.native.js +0 -33
- package/build-module/components/editor-help/help-get-support-button.native.js.map +0 -1
- package/build-module/components/editor-help/help-section-title.native.js +0 -29
- package/build-module/components/editor-help/help-section-title.native.js.map +0 -1
- package/build-module/components/editor-help/help-topic-row.native.js +0 -35
- package/build-module/components/editor-help/help-topic-row.native.js.map +0 -1
- package/build-module/components/editor-help/icon-move-blocks.native.js +0 -13
- package/build-module/components/editor-help/icon-move-blocks.native.js.map +0 -1
- package/build-module/components/editor-help/index.native.js +0 -165
- package/build-module/components/editor-help/index.native.js.map +0 -1
- package/build-module/components/editor-help/intro-to-blocks.native.js +0 -62
- package/build-module/components/editor-help/intro-to-blocks.native.js.map +0 -1
- package/build-module/components/editor-help/move-blocks.native.js +0 -44
- package/build-module/components/editor-help/move-blocks.native.js.map +0 -1
- package/build-module/components/editor-help/remove-blocks.native.js +0 -31
- package/build-module/components/editor-help/remove-blocks.native.js.map +0 -1
- package/build-module/components/editor-help/view-sections.native.js +0 -69
- package/build-module/components/editor-help/view-sections.native.js.map +0 -1
- package/build-module/components/error-boundary/index.native.js +0 -135
- package/build-module/components/error-boundary/index.native.js.map +0 -1
- package/build-module/components/index.native.js +0 -15
- package/build-module/components/index.native.js.map +0 -1
- package/build-module/components/offline-status/index.native.js +0 -77
- package/build-module/components/offline-status/index.native.js.map +0 -1
- package/build-module/components/post-title/index.native.js +0 -243
- package/build-module/components/post-title/index.native.js.map +0 -1
- package/build-module/components/preferences-modal/block-visibility.js +0 -81
- package/build-module/components/preferences-modal/block-visibility.js.map +0 -1
- package/build-module/components/provider/index.native.js +0 -416
- package/build-module/components/provider/index.native.js.map +0 -1
- package/build-module/components/provider/use-block-editor-settings.native.js +0 -38
- package/build-module/components/provider/use-block-editor-settings.native.js.map +0 -1
- package/build-module/components/template-part-menu-items/index.native.js +0 -4
- package/build-module/components/template-part-menu-items/index.native.js.map +0 -1
- package/build-module/hooks/index.native.js +0 -2
- package/build-module/hooks/index.native.js.map +0 -1
- package/build-module/index.native.js +0 -16
- package/build-module/index.native.js.map +0 -1
- package/build-module/private-apis.native.js +0 -34
- package/build-module/private-apis.native.js.map +0 -1
- package/build-module/store/actions.native.js +0 -27
- package/build-module/store/actions.native.js.map +0 -1
- package/build-module/store/reducer.native.js +0 -81
- package/build-module/store/reducer.native.js.map +0 -1
- package/build-module/store/selectors.native.js +0 -49
- package/build-module/store/selectors.native.js.map +0 -1
- package/build-module/utils/index.native.js +0 -6
- package/build-module/utils/index.native.js.map +0 -1
- package/build-module/utils/media-sideload/index.native.js +0 -2
- package/build-module/utils/media-sideload/index.native.js.map +0 -1
- package/build-module/utils/media-upload/index.native.js +0 -2
- package/build-module/utils/media-upload/index.native.js.map +0 -1
- package/build-types/bindings/term-data.d.ts +0 -25
- package/build-types/bindings/term-data.d.ts.map +0 -1
- package/build-types/components/collab-sidebar/comment-button.d.ts +0 -5
- package/build-types/components/collab-sidebar/comment-button.d.ts.map +0 -1
- package/build-types/components/preferences-modal/block-visibility.d.ts.map +0 -1
- package/src/bindings/term-data.js +0 -159
|
@@ -1,43 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { store as
|
|
10
|
-
import { store as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
* @param {Array} [template] Block Template.
|
|
28
|
-
*/
|
|
29
|
-
export const setupEditor = (post, edits, template) => ({
|
|
30
|
-
dispatch
|
|
31
|
-
}) => {
|
|
1
|
+
import { speak } from "@wordpress/a11y";
|
|
2
|
+
import apiFetch from "@wordpress/api-fetch";
|
|
3
|
+
import deprecated from "@wordpress/deprecated";
|
|
4
|
+
import {
|
|
5
|
+
parse,
|
|
6
|
+
synchronizeBlocksWithTemplate,
|
|
7
|
+
__unstableSerializeAndClean
|
|
8
|
+
} from "@wordpress/blocks";
|
|
9
|
+
import { store as noticesStore } from "@wordpress/notices";
|
|
10
|
+
import { store as coreStore } from "@wordpress/core-data";
|
|
11
|
+
import { store as blockEditorStore } from "@wordpress/block-editor";
|
|
12
|
+
import {
|
|
13
|
+
applyFilters,
|
|
14
|
+
applyFiltersAsync,
|
|
15
|
+
doActionAsync
|
|
16
|
+
} from "@wordpress/hooks";
|
|
17
|
+
import { store as preferencesStore } from "@wordpress/preferences";
|
|
18
|
+
import { __, sprintf } from "@wordpress/i18n";
|
|
19
|
+
import { localAutosaveSet } from "./local-autosave";
|
|
20
|
+
import {
|
|
21
|
+
getNotificationArgumentsForSaveSuccess,
|
|
22
|
+
getNotificationArgumentsForSaveFail,
|
|
23
|
+
getNotificationArgumentsForTrashFail
|
|
24
|
+
} from "./utils/notice-builder";
|
|
25
|
+
import { unlock } from "../lock-unlock";
|
|
26
|
+
const setupEditor = (post, edits, template) => ({ dispatch }) => {
|
|
32
27
|
dispatch.setEditedPost(post.type, post.id);
|
|
33
|
-
|
|
34
|
-
const isNewPost = post.status === 'auto-draft';
|
|
28
|
+
const isNewPost = post.status === "auto-draft";
|
|
35
29
|
if (isNewPost && template) {
|
|
36
|
-
// In order to ensure maximum of a single parse during setup, edits are
|
|
37
|
-
// included as part of editor setup action. Assume edited content as
|
|
38
|
-
// canonical if provided, falling back to post.
|
|
39
30
|
let content;
|
|
40
|
-
if (
|
|
31
|
+
if ("content" in edits) {
|
|
41
32
|
content = edits.content;
|
|
42
33
|
} else {
|
|
43
34
|
content = post.content.raw;
|
|
@@ -48,198 +39,129 @@ export const setupEditor = (post, edits, template) => ({
|
|
|
48
39
|
__unstableShouldCreateUndoLevel: false
|
|
49
40
|
});
|
|
50
41
|
}
|
|
51
|
-
if (edits && Object.values(edits).some(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
})) {
|
|
42
|
+
if (edits && Object.values(edits).some(
|
|
43
|
+
([key, edit]) => edit !== (post[key]?.raw ?? post[key])
|
|
44
|
+
)) {
|
|
55
45
|
dispatch.editPost(edits);
|
|
56
46
|
}
|
|
57
47
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
*/
|
|
67
|
-
export function __experimentalTearDownEditor() {
|
|
68
|
-
deprecated("wp.data.dispatch( 'core/editor' ).__experimentalTearDownEditor", {
|
|
69
|
-
since: '6.5'
|
|
70
|
-
});
|
|
71
|
-
return {
|
|
72
|
-
type: 'DO_NOTHING'
|
|
73
|
-
};
|
|
48
|
+
function __experimentalTearDownEditor() {
|
|
49
|
+
deprecated(
|
|
50
|
+
"wp.data.dispatch( 'core/editor' ).__experimentalTearDownEditor",
|
|
51
|
+
{
|
|
52
|
+
since: "6.5"
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
return { type: "DO_NOTHING" };
|
|
74
56
|
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Returns an action object used in signalling that the latest version of the
|
|
78
|
-
* post has been received, either by initialization or save.
|
|
79
|
-
*
|
|
80
|
-
* @deprecated Since WordPress 6.0.
|
|
81
|
-
*/
|
|
82
|
-
export function resetPost() {
|
|
57
|
+
function resetPost() {
|
|
83
58
|
deprecated("wp.data.dispatch( 'core/editor' ).resetPost", {
|
|
84
|
-
since:
|
|
85
|
-
version:
|
|
86
|
-
alternative:
|
|
59
|
+
since: "6.0",
|
|
60
|
+
version: "6.3",
|
|
61
|
+
alternative: "Initialize the editor with the setupEditorState action"
|
|
87
62
|
});
|
|
88
|
-
return {
|
|
89
|
-
type: 'DO_NOTHING'
|
|
90
|
-
};
|
|
63
|
+
return { type: "DO_NOTHING" };
|
|
91
64
|
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Returns an action object used in signalling that a patch of updates for the
|
|
95
|
-
* latest version of the post have been received.
|
|
96
|
-
*
|
|
97
|
-
* @return {Object} Action object.
|
|
98
|
-
* @deprecated since Gutenberg 9.7.0.
|
|
99
|
-
*/
|
|
100
|
-
export function updatePost() {
|
|
65
|
+
function updatePost() {
|
|
101
66
|
deprecated("wp.data.dispatch( 'core/editor' ).updatePost", {
|
|
102
|
-
since:
|
|
103
|
-
alternative:
|
|
67
|
+
since: "5.7",
|
|
68
|
+
alternative: "Use the core entities store instead"
|
|
104
69
|
});
|
|
105
70
|
return {
|
|
106
|
-
type:
|
|
71
|
+
type: "DO_NOTHING"
|
|
107
72
|
};
|
|
108
73
|
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Setup the editor state.
|
|
112
|
-
*
|
|
113
|
-
* @deprecated
|
|
114
|
-
*
|
|
115
|
-
* @param {Object} post Post object.
|
|
116
|
-
*/
|
|
117
|
-
export function setupEditorState(post) {
|
|
74
|
+
function setupEditorState(post) {
|
|
118
75
|
deprecated("wp.data.dispatch( 'core/editor' ).setupEditorState", {
|
|
119
|
-
since:
|
|
76
|
+
since: "6.5",
|
|
120
77
|
alternative: "wp.data.dispatch( 'core/editor' ).setEditedPost"
|
|
121
78
|
});
|
|
122
79
|
return setEditedPost(post.type, post.id);
|
|
123
80
|
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Returns an action that sets the current post Type and post ID.
|
|
127
|
-
*
|
|
128
|
-
* @param {string} postType Post Type.
|
|
129
|
-
* @param {string} postId Post ID.
|
|
130
|
-
*
|
|
131
|
-
* @return {Object} Action object.
|
|
132
|
-
*/
|
|
133
|
-
export function setEditedPost(postType, postId) {
|
|
81
|
+
function setEditedPost(postType, postId) {
|
|
134
82
|
return {
|
|
135
|
-
type:
|
|
83
|
+
type: "SET_EDITED_POST",
|
|
136
84
|
postType,
|
|
137
85
|
postId
|
|
138
86
|
};
|
|
139
87
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
* been edited.
|
|
144
|
-
*
|
|
145
|
-
* @param {Object} edits Post attributes to edit.
|
|
146
|
-
* @param {Object} [options] Options for the edit.
|
|
147
|
-
*
|
|
148
|
-
* @example
|
|
149
|
-
* ```js
|
|
150
|
-
* // Update the post title
|
|
151
|
-
* wp.data.dispatch( 'core/editor' ).editPost( { title: `${ newTitle }` } );
|
|
152
|
-
* ```
|
|
153
|
-
*
|
|
154
|
-
* @return {Object} Action object
|
|
155
|
-
*/
|
|
156
|
-
export const editPost = (edits, options) => ({
|
|
157
|
-
select,
|
|
158
|
-
registry
|
|
159
|
-
}) => {
|
|
160
|
-
const {
|
|
161
|
-
id,
|
|
162
|
-
type
|
|
163
|
-
} = select.getCurrentPost();
|
|
164
|
-
registry.dispatch(coreStore).editEntityRecord('postType', type, id, edits, options);
|
|
88
|
+
const editPost = (edits, options) => ({ select, registry }) => {
|
|
89
|
+
const { id, type } = select.getCurrentPost();
|
|
90
|
+
registry.dispatch(coreStore).editEntityRecord("postType", type, id, edits, options);
|
|
165
91
|
};
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Action for saving the current post in the editor.
|
|
169
|
-
*
|
|
170
|
-
* @param {Object} [options]
|
|
171
|
-
*/
|
|
172
|
-
export const savePost = (options = {}) => async ({
|
|
173
|
-
select,
|
|
174
|
-
dispatch,
|
|
175
|
-
registry
|
|
176
|
-
}) => {
|
|
92
|
+
const savePost = (options = {}) => async ({ select, dispatch, registry }) => {
|
|
177
93
|
if (!select.isEditedPostSaveable()) {
|
|
178
94
|
return;
|
|
179
95
|
}
|
|
180
96
|
const content = select.getEditedPostContent();
|
|
181
97
|
if (!options.isAutosave) {
|
|
182
|
-
dispatch.editPost({
|
|
183
|
-
content
|
|
184
|
-
}, {
|
|
185
|
-
undoIgnore: true
|
|
186
|
-
});
|
|
98
|
+
dispatch.editPost({ content }, { undoIgnore: true });
|
|
187
99
|
}
|
|
188
100
|
const previousRecord = select.getCurrentPost();
|
|
189
101
|
let edits = {
|
|
190
102
|
id: previousRecord.id,
|
|
191
|
-
...registry.select(coreStore).getEntityRecordNonTransientEdits(
|
|
103
|
+
...registry.select(coreStore).getEntityRecordNonTransientEdits(
|
|
104
|
+
"postType",
|
|
105
|
+
previousRecord.type,
|
|
106
|
+
previousRecord.id
|
|
107
|
+
),
|
|
192
108
|
content
|
|
193
109
|
};
|
|
194
|
-
dispatch({
|
|
195
|
-
type: 'REQUEST_POST_UPDATE_START',
|
|
196
|
-
options
|
|
197
|
-
});
|
|
110
|
+
dispatch({ type: "REQUEST_POST_UPDATE_START", options });
|
|
198
111
|
let error = false;
|
|
199
112
|
try {
|
|
200
|
-
edits = await applyFiltersAsync(
|
|
113
|
+
edits = await applyFiltersAsync(
|
|
114
|
+
"editor.preSavePost",
|
|
115
|
+
edits,
|
|
116
|
+
options
|
|
117
|
+
);
|
|
201
118
|
} catch (err) {
|
|
202
119
|
error = err;
|
|
203
120
|
}
|
|
204
121
|
if (!error) {
|
|
205
122
|
try {
|
|
206
|
-
await registry.dispatch(coreStore).saveEntityRecord(
|
|
123
|
+
await registry.dispatch(coreStore).saveEntityRecord(
|
|
124
|
+
"postType",
|
|
125
|
+
previousRecord.type,
|
|
126
|
+
edits,
|
|
127
|
+
options
|
|
128
|
+
);
|
|
207
129
|
} catch (err) {
|
|
208
|
-
error = err.message && err.code !==
|
|
130
|
+
error = err.message && err.code !== "unknown_error" ? err.message : __("An error occurred while updating.");
|
|
209
131
|
}
|
|
210
132
|
}
|
|
211
133
|
if (!error) {
|
|
212
|
-
error = registry.select(coreStore).getLastEntitySaveError(
|
|
134
|
+
error = registry.select(coreStore).getLastEntitySaveError(
|
|
135
|
+
"postType",
|
|
136
|
+
previousRecord.type,
|
|
137
|
+
previousRecord.id
|
|
138
|
+
);
|
|
213
139
|
}
|
|
214
|
-
|
|
215
|
-
// Run the hook with legacy unstable name for backward compatibility
|
|
216
140
|
if (!error) {
|
|
217
141
|
try {
|
|
218
|
-
await applyFilters(
|
|
142
|
+
await applyFilters(
|
|
143
|
+
"editor.__unstableSavePost",
|
|
144
|
+
Promise.resolve(),
|
|
145
|
+
options
|
|
146
|
+
);
|
|
219
147
|
} catch (err) {
|
|
220
148
|
error = err;
|
|
221
149
|
}
|
|
222
150
|
}
|
|
223
151
|
if (!error) {
|
|
224
152
|
try {
|
|
225
|
-
await doActionAsync(
|
|
226
|
-
|
|
227
|
-
type: previousRecord.type
|
|
228
|
-
|
|
153
|
+
await doActionAsync(
|
|
154
|
+
"editor.savePost",
|
|
155
|
+
{ id: previousRecord.id, type: previousRecord.type },
|
|
156
|
+
options
|
|
157
|
+
);
|
|
229
158
|
} catch (err) {
|
|
230
159
|
error = err;
|
|
231
160
|
}
|
|
232
161
|
}
|
|
233
|
-
dispatch({
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
});
|
|
237
|
-
if (!options.isAutosave && previousRecord.type === 'wp_template') {
|
|
238
|
-
templateActivationNotice({
|
|
239
|
-
select,
|
|
240
|
-
dispatch,
|
|
241
|
-
registry
|
|
242
|
-
});
|
|
162
|
+
dispatch({ type: "REQUEST_POST_UPDATE_FINISH", options });
|
|
163
|
+
if (!options.isAutosave && previousRecord.type === "wp_template" && (typeof previousRecord.id === "number" || /^\d+$/.test(previousRecord.id))) {
|
|
164
|
+
templateActivationNotice({ select, dispatch, registry });
|
|
243
165
|
}
|
|
244
166
|
if (error) {
|
|
245
167
|
const args = getNotificationArgumentsForSaveFail({
|
|
@@ -261,866 +183,496 @@ export const savePost = (options = {}) => async ({
|
|
|
261
183
|
if (args.length) {
|
|
262
184
|
registry.dispatch(noticesStore).createSuccessNotice(...args);
|
|
263
185
|
}
|
|
264
|
-
// Make sure that any edits after saving create an undo level and are
|
|
265
|
-
// considered for change detection.
|
|
266
186
|
if (!options.isAutosave) {
|
|
267
187
|
registry.dispatch(blockEditorStore).__unstableMarkLastChangeAsPersistent();
|
|
268
188
|
}
|
|
269
189
|
}
|
|
270
190
|
};
|
|
271
|
-
async function templateActivationNotice({
|
|
272
|
-
select,
|
|
273
|
-
registry
|
|
274
|
-
}) {
|
|
191
|
+
async function templateActivationNotice({ select, registry }) {
|
|
275
192
|
const editorSettings = select.getEditorSettings();
|
|
276
|
-
|
|
277
|
-
// Don't open for focused entity.
|
|
278
193
|
if (editorSettings.onNavigateToPreviousEntityRecord) {
|
|
279
194
|
return;
|
|
280
195
|
}
|
|
281
|
-
const {
|
|
282
|
-
|
|
283
|
-
slug
|
|
284
|
-
} = select.getCurrentPost();
|
|
285
|
-
const site = await registry.select(coreStore).getEntityRecord('root', 'site');
|
|
286
|
-
|
|
287
|
-
// Already active.
|
|
196
|
+
const { id, slug } = select.getCurrentPost();
|
|
197
|
+
const site = await registry.select(coreStore).getEntityRecord("root", "site");
|
|
288
198
|
if (site.active_templates[slug] === id) {
|
|
289
199
|
return;
|
|
290
200
|
}
|
|
291
|
-
await registry.dispatch(noticesStore).createNotice(
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
201
|
+
await registry.dispatch(noticesStore).createNotice(
|
|
202
|
+
"info",
|
|
203
|
+
sprintf(
|
|
204
|
+
// translators: %s: template slug
|
|
205
|
+
__('This is a "%s" template. Do you want to activate it?'),
|
|
206
|
+
slug
|
|
207
|
+
),
|
|
208
|
+
{
|
|
209
|
+
id: "template-activate-notice",
|
|
210
|
+
actions: [
|
|
211
|
+
{
|
|
212
|
+
label: __("Activate"),
|
|
213
|
+
onClick: async () => {
|
|
214
|
+
await registry.dispatch(noticesStore).removeNotice("template-activate-notice");
|
|
215
|
+
await registry.dispatch(noticesStore).createNotice(
|
|
216
|
+
"info",
|
|
217
|
+
__("Activating template\u2026"),
|
|
218
|
+
{
|
|
219
|
+
id: "template-activating-notice"
|
|
220
|
+
}
|
|
221
|
+
);
|
|
222
|
+
try {
|
|
223
|
+
const currentSite = await registry.select(coreStore).getEntityRecord("root", "site");
|
|
224
|
+
await registry.dispatch(coreStore).saveEntityRecord(
|
|
225
|
+
"root",
|
|
226
|
+
"site",
|
|
227
|
+
{
|
|
228
|
+
active_templates: {
|
|
229
|
+
...currentSite.active_templates,
|
|
230
|
+
[slug]: id
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{ throwOnError: true }
|
|
234
|
+
);
|
|
235
|
+
await registry.dispatch(noticesStore).removeNotice("template-activating-notice");
|
|
236
|
+
await registry.dispatch(noticesStore).createSuccessNotice(
|
|
237
|
+
__("Template activated.")
|
|
238
|
+
);
|
|
239
|
+
} catch (error) {
|
|
240
|
+
await registry.dispatch(noticesStore).removeNotice("template-activating-notice");
|
|
241
|
+
await registry.dispatch(noticesStore).createErrorNotice(
|
|
242
|
+
__("Template activation failed.")
|
|
243
|
+
);
|
|
244
|
+
throw error;
|
|
308
245
|
}
|
|
309
|
-
}
|
|
310
|
-
throwOnError: true
|
|
311
|
-
});
|
|
312
|
-
await registry.dispatch(noticesStore).removeNotice('template-activating-notice');
|
|
313
|
-
await registry.dispatch(noticesStore).createSuccessNotice(__('Template activated.'));
|
|
314
|
-
} catch (error) {
|
|
315
|
-
await registry.dispatch(noticesStore).removeNotice('template-activating-notice');
|
|
316
|
-
await registry.dispatch(noticesStore).createErrorNotice(__('Template activation failed.'));
|
|
317
|
-
// Rethrow for debugging.
|
|
318
|
-
throw error;
|
|
246
|
+
}
|
|
319
247
|
}
|
|
320
|
-
|
|
321
|
-
}
|
|
322
|
-
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
);
|
|
323
251
|
}
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Action for refreshing the current post.
|
|
327
|
-
*
|
|
328
|
-
* @deprecated Since WordPress 6.0.
|
|
329
|
-
*/
|
|
330
|
-
export function refreshPost() {
|
|
252
|
+
function refreshPost() {
|
|
331
253
|
deprecated("wp.data.dispatch( 'core/editor' ).refreshPost", {
|
|
332
|
-
since:
|
|
333
|
-
version:
|
|
334
|
-
alternative:
|
|
254
|
+
since: "6.0",
|
|
255
|
+
version: "6.3",
|
|
256
|
+
alternative: "Use the core entities store instead"
|
|
335
257
|
});
|
|
336
|
-
return {
|
|
337
|
-
type: 'DO_NOTHING'
|
|
338
|
-
};
|
|
258
|
+
return { type: "DO_NOTHING" };
|
|
339
259
|
}
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* Action for trashing the current post in the editor.
|
|
343
|
-
*/
|
|
344
|
-
export const trashPost = () => async ({
|
|
345
|
-
select,
|
|
346
|
-
dispatch,
|
|
347
|
-
registry
|
|
348
|
-
}) => {
|
|
260
|
+
const trashPost = () => async ({ select, dispatch, registry }) => {
|
|
349
261
|
const postTypeSlug = select.getCurrentPostType();
|
|
350
262
|
const postType = await registry.resolveSelect(coreStore).getPostType(postTypeSlug);
|
|
351
|
-
const {
|
|
352
|
-
|
|
353
|
-
rest_namespace: restNamespace = 'wp/v2'
|
|
354
|
-
} = postType;
|
|
355
|
-
dispatch({
|
|
356
|
-
type: 'REQUEST_POST_DELETE_START'
|
|
357
|
-
});
|
|
263
|
+
const { rest_base: restBase, rest_namespace: restNamespace = "wp/v2" } = postType;
|
|
264
|
+
dispatch({ type: "REQUEST_POST_DELETE_START" });
|
|
358
265
|
try {
|
|
359
266
|
const post = select.getCurrentPost();
|
|
360
267
|
await apiFetch({
|
|
361
268
|
path: `/${restNamespace}/${restBase}/${post.id}`,
|
|
362
|
-
method:
|
|
269
|
+
method: "DELETE"
|
|
363
270
|
});
|
|
364
271
|
await dispatch.savePost();
|
|
365
272
|
} catch (error) {
|
|
366
|
-
registry.dispatch(noticesStore).createErrorNotice(
|
|
367
|
-
error
|
|
368
|
-
|
|
273
|
+
registry.dispatch(noticesStore).createErrorNotice(
|
|
274
|
+
...getNotificationArgumentsForTrashFail({ error })
|
|
275
|
+
);
|
|
369
276
|
}
|
|
370
|
-
dispatch({
|
|
371
|
-
type: 'REQUEST_POST_DELETE_FINISH'
|
|
372
|
-
});
|
|
277
|
+
dispatch({ type: "REQUEST_POST_DELETE_FINISH" });
|
|
373
278
|
};
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* Action that autosaves the current post. This
|
|
377
|
-
* includes server-side autosaving (default) and client-side (a.k.a. local)
|
|
378
|
-
* autosaving (e.g. on the Web, the post might be committed to Session
|
|
379
|
-
* Storage).
|
|
380
|
-
*
|
|
381
|
-
* @param {Object} [options] Extra flags to identify the autosave.
|
|
382
|
-
* @param {boolean} [options.local] Whether to perform a local autosave.
|
|
383
|
-
*/
|
|
384
|
-
export const autosave = ({
|
|
385
|
-
local = false,
|
|
386
|
-
...options
|
|
387
|
-
} = {}) => async ({
|
|
388
|
-
select,
|
|
389
|
-
dispatch
|
|
390
|
-
}) => {
|
|
279
|
+
const autosave = ({ local = false, ...options } = {}) => async ({ select, dispatch }) => {
|
|
391
280
|
const post = select.getCurrentPost();
|
|
392
|
-
|
|
393
|
-
// Currently template autosaving is not supported.
|
|
394
|
-
if (post.type === 'wp_template') {
|
|
281
|
+
if (post.type === "wp_template") {
|
|
395
282
|
return;
|
|
396
283
|
}
|
|
397
284
|
if (local) {
|
|
398
285
|
const isPostNew = select.isEditedPostNew();
|
|
399
|
-
const title = select.getEditedPostAttribute(
|
|
400
|
-
const content = select.getEditedPostAttribute(
|
|
401
|
-
const excerpt = select.getEditedPostAttribute(
|
|
286
|
+
const title = select.getEditedPostAttribute("title");
|
|
287
|
+
const content = select.getEditedPostAttribute("content");
|
|
288
|
+
const excerpt = select.getEditedPostAttribute("excerpt");
|
|
402
289
|
localAutosaveSet(post.id, isPostNew, title, content, excerpt);
|
|
403
290
|
} else {
|
|
404
|
-
await dispatch.savePost({
|
|
405
|
-
isAutosave: true,
|
|
406
|
-
...options
|
|
407
|
-
});
|
|
291
|
+
await dispatch.savePost({ isAutosave: true, ...options });
|
|
408
292
|
}
|
|
409
293
|
};
|
|
410
|
-
|
|
411
|
-
forceIsAutosaveable
|
|
412
|
-
} = {}) => async ({
|
|
413
|
-
select,
|
|
414
|
-
dispatch
|
|
415
|
-
}) => {
|
|
294
|
+
const __unstableSaveForPreview = ({ forceIsAutosaveable } = {}) => async ({ select, dispatch }) => {
|
|
416
295
|
if ((forceIsAutosaveable || select.isEditedPostAutosaveable()) && !select.isPostLocked()) {
|
|
417
|
-
const isDraft = [
|
|
296
|
+
const isDraft = ["draft", "auto-draft"].includes(
|
|
297
|
+
select.getEditedPostAttribute("status")
|
|
298
|
+
);
|
|
418
299
|
if (isDraft) {
|
|
419
|
-
await dispatch.savePost({
|
|
420
|
-
isPreview: true
|
|
421
|
-
});
|
|
300
|
+
await dispatch.savePost({ isPreview: true });
|
|
422
301
|
} else {
|
|
423
|
-
await dispatch.autosave({
|
|
424
|
-
isPreview: true
|
|
425
|
-
});
|
|
302
|
+
await dispatch.autosave({ isPreview: true });
|
|
426
303
|
}
|
|
427
304
|
}
|
|
428
305
|
return select.getEditedPostPreviewLink();
|
|
429
306
|
};
|
|
430
|
-
|
|
431
|
-
/**
|
|
432
|
-
* Action that restores last popped state in undo history.
|
|
433
|
-
*/
|
|
434
|
-
export const redo = () => ({
|
|
435
|
-
registry
|
|
436
|
-
}) => {
|
|
307
|
+
const redo = () => ({ registry }) => {
|
|
437
308
|
registry.dispatch(coreStore).redo();
|
|
438
309
|
};
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Action that pops a record from undo history and undoes the edit.
|
|
442
|
-
*/
|
|
443
|
-
export const undo = () => ({
|
|
444
|
-
registry
|
|
445
|
-
}) => {
|
|
310
|
+
const undo = () => ({ registry }) => {
|
|
446
311
|
registry.dispatch(coreStore).undo();
|
|
447
312
|
};
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* Action that creates an undo history record.
|
|
451
|
-
*
|
|
452
|
-
* @deprecated Since WordPress 6.0
|
|
453
|
-
*/
|
|
454
|
-
export function createUndoLevel() {
|
|
313
|
+
function createUndoLevel() {
|
|
455
314
|
deprecated("wp.data.dispatch( 'core/editor' ).createUndoLevel", {
|
|
456
|
-
since:
|
|
457
|
-
version:
|
|
458
|
-
alternative:
|
|
315
|
+
since: "6.0",
|
|
316
|
+
version: "6.3",
|
|
317
|
+
alternative: "Use the core entities store instead"
|
|
459
318
|
});
|
|
460
|
-
return {
|
|
461
|
-
type: 'DO_NOTHING'
|
|
462
|
-
};
|
|
319
|
+
return { type: "DO_NOTHING" };
|
|
463
320
|
}
|
|
464
|
-
|
|
465
|
-
/**
|
|
466
|
-
* Action that locks the editor.
|
|
467
|
-
*
|
|
468
|
-
* @param {Object} lock Details about the post lock status, user, and nonce.
|
|
469
|
-
* @return {Object} Action object.
|
|
470
|
-
*/
|
|
471
|
-
export function updatePostLock(lock) {
|
|
321
|
+
function updatePostLock(lock) {
|
|
472
322
|
return {
|
|
473
|
-
type:
|
|
323
|
+
type: "UPDATE_POST_LOCK",
|
|
474
324
|
lock
|
|
475
325
|
};
|
|
476
326
|
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
* Enable the publish sidebar.
|
|
480
|
-
*/
|
|
481
|
-
export const enablePublishSidebar = () => ({
|
|
482
|
-
registry
|
|
483
|
-
}) => {
|
|
484
|
-
registry.dispatch(preferencesStore).set('core', 'isPublishSidebarEnabled', true);
|
|
327
|
+
const enablePublishSidebar = () => ({ registry }) => {
|
|
328
|
+
registry.dispatch(preferencesStore).set("core", "isPublishSidebarEnabled", true);
|
|
485
329
|
};
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
* Disables the publish sidebar.
|
|
489
|
-
*/
|
|
490
|
-
export const disablePublishSidebar = () => ({
|
|
491
|
-
registry
|
|
492
|
-
}) => {
|
|
493
|
-
registry.dispatch(preferencesStore).set('core', 'isPublishSidebarEnabled', false);
|
|
330
|
+
const disablePublishSidebar = () => ({ registry }) => {
|
|
331
|
+
registry.dispatch(preferencesStore).set("core", "isPublishSidebarEnabled", false);
|
|
494
332
|
};
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* Action that locks post saving.
|
|
498
|
-
*
|
|
499
|
-
* @param {string} lockName The lock name.
|
|
500
|
-
*
|
|
501
|
-
* @example
|
|
502
|
-
* ```
|
|
503
|
-
* const { subscribe } = wp.data;
|
|
504
|
-
*
|
|
505
|
-
* const initialPostStatus = wp.data.select( 'core/editor' ).getEditedPostAttribute( 'status' );
|
|
506
|
-
*
|
|
507
|
-
* // Only allow publishing posts that are set to a future date.
|
|
508
|
-
* if ( 'publish' !== initialPostStatus ) {
|
|
509
|
-
*
|
|
510
|
-
* // Track locking.
|
|
511
|
-
* let locked = false;
|
|
512
|
-
*
|
|
513
|
-
* // Watch for the publish event.
|
|
514
|
-
* let unssubscribe = subscribe( () => {
|
|
515
|
-
* const currentPostStatus = wp.data.select( 'core/editor' ).getEditedPostAttribute( 'status' );
|
|
516
|
-
* if ( 'publish' !== currentPostStatus ) {
|
|
517
|
-
*
|
|
518
|
-
* // Compare the post date to the current date, lock the post if the date isn't in the future.
|
|
519
|
-
* const postDate = new Date( wp.data.select( 'core/editor' ).getEditedPostAttribute( 'date' ) );
|
|
520
|
-
* const currentDate = new Date();
|
|
521
|
-
* if ( postDate.getTime() <= currentDate.getTime() ) {
|
|
522
|
-
* if ( ! locked ) {
|
|
523
|
-
* locked = true;
|
|
524
|
-
* wp.data.dispatch( 'core/editor' ).lockPostSaving( 'futurelock' );
|
|
525
|
-
* }
|
|
526
|
-
* } else {
|
|
527
|
-
* if ( locked ) {
|
|
528
|
-
* locked = false;
|
|
529
|
-
* wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'futurelock' );
|
|
530
|
-
* }
|
|
531
|
-
* }
|
|
532
|
-
* }
|
|
533
|
-
* } );
|
|
534
|
-
* }
|
|
535
|
-
* ```
|
|
536
|
-
*
|
|
537
|
-
* @return {Object} Action object
|
|
538
|
-
*/
|
|
539
|
-
export function lockPostSaving(lockName) {
|
|
333
|
+
function lockPostSaving(lockName) {
|
|
540
334
|
return {
|
|
541
|
-
type:
|
|
335
|
+
type: "LOCK_POST_SAVING",
|
|
542
336
|
lockName
|
|
543
337
|
};
|
|
544
338
|
}
|
|
545
|
-
|
|
546
|
-
/**
|
|
547
|
-
* Action that unlocks post saving.
|
|
548
|
-
*
|
|
549
|
-
* @param {string} lockName The lock name.
|
|
550
|
-
*
|
|
551
|
-
* @example
|
|
552
|
-
* ```
|
|
553
|
-
* // Unlock post saving with the lock key `mylock`:
|
|
554
|
-
* wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'mylock' );
|
|
555
|
-
* ```
|
|
556
|
-
*
|
|
557
|
-
* @return {Object} Action object
|
|
558
|
-
*/
|
|
559
|
-
export function unlockPostSaving(lockName) {
|
|
339
|
+
function unlockPostSaving(lockName) {
|
|
560
340
|
return {
|
|
561
|
-
type:
|
|
341
|
+
type: "UNLOCK_POST_SAVING",
|
|
562
342
|
lockName
|
|
563
343
|
};
|
|
564
344
|
}
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* Action that locks post autosaving.
|
|
568
|
-
*
|
|
569
|
-
* @param {string} lockName The lock name.
|
|
570
|
-
*
|
|
571
|
-
* @example
|
|
572
|
-
* ```
|
|
573
|
-
* // Lock post autosaving with the lock key `mylock`:
|
|
574
|
-
* wp.data.dispatch( 'core/editor' ).lockPostAutosaving( 'mylock' );
|
|
575
|
-
* ```
|
|
576
|
-
*
|
|
577
|
-
* @return {Object} Action object
|
|
578
|
-
*/
|
|
579
|
-
export function lockPostAutosaving(lockName) {
|
|
345
|
+
function lockPostAutosaving(lockName) {
|
|
580
346
|
return {
|
|
581
|
-
type:
|
|
347
|
+
type: "LOCK_POST_AUTOSAVING",
|
|
582
348
|
lockName
|
|
583
349
|
};
|
|
584
350
|
}
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* Action that unlocks post autosaving.
|
|
588
|
-
*
|
|
589
|
-
* @param {string} lockName The lock name.
|
|
590
|
-
*
|
|
591
|
-
* @example
|
|
592
|
-
* ```
|
|
593
|
-
* // Unlock post saving with the lock key `mylock`:
|
|
594
|
-
* wp.data.dispatch( 'core/editor' ).unlockPostAutosaving( 'mylock' );
|
|
595
|
-
* ```
|
|
596
|
-
*
|
|
597
|
-
* @return {Object} Action object
|
|
598
|
-
*/
|
|
599
|
-
export function unlockPostAutosaving(lockName) {
|
|
351
|
+
function unlockPostAutosaving(lockName) {
|
|
600
352
|
return {
|
|
601
|
-
type:
|
|
353
|
+
type: "UNLOCK_POST_AUTOSAVING",
|
|
602
354
|
lockName
|
|
603
355
|
};
|
|
604
356
|
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
*
|
|
609
|
-
* @param {Array} blocks Block Array.
|
|
610
|
-
* @param {Object} [options] Optional options.
|
|
611
|
-
*/
|
|
612
|
-
export const resetEditorBlocks = (blocks, options = {}) => ({
|
|
613
|
-
select,
|
|
614
|
-
dispatch,
|
|
615
|
-
registry
|
|
616
|
-
}) => {
|
|
617
|
-
const {
|
|
618
|
-
__unstableShouldCreateUndoLevel,
|
|
619
|
-
selection
|
|
620
|
-
} = options;
|
|
621
|
-
const edits = {
|
|
622
|
-
blocks,
|
|
623
|
-
selection
|
|
624
|
-
};
|
|
357
|
+
const resetEditorBlocks = (blocks, options = {}) => ({ select, dispatch, registry }) => {
|
|
358
|
+
const { __unstableShouldCreateUndoLevel, selection } = options;
|
|
359
|
+
const edits = { blocks, selection };
|
|
625
360
|
if (__unstableShouldCreateUndoLevel !== false) {
|
|
626
|
-
const {
|
|
627
|
-
|
|
628
|
-
type
|
|
629
|
-
} = select.getCurrentPost();
|
|
630
|
-
const noChange = registry.select(coreStore).getEditedEntityRecord('postType', type, id).blocks === edits.blocks;
|
|
361
|
+
const { id, type } = select.getCurrentPost();
|
|
362
|
+
const noChange = registry.select(coreStore).getEditedEntityRecord("postType", type, id).blocks === edits.blocks;
|
|
631
363
|
if (noChange) {
|
|
632
|
-
registry.dispatch(coreStore).__unstableCreateUndoLevel(
|
|
364
|
+
registry.dispatch(coreStore).__unstableCreateUndoLevel("postType", type, id);
|
|
633
365
|
return;
|
|
634
366
|
}
|
|
635
|
-
|
|
636
|
-
// We create a new function here on every persistent edit
|
|
637
|
-
// to make sure the edit makes the post dirty and creates
|
|
638
|
-
// a new undo level.
|
|
639
|
-
edits.content = ({
|
|
640
|
-
blocks: blocksForSerialization = []
|
|
641
|
-
}) => __unstableSerializeAndClean(blocksForSerialization);
|
|
367
|
+
edits.content = ({ blocks: blocksForSerialization = [] }) => __unstableSerializeAndClean(blocksForSerialization);
|
|
642
368
|
}
|
|
643
369
|
dispatch.editPost(edits);
|
|
644
370
|
};
|
|
645
|
-
|
|
646
|
-
/*
|
|
647
|
-
* Returns an action object used in signalling that the post editor settings have been updated.
|
|
648
|
-
*
|
|
649
|
-
* @param {Object} settings Updated settings
|
|
650
|
-
*
|
|
651
|
-
* @return {Object} Action object
|
|
652
|
-
*/
|
|
653
|
-
export function updateEditorSettings(settings) {
|
|
371
|
+
function updateEditorSettings(settings) {
|
|
654
372
|
return {
|
|
655
|
-
type:
|
|
373
|
+
type: "UPDATE_EDITOR_SETTINGS",
|
|
656
374
|
settings
|
|
657
375
|
};
|
|
658
376
|
}
|
|
659
|
-
|
|
660
|
-
/**
|
|
661
|
-
* Returns an action used to set the rendering mode of the post editor. We support multiple rendering modes:
|
|
662
|
-
*
|
|
663
|
-
* - `post-only`: This mode extracts the post blocks from the template and renders only those. The idea is to allow the user to edit the post/page in isolation without the wrapping template.
|
|
664
|
-
* - `template-locked`: This mode renders both the template and the post blocks but the template blocks are locked and can't be edited. The post blocks are editable.
|
|
665
|
-
*
|
|
666
|
-
* @param {string} mode Mode (one of 'post-only' or 'template-locked').
|
|
667
|
-
*/
|
|
668
|
-
export const setRenderingMode = mode => ({
|
|
669
|
-
dispatch,
|
|
670
|
-
registry,
|
|
671
|
-
select
|
|
672
|
-
}) => {
|
|
377
|
+
const setRenderingMode = (mode) => ({ dispatch, registry, select }) => {
|
|
673
378
|
if (select.__unstableIsEditorReady()) {
|
|
674
|
-
// We clear the block selection but we also need to clear the selection from the core store.
|
|
675
379
|
registry.dispatch(blockEditorStore).clearSelectedBlock();
|
|
676
|
-
dispatch.editPost({
|
|
677
|
-
selection: undefined
|
|
678
|
-
}, {
|
|
679
|
-
undoIgnore: true
|
|
680
|
-
});
|
|
380
|
+
dispatch.editPost({ selection: void 0 }, { undoIgnore: true });
|
|
681
381
|
}
|
|
682
382
|
dispatch({
|
|
683
|
-
type:
|
|
383
|
+
type: "SET_RENDERING_MODE",
|
|
684
384
|
mode
|
|
685
385
|
});
|
|
686
386
|
};
|
|
687
|
-
|
|
688
|
-
/**
|
|
689
|
-
* Action that changes the width of the editing canvas.
|
|
690
|
-
*
|
|
691
|
-
* @param {string} deviceType
|
|
692
|
-
*
|
|
693
|
-
* @return {Object} Action object.
|
|
694
|
-
*/
|
|
695
|
-
export function setDeviceType(deviceType) {
|
|
387
|
+
function setDeviceType(deviceType) {
|
|
696
388
|
return {
|
|
697
|
-
type:
|
|
389
|
+
type: "SET_DEVICE_TYPE",
|
|
698
390
|
deviceType
|
|
699
391
|
};
|
|
700
392
|
}
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
* Returns an action object used to enable or disable a panel in the editor.
|
|
704
|
-
*
|
|
705
|
-
* @param {string} panelName A string that identifies the panel to enable or disable.
|
|
706
|
-
*
|
|
707
|
-
* @return {Object} Action object.
|
|
708
|
-
*/
|
|
709
|
-
export const toggleEditorPanelEnabled = panelName => ({
|
|
710
|
-
registry
|
|
711
|
-
}) => {
|
|
712
|
-
var _registry$select$get;
|
|
713
|
-
const inactivePanels = (_registry$select$get = registry.select(preferencesStore).get('core', 'inactivePanels')) !== null && _registry$select$get !== void 0 ? _registry$select$get : [];
|
|
393
|
+
const toggleEditorPanelEnabled = (panelName) => ({ registry }) => {
|
|
394
|
+
const inactivePanels = registry.select(preferencesStore).get("core", "inactivePanels") ?? [];
|
|
714
395
|
const isPanelInactive = !!inactivePanels?.includes(panelName);
|
|
715
|
-
|
|
716
|
-
// If the panel is inactive, remove it to enable it, else add it to
|
|
717
|
-
// make it inactive.
|
|
718
396
|
let updatedInactivePanels;
|
|
719
397
|
if (isPanelInactive) {
|
|
720
|
-
updatedInactivePanels = inactivePanels.filter(
|
|
398
|
+
updatedInactivePanels = inactivePanels.filter(
|
|
399
|
+
(invactivePanelName) => invactivePanelName !== panelName
|
|
400
|
+
);
|
|
721
401
|
} else {
|
|
722
402
|
updatedInactivePanels = [...inactivePanels, panelName];
|
|
723
403
|
}
|
|
724
|
-
registry.dispatch(preferencesStore).set(
|
|
404
|
+
registry.dispatch(preferencesStore).set("core", "inactivePanels", updatedInactivePanels);
|
|
725
405
|
};
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
* Opens a closed panel and closes an open panel.
|
|
729
|
-
*
|
|
730
|
-
* @param {string} panelName A string that identifies the panel to open or close.
|
|
731
|
-
*/
|
|
732
|
-
export const toggleEditorPanelOpened = panelName => ({
|
|
733
|
-
registry
|
|
734
|
-
}) => {
|
|
735
|
-
var _registry$select$get2;
|
|
736
|
-
const openPanels = (_registry$select$get2 = registry.select(preferencesStore).get('core', 'openPanels')) !== null && _registry$select$get2 !== void 0 ? _registry$select$get2 : [];
|
|
406
|
+
const toggleEditorPanelOpened = (panelName) => ({ registry }) => {
|
|
407
|
+
const openPanels = registry.select(preferencesStore).get("core", "openPanels") ?? [];
|
|
737
408
|
const isPanelOpen = !!openPanels?.includes(panelName);
|
|
738
|
-
|
|
739
|
-
// If the panel is open, remove it to close it, else add it to
|
|
740
|
-
// make it open.
|
|
741
409
|
let updatedOpenPanels;
|
|
742
410
|
if (isPanelOpen) {
|
|
743
|
-
updatedOpenPanels = openPanels.filter(
|
|
411
|
+
updatedOpenPanels = openPanels.filter(
|
|
412
|
+
(openPanelName) => openPanelName !== panelName
|
|
413
|
+
);
|
|
744
414
|
} else {
|
|
745
415
|
updatedOpenPanels = [...openPanels, panelName];
|
|
746
416
|
}
|
|
747
|
-
registry.dispatch(preferencesStore).set(
|
|
417
|
+
registry.dispatch(preferencesStore).set("core", "openPanels", updatedOpenPanels);
|
|
748
418
|
};
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* Returns an action object used to remove a panel from the editor.
|
|
752
|
-
*
|
|
753
|
-
* @param {string} panelName A string that identifies the panel to remove.
|
|
754
|
-
*
|
|
755
|
-
* @return {Object} Action object.
|
|
756
|
-
*/
|
|
757
|
-
export function removeEditorPanel(panelName) {
|
|
419
|
+
function removeEditorPanel(panelName) {
|
|
758
420
|
return {
|
|
759
|
-
type:
|
|
421
|
+
type: "REMOVE_PANEL",
|
|
760
422
|
panelName
|
|
761
423
|
};
|
|
762
424
|
}
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
* Returns an action object used to open/close the inserter.
|
|
766
|
-
*
|
|
767
|
-
* @param {boolean|Object} value Whether the inserter should be
|
|
768
|
-
* opened (true) or closed (false).
|
|
769
|
-
* To specify an insertion point,
|
|
770
|
-
* use an object.
|
|
771
|
-
* @param {string} value.rootClientId The root client ID to insert at.
|
|
772
|
-
* @param {number} value.insertionIndex The index to insert at.
|
|
773
|
-
* @param {string} value.filterValue A query to filter the inserter results.
|
|
774
|
-
* @param {Function} value.onSelect A callback when an item is selected.
|
|
775
|
-
* @param {string} value.tab The tab to open in the inserter.
|
|
776
|
-
* @param {string} value.category The category to initialize in the inserter.
|
|
777
|
-
*
|
|
778
|
-
* @return {Object} Action object.
|
|
779
|
-
*/
|
|
780
|
-
export const setIsInserterOpened = value => ({
|
|
781
|
-
dispatch,
|
|
782
|
-
registry
|
|
783
|
-
}) => {
|
|
784
|
-
if (typeof value === 'object' && value.hasOwnProperty('rootClientId') && value.hasOwnProperty('insertionIndex')) {
|
|
425
|
+
const setIsInserterOpened = (value) => ({ dispatch, registry }) => {
|
|
426
|
+
if (typeof value === "object" && value.hasOwnProperty("rootClientId") && value.hasOwnProperty("insertionIndex")) {
|
|
785
427
|
unlock(registry.dispatch(blockEditorStore)).setInsertionPoint({
|
|
786
428
|
rootClientId: value.rootClientId,
|
|
787
429
|
index: value.insertionIndex
|
|
788
430
|
});
|
|
789
431
|
}
|
|
790
432
|
dispatch({
|
|
791
|
-
type:
|
|
433
|
+
type: "SET_IS_INSERTER_OPENED",
|
|
792
434
|
value
|
|
793
435
|
});
|
|
794
436
|
};
|
|
795
|
-
|
|
796
|
-
/**
|
|
797
|
-
* Returns an action object used to open/close the list view.
|
|
798
|
-
*
|
|
799
|
-
* @param {boolean} isOpen A boolean representing whether the list view should be opened or closed.
|
|
800
|
-
* @return {Object} Action object.
|
|
801
|
-
*/
|
|
802
|
-
export function setIsListViewOpened(isOpen) {
|
|
437
|
+
function setIsListViewOpened(isOpen) {
|
|
803
438
|
return {
|
|
804
|
-
type:
|
|
439
|
+
type: "SET_IS_LIST_VIEW_OPENED",
|
|
805
440
|
isOpen
|
|
806
441
|
};
|
|
807
442
|
}
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
* Action that toggles Distraction free mode.
|
|
811
|
-
* Distraction free mode expects there are no sidebars, as due to the
|
|
812
|
-
* z-index values set, you can't close sidebars.
|
|
813
|
-
*
|
|
814
|
-
* @param {Object} [options={}] Optional configuration object
|
|
815
|
-
* @param {boolean} [options.createNotice=true] Whether to create a notice
|
|
816
|
-
*/
|
|
817
|
-
export const toggleDistractionFree = ({
|
|
818
|
-
createNotice = true
|
|
819
|
-
} = {}) => ({
|
|
820
|
-
dispatch,
|
|
821
|
-
registry
|
|
822
|
-
}) => {
|
|
823
|
-
const isDistractionFree = registry.select(preferencesStore).get('core', 'distractionFree');
|
|
443
|
+
const toggleDistractionFree = ({ createNotice = true } = {}) => ({ dispatch, registry }) => {
|
|
444
|
+
const isDistractionFree = registry.select(preferencesStore).get("core", "distractionFree");
|
|
824
445
|
if (isDistractionFree) {
|
|
825
|
-
registry.dispatch(preferencesStore).set(
|
|
446
|
+
registry.dispatch(preferencesStore).set("core", "fixedToolbar", false);
|
|
826
447
|
}
|
|
827
448
|
if (!isDistractionFree) {
|
|
828
449
|
registry.batch(() => {
|
|
829
|
-
registry.dispatch(preferencesStore).set(
|
|
450
|
+
registry.dispatch(preferencesStore).set("core", "fixedToolbar", true);
|
|
830
451
|
dispatch.setIsInserterOpened(false);
|
|
831
452
|
dispatch.setIsListViewOpened(false);
|
|
832
|
-
unlock(
|
|
453
|
+
unlock(
|
|
454
|
+
registry.dispatch(blockEditorStore)
|
|
455
|
+
).resetZoomLevel();
|
|
833
456
|
});
|
|
834
457
|
}
|
|
835
458
|
registry.batch(() => {
|
|
836
|
-
registry.dispatch(preferencesStore).set(
|
|
459
|
+
registry.dispatch(preferencesStore).set("core", "distractionFree", !isDistractionFree);
|
|
837
460
|
if (createNotice) {
|
|
838
|
-
registry.dispatch(noticesStore).createInfoNotice(
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
461
|
+
registry.dispatch(noticesStore).createInfoNotice(
|
|
462
|
+
isDistractionFree ? __("Distraction free mode deactivated.") : __("Distraction free mode activated."),
|
|
463
|
+
{
|
|
464
|
+
id: "core/editor/distraction-free-mode/notice",
|
|
465
|
+
type: "snackbar",
|
|
466
|
+
actions: [
|
|
467
|
+
{
|
|
468
|
+
label: __("Undo"),
|
|
469
|
+
onClick: () => {
|
|
470
|
+
registry.batch(() => {
|
|
471
|
+
registry.dispatch(preferencesStore).set(
|
|
472
|
+
"core",
|
|
473
|
+
"fixedToolbar",
|
|
474
|
+
isDistractionFree
|
|
475
|
+
);
|
|
476
|
+
registry.dispatch(preferencesStore).toggle(
|
|
477
|
+
"core",
|
|
478
|
+
"distractionFree"
|
|
479
|
+
);
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
]
|
|
484
|
+
}
|
|
485
|
+
);
|
|
851
486
|
}
|
|
852
487
|
});
|
|
853
488
|
};
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
});
|
|
489
|
+
const toggleSpotlightMode = () => ({ registry }) => {
|
|
490
|
+
registry.dispatch(preferencesStore).toggle("core", "focusMode");
|
|
491
|
+
const isFocusMode = registry.select(preferencesStore).get("core", "focusMode");
|
|
492
|
+
registry.dispatch(noticesStore).createInfoNotice(
|
|
493
|
+
isFocusMode ? __("Spotlight mode activated.") : __("Spotlight mode deactivated."),
|
|
494
|
+
{
|
|
495
|
+
id: "core/editor/toggle-spotlight-mode/notice",
|
|
496
|
+
type: "snackbar",
|
|
497
|
+
actions: [
|
|
498
|
+
{
|
|
499
|
+
label: __("Undo"),
|
|
500
|
+
onClick: () => {
|
|
501
|
+
registry.dispatch(preferencesStore).toggle("core", "focusMode");
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
]
|
|
505
|
+
}
|
|
506
|
+
);
|
|
873
507
|
};
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
});
|
|
508
|
+
const toggleTopToolbar = () => ({ registry }) => {
|
|
509
|
+
registry.dispatch(preferencesStore).toggle("core", "fixedToolbar");
|
|
510
|
+
const isTopToolbar = registry.select(preferencesStore).get("core", "fixedToolbar");
|
|
511
|
+
registry.dispatch(noticesStore).createInfoNotice(
|
|
512
|
+
isTopToolbar ? __("Top toolbar activated.") : __("Top toolbar deactivated."),
|
|
513
|
+
{
|
|
514
|
+
id: "core/editor/toggle-top-toolbar/notice",
|
|
515
|
+
type: "snackbar",
|
|
516
|
+
actions: [
|
|
517
|
+
{
|
|
518
|
+
label: __("Undo"),
|
|
519
|
+
onClick: () => {
|
|
520
|
+
registry.dispatch(preferencesStore).toggle("core", "fixedToolbar");
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
]
|
|
524
|
+
}
|
|
525
|
+
);
|
|
893
526
|
};
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
*
|
|
898
|
-
* @param {string} mode The editor mode.
|
|
899
|
-
*/
|
|
900
|
-
export const switchEditorMode = mode => ({
|
|
901
|
-
dispatch,
|
|
902
|
-
registry
|
|
903
|
-
}) => {
|
|
904
|
-
registry.dispatch(preferencesStore).set('core', 'editorMode', mode);
|
|
905
|
-
if (mode !== 'visual') {
|
|
906
|
-
// Unselect blocks when we switch to a non visual mode.
|
|
527
|
+
const switchEditorMode = (mode) => ({ dispatch, registry }) => {
|
|
528
|
+
registry.dispatch(preferencesStore).set("core", "editorMode", mode);
|
|
529
|
+
if (mode !== "visual") {
|
|
907
530
|
registry.dispatch(blockEditorStore).clearSelectedBlock();
|
|
908
|
-
// Exit zoom out state when switching to a non visual mode.
|
|
909
531
|
unlock(registry.dispatch(blockEditorStore)).resetZoomLevel();
|
|
910
532
|
}
|
|
911
|
-
if (mode ===
|
|
912
|
-
speak(__(
|
|
913
|
-
} else if (mode ===
|
|
914
|
-
const isDistractionFree = registry.select(preferencesStore).get(
|
|
533
|
+
if (mode === "visual") {
|
|
534
|
+
speak(__("Visual editor selected"), "assertive");
|
|
535
|
+
} else if (mode === "text") {
|
|
536
|
+
const isDistractionFree = registry.select(preferencesStore).get("core", "distractionFree");
|
|
915
537
|
if (isDistractionFree) {
|
|
916
538
|
dispatch.toggleDistractionFree();
|
|
917
539
|
}
|
|
918
|
-
speak(__(
|
|
540
|
+
speak(__("Code editor selected"), "assertive");
|
|
919
541
|
}
|
|
920
542
|
};
|
|
921
|
-
|
|
922
|
-
/**
|
|
923
|
-
* Returns an action object used in signalling that the user opened the publish
|
|
924
|
-
* sidebar.
|
|
925
|
-
*
|
|
926
|
-
* @return {Object} Action object
|
|
927
|
-
*/
|
|
928
|
-
export function openPublishSidebar() {
|
|
543
|
+
function openPublishSidebar() {
|
|
929
544
|
return {
|
|
930
|
-
type:
|
|
545
|
+
type: "OPEN_PUBLISH_SIDEBAR"
|
|
931
546
|
};
|
|
932
547
|
}
|
|
933
|
-
|
|
934
|
-
/**
|
|
935
|
-
* Returns an action object used in signalling that the user closed the
|
|
936
|
-
* publish sidebar.
|
|
937
|
-
*
|
|
938
|
-
* @return {Object} Action object.
|
|
939
|
-
*/
|
|
940
|
-
export function closePublishSidebar() {
|
|
548
|
+
function closePublishSidebar() {
|
|
941
549
|
return {
|
|
942
|
-
type:
|
|
550
|
+
type: "CLOSE_PUBLISH_SIDEBAR"
|
|
943
551
|
};
|
|
944
552
|
}
|
|
945
|
-
|
|
946
|
-
/**
|
|
947
|
-
* Returns an action object used in signalling that the user toggles the publish sidebar.
|
|
948
|
-
*
|
|
949
|
-
* @return {Object} Action object
|
|
950
|
-
*/
|
|
951
|
-
export function togglePublishSidebar() {
|
|
553
|
+
function togglePublishSidebar() {
|
|
952
554
|
return {
|
|
953
|
-
type:
|
|
555
|
+
type: "TOGGLE_PUBLISH_SIDEBAR"
|
|
954
556
|
};
|
|
955
557
|
}
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
const getBlockEditorAction = name => (...args) => ({
|
|
962
|
-
registry
|
|
963
|
-
}) => {
|
|
964
|
-
deprecated("`wp.data.dispatch( 'core/editor' )." + name + '`', {
|
|
965
|
-
since: '5.3',
|
|
966
|
-
alternative: "`wp.data.dispatch( 'core/block-editor' )." + name + '`',
|
|
967
|
-
version: '6.2'
|
|
558
|
+
const getBlockEditorAction = (name) => (...args) => ({ registry }) => {
|
|
559
|
+
deprecated("`wp.data.dispatch( 'core/editor' )." + name + "`", {
|
|
560
|
+
since: "5.3",
|
|
561
|
+
alternative: "`wp.data.dispatch( 'core/block-editor' )." + name + "`",
|
|
562
|
+
version: "6.2"
|
|
968
563
|
});
|
|
969
564
|
registry.dispatch(blockEditorStore)[name](...args);
|
|
970
565
|
};
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
*/
|
|
1085
|
-
export const removeBlocks = getBlockEditorAction('removeBlocks');
|
|
1086
|
-
|
|
1087
|
-
/**
|
|
1088
|
-
* @see removeBlock in core/block-editor store.
|
|
1089
|
-
*/
|
|
1090
|
-
export const removeBlock = getBlockEditorAction('removeBlock');
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* @see toggleBlockMode in core/block-editor store.
|
|
1094
|
-
*/
|
|
1095
|
-
export const toggleBlockMode = getBlockEditorAction('toggleBlockMode');
|
|
1096
|
-
|
|
1097
|
-
/**
|
|
1098
|
-
* @see startTyping in core/block-editor store.
|
|
1099
|
-
*/
|
|
1100
|
-
export const startTyping = getBlockEditorAction('startTyping');
|
|
1101
|
-
|
|
1102
|
-
/**
|
|
1103
|
-
* @see stopTyping in core/block-editor store.
|
|
1104
|
-
*/
|
|
1105
|
-
export const stopTyping = getBlockEditorAction('stopTyping');
|
|
1106
|
-
|
|
1107
|
-
/**
|
|
1108
|
-
* @see enterFormattedText in core/block-editor store.
|
|
1109
|
-
*/
|
|
1110
|
-
export const enterFormattedText = getBlockEditorAction('enterFormattedText');
|
|
1111
|
-
|
|
1112
|
-
/**
|
|
1113
|
-
* @see exitFormattedText in core/block-editor store.
|
|
1114
|
-
*/
|
|
1115
|
-
export const exitFormattedText = getBlockEditorAction('exitFormattedText');
|
|
1116
|
-
|
|
1117
|
-
/**
|
|
1118
|
-
* @see insertDefaultBlock in core/block-editor store.
|
|
1119
|
-
*/
|
|
1120
|
-
export const insertDefaultBlock = getBlockEditorAction('insertDefaultBlock');
|
|
1121
|
-
|
|
1122
|
-
/**
|
|
1123
|
-
* @see updateBlockListSettings in core/block-editor store.
|
|
1124
|
-
*/
|
|
1125
|
-
export const updateBlockListSettings = getBlockEditorAction('updateBlockListSettings');
|
|
1126
|
-
//# sourceMappingURL=actions.js.map
|
|
566
|
+
const resetBlocks = getBlockEditorAction("resetBlocks");
|
|
567
|
+
const receiveBlocks = getBlockEditorAction("receiveBlocks");
|
|
568
|
+
const updateBlock = getBlockEditorAction("updateBlock");
|
|
569
|
+
const updateBlockAttributes = getBlockEditorAction(
|
|
570
|
+
"updateBlockAttributes"
|
|
571
|
+
);
|
|
572
|
+
const selectBlock = getBlockEditorAction("selectBlock");
|
|
573
|
+
const startMultiSelect = getBlockEditorAction("startMultiSelect");
|
|
574
|
+
const stopMultiSelect = getBlockEditorAction("stopMultiSelect");
|
|
575
|
+
const multiSelect = getBlockEditorAction("multiSelect");
|
|
576
|
+
const clearSelectedBlock = getBlockEditorAction("clearSelectedBlock");
|
|
577
|
+
const toggleSelection = getBlockEditorAction("toggleSelection");
|
|
578
|
+
const replaceBlocks = getBlockEditorAction("replaceBlocks");
|
|
579
|
+
const replaceBlock = getBlockEditorAction("replaceBlock");
|
|
580
|
+
const moveBlocksDown = getBlockEditorAction("moveBlocksDown");
|
|
581
|
+
const moveBlocksUp = getBlockEditorAction("moveBlocksUp");
|
|
582
|
+
const moveBlockToPosition = getBlockEditorAction(
|
|
583
|
+
"moveBlockToPosition"
|
|
584
|
+
);
|
|
585
|
+
const insertBlock = getBlockEditorAction("insertBlock");
|
|
586
|
+
const insertBlocks = getBlockEditorAction("insertBlocks");
|
|
587
|
+
const showInsertionPoint = getBlockEditorAction("showInsertionPoint");
|
|
588
|
+
const hideInsertionPoint = getBlockEditorAction("hideInsertionPoint");
|
|
589
|
+
const setTemplateValidity = getBlockEditorAction(
|
|
590
|
+
"setTemplateValidity"
|
|
591
|
+
);
|
|
592
|
+
const synchronizeTemplate = getBlockEditorAction(
|
|
593
|
+
"synchronizeTemplate"
|
|
594
|
+
);
|
|
595
|
+
const mergeBlocks = getBlockEditorAction("mergeBlocks");
|
|
596
|
+
const removeBlocks = getBlockEditorAction("removeBlocks");
|
|
597
|
+
const removeBlock = getBlockEditorAction("removeBlock");
|
|
598
|
+
const toggleBlockMode = getBlockEditorAction("toggleBlockMode");
|
|
599
|
+
const startTyping = getBlockEditorAction("startTyping");
|
|
600
|
+
const stopTyping = getBlockEditorAction("stopTyping");
|
|
601
|
+
const enterFormattedText = getBlockEditorAction("enterFormattedText");
|
|
602
|
+
const exitFormattedText = getBlockEditorAction("exitFormattedText");
|
|
603
|
+
const insertDefaultBlock = getBlockEditorAction("insertDefaultBlock");
|
|
604
|
+
const updateBlockListSettings = getBlockEditorAction(
|
|
605
|
+
"updateBlockListSettings"
|
|
606
|
+
);
|
|
607
|
+
export {
|
|
608
|
+
__experimentalTearDownEditor,
|
|
609
|
+
__unstableSaveForPreview,
|
|
610
|
+
autosave,
|
|
611
|
+
clearSelectedBlock,
|
|
612
|
+
closePublishSidebar,
|
|
613
|
+
createUndoLevel,
|
|
614
|
+
disablePublishSidebar,
|
|
615
|
+
editPost,
|
|
616
|
+
enablePublishSidebar,
|
|
617
|
+
enterFormattedText,
|
|
618
|
+
exitFormattedText,
|
|
619
|
+
hideInsertionPoint,
|
|
620
|
+
insertBlock,
|
|
621
|
+
insertBlocks,
|
|
622
|
+
insertDefaultBlock,
|
|
623
|
+
lockPostAutosaving,
|
|
624
|
+
lockPostSaving,
|
|
625
|
+
mergeBlocks,
|
|
626
|
+
moveBlockToPosition,
|
|
627
|
+
moveBlocksDown,
|
|
628
|
+
moveBlocksUp,
|
|
629
|
+
multiSelect,
|
|
630
|
+
openPublishSidebar,
|
|
631
|
+
receiveBlocks,
|
|
632
|
+
redo,
|
|
633
|
+
refreshPost,
|
|
634
|
+
removeBlock,
|
|
635
|
+
removeBlocks,
|
|
636
|
+
removeEditorPanel,
|
|
637
|
+
replaceBlock,
|
|
638
|
+
replaceBlocks,
|
|
639
|
+
resetBlocks,
|
|
640
|
+
resetEditorBlocks,
|
|
641
|
+
resetPost,
|
|
642
|
+
savePost,
|
|
643
|
+
selectBlock,
|
|
644
|
+
setDeviceType,
|
|
645
|
+
setEditedPost,
|
|
646
|
+
setIsInserterOpened,
|
|
647
|
+
setIsListViewOpened,
|
|
648
|
+
setRenderingMode,
|
|
649
|
+
setTemplateValidity,
|
|
650
|
+
setupEditor,
|
|
651
|
+
setupEditorState,
|
|
652
|
+
showInsertionPoint,
|
|
653
|
+
startMultiSelect,
|
|
654
|
+
startTyping,
|
|
655
|
+
stopMultiSelect,
|
|
656
|
+
stopTyping,
|
|
657
|
+
switchEditorMode,
|
|
658
|
+
synchronizeTemplate,
|
|
659
|
+
toggleBlockMode,
|
|
660
|
+
toggleDistractionFree,
|
|
661
|
+
toggleEditorPanelEnabled,
|
|
662
|
+
toggleEditorPanelOpened,
|
|
663
|
+
togglePublishSidebar,
|
|
664
|
+
toggleSelection,
|
|
665
|
+
toggleSpotlightMode,
|
|
666
|
+
toggleTopToolbar,
|
|
667
|
+
trashPost,
|
|
668
|
+
undo,
|
|
669
|
+
unlockPostAutosaving,
|
|
670
|
+
unlockPostSaving,
|
|
671
|
+
updateBlock,
|
|
672
|
+
updateBlockAttributes,
|
|
673
|
+
updateBlockListSettings,
|
|
674
|
+
updateEditorSettings,
|
|
675
|
+
updatePost,
|
|
676
|
+
updatePostLock
|
|
677
|
+
};
|
|
678
|
+
//# sourceMappingURL=actions.js.map
|