@wordpress/editor 14.3.0 → 14.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +2 -1
- package/build/bindings/api.js +65 -0
- package/build/bindings/api.js.map +1 -0
- package/build/bindings/pattern-overrides.js +23 -13
- package/build/bindings/pattern-overrides.js.map +1 -1
- package/build/bindings/post-meta.js +23 -12
- package/build/bindings/post-meta.js.map +1 -1
- package/build/components/block-settings-menu/content-only-settings-menu.js +4 -1
- package/build/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
- package/build/components/blog-title/index.js +6 -2
- package/build/components/blog-title/index.js.map +1 -1
- package/build/components/collapsible-block-toolbar/index.js +2 -3
- package/build/components/collapsible-block-toolbar/index.js.map +1 -1
- package/build/components/global-styles-provider/index.js +15 -3
- package/build/components/global-styles-provider/index.js.map +1 -1
- package/build/components/header/back-button.js +7 -8
- package/build/components/header/back-button.js.map +1 -1
- package/build/components/header/index.js +19 -17
- package/build/components/header/index.js.map +1 -1
- package/build/components/page-attributes/order.js +1 -67
- package/build/components/page-attributes/order.js.map +1 -1
- package/build/components/page-attributes/panel.js +1 -4
- package/build/components/page-attributes/panel.js.map +1 -1
- package/build/components/post-actions/actions.js +126 -33
- package/build/components/post-actions/actions.js.map +1 -1
- package/build/components/post-card-panel/index.js +8 -2
- package/build/components/post-card-panel/index.js.map +1 -1
- package/build/components/post-comments/index.js +1 -1
- package/build/components/post-comments/index.js.map +1 -1
- package/build/components/post-content-information/index.js +7 -1
- package/build/components/post-content-information/index.js.map +1 -1
- package/build/components/post-discussion/panel.js +2 -2
- package/build/components/post-discussion/panel.js.map +1 -1
- package/build/components/post-excerpt/panel.js +1 -1
- package/build/components/post-excerpt/panel.js.map +1 -1
- package/build/components/post-featured-image/index.js +3 -1
- package/build/components/post-featured-image/index.js.map +1 -1
- package/build/components/post-last-revision/index.js +2 -1
- package/build/components/post-last-revision/index.js.map +1 -1
- package/build/components/post-publish-button/index.js +4 -11
- package/build/components/post-publish-button/index.js.map +1 -1
- package/build/components/post-publish-panel/maybe-category-panel.js +4 -1
- package/build/components/post-publish-panel/maybe-category-panel.js.map +1 -1
- package/build/components/post-publish-panel/maybe-tags-panel.js +2 -1
- package/build/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
- package/build/components/post-status/index.js +30 -10
- package/build/components/post-status/index.js.map +1 -1
- package/build/components/post-taxonomies/flat-term-selector.js +17 -6
- package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build/components/post-taxonomies/index.js +7 -1
- package/build/components/post-taxonomies/index.js.map +1 -1
- package/build/components/post-template/block-theme.js +4 -4
- package/build/components/post-template/block-theme.js.map +1 -1
- package/build/components/post-template/classic-theme.js +8 -2
- package/build/components/post-template/classic-theme.js.map +1 -1
- package/build/components/post-template/create-new-template.js +4 -1
- package/build/components/post-template/create-new-template.js.map +1 -1
- package/build/components/post-template/hooks.js +5 -1
- package/build/components/post-template/hooks.js.map +1 -1
- package/build/components/post-template/panel.js +8 -2
- package/build/components/post-template/panel.js.map +1 -1
- package/build/components/post-trash/check.js +6 -4
- package/build/components/post-trash/check.js.map +1 -1
- package/build/components/post-url/panel.js +6 -2
- package/build/components/post-url/panel.js.map +1 -1
- package/build/components/posts-per-page/index.js +6 -2
- package/build/components/posts-per-page/index.js.map +1 -1
- package/build/components/provider/use-block-editor-settings.js +15 -6
- package/build/components/provider/use-block-editor-settings.js.map +1 -1
- package/build/components/save-publish-panels/index.js +1 -2
- package/build/components/save-publish-panels/index.js.map +1 -1
- package/build/components/sidebar/index.js +3 -9
- package/build/components/sidebar/index.js.map +1 -1
- package/build/components/site-discussion/index.js +7 -3
- package/build/components/site-discussion/index.js.map +1 -1
- package/build/components/template-content-panel/index.js +5 -5
- package/build/components/template-content-panel/index.js.map +1 -1
- package/build/components/visual-editor/edit-template-blocks-notification.js +4 -4
- package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build/components/visual-editor/index.js +5 -2
- package/build/components/visual-editor/index.js.map +1 -1
- package/build/{hooks → components/visual-editor}/use-select-nearest-editable-block.js +1 -1
- package/build/components/visual-editor/use-select-nearest-editable-block.js.map +1 -0
- package/build/dataviews/actions/delete-post.js +2 -0
- package/build/dataviews/actions/delete-post.js.map +1 -1
- package/build/hooks/pattern-overrides.js +1 -1
- package/build/hooks/pattern-overrides.js.map +1 -1
- package/build/index.js +0 -1
- package/build/index.js.map +1 -1
- package/build/private-apis.js +3 -0
- package/build/private-apis.js.map +1 -1
- package/build/utils/media-upload/index.js +35 -2
- package/build/utils/media-upload/index.js.map +1 -1
- package/build-module/bindings/api.js +57 -0
- package/build-module/bindings/api.js.map +1 -0
- package/build-module/bindings/pattern-overrides.js +23 -13
- package/build-module/bindings/pattern-overrides.js.map +1 -1
- package/build-module/bindings/post-meta.js +23 -12
- package/build-module/bindings/post-meta.js.map +1 -1
- package/build-module/components/block-settings-menu/content-only-settings-menu.js +4 -1
- package/build-module/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
- package/build-module/components/blog-title/index.js +6 -2
- package/build-module/components/blog-title/index.js.map +1 -1
- package/build-module/components/collapsible-block-toolbar/index.js +1 -2
- package/build-module/components/collapsible-block-toolbar/index.js.map +1 -1
- package/build-module/components/global-styles-provider/index.js +15 -3
- package/build-module/components/global-styles-provider/index.js.map +1 -1
- package/build-module/components/header/back-button.js +5 -7
- package/build-module/components/header/back-button.js.map +1 -1
- package/build-module/components/header/index.js +19 -19
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/page-attributes/order.js +4 -70
- package/build-module/components/page-attributes/order.js.map +1 -1
- package/build-module/components/page-attributes/panel.js +1 -6
- package/build-module/components/page-attributes/panel.js.map +1 -1
- package/build-module/components/post-actions/actions.js +127 -34
- package/build-module/components/post-actions/actions.js.map +1 -1
- package/build-module/components/post-card-panel/index.js +8 -2
- package/build-module/components/post-card-panel/index.js.map +1 -1
- package/build-module/components/post-comments/index.js +2 -2
- package/build-module/components/post-comments/index.js.map +1 -1
- package/build-module/components/post-content-information/index.js +7 -1
- package/build-module/components/post-content-information/index.js.map +1 -1
- package/build-module/components/post-discussion/panel.js +3 -3
- package/build-module/components/post-discussion/panel.js.map +1 -1
- package/build-module/components/post-excerpt/panel.js +1 -1
- package/build-module/components/post-excerpt/panel.js.map +1 -1
- package/build-module/components/post-featured-image/index.js +3 -1
- package/build-module/components/post-featured-image/index.js.map +1 -1
- package/build-module/components/post-last-revision/index.js +2 -1
- package/build-module/components/post-last-revision/index.js.map +1 -1
- package/build-module/components/post-publish-button/index.js +4 -11
- package/build-module/components/post-publish-button/index.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-category-panel.js +4 -1
- package/build-module/components/post-publish-panel/maybe-category-panel.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-tags-panel.js +2 -1
- package/build-module/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
- package/build-module/components/post-status/index.js +30 -10
- package/build-module/components/post-status/index.js.map +1 -1
- package/build-module/components/post-taxonomies/flat-term-selector.js +17 -6
- package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build-module/components/post-taxonomies/index.js +7 -1
- package/build-module/components/post-taxonomies/index.js.map +1 -1
- package/build-module/components/post-template/block-theme.js +4 -4
- package/build-module/components/post-template/block-theme.js.map +1 -1
- package/build-module/components/post-template/classic-theme.js +8 -2
- package/build-module/components/post-template/classic-theme.js.map +1 -1
- package/build-module/components/post-template/create-new-template.js +4 -1
- package/build-module/components/post-template/create-new-template.js.map +1 -1
- package/build-module/components/post-template/hooks.js +5 -1
- package/build-module/components/post-template/hooks.js.map +1 -1
- package/build-module/components/post-template/panel.js +8 -2
- package/build-module/components/post-template/panel.js.map +1 -1
- package/build-module/components/post-trash/check.js +6 -4
- package/build-module/components/post-trash/check.js.map +1 -1
- package/build-module/components/post-url/panel.js +6 -2
- package/build-module/components/post-url/panel.js.map +1 -1
- package/build-module/components/posts-per-page/index.js +6 -2
- package/build-module/components/posts-per-page/index.js.map +1 -1
- package/build-module/components/provider/use-block-editor-settings.js +15 -6
- package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
- package/build-module/components/save-publish-panels/index.js +1 -2
- package/build-module/components/save-publish-panels/index.js.map +1 -1
- package/build-module/components/sidebar/index.js +3 -9
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/site-discussion/index.js +8 -4
- package/build-module/components/site-discussion/index.js.map +1 -1
- package/build-module/components/template-content-panel/index.js +5 -5
- package/build-module/components/template-content-panel/index.js.map +1 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.js +4 -4
- package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build-module/components/visual-editor/index.js +5 -2
- package/build-module/components/visual-editor/index.js.map +1 -1
- package/build-module/{hooks → components/visual-editor}/use-select-nearest-editable-block.js +1 -1
- package/build-module/components/visual-editor/use-select-nearest-editable-block.js.map +1 -0
- package/build-module/dataviews/actions/delete-post.js +2 -0
- package/build-module/dataviews/actions/delete-post.js.map +1 -1
- package/build-module/hooks/pattern-overrides.js +1 -1
- package/build-module/hooks/pattern-overrides.js.map +1 -1
- package/build-module/index.js +0 -1
- package/build-module/index.js.map +1 -1
- package/build-module/private-apis.js +3 -0
- package/build-module/private-apis.js.map +1 -1
- package/build-module/utils/media-upload/index.js +36 -3
- package/build-module/utils/media-upload/index.js.map +1 -1
- package/build-style/style-rtl.css +78 -42
- package/build-style/style.css +78 -42
- package/build-types/bindings/api.d.ts +25 -0
- package/build-types/bindings/api.d.ts.map +1 -0
- package/build-types/bindings/pattern-overrides.d.ts +5 -6
- package/build-types/bindings/pattern-overrides.d.ts.map +1 -1
- package/build-types/bindings/post-meta.d.ts +5 -7
- package/build-types/bindings/post-meta.d.ts.map +1 -1
- package/build-types/components/autocompleters/user.d.ts +2 -2
- package/build-types/components/autocompleters/user.d.ts.map +1 -1
- package/build-types/components/block-settings-menu/plugin-block-settings-menu-item.d.ts.map +1 -1
- package/build-types/components/blog-title/index.d.ts.map +1 -1
- package/build-types/components/collapsible-block-toolbar/index.d.ts +1 -2
- package/build-types/components/collapsible-block-toolbar/index.d.ts.map +1 -1
- package/build-types/components/document-bar/index.d.ts.map +1 -1
- package/build-types/components/document-outline/check.d.ts.map +1 -1
- package/build-types/components/document-outline/index.d.ts.map +1 -1
- package/build-types/components/editor-history/redo.d.ts +1 -1
- package/build-types/components/editor-history/undo.d.ts +1 -1
- package/build-types/components/editor-notices/index.d.ts.map +1 -1
- package/build-types/components/editor-snackbars/index.d.ts.map +1 -1
- package/build-types/components/entities-saved-states/index.d.ts.map +1 -1
- package/build-types/components/global-styles-provider/index.d.ts.map +1 -1
- package/build-types/components/header/back-button.d.ts +1 -0
- package/build-types/components/header/back-button.d.ts.map +1 -1
- package/build-types/components/header/index.d.ts.map +1 -1
- package/build-types/components/local-autosave-monitor/index.d.ts.map +1 -1
- package/build-types/components/media-categories/index.d.ts.map +1 -1
- package/build-types/components/more-menu/tools-more-menu-group.d.ts.map +1 -1
- package/build-types/components/more-menu/view-more-menu-group.d.ts.map +1 -1
- package/build-types/components/page-attributes/check.d.ts.map +1 -1
- package/build-types/components/page-attributes/order.d.ts +1 -1
- package/build-types/components/page-attributes/order.d.ts.map +1 -1
- package/build-types/components/page-attributes/panel.d.ts.map +1 -1
- package/build-types/components/page-attributes/parent.d.ts.map +1 -1
- package/build-types/components/plugin-document-setting-panel/index.d.ts.map +1 -1
- package/build-types/components/plugin-post-publish-panel/index.d.ts.map +1 -1
- package/build-types/components/plugin-post-status-info/index.d.ts.map +1 -1
- package/build-types/components/plugin-pre-publish-panel/index.d.ts.map +1 -1
- package/build-types/components/plugin-sidebar/index.d.ts.map +1 -1
- package/build-types/components/plugin-sidebar-more-menu-item/index.d.ts.map +1 -1
- package/build-types/components/post-actions/actions.d.ts.map +1 -1
- package/build-types/components/post-author/check.d.ts.map +1 -1
- package/build-types/components/post-author/index.d.ts.map +1 -1
- package/build-types/components/post-author/panel.d.ts.map +1 -1
- package/build-types/components/post-card-panel/index.d.ts.map +1 -1
- package/build-types/components/post-content-information/index.d.ts.map +1 -1
- package/build-types/components/post-discussion/panel.d.ts.map +1 -1
- package/build-types/components/post-excerpt/check.d.ts.map +1 -1
- package/build-types/components/post-excerpt/index.d.ts.map +1 -1
- package/build-types/components/post-excerpt/panel.d.ts.map +1 -1
- package/build-types/components/post-excerpt/plugin.d.ts.map +1 -1
- package/build-types/components/post-featured-image/check.d.ts.map +1 -1
- package/build-types/components/post-featured-image/panel.d.ts.map +1 -1
- package/build-types/components/post-format/index.d.ts.map +1 -1
- package/build-types/components/post-format/panel.d.ts.map +1 -1
- package/build-types/components/post-last-revision/check.d.ts.map +1 -1
- package/build-types/components/post-last-revision/index.d.ts.map +1 -1
- package/build-types/components/post-last-revision/panel.d.ts.map +1 -1
- package/build-types/components/post-locked-modal/index.d.ts.map +1 -1
- package/build-types/components/post-pending-status/check.d.ts.map +1 -1
- package/build-types/components/post-pending-status/index.d.ts.map +1 -1
- package/build-types/components/post-preview-button/index.d.ts.map +1 -1
- package/build-types/components/post-publish-button/index.d.ts.map +1 -1
- package/build-types/components/post-publish-panel/maybe-category-panel.d.ts.map +1 -1
- package/build-types/components/post-saved-state/index.d.ts +1 -1
- package/build-types/components/post-saved-state/index.d.ts.map +1 -1
- package/build-types/components/post-schedule/check.d.ts.map +1 -1
- package/build-types/components/post-schedule/index.d.ts.map +1 -1
- package/build-types/components/post-schedule/label.d.ts.map +1 -1
- package/build-types/components/post-schedule/panel.d.ts.map +1 -1
- package/build-types/components/post-slug/check.d.ts.map +1 -1
- package/build-types/components/post-slug/index.d.ts.map +1 -1
- package/build-types/components/post-status/index.d.ts.map +1 -1
- package/build-types/components/post-sticky/check.d.ts.map +1 -1
- package/build-types/components/post-sticky/index.d.ts.map +1 -1
- package/build-types/components/post-switch-to-draft-button/index.d.ts.map +1 -1
- package/build-types/components/post-sync-status/index.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/check.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts +9 -7
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts +13 -11
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/index.d.ts.map +1 -1
- package/build-types/components/post-template/block-theme.d.ts.map +1 -1
- package/build-types/components/post-template/classic-theme.d.ts.map +1 -1
- package/build-types/components/post-template/create-new-template.d.ts.map +1 -1
- package/build-types/components/post-template/hooks.d.ts.map +1 -1
- package/build-types/components/post-template/panel.d.ts.map +1 -1
- package/build-types/components/post-text-editor/index.d.ts.map +1 -1
- package/build-types/components/post-trash/check.d.ts.map +1 -1
- package/build-types/components/post-trash/index.d.ts.map +1 -1
- package/build-types/components/post-type-support-check/index.d.ts.map +1 -1
- package/build-types/components/post-url/check.d.ts.map +1 -1
- package/build-types/components/post-url/index.d.ts.map +1 -1
- package/build-types/components/post-url/label.d.ts.map +1 -1
- package/build-types/components/post-url/panel.d.ts.map +1 -1
- package/build-types/components/post-visibility/check.d.ts.map +1 -1
- package/build-types/components/post-visibility/index.d.ts.map +1 -1
- package/build-types/components/posts-per-page/index.d.ts.map +1 -1
- package/build-types/components/preferences-modal/enable-plugin-document-setting-panel.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
- package/build-types/components/save-publish-panels/index.d.ts.map +1 -1
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/components/site-discussion/index.d.ts.map +1 -1
- package/build-types/components/template-content-panel/index.d.ts +1 -3
- package/build-types/components/template-content-panel/index.d.ts.map +1 -1
- package/build-types/components/theme-support-check/index.d.ts.map +1 -1
- package/build-types/components/time-to-read/index.d.ts.map +1 -1
- package/build-types/components/unsaved-changes-warning/index.d.ts.map +1 -1
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts +1 -1
- package/build-types/components/visual-editor/edit-template-blocks-notification.d.ts.map +1 -1
- package/build-types/components/visual-editor/index.d.ts.map +1 -1
- package/build-types/components/visual-editor/use-select-nearest-editable-block.d.ts.map +1 -0
- package/build-types/components/word-count/index.d.ts.map +1 -1
- package/build-types/dataviews/actions/delete-post.d.ts.map +1 -1
- package/build-types/dataviews/api.d.ts +1 -1
- package/build-types/dataviews/api.d.ts.map +1 -1
- package/build-types/dataviews/store/private-selectors.d.ts +0 -1
- package/build-types/dataviews/store/private-selectors.d.ts.map +1 -1
- package/build-types/hooks/custom-sources-backwards-compatibility.d.ts +1 -1
- package/build-types/hooks/custom-sources-backwards-compatibility.d.ts.map +1 -1
- package/build-types/hooks/pattern-overrides.d.ts.map +1 -1
- package/build-types/private-apis.d.ts.map +1 -1
- package/build-types/store/actions.d.ts.map +1 -1
- package/build-types/store/private-actions.d.ts.map +1 -1
- package/build-types/store/reducer.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +0 -1
- package/build-types/store/selectors.d.ts.map +1 -1
- package/build-types/utils/media-upload/index.d.ts.map +1 -1
- package/package.json +38 -37
- package/src/bindings/api.js +57 -0
- package/src/bindings/pattern-overrides.js +28 -17
- package/src/bindings/post-meta.js +19 -14
- package/src/components/block-settings-menu/content-only-settings-menu.js +4 -4
- package/src/components/blog-title/index.js +7 -2
- package/src/components/collapsible-block-toolbar/index.js +1 -3
- package/src/components/collapsible-block-toolbar/style.scss +0 -3
- package/src/components/document-bar/style.scss +1 -5
- package/src/components/document-tools/style.scss +4 -4
- package/src/components/editor-interface/style.scss +4 -0
- package/src/components/global-styles-provider/index.js +22 -11
- package/src/components/header/back-button.js +6 -6
- package/src/components/header/index.js +26 -25
- package/src/components/header/style.scss +64 -21
- package/src/components/inserter-sidebar/style.scss +1 -6
- package/src/components/page-attributes/order.js +3 -77
- package/src/components/page-attributes/panel.js +1 -7
- package/src/components/post-actions/actions.js +150 -32
- package/src/components/post-card-panel/index.js +8 -2
- package/src/components/post-comments/index.js +2 -2
- package/src/components/post-content-information/index.js +7 -1
- package/src/components/post-discussion/panel.js +5 -3
- package/src/components/post-excerpt/panel.js +2 -1
- package/src/components/post-featured-image/index.js +5 -1
- package/src/components/post-last-revision/index.js +1 -0
- package/src/components/post-panel-row/style.scss +0 -1
- package/src/components/post-publish-button/index.js +4 -17
- package/src/components/post-publish-panel/maybe-category-panel.js +4 -1
- package/src/components/post-publish-panel/maybe-tags-panel.js +1 -1
- package/src/components/post-status/index.js +18 -10
- package/src/components/post-taxonomies/flat-term-selector.js +19 -5
- package/src/components/post-taxonomies/index.js +8 -1
- package/src/components/post-template/block-theme.js +5 -1
- package/src/components/post-template/classic-theme.js +8 -3
- package/src/components/post-template/create-new-template.js +4 -1
- package/src/components/post-template/hooks.js +8 -2
- package/src/components/post-template/panel.js +10 -2
- package/src/components/post-trash/check.js +9 -5
- package/src/components/post-url/panel.js +7 -2
- package/src/components/posts-per-page/index.js +7 -2
- package/src/components/provider/use-block-editor-settings.js +15 -6
- package/src/components/save-publish-panels/index.js +1 -4
- package/src/components/sidebar/index.js +2 -5
- package/src/components/site-discussion/index.js +9 -4
- package/src/components/template-content-panel/index.js +3 -2
- package/src/components/visual-editor/edit-template-blocks-notification.js +5 -1
- package/src/components/visual-editor/index.js +5 -2
- package/src/components/visual-editor/style.scss +0 -1
- package/src/{hooks → components/visual-editor}/use-select-nearest-editable-block.js +1 -1
- package/src/dataviews/actions/delete-post.tsx +2 -0
- package/src/hooks/pattern-overrides.js +1 -1
- package/src/index.js +0 -1
- package/src/private-apis.js +6 -0
- package/src/store/test/actions.js +9 -3
- package/src/utils/media-upload/index.js +38 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/build/bindings/index.js +0 -22
- package/build/bindings/index.js.map +0 -1
- package/build/hooks/use-select-nearest-editable-block.js.map +0 -1
- package/build/store/utils/get-filtered-template-parts.js +0 -71
- package/build/store/utils/get-filtered-template-parts.js.map +0 -1
- package/build/utils/set-nested-value.js +0 -44
- package/build/utils/set-nested-value.js.map +0 -1
- package/build-module/bindings/index.js +0 -17
- package/build-module/bindings/index.js.map +0 -1
- package/build-module/hooks/use-select-nearest-editable-block.js.map +0 -1
- package/build-module/store/utils/get-filtered-template-parts.js +0 -64
- package/build-module/store/utils/get-filtered-template-parts.js.map +0 -1
- package/build-module/utils/set-nested-value.js +0 -38
- package/build-module/utils/set-nested-value.js.map +0 -1
- package/build-types/bindings/index.d.ts +0 -2
- package/build-types/bindings/index.d.ts.map +0 -1
- package/build-types/hooks/use-select-nearest-editable-block.d.ts.map +0 -1
- package/build-types/store/utils/get-filtered-template-parts.d.ts +0 -3
- package/build-types/store/utils/get-filtered-template-parts.d.ts.map +0 -1
- package/build-types/utils/set-nested-value.d.ts +0 -20
- package/build-types/utils/set-nested-value.d.ts.map +0 -1
- package/src/bindings/index.js +0 -15
- package/src/store/utils/get-filtered-template-parts.js +0 -69
- package/src/store/utils/test/get-filtered-template-parts.js +0 -189
- package/src/utils/set-nested-value.js +0 -39
- /package/build-types/{hooks → components/visual-editor}/use-select-nearest-editable-block.d.ts +0 -0
|
@@ -21,6 +21,7 @@ import ViewMoreMenuGroup from './components/more-menu/view-more-menu-group';
|
|
|
21
21
|
import ResizableEditor from './components/resizable-editor';
|
|
22
22
|
import { mergeBaseAndUserConfigs, GlobalStylesProvider } from './components/global-styles-provider';
|
|
23
23
|
import registerDefaultActions from './dataviews/actions';
|
|
24
|
+
import { registerCoreBlockBindingsSources, bootstrapBlockBindingsSourcesFromServer } from './bindings/api';
|
|
24
25
|
const {
|
|
25
26
|
store: interfaceStore,
|
|
26
27
|
...remainingInterfaceApis
|
|
@@ -41,6 +42,8 @@ lock(privateApis, {
|
|
|
41
42
|
ViewMoreMenuGroup,
|
|
42
43
|
ResizableEditor,
|
|
43
44
|
registerDefaultActions,
|
|
45
|
+
registerCoreBlockBindingsSources,
|
|
46
|
+
bootstrapBlockBindingsSourcesFromServer,
|
|
44
47
|
// This is a temporary private API while we're updating the site editor to use EditorProvider.
|
|
45
48
|
useBlockEditorSettings,
|
|
46
49
|
interfaceStore,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["interfaceApis","lock","EntitiesSavedStatesExtensible","EditorContentSlotFill","useBlockEditorSettings","BackButton","CreateTemplatePartModal","Editor","PluginPostExcerpt","PreferencesModal","usePostActions","ToolsMoreMenuGroup","ViewMoreMenuGroup","ResizableEditor","mergeBaseAndUserConfigs","GlobalStylesProvider","registerDefaultActions","store","interfaceStore","remainingInterfaceApis","privateApis"],"sources":["@wordpress/editor/src/private-apis.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport * as interfaceApis from '@wordpress/interface';\n\n/**\n * Internal dependencies\n */\nimport { lock } from './lock-unlock';\nimport { EntitiesSavedStatesExtensible } from './components/entities-saved-states';\nimport EditorContentSlotFill from './components/editor-interface/content-slot-fill';\nimport useBlockEditorSettings from './components/provider/use-block-editor-settings';\nimport BackButton from './components/header/back-button';\nimport CreateTemplatePartModal from './components/create-template-part-modal';\nimport Editor from './components/editor';\nimport PluginPostExcerpt from './components/post-excerpt/plugin';\nimport PreferencesModal from './components/preferences-modal';\nimport { usePostActions } from './components/post-actions/actions';\nimport ToolsMoreMenuGroup from './components/more-menu/tools-more-menu-group';\nimport ViewMoreMenuGroup from './components/more-menu/view-more-menu-group';\nimport ResizableEditor from './components/resizable-editor';\nimport {\n\tmergeBaseAndUserConfigs,\n\tGlobalStylesProvider,\n} from './components/global-styles-provider';\nimport registerDefaultActions from './dataviews/actions';\n\nconst { store: interfaceStore, ...remainingInterfaceApis } = interfaceApis;\n\nexport const privateApis = {};\nlock( privateApis, {\n\tCreateTemplatePartModal,\n\tBackButton,\n\tEntitiesSavedStatesExtensible,\n\tEditor,\n\tEditorContentSlotFill,\n\tGlobalStylesProvider,\n\tmergeBaseAndUserConfigs,\n\tPluginPostExcerpt,\n\tPreferencesModal,\n\tusePostActions,\n\tToolsMoreMenuGroup,\n\tViewMoreMenuGroup,\n\tResizableEditor,\n\tregisterDefaultActions,\n\n\t// This is a temporary private API while we're updating the site editor to use EditorProvider.\n\tuseBlockEditorSettings,\n\tinterfaceStore,\n\t...remainingInterfaceApis,\n} );\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,KAAKA,aAAa,MAAM,sBAAsB;;AAErD;AACA;AACA;AACA,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,6BAA6B,QAAQ,oCAAoC;AAClF,OAAOC,qBAAqB,MAAM,iDAAiD;AACnF,OAAOC,sBAAsB,MAAM,iDAAiD;AACpF,OAAOC,UAAU,MAAM,iCAAiC;AACxD,OAAOC,uBAAuB,MAAM,yCAAyC;AAC7E,OAAOC,MAAM,MAAM,qBAAqB;AACxC,OAAOC,iBAAiB,MAAM,kCAAkC;AAChE,OAAOC,gBAAgB,MAAM,gCAAgC;AAC7D,SAASC,cAAc,QAAQ,mCAAmC;AAClE,OAAOC,kBAAkB,MAAM,8CAA8C;AAC7E,OAAOC,iBAAiB,MAAM,6CAA6C;AAC3E,OAAOC,eAAe,MAAM,+BAA+B;AAC3D,SACCC,uBAAuB,EACvBC,oBAAoB,QACd,qCAAqC;AAC5C,OAAOC,sBAAsB,MAAM,qBAAqB;
|
|
1
|
+
{"version":3,"names":["interfaceApis","lock","EntitiesSavedStatesExtensible","EditorContentSlotFill","useBlockEditorSettings","BackButton","CreateTemplatePartModal","Editor","PluginPostExcerpt","PreferencesModal","usePostActions","ToolsMoreMenuGroup","ViewMoreMenuGroup","ResizableEditor","mergeBaseAndUserConfigs","GlobalStylesProvider","registerDefaultActions","registerCoreBlockBindingsSources","bootstrapBlockBindingsSourcesFromServer","store","interfaceStore","remainingInterfaceApis","privateApis"],"sources":["@wordpress/editor/src/private-apis.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport * as interfaceApis from '@wordpress/interface';\n\n/**\n * Internal dependencies\n */\nimport { lock } from './lock-unlock';\nimport { EntitiesSavedStatesExtensible } from './components/entities-saved-states';\nimport EditorContentSlotFill from './components/editor-interface/content-slot-fill';\nimport useBlockEditorSettings from './components/provider/use-block-editor-settings';\nimport BackButton from './components/header/back-button';\nimport CreateTemplatePartModal from './components/create-template-part-modal';\nimport Editor from './components/editor';\nimport PluginPostExcerpt from './components/post-excerpt/plugin';\nimport PreferencesModal from './components/preferences-modal';\nimport { usePostActions } from './components/post-actions/actions';\nimport ToolsMoreMenuGroup from './components/more-menu/tools-more-menu-group';\nimport ViewMoreMenuGroup from './components/more-menu/view-more-menu-group';\nimport ResizableEditor from './components/resizable-editor';\nimport {\n\tmergeBaseAndUserConfigs,\n\tGlobalStylesProvider,\n} from './components/global-styles-provider';\nimport registerDefaultActions from './dataviews/actions';\nimport {\n\tregisterCoreBlockBindingsSources,\n\tbootstrapBlockBindingsSourcesFromServer,\n} from './bindings/api';\n\nconst { store: interfaceStore, ...remainingInterfaceApis } = interfaceApis;\n\nexport const privateApis = {};\nlock( privateApis, {\n\tCreateTemplatePartModal,\n\tBackButton,\n\tEntitiesSavedStatesExtensible,\n\tEditor,\n\tEditorContentSlotFill,\n\tGlobalStylesProvider,\n\tmergeBaseAndUserConfigs,\n\tPluginPostExcerpt,\n\tPreferencesModal,\n\tusePostActions,\n\tToolsMoreMenuGroup,\n\tViewMoreMenuGroup,\n\tResizableEditor,\n\tregisterDefaultActions,\n\tregisterCoreBlockBindingsSources,\n\tbootstrapBlockBindingsSourcesFromServer,\n\n\t// This is a temporary private API while we're updating the site editor to use EditorProvider.\n\tuseBlockEditorSettings,\n\tinterfaceStore,\n\t...remainingInterfaceApis,\n} );\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,KAAKA,aAAa,MAAM,sBAAsB;;AAErD;AACA;AACA;AACA,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,6BAA6B,QAAQ,oCAAoC;AAClF,OAAOC,qBAAqB,MAAM,iDAAiD;AACnF,OAAOC,sBAAsB,MAAM,iDAAiD;AACpF,OAAOC,UAAU,MAAM,iCAAiC;AACxD,OAAOC,uBAAuB,MAAM,yCAAyC;AAC7E,OAAOC,MAAM,MAAM,qBAAqB;AACxC,OAAOC,iBAAiB,MAAM,kCAAkC;AAChE,OAAOC,gBAAgB,MAAM,gCAAgC;AAC7D,SAASC,cAAc,QAAQ,mCAAmC;AAClE,OAAOC,kBAAkB,MAAM,8CAA8C;AAC7E,OAAOC,iBAAiB,MAAM,6CAA6C;AAC3E,OAAOC,eAAe,MAAM,+BAA+B;AAC3D,SACCC,uBAAuB,EACvBC,oBAAoB,QACd,qCAAqC;AAC5C,OAAOC,sBAAsB,MAAM,qBAAqB;AACxD,SACCC,gCAAgC,EAChCC,uCAAuC,QACjC,gBAAgB;AAEvB,MAAM;EAAEC,KAAK,EAAEC,cAAc;EAAE,GAAGC;AAAuB,CAAC,GAAGrB,aAAa;AAE1E,OAAO,MAAMsB,WAAW,GAAG,CAAC,CAAC;AAC7BrB,IAAI,CAAEqB,WAAW,EAAE;EAClBhB,uBAAuB;EACvBD,UAAU;EACVH,6BAA6B;EAC7BK,MAAM;EACNJ,qBAAqB;EACrBY,oBAAoB;EACpBD,uBAAuB;EACvBN,iBAAiB;EACjBC,gBAAgB;EAChBC,cAAc;EACdC,kBAAkB;EAClBC,iBAAiB;EACjBC,eAAe;EACfG,sBAAsB;EACtBC,gCAAgC;EAChCC,uCAAuC;EAEvC;EACAd,sBAAsB;EACtBgB,cAAc;EACd,GAAGC;AACJ,CAAE,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { v4 as uuid } from 'uuid';
|
|
5
|
+
|
|
1
6
|
/**
|
|
2
7
|
* WordPress dependencies
|
|
3
8
|
*/
|
|
4
|
-
import { select } from '@wordpress/data';
|
|
9
|
+
import { select, dispatch } from '@wordpress/data';
|
|
5
10
|
import { uploadMedia } from '@wordpress/media-utils';
|
|
6
11
|
|
|
7
12
|
/**
|
|
@@ -34,18 +39,43 @@ export default function mediaUpload({
|
|
|
34
39
|
getCurrentPost,
|
|
35
40
|
getEditorSettings
|
|
36
41
|
} = select(editorStore);
|
|
42
|
+
const {
|
|
43
|
+
lockPostAutosaving,
|
|
44
|
+
unlockPostAutosaving,
|
|
45
|
+
lockPostSaving,
|
|
46
|
+
unlockPostSaving
|
|
47
|
+
} = dispatch(editorStore);
|
|
37
48
|
const wpAllowedMimeTypes = getEditorSettings().allowedMimeTypes;
|
|
49
|
+
const lockKey = `image-upload-${uuid()}`;
|
|
50
|
+
let imageIsUploading = false;
|
|
38
51
|
maxUploadFileSize = maxUploadFileSize || getEditorSettings().maxUploadFileSize;
|
|
39
52
|
const currentPost = getCurrentPost();
|
|
40
53
|
// Templates and template parts' numerical ID is stored in `wp_id`.
|
|
41
54
|
const currentPostId = typeof currentPost?.id === 'number' ? currentPost.id : currentPost?.wp_id;
|
|
55
|
+
const setSaveLock = () => {
|
|
56
|
+
lockPostSaving(lockKey);
|
|
57
|
+
lockPostAutosaving(lockKey);
|
|
58
|
+
imageIsUploading = true;
|
|
59
|
+
};
|
|
42
60
|
const postData = currentPostId ? {
|
|
43
61
|
post: currentPostId
|
|
44
62
|
} : {};
|
|
63
|
+
const clearSaveLock = () => {
|
|
64
|
+
unlockPostSaving(lockKey);
|
|
65
|
+
unlockPostAutosaving(lockKey);
|
|
66
|
+
imageIsUploading = false;
|
|
67
|
+
};
|
|
45
68
|
uploadMedia({
|
|
46
69
|
allowedTypes,
|
|
47
70
|
filesList,
|
|
48
|
-
onFileChange
|
|
71
|
+
onFileChange: file => {
|
|
72
|
+
if (!imageIsUploading) {
|
|
73
|
+
setSaveLock();
|
|
74
|
+
} else {
|
|
75
|
+
clearSaveLock();
|
|
76
|
+
}
|
|
77
|
+
onFileChange(file);
|
|
78
|
+
},
|
|
49
79
|
additionalData: {
|
|
50
80
|
...postData,
|
|
51
81
|
...additionalData
|
|
@@ -53,7 +83,10 @@ export default function mediaUpload({
|
|
|
53
83
|
maxUploadFileSize,
|
|
54
84
|
onError: ({
|
|
55
85
|
message
|
|
56
|
-
}) =>
|
|
86
|
+
}) => {
|
|
87
|
+
clearSaveLock();
|
|
88
|
+
onError(message);
|
|
89
|
+
},
|
|
57
90
|
wpAllowedMimeTypes
|
|
58
91
|
});
|
|
59
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["select","uploadMedia","store","editorStore","noop","mediaUpload","additionalData","allowedTypes","filesList","maxUploadFileSize","onError","onFileChange","getCurrentPost","getEditorSettings","wpAllowedMimeTypes","allowedMimeTypes","currentPost","currentPostId","id","wp_id","postData","post","message"],"sources":["@wordpress/editor/src/utils/media-upload/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { select } from '@wordpress/data';\nimport { uploadMedia } from '@wordpress/media-utils';\n\n/**\n * Internal dependencies\n */\nimport { store as editorStore } from '../../store';\n\nconst noop = () => {};\n\n/**\n * Upload a media file when the file upload button is activated.\n * Wrapper around mediaUpload() that injects the current post ID.\n *\n * @param {Object} $0 Parameters object passed to the function.\n * @param {?Object} $0.additionalData Additional data to include in the request.\n * @param {string} $0.allowedTypes Array with the types of media that can be uploaded, if unset all types are allowed.\n * @param {Array} $0.filesList List of files.\n * @param {?number} $0.maxUploadFileSize Maximum upload size in bytes allowed for the site.\n * @param {Function} $0.onError Function called when an error happens.\n * @param {Function} $0.onFileChange Function called each time a file or a temporary representation of the file is available.\n */\nexport default function mediaUpload( {\n\tadditionalData = {},\n\tallowedTypes,\n\tfilesList,\n\tmaxUploadFileSize,\n\tonError = noop,\n\tonFileChange,\n} ) {\n\tconst { getCurrentPost, getEditorSettings } = select( editorStore );\n\tconst wpAllowedMimeTypes = getEditorSettings().allowedMimeTypes;\n\tmaxUploadFileSize =\n\t\tmaxUploadFileSize || getEditorSettings().maxUploadFileSize;\n\tconst currentPost = getCurrentPost();\n\t// Templates and template parts' numerical ID is stored in `wp_id`.\n\tconst currentPostId =\n\t\ttypeof currentPost?.id === 'number'\n\t\t\t? currentPost.id\n\t\t\t: currentPost?.wp_id;\n\tconst postData = currentPostId ? { post: currentPostId } : {};\n\n\tuploadMedia( {\n\t\tallowedTypes,\n\t\tfilesList,\n\t\tonFileChange,\n\t\tadditionalData: {\n\t\t\t...postData,\n\t\t\t...additionalData,\n\t\t},\n\t\tmaxUploadFileSize,\n\t\tonError: ( { message } ) =>
|
|
1
|
+
{"version":3,"names":["v4","uuid","select","dispatch","uploadMedia","store","editorStore","noop","mediaUpload","additionalData","allowedTypes","filesList","maxUploadFileSize","onError","onFileChange","getCurrentPost","getEditorSettings","lockPostAutosaving","unlockPostAutosaving","lockPostSaving","unlockPostSaving","wpAllowedMimeTypes","allowedMimeTypes","lockKey","imageIsUploading","currentPost","currentPostId","id","wp_id","setSaveLock","postData","post","clearSaveLock","file","message"],"sources":["@wordpress/editor/src/utils/media-upload/index.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { v4 as uuid } from 'uuid';\n\n/**\n * WordPress dependencies\n */\nimport { select, dispatch } from '@wordpress/data';\nimport { uploadMedia } from '@wordpress/media-utils';\n\n/**\n * Internal dependencies\n */\nimport { store as editorStore } from '../../store';\n\nconst noop = () => {};\n\n/**\n * Upload a media file when the file upload button is activated.\n * Wrapper around mediaUpload() that injects the current post ID.\n *\n * @param {Object} $0 Parameters object passed to the function.\n * @param {?Object} $0.additionalData Additional data to include in the request.\n * @param {string} $0.allowedTypes Array with the types of media that can be uploaded, if unset all types are allowed.\n * @param {Array} $0.filesList List of files.\n * @param {?number} $0.maxUploadFileSize Maximum upload size in bytes allowed for the site.\n * @param {Function} $0.onError Function called when an error happens.\n * @param {Function} $0.onFileChange Function called each time a file or a temporary representation of the file is available.\n */\nexport default function mediaUpload( {\n\tadditionalData = {},\n\tallowedTypes,\n\tfilesList,\n\tmaxUploadFileSize,\n\tonError = noop,\n\tonFileChange,\n} ) {\n\tconst { getCurrentPost, getEditorSettings } = select( editorStore );\n\tconst {\n\t\tlockPostAutosaving,\n\t\tunlockPostAutosaving,\n\t\tlockPostSaving,\n\t\tunlockPostSaving,\n\t} = dispatch( editorStore );\n\n\tconst wpAllowedMimeTypes = getEditorSettings().allowedMimeTypes;\n\tconst lockKey = `image-upload-${ uuid() }`;\n\tlet imageIsUploading = false;\n\tmaxUploadFileSize =\n\t\tmaxUploadFileSize || getEditorSettings().maxUploadFileSize;\n\tconst currentPost = getCurrentPost();\n\t// Templates and template parts' numerical ID is stored in `wp_id`.\n\tconst currentPostId =\n\t\ttypeof currentPost?.id === 'number'\n\t\t\t? currentPost.id\n\t\t\t: currentPost?.wp_id;\n\tconst setSaveLock = () => {\n\t\tlockPostSaving( lockKey );\n\t\tlockPostAutosaving( lockKey );\n\t\timageIsUploading = true;\n\t};\n\n\tconst postData = currentPostId ? { post: currentPostId } : {};\n\tconst clearSaveLock = () => {\n\t\tunlockPostSaving( lockKey );\n\t\tunlockPostAutosaving( lockKey );\n\t\timageIsUploading = false;\n\t};\n\n\tuploadMedia( {\n\t\tallowedTypes,\n\t\tfilesList,\n\t\tonFileChange: ( file ) => {\n\t\t\tif ( ! imageIsUploading ) {\n\t\t\t\tsetSaveLock();\n\t\t\t} else {\n\t\t\t\tclearSaveLock();\n\t\t\t}\n\t\t\tonFileChange( file );\n\t\t},\n\t\tadditionalData: {\n\t\t\t...postData,\n\t\t\t...additionalData,\n\t\t},\n\t\tmaxUploadFileSize,\n\t\tonError: ( { message } ) => {\n\t\t\tclearSaveLock();\n\t\t\tonError( message );\n\t\t},\n\t\twpAllowedMimeTypes,\n\t} );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,IAAIC,IAAI,QAAQ,MAAM;;AAEjC;AACA;AACA;AACA,SAASC,MAAM,EAAEC,QAAQ,QAAQ,iBAAiB;AAClD,SAASC,WAAW,QAAQ,wBAAwB;;AAEpD;AACA;AACA;AACA,SAASC,KAAK,IAAIC,WAAW,QAAQ,aAAa;AAElD,MAAMC,IAAI,GAAGA,CAAA,KAAM,CAAC,CAAC;;AAErB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,WAAWA,CAAE;EACpCC,cAAc,GAAG,CAAC,CAAC;EACnBC,YAAY;EACZC,SAAS;EACTC,iBAAiB;EACjBC,OAAO,GAAGN,IAAI;EACdO;AACD,CAAC,EAAG;EACH,MAAM;IAAEC,cAAc;IAAEC;EAAkB,CAAC,GAAGd,MAAM,CAAEI,WAAY,CAAC;EACnE,MAAM;IACLW,kBAAkB;IAClBC,oBAAoB;IACpBC,cAAc;IACdC;EACD,CAAC,GAAGjB,QAAQ,CAAEG,WAAY,CAAC;EAE3B,MAAMe,kBAAkB,GAAGL,iBAAiB,CAAC,CAAC,CAACM,gBAAgB;EAC/D,MAAMC,OAAO,GAAI,gBAAgBtB,IAAI,CAAC,CAAG,EAAC;EAC1C,IAAIuB,gBAAgB,GAAG,KAAK;EAC5BZ,iBAAiB,GAChBA,iBAAiB,IAAII,iBAAiB,CAAC,CAAC,CAACJ,iBAAiB;EAC3D,MAAMa,WAAW,GAAGV,cAAc,CAAC,CAAC;EACpC;EACA,MAAMW,aAAa,GAClB,OAAOD,WAAW,EAAEE,EAAE,KAAK,QAAQ,GAChCF,WAAW,CAACE,EAAE,GACdF,WAAW,EAAEG,KAAK;EACtB,MAAMC,WAAW,GAAGA,CAAA,KAAM;IACzBV,cAAc,CAAEI,OAAQ,CAAC;IACzBN,kBAAkB,CAAEM,OAAQ,CAAC;IAC7BC,gBAAgB,GAAG,IAAI;EACxB,CAAC;EAED,MAAMM,QAAQ,GAAGJ,aAAa,GAAG;IAAEK,IAAI,EAAEL;EAAc,CAAC,GAAG,CAAC,CAAC;EAC7D,MAAMM,aAAa,GAAGA,CAAA,KAAM;IAC3BZ,gBAAgB,CAAEG,OAAQ,CAAC;IAC3BL,oBAAoB,CAAEK,OAAQ,CAAC;IAC/BC,gBAAgB,GAAG,KAAK;EACzB,CAAC;EAEDpB,WAAW,CAAE;IACZM,YAAY;IACZC,SAAS;IACTG,YAAY,EAAImB,IAAI,IAAM;MACzB,IAAK,CAAET,gBAAgB,EAAG;QACzBK,WAAW,CAAC,CAAC;MACd,CAAC,MAAM;QACNG,aAAa,CAAC,CAAC;MAChB;MACAlB,YAAY,CAAEmB,IAAK,CAAC;IACrB,CAAC;IACDxB,cAAc,EAAE;MACf,GAAGqB,QAAQ;MACX,GAAGrB;IACJ,CAAC;IACDG,iBAAiB;IACjBC,OAAO,EAAEA,CAAE;MAAEqB;IAAQ,CAAC,KAAM;MAC3BF,aAAa,CAAC,CAAC;MACfnB,OAAO,CAAEqB,OAAQ,CAAC;IACnB,CAAC;IACDb;EACD,CAAE,CAAC;AACJ","ignoreList":[]}
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
top: 0;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
.interface-complementary-area p:not(.components-base-control__help) {
|
|
180
|
+
.interface-complementary-area p:not(.components-base-control__help, .components-form-token-field__help) {
|
|
181
181
|
margin-top: 0;
|
|
182
182
|
}
|
|
183
183
|
.interface-complementary-area h2 {
|
|
@@ -638,10 +638,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
638
638
|
display: none;
|
|
639
639
|
}
|
|
640
640
|
|
|
641
|
-
.editor-collapsible-block-toolbar__toggle {
|
|
642
|
-
margin-right: 2px;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
641
|
.editor-create-template-part-modal {
|
|
646
642
|
z-index: 1000001;
|
|
647
643
|
}
|
|
@@ -711,7 +707,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
711
707
|
min-width: 0;
|
|
712
708
|
background: #f0f0f0;
|
|
713
709
|
border-radius: 4px;
|
|
714
|
-
width: min(100%,
|
|
710
|
+
width: min(100%, 450px);
|
|
715
711
|
}
|
|
716
712
|
.editor-document-bar:hover {
|
|
717
713
|
background-color: #e0e0e0;
|
|
@@ -729,11 +725,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
729
725
|
.editor-document-bar .components-button:hover {
|
|
730
726
|
background: #e0e0e0;
|
|
731
727
|
}
|
|
732
|
-
@media (min-width: 960px) {
|
|
733
|
-
.editor-document-bar {
|
|
734
|
-
width: min(100%, 450px);
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
728
|
|
|
738
729
|
.editor-document-bar__command {
|
|
739
730
|
flex-grow: 1;
|
|
@@ -937,9 +928,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
937
928
|
.editor-document-tools__left {
|
|
938
929
|
display: inline-flex;
|
|
939
930
|
align-items: center;
|
|
940
|
-
padding-right: 16px;
|
|
941
931
|
gap: 8px;
|
|
942
|
-
|
|
932
|
+
}
|
|
933
|
+
.editor-document-tools__left:not(:last-child) {
|
|
934
|
+
margin-inline-end: 8px;
|
|
943
935
|
}
|
|
944
936
|
|
|
945
937
|
.editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.has-icon {
|
|
@@ -962,6 +954,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
962
954
|
height: 61px;
|
|
963
955
|
}
|
|
964
956
|
|
|
957
|
+
.editor-visual-editor {
|
|
958
|
+
flex: 1 0 auto;
|
|
959
|
+
}
|
|
960
|
+
|
|
965
961
|
.components-editor-notices__dismissible,
|
|
966
962
|
.components-editor-notices__pinned {
|
|
967
963
|
position: relative;
|
|
@@ -1025,12 +1021,26 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1025
1021
|
.editor-header {
|
|
1026
1022
|
height: 60px;
|
|
1027
1023
|
background: #fff;
|
|
1028
|
-
display:
|
|
1029
|
-
|
|
1024
|
+
display: grid;
|
|
1025
|
+
grid-auto-flow: row;
|
|
1026
|
+
grid-template: auto/60px minmax(0, max-content) minmax(min-content, 1fr) 60px;
|
|
1030
1027
|
align-items: center;
|
|
1031
1028
|
max-width: 100vw;
|
|
1032
1029
|
justify-content: space-between;
|
|
1033
1030
|
}
|
|
1031
|
+
.editor-header:has(> .editor-header__center) {
|
|
1032
|
+
grid-template: auto/60px min-content 1fr min-content 60px;
|
|
1033
|
+
}
|
|
1034
|
+
@media (min-width: 782px) {
|
|
1035
|
+
.editor-header:has(> .editor-header__center) {
|
|
1036
|
+
grid-template: auto/60px minmax(min-content, 1fr) 2fr minmax(min-content, 1fr) 60px;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
@media (min-width: 480px) {
|
|
1040
|
+
.editor-header {
|
|
1041
|
+
gap: 16px;
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1034
1044
|
@media (min-width: 280px) {
|
|
1035
1045
|
.editor-header {
|
|
1036
1046
|
flex-wrap: nowrap;
|
|
@@ -1038,16 +1048,26 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1038
1048
|
}
|
|
1039
1049
|
|
|
1040
1050
|
.editor-header__toolbar {
|
|
1051
|
+
grid-column: 1/3;
|
|
1041
1052
|
display: flex;
|
|
1042
|
-
|
|
1043
|
-
flex-grow: 3;
|
|
1044
|
-
overflow: hidden;
|
|
1045
|
-
padding: 2px 0;
|
|
1053
|
+
min-width: 0;
|
|
1046
1054
|
align-items: center;
|
|
1055
|
+
clip-path: inset(-2px);
|
|
1047
1056
|
}
|
|
1048
|
-
|
|
1057
|
+
.editor-header__toolbar > :first-child {
|
|
1058
|
+
margin-inline: 16px 0;
|
|
1059
|
+
}
|
|
1060
|
+
.editor-header__back-button + .editor-header__toolbar {
|
|
1061
|
+
grid-column: 2/3;
|
|
1062
|
+
}
|
|
1063
|
+
@media (min-width: 480px) {
|
|
1064
|
+
.editor-header__back-button + .editor-header__toolbar > :first-child {
|
|
1065
|
+
margin-inline: 0;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
@media (min-width: 480px) {
|
|
1049
1069
|
.editor-header__toolbar {
|
|
1050
|
-
|
|
1070
|
+
clip-path: none;
|
|
1051
1071
|
}
|
|
1052
1072
|
}
|
|
1053
1073
|
.editor-header__toolbar .table-of-contents {
|
|
@@ -1058,27 +1078,45 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1058
1078
|
display: block;
|
|
1059
1079
|
}
|
|
1060
1080
|
}
|
|
1081
|
+
.editor-header__toolbar .editor-collapsible-block-toolbar {
|
|
1082
|
+
margin-inline: 8px 0;
|
|
1083
|
+
}
|
|
1084
|
+
.editor-header__toolbar .editor-collapsible-block-toolbar.is-collapsed ~ .editor-collapsible-block-toolbar__toggle {
|
|
1085
|
+
margin-inline: 8px 0;
|
|
1086
|
+
}
|
|
1061
1087
|
|
|
1062
1088
|
.editor-header__center {
|
|
1063
|
-
|
|
1089
|
+
grid-column: 3/4;
|
|
1064
1090
|
display: flex;
|
|
1065
1091
|
justify-content: center;
|
|
1092
|
+
align-items: center;
|
|
1066
1093
|
min-width: 0;
|
|
1094
|
+
clip-path: inset(-2px);
|
|
1067
1095
|
}
|
|
1068
|
-
|
|
1069
|
-
|
|
1096
|
+
@media (max-width: 479px) {
|
|
1097
|
+
.editor-header__center > :first-child {
|
|
1098
|
+
margin-inline-start: 8px;
|
|
1099
|
+
}
|
|
1100
|
+
.editor-header__center > :last-child {
|
|
1101
|
+
margin-inline-end: 8px;
|
|
1102
|
+
}
|
|
1070
1103
|
}
|
|
1071
1104
|
|
|
1072
1105
|
/**
|
|
1073
1106
|
* Buttons on the right side
|
|
1074
1107
|
*/
|
|
1075
1108
|
.editor-header__settings {
|
|
1109
|
+
grid-column: 3/-1;
|
|
1110
|
+
justify-self: end;
|
|
1076
1111
|
display: inline-flex;
|
|
1077
1112
|
align-items: center;
|
|
1078
1113
|
flex-wrap: nowrap;
|
|
1079
1114
|
padding-left: 4px;
|
|
1080
1115
|
gap: 8px;
|
|
1081
1116
|
}
|
|
1117
|
+
.editor-header:has(> .editor-header__center) .editor-header__settings {
|
|
1118
|
+
grid-column: 4/-1;
|
|
1119
|
+
}
|
|
1082
1120
|
@media (min-width: 600px) {
|
|
1083
1121
|
.editor-header__settings {
|
|
1084
1122
|
padding-left: 8px;
|
|
@@ -1236,12 +1274,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1236
1274
|
}
|
|
1237
1275
|
|
|
1238
1276
|
.editor-inserter-sidebar__content {
|
|
1239
|
-
height:
|
|
1240
|
-
}
|
|
1241
|
-
@media (min-width: 782px) {
|
|
1242
|
-
.editor-inserter-sidebar__content {
|
|
1243
|
-
height: 100%;
|
|
1244
|
-
}
|
|
1277
|
+
height: 100%;
|
|
1245
1278
|
}
|
|
1246
1279
|
|
|
1247
1280
|
.editor-keyboard-shortcut-help-modal__section {
|
|
@@ -1671,7 +1704,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1671
1704
|
white-space: normal;
|
|
1672
1705
|
text-wrap: balance;
|
|
1673
1706
|
text-wrap: pretty;
|
|
1674
|
-
height: auto;
|
|
1675
1707
|
min-height: 32px;
|
|
1676
1708
|
}
|
|
1677
1709
|
.editor-post-panel__row-control .components-dropdown {
|
|
@@ -2170,6 +2202,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2170
2202
|
height: 24px;
|
|
2171
2203
|
min-width: 24px;
|
|
2172
2204
|
max-width: 24px;
|
|
2205
|
+
position: relative;
|
|
2173
2206
|
margin-top: 2px;
|
|
2174
2207
|
}
|
|
2175
2208
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -2202,24 +2235,28 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2202
2235
|
}
|
|
2203
2236
|
@media (min-width: 600px) {
|
|
2204
2237
|
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
|
|
2205
|
-
height:
|
|
2206
|
-
width:
|
|
2207
|
-
min-width:
|
|
2208
|
-
max-width:
|
|
2238
|
+
height: 16px;
|
|
2239
|
+
width: 16px;
|
|
2240
|
+
min-width: 16px;
|
|
2241
|
+
max-width: 16px;
|
|
2209
2242
|
}
|
|
2210
2243
|
}
|
|
2211
2244
|
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked::before {
|
|
2212
2245
|
box-sizing: inherit;
|
|
2213
|
-
width:
|
|
2214
|
-
height:
|
|
2215
|
-
|
|
2246
|
+
width: 12px;
|
|
2247
|
+
height: 12px;
|
|
2248
|
+
position: absolute;
|
|
2249
|
+
top: 50%;
|
|
2250
|
+
right: 50%;
|
|
2251
|
+
transform: translate(50%, -50%);
|
|
2216
2252
|
margin: 0;
|
|
2217
2253
|
background-color: #fff;
|
|
2218
2254
|
border: 4px solid #fff;
|
|
2219
2255
|
}
|
|
2220
2256
|
@media (min-width: 600px) {
|
|
2221
2257
|
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked::before {
|
|
2222
|
-
|
|
2258
|
+
width: 8px;
|
|
2259
|
+
height: 8px;
|
|
2223
2260
|
}
|
|
2224
2261
|
}
|
|
2225
2262
|
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus {
|
|
@@ -2228,7 +2265,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2228
2265
|
}
|
|
2229
2266
|
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked {
|
|
2230
2267
|
background: var(--wp-admin-theme-color);
|
|
2231
|
-
border
|
|
2268
|
+
border: none;
|
|
2232
2269
|
}
|
|
2233
2270
|
.editor-post-visibility__fieldset .editor-post-visibility__info {
|
|
2234
2271
|
color: #757575;
|
|
@@ -2237,7 +2274,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2237
2274
|
}
|
|
2238
2275
|
@media (min-width: 600px) {
|
|
2239
2276
|
.editor-post-visibility__fieldset .editor-post-visibility__info {
|
|
2240
|
-
margin-right:
|
|
2277
|
+
margin-right: 28px;
|
|
2241
2278
|
}
|
|
2242
2279
|
}
|
|
2243
2280
|
.editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info {
|
|
@@ -2607,7 +2644,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2607
2644
|
|
|
2608
2645
|
.editor-visual-editor {
|
|
2609
2646
|
position: relative;
|
|
2610
|
-
height: 100%;
|
|
2611
2647
|
display: block;
|
|
2612
2648
|
background-color: #ddd;
|
|
2613
2649
|
isolation: isolate;
|
package/build-style/style.css
CHANGED
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
top: 0;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
.interface-complementary-area p:not(.components-base-control__help) {
|
|
180
|
+
.interface-complementary-area p:not(.components-base-control__help, .components-form-token-field__help) {
|
|
181
181
|
margin-top: 0;
|
|
182
182
|
}
|
|
183
183
|
.interface-complementary-area h2 {
|
|
@@ -638,10 +638,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
638
638
|
display: none;
|
|
639
639
|
}
|
|
640
640
|
|
|
641
|
-
.editor-collapsible-block-toolbar__toggle {
|
|
642
|
-
margin-left: 2px;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
641
|
.editor-create-template-part-modal {
|
|
646
642
|
z-index: 1000001;
|
|
647
643
|
}
|
|
@@ -711,7 +707,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
711
707
|
min-width: 0;
|
|
712
708
|
background: #f0f0f0;
|
|
713
709
|
border-radius: 4px;
|
|
714
|
-
width: min(100%,
|
|
710
|
+
width: min(100%, 450px);
|
|
715
711
|
}
|
|
716
712
|
.editor-document-bar:hover {
|
|
717
713
|
background-color: #e0e0e0;
|
|
@@ -729,11 +725,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
729
725
|
.editor-document-bar .components-button:hover {
|
|
730
726
|
background: #e0e0e0;
|
|
731
727
|
}
|
|
732
|
-
@media (min-width: 960px) {
|
|
733
|
-
.editor-document-bar {
|
|
734
|
-
width: min(100%, 450px);
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
728
|
|
|
738
729
|
.editor-document-bar__command {
|
|
739
730
|
flex-grow: 1;
|
|
@@ -937,9 +928,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
937
928
|
.editor-document-tools__left {
|
|
938
929
|
display: inline-flex;
|
|
939
930
|
align-items: center;
|
|
940
|
-
padding-left: 16px;
|
|
941
931
|
gap: 8px;
|
|
942
|
-
|
|
932
|
+
}
|
|
933
|
+
.editor-document-tools__left:not(:last-child) {
|
|
934
|
+
margin-inline-end: 8px;
|
|
943
935
|
}
|
|
944
936
|
|
|
945
937
|
.editor-document-tools .editor-document-tools__left > .editor-document-tools__inserter-toggle.has-icon {
|
|
@@ -962,6 +954,10 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
962
954
|
height: 61px;
|
|
963
955
|
}
|
|
964
956
|
|
|
957
|
+
.editor-visual-editor {
|
|
958
|
+
flex: 1 0 auto;
|
|
959
|
+
}
|
|
960
|
+
|
|
965
961
|
.components-editor-notices__dismissible,
|
|
966
962
|
.components-editor-notices__pinned {
|
|
967
963
|
position: relative;
|
|
@@ -1025,12 +1021,26 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1025
1021
|
.editor-header {
|
|
1026
1022
|
height: 60px;
|
|
1027
1023
|
background: #fff;
|
|
1028
|
-
display:
|
|
1029
|
-
|
|
1024
|
+
display: grid;
|
|
1025
|
+
grid-auto-flow: row;
|
|
1026
|
+
grid-template: auto/60px minmax(0, max-content) minmax(min-content, 1fr) 60px;
|
|
1030
1027
|
align-items: center;
|
|
1031
1028
|
max-width: 100vw;
|
|
1032
1029
|
justify-content: space-between;
|
|
1033
1030
|
}
|
|
1031
|
+
.editor-header:has(> .editor-header__center) {
|
|
1032
|
+
grid-template: auto/60px min-content 1fr min-content 60px;
|
|
1033
|
+
}
|
|
1034
|
+
@media (min-width: 782px) {
|
|
1035
|
+
.editor-header:has(> .editor-header__center) {
|
|
1036
|
+
grid-template: auto/60px minmax(min-content, 1fr) 2fr minmax(min-content, 1fr) 60px;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
@media (min-width: 480px) {
|
|
1040
|
+
.editor-header {
|
|
1041
|
+
gap: 16px;
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1034
1044
|
@media (min-width: 280px) {
|
|
1035
1045
|
.editor-header {
|
|
1036
1046
|
flex-wrap: nowrap;
|
|
@@ -1038,16 +1048,26 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1038
1048
|
}
|
|
1039
1049
|
|
|
1040
1050
|
.editor-header__toolbar {
|
|
1051
|
+
grid-column: 1/3;
|
|
1041
1052
|
display: flex;
|
|
1042
|
-
|
|
1043
|
-
flex-grow: 3;
|
|
1044
|
-
overflow: hidden;
|
|
1045
|
-
padding: 2px 0;
|
|
1053
|
+
min-width: 0;
|
|
1046
1054
|
align-items: center;
|
|
1055
|
+
clip-path: inset(-2px);
|
|
1047
1056
|
}
|
|
1048
|
-
|
|
1057
|
+
.editor-header__toolbar > :first-child {
|
|
1058
|
+
margin-inline: 16px 0;
|
|
1059
|
+
}
|
|
1060
|
+
.editor-header__back-button + .editor-header__toolbar {
|
|
1061
|
+
grid-column: 2/3;
|
|
1062
|
+
}
|
|
1063
|
+
@media (min-width: 480px) {
|
|
1064
|
+
.editor-header__back-button + .editor-header__toolbar > :first-child {
|
|
1065
|
+
margin-inline: 0;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
@media (min-width: 480px) {
|
|
1049
1069
|
.editor-header__toolbar {
|
|
1050
|
-
|
|
1070
|
+
clip-path: none;
|
|
1051
1071
|
}
|
|
1052
1072
|
}
|
|
1053
1073
|
.editor-header__toolbar .table-of-contents {
|
|
@@ -1058,27 +1078,45 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1058
1078
|
display: block;
|
|
1059
1079
|
}
|
|
1060
1080
|
}
|
|
1081
|
+
.editor-header__toolbar .editor-collapsible-block-toolbar {
|
|
1082
|
+
margin-inline: 8px 0;
|
|
1083
|
+
}
|
|
1084
|
+
.editor-header__toolbar .editor-collapsible-block-toolbar.is-collapsed ~ .editor-collapsible-block-toolbar__toggle {
|
|
1085
|
+
margin-inline: 8px 0;
|
|
1086
|
+
}
|
|
1061
1087
|
|
|
1062
1088
|
.editor-header__center {
|
|
1063
|
-
|
|
1089
|
+
grid-column: 3/4;
|
|
1064
1090
|
display: flex;
|
|
1065
1091
|
justify-content: center;
|
|
1092
|
+
align-items: center;
|
|
1066
1093
|
min-width: 0;
|
|
1094
|
+
clip-path: inset(-2px);
|
|
1067
1095
|
}
|
|
1068
|
-
|
|
1069
|
-
|
|
1096
|
+
@media (max-width: 479px) {
|
|
1097
|
+
.editor-header__center > :first-child {
|
|
1098
|
+
margin-inline-start: 8px;
|
|
1099
|
+
}
|
|
1100
|
+
.editor-header__center > :last-child {
|
|
1101
|
+
margin-inline-end: 8px;
|
|
1102
|
+
}
|
|
1070
1103
|
}
|
|
1071
1104
|
|
|
1072
1105
|
/**
|
|
1073
1106
|
* Buttons on the right side
|
|
1074
1107
|
*/
|
|
1075
1108
|
.editor-header__settings {
|
|
1109
|
+
grid-column: 3/-1;
|
|
1110
|
+
justify-self: end;
|
|
1076
1111
|
display: inline-flex;
|
|
1077
1112
|
align-items: center;
|
|
1078
1113
|
flex-wrap: nowrap;
|
|
1079
1114
|
padding-right: 4px;
|
|
1080
1115
|
gap: 8px;
|
|
1081
1116
|
}
|
|
1117
|
+
.editor-header:has(> .editor-header__center) .editor-header__settings {
|
|
1118
|
+
grid-column: 4/-1;
|
|
1119
|
+
}
|
|
1082
1120
|
@media (min-width: 600px) {
|
|
1083
1121
|
.editor-header__settings {
|
|
1084
1122
|
padding-right: 8px;
|
|
@@ -1236,12 +1274,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1236
1274
|
}
|
|
1237
1275
|
|
|
1238
1276
|
.editor-inserter-sidebar__content {
|
|
1239
|
-
height:
|
|
1240
|
-
}
|
|
1241
|
-
@media (min-width: 782px) {
|
|
1242
|
-
.editor-inserter-sidebar__content {
|
|
1243
|
-
height: 100%;
|
|
1244
|
-
}
|
|
1277
|
+
height: 100%;
|
|
1245
1278
|
}
|
|
1246
1279
|
|
|
1247
1280
|
.editor-keyboard-shortcut-help-modal__section {
|
|
@@ -1671,7 +1704,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
1671
1704
|
white-space: normal;
|
|
1672
1705
|
text-wrap: balance;
|
|
1673
1706
|
text-wrap: pretty;
|
|
1674
|
-
height: auto;
|
|
1675
1707
|
min-height: 32px;
|
|
1676
1708
|
}
|
|
1677
1709
|
.editor-post-panel__row-control .components-dropdown {
|
|
@@ -2174,6 +2206,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2174
2206
|
height: 24px;
|
|
2175
2207
|
min-width: 24px;
|
|
2176
2208
|
max-width: 24px;
|
|
2209
|
+
position: relative;
|
|
2177
2210
|
margin-top: 2px;
|
|
2178
2211
|
}
|
|
2179
2212
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -2206,24 +2239,28 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2206
2239
|
}
|
|
2207
2240
|
@media (min-width: 600px) {
|
|
2208
2241
|
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio] {
|
|
2209
|
-
height:
|
|
2210
|
-
width:
|
|
2211
|
-
min-width:
|
|
2212
|
-
max-width:
|
|
2242
|
+
height: 16px;
|
|
2243
|
+
width: 16px;
|
|
2244
|
+
min-width: 16px;
|
|
2245
|
+
max-width: 16px;
|
|
2213
2246
|
}
|
|
2214
2247
|
}
|
|
2215
2248
|
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked::before {
|
|
2216
2249
|
box-sizing: inherit;
|
|
2217
|
-
width:
|
|
2218
|
-
height:
|
|
2219
|
-
|
|
2250
|
+
width: 12px;
|
|
2251
|
+
height: 12px;
|
|
2252
|
+
position: absolute;
|
|
2253
|
+
top: 50%;
|
|
2254
|
+
left: 50%;
|
|
2255
|
+
transform: translate(-50%, -50%);
|
|
2220
2256
|
margin: 0;
|
|
2221
2257
|
background-color: #fff;
|
|
2222
2258
|
border: 4px solid #fff;
|
|
2223
2259
|
}
|
|
2224
2260
|
@media (min-width: 600px) {
|
|
2225
2261
|
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked::before {
|
|
2226
|
-
|
|
2262
|
+
width: 8px;
|
|
2263
|
+
height: 8px;
|
|
2227
2264
|
}
|
|
2228
2265
|
}
|
|
2229
2266
|
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus {
|
|
@@ -2232,7 +2269,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2232
2269
|
}
|
|
2233
2270
|
.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked {
|
|
2234
2271
|
background: var(--wp-admin-theme-color);
|
|
2235
|
-
border
|
|
2272
|
+
border: none;
|
|
2236
2273
|
}
|
|
2237
2274
|
.editor-post-visibility__fieldset .editor-post-visibility__info {
|
|
2238
2275
|
color: #757575;
|
|
@@ -2241,7 +2278,7 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2241
2278
|
}
|
|
2242
2279
|
@media (min-width: 600px) {
|
|
2243
2280
|
.editor-post-visibility__fieldset .editor-post-visibility__info {
|
|
2244
|
-
margin-left:
|
|
2281
|
+
margin-left: 28px;
|
|
2245
2282
|
}
|
|
2246
2283
|
}
|
|
2247
2284
|
.editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info {
|
|
@@ -2611,7 +2648,6 @@ textarea.editor-post-text-editor:-ms-input-placeholder {
|
|
|
2611
2648
|
|
|
2612
2649
|
.editor-visual-editor {
|
|
2613
2650
|
position: relative;
|
|
2614
|
-
height: 100%;
|
|
2615
2651
|
display: block;
|
|
2616
2652
|
background-color: #ddd;
|
|
2617
2653
|
isolation: isolate;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function to register core block bindings sources provided by the editor.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```js
|
|
6
|
+
* import { registerCoreBlockBindingsSources } from '@wordpress/editor';
|
|
7
|
+
*
|
|
8
|
+
* registerCoreBlockBindingsSources();
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export function registerCoreBlockBindingsSources(): void;
|
|
12
|
+
/**
|
|
13
|
+
* Function to bootstrap core block bindings sources defined in the server.
|
|
14
|
+
*
|
|
15
|
+
* @param {Object} sources Object containing the sources to bootstrap.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```js
|
|
19
|
+
* import { bootstrapBlockBindingsSourcesFromServer } from '@wordpress/editor';
|
|
20
|
+
*
|
|
21
|
+
* bootstrapBlockBindingsSourcesFromServer( sources );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export function bootstrapBlockBindingsSourcesFromServer(sources: Object): void;
|
|
25
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/bindings/api.js"],"names":[],"mappings":"AAgBA;;;;;;;;;GASG;AACH,yDAIC;AAED;;;;;;;;;;;GAWG;AACH,iEATW,MAAM,QAqBhB"}
|