@wordpress/editor 14.40.2-next.v.202602271551.0 → 14.40.2
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/build/components/collab-sidebar/add-comment.cjs +0 -3
- package/build/components/collab-sidebar/add-comment.cjs.map +2 -2
- package/build/components/collab-sidebar/comments.cjs +0 -3
- package/build/components/collab-sidebar/comments.cjs.map +2 -2
- package/build/components/collab-sidebar/index.cjs +7 -4
- package/build/components/collab-sidebar/index.cjs.map +2 -2
- package/build/components/collab-sidebar/utils.cjs +13 -15
- package/build/components/collab-sidebar/utils.cjs.map +2 -2
- package/build/components/collaborators-overlay/avatar-iframe-styles.cjs +141 -0
- package/build/components/collaborators-overlay/avatar-iframe-styles.cjs.map +7 -0
- package/build/components/collaborators-overlay/collaborator-styles.cjs +38 -2
- package/build/components/collaborators-overlay/collaborator-styles.cjs.map +2 -2
- package/build/components/collaborators-overlay/compute-selection.cjs +185 -0
- package/build/components/collaborators-overlay/compute-selection.cjs.map +7 -0
- package/build/components/collaborators-overlay/cursor-dom-utils.cjs +243 -0
- package/build/components/collaborators-overlay/cursor-dom-utils.cjs.map +7 -0
- package/build/components/collaborators-overlay/cursor-registry.cjs +86 -0
- package/build/components/collaborators-overlay/cursor-registry.cjs.map +7 -0
- package/build/components/collaborators-overlay/index.cjs +7 -2
- package/build/components/collaborators-overlay/index.cjs.map +2 -2
- package/build/components/collaborators-overlay/overlay-iframe-styles.cjs +148 -0
- package/build/components/collaborators-overlay/overlay-iframe-styles.cjs.map +7 -0
- package/build/components/collaborators-overlay/overlay.cjs +141 -229
- package/build/components/collaborators-overlay/overlay.cjs.map +3 -3
- package/build/components/collaborators-overlay/timing-utils.cjs +46 -0
- package/build/components/collaborators-overlay/timing-utils.cjs.map +7 -0
- package/build/components/collaborators-overlay/use-block-highlighting.cjs +91 -42
- package/build/components/collaborators-overlay/use-block-highlighting.cjs.map +2 -2
- package/build/components/collaborators-overlay/use-debounced-recompute.cjs +49 -0
- package/build/components/collaborators-overlay/use-debounced-recompute.cjs.map +7 -0
- package/build/components/collaborators-overlay/use-render-cursors.cjs +82 -172
- package/build/components/collaborators-overlay/use-render-cursors.cjs.map +3 -3
- package/build/components/collaborators-presence/avatar/component.cjs +121 -0
- package/build/components/collaborators-presence/avatar/component.cjs.map +7 -0
- package/build/components/collaborators-presence/avatar/index.cjs +37 -0
- package/build/components/collaborators-presence/avatar/index.cjs.map +7 -0
- package/build/components/collaborators-presence/avatar/types.cjs +19 -0
- package/build/components/collaborators-presence/avatar/types.cjs.map +7 -0
- package/build/components/collaborators-presence/avatar/use-image-loading-status.cjs +44 -0
- package/build/components/collaborators-presence/avatar/use-image-loading-status.cjs.map +7 -0
- package/build/components/collaborators-presence/avatar-group/component.cjs +78 -0
- package/build/components/collaborators-presence/avatar-group/component.cjs.map +7 -0
- package/build/components/collaborators-presence/avatar-group/index.cjs +37 -0
- package/build/components/collaborators-presence/avatar-group/index.cjs.map +7 -0
- package/build/components/collaborators-presence/avatar-group/types.cjs +19 -0
- package/build/components/collaborators-presence/avatar-group/types.cjs.map +7 -0
- package/build/components/collaborators-presence/index.cjs +66 -19
- package/build/components/collaborators-presence/index.cjs.map +3 -3
- package/build/components/collaborators-presence/list.cjs +60 -38
- package/build/components/collaborators-presence/list.cjs.map +3 -3
- package/build/components/collaborators-presence/use-collaborator-notifications.cjs +149 -0
- package/build/components/collaborators-presence/use-collaborator-notifications.cjs.map +7 -0
- package/build/components/editor-interface/index.cjs +11 -6
- package/build/components/editor-interface/index.cjs.map +2 -2
- package/build/components/inserter-sidebar/index.cjs +2 -1
- package/build/components/inserter-sidebar/index.cjs.map +2 -2
- package/build/components/more-menu/copy-content-menu-item.cjs +19 -2
- package/build/components/more-menu/copy-content-menu-item.cjs.map +3 -3
- package/build/components/post-last-revision/index.cjs +27 -6
- package/build/components/post-last-revision/index.cjs.map +2 -2
- package/build/components/post-locked-modal/index.cjs +49 -17
- package/build/components/post-locked-modal/index.cjs.map +3 -3
- package/build/components/post-revisions-preview/block-diff.cjs +130 -34
- package/build/components/post-revisions-preview/block-diff.cjs.map +2 -2
- package/build/components/post-revisions-preview/diff-markers.cjs +6 -5
- package/build/components/post-revisions-preview/diff-markers.cjs.map +2 -2
- package/build/components/post-revisions-preview/revisions-canvas.cjs +16 -60
- package/build/components/post-revisions-preview/revisions-canvas.cjs.map +3 -3
- package/build/components/post-revisions-preview/revisions-slider.cjs +102 -39
- package/build/components/post-revisions-preview/revisions-slider.cjs.map +3 -3
- package/build/components/post-text-editor/index.cjs +20 -5
- package/build/components/post-text-editor/index.cjs.map +3 -3
- package/build/components/preferences-modal/index.cjs +36 -4
- package/build/components/preferences-modal/index.cjs.map +2 -2
- package/build/components/provider/disable-non-page-content-blocks.cjs +31 -28
- package/build/components/provider/disable-non-page-content-blocks.cjs.map +3 -3
- package/build/components/provider/index.cjs +17 -5
- package/build/components/provider/index.cjs.map +2 -2
- package/build/components/provider/use-block-editor-settings.cjs +20 -4
- package/build/components/provider/use-block-editor-settings.cjs.map +3 -3
- package/build/components/provider/{use-post-content-blocks.cjs → use-post-content-block-types.cjs} +8 -19
- package/build/components/provider/use-post-content-block-types.cjs.map +7 -0
- package/build/components/provider/use-revision-blocks.cjs +106 -0
- package/build/components/provider/use-revision-blocks.cjs.map +7 -0
- package/build/components/revision-block-diff/index.cjs +61 -0
- package/build/components/revision-block-diff/index.cjs.map +7 -0
- package/build/components/revision-diff-panel/index.cjs +68 -0
- package/build/components/revision-diff-panel/index.cjs.map +7 -0
- package/build/components/revision-fields-diff/index.cjs +96 -0
- package/build/components/revision-fields-diff/index.cjs.map +7 -0
- package/build/components/sidebar/header.cjs +1 -1
- package/build/components/sidebar/header.cjs.map +2 -2
- package/build/components/sidebar/index.cjs +7 -1
- package/build/components/sidebar/index.cjs.map +3 -3
- package/build/components/style-book/index.cjs +4 -3
- package/build/components/style-book/index.cjs.map +2 -2
- package/build/components/sync-connection-error-modal/index.cjs +187 -0
- package/build/components/sync-connection-error-modal/index.cjs.map +7 -0
- package/build/components/sync-connection-error-modal/use-retry-countdown.cjs +84 -0
- package/build/components/sync-connection-error-modal/use-retry-countdown.cjs.map +7 -0
- package/build/components/template-content-panel/index.cjs +35 -31
- package/build/components/template-content-panel/index.cjs.map +3 -3
- package/build/components/template-part-menu-items/convert-to-regular.cjs +54 -11
- package/build/components/template-part-menu-items/convert-to-regular.cjs.map +3 -3
- package/build/components/visual-editor/index.cjs +6 -15
- package/build/components/visual-editor/index.cjs.map +2 -2
- package/build/store/private-actions.cjs +46 -2
- package/build/store/private-actions.cjs.map +2 -2
- package/build/store/private-selectors.cjs +154 -29
- package/build/store/private-selectors.cjs.map +2 -2
- package/build/store/reducer.cjs +27 -0
- package/build/store/reducer.cjs.map +2 -2
- package/build/store/selectors.cjs +0 -14
- package/build/store/selectors.cjs.map +2 -2
- package/build/utils/media-finalize/index.cjs +43 -0
- package/build/utils/media-finalize/index.cjs.map +7 -0
- package/build/utils/media-upload/on-success.cjs +46 -0
- package/build/utils/media-upload/on-success.cjs.map +7 -0
- package/build/utils/sync-error-messages.cjs +32 -15
- package/build/utils/sync-error-messages.cjs.map +3 -3
- package/build-module/components/collab-sidebar/add-comment.mjs +0 -3
- package/build-module/components/collab-sidebar/add-comment.mjs.map +2 -2
- package/build-module/components/collab-sidebar/comments.mjs +0 -3
- package/build-module/components/collab-sidebar/comments.mjs.map +2 -2
- package/build-module/components/collab-sidebar/index.mjs +7 -4
- package/build-module/components/collab-sidebar/index.mjs.map +2 -2
- package/build-module/components/collab-sidebar/utils.mjs +13 -15
- package/build-module/components/collab-sidebar/utils.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/avatar-iframe-styles.mjs +128 -0
- package/build-module/components/collaborators-overlay/avatar-iframe-styles.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/collaborator-styles.mjs +25 -1
- package/build-module/components/collaborators-overlay/collaborator-styles.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/compute-selection.mjs +166 -0
- package/build-module/components/collaborators-overlay/compute-selection.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/cursor-dom-utils.mjs +213 -0
- package/build-module/components/collaborators-overlay/cursor-dom-utils.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/cursor-registry.mjs +61 -0
- package/build-module/components/collaborators-overlay/cursor-registry.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/index.mjs +7 -2
- package/build-module/components/collaborators-overlay/index.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs +130 -0
- package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/overlay.mjs +132 -230
- package/build-module/components/collaborators-overlay/overlay.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/timing-utils.mjs +21 -0
- package/build-module/components/collaborators-overlay/timing-utils.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/use-block-highlighting.mjs +93 -45
- package/build-module/components/collaborators-overlay/use-block-highlighting.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/use-debounced-recompute.mjs +24 -0
- package/build-module/components/collaborators-overlay/use-debounced-recompute.mjs.map +7 -0
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs +83 -176
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs.map +2 -2
- package/build-module/components/collaborators-presence/avatar/component.mjs +90 -0
- package/build-module/components/collaborators-presence/avatar/component.mjs.map +7 -0
- package/build-module/components/collaborators-presence/avatar/index.mjs +6 -0
- package/build-module/components/collaborators-presence/avatar/index.mjs.map +7 -0
- package/build-module/components/collaborators-presence/avatar/types.mjs +1 -0
- package/build-module/components/collaborators-presence/avatar/types.mjs.map +7 -0
- package/build-module/components/collaborators-presence/avatar/use-image-loading-status.mjs +19 -0
- package/build-module/components/collaborators-presence/avatar/use-image-loading-status.mjs.map +7 -0
- package/build-module/components/collaborators-presence/avatar-group/component.mjs +47 -0
- package/build-module/components/collaborators-presence/avatar-group/component.mjs.map +7 -0
- package/build-module/components/collaborators-presence/avatar-group/index.mjs +6 -0
- package/build-module/components/collaborators-presence/avatar-group/index.mjs.map +7 -0
- package/build-module/components/collaborators-presence/avatar-group/types.mjs +1 -0
- package/build-module/components/collaborators-presence/avatar-group/types.mjs.map +7 -0
- package/build-module/components/collaborators-presence/index.mjs +57 -23
- package/build-module/components/collaborators-presence/index.mjs.map +2 -2
- package/build-module/components/collaborators-presence/list.mjs +52 -44
- package/build-module/components/collaborators-presence/list.mjs.map +2 -2
- package/build-module/components/collaborators-presence/use-collaborator-notifications.mjs +126 -0
- package/build-module/components/collaborators-presence/use-collaborator-notifications.mjs.map +7 -0
- package/build-module/components/editor-interface/index.mjs +12 -7
- package/build-module/components/editor-interface/index.mjs.map +2 -2
- package/build-module/components/inserter-sidebar/index.mjs +2 -1
- package/build-module/components/inserter-sidebar/index.mjs.map +2 -2
- package/build-module/components/more-menu/copy-content-menu-item.mjs +19 -2
- package/build-module/components/more-menu/copy-content-menu-item.mjs.map +2 -2
- package/build-module/components/post-last-revision/index.mjs +27 -6
- package/build-module/components/post-last-revision/index.mjs.map +2 -2
- package/build-module/components/post-locked-modal/index.mjs +49 -17
- package/build-module/components/post-locked-modal/index.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/block-diff.mjs +130 -34
- package/build-module/components/post-revisions-preview/block-diff.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/diff-markers.mjs +6 -5
- package/build-module/components/post-revisions-preview/diff-markers.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/revisions-canvas.mjs +18 -65
- package/build-module/components/post-revisions-preview/revisions-canvas.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/revisions-slider.mjs +110 -42
- package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +2 -2
- package/build-module/components/post-text-editor/index.mjs +20 -5
- package/build-module/components/post-text-editor/index.mjs.map +2 -2
- package/build-module/components/preferences-modal/index.mjs +36 -4
- package/build-module/components/preferences-modal/index.mjs.map +2 -2
- package/build-module/components/provider/disable-non-page-content-blocks.mjs +31 -28
- package/build-module/components/provider/disable-non-page-content-blocks.mjs.map +2 -2
- package/build-module/components/provider/index.mjs +17 -5
- package/build-module/components/provider/index.mjs.map +2 -2
- package/build-module/components/provider/use-block-editor-settings.mjs +20 -4
- package/build-module/components/provider/use-block-editor-settings.mjs.map +2 -2
- package/build-module/components/provider/use-post-content-block-types.mjs +23 -0
- package/build-module/components/provider/use-post-content-block-types.mjs.map +7 -0
- package/build-module/components/provider/use-revision-blocks.mjs +81 -0
- package/build-module/components/provider/use-revision-blocks.mjs.map +7 -0
- package/build-module/components/revision-block-diff/index.mjs +30 -0
- package/build-module/components/revision-block-diff/index.mjs.map +7 -0
- package/build-module/components/revision-diff-panel/index.mjs +37 -0
- package/build-module/components/revision-diff-panel/index.mjs.map +7 -0
- package/build-module/components/revision-fields-diff/index.mjs +65 -0
- package/build-module/components/revision-fields-diff/index.mjs.map +7 -0
- package/build-module/components/sidebar/header.mjs +1 -1
- package/build-module/components/sidebar/header.mjs.map +2 -2
- package/build-module/components/sidebar/index.mjs +7 -1
- package/build-module/components/sidebar/index.mjs.map +2 -2
- package/build-module/components/style-book/index.mjs +4 -3
- package/build-module/components/style-book/index.mjs.map +2 -2
- package/build-module/components/sync-connection-error-modal/index.mjs +170 -0
- package/build-module/components/sync-connection-error-modal/index.mjs.map +7 -0
- package/build-module/components/sync-connection-error-modal/use-retry-countdown.mjs +59 -0
- package/build-module/components/sync-connection-error-modal/use-retry-countdown.mjs.map +7 -0
- package/build-module/components/template-content-panel/index.mjs +25 -31
- package/build-module/components/template-content-panel/index.mjs.map +2 -2
- package/build-module/components/template-part-menu-items/convert-to-regular.mjs +60 -14
- package/build-module/components/template-part-menu-items/convert-to-regular.mjs.map +2 -2
- package/build-module/components/visual-editor/index.mjs +6 -15
- package/build-module/components/visual-editor/index.mjs.map +2 -2
- package/build-module/store/private-actions.mjs +44 -2
- package/build-module/store/private-actions.mjs.map +2 -2
- package/build-module/store/private-selectors.mjs +153 -29
- package/build-module/store/private-selectors.mjs.map +2 -2
- package/build-module/store/reducer.mjs +25 -0
- package/build-module/store/reducer.mjs.map +2 -2
- package/build-module/store/selectors.mjs +0 -13
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-module/utils/media-finalize/index.mjs +12 -0
- package/build-module/utils/media-finalize/index.mjs.map +7 -0
- package/build-module/utils/media-upload/on-success.mjs +25 -0
- package/build-module/utils/media-upload/on-success.mjs.map +7 -0
- package/build-module/utils/sync-error-messages.mjs +27 -15
- package/build-module/utils/sync-error-messages.mjs.map +3 -3
- package/build-style/style-rtl.css +296 -121
- package/build-style/style.css +296 -121
- package/build-types/components/autocompleters/link.d.ts +8 -0
- package/build-types/components/autocompleters/link.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/add-comment.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/add-note-menu-item.d.ts +5 -0
- package/build-types/components/collab-sidebar/add-note-menu-item.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/add-note.d.ts +6 -0
- package/build-types/components/collab-sidebar/add-note.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/board-store.d.ts +9 -0
- package/build-types/components/collab-sidebar/board-store.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/floating-container.d.ts +8 -0
- package/build-types/components/collab-sidebar/floating-container.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/note-byline.d.ts +10 -0
- package/build-types/components/collab-sidebar/note-byline.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/note-card.d.ts +8 -0
- package/build-types/components/collab-sidebar/note-card.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/note-form.d.ts +7 -0
- package/build-types/components/collab-sidebar/note-form.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/note-indicator-toolbar.d.ts +5 -0
- package/build-types/components/collab-sidebar/note-indicator-toolbar.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/note-thread.d.ts +11 -0
- package/build-types/components/collab-sidebar/note-thread.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/note.d.ts +9 -0
- package/build-types/components/collab-sidebar/note.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/notes.d.ts +7 -0
- package/build-types/components/collab-sidebar/notes.d.ts.map +1 -0
- package/build-types/components/collab-sidebar/utils.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/avatar-iframe-styles.d.ts +11 -0
- package/build-types/components/collaborators-overlay/avatar-iframe-styles.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/collaborator-styles.d.ts +17 -2
- package/build-types/components/collaborators-overlay/collaborator-styles.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/compute-selection.d.ts +24 -0
- package/build-types/components/collaborators-overlay/compute-selection.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/cursor-dom-utils.d.ts +72 -0
- package/build-types/components/collaborators-overlay/cursor-dom-utils.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/cursor-registry.d.ts +36 -0
- package/build-types/components/collaborators-overlay/cursor-registry.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/index.d.ts +7 -4
- package/build-types/components/collaborators-overlay/index.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/overlay-iframe-styles.d.ts +6 -0
- package/build-types/components/collaborators-overlay/overlay-iframe-styles.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/overlay.d.ts +4 -1
- package/build-types/components/collaborators-overlay/overlay.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/timing-utils.d.ts +11 -0
- package/build-types/components/collaborators-overlay/timing-utils.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/use-block-highlighting.d.ts +21 -5
- package/build-types/components/collaborators-overlay/use-block-highlighting.d.ts.map +1 -1
- package/build-types/components/collaborators-overlay/use-debounced-recompute.d.ts +10 -0
- package/build-types/components/collaborators-overlay/use-debounced-recompute.d.ts.map +1 -0
- package/build-types/components/collaborators-overlay/use-render-cursors.d.ts +6 -1
- package/build-types/components/collaborators-overlay/use-render-cursors.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/avatar/component.d.ts +7 -0
- package/build-types/components/collaborators-presence/avatar/component.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/avatar/index.d.ts +3 -0
- package/build-types/components/collaborators-presence/avatar/index.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/avatar/types.d.ts +66 -0
- package/build-types/components/collaborators-presence/avatar/types.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/avatar/use-image-loading-status.d.ts +17 -0
- package/build-types/components/collaborators-presence/avatar/use-image-loading-status.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/avatar-group/component.d.ts +7 -0
- package/build-types/components/collaborators-presence/avatar-group/component.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/avatar-group/index.d.ts +3 -0
- package/build-types/components/collaborators-presence/avatar-group/index.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/avatar-group/types.d.ts +14 -0
- package/build-types/components/collaborators-presence/avatar-group/types.d.ts.map +1 -0
- package/build-types/components/collaborators-presence/index.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/list.d.ts +6 -2
- package/build-types/components/collaborators-presence/list.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/use-collaborator-notifications.d.ts +9 -0
- package/build-types/components/collaborators-presence/use-collaborator-notifications.d.ts.map +1 -0
- package/build-types/components/editor-interface/index.d.ts.map +1 -1
- package/build-types/components/inserter-sidebar/index.d.ts.map +1 -1
- package/build-types/components/media/media-editor-modal.d.ts +15 -0
- package/build-types/components/media/media-editor-modal.d.ts.map +1 -0
- package/build-types/components/more-menu/copy-content-menu-item.d.ts.map +1 -1
- package/build-types/components/post-last-revision/index.d.ts.map +1 -1
- package/build-types/components/post-locked-modal/index.d.ts.map +1 -1
- package/build-types/components/post-revisions-panel/index.d.ts +2 -0
- package/build-types/components/post-revisions-panel/index.d.ts.map +1 -0
- package/build-types/components/post-revisions-preview/block-diff.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-preview/revisions-canvas.d.ts +2 -5
- package/build-types/components/post-revisions-preview/revisions-canvas.d.ts.map +1 -1
- package/build-types/components/post-revisions-preview/revisions-slider.d.ts +1 -1
- package/build-types/components/post-revisions-preview/revisions-slider.d.ts.map +1 -1
- package/build-types/components/post-text-editor/index.d.ts.map +1 -1
- package/build-types/components/post-text-editor/utils.d.ts +29 -0
- package/build-types/components/post-text-editor/utils.d.ts.map +1 -0
- package/build-types/components/provider/disable-non-page-content-blocks.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/provider/use-network-reconnect.d.ts +8 -0
- package/build-types/components/provider/use-network-reconnect.d.ts.map +1 -0
- package/build-types/components/provider/use-post-content-block-types.d.ts +9 -0
- package/build-types/components/provider/use-post-content-block-types.d.ts.map +1 -0
- package/build-types/components/provider/use-revision-blocks.d.ts +10 -0
- package/build-types/components/provider/use-revision-blocks.d.ts.map +1 -0
- package/build-types/components/revision-block-diff/index.d.ts +6 -0
- package/build-types/components/revision-block-diff/index.d.ts.map +1 -0
- package/build-types/components/revision-diff-panel/index.d.ts +14 -0
- package/build-types/components/revision-diff-panel/index.d.ts.map +1 -0
- package/build-types/components/revision-fields-diff/index.d.ts +6 -0
- package/build-types/components/revision-fields-diff/index.d.ts.map +1 -0
- package/build-types/components/sidebar/dataform-post-summary.d.ts +4 -0
- package/build-types/components/sidebar/dataform-post-summary.d.ts.map +1 -0
- package/build-types/components/sidebar/index.d.ts.map +1 -1
- package/build-types/components/sidebar/post-revision-summary.d.ts +2 -0
- package/build-types/components/sidebar/post-revision-summary.d.ts.map +1 -0
- package/build-types/components/style-book/index.d.ts +2 -1
- package/build-types/components/style-book/index.d.ts.map +1 -1
- package/build-types/components/sync-connection-error-modal/index.d.ts +8 -0
- package/build-types/components/sync-connection-error-modal/index.d.ts.map +1 -0
- package/build-types/components/sync-connection-error-modal/use-retry-countdown.d.ts +11 -0
- package/build-types/components/sync-connection-error-modal/use-retry-countdown.d.ts.map +1 -0
- package/build-types/components/template-actions-panel/block-theme-content.d.ts +2 -0
- package/build-types/components/template-actions-panel/block-theme-content.d.ts.map +1 -0
- package/build-types/components/template-actions-panel/classic-theme-content.d.ts +2 -0
- package/build-types/components/template-actions-panel/classic-theme-content.d.ts.map +1 -0
- package/build-types/components/template-actions-panel/index.d.ts +2 -0
- package/build-types/components/template-actions-panel/index.d.ts.map +1 -0
- package/build-types/components/template-content-panel/index.d.ts.map +1 -1
- package/build-types/components/template-part-menu-items/convert-to-regular.d.ts.map +1 -1
- package/build-types/components/upload-progress-snackbar/index.d.ts +19 -0
- package/build-types/components/upload-progress-snackbar/index.d.ts.map +1 -0
- package/build-types/components/upload-progress-snackbar/stories/index.story.d.ts +28 -0
- package/build-types/components/upload-progress-snackbar/stories/index.story.d.ts.map +1 -0
- package/build-types/components/upload-progress-snackbar/tracker.d.ts +41 -0
- package/build-types/components/upload-progress-snackbar/tracker.d.ts.map +1 -0
- package/build-types/components/visual-editor/index.d.ts.map +1 -1
- package/build-types/store/private-actions.d.ts +12 -0
- package/build-types/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts +45 -0
- package/build-types/store/private-selectors.d.ts.map +1 -1
- package/build-types/store/reducer.d.ts +21 -0
- package/build-types/store/reducer.d.ts.map +1 -1
- package/build-types/store/selectors.d.ts +0 -10
- package/build-types/store/selectors.d.ts.map +1 -1
- package/build-types/utils/media-delete/index.d.ts +2 -0
- package/build-types/utils/media-delete/index.d.ts.map +1 -0
- package/build-types/utils/media-finalize/index.d.ts +2 -0
- package/build-types/utils/media-finalize/index.d.ts.map +1 -0
- package/build-types/utils/media-upload/on-success.d.ts +9 -0
- package/build-types/utils/media-upload/on-success.d.ts.map +1 -0
- package/build-types/utils/sync-error-messages.d.ts +17 -3
- package/build-types/utils/sync-error-messages.d.ts.map +1 -1
- package/package.json +45 -44
- package/src/components/collab-sidebar/add-comment.js +0 -4
- package/src/components/collab-sidebar/comments.js +0 -5
- package/src/components/collab-sidebar/index.js +7 -4
- package/src/components/collab-sidebar/utils.js +9 -10
- package/src/components/collaborators-overlay/avatar-iframe-styles.ts +134 -0
- package/src/components/collaborators-overlay/collaborator-styles.ts +43 -2
- package/src/components/collaborators-overlay/compute-selection.ts +315 -0
- package/src/components/collaborators-overlay/cursor-dom-utils.ts +382 -0
- package/src/components/collaborators-overlay/cursor-registry.ts +96 -0
- package/src/components/collaborators-overlay/index.tsx +12 -4
- package/src/components/collaborators-overlay/overlay-iframe-styles.ts +131 -0
- package/src/components/collaborators-overlay/overlay.tsx +145 -223
- package/src/components/collaborators-overlay/timing-utils.ts +30 -0
- package/src/components/collaborators-overlay/use-block-highlighting.ts +152 -64
- package/src/components/collaborators-overlay/use-debounced-recompute.ts +32 -0
- package/src/components/collaborators-overlay/use-render-cursors.ts +120 -282
- package/src/components/collaborators-presence/avatar/component.tsx +123 -0
- package/src/components/collaborators-presence/avatar/index.ts +2 -0
- package/src/components/collaborators-presence/avatar/styles.scss +184 -0
- package/src/components/collaborators-presence/avatar/test/index.tsx +389 -0
- package/src/components/collaborators-presence/avatar/types.ts +66 -0
- package/src/components/collaborators-presence/avatar/use-image-loading-status.ts +36 -0
- package/src/components/collaborators-presence/avatar-group/component.tsx +55 -0
- package/src/components/collaborators-presence/avatar-group/index.ts +2 -0
- package/src/components/collaborators-presence/avatar-group/styles.scss +33 -0
- package/src/components/collaborators-presence/avatar-group/test/index.tsx +139 -0
- package/src/components/collaborators-presence/avatar-group/types.ts +13 -0
- package/src/components/collaborators-presence/index.tsx +43 -12
- package/src/components/collaborators-presence/list.tsx +68 -40
- package/src/components/collaborators-presence/styles/collaborators-list.scss +26 -19
- package/src/components/collaborators-presence/styles/collaborators-presence.scss +6 -2
- package/src/components/collaborators-presence/test/use-collaborator-notifications.ts +397 -0
- package/src/components/collaborators-presence/use-collaborator-notifications.ts +203 -0
- package/src/components/document-bar/style.scss +1 -1
- package/src/components/editor-interface/index.js +13 -6
- package/src/components/inserter-sidebar/index.js +4 -1
- package/src/components/more-menu/copy-content-menu-item.js +20 -2
- package/src/components/post-last-revision/index.js +35 -6
- package/src/components/post-last-revision/style.scss +0 -3
- package/src/components/post-locked-modal/index.js +69 -25
- package/src/components/post-panel-row/style.scss +1 -0
- package/src/components/post-revisions-preview/block-diff.js +224 -61
- package/src/components/post-revisions-preview/diff-markers.js +15 -12
- package/src/components/post-revisions-preview/revisions-canvas.js +23 -86
- package/src/components/post-revisions-preview/revisions-slider.js +136 -63
- package/src/components/post-revisions-preview/style.scss +3 -3
- package/src/components/post-revisions-preview/test/block-diff.js +202 -35
- package/src/components/post-text-editor/index.js +25 -6
- package/src/components/preferences-modal/index.js +37 -7
- package/src/components/provider/disable-non-page-content-blocks.js +42 -40
- package/src/components/provider/index.js +20 -2
- package/src/components/provider/use-block-editor-settings.js +21 -1
- package/src/components/provider/use-post-content-block-types.js +30 -0
- package/src/components/provider/use-revision-blocks.js +105 -0
- package/src/components/revision-block-diff/index.js +39 -0
- package/src/components/revision-diff-panel/index.js +59 -0
- package/src/components/revision-diff-panel/style.scss +13 -0
- package/src/components/revision-fields-diff/index.js +91 -0
- package/src/components/sidebar/header.js +1 -1
- package/src/components/sidebar/index.js +4 -0
- package/src/components/style-book/index.js +4 -2
- package/src/components/sync-connection-error-modal/index.tsx +253 -0
- package/src/components/sync-connection-error-modal/style.scss +14 -0
- package/src/components/sync-connection-error-modal/use-retry-countdown.ts +93 -0
- package/src/components/template-content-panel/index.js +30 -38
- package/src/components/template-part-menu-items/convert-to-regular.js +74 -12
- package/src/components/visual-editor/index.js +6 -23
- package/src/store/private-actions.js +70 -1
- package/src/store/private-selectors.js +215 -37
- package/src/store/reducer.js +41 -0
- package/src/store/selectors.js +0 -19
- package/src/style.scss +4 -1
- package/src/utils/media-finalize/index.js +11 -0
- package/src/utils/media-finalize/test/index.js +34 -0
- package/src/utils/media-upload/on-success.js +34 -0
- package/src/utils/sync-error-messages.ts +72 -0
- package/src/utils/test/sync-error-messages.js +34 -0
- package/build/components/provider/use-post-content-blocks.cjs.map +0 -7
- package/build/components/sync-connection-modal/index.cjs +0 -130
- package/build/components/sync-connection-modal/index.cjs.map +0 -7
- package/build-module/components/provider/use-post-content-blocks.mjs +0 -34
- package/build-module/components/provider/use-post-content-blocks.mjs.map +0 -7
- package/build-module/components/sync-connection-modal/index.mjs +0 -114
- package/build-module/components/sync-connection-modal/index.mjs.map +0 -7
- package/build-types/components/provider/use-post-content-blocks.d.ts +0 -2
- package/build-types/components/provider/use-post-content-blocks.d.ts.map +0 -1
- package/build-types/components/sync-connection-modal/index.d.ts +0 -8
- package/build-types/components/sync-connection-modal/index.d.ts.map +0 -1
- package/src/components/provider/use-post-content-blocks.js +0 -42
- package/src/components/sync-connection-modal/index.js +0 -140
- package/src/components/sync-connection-modal/style.scss +0 -11
- package/src/utils/sync-error-messages.js +0 -53
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook that watches for collaborator join/leave events and remote save events,
|
|
3
|
+
* dispatching snackbar notices accordingly.
|
|
4
|
+
*
|
|
5
|
+
* @param postId The ID of the post being edited.
|
|
6
|
+
* @param postType The post type of the post being edited.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useCollaboratorNotifications(postId: number | null, postType: string | null): void;
|
|
9
|
+
//# sourceMappingURL=use-collaborator-notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-collaborator-notifications.d.ts","sourceRoot":"","sources":["../../../src/components/collaborators-presence/use-collaborator-notifications.ts"],"names":[],"mappings":"AA2DA;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC3C,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,GACrB,IAAI,CAqIN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-interface/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-interface/index.js"],"names":[],"mappings":"AA0DA;;;;;;;;;;;gCAqOC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inserter-sidebar/index.js"],"names":[],"mappings":"AAsBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/inserter-sidebar/index.js"],"names":[],"mappings":"AAsBA,uEA0FC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mounts the MediaEditorModal alongside existing editor modals.
|
|
3
|
+
*
|
|
4
|
+
* Bridges `@wordpress/editor`'s `usePostFields('attachment')` hook
|
|
5
|
+
* into the modal, since `@wordpress/media-editor` cannot depend on
|
|
6
|
+
* `@wordpress/editor`.
|
|
7
|
+
*
|
|
8
|
+
* Defers the attachment fields and settings reads until the modal
|
|
9
|
+
* actually opens, so editor startup doesn't pay for them on every
|
|
10
|
+
* page load.
|
|
11
|
+
*
|
|
12
|
+
* @return {Element|null} The MediaEditorModal component wired with attachment fields, or null when closed.
|
|
13
|
+
*/
|
|
14
|
+
export default function MediaEditorModalMount(): Element | null;
|
|
15
|
+
//# sourceMappingURL=media-editor-modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-editor-modal.d.ts","sourceRoot":"","sources":["../../../src/components/media/media-editor-modal.js"],"names":[],"mappings":"AA8CA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,IAFjC,UAAQ,IAAI,CAWvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-content-menu-item.d.ts","sourceRoot":"","sources":["../../../src/components/more-menu/copy-content-menu-item.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"copy-content-menu-item.d.ts","sourceRoot":"","sources":["../../../src/components/more-menu/copy-content-menu-item.js"],"names":[],"mappings":"AAgBA,2EAkCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-last-revision/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-last-revision/index.js"],"names":[],"mappings":"AAqEA,uEA+BC;;AAnED;;;;GAIG;AACH,qCAFY,KAAK,CAAC,SAAS,CA+B1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-locked-modal/index.js"],"names":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-locked-modal/index.js"],"names":[],"mappings":";;;;;;;;wJAyD4B,CAAA;4BAA+D,CAAC;;;;;;6BAS/E,CAAC;yBAIT,CAAC;+BAOH,CAAC;0BAIC,CAAC,2DAGH,CAAA;0BACa,CAAC;iCAER,CAAC;iCACE,CAAC;wCAGN,CAAC;2BACW,CAAC;kCAIf,CAAC;;;;;;;wJAYyD,CAAC;4BAEb,CAAC;;;;;;6BAc9B,CAAC;yBAEJ,CAAC;+BAGjB,CAAC;0BAIoB,CAAC,2DAGrB,CADH;0BAAyC,CAAA;iCAEtB,CAAC;iCAEA,CAAC;wCAGiB,CAAC;2BAIzB,CAAC;kCAQC,CAAC;;;;;AA3FlB,uEAsQC"}
|
|
@@ -0,0 +1 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-diff.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/block-diff.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"block-diff.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/block-diff.js"],"names":[],"mappings":"AA4sBA;;;;;;GAMG;AACH,oDAJW,MAAM,mBACN,MAAM,SAqBhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diff-markers.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/diff-markers.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"diff-markers.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/diff-markers.js"],"names":[],"mappings":"AAkHA;;;;;;GAMG;AACH,wCA0CC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Canvas component that renders a post revision in read-only mode.
|
|
3
|
+
* Block preparation and settings are handled by the parent EditorProvider.
|
|
3
4
|
*
|
|
4
|
-
* @param {Object} props Component props.
|
|
5
|
-
* @param {boolean} props.showDiff Whether to show diff highlighting.
|
|
6
5
|
* @return {React.JSX.Element} The revisions canvas component.
|
|
7
6
|
*/
|
|
8
|
-
export default function RevisionsCanvas(
|
|
9
|
-
showDiff: boolean;
|
|
10
|
-
}): React.JSX.Element;
|
|
7
|
+
export default function RevisionsCanvas(): React.JSX.Element;
|
|
11
8
|
//# sourceMappingURL=revisions-canvas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revisions-canvas.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-canvas.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"revisions-canvas.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-canvas.js"],"names":[],"mappings":"AAoJA;;;;;GAKG;AACH,2CAFY,KAAK,CAAC,GAAG,CAAC,OAAO,CAgC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revisions-slider.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-slider.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"revisions-slider.d.ts","sourceRoot":"","sources":["../../../src/components/post-revisions-preview/revisions-slider.js"],"names":[],"mappings":";AAsBA;;;;GAIG;AACH,oCAFY,KAAK,CAAC,GAAG,CAAC,OAAO,CA0K5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-text-editor/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/post-text-editor/index.js"],"names":[],"mappings":"AAqBA;;;;GAIG;AACH,0CAFY,KAAK,CAAC,SAAS,CAyD1B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Diffs two strings into a list of `{ value, added?, removed? }` change parts.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} oldValue The previous string.
|
|
5
|
+
* @param {string} newValue The next string.
|
|
6
|
+
* @return {Array<Object>} The diff change parts.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getDiff(oldValue: string, newValue: string): Array<Object>;
|
|
9
|
+
/**
|
|
10
|
+
* Maps a cursor position from the old string to the new string given a diff.
|
|
11
|
+
*
|
|
12
|
+
* @param {number} position The cursor position in the old string.
|
|
13
|
+
* @param {Array<Object>} changes The diff returned by `getDiff`.
|
|
14
|
+
* @param {string} oldValue The previous string.
|
|
15
|
+
* @param {string} newValue The next string.
|
|
16
|
+
* @return {number} The adjusted cursor position in the new string.
|
|
17
|
+
*/
|
|
18
|
+
export declare function adjustPosition(position: number, changes: Array<Object>, oldValue: string, newValue: string): number;
|
|
19
|
+
/**
|
|
20
|
+
* Diffs `oldValue` against `newValue` and maps a cursor `position` from the old
|
|
21
|
+
* string to the new one.
|
|
22
|
+
*
|
|
23
|
+
* @param {number} position The cursor position in the old string.
|
|
24
|
+
* @param {string} oldValue The previous string.
|
|
25
|
+
* @param {string} newValue The next string.
|
|
26
|
+
* @return {number} The adjusted cursor position in the new string.
|
|
27
|
+
*/
|
|
28
|
+
export declare function getAdjustedCursorPosition(position: number, oldValue: string, newValue: string): number;
|
|
29
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/post-text-editor/utils.js"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAE,QAAQ,EAJtB,MAIsB,EAAE,QAAQ,EAHhC,MAGgC,GAF/B,KAAK,CAAC,MAAM,CAAC,CAsDxB;AAuCD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAE,QAAQ,EAN7B,MAM6B,EAAE,OAAO,EALtC,KAAK,CAAC,MAAM,CAK0B,EAAE,QAAQ,EAJhD,MAIgD,EAAE,QAAQ,EAH1D,MAG0D,GAFzD,MAAM,CAmEjB;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAE,QAAQ,EALxC,MAKwC,EAAE,QAAQ,EAJlD,MAIkD,EAAE,QAAQ,EAH5D,MAG4D,GAF3D,MAAM,CASjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable-non-page-content-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/disable-non-page-content-blocks.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"disable-non-page-content-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/disable-non-page-content-blocks.js"],"names":[],"mappings":"AAcA;;;GAGG;AACH,4DAiGC"}
|
|
@@ -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":"AA6dA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAgC,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ,GAAhC,KAAK,CAAC,SAAS;CAGvB,GAWS,KAAK,CAAC,SAAS,CAW1B;AAtXD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GAmTE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-block-editor-settings.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-block-editor-settings.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-block-editor-settings.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-block-editor-settings.js"],"names":[],"mappings":";AA8GA;;;;;;;;;GASG;AACH,kDAPW,MAAM,YACN,MAAM,UACN,MAAM,iBACN,MAAM,GAEL,MAAM,CAuUjB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A hook that pauses the media upload queue when the browser goes offline
|
|
3
|
+
* and resumes it when connectivity is restored.
|
|
4
|
+
*
|
|
5
|
+
* Only active when client-side media processing is enabled.
|
|
6
|
+
*/
|
|
7
|
+
export default function useNetworkReconnect(): void;
|
|
8
|
+
//# sourceMappingURL=use-network-reconnect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-network-reconnect.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-network-reconnect.js"],"names":[],"mappings":"AAYA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,SAyB1C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the list of post content block types, including any added via the
|
|
3
|
+
* `editor.postContentBlockTypes` filter. The result is memoized so it can be
|
|
4
|
+
* used as a stable dependency in `useSelect` calls.
|
|
5
|
+
*
|
|
6
|
+
* @return {string[]} Block type names considered post content.
|
|
7
|
+
*/
|
|
8
|
+
export default function usePostContentBlockTypes(): string[];
|
|
9
|
+
//# sourceMappingURL=use-post-content-block-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-post-content-block-types.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-post-content-block-types.js"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,oDAFY,MAAM,EAAE,CAYnB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook that computes revision blocks when in revisions mode.
|
|
3
|
+
*
|
|
4
|
+
* Returns `null` when not in revisions mode, `[]` when loading,
|
|
5
|
+
* or the computed blocks array when ready.
|
|
6
|
+
*
|
|
7
|
+
* @return {Array|null} The revision blocks, or null if not in revisions mode.
|
|
8
|
+
*/
|
|
9
|
+
export function useRevisionBlocks(): any[] | null;
|
|
10
|
+
//# sourceMappingURL=use-revision-blocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-revision-blocks.d.ts","sourceRoot":"","sources":["../../../src/components/provider/use-revision-blocks.js"],"names":[],"mappings":"AAeA;;;;;;;GAOG;AACH,qCAFY,QAAM,IAAI,CAmFrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/revision-block-diff/index.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH,qFAsBC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders a panel of word-level diffs.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} props
|
|
5
|
+
* @param {string} props.title Panel title.
|
|
6
|
+
* @param {Object} props.entries Map of key → diffWords parts arrays.
|
|
7
|
+
* @param {boolean} props.initialOpen Whether the panel starts open.
|
|
8
|
+
*/
|
|
9
|
+
export default function RevisionDiffPanel({ title, entries, initialOpen }: {
|
|
10
|
+
title: string;
|
|
11
|
+
entries: Object;
|
|
12
|
+
initialOpen: boolean;
|
|
13
|
+
}): import("react").JSX.Element | null;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/revision-diff-panel/index.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,2EAJG;IAAuB,KAAK,EAApB,MAAM;IACS,OAAO,EAAtB,MAAM;IACS,WAAW,EAA1B,OAAO;CACjB,sCAyCA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Panel that shows meta field diffs between the current revision and
|
|
3
|
+
* the previous revision in the document sidebar during revision mode.
|
|
4
|
+
*/
|
|
5
|
+
export default function RevisionFieldsDiffPanel(): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/revision-fields-diff/index.js"],"names":[],"mappings":"AAmCA;;;GAGG;AACH,+EAmDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataform-post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/dataform-post-summary.js"],"names":[],"mappings":"AAuBA,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAE,EAAE,iBAAiB,EAAE;;CAAA,+BA2HjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/index.js"],"names":[],"mappings":";AA6JA;;;gCAkEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-revision-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/post-revision-summary.js"],"names":[],"mappings":"AAuBA,MAAM,CAAC,OAAO,UAAU,mBAAmB,uCAoC1C"}
|
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
* @return {Array} Deduped examples.
|
|
5
5
|
*/
|
|
6
6
|
export function getExamplesForSinglePageUse(examples: any[]): any[];
|
|
7
|
-
export function StyleBookPreview({ userConfig, isStatic, path, onPathChange, }: {
|
|
7
|
+
export function StyleBookPreview({ userConfig, isStatic, path, onPathChange, settings: settingsProp, }: {
|
|
8
8
|
path: string;
|
|
9
9
|
onPathChange: Function;
|
|
10
10
|
userConfig: Object;
|
|
11
11
|
isStatic: boolean;
|
|
12
|
+
settings: Object;
|
|
12
13
|
}): Object;
|
|
13
14
|
export function StyleBookBody({ examples, isSelected, onClick, onSelect, settings, title, goTo, }: {
|
|
14
15
|
examples: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/style-book/index.js"],"names":[],"mappings":"AAyLA;;;;GAIG;AACH,oEAkBC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/style-book/index.js"],"names":[],"mappings":"AAyLA;;;;GAIG;AACH,oEAkBC;AA4KM,wGAPJ;IAAwB,IAAI,EAApB,MAAM;IACU,YAAY;IACZ,UAAU,EAA1B,MAAM;IACU,QAAQ,EAAxB,OAAO;IACS,QAAQ,EAAxB,MAAM;CACd,GAAS,MAAM,CAmLjB;AAEM;;;;;;;;gCAmFN"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sync connection modal that displays when any entity reports a disconnection.
|
|
3
|
+
* Uses BlockCanvasCover.Fill to render in the block canvas.
|
|
4
|
+
*
|
|
5
|
+
* @return The modal component or null if not disconnected.
|
|
6
|
+
*/
|
|
7
|
+
export declare function SyncConnectionErrorModal(): import("react").JSX.Element | null;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sync-connection-error-modal/index.tsx"],"names":[],"mappings":"AAsCA;;;;;GAKG;AACH,wBAAgB,wBAAwB,uCAgNvC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { ConnectionStatus } from '@wordpress/core-data';
|
|
5
|
+
interface UseRetryCountdownResult {
|
|
6
|
+
onManualRetry: () => void;
|
|
7
|
+
secondsRemaining?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function useRetryCountdown(connectionStatus?: ConnectionStatus | null): UseRetryCountdownResult;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=use-retry-countdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-retry-countdown.d.ts","sourceRoot":"","sources":["../../../src/components/sync-connection-error-modal/use-retry-countdown.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,UAAU,uBAAuB;IAChC,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,iBAAiB,CAChC,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,GACxC,uBAAuB,CA+EzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block-theme-content.d.ts","sourceRoot":"","sources":["../../../src/components/template-actions-panel/block-theme-content.js"],"names":[],"mappings":"AAiCA,MAAM,CAAC,OAAO,UAAU,2BAA2B,uCAiLlD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classic-theme-content.d.ts","sourceRoot":"","sources":["../../../src/components/template-actions-panel/classic-theme-content.js"],"names":[],"mappings":"AA6BA,MAAM,CAAC,OAAO,UAAU,mBAAmB,uCA4I1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/template-actions-panel/index.js"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,oBAAoB,uCAkB3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/template-content-panel/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/template-content-panel/index.js"],"names":[],"mappings":"AAsDA,mFAgBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-to-regular.d.ts","sourceRoot":"","sources":["../../../src/components/template-part-menu-items/convert-to-regular.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"convert-to-regular.d.ts","sourceRoot":"","sources":["../../../src/components/template-part-menu-items/convert-to-regular.js"],"names":[],"mappings":"AAcA;;;uCA+EC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const UPLOAD_SPINNER: import("react").JSX.Element;
|
|
2
|
+
export declare const UPLOAD_DONE: import("react").JSX.Element;
|
|
3
|
+
/**
|
|
4
|
+
* Manages a snackbar notice that shows media upload progress while uploads are
|
|
5
|
+
* in progress. It creates/updates a notice via the notices store so that it
|
|
6
|
+
* positions and stacks with every other snackbar in the editor.
|
|
7
|
+
*
|
|
8
|
+
* Reads from two sources to cover both upload paths:
|
|
9
|
+
* - `@wordpress/upload-media` store (client-side media processing path).
|
|
10
|
+
* - An editor-local tracker populated by the traditional `mediaUpload`
|
|
11
|
+
* wrapper (non-CSM path — e.g. Safari, or when a filter disables CSM).
|
|
12
|
+
*
|
|
13
|
+
* Only counts original user-uploaded files (items without a `parentId`),
|
|
14
|
+
* ignoring generated subsizes/thumbnails.
|
|
15
|
+
*
|
|
16
|
+
* @return {null} This component renders nothing — it only manages a notice.
|
|
17
|
+
*/
|
|
18
|
+
export default function UploadProgressSnackbar(): null;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/upload-progress-snackbar/index.js"],"names":[],"mappings":"AAkDA,eAAO,MAAM,cAAc,6BAO1B,CAAC;AAEF,eAAO,MAAM,WAAW,6BAIvB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,IAFlC,IAAI,CAyIf"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
5
|
+
/**
|
|
6
|
+
* WordPress dependencies
|
|
7
|
+
*/
|
|
8
|
+
import { Snackbar } from '@wordpress/components';
|
|
9
|
+
/**
|
|
10
|
+
* The `UploadProgressSnackbar` component itself renders no UI: it manages a
|
|
11
|
+
* snackbar notice via the notices store while media uploads are in progress.
|
|
12
|
+
*
|
|
13
|
+
* These stories render the `Snackbar` with the same icon markup and text the
|
|
14
|
+
* notice produces, so the in-progress and completed states can be reviewed
|
|
15
|
+
* visually without running an actual upload.
|
|
16
|
+
*/
|
|
17
|
+
declare const meta: Meta<typeof Snackbar>;
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof Snackbar>;
|
|
20
|
+
export declare const Uploading: Story;
|
|
21
|
+
export declare const UploadingMultiple: Story;
|
|
22
|
+
export declare const Complete: Story;
|
|
23
|
+
/**
|
|
24
|
+
* All states shown together for quick comparison of the icon alignment and
|
|
25
|
+
* sizing between the spinner and the completion checkmark.
|
|
26
|
+
*/
|
|
27
|
+
export declare const AllStates: Story;
|
|
28
|
+
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../../src/components/upload-progress-snackbar/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOjD;;;;;;;GAOG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAUhC,CAAC;eACa,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAE,OAAO,QAAQ,CAAE,CAAC;AAEzC,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAM/B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,KAmBvB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registers a new batch of files that have started uploading.
|
|
3
|
+
*
|
|
4
|
+
* @param {string[]} filenames Filenames in submission order.
|
|
5
|
+
*/
|
|
6
|
+
export declare function addFiles(filenames: string[]): void;
|
|
7
|
+
/**
|
|
8
|
+
* Advances the tracker by a number of finished files (success or error).
|
|
9
|
+
*
|
|
10
|
+
* @param {number} count Number of files that finished since the last call.
|
|
11
|
+
*/
|
|
12
|
+
export declare function advance(count: number): void;
|
|
13
|
+
/**
|
|
14
|
+
* Resets the tracker to its empty state.
|
|
15
|
+
*
|
|
16
|
+
* Test-only helper: `state` is a module-level singleton, so tests call this in
|
|
17
|
+
* `beforeEach` to isolate cases from one another. Not used in production -
|
|
18
|
+
* `advance` clears the state on its own once every file in a batch finishes.
|
|
19
|
+
*/
|
|
20
|
+
export declare function reset(): void;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the current tracker state, or `null` when idle.
|
|
23
|
+
*
|
|
24
|
+
* @return {?{total: number, completed: number, pending: string[]}} Tracker state.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getState(): {
|
|
27
|
+
total: number;
|
|
28
|
+
completed: number;
|
|
29
|
+
pending: string[];
|
|
30
|
+
} | null;
|
|
31
|
+
/**
|
|
32
|
+
* React hook that subscribes to the tracker.
|
|
33
|
+
*
|
|
34
|
+
* @return {?{total: number, completed: number, pending: string[]}} Tracker state.
|
|
35
|
+
*/
|
|
36
|
+
export declare function useTracker(): {
|
|
37
|
+
total: number;
|
|
38
|
+
completed: number;
|
|
39
|
+
pending: string[];
|
|
40
|
+
} | null;
|
|
41
|
+
//# sourceMappingURL=tracker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tracker.d.ts","sourceRoot":"","sources":["../../../src/components/upload-progress-snackbar/tracker.js"],"names":[],"mappings":"AA2BA;;;;GAIG;AACH,wBAAgB,QAAQ,CAAE,SAAS,EAFxB,MAAM,EAEkB,QAalC;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAE,KAAK,EAFnB,MAEmB,QAY7B;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,SAMpB;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,IAFX;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAC,OAAA,CAIjE;AASD;;;;GAIG;AACH,wBAAgB,UAAU,IAFb;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAC,OAAA,CAIjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/index.js"],"names":[],"mappings":";AA6FA;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/visual-editor/index.js"],"names":[],"mappings":";AA6FA;;;;;;gCAsaC"}
|
|
@@ -41,6 +41,13 @@ export function setCanvasMinHeight(minHeight: number): Object;
|
|
|
41
41
|
* @return {Object} Action object.
|
|
42
42
|
*/
|
|
43
43
|
export function setCurrentRevisionId(revisionId: number | null): Object;
|
|
44
|
+
/**
|
|
45
|
+
* Set whether the revision diff highlighting is shown.
|
|
46
|
+
*
|
|
47
|
+
* @param {boolean} showDiff Whether to show diff highlighting.
|
|
48
|
+
* @return {Object} Action object.
|
|
49
|
+
*/
|
|
50
|
+
export function setShowRevisionDiff(showDiff: boolean): Object;
|
|
44
51
|
/**
|
|
45
52
|
* Select a note by its ID, or clear the selection.
|
|
46
53
|
*
|
|
@@ -85,6 +92,11 @@ export function setDefaultRenderingMode(mode: string): ({ select, registry }: {
|
|
|
85
92
|
select: any;
|
|
86
93
|
registry: any;
|
|
87
94
|
}) => void;
|
|
95
|
+
export function setRevisionPage(page: number): ({ dispatch, select, registry }: {
|
|
96
|
+
dispatch: any;
|
|
97
|
+
select: any;
|
|
98
|
+
registry: any;
|
|
99
|
+
}) => Promise<void>;
|
|
88
100
|
export function restoreRevision(revisionId: number): ({ select, dispatch, registry }: {
|
|
89
101
|
select: any;
|
|
90
102
|
dispatch: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAqBA;;;;;;GAMG;AACH,yCAJW,MAAM,GAEL,MAAM,CAOjB;AA4fD;;;;;GAKG;AACH,oCAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;GAKG;AACH,uCAHW,OAAO,GACN,MAAM,CAOjB;AAED;;;;GAIG;AACH,yCAFY,MAAM,CAMjB;AAED;;;;;GAKG;AACH,8CAHW,MAAM,GACL,MAAM,CAOjB;AAED;;;;;;GAMG;AACH,iDAHW,MAAM,GAAC,IAAI,GACV,MAAM,CAOjB;AAmCD;;;;;GAKG;AACH,8CAHW,OAAO,GACN,MAAM,CAOjB;AAoFD;;;;;;;GAOG;AACH,mCALW,SAAS,GAAC,MAAM,GAAC,KAAK,YAE9B;IAAyC,KAAK;CAC9C,GAAS,MAAM,CAQjB;;AAnsBM,yCAFK,MAAM,OAAA,IAIT;;;;CAA8B,kBAiCrC;AAOK,2CAFI,MAAM,EAAE,IAIhB;;CAAY,UAgBb;AAOK,2CAFI,MAAM,EAAE,IAIhB;;CAAY,UAcb;AAYK,iHANJ;IAA2B,MAAM;IACN,kBAAkB;IAClB,cAAc;IACd,KAAK;IACL,oBAAoB;CACjD,IASE;;CAAY,UAoGb;AAUK,yCALI,MAAM,kBAEd;IAA0B,SAAS;CAErC,IAGQ;;CAAY,mBA0HnB;AAOK,gDAEE;;CAAY,mBAwHnB;AAOK,8CAFI,MAAM,IAId;;;CAAoB,UAwBrB;AAwEK,sCAFI,MAAM,IAIR;;;;CAA8B,mBAuBrC;AAqBK,4CAFI,MAAM,IAIR;;;;CAA8B,mBAwErC"}
|
|
@@ -24,6 +24,22 @@ export function getShowStylebook(state: Object): boolean;
|
|
|
24
24
|
* @return {number} The canvas minimum height.
|
|
25
25
|
*/
|
|
26
26
|
export function getCanvasMinHeight(state: Object): number;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the current revisions page number.
|
|
29
|
+
*
|
|
30
|
+
* @param {Object} state Global application state.
|
|
31
|
+
* @return {number} The page number.
|
|
32
|
+
*/
|
|
33
|
+
export function getRevisionPage(state: Object): number;
|
|
34
|
+
/**
|
|
35
|
+
* Builds the query object for fetching a page of revisions.
|
|
36
|
+
*
|
|
37
|
+
* @param {string} revisionKey The entity's revision key.
|
|
38
|
+
* @param {number} page The 1-based page number (page 1 = newest).
|
|
39
|
+
* @return {Object} Query object for getRevisions.
|
|
40
|
+
*/
|
|
41
|
+
export function buildRevisionsPageQuery(revisionKey: string, page: number): Object;
|
|
42
|
+
export function getRevisionsPerPage(): number;
|
|
27
43
|
/**
|
|
28
44
|
* Returns whether the editor is in revisions preview mode.
|
|
29
45
|
*
|
|
@@ -31,6 +47,13 @@ export function getCanvasMinHeight(state: Object): number;
|
|
|
31
47
|
* @return {boolean} Whether revisions mode is active.
|
|
32
48
|
*/
|
|
33
49
|
export function isRevisionsMode(state: Object): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Returns whether the revision diff highlighting is shown.
|
|
52
|
+
*
|
|
53
|
+
* @param {Object} state Global application state.
|
|
54
|
+
* @return {boolean} Whether revision diff is being shown.
|
|
55
|
+
*/
|
|
56
|
+
export function isShowingRevisionDiff(state: Object): boolean;
|
|
34
57
|
/**
|
|
35
58
|
* Returns the current revision ID in revisions mode.
|
|
36
59
|
*
|
|
@@ -113,6 +136,18 @@ export const getDefaultRenderingMode: {
|
|
|
113
136
|
isRegistrySelector?: boolean;
|
|
114
137
|
registry?: any;
|
|
115
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* Returns revisions for the given page number.
|
|
141
|
+
*
|
|
142
|
+
* @param {Object} state Global application state.
|
|
143
|
+
* @param {number} page The 1-based page number (page 1 = newest).
|
|
144
|
+
* @return {Array|null} The revisions array, or null if not yet loaded.
|
|
145
|
+
*/
|
|
146
|
+
export const getPageRevisions: {
|
|
147
|
+
(state: any, page: any): (Record<import("@wordpress/core-data").Context, Record<number, import("@wordpress/core-data").PostRevision<"view">>> | Record<import("@wordpress/core-data").Context, Record<number, import("@wordpress/core-data").GlobalStylesRevision<"view">>>)[] | null;
|
|
148
|
+
isRegistrySelector?: boolean;
|
|
149
|
+
registry?: any;
|
|
150
|
+
};
|
|
116
151
|
/**
|
|
117
152
|
* Returns the current revision object in revisions mode.
|
|
118
153
|
*
|
|
@@ -136,4 +171,14 @@ export const getPreviousRevision: {
|
|
|
136
171
|
isRegistrySelector?: boolean;
|
|
137
172
|
registry?: any;
|
|
138
173
|
};
|
|
174
|
+
/**
|
|
175
|
+
* Returns whether the collaboration is enabled for the current post.
|
|
176
|
+
*
|
|
177
|
+
* @return {boolean} Whether collaboration is enabled.
|
|
178
|
+
*/
|
|
179
|
+
export const isCollaborationEnabledForCurrentPost: {
|
|
180
|
+
(state: any): boolean;
|
|
181
|
+
isRegistrySelector?: boolean;
|
|
182
|
+
registry?: any;
|
|
183
|
+
};
|
|
139
184
|
//# sourceMappingURL=private-selectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AA8HA,sDAEC;AACD,6DAEC;AAsFD,2GAEC;AAED,mEAEC;AAED,yGAEC;AAiGD;;;;;GAKG;AACH,qCAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;GAKG;AACH,wCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,0CAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;GAKG;AACH,uCAHW,MAAM,GACL,MAAM,CAIjB;AAED;;;;;;GAMG;AACH,qDAJW,MAAM,QACN,MAAM,GACL,MAAM,CAuBjB;AAID,8CAEC;AAmCD;;;;;GAKG;AACH,uCAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,6CAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,4CAHW,MAAM,GACL,MAAM,GAAC,IAAI,CAItB;AAyCD;;;;;;GAMG;AACH,uCAJW,MAAM,GAEL,SAAS,GAAC,MAAM,GAAC,KAAK,CAIjC;AAED;;;;;;GAMG;AACH,qCAJW,MAAM,GAEL,OAAO,CAIlB;AA1dD;;;;;;GAMG;AACH;;;;EAqEE;AAeF;;;;EAqCE;AAEF;;;;;;;;;GASG;AACH;;;;EA2BE;AAcF;;;;;;;;GAQG;AACH;;;;EAiCE;AAEF;;;;;;;GAOG;AACH;;;;EAyCE;AA8EF;;;;;;GAMG;AACH;;;;EAwBE;AAgCF;;;;;GAKG;AACH;;;;EA+BE;AAwBF;;;;;;GAMG;AACH;;;;EAsDE;AAEF;;;;GAIG;AACH;;;;EAiBE"}
|