@wordpress/editor 14.9.0 → 14.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/build/bindings/api.js +0 -29
- package/build/bindings/api.js.map +1 -1
- package/build/components/autocompleters/user.js.map +1 -1
- package/build/components/block-manager/index.js +2 -2
- package/build/components/block-manager/index.js.map +1 -1
- package/build/components/commands/index.js.map +1 -1
- package/build/components/create-template-part-modal/index.js.map +1 -1
- package/build/components/create-template-part-modal/utils.js.map +1 -1
- package/build/components/document-outline/index.js.map +1 -1
- package/build/components/document-outline/item.js.map +1 -1
- package/build/components/document-tools/index.js +1 -1
- package/build/components/document-tools/index.js.map +1 -1
- package/build/components/editor-interface/index.js +1 -12
- package/build/components/editor-interface/index.js.map +1 -1
- package/build/components/entities-saved-states/index.js +1 -1
- package/build/components/entities-saved-states/index.js.map +1 -1
- package/build/components/media-categories/index.js.map +1 -1
- package/build/components/page-attributes/parent.js +1 -1
- package/build/components/page-attributes/parent.js.map +1 -1
- package/build/components/plugin-document-setting-panel/index.js.map +1 -1
- package/build/components/post-actions/index.js.map +1 -1
- package/build/components/post-content-information/index.js +1 -1
- package/build/components/post-content-information/index.js.map +1 -1
- package/build/components/post-featured-image/index.js.map +1 -1
- package/build/components/post-format/index.js +1 -1
- package/build/components/post-format/index.js.map +1 -1
- package/build/components/post-last-revision/index.js +1 -1
- package/build/components/post-last-revision/index.js.map +1 -1
- package/build/components/post-locked-modal/index.js +2 -2
- package/build/components/post-locked-modal/index.js.map +1 -1
- package/build/components/post-preview-button/index.js +1 -1
- package/build/components/post-preview-button/index.js.map +1 -1
- package/build/components/post-publish-button/index.js.map +1 -1
- package/build/components/post-publish-panel/maybe-post-format-panel.js +1 -1
- package/build/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
- package/build/components/post-publish-panel/maybe-upload-media.js +1 -0
- package/build/components/post-publish-panel/maybe-upload-media.js.map +1 -1
- package/build/components/post-publish-panel/media-util.js +1 -0
- package/build/components/post-publish-panel/media-util.js.map +1 -1
- package/build/components/post-publish-panel/postpublish.js +1 -1
- package/build/components/post-publish-panel/postpublish.js.map +1 -1
- package/build/components/post-schedule/label.js.map +1 -1
- package/build/components/post-taxonomies/flat-term-selector.js +4 -4
- package/build/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build/components/post-taxonomies/hierarchical-term-selector.js +3 -2
- package/build/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
- package/build/components/post-taxonomies/index.js +1 -1
- package/build/components/post-taxonomies/index.js.map +1 -1
- package/build/components/post-taxonomies/panel.js.map +1 -1
- package/build/components/post-template/classic-theme.js +2 -4
- package/build/components/post-template/classic-theme.js.map +1 -1
- package/build/components/post-text-editor/index.js.map +1 -1
- package/build/components/post-title/index.js +15 -19
- package/build/components/post-title/index.js.map +1 -1
- package/build/components/post-title/index.native.js +2 -2
- package/build/components/post-title/index.native.js.map +1 -1
- package/build/components/post-url/index.js +76 -63
- package/build/components/post-url/index.js.map +1 -1
- package/build/components/post-url/panel.js +46 -26
- package/build/components/post-url/panel.js.map +1 -1
- package/build/components/post-visibility/index.js.map +1 -1
- package/build/components/preferences-modal/index.js.map +1 -1
- package/build/components/preview-dropdown/index.js.map +1 -1
- package/build/components/provider/index.js +1 -1
- package/build/components/provider/index.js.map +1 -1
- package/build/components/resizable-editor/resize-handle.js.map +1 -1
- package/build/components/time-to-read/index.js +1 -1
- package/build/components/time-to-read/index.js.map +1 -1
- package/build/components/visual-editor/edit-template-blocks-notification.js +4 -1
- package/build/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build/components/visual-editor/index.js +4 -3
- package/build/components/visual-editor/index.js.map +1 -1
- package/build/components/visual-editor/use-select-nearest-editable-block.js.map +1 -1
- package/build/dataviews/actions/duplicate-template-part.js +1 -1
- package/build/dataviews/actions/duplicate-template-part.js.map +1 -1
- package/build/private-apis.js +0 -1
- package/build/private-apis.js.map +1 -1
- package/build/store/actions.js +26 -1
- package/build/store/actions.js.map +1 -1
- package/build/store/constants.js +1 -0
- package/build/store/constants.js.map +1 -1
- package/build/store/local-autosave.js.map +1 -1
- package/build/store/private-actions.js +7 -6
- package/build/store/private-actions.js.map +1 -1
- package/build/store/selectors.js +21 -0
- package/build/store/selectors.js.map +1 -1
- package/build/utils/media-upload/index.js.map +1 -1
- package/build-module/bindings/api.js +1 -29
- package/build-module/bindings/api.js.map +1 -1
- package/build-module/components/autocompleters/user.js +1 -3
- package/build-module/components/autocompleters/user.js.map +1 -1
- package/build-module/components/block-manager/category.js +1 -2
- package/build-module/components/block-manager/category.js.map +1 -1
- package/build-module/components/block-manager/checklist.js +1 -2
- package/build-module/components/block-manager/checklist.js.map +1 -1
- package/build-module/components/block-manager/index.js +3 -4
- package/build-module/components/block-manager/index.js.map +1 -1
- package/build-module/components/block-settings-menu/content-only-settings-menu.js +1 -3
- package/build-module/components/block-settings-menu/content-only-settings-menu.js.map +1 -1
- package/build-module/components/blog-title/index.js +1 -3
- package/build-module/components/blog-title/index.js.map +1 -1
- package/build-module/components/collapsible-block-toolbar/index.js +1 -3
- package/build-module/components/collapsible-block-toolbar/index.js.map +1 -1
- package/build-module/components/commands/index.js.map +1 -1
- package/build-module/components/create-template-part-modal/index.js +1 -2
- package/build-module/components/create-template-part-modal/index.js.map +1 -1
- package/build-module/components/create-template-part-modal/utils.js.map +1 -1
- package/build-module/components/document-bar/index.js +1 -2
- package/build-module/components/document-bar/index.js.map +1 -1
- package/build-module/components/document-outline/index.js +1 -2
- package/build-module/components/document-outline/index.js.map +1 -1
- package/build-module/components/document-outline/item.js +1 -2
- package/build-module/components/document-outline/item.js.map +1 -1
- package/build-module/components/document-tools/index.js +2 -4
- package/build-module/components/document-tools/index.js.map +1 -1
- package/build-module/components/editor/index.js +1 -3
- package/build-module/components/editor/index.js.map +1 -1
- package/build-module/components/editor-help/add-blocks.native.js +1 -3
- package/build-module/components/editor-help/add-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/customize-blocks.native.js +1 -3
- package/build-module/components/editor-help/customize-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/help-detail-navigation-screen.native.js +1 -2
- package/build-module/components/editor-help/help-detail-navigation-screen.native.js.map +1 -1
- package/build-module/components/editor-help/index.native.js +1 -3
- package/build-module/components/editor-help/index.native.js.map +1 -1
- package/build-module/components/editor-help/intro-to-blocks.native.js +1 -3
- package/build-module/components/editor-help/intro-to-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/move-blocks.native.js +1 -3
- package/build-module/components/editor-help/move-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/remove-blocks.native.js +1 -3
- package/build-module/components/editor-help/remove-blocks.native.js.map +1 -1
- package/build-module/components/editor-help/view-sections.native.js +1 -2
- package/build-module/components/editor-help/view-sections.native.js.map +1 -1
- package/build-module/components/editor-interface/index.js +2 -15
- package/build-module/components/editor-interface/index.js.map +1 -1
- package/build-module/components/editor-notices/index.js +1 -3
- package/build-module/components/editor-notices/index.js.map +1 -1
- package/build-module/components/entities-saved-states/entity-record-item.js +1 -3
- package/build-module/components/entities-saved-states/entity-record-item.js.map +1 -1
- package/build-module/components/entities-saved-states/entity-type-list.js +1 -2
- package/build-module/components/entities-saved-states/entity-type-list.js.map +1 -1
- package/build-module/components/entities-saved-states/index.js +2 -3
- package/build-module/components/entities-saved-states/index.js.map +1 -1
- package/build-module/components/error-boundary/index.native.js +1 -2
- package/build-module/components/error-boundary/index.native.js.map +1 -1
- package/build-module/components/header/index.js +1 -2
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -2
- package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js +1 -3
- package/build-module/components/keyboard-shortcut-help-modal/shortcut.js.map +1 -1
- package/build-module/components/list-view-sidebar/list-view-outline.js +1 -3
- package/build-module/components/list-view-sidebar/list-view-outline.js.map +1 -1
- package/build-module/components/media-categories/index.js.map +1 -1
- package/build-module/components/more-menu/index.js +1 -3
- package/build-module/components/more-menu/index.js.map +1 -1
- package/build-module/components/offline-status/index.native.js +1 -2
- package/build-module/components/offline-status/index.native.js.map +1 -1
- package/build-module/components/page-attributes/parent.js +2 -3
- package/build-module/components/page-attributes/parent.js.map +1 -1
- package/build-module/components/plugin-document-setting-panel/index.js +1 -3
- package/build-module/components/plugin-document-setting-panel/index.js.map +1 -1
- package/build-module/components/post-actions/index.js +1 -3
- package/build-module/components/post-actions/index.js.map +1 -1
- package/build-module/components/post-author/panel.js +1 -2
- package/build-module/components/post-author/panel.js.map +1 -1
- package/build-module/components/post-card-panel/index.js +1 -2
- package/build-module/components/post-card-panel/index.js.map +1 -1
- package/build-module/components/post-content-information/index.js +1 -1
- package/build-module/components/post-content-information/index.js.map +1 -1
- package/build-module/components/post-discussion/panel.js +1 -2
- package/build-module/components/post-discussion/panel.js.map +1 -1
- package/build-module/components/post-excerpt/panel.js +1 -3
- package/build-module/components/post-excerpt/panel.js.map +1 -1
- package/build-module/components/post-featured-image/index.js +1 -2
- package/build-module/components/post-featured-image/index.js.map +1 -1
- package/build-module/components/post-format/index.js +2 -3
- package/build-module/components/post-format/index.js.map +1 -1
- package/build-module/components/post-format/panel.js +1 -2
- package/build-module/components/post-format/panel.js.map +1 -1
- package/build-module/components/post-last-revision/index.js +1 -1
- package/build-module/components/post-last-revision/index.js.map +1 -1
- package/build-module/components/post-locked-modal/index.js +3 -5
- package/build-module/components/post-locked-modal/index.js.map +1 -1
- package/build-module/components/post-panel-row/index.js +1 -2
- package/build-module/components/post-panel-row/index.js.map +1 -1
- package/build-module/components/post-preview-button/index.js +2 -4
- package/build-module/components/post-preview-button/index.js.map +1 -1
- package/build-module/components/post-publish-button/index.js +1 -2
- package/build-module/components/post-publish-button/index.js.map +1 -1
- package/build-module/components/post-publish-panel/index.js +1 -3
- package/build-module/components/post-publish-panel/index.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-category-panel.js +1 -2
- package/build-module/components/post-publish-panel/maybe-category-panel.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-post-format-panel.js +2 -3
- package/build-module/components/post-publish-panel/maybe-post-format-panel.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-tags-panel.js +1 -2
- package/build-module/components/post-publish-panel/maybe-tags-panel.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-upload-media.js +2 -2
- package/build-module/components/post-publish-panel/maybe-upload-media.js.map +1 -1
- package/build-module/components/post-publish-panel/media-util.js +1 -0
- package/build-module/components/post-publish-panel/media-util.js.map +1 -1
- package/build-module/components/post-publish-panel/postpublish.js +2 -4
- package/build-module/components/post-publish-panel/postpublish.js.map +1 -1
- package/build-module/components/post-publish-panel/prepublish.js +1 -3
- package/build-module/components/post-publish-panel/prepublish.js.map +1 -1
- package/build-module/components/post-saved-state/index.js +1 -2
- package/build-module/components/post-saved-state/index.js.map +1 -1
- package/build-module/components/post-schedule/label.js.map +1 -1
- package/build-module/components/post-status/index.js +1 -3
- package/build-module/components/post-status/index.js.map +1 -1
- package/build-module/components/post-switch-to-draft-button/index.js +1 -3
- package/build-module/components/post-switch-to-draft-button/index.js.map +1 -1
- package/build-module/components/post-taxonomies/flat-term-selector.js +5 -7
- package/build-module/components/post-taxonomies/flat-term-selector.js.map +1 -1
- package/build-module/components/post-taxonomies/hierarchical-term-selector.js +4 -4
- package/build-module/components/post-taxonomies/hierarchical-term-selector.js.map +1 -1
- package/build-module/components/post-taxonomies/index.js +1 -1
- package/build-module/components/post-taxonomies/index.js.map +1 -1
- package/build-module/components/post-taxonomies/most-used-terms.js +1 -2
- package/build-module/components/post-taxonomies/most-used-terms.js.map +1 -1
- package/build-module/components/post-taxonomies/panel.js.map +1 -1
- package/build-module/components/post-template/block-theme.js +1 -3
- package/build-module/components/post-template/block-theme.js.map +1 -1
- package/build-module/components/post-template/classic-theme.js +3 -6
- package/build-module/components/post-template/classic-theme.js.map +1 -1
- package/build-module/components/post-template/create-new-template-modal.js +1 -2
- package/build-module/components/post-template/create-new-template-modal.js.map +1 -1
- package/build-module/components/post-template/create-new-template.js +1 -3
- package/build-module/components/post-template/create-new-template.js.map +1 -1
- package/build-module/components/post-template/swap-template-button.js +1 -3
- package/build-module/components/post-template/swap-template-button.js.map +1 -1
- package/build-module/components/post-text-editor/index.js +1 -3
- package/build-module/components/post-text-editor/index.js.map +1 -1
- package/build-module/components/post-title/index.js +15 -19
- package/build-module/components/post-title/index.js.map +1 -1
- package/build-module/components/post-title/index.native.js +2 -2
- package/build-module/components/post-title/index.native.js.map +1 -1
- package/build-module/components/post-trash/index.js +1 -2
- package/build-module/components/post-trash/index.js.map +1 -1
- package/build-module/components/post-url/index.js +78 -66
- package/build-module/components/post-url/index.js.map +1 -1
- package/build-module/components/post-url/panel.js +48 -28
- package/build-module/components/post-url/panel.js.map +1 -1
- package/build-module/components/post-visibility/index.js +1 -2
- package/build-module/components/post-visibility/index.js.map +1 -1
- package/build-module/components/posts-per-page/index.js +1 -3
- package/build-module/components/posts-per-page/index.js.map +1 -1
- package/build-module/components/preferences-modal/index.js +1 -3
- package/build-module/components/preferences-modal/index.js.map +1 -1
- package/build-module/components/preview-dropdown/index.js +1 -3
- package/build-module/components/preview-dropdown/index.js.map +1 -1
- package/build-module/components/provider/index.js +2 -4
- package/build-module/components/provider/index.js.map +1 -1
- package/build-module/components/provider/index.native.js +1 -3
- package/build-module/components/provider/index.native.js.map +1 -1
- package/build-module/components/resizable-editor/resize-handle.js +1 -3
- package/build-module/components/resizable-editor/resize-handle.js.map +1 -1
- package/build-module/components/save-publish-panels/index.js +1 -3
- package/build-module/components/save-publish-panels/index.js.map +1 -1
- package/build-module/components/sidebar/header.js +1 -2
- package/build-module/components/sidebar/header.js.map +1 -1
- package/build-module/components/sidebar/index.js +1 -2
- package/build-module/components/sidebar/index.js.map +1 -1
- package/build-module/components/sidebar/post-summary.js +1 -3
- package/build-module/components/sidebar/post-summary.js.map +1 -1
- package/build-module/components/site-discussion/index.js +1 -3
- package/build-module/components/site-discussion/index.js.map +1 -1
- package/build-module/components/start-template-options/index.js +1 -2
- package/build-module/components/start-template-options/index.js.map +1 -1
- package/build-module/components/table-of-contents/panel.js +1 -3
- package/build-module/components/table-of-contents/panel.js.map +1 -1
- package/build-module/components/template-part-menu-items/convert-to-template-part.js +1 -3
- package/build-module/components/template-part-menu-items/convert-to-template-part.js.map +1 -1
- package/build-module/components/template-validation-notice/index.js +1 -3
- package/build-module/components/template-validation-notice/index.js.map +1 -1
- package/build-module/components/text-editor/index.js +1 -2
- package/build-module/components/text-editor/index.js.map +1 -1
- package/build-module/components/time-to-read/index.js +1 -1
- package/build-module/components/time-to-read/index.js.map +1 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.js +4 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.js.map +1 -1
- package/build-module/components/visual-editor/index.js +5 -6
- package/build-module/components/visual-editor/index.js.map +1 -1
- package/build-module/components/visual-editor/use-select-nearest-editable-block.js.map +1 -1
- package/build-module/dataviews/actions/duplicate-template-part.js +1 -1
- package/build-module/dataviews/actions/duplicate-template-part.js.map +1 -1
- package/build-module/hooks/pattern-overrides.js +1 -3
- package/build-module/hooks/pattern-overrides.js.map +1 -1
- package/build-module/private-apis.js +1 -2
- package/build-module/private-apis.js.map +1 -1
- package/build-module/store/actions.js +26 -1
- package/build-module/store/actions.js.map +1 -1
- package/build-module/store/constants.js +1 -0
- package/build-module/store/constants.js.map +1 -1
- package/build-module/store/local-autosave.js.map +1 -1
- package/build-module/store/private-actions.js +7 -6
- package/build-module/store/private-actions.js.map +1 -1
- package/build-module/store/selectors.js +21 -0
- package/build-module/store/selectors.js.map +1 -1
- package/build-module/utils/media-upload/index.js.map +1 -1
- package/build-style/style-rtl.css +20 -5
- package/build-style/style.css +20 -5
- package/build-types/bindings/api.d.ts +0 -13
- package/build-types/bindings/api.d.ts.map +1 -1
- package/build-types/components/editor-interface/index.d.ts +1 -2
- package/build-types/components/editor-interface/index.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/hierarchical-term-selector.d.ts.map +1 -1
- package/build-types/components/post-template/classic-theme.d.ts.map +1 -1
- package/build-types/components/post-url/index.d.ts.map +1 -1
- package/build-types/components/post-url/panel.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts.map +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/private-apis.d.ts.map +1 -1
- package/build-types/store/actions.d.ts +1 -4
- package/build-types/store/actions.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +21 -0
- package/build-types/store/selectors.d.ts.map +1 -1
- package/package.json +38 -38
- package/src/bindings/api.js +1 -32
- package/src/components/document-tools/index.js +1 -1
- package/src/components/editor-interface/index.js +0 -15
- package/src/components/header/style.scss +1 -0
- package/src/components/post-saved-state/test/__snapshots__/index.js.snap +1 -1
- package/src/components/post-taxonomies/hierarchical-term-selector.js +1 -0
- package/src/components/post-template/classic-theme.js +1 -2
- package/src/components/post-url/index.js +67 -55
- package/src/components/post-url/panel.js +57 -33
- package/src/components/post-url/style.scss +21 -3
- package/src/components/provider/index.js +1 -0
- package/src/components/visual-editor/edit-template-blocks-notification.js +5 -1
- package/src/components/visual-editor/index.js +3 -1
- package/src/private-apis.js +1 -5
- package/src/store/actions.js +28 -1
- package/src/store/selectors.js +21 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classic-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/classic-theme.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"classic-theme.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/classic-theme.js"],"names":[],"mappings":";AAyNA,oEAaC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/index.js"],"names":[],"mappings":"AA0BA;;;;;;;;;;;GAWG;AACH,wDAFY,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/index.js"],"names":[],"mappings":"AA0BA;;;;;;;;;;;GAWG;AACH,wDAFY,SAAS,CAgKpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/panel.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-url/panel.js"],"names":[],"mappings":"AAkBA;;;;GAIG;AACH,wCAFY,GAAG,CAAC,OAAO,CA2DtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AAiWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAwB,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ;CAGhC,GAWS,GAAG,CAAC,OAAO,CAWtB;AAtQD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GAmME"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-template-blocks-notification.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/edit-template-blocks-notification.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;GAaG;AACH,uEAHG;IAAsD,UAAU,EAAxD,OAAO,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC;CAEhD,
|
|
1
|
+
{"version":3,"file":"edit-template-blocks-notification.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/edit-template-blocks-notification.js"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;GAaG;AACH,uEAHG;IAAsD,UAAU,EAAxD,OAAO,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC;CAEhD,sCAyEA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/index.js"],"names":[],"mappings":";AAmGA;;;;;;;gCAiZC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private-apis.d.ts","sourceRoot":"","sources":["../src/private-apis.js"],"names":[],"mappings":"AA6BA,6BAA8B"}
|
|
@@ -200,10 +200,7 @@ export function togglePublishSidebar(): Object;
|
|
|
200
200
|
export function setupEditor(post: Object, edits: Object, template: any[] | null): ({ dispatch }: {
|
|
201
201
|
dispatch: any;
|
|
202
202
|
}) => void;
|
|
203
|
-
export function editPost(edits: Object, options: Object):
|
|
204
|
-
select: any;
|
|
205
|
-
registry: any;
|
|
206
|
-
}) => void;
|
|
203
|
+
export function editPost(edits: Object, options: Object): Object;
|
|
207
204
|
export function savePost(options?: Object): ({ select, dispatch, registry }: {
|
|
208
205
|
select: any;
|
|
209
206
|
dispatch: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AA0EA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC;AAED;;;;;;GAMG;AACH,8BAHY,MAAM,CAWjB;AAED;;;;;;GAMG;AACH,uCAFW,MAAM,UAQhB;AAED;;;;;;;GAOG;AACH,wCALW,MAAM,UACN,MAAM,GAEL,MAAM,CAQjB;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AA0EA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AA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L,MAAM,CA0BhB;AAOK,mDAFI,MAAM;;WAyBf;AAgCK,2CAbI,OAAO,GAAC,MAAM,GAWb,MAAM,CAoBhB;AAoBK;;;WA0DL;AAOK,uCAFI,MAAM;;;WAuBf;AA2CD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC;AATD;;WASC"}
|
|
@@ -29,6 +29,11 @@ export function isCleanNewPost(state: Object): boolean;
|
|
|
29
29
|
*
|
|
30
30
|
* @param {Object} state Global application state.
|
|
31
31
|
*
|
|
32
|
+
* @example
|
|
33
|
+
*
|
|
34
|
+
*```js
|
|
35
|
+
* const currentPostType = wp.data.select( 'core/editor' ).getCurrentPostType();
|
|
36
|
+
*```
|
|
32
37
|
* @return {string} Post type.
|
|
33
38
|
*/
|
|
34
39
|
export function getCurrentPostType(state: Object): string;
|
|
@@ -83,6 +88,22 @@ export function getCurrentPostAttribute(state: Object, attributeName: string): a
|
|
|
83
88
|
* @param {Object} state Global application state.
|
|
84
89
|
* @param {string} attributeName Post attribute name.
|
|
85
90
|
*
|
|
91
|
+
* @example
|
|
92
|
+
*
|
|
93
|
+
*```js
|
|
94
|
+
* // Get specific media size based on the featured media ID
|
|
95
|
+
* // Note: change sizes?.large for any registered size
|
|
96
|
+
* const getFeaturedMediaUrl = useSelect( ( select ) => {
|
|
97
|
+
* const getFeaturedMediaId =
|
|
98
|
+
* select( 'core/editor' ).getEditedPostAttribute( 'featured_media' );
|
|
99
|
+
* const getMedia = select( 'core' ).getMedia( getFeaturedMediaId );
|
|
100
|
+
*
|
|
101
|
+
* return (
|
|
102
|
+
* getMedia?.media_details?.sizes?.large?.source_url || getMedia?.source_url || ''
|
|
103
|
+
* );
|
|
104
|
+
* }, [] );
|
|
105
|
+
*```
|
|
106
|
+
*
|
|
86
107
|
* @return {*} Post attribute value.
|
|
87
108
|
*/
|
|
88
109
|
export function getEditedPostAttribute(state: Object, attributeName: string): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.js"],"names":[],"mappings":"AA+DA;;;;;;;GAOG;AACH,uCAJW,MAAM,GAEL,OAAO,CAIlB;AAED;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,OAAO,CAKlB;AA+CD;;;;;;;GAOG;AACH,sCAJW,MAAM,GAEL,OAAO,CAIlB;AAgCD
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../src/store/selectors.js"],"names":[],"mappings":"AA+DA;;;;;;;GAOG;AACH,uCAJW,MAAM,GAEL,OAAO,CAIlB;AAED;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,OAAO,CAKlB;AA+CD;;;;;;;GAOG;AACH,sCAJW,MAAM,GAEL,OAAO,CAIlB;AAgCD;;;;;;;;;;;GAWG;AACH,0CATW,MAAM,GAOL,MAAM,CAIjB;AAED;;;;;;;GAOG;AACH,wCAJW,MAAM,GAEJ,MAAM,OAAA,CAIlB;AAED;;;;;;GAMG;AACH,4CAJW,MAAM,GAEL,MAAM,OAAC,CAIlB;AAED;;;;;;GAMG;AACH,oDAJW,MAAM,GAEL,MAAM,CAMjB;AAED;;;;;;;GAOG;AACH,oDAJW,MAAM,GAEJ,MAAM,OAAA,CAOlB;AAsBD;;;;;;;GAOG;AACH,+CALW,MAAM,iBACN,MAAM,GAEL,GAAC,CAkBZ;AA8BD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,8CArBW,MAAM,iBACN,MAAM,GAkBL,GAAC,CAsBZ;AA6CD;;;;;;;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ACH,yCAA+E;AAE/E;;GAEG;AACH,wCAA6E;AAE7E;;GAEG;AACH,0CACgD;AAEhD;;GAEG;AACH,oCAAqE;AAErE;;GAEG;AACH,gCAA6D;AAE7D;;GAEG;AACH,kDAEE;AAEF;;GAEG;AACH,8CAEE;AAEF;;GAEG;AACH,oDAEE;AAEF;;GAEG;AACH,uCAA2E;AAE3E;;GAEG;AACH,mCAAmE;AAEnE;;GAEG;AACH,uCAA2E;AAE3E;;GAEG;AACH,0CACgD;AAEhD;;GAEG;AACH,wCAA6E;AAE7E;;GAEG;AACH,wCAA6E;AAE7E;;GAEG;AACH,4CAEE;AAaF;;;;;;GAMG;AACH,kHASE;AAEF;;;;;;;GAOG;AACH,wHAcE;AAEF;;;;;;;GAOG;AACH,oHAgCE;AAEF;;;;;;GAMG;AACH,wCAQE;;;;;;;;cAzlBY,MAAM;;;;kBACN,MAAM;;;;;YACN,MAAM"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/editor",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.10.0",
|
|
4
4
|
"description": "Enhanced block editor for WordPress posts.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -31,42 +31,42 @@
|
|
|
31
31
|
"{src,build,build-module}/{index.js,store/index.js,hooks/**,bindings/**}"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@babel/runtime": "
|
|
35
|
-
"@wordpress/a11y": "^4.
|
|
36
|
-
"@wordpress/api-fetch": "^7.
|
|
37
|
-
"@wordpress/blob": "^4.
|
|
38
|
-
"@wordpress/block-editor": "^14.
|
|
39
|
-
"@wordpress/blocks": "^13.
|
|
40
|
-
"@wordpress/commands": "^1.
|
|
41
|
-
"@wordpress/components": "^28.
|
|
42
|
-
"@wordpress/compose": "^7.
|
|
43
|
-
"@wordpress/core-data": "^7.
|
|
44
|
-
"@wordpress/data": "^10.
|
|
45
|
-
"@wordpress/dataviews": "^4.
|
|
46
|
-
"@wordpress/date": "^5.
|
|
47
|
-
"@wordpress/deprecated": "^4.
|
|
48
|
-
"@wordpress/dom": "^4.
|
|
49
|
-
"@wordpress/element": "^6.
|
|
50
|
-
"@wordpress/fields": "^0.
|
|
51
|
-
"@wordpress/hooks": "^4.
|
|
52
|
-
"@wordpress/html-entities": "^4.
|
|
53
|
-
"@wordpress/i18n": "^5.
|
|
54
|
-
"@wordpress/icons": "^10.
|
|
55
|
-
"@wordpress/interface": "^
|
|
56
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
57
|
-
"@wordpress/keycodes": "^4.
|
|
58
|
-
"@wordpress/media-utils": "^5.
|
|
59
|
-
"@wordpress/notices": "^5.
|
|
60
|
-
"@wordpress/patterns": "^2.
|
|
61
|
-
"@wordpress/plugins": "^7.
|
|
62
|
-
"@wordpress/preferences": "^4.
|
|
63
|
-
"@wordpress/private-apis": "^1.
|
|
64
|
-
"@wordpress/reusable-blocks": "^5.
|
|
65
|
-
"@wordpress/rich-text": "^7.
|
|
66
|
-
"@wordpress/server-side-render": "^5.
|
|
67
|
-
"@wordpress/url": "^4.
|
|
68
|
-
"@wordpress/warning": "^3.
|
|
69
|
-
"@wordpress/wordcount": "^4.
|
|
34
|
+
"@babel/runtime": "7.25.7",
|
|
35
|
+
"@wordpress/a11y": "^4.10.0",
|
|
36
|
+
"@wordpress/api-fetch": "^7.10.0",
|
|
37
|
+
"@wordpress/blob": "^4.10.0",
|
|
38
|
+
"@wordpress/block-editor": "^14.5.0",
|
|
39
|
+
"@wordpress/blocks": "^13.10.0",
|
|
40
|
+
"@wordpress/commands": "^1.10.0",
|
|
41
|
+
"@wordpress/components": "^28.10.0",
|
|
42
|
+
"@wordpress/compose": "^7.10.0",
|
|
43
|
+
"@wordpress/core-data": "^7.10.0",
|
|
44
|
+
"@wordpress/data": "^10.10.0",
|
|
45
|
+
"@wordpress/dataviews": "^4.6.0",
|
|
46
|
+
"@wordpress/date": "^5.10.0",
|
|
47
|
+
"@wordpress/deprecated": "^4.10.0",
|
|
48
|
+
"@wordpress/dom": "^4.10.0",
|
|
49
|
+
"@wordpress/element": "^6.10.0",
|
|
50
|
+
"@wordpress/fields": "^0.2.0",
|
|
51
|
+
"@wordpress/hooks": "^4.10.0",
|
|
52
|
+
"@wordpress/html-entities": "^4.10.0",
|
|
53
|
+
"@wordpress/i18n": "^5.10.0",
|
|
54
|
+
"@wordpress/icons": "^10.10.0",
|
|
55
|
+
"@wordpress/interface": "^7.0.0",
|
|
56
|
+
"@wordpress/keyboard-shortcuts": "^5.10.0",
|
|
57
|
+
"@wordpress/keycodes": "^4.10.0",
|
|
58
|
+
"@wordpress/media-utils": "^5.10.0",
|
|
59
|
+
"@wordpress/notices": "^5.10.0",
|
|
60
|
+
"@wordpress/patterns": "^2.10.0",
|
|
61
|
+
"@wordpress/plugins": "^7.10.0",
|
|
62
|
+
"@wordpress/preferences": "^4.10.0",
|
|
63
|
+
"@wordpress/private-apis": "^1.10.0",
|
|
64
|
+
"@wordpress/reusable-blocks": "^5.10.0",
|
|
65
|
+
"@wordpress/rich-text": "^7.10.0",
|
|
66
|
+
"@wordpress/server-side-render": "^5.10.0",
|
|
67
|
+
"@wordpress/url": "^4.10.0",
|
|
68
|
+
"@wordpress/warning": "^3.10.0",
|
|
69
|
+
"@wordpress/wordcount": "^4.10.0",
|
|
70
70
|
"change-case": "^4.1.2",
|
|
71
71
|
"client-zip": "^2.4.5",
|
|
72
72
|
"clsx": "^2.1.1",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "ab34a7ac935fd1478eac63b596242d83270897ee"
|
|
90
90
|
}
|
package/src/bindings/api.js
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
store as blocksStore,
|
|
6
|
-
registerBlockBindingsSource,
|
|
7
|
-
} from '@wordpress/blocks';
|
|
8
|
-
import { dispatch } from '@wordpress/data';
|
|
4
|
+
import { registerBlockBindingsSource } from '@wordpress/blocks';
|
|
9
5
|
|
|
10
6
|
/**
|
|
11
7
|
* Internal dependencies
|
|
12
8
|
*/
|
|
13
9
|
import patternOverrides from './pattern-overrides';
|
|
14
10
|
import postMeta from './post-meta';
|
|
15
|
-
import { unlock } from '../lock-unlock';
|
|
16
11
|
|
|
17
12
|
/**
|
|
18
13
|
* Function to register core block bindings sources provided by the editor.
|
|
@@ -28,29 +23,3 @@ export function registerCoreBlockBindingsSources() {
|
|
|
28
23
|
registerBlockBindingsSource( patternOverrides );
|
|
29
24
|
registerBlockBindingsSource( postMeta );
|
|
30
25
|
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Function to bootstrap core block bindings sources defined in the server.
|
|
34
|
-
*
|
|
35
|
-
* @param {Object} sources Object containing the sources to bootstrap.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```js
|
|
39
|
-
* import { bootstrapBlockBindingsSourcesFromServer } from '@wordpress/editor';
|
|
40
|
-
*
|
|
41
|
-
* bootstrapBlockBindingsSourcesFromServer( sources );
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export function bootstrapBlockBindingsSourcesFromServer( sources ) {
|
|
45
|
-
if ( sources ) {
|
|
46
|
-
const { addBootstrappedBlockBindingsSource } = unlock(
|
|
47
|
-
dispatch( blocksStore )
|
|
48
|
-
);
|
|
49
|
-
for ( const [ name, args ] of Object.entries( sources ) ) {
|
|
50
|
-
addBootstrappedBlockBindingsSource( {
|
|
51
|
-
name,
|
|
52
|
-
...args,
|
|
53
|
-
} );
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -96,7 +96,7 @@ function DocumentTools( { className, disableBlockTools = false } ) {
|
|
|
96
96
|
|
|
97
97
|
/* translators: button label text should, if possible, be under 16 characters. */
|
|
98
98
|
const longLabel = _x(
|
|
99
|
-
'
|
|
99
|
+
'Block Inserter',
|
|
100
100
|
'Generic label for block inserter button'
|
|
101
101
|
);
|
|
102
102
|
const shortLabel = ! isInserterOpened ? __( 'Add' ) : __( 'Close' );
|
|
@@ -15,7 +15,6 @@ import {
|
|
|
15
15
|
BlockBreadcrumb,
|
|
16
16
|
BlockToolbar,
|
|
17
17
|
} from '@wordpress/block-editor';
|
|
18
|
-
import { store as keyboardShortcutsStore } from '@wordpress/keyboard-shortcuts';
|
|
19
18
|
import { useViewportMatch } from '@wordpress/compose';
|
|
20
19
|
import { useState, useCallback } from '@wordpress/element';
|
|
21
20
|
|
|
@@ -49,7 +48,6 @@ const interfaceLabels = {
|
|
|
49
48
|
|
|
50
49
|
export default function EditorInterface( {
|
|
51
50
|
className,
|
|
52
|
-
enableRegionNavigation,
|
|
53
51
|
styles,
|
|
54
52
|
children,
|
|
55
53
|
forceIsDirty,
|
|
@@ -69,8 +67,6 @@ export default function EditorInterface( {
|
|
|
69
67
|
isListViewOpened,
|
|
70
68
|
isDistractionFree,
|
|
71
69
|
isPreviewMode,
|
|
72
|
-
previousShortcut,
|
|
73
|
-
nextShortcut,
|
|
74
70
|
showBlockBreadcrumbs,
|
|
75
71
|
documentLabel,
|
|
76
72
|
isZoomOut,
|
|
@@ -88,12 +84,6 @@ export default function EditorInterface( {
|
|
|
88
84
|
isListViewOpened: select( editorStore ).isListViewOpened(),
|
|
89
85
|
isDistractionFree: get( 'core', 'distractionFree' ),
|
|
90
86
|
isPreviewMode: editorSettings.__unstableIsPreviewMode,
|
|
91
|
-
previousShortcut: select(
|
|
92
|
-
keyboardShortcutsStore
|
|
93
|
-
).getAllShortcutKeyCombinations( 'core/editor/previous-region' ),
|
|
94
|
-
nextShortcut: select(
|
|
95
|
-
keyboardShortcutsStore
|
|
96
|
-
).getAllShortcutKeyCombinations( 'core/editor/next-region' ),
|
|
97
87
|
showBlockBreadcrumbs: get( 'core', 'showBlockBreadcrumbs' ),
|
|
98
88
|
// translators: Default label for the Document in the Block Breadcrumb.
|
|
99
89
|
documentLabel: postTypeLabel || _x( 'Document', 'noun' ),
|
|
@@ -121,7 +111,6 @@ export default function EditorInterface( {
|
|
|
121
111
|
|
|
122
112
|
return (
|
|
123
113
|
<InterfaceSkeleton
|
|
124
|
-
enableRegionNavigation={ enableRegionNavigation }
|
|
125
114
|
isDistractionFree={ isDistractionFree }
|
|
126
115
|
className={ clsx( 'editor-editor-interface', className, {
|
|
127
116
|
'is-entity-save-view-open': !! entitiesSavedStatesCallback,
|
|
@@ -231,10 +220,6 @@ export default function EditorInterface( {
|
|
|
231
220
|
)
|
|
232
221
|
: undefined
|
|
233
222
|
}
|
|
234
|
-
shortcuts={ {
|
|
235
|
-
previous: previousShortcut,
|
|
236
|
-
next: nextShortcut,
|
|
237
|
-
} }
|
|
238
223
|
/>
|
|
239
224
|
);
|
|
240
225
|
}
|
|
@@ -16,7 +16,7 @@ exports[`PostSavedState returns a disabled button if the post is not saveable 1`
|
|
|
16
16
|
xmlns="http://www.w3.org/2000/svg"
|
|
17
17
|
>
|
|
18
18
|
<path
|
|
19
|
-
d="M17.3 10.
|
|
19
|
+
d="M17.3 10.1C17.3 7.60001 15.2 5.70001 12.5 5.70001C10.3 5.70001 8.4 7.10001 7.9 9.00001H7.7C5.7 9.00001 4 10.7 4 12.8C4 14.9 5.7 16.6 7.7 16.6H9.5V15.2H7.7C6.5 15.2 5.5 14.1 5.5 12.9C5.5 11.7 6.5 10.5 7.7 10.5H9L9.3 9.40001C9.7 8.10001 11 7.20001 12.5 7.20001C14.3 7.20001 15.8 8.50001 15.8 10.1V11.4L17.1 11.6C17.9 11.7 18.5 12.5 18.5 13.4C18.5 14.4 17.7 15.2 16.8 15.2H14.5V16.6H16.7C18.5 16.6 19.9 15.1 19.9 13.3C20 11.7 18.8 10.4 17.3 10.1Z M14.1245 14.2426L15.1852 13.182L12.0032 10L8.82007 13.1831L9.88072 14.2438L11.25 12.8745V18H12.75V12.8681L14.1245 14.2426Z"
|
|
20
20
|
/>
|
|
21
21
|
</svg>
|
|
22
22
|
</button>
|
|
@@ -177,8 +177,7 @@ function PostTemplateDropdownContent( { onClose } ) {
|
|
|
177
177
|
{ canEdit && onNavigateToEntityRecord && (
|
|
178
178
|
<p>
|
|
179
179
|
<Button
|
|
180
|
-
|
|
181
|
-
__next40pxDefaultSize={ false }
|
|
180
|
+
__next40pxDefaultSize
|
|
182
181
|
variant="link"
|
|
183
182
|
onClick={ () => {
|
|
184
183
|
onNavigateToEntityRecord( {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import { store as noticesStore } from '@wordpress/notices';
|
|
18
18
|
import { copySmall } from '@wordpress/icons';
|
|
19
19
|
import { store as coreStore } from '@wordpress/core-data';
|
|
20
|
-
import { useCopyToClipboard } from '@wordpress/compose';
|
|
20
|
+
import { useCopyToClipboard, useInstanceId } from '@wordpress/compose';
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Internal dependencies
|
|
@@ -70,25 +70,29 @@ export default function PostURL( { onClose } ) {
|
|
|
70
70
|
const { createNotice } = useDispatch( noticesStore );
|
|
71
71
|
const [ forceEmptyField, setForceEmptyField ] = useState( false );
|
|
72
72
|
const copyButtonRef = useCopyToClipboard( permalink, () => {
|
|
73
|
-
createNotice( 'info', __( 'Copied
|
|
73
|
+
createNotice( 'info', __( 'Copied Permalink to clipboard.' ), {
|
|
74
74
|
isDismissible: true,
|
|
75
75
|
type: 'snackbar',
|
|
76
76
|
} );
|
|
77
77
|
} );
|
|
78
|
+
const postUrlSlugDescriptionId =
|
|
79
|
+
'editor-post-url__slug-descriotion-' + useInstanceId( PostURL );
|
|
80
|
+
|
|
78
81
|
return (
|
|
79
82
|
<div className="editor-post-url">
|
|
80
83
|
<InspectorPopoverHeader
|
|
81
|
-
title={ __( '
|
|
84
|
+
title={ __( 'Slug' ) }
|
|
82
85
|
onClose={ onClose }
|
|
83
86
|
/>
|
|
84
87
|
<VStack spacing={ 3 }>
|
|
85
88
|
{ isEditable && (
|
|
86
|
-
<
|
|
89
|
+
<p className="editor-post-url__intro">
|
|
87
90
|
{ createInterpolateElement(
|
|
88
91
|
__(
|
|
89
|
-
'Customize the last part of the
|
|
92
|
+
'<span>Customize the last part of the Permalink.</span> <a>Learn more.</a>'
|
|
90
93
|
),
|
|
91
94
|
{
|
|
95
|
+
span: <span id={ postUrlSlugDescriptionId } />,
|
|
92
96
|
a: (
|
|
93
97
|
<ExternalLink
|
|
94
98
|
href={ __(
|
|
@@ -98,59 +102,67 @@ export default function PostURL( { onClose } ) {
|
|
|
98
102
|
),
|
|
99
103
|
}
|
|
100
104
|
) }
|
|
101
|
-
</
|
|
105
|
+
</p>
|
|
102
106
|
) }
|
|
103
107
|
<div>
|
|
104
108
|
{ isEditable && (
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
suffix={
|
|
113
|
-
<InputControlSuffixWrapper variant="control">
|
|
114
|
-
<Button
|
|
115
|
-
icon={ copySmall }
|
|
116
|
-
ref={ copyButtonRef }
|
|
117
|
-
size="small"
|
|
118
|
-
label="Copy"
|
|
119
|
-
/>
|
|
120
|
-
</InputControlSuffixWrapper>
|
|
121
|
-
}
|
|
122
|
-
label={ __( 'Link' ) }
|
|
123
|
-
hideLabelFromVision
|
|
124
|
-
value={ forceEmptyField ? '' : postSlug }
|
|
125
|
-
autoComplete="off"
|
|
126
|
-
spellCheck="false"
|
|
127
|
-
type="text"
|
|
128
|
-
className="editor-post-url__input"
|
|
129
|
-
onChange={ ( newValue ) => {
|
|
130
|
-
editPost( { slug: newValue } );
|
|
131
|
-
// When we delete the field the permalink gets
|
|
132
|
-
// reverted to the original value.
|
|
133
|
-
// The forceEmptyField logic allows the user to have
|
|
134
|
-
// the field temporarily empty while typing.
|
|
135
|
-
if ( ! newValue ) {
|
|
136
|
-
if ( ! forceEmptyField ) {
|
|
137
|
-
setForceEmptyField( true );
|
|
138
|
-
}
|
|
139
|
-
return;
|
|
109
|
+
<>
|
|
110
|
+
<InputControl
|
|
111
|
+
__next40pxDefaultSize
|
|
112
|
+
prefix={
|
|
113
|
+
<InputControlPrefixWrapper>
|
|
114
|
+
/
|
|
115
|
+
</InputControlPrefixWrapper>
|
|
140
116
|
}
|
|
141
|
-
|
|
142
|
-
|
|
117
|
+
suffix={
|
|
118
|
+
<InputControlSuffixWrapper variant="control">
|
|
119
|
+
<Button
|
|
120
|
+
icon={ copySmall }
|
|
121
|
+
ref={ copyButtonRef }
|
|
122
|
+
size="small"
|
|
123
|
+
label="Copy"
|
|
124
|
+
/>
|
|
125
|
+
</InputControlSuffixWrapper>
|
|
143
126
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
127
|
+
label={ __( 'Slug' ) }
|
|
128
|
+
hideLabelFromVision
|
|
129
|
+
value={ forceEmptyField ? '' : postSlug }
|
|
130
|
+
autoComplete="off"
|
|
131
|
+
spellCheck="false"
|
|
132
|
+
type="text"
|
|
133
|
+
className="editor-post-url__input"
|
|
134
|
+
onChange={ ( newValue ) => {
|
|
135
|
+
editPost( { slug: newValue } );
|
|
136
|
+
// When we delete the field the permalink gets
|
|
137
|
+
// reverted to the original value.
|
|
138
|
+
// The forceEmptyField logic allows the user to have
|
|
139
|
+
// the field temporarily empty while typing.
|
|
140
|
+
if ( ! newValue ) {
|
|
141
|
+
if ( ! forceEmptyField ) {
|
|
142
|
+
setForceEmptyField( true );
|
|
143
|
+
}
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
if ( forceEmptyField ) {
|
|
147
|
+
setForceEmptyField( false );
|
|
148
|
+
}
|
|
149
|
+
} }
|
|
150
|
+
onBlur={ ( event ) => {
|
|
151
|
+
editPost( {
|
|
152
|
+
slug: cleanForSlug(
|
|
153
|
+
event.target.value
|
|
154
|
+
),
|
|
155
|
+
} );
|
|
156
|
+
if ( forceEmptyField ) {
|
|
157
|
+
setForceEmptyField( false );
|
|
158
|
+
}
|
|
159
|
+
} }
|
|
160
|
+
aria-describedby={ postUrlSlugDescriptionId }
|
|
161
|
+
/>
|
|
162
|
+
<p className="editor-post-url__permalink">
|
|
163
|
+
<span className="editor-post-url__permalink-visual-label">
|
|
164
|
+
{ __( 'Permalink:' ) }
|
|
165
|
+
</span>
|
|
154
166
|
<ExternalLink
|
|
155
167
|
className="editor-post-url__link"
|
|
156
168
|
href={ postLink }
|
|
@@ -166,8 +178,8 @@ export default function PostURL( { onClose } ) {
|
|
|
166
178
|
{ permalinkSuffix }
|
|
167
179
|
</span>
|
|
168
180
|
</ExternalLink>
|
|
169
|
-
|
|
170
|
-
|
|
181
|
+
</p>
|
|
182
|
+
</>
|
|
171
183
|
) }
|
|
172
184
|
{ ! isEditable && (
|
|
173
185
|
<ExternalLink
|