@wordpress/editor 14.48.1 → 14.48.2-next.v.202606191442.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bindings/pattern-overrides.cjs +1 -1
- package/build/bindings/pattern-overrides.cjs.map +2 -2
- package/build/components/collab-sidebar/note-byline.cjs +1 -1
- package/build/components/collab-sidebar/note-byline.cjs.map +2 -2
- package/build/components/collab-sidebar/note.cjs +49 -17
- package/build/components/collab-sidebar/note.cjs.map +3 -3
- package/build/components/collab-sidebar/notes.cjs.map +1 -1
- package/build/components/collab-sidebar/utils.cjs +1 -1
- package/build/components/collab-sidebar/utils.cjs.map +2 -2
- package/build/components/collaborators-overlay/avatar-iframe-styles.cjs.map +1 -1
- package/build/components/collaborators-overlay/collaborator-styles.cjs.map +1 -1
- package/build/components/collaborators-overlay/compute-selection.cjs.map +1 -1
- package/build/components/collaborators-overlay/overlay-iframe-styles.cjs +1 -1
- package/build/components/collaborators-overlay/overlay-iframe-styles.cjs.map +1 -1
- package/build/components/collaborators-overlay/use-block-highlighting.cjs.map +1 -1
- package/build/components/collaborators-presence/avatar/component.cjs.map +2 -2
- package/build/components/collaborators-presence/avatar/use-image-loading-status.cjs.map +1 -1
- package/build/components/document-bar/index.cjs +7 -5
- package/build/components/document-bar/index.cjs.map +2 -2
- package/build/components/global-keyboard-shortcuts/index.cjs +3 -2
- package/build/components/global-keyboard-shortcuts/index.cjs.map +2 -2
- package/build/components/global-styles-sidebar/welcome-guide.cjs +3 -3
- package/build/components/global-styles-sidebar/welcome-guide.cjs.map +1 -1
- package/build/components/local-autosave-monitor/index.cjs +14 -15
- package/build/components/local-autosave-monitor/index.cjs.map +2 -2
- package/build/components/page-attributes/parent.cjs +1 -1
- package/build/components/page-attributes/parent.cjs.map +2 -2
- package/build/components/post-card-panel/index.cjs +1 -1
- package/build/components/post-card-panel/index.cjs.map +2 -2
- package/build/components/post-excerpt/panel.cjs +1 -1
- package/build/components/post-excerpt/panel.cjs.map +2 -2
- package/build/components/post-locked-modal/index.cjs +3 -3
- package/build/components/post-locked-modal/index.cjs.map +1 -1
- package/build/components/post-preview-button/index.cjs +2 -2
- package/build/components/post-preview-button/index.cjs.map +2 -2
- package/build/components/post-publish-button/index.cjs +4 -3
- package/build/components/post-publish-button/index.cjs.map +2 -2
- package/build/components/post-publish-button/label.cjs +2 -2
- package/build/components/post-publish-button/label.cjs.map +2 -2
- package/build/components/post-publish-panel/index.cjs.map +1 -1
- package/build/components/post-publish-panel/postpublish.cjs +1 -1
- package/build/components/post-publish-panel/postpublish.cjs.map +2 -2
- package/build/components/post-revisions-preview/block-diff.cjs.map +1 -1
- package/build/components/post-revisions-preview/diff-markers.cjs.map +2 -2
- package/build/components/post-revisions-preview/revisions-slider.cjs +1 -1
- package/build/components/post-revisions-preview/revisions-slider.cjs.map +2 -2
- package/build/components/post-revisions-timeline/index.cjs +173 -0
- package/build/components/post-revisions-timeline/index.cjs.map +7 -0
- package/build/components/post-saved-state/index.cjs +17 -26
- package/build/components/post-saved-state/index.cjs.map +2 -2
- package/build/components/post-schedule/label.cjs +5 -5
- package/build/components/post-schedule/label.cjs.map +1 -1
- package/build/components/post-taxonomies/flat-term-selector.cjs +2 -1
- package/build/components/post-taxonomies/flat-term-selector.cjs.map +3 -3
- package/build/components/post-taxonomies/hierarchical-term-selector.cjs +1 -1
- package/build/components/post-taxonomies/hierarchical-term-selector.cjs.map +2 -2
- package/build/components/post-text-editor/index.cjs +51 -0
- package/build/components/post-text-editor/index.cjs.map +2 -2
- package/build/components/post-text-editor/utils.cjs +150 -0
- package/build/components/post-text-editor/utils.cjs.map +7 -0
- package/build/components/post-url/index.cjs +1 -1
- package/build/components/post-url/index.cjs.map +2 -2
- package/build/components/post-view-link/index.cjs +1 -1
- package/build/components/post-view-link/index.cjs.map +2 -2
- package/build/components/provider/disable-non-page-content-blocks.cjs.map +1 -1
- package/build/components/provider/index.cjs +1 -1
- package/build/components/provider/index.cjs.map +2 -2
- package/build/components/resizable-editor/resize-handle.cjs.map +2 -2
- package/build/components/revision-diff-panel/index.cjs +7 -2
- package/build/components/revision-diff-panel/index.cjs.map +2 -2
- package/build/components/revision-fields-diff/index.cjs +6 -2
- package/build/components/revision-fields-diff/index.cjs.map +2 -2
- package/build/components/sidebar/dataform-post-summary.cjs +125 -20
- package/build/components/sidebar/dataform-post-summary.cjs.map +3 -3
- package/build/components/sidebar/index.cjs +1 -11
- package/build/components/sidebar/index.cjs.map +3 -3
- package/build/components/sidebar/post-revision-summary.cjs +11 -17
- package/build/components/sidebar/post-revision-summary.cjs.map +3 -3
- package/build/components/sidebar/post-summary.cjs +1 -1
- package/build/components/sidebar/post-summary.cjs.map +2 -2
- package/build/components/style-book/examples.cjs +1 -1
- package/build/components/style-book/examples.cjs.map +1 -1
- package/build/components/style-book/index.cjs +1 -1
- package/build/components/style-book/index.cjs.map +2 -2
- package/build/components/sync-connection-error-modal/index.cjs +3 -3
- package/build/components/sync-connection-error-modal/index.cjs.map +1 -1
- package/build/components/template-actions-panel/block-theme-content.cjs.map +2 -2
- package/build/components/template-actions-panel/index.cjs +0 -9
- package/build/components/template-actions-panel/index.cjs.map +3 -3
- package/build/components/template-validation-notice/index.cjs +1 -1
- package/build/components/template-validation-notice/index.cjs.map +1 -1
- package/build/components/upload-progress-snackbar/index.cjs +3 -3
- package/build/components/upload-progress-snackbar/index.cjs.map +2 -2
- package/build/components/upload-progress-snackbar/tracker.cjs.map +1 -1
- package/build/components/visual-editor/edit-template-blocks-notification.cjs +1 -1
- package/build/components/visual-editor/edit-template-blocks-notification.cjs.map +1 -1
- package/build/{components/revision-author-panel → dataviews/fields/revisions}/index.cjs +18 -26
- package/build/dataviews/fields/revisions/index.cjs.map +7 -0
- package/build/dataviews/fields/revisions/revisions-view.cjs +74 -0
- package/build/dataviews/fields/revisions/revisions-view.cjs.map +7 -0
- package/build/dataviews/store/private-actions.cjs +14 -4
- package/build/dataviews/store/private-actions.cjs.map +3 -3
- package/build/hooks/push-changes-to-global-styles/index.cjs +1 -1
- package/build/hooks/push-changes-to-global-styles/index.cjs.map +1 -1
- package/build/store/actions.cjs +1 -1
- package/build/store/actions.cjs.map +2 -2
- package/build/store/private-selectors.cjs +6 -1
- package/build/store/private-selectors.cjs.map +2 -2
- package/build/utils/media-upload/index.cjs.map +1 -1
- package/build/utils/set-nested-value.cjs.map +1 -1
- package/build-module/bindings/pattern-overrides.mjs +1 -1
- package/build-module/bindings/pattern-overrides.mjs.map +2 -2
- package/build-module/components/collab-sidebar/note-byline.mjs +1 -1
- package/build-module/components/collab-sidebar/note-byline.mjs.map +2 -2
- package/build-module/components/collab-sidebar/note.mjs +50 -18
- package/build-module/components/collab-sidebar/note.mjs.map +2 -2
- package/build-module/components/collab-sidebar/notes.mjs.map +1 -1
- package/build-module/components/collab-sidebar/utils.mjs +1 -1
- package/build-module/components/collab-sidebar/utils.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/avatar-iframe-styles.mjs.map +1 -1
- package/build-module/components/collaborators-overlay/collaborator-styles.mjs.map +1 -1
- package/build-module/components/collaborators-overlay/compute-selection.mjs.map +1 -1
- package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs +1 -1
- package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs.map +1 -1
- package/build-module/components/collaborators-overlay/use-block-highlighting.mjs.map +1 -1
- package/build-module/components/collaborators-presence/avatar/component.mjs.map +2 -2
- package/build-module/components/collaborators-presence/avatar/use-image-loading-status.mjs.map +1 -1
- package/build-module/components/document-bar/index.mjs +7 -5
- package/build-module/components/document-bar/index.mjs.map +2 -2
- package/build-module/components/global-keyboard-shortcuts/index.mjs +3 -2
- package/build-module/components/global-keyboard-shortcuts/index.mjs.map +2 -2
- package/build-module/components/global-styles-sidebar/welcome-guide.mjs +3 -3
- package/build-module/components/global-styles-sidebar/welcome-guide.mjs.map +1 -1
- package/build-module/components/local-autosave-monitor/index.mjs +15 -16
- package/build-module/components/local-autosave-monitor/index.mjs.map +2 -2
- package/build-module/components/page-attributes/parent.mjs +1 -1
- package/build-module/components/page-attributes/parent.mjs.map +2 -2
- package/build-module/components/post-card-panel/index.mjs +1 -1
- package/build-module/components/post-card-panel/index.mjs.map +2 -2
- package/build-module/components/post-excerpt/panel.mjs +1 -1
- package/build-module/components/post-excerpt/panel.mjs.map +2 -2
- package/build-module/components/post-locked-modal/index.mjs +3 -3
- package/build-module/components/post-locked-modal/index.mjs.map +1 -1
- package/build-module/components/post-preview-button/index.mjs +2 -2
- package/build-module/components/post-preview-button/index.mjs.map +2 -2
- package/build-module/components/post-publish-button/index.mjs +4 -3
- package/build-module/components/post-publish-button/index.mjs.map +2 -2
- package/build-module/components/post-publish-button/label.mjs +2 -2
- package/build-module/components/post-publish-button/label.mjs.map +2 -2
- package/build-module/components/post-publish-panel/index.mjs.map +1 -1
- package/build-module/components/post-publish-panel/postpublish.mjs +1 -1
- package/build-module/components/post-publish-panel/postpublish.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/block-diff.mjs.map +1 -1
- package/build-module/components/post-revisions-preview/diff-markers.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/revisions-slider.mjs +1 -1
- package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +2 -2
- package/build-module/components/post-revisions-timeline/index.mjs +152 -0
- package/build-module/components/post-revisions-timeline/index.mjs.map +7 -0
- package/build-module/components/post-saved-state/index.mjs +17 -26
- package/build-module/components/post-saved-state/index.mjs.map +2 -2
- package/build-module/components/post-schedule/label.mjs +5 -5
- package/build-module/components/post-schedule/label.mjs.map +1 -1
- package/build-module/components/post-taxonomies/flat-term-selector.mjs +3 -6
- package/build-module/components/post-taxonomies/flat-term-selector.mjs.map +2 -2
- package/build-module/components/post-taxonomies/hierarchical-term-selector.mjs +1 -1
- package/build-module/components/post-taxonomies/hierarchical-term-selector.mjs.map +2 -2
- package/build-module/components/post-text-editor/index.mjs +51 -0
- package/build-module/components/post-text-editor/index.mjs.map +2 -2
- package/build-module/components/post-text-editor/utils.mjs +123 -0
- package/build-module/components/post-text-editor/utils.mjs.map +7 -0
- package/build-module/components/post-url/index.mjs +1 -1
- package/build-module/components/post-url/index.mjs.map +2 -2
- package/build-module/components/post-view-link/index.mjs +1 -1
- package/build-module/components/post-view-link/index.mjs.map +2 -2
- package/build-module/components/provider/disable-non-page-content-blocks.mjs.map +1 -1
- package/build-module/components/provider/index.mjs +1 -1
- package/build-module/components/provider/index.mjs.map +2 -2
- package/build-module/components/resizable-editor/resize-handle.mjs.map +2 -2
- package/build-module/components/revision-diff-panel/index.mjs +7 -2
- package/build-module/components/revision-diff-panel/index.mjs.map +2 -2
- package/build-module/components/revision-fields-diff/index.mjs +6 -2
- package/build-module/components/revision-fields-diff/index.mjs.map +2 -2
- package/build-module/components/sidebar/dataform-post-summary.mjs +125 -20
- package/build-module/components/sidebar/dataform-post-summary.mjs.map +2 -2
- package/build-module/components/sidebar/index.mjs +1 -11
- package/build-module/components/sidebar/index.mjs.map +2 -2
- package/build-module/components/sidebar/post-revision-summary.mjs +11 -17
- package/build-module/components/sidebar/post-revision-summary.mjs.map +2 -2
- package/build-module/components/sidebar/post-summary.mjs +1 -1
- package/build-module/components/sidebar/post-summary.mjs.map +2 -2
- package/build-module/components/style-book/examples.mjs +1 -1
- package/build-module/components/style-book/examples.mjs.map +1 -1
- package/build-module/components/style-book/index.mjs +1 -1
- package/build-module/components/style-book/index.mjs.map +2 -2
- package/build-module/components/sync-connection-error-modal/index.mjs +3 -3
- package/build-module/components/sync-connection-error-modal/index.mjs.map +1 -1
- package/build-module/components/template-actions-panel/block-theme-content.mjs.map +2 -2
- package/build-module/components/template-actions-panel/index.mjs +0 -9
- package/build-module/components/template-actions-panel/index.mjs.map +2 -2
- package/build-module/components/template-validation-notice/index.mjs +1 -1
- package/build-module/components/template-validation-notice/index.mjs.map +1 -1
- package/build-module/components/upload-progress-snackbar/index.mjs +3 -3
- package/build-module/components/upload-progress-snackbar/index.mjs.map +2 -2
- package/build-module/components/upload-progress-snackbar/tracker.mjs.map +1 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.mjs +1 -1
- package/build-module/components/visual-editor/edit-template-blocks-notification.mjs.map +1 -1
- package/build-module/dataviews/fields/revisions/index.mjs +20 -0
- package/build-module/dataviews/fields/revisions/index.mjs.map +7 -0
- package/build-module/dataviews/fields/revisions/revisions-view.mjs +53 -0
- package/build-module/dataviews/fields/revisions/revisions-view.mjs.map +7 -0
- package/build-module/dataviews/store/private-actions.mjs +23 -7
- package/build-module/dataviews/store/private-actions.mjs.map +2 -2
- package/build-module/hooks/push-changes-to-global-styles/index.mjs +1 -1
- package/build-module/hooks/push-changes-to-global-styles/index.mjs.map +1 -1
- package/build-module/store/actions.mjs +1 -1
- package/build-module/store/actions.mjs.map +2 -2
- package/build-module/store/private-selectors.mjs +7 -1
- package/build-module/store/private-selectors.mjs.map +2 -2
- package/build-module/utils/media-upload/index.mjs.map +1 -1
- package/build-module/utils/set-nested-value.mjs.map +1 -1
- package/build-style/style-rtl.css +270 -206
- package/build-style/style.css +270 -206
- package/build-types/components/collab-sidebar/note-byline.d.ts +0 -3
- package/build-types/components/collab-sidebar/note-byline.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/avatar/component.d.ts.map +1 -1
- package/build-types/components/document-bar/index.d.ts +2 -2
- package/build-types/components/document-bar/index.d.ts.map +1 -1
- package/build-types/components/global-keyboard-shortcuts/index.d.ts.map +1 -1
- package/build-types/components/local-autosave-monitor/index.d.ts.map +1 -1
- package/build-types/components/post-publish-button/index.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/diff-markers.d.ts.map +1 -1
- package/build-types/components/post-revisions-timeline/index.d.ts +2 -0
- package/build-types/components/post-revisions-timeline/index.d.ts.map +1 -0
- package/build-types/components/post-saved-state/index.d.ts.map +1 -1
- package/build-types/components/post-taxonomies/flat-term-selector.d.ts.map +1 -1
- package/build-types/components/post-text-editor/index.d.ts +1 -1
- package/build-types/components/post-text-editor/index.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/components/resizable-editor/resize-handle.d.ts.map +1 -1
- package/build-types/components/revision-diff-panel/index.d.ts +3 -1
- package/build-types/components/revision-diff-panel/index.d.ts.map +1 -1
- package/build-types/components/revision-fields-diff/index.d.ts.map +1 -1
- package/build-types/components/sidebar/dataform-post-summary.d.ts.map +1 -1
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/components/sidebar/post-revision-summary.d.ts.map +1 -1
- package/build-types/components/template-actions-panel/block-theme-content.d.ts.map +1 -1
- package/build-types/components/template-actions-panel/index.d.ts.map +1 -1
- package/build-types/dataviews/fields/revisions/index.d.ts +8 -0
- package/build-types/dataviews/fields/revisions/index.d.ts.map +1 -0
- package/build-types/dataviews/fields/revisions/revisions-view.d.ts +2 -0
- package/build-types/dataviews/fields/revisions/revisions-view.d.ts.map +1 -0
- package/build-types/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts +1 -1
- package/build-types/store/private-selectors.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +1 -1
- package/build-types/store/selectors.d.ts.map +1 -1
- package/package.json +53 -47
- package/src/bindings/pattern-overrides.js +1 -1
- package/src/bindings/test/pattern-overrides.js +65 -0
- package/src/components/collab-sidebar/note-byline.js +0 -1
- package/src/components/collab-sidebar/note.js +64 -29
- package/src/components/collab-sidebar/style.scss +20 -0
- package/src/components/collaborators-presence/avatar/component.tsx +0 -1
- package/src/components/collaborators-presence/avatar/test/index.tsx +0 -1
- package/src/components/document-bar/index.js +8 -3
- package/src/components/document-bar/style.scss +4 -2
- package/src/components/global-keyboard-shortcuts/index.js +2 -1
- package/src/components/local-autosave-monitor/index.js +23 -21
- package/src/components/post-card-panel/index.js +1 -1
- package/src/components/post-publish-button/index.js +6 -3
- package/src/components/post-publish-button/test/index.js +13 -0
- package/src/components/post-revisions-preview/diff-markers.js +0 -1
- package/src/components/post-revisions-timeline/index.js +186 -0
- package/src/components/post-revisions-timeline/style.scss +43 -0
- package/src/components/post-saved-state/index.js +23 -26
- package/src/components/post-saved-state/test/index.js +18 -0
- package/src/components/post-taxonomies/flat-term-selector.js +4 -7
- package/src/components/post-text-editor/index.js +65 -0
- package/src/components/post-text-editor/test/utils.js +210 -0
- package/src/components/post-text-editor/utils.js +204 -0
- package/src/components/post-type-support-check/test/index.js +11 -0
- package/src/components/post-url/index.js +1 -1
- package/src/components/post-view-link/index.js +1 -1
- package/src/components/post-view-link/test/index.js +71 -0
- package/src/components/provider/index.js +2 -1
- package/src/components/resizable-editor/resize-handle.js +0 -1
- package/src/components/revision-diff-panel/index.js +8 -2
- package/src/components/revision-fields-diff/index.js +12 -1
- package/src/components/sidebar/dataform-post-summary.js +196 -25
- package/src/components/sidebar/index.js +2 -12
- package/src/components/sidebar/post-revision-summary.js +8 -15
- package/src/components/sidebar/post-summary.js +1 -1
- package/src/components/style-book/index.js +1 -1
- package/src/components/template-actions-panel/block-theme-content.js +0 -1
- package/src/components/template-actions-panel/index.js +0 -15
- package/src/dataviews/fields/revisions/index.tsx +28 -0
- package/src/dataviews/fields/revisions/revisions-view.tsx +59 -0
- package/src/dataviews/store/private-actions.ts +27 -6
- package/src/store/private-selectors.js +11 -1
- package/src/store/test/private-selectors.js +69 -0
- package/src/style.scss +1 -1
- package/build/components/post-revisions-panel/index.cjs +0 -173
- package/build/components/post-revisions-panel/index.cjs.map +0 -7
- package/build/components/revision-author-panel/index.cjs.map +0 -7
- package/build/components/revision-created-panel/index.cjs +0 -47
- package/build/components/revision-created-panel/index.cjs.map +0 -7
- package/build-module/components/post-revisions-panel/index.mjs +0 -148
- package/build-module/components/post-revisions-panel/index.mjs.map +0 -7
- package/build-module/components/revision-author-panel/index.mjs +0 -28
- package/build-module/components/revision-author-panel/index.mjs.map +0 -7
- package/build-module/components/revision-created-panel/index.mjs +0 -26
- package/build-module/components/revision-created-panel/index.mjs.map +0 -7
- package/build-types/components/collab-sidebar/add-comment.d.ts +0 -6
- package/build-types/components/collab-sidebar/add-comment.d.ts.map +0 -1
- package/build-types/components/collab-sidebar/comment-author-info.d.ts +0 -8
- package/build-types/components/collab-sidebar/comment-author-info.d.ts.map +0 -1
- package/build-types/components/collab-sidebar/comment-form.d.ts +0 -9
- package/build-types/components/collab-sidebar/comment-form.d.ts.map +0 -1
- package/build-types/components/collab-sidebar/comment-indicator-toolbar.d.ts +0 -6
- package/build-types/components/collab-sidebar/comment-indicator-toolbar.d.ts.map +0 -1
- package/build-types/components/collab-sidebar/comment-menu-item.d.ts +0 -6
- package/build-types/components/collab-sidebar/comment-menu-item.d.ts.map +0 -1
- package/build-types/components/collab-sidebar/comments.d.ts +0 -10
- package/build-types/components/collab-sidebar/comments.d.ts.map +0 -1
- package/build-types/components/global-styles-provider/index.d.ts +0 -16
- package/build-types/components/global-styles-provider/index.d.ts.map +0 -1
- package/build-types/components/media/index.d.ts +0 -3
- package/build-types/components/media/index.d.ts.map +0 -1
- package/build-types/components/media/metadata-panel.d.ts +0 -12
- package/build-types/components/media/metadata-panel.d.ts.map +0 -1
- package/build-types/components/media/preview.d.ts +0 -9
- package/build-types/components/media/preview.d.ts.map +0 -1
- package/build-types/components/post-revisions-panel/index.d.ts +0 -2
- package/build-types/components/post-revisions-panel/index.d.ts.map +0 -1
- package/build-types/components/revision-author-panel/index.d.ts +0 -2
- package/build-types/components/revision-author-panel/index.d.ts.map +0 -1
- package/build-types/components/revision-created-panel/index.d.ts +0 -2
- package/build-types/components/revision-created-panel/index.d.ts.map +0 -1
- package/src/components/editor-help/images/add-dark.png +0 -0
- package/src/components/editor-help/images/add-dark@2x.png +0 -0
- package/src/components/editor-help/images/add-dark@3x.png +0 -0
- package/src/components/editor-help/images/add-light.png +0 -0
- package/src/components/editor-help/images/add-light@2x.png +0 -0
- package/src/components/editor-help/images/add-light@3x.png +0 -0
- package/src/components/editor-help/images/block-layout-collage.png +0 -0
- package/src/components/editor-help/images/block-layout-collage@2x.png +0 -0
- package/src/components/editor-help/images/block-layout-collage@3x.png +0 -0
- package/src/components/editor-help/images/build-layouts-dark.png +0 -0
- package/src/components/editor-help/images/build-layouts-dark@2x.png +0 -0
- package/src/components/editor-help/images/build-layouts-dark@3x.png +0 -0
- package/src/components/editor-help/images/build-layouts-light.png +0 -0
- package/src/components/editor-help/images/build-layouts-light@2x.png +0 -0
- package/src/components/editor-help/images/build-layouts-light@3x.png +0 -0
- package/src/components/editor-help/images/drag-and-drop-dark.png +0 -0
- package/src/components/editor-help/images/drag-and-drop-dark@2x.png +0 -0
- package/src/components/editor-help/images/drag-and-drop-dark@3x.png +0 -0
- package/src/components/editor-help/images/drag-and-drop-light.png +0 -0
- package/src/components/editor-help/images/drag-and-drop-light@2x.png +0 -0
- package/src/components/editor-help/images/drag-and-drop-light@3x.png +0 -0
- package/src/components/editor-help/images/edit-media-dark.png +0 -0
- package/src/components/editor-help/images/edit-media-dark@2x.png +0 -0
- package/src/components/editor-help/images/edit-media-dark@3x.png +0 -0
- package/src/components/editor-help/images/edit-media-light.png +0 -0
- package/src/components/editor-help/images/edit-media-light@2x.png +0 -0
- package/src/components/editor-help/images/edit-media-light@3x.png +0 -0
- package/src/components/editor-help/images/embed-media-dark.png +0 -0
- package/src/components/editor-help/images/embed-media-dark@2x.png +0 -0
- package/src/components/editor-help/images/embed-media-dark@3x.png +0 -0
- package/src/components/editor-help/images/embed-media-light.png +0 -0
- package/src/components/editor-help/images/embed-media-light@2x.png +0 -0
- package/src/components/editor-help/images/embed-media-light@3x.png +0 -0
- package/src/components/editor-help/images/move-dark.png +0 -0
- package/src/components/editor-help/images/move-dark@2x.png +0 -0
- package/src/components/editor-help/images/move-dark@3x.png +0 -0
- package/src/components/editor-help/images/move-light.png +0 -0
- package/src/components/editor-help/images/move-light@2x.png +0 -0
- package/src/components/editor-help/images/move-light@3x.png +0 -0
- package/src/components/editor-help/images/options-dark.png +0 -0
- package/src/components/editor-help/images/options-dark@2x.png +0 -0
- package/src/components/editor-help/images/options-dark@3x.png +0 -0
- package/src/components/editor-help/images/options-light.png +0 -0
- package/src/components/editor-help/images/options-light@2x.png +0 -0
- package/src/components/editor-help/images/options-light@3x.png +0 -0
- package/src/components/editor-help/images/rich-text-dark.png +0 -0
- package/src/components/editor-help/images/rich-text-dark@2x.png +0 -0
- package/src/components/editor-help/images/rich-text-dark@3x.png +0 -0
- package/src/components/editor-help/images/rich-text-light.png +0 -0
- package/src/components/editor-help/images/rich-text-light@2x.png +0 -0
- package/src/components/editor-help/images/rich-text-light@3x.png +0 -0
- package/src/components/editor-help/images/settings-dark.png +0 -0
- package/src/components/editor-help/images/settings-dark@2x.png +0 -0
- package/src/components/editor-help/images/settings-dark@3x.png +0 -0
- package/src/components/editor-help/images/settings-light.png +0 -0
- package/src/components/editor-help/images/settings-light@2x.png +0 -0
- package/src/components/editor-help/images/settings-light@3x.png +0 -0
- package/src/components/editor-help/style.scss +0 -123
- package/src/components/post-revisions-panel/index.js +0 -161
- package/src/components/post-revisions-panel/style.scss +0 -16
- package/src/components/revision-author-panel/index.js +0 -36
- package/src/components/revision-created-panel/index.js +0 -36
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"comment-indicator-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comment-indicator-toolbar.js"],"names":[],"mappings":";AAiBA;;;uCAwFC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"comment-menu-item.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comment-menu-item.js"],"names":[],"mappings":";AAiEA;;;gCAeC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function Comments({ threads: noteThreads, onEditComment, onAddReply, onCommentDelete, commentSidebarRef, isFloating, }: {
|
|
2
|
-
threads: any;
|
|
3
|
-
onEditComment: any;
|
|
4
|
-
onAddReply: any;
|
|
5
|
-
onCommentDelete: any;
|
|
6
|
-
commentSidebarRef: any;
|
|
7
|
-
isFloating?: boolean | undefined;
|
|
8
|
-
}): import("react").JSX.Element;
|
|
9
|
-
export default Comments;
|
|
10
|
-
//# sourceMappingURL=comments.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comments.js"],"names":[],"mappings":"AA+CA;;;;;;;gCAuPC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare function useGlobalStylesContext(): {
|
|
2
|
-
isReady: any;
|
|
3
|
-
user: boolean | {
|
|
4
|
-
settings: any;
|
|
5
|
-
styles: any;
|
|
6
|
-
_links: any;
|
|
7
|
-
} | ((callbackOrObject: Function | Object, options?: Object) => void);
|
|
8
|
-
base: any;
|
|
9
|
-
merged: import("@wordpress/global-styles-engine").GlobalStylesConfig;
|
|
10
|
-
setUserConfig: boolean | {
|
|
11
|
-
settings: any;
|
|
12
|
-
styles: any;
|
|
13
|
-
_links: any;
|
|
14
|
-
} | ((callbackOrObject: Function | Object, options?: Object) => void);
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/global-styles-provider/index.js"],"names":[],"mappings":"AA+KA,wBAAgB,sBAAsB;;;;;;4BAjDzB,WAAS,MAAM,YAEf,MAAM;;;;;;;;EA8ElB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/media/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Media metadata panel for the editor sidebar.
|
|
3
|
-
* Displays a form for editing media properties with PostCardPanel header.
|
|
4
|
-
*
|
|
5
|
-
* @param {Object} props - Component props.
|
|
6
|
-
* @param {Function} props.onActionPerformed - Callback when an action is performed.
|
|
7
|
-
* @return {Element} The MediaMetadataPanel component.
|
|
8
|
-
*/
|
|
9
|
-
export default function MediaMetadataPanel({ onActionPerformed }: {
|
|
10
|
-
onActionPerformed: Function;
|
|
11
|
-
}): Element;
|
|
12
|
-
//# sourceMappingURL=metadata-panel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metadata-panel.d.ts","sourceRoot":"","sources":["../../../src/components/media/metadata-panel.js"],"names":[],"mappings":"AAgBA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAE,EAAE,iBAAiB,EAAE,EAH9D;IAAwB,iBAAiB,WACzC;CAE8D,WAoDhE"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Media preview component for the editor.
|
|
3
|
-
* Connects the base MediaPreview component to the editor store.
|
|
4
|
-
*
|
|
5
|
-
* @param {Object} props - Additional props to spread on MediaPreview.
|
|
6
|
-
* @return {Element} The MediaPreview component.
|
|
7
|
-
*/
|
|
8
|
-
export default function MediaPreview(props: Object): Element;
|
|
9
|
-
//# sourceMappingURL=preview.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../src/components/media/preview.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,KAAK,QAAA,WAa1C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-panel/index.js"],"names":[],"mappings":"AAkJA,MAAM,CAAC,OAAO,UAAU,kBAAkB,uCAczC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/revision-author-panel/index.js"],"names":[],"mappings":"AAeA,MAAM,CAAC,OAAO,UAAU,mBAAmB,uCAoB1C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/revision-created-panel/index.js"],"names":[],"mappings":"AAcA,MAAM,CAAC,OAAO,UAAU,oBAAoB,uCAqB3C"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
@use "@wordpress/base-styles/colors" as *;
|
|
2
|
-
@use "@wordpress/base-styles/variables" as *;
|
|
3
|
-
|
|
4
|
-
.button {
|
|
5
|
-
margin: $grid-unit-10 $grid-unit-05;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
border: $border-width solid $gray-300;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.buttonDark {
|
|
12
|
-
border-color: $gray-700;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.buttonText {
|
|
16
|
-
font-weight: 600;
|
|
17
|
-
font-size: 16px;
|
|
18
|
-
color: $light-primary;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.buttonTextDark {
|
|
22
|
-
color: $dark-primary;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.safeAreaContainer {
|
|
26
|
-
flex: 1;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.navigationContainer {
|
|
30
|
-
flex: 1;
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.container {
|
|
35
|
-
height: 100%;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.contentContainer {
|
|
39
|
-
padding: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.helpSectionTitleContainer {
|
|
43
|
-
margin-top: 24px;
|
|
44
|
-
margin-bottom: 16px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.helpSectionTitle {
|
|
48
|
-
color: $light-primary;
|
|
49
|
-
font-weight: 600;
|
|
50
|
-
font-size: 16px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.helpSectionTitleDark {
|
|
54
|
-
color: $dark-secondary;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.helpDetailContainer {
|
|
58
|
-
padding: 0 16px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.helpDetailImage {
|
|
62
|
-
background-color: $gray-light;
|
|
63
|
-
margin-bottom: 16px;
|
|
64
|
-
width: 100%;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.helpDetailImageDark {
|
|
68
|
-
background-color: $gray-dark;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.helpDetailTitle,
|
|
72
|
-
.helpDetailSectionHeading,
|
|
73
|
-
.helpDetailBody {
|
|
74
|
-
margin-bottom: 16px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.helpDetailTitle {
|
|
78
|
-
color: $light-primary;
|
|
79
|
-
font-weight: 600;
|
|
80
|
-
font-size: 28px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.helpDetailTitleDark {
|
|
84
|
-
color: $dark-primary;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.helpDetailSectionHeading {
|
|
88
|
-
flex-direction: row;
|
|
89
|
-
align-items: center;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.helpDetailSectionHeadingText {
|
|
93
|
-
color: $light-primary;
|
|
94
|
-
font-weight: 700;
|
|
95
|
-
font-size: 16px;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.helpDetailSectionHeadingTextDark {
|
|
99
|
-
color: $dark-primary;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.helpDetailBody {
|
|
103
|
-
color: $light-secondary;
|
|
104
|
-
font-size: 16px;
|
|
105
|
-
line-height: 24px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.helpDetailBodyDark {
|
|
109
|
-
color: $dark-secondary;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.helpDetailBadgeContainer {
|
|
113
|
-
padding: 2px 6px;
|
|
114
|
-
margin-right: 8px;
|
|
115
|
-
border-radius: 6px;
|
|
116
|
-
background-color: #c9356e;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.helpDetailBadgeText {
|
|
120
|
-
color: $white;
|
|
121
|
-
font-weight: $font-weight-medium;
|
|
122
|
-
font-size: 12px;
|
|
123
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
|
-
import {
|
|
5
|
-
PanelBody,
|
|
6
|
-
Button,
|
|
7
|
-
__experimentalHStack as HStack,
|
|
8
|
-
__experimentalVStack as VStack,
|
|
9
|
-
privateApis as componentsPrivateApis,
|
|
10
|
-
} from '@wordpress/components';
|
|
11
|
-
import { store as coreStore } from '@wordpress/core-data';
|
|
12
|
-
import { DataViews } from '@wordpress/dataviews';
|
|
13
|
-
import { dateI18n, getDate, humanTimeDiff, getSettings } from '@wordpress/date';
|
|
14
|
-
import { useSelect, useDispatch } from '@wordpress/data';
|
|
15
|
-
import { __ } from '@wordpress/i18n';
|
|
16
|
-
import { authorField } from '@wordpress/fields';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Internal dependencies
|
|
20
|
-
*/
|
|
21
|
-
import PostLastRevisionCheck from '../post-last-revision/check';
|
|
22
|
-
import { store as editorStore } from '../../store';
|
|
23
|
-
import { unlock } from '../../lock-unlock';
|
|
24
|
-
|
|
25
|
-
const { Badge: WCBadge } = unlock( componentsPrivateApis );
|
|
26
|
-
const DAY_IN_MILLISECONDS = 86400000;
|
|
27
|
-
const EMPTY_ARRAY = [];
|
|
28
|
-
const defaultLayouts = { activity: true };
|
|
29
|
-
const noop = () => {};
|
|
30
|
-
const paginationInfo = {};
|
|
31
|
-
const view = {
|
|
32
|
-
type: 'activity',
|
|
33
|
-
titleField: 'date',
|
|
34
|
-
fields: [ 'author' ],
|
|
35
|
-
layout: { density: 'compact' },
|
|
36
|
-
};
|
|
37
|
-
const fields = [
|
|
38
|
-
{
|
|
39
|
-
id: 'date',
|
|
40
|
-
label: __( 'Date' ),
|
|
41
|
-
render: ( { item, field } ) => {
|
|
42
|
-
const dateNowInMs = getDate( null ).getTime();
|
|
43
|
-
const _value = field.getValue( { item } );
|
|
44
|
-
const date = getDate( _value ?? null );
|
|
45
|
-
const displayDate =
|
|
46
|
-
dateNowInMs - date.getTime() > DAY_IN_MILLISECONDS
|
|
47
|
-
? dateI18n(
|
|
48
|
-
getSettings().formats.datetimeAbbreviated,
|
|
49
|
-
date
|
|
50
|
-
)
|
|
51
|
-
: humanTimeDiff( date );
|
|
52
|
-
return (
|
|
53
|
-
<time
|
|
54
|
-
className="editor-post-revisions-panel__revision-date"
|
|
55
|
-
dateTime={ _value }
|
|
56
|
-
>
|
|
57
|
-
{ displayDate }
|
|
58
|
-
</time>
|
|
59
|
-
);
|
|
60
|
-
},
|
|
61
|
-
enableSorting: false,
|
|
62
|
-
enableHiding: false,
|
|
63
|
-
},
|
|
64
|
-
authorField,
|
|
65
|
-
];
|
|
66
|
-
|
|
67
|
-
function PostRevisionsPanelContent() {
|
|
68
|
-
const { setCurrentRevisionId } = unlock( useDispatch( editorStore ) );
|
|
69
|
-
const {
|
|
70
|
-
revisionsCount,
|
|
71
|
-
revisions,
|
|
72
|
-
revisionKey,
|
|
73
|
-
isLoading,
|
|
74
|
-
lastRevisionId,
|
|
75
|
-
} = useSelect( ( select ) => {
|
|
76
|
-
const { getCurrentPostId, getCurrentPostType } = select( editorStore );
|
|
77
|
-
const { getCurrentPostRevisionsCount, getCurrentPostLastRevisionId } =
|
|
78
|
-
select( editorStore );
|
|
79
|
-
const { getRevisions, getEntityConfig, isResolving } =
|
|
80
|
-
select( coreStore );
|
|
81
|
-
const _postType = getCurrentPostType();
|
|
82
|
-
const entityConfig = getEntityConfig( 'postType', _postType );
|
|
83
|
-
const _revisionKey = entityConfig?.revisionKey || 'id';
|
|
84
|
-
const revisionsQuery = {
|
|
85
|
-
per_page: 3,
|
|
86
|
-
orderby: 'date',
|
|
87
|
-
order: 'desc',
|
|
88
|
-
_fields: `${ _revisionKey },date,author`,
|
|
89
|
-
};
|
|
90
|
-
const query = [
|
|
91
|
-
'postType',
|
|
92
|
-
_postType,
|
|
93
|
-
getCurrentPostId(),
|
|
94
|
-
revisionsQuery,
|
|
95
|
-
];
|
|
96
|
-
const _revisions = getRevisions( ...query );
|
|
97
|
-
return {
|
|
98
|
-
revisionsCount: getCurrentPostRevisionsCount(),
|
|
99
|
-
lastRevisionId: getCurrentPostLastRevisionId(),
|
|
100
|
-
revisions: _revisions,
|
|
101
|
-
revisionKey: _revisionKey,
|
|
102
|
-
isLoading: isResolving( 'getRevisions', query ),
|
|
103
|
-
};
|
|
104
|
-
}, [] );
|
|
105
|
-
return (
|
|
106
|
-
<PanelBody
|
|
107
|
-
title={
|
|
108
|
-
<HStack justify="space-between" align="center" as="span">
|
|
109
|
-
<span>{ __( 'Revisions' ) }</span>
|
|
110
|
-
<WCBadge className="editor-post-revisions-panel__revisions-count">
|
|
111
|
-
{ revisionsCount }
|
|
112
|
-
</WCBadge>
|
|
113
|
-
</HStack>
|
|
114
|
-
}
|
|
115
|
-
initialOpen={ false }
|
|
116
|
-
>
|
|
117
|
-
<VStack className="editor-post-revisions-panel">
|
|
118
|
-
<DataViews
|
|
119
|
-
view={ view }
|
|
120
|
-
onChangeView={ noop }
|
|
121
|
-
fields={ fields }
|
|
122
|
-
data={ revisions || EMPTY_ARRAY }
|
|
123
|
-
isLoading={ isLoading }
|
|
124
|
-
paginationInfo={ paginationInfo }
|
|
125
|
-
defaultLayouts={ defaultLayouts }
|
|
126
|
-
getItemId={ ( item ) => item[ revisionKey ] }
|
|
127
|
-
isItemClickable={ () => true }
|
|
128
|
-
onClickItem={ ( item ) => {
|
|
129
|
-
setCurrentRevisionId( item[ revisionKey ] );
|
|
130
|
-
} }
|
|
131
|
-
>
|
|
132
|
-
<DataViews.Layout />
|
|
133
|
-
</DataViews>
|
|
134
|
-
<Button
|
|
135
|
-
className="editor-post-revisions-panel__view-all"
|
|
136
|
-
__next40pxDefaultSize
|
|
137
|
-
variant="secondary"
|
|
138
|
-
onClick={ () => setCurrentRevisionId( lastRevisionId ) }
|
|
139
|
-
>
|
|
140
|
-
{ __( 'View all revisions' ) }
|
|
141
|
-
</Button>
|
|
142
|
-
</VStack>
|
|
143
|
-
</PanelBody>
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export default function PostRevisionsPanel() {
|
|
148
|
-
const disableVisualRevisions = useSelect(
|
|
149
|
-
( select ) =>
|
|
150
|
-
!! select( editorStore ).getEditorSettings().disableVisualRevisions,
|
|
151
|
-
[]
|
|
152
|
-
);
|
|
153
|
-
if ( disableVisualRevisions ) {
|
|
154
|
-
return null;
|
|
155
|
-
}
|
|
156
|
-
return (
|
|
157
|
-
<PostLastRevisionCheck>
|
|
158
|
-
<PostRevisionsPanelContent />
|
|
159
|
-
</PostLastRevisionCheck>
|
|
160
|
-
);
|
|
161
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
.editor-post-revisions-panel {
|
|
2
|
-
.editor-post-revisions-panel__view-all {
|
|
3
|
-
justify-content: center;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.editor-post-revisions-panel__revision-date {
|
|
7
|
-
text-transform: uppercase;
|
|
8
|
-
font-weight: 600;
|
|
9
|
-
font-size: 12px;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.editor-post-revisions-panel__revisions-count {
|
|
14
|
-
margin-top: -4.5px;
|
|
15
|
-
margin-bottom: -4.5px;
|
|
16
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { useSelect } from '@wordpress/data';
|
|
5
|
-
import { store as coreStore } from '@wordpress/core-data';
|
|
6
|
-
import { decodeEntities } from '@wordpress/html-entities';
|
|
7
|
-
import { __ } from '@wordpress/i18n';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Internal dependencies
|
|
11
|
-
*/
|
|
12
|
-
import PostPanelRow from '../post-panel-row';
|
|
13
|
-
import { store as editorStore } from '../../store';
|
|
14
|
-
import { unlock } from '../../lock-unlock';
|
|
15
|
-
|
|
16
|
-
export default function RevisionAuthorPanel() {
|
|
17
|
-
const authorName = useSelect( ( select ) => {
|
|
18
|
-
const { getCurrentRevision } = unlock( select( editorStore ) );
|
|
19
|
-
const revision = getCurrentRevision();
|
|
20
|
-
if ( ! revision?.author ) {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
const author = select( coreStore ).getUser( revision.author );
|
|
24
|
-
return author?.name;
|
|
25
|
-
}, [] );
|
|
26
|
-
|
|
27
|
-
if ( ! authorName ) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<PostPanelRow label={ __( 'Author' ) }>
|
|
33
|
-
{ decodeEntities( authorName ) }
|
|
34
|
-
</PostPanelRow>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { __experimentalText as WCText } from '@wordpress/components';
|
|
5
|
-
import { useSelect } from '@wordpress/data';
|
|
6
|
-
import { __, sprintf } from '@wordpress/i18n';
|
|
7
|
-
import { humanTimeDiff } from '@wordpress/date';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Internal dependencies
|
|
11
|
-
*/
|
|
12
|
-
import { store as editorStore } from '../../store';
|
|
13
|
-
import { unlock } from '../../lock-unlock';
|
|
14
|
-
|
|
15
|
-
export default function RevisionCreatedPanel() {
|
|
16
|
-
const date = useSelect( ( select ) => {
|
|
17
|
-
const { getCurrentRevision } = unlock( select( editorStore ) );
|
|
18
|
-
return getCurrentRevision()?.date;
|
|
19
|
-
}, [] );
|
|
20
|
-
|
|
21
|
-
if ( ! date ) {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<div className="editor-post-last-edited-panel">
|
|
27
|
-
<WCText>
|
|
28
|
-
{ sprintf(
|
|
29
|
-
// translators: %s: Human-readable time difference, e.g. "2 days ago".
|
|
30
|
-
__( 'Created %s.' ),
|
|
31
|
-
humanTimeDiff( date )
|
|
32
|
-
) }
|
|
33
|
-
</WCText>
|
|
34
|
-
</div>
|
|
35
|
-
);
|
|
36
|
-
}
|