@wordpress/editor 14.41.2-next.v.202603161435.0 → 14.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -1
- package/build/components/collaborators-overlay/compute-selection.cjs +10 -10
- package/build/components/collaborators-overlay/compute-selection.cjs.map +2 -2
- 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 +1 -1
- package/build/components/collaborators-overlay/overlay-iframe-styles.cjs.map +2 -2
- package/build/components/collaborators-overlay/overlay.cjs +42 -1
- package/build/components/collaborators-overlay/overlay.cjs.map +2 -2
- 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-render-cursors.cjs +1 -1
- package/build/components/collaborators-overlay/use-render-cursors.cjs.map +2 -2
- package/build/components/collaborators-presence/index.cjs +14 -4
- package/build/components/collaborators-presence/index.cjs.map +2 -2
- package/build/components/collaborators-presence/list.cjs +20 -4
- package/build/components/collaborators-presence/list.cjs.map +2 -2
- package/build/components/post-card-panel/index.cjs +4 -15
- package/build/components/post-card-panel/index.cjs.map +2 -2
- package/build/components/post-content-information/index.cjs +10 -13
- package/build/components/post-content-information/index.cjs.map +2 -2
- package/build/components/post-locked-modal/index.cjs +16 -3
- package/build/components/post-locked-modal/index.cjs.map +2 -2
- package/build/components/post-revisions-panel/index.cjs +164 -0
- package/build/components/post-revisions-panel/index.cjs.map +7 -0
- package/build/components/post-revisions-preview/block-diff.cjs +39 -11
- package/build/components/post-revisions-preview/block-diff.cjs.map +2 -2
- package/build/components/post-revisions-preview/diff-markers.cjs +2 -2
- package/build/components/post-revisions-preview/diff-markers.cjs.map +2 -2
- package/build/components/post-revisions-preview/revisions-canvas.cjs +1 -1
- package/build/components/post-revisions-preview/revisions-canvas.cjs.map +2 -2
- package/build/components/post-revisions-preview/revisions-slider.cjs +24 -5
- package/build/components/post-revisions-preview/revisions-slider.cjs.map +2 -2
- package/build/components/post-template/block-theme.cjs +7 -4
- package/build/components/post-template/block-theme.cjs.map +2 -2
- package/build/components/post-template/create-new-template-modal.cjs +39 -46
- package/build/components/post-template/create-new-template-modal.cjs.map +2 -2
- package/build/components/post-template/hooks.cjs +91 -8
- package/build/components/post-template/hooks.cjs.map +2 -2
- package/build/components/post-template/panel.cjs +5 -42
- package/build/components/post-template/panel.cjs.map +3 -3
- package/build/components/post-template/swap-template-button.cjs +31 -20
- package/build/components/post-template/swap-template-button.cjs.map +2 -2
- package/build/components/preferences-modal/index.cjs +35 -27
- package/build/components/preferences-modal/index.cjs.map +2 -2
- package/build/components/provider/use-block-editor-settings.cjs +2 -0
- package/build/components/provider/use-block-editor-settings.cjs.map +3 -3
- 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/dataform-post-summary.cjs +25 -55
- package/build/components/sidebar/dataform-post-summary.cjs.map +2 -2
- package/build/components/sidebar/index.cjs +30 -23
- package/build/components/sidebar/index.cjs.map +3 -3
- package/build/components/sidebar/post-revision-summary.cjs +74 -0
- package/build/components/sidebar/post-revision-summary.cjs.map +7 -0
- package/build/components/sidebar/post-summary.cjs +35 -42
- package/build/components/sidebar/post-summary.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-modal → sync-connection-error-modal}/index.cjs +89 -80
- package/build/components/sync-connection-error-modal/index.cjs.map +7 -0
- package/build/components/{sync-connection-modal → sync-connection-error-modal}/use-retry-countdown.cjs +14 -27
- package/build/components/sync-connection-error-modal/use-retry-countdown.cjs.map +7 -0
- package/build/components/template-actions-panel/block-theme-content.cjs +188 -0
- package/build/components/template-actions-panel/block-theme-content.cjs.map +7 -0
- package/build/components/template-actions-panel/classic-theme-content.cjs +159 -0
- package/build/components/template-actions-panel/classic-theme-content.cjs.map +7 -0
- package/build/components/template-actions-panel/index.cjs +59 -0
- package/build/components/template-actions-panel/index.cjs.map +7 -0
- package/build/components/visual-editor/index.cjs +2 -2
- package/build/components/visual-editor/index.cjs.map +2 -2
- package/build/dataviews/store/private-actions.cjs +2 -0
- package/build/dataviews/store/private-actions.cjs.map +2 -2
- package/build/store/actions.cjs +1 -3
- package/build/store/actions.cjs.map +2 -2
- package/build/store/private-actions.cjs +21 -2
- package/build/store/private-actions.cjs.map +2 -2
- package/build/store/private-selectors.cjs +40 -15
- package/build/store/private-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/sync-error-messages.cjs +29 -16
- package/build/utils/sync-error-messages.cjs.map +3 -3
- package/build-module/components/collaborators-overlay/compute-selection.mjs +10 -10
- package/build-module/components/collaborators-overlay/compute-selection.mjs.map +2 -2
- 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 +1 -1
- package/build-module/components/collaborators-overlay/overlay-iframe-styles.mjs.map +2 -2
- package/build-module/components/collaborators-overlay/overlay.mjs +43 -2
- 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-render-cursors.mjs +1 -1
- package/build-module/components/collaborators-overlay/use-render-cursors.mjs.map +2 -2
- package/build-module/components/collaborators-presence/index.mjs +14 -4
- package/build-module/components/collaborators-presence/index.mjs.map +2 -2
- package/build-module/components/collaborators-presence/list.mjs +20 -4
- package/build-module/components/collaborators-presence/list.mjs.map +2 -2
- package/build-module/components/post-card-panel/index.mjs +6 -17
- package/build-module/components/post-card-panel/index.mjs.map +2 -2
- package/build-module/components/post-content-information/index.mjs +6 -13
- package/build-module/components/post-content-information/index.mjs.map +2 -2
- package/build-module/components/post-locked-modal/index.mjs +16 -3
- package/build-module/components/post-locked-modal/index.mjs.map +2 -2
- package/build-module/components/post-revisions-panel/index.mjs +139 -0
- package/build-module/components/post-revisions-panel/index.mjs.map +7 -0
- package/build-module/components/post-revisions-preview/block-diff.mjs +39 -11
- package/build-module/components/post-revisions-preview/block-diff.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/diff-markers.mjs +2 -2
- package/build-module/components/post-revisions-preview/diff-markers.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/revisions-canvas.mjs +1 -1
- package/build-module/components/post-revisions-preview/revisions-canvas.mjs.map +2 -2
- package/build-module/components/post-revisions-preview/revisions-slider.mjs +24 -5
- package/build-module/components/post-revisions-preview/revisions-slider.mjs.map +2 -2
- package/build-module/components/post-template/block-theme.mjs +7 -4
- package/build-module/components/post-template/block-theme.mjs.map +2 -2
- package/build-module/components/post-template/create-new-template-modal.mjs +39 -46
- package/build-module/components/post-template/create-new-template-modal.mjs.map +2 -2
- package/build-module/components/post-template/hooks.mjs +90 -8
- package/build-module/components/post-template/hooks.mjs.map +2 -2
- package/build-module/components/post-template/panel.mjs +5 -42
- package/build-module/components/post-template/panel.mjs.map +2 -2
- package/build-module/components/post-template/swap-template-button.mjs +27 -20
- package/build-module/components/post-template/swap-template-button.mjs.map +2 -2
- package/build-module/components/preferences-modal/index.mjs +35 -27
- package/build-module/components/preferences-modal/index.mjs.map +2 -2
- package/build-module/components/provider/use-block-editor-settings.mjs +2 -0
- package/build-module/components/provider/use-block-editor-settings.mjs.map +2 -2
- 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/dataform-post-summary.mjs +25 -55
- package/build-module/components/sidebar/dataform-post-summary.mjs.map +2 -2
- package/build-module/components/sidebar/index.mjs +30 -23
- package/build-module/components/sidebar/index.mjs.map +2 -2
- package/build-module/components/sidebar/post-revision-summary.mjs +43 -0
- package/build-module/components/sidebar/post-revision-summary.mjs.map +7 -0
- package/build-module/components/sidebar/post-summary.mjs +31 -42
- package/build-module/components/sidebar/post-summary.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 +177 -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 +36 -0
- package/build-module/components/sync-connection-error-modal/use-retry-countdown.mjs.map +7 -0
- package/build-module/components/template-actions-panel/block-theme-content.mjs +167 -0
- package/build-module/components/template-actions-panel/block-theme-content.mjs.map +7 -0
- package/build-module/components/template-actions-panel/classic-theme-content.mjs +138 -0
- package/build-module/components/template-actions-panel/classic-theme-content.mjs.map +7 -0
- package/build-module/components/template-actions-panel/index.mjs +28 -0
- package/build-module/components/template-actions-panel/index.mjs.map +7 -0
- package/build-module/components/visual-editor/index.mjs +2 -2
- package/build-module/components/visual-editor/index.mjs.map +2 -2
- package/build-module/dataviews/store/private-actions.mjs +5 -1
- package/build-module/dataviews/store/private-actions.mjs.map +2 -2
- package/build-module/store/actions.mjs +1 -3
- package/build-module/store/actions.mjs.map +2 -2
- package/build-module/store/private-actions.mjs +21 -2
- package/build-module/store/private-actions.mjs.map +2 -2
- package/build-module/store/private-selectors.mjs +40 -15
- package/build-module/store/private-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/sync-error-messages.mjs +24 -16
- package/build-module/utils/sync-error-messages.mjs.map +3 -3
- package/build-style/style-rtl.css +135 -50
- package/build-style/style.css +135 -50
- 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 +1 -1
- package/build-types/components/collaborators-overlay/overlay-iframe-styles.d.ts.map +1 -1
- 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-presence/index.d.ts.map +1 -1
- package/build-types/components/collaborators-presence/list.d.ts +4 -1
- package/build-types/components/collaborators-presence/list.d.ts.map +1 -1
- package/build-types/components/post-card-panel/index.d.ts.map +1 -1
- package/build-types/components/post-content-information/index.d.ts +4 -1
- package/build-types/components/post-content-information/index.d.ts.map +1 -1
- package/build-types/components/post-locked-modal/index.d.ts +2 -2
- 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/revisions-slider.d.ts.map +1 -1
- package/build-types/components/post-template/block-theme.d.ts +1 -3
- package/build-types/components/post-template/block-theme.d.ts.map +1 -1
- package/build-types/components/post-template/create-new-template-modal.d.ts.map +1 -1
- package/build-types/components/post-template/hooks.d.ts +2 -1
- package/build-types/components/post-template/hooks.d.ts.map +1 -1
- package/build-types/components/post-template/panel.d.ts.map +1 -1
- package/build-types/components/post-template/swap-template-button.d.ts +4 -0
- package/build-types/components/post-template/swap-template-button.d.ts.map +1 -1
- package/build-types/components/provider/use-block-editor-settings.d.ts.map +1 -1
- 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.map +1 -1
- 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/sidebar/post-summary.d.ts +3 -0
- package/build-types/components/sidebar/post-summary.d.ts.map +1 -1
- 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 +22 -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/dataviews/store/private-actions.d.ts.map +1 -1
- package/build-types/store/actions.d.ts.map +1 -1
- package/build-types/store/private-actions.d.ts.map +1 -1
- package/build-types/store/private-selectors.d.ts.map +1 -1
- 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/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/collaborators-overlay/compute-selection.ts +13 -13
- 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 +1 -1
- package/src/components/collaborators-overlay/overlay.tsx +64 -1
- package/src/components/collaborators-overlay/timing-utils.ts +30 -0
- package/src/components/collaborators-overlay/use-render-cursors.ts +1 -1
- package/src/components/collaborators-presence/index.tsx +9 -1
- package/src/components/collaborators-presence/list.tsx +25 -1
- package/src/components/post-card-panel/index.js +7 -21
- package/src/components/post-content-information/index.js +5 -16
- package/src/components/post-locked-modal/index.js +21 -3
- package/src/components/post-revisions-panel/index.js +151 -0
- package/src/components/post-revisions-panel/style.scss +16 -0
- package/src/components/post-revisions-preview/block-diff.js +59 -20
- package/src/components/post-revisions-preview/diff-markers.js +2 -2
- package/src/components/post-revisions-preview/revisions-canvas.js +1 -1
- package/src/components/post-revisions-preview/revisions-slider.js +29 -7
- package/src/components/post-revisions-preview/test/block-diff.js +69 -31
- package/src/components/post-template/block-theme.js +4 -1
- package/src/components/post-template/create-new-template-modal.js +1 -4
- package/src/components/post-template/hooks.js +107 -9
- package/src/components/post-template/panel.js +5 -59
- package/src/components/post-template/style.scss +0 -6
- package/src/components/post-template/swap-template-button.js +30 -21
- package/src/components/preferences-modal/index.js +37 -25
- package/src/components/provider/use-block-editor-settings.js +2 -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/dataform-post-summary.js +45 -68
- package/src/components/sidebar/index.js +35 -22
- package/src/components/sidebar/post-revision-summary.js +50 -0
- package/src/components/sidebar/post-summary.js +22 -40
- package/src/components/sidebar/style.scss +7 -0
- package/src/components/style-book/index.js +4 -2
- package/src/components/sync-connection-error-modal/index.tsx +265 -0
- package/src/components/sync-connection-error-modal/style.scss +14 -0
- package/src/components/sync-connection-error-modal/use-retry-countdown.ts +57 -0
- package/src/components/template-actions-panel/block-theme-content.js +196 -0
- package/src/components/template-actions-panel/classic-theme-content.js +170 -0
- package/src/components/template-actions-panel/index.js +32 -0
- package/src/components/template-actions-panel/style.scss +39 -0
- package/src/components/visual-editor/index.js +2 -2
- package/src/dataviews/store/private-actions.ts +6 -0
- package/src/store/actions.js +1 -4
- package/src/store/private-actions.js +24 -3
- package/src/store/private-selectors.js +46 -16
- 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/sync-error-messages.ts +72 -0
- package/src/utils/test/sync-error-messages.js +9 -32
- package/build/components/sync-connection-modal/index.cjs.map +0 -7
- package/build/components/sync-connection-modal/use-retry-countdown.cjs.map +0 -7
- package/build-module/components/sync-connection-modal/index.mjs +0 -170
- package/build-module/components/sync-connection-modal/index.mjs.map +0 -7
- package/build-module/components/sync-connection-modal/use-retry-countdown.mjs +0 -49
- package/build-module/components/sync-connection-modal/use-retry-countdown.mjs.map +0 -7
- 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/build-types/components/sync-connection-modal/use-retry-countdown.d.ts +0 -9
- package/build-types/components/sync-connection-modal/use-retry-countdown.d.ts.map +0 -1
- package/src/components/sync-connection-modal/index.js +0 -206
- package/src/components/sync-connection-modal/style.scss +0 -14
- package/src/components/sync-connection-modal/use-retry-countdown.js +0 -70
- package/src/utils/sync-error-messages.js +0 -58
|
@@ -3,6 +3,7 @@ export function useEditedPostContext(): {
|
|
|
3
3
|
postType: string;
|
|
4
4
|
};
|
|
5
5
|
export function useAllowSwitchingTemplates(): boolean;
|
|
6
|
-
export function useAvailableTemplates(
|
|
6
|
+
export function useAvailableTemplates(): false | any[];
|
|
7
|
+
export function usePostTemplatePanelMode(): "classic" | "block-theme" | null;
|
|
7
8
|
export function useCurrentTemplateSlug(): any;
|
|
8
9
|
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"AAaA;;;EAQC;AACD,sDA8BC;AAeD,uDAsEC;AAED,6EAwCC;AAED,8CAuBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/panel.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/panel.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,6CAFY,KAAK,CAAC,SAAS,CAW1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap-template-button.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/swap-template-button.js"],"names":[],"mappings":"AAkBA;;
|
|
1
|
+
{"version":3,"file":"swap-template-button.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/swap-template-button.js"],"names":[],"mappings":"AAkBA;;;gCA4BC;AAED;;gCAqBC"}
|
|
@@ -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":";AA+GA;;;;;;;;;GASG;AACH,kDAPW,MAAM,YACN,MAAM,UACN,MAAM,iBACN,MAAM,GAEL,MAAM,CAoUjB"}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataform-post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/dataform-post-summary.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dataform-post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/dataform-post-summary.js"],"names":[],"mappings":"AAuBA;;gCA2HC"}
|
|
@@ -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":";AAsKA;;;gCAkEC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-revision-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/post-revision-summary.js"],"names":[],"mappings":"AAmBA,kFA8BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/post-summary.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"post-summary.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/post-summary.js"],"names":[],"mappings":"AA2CA;;gCAUC;AAED;;gCAYC"}
|
|
@@ -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,22 @@
|
|
|
1
|
+
import { type ConnectionError } from '@wordpress/core-data';
|
|
2
|
+
export interface SyncConnectionErrorModalProps {
|
|
3
|
+
description: string;
|
|
4
|
+
error?: ConnectionError;
|
|
5
|
+
manualRetry?: () => void;
|
|
6
|
+
postType?: {
|
|
7
|
+
slug?: string;
|
|
8
|
+
labels?: {
|
|
9
|
+
name?: string;
|
|
10
|
+
};
|
|
11
|
+
} | null;
|
|
12
|
+
secondsRemainingUntilAutoRetry?: number;
|
|
13
|
+
title: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Sync connection modal that displays when any entity reports a disconnection.
|
|
17
|
+
* Uses BlockCanvasCover.Fill to render in the block canvas.
|
|
18
|
+
*
|
|
19
|
+
* @return The modal component or null if not disconnected.
|
|
20
|
+
*/
|
|
21
|
+
export declare function SyncConnectionErrorModal(): import("react").JSX.Element | null;
|
|
22
|
+
//# 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":"AAOA,OAAO,EAGN,KAAK,eAAe,EACpB,MAAM,sBAAsB,CAAC;AAgC9B,MAAM,WAAW,6BAA6B;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IAChE,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;CACd;AA+HD;;;;;GAKG;AACH,wBAAgB,wBAAwB,uCAiFvC"}
|
|
@@ -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,CA2CzB"}
|
|
@@ -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":"AA+BA,0FAoKC"}
|
|
@@ -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,kFA4IC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/template-actions-panel/index.js"],"names":[],"mappings":"AAaA,mFAkBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../../src/dataviews/store/private-actions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AA4D1D,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,8BAA8B,CAAC,EAAE,OAAO,CAAC;QACzC,yBAAyB,CAAC,EAAE,OAAO,CAAC;KACpC;CACD;AAgBD,wBAAgB,oBAAoB,CAAE,IAAI,EACzC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAE,IAAI,CAAE;;;;;EAQtB;AAED,wBAAgB,sBAAsB,CACrC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM;;;;;EAQhB;AAED,wBAAgB,mBAAmB,CAAE,IAAI,EACxC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAE,IAAI,CAAE;;;;;EAQrB;AAED,wBAAgB,qBAAqB,CACpC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM;;;;;EAQf;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;EAMrD;AA2BD,eAAO,MAAM,sBAAsB,GAChC,UAAU,MAAM,MACV,cAAc;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,kBA2JtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AAyEA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC;AAED;;;;;;GAMG;AACH,8BAHY,MAAM,CAWjB;AAED;;;;;;GAMG;AACH,uCAFW,MAAM,UAQhB;AAED;;;;;;;GAOG;AACH,wCALW,MAAM,UACN,MAAM,GAEL,MAAM,CAQjB;
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAoBA;;;;;;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;AAED;;;;;GAKG;AACH,8CAHW,OAAO,GACN,MAAM,CAOjB;
|
|
1
|
+
{"version":3,"file":"private-actions.d.ts","sourceRoot":"","sources":["../../src/store/private-actions.js"],"names":[],"mappings":"AAoBA;;;;;;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;AAED;;;;;GAKG;AACH,8CAHW,OAAO,GACN,MAAM,CAOjB;AAyFD;;;;;;;GAOG;AACH,mCALW,SAAS,GAAC,MAAM,GAAC,KAAK,YAE9B;IAAyC,KAAK;CAC9C,GAAS,MAAM,CAQjB;;AAvqBM,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;AAqFK,4CAFI,MAAM,IAIR;;;;CAA8B,mBA6ErC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAwHA,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,OAAO,CAIlB;AAED;;;;;GAKG;AACH,6CAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,4CAHW,MAAM,GACL,MAAM,GAAC,IAAI,CAItB;
|
|
1
|
+
{"version":3,"file":"private-selectors.d.ts","sourceRoot":"","sources":["../../src/store/private-selectors.js"],"names":[],"mappings":"AAwHA,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,OAAO,CAIlB;AAED;;;;;GAKG;AACH,6CAHW,MAAM,GACL,OAAO,CAIlB;AAED;;;;;GAKG;AACH,4CAHW,MAAM,GACL,MAAM,GAAC,IAAI,CAItB;AA2DD;;;;;;GAMG;AACH,uCAJW,MAAM,GAEL,SAAS,GAAC,MAAM,GAAC,KAAK,CAIjC;AAED;;;;;;GAMG;AACH,qCAJW,MAAM,GAEL,OAAO,CAIlB;AA7ZD;;;;;;GAMG;AACH;;;;EAqEE;AAeF;;;;EAqCE;AAEF;;;;;;;;;GASG;AACH;;;;EA2BE;AAcF;;;;;;;;GAQG;AACH;;;;EAiCE;AAEF;;;;;;;GAOG;AACH;;;;EAyCE;AA8DF;;;;;GAKG;AACH;;;;EAiDE;AAwBF;;;;;;GAMG;AACH;;;;EA8DE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/media-finalize/index.js"],"names":[],"mappings":"AAKA,8DAKC"}
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { type ConnectionError } from '@wordpress/core-data';
|
|
5
|
+
export declare const AUTHENTICATION_FAILED = "authentication-failed";
|
|
6
|
+
export declare const CONNECTION_EXPIRED = "connection-expired";
|
|
7
|
+
export declare const CONNECTION_LIMIT_EXCEEDED = "connection-limit-exceeded";
|
|
8
|
+
export declare const DOCUMENT_SIZE_LIMIT_EXCEEDED = "document-size-limit-exceeded";
|
|
9
|
+
export declare const UNKNOWN_ERROR = "unknown-error";
|
|
10
|
+
interface ConnectionErrorMessages {
|
|
11
|
+
description: string;
|
|
12
|
+
title: string;
|
|
13
|
+
}
|
|
1
14
|
/**
|
|
2
15
|
* Get user-facing title and description from a sync connection error.
|
|
3
16
|
*
|
|
4
17
|
* Provides default messages based on error.code.
|
|
5
18
|
*
|
|
6
|
-
* @param
|
|
7
|
-
* @return
|
|
19
|
+
* @param error - Connection error.
|
|
20
|
+
* @return Object with title, description, and canRetry flag.
|
|
8
21
|
*/
|
|
9
|
-
export function getSyncErrorMessages(error
|
|
22
|
+
export declare function getSyncErrorMessages(error?: ConnectionError): ConnectionErrorMessages;
|
|
23
|
+
export {};
|
|
10
24
|
//# sourceMappingURL=sync-error-messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-error-messages.d.ts","sourceRoot":"","sources":["../../src/utils/sync-error-messages.
|
|
1
|
+
{"version":3,"file":"sync-error-messages.d.ts","sourceRoot":"","sources":["../../src/utils/sync-error-messages.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAK5D,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,UAAU,uBAAuB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACd;AAsCD;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,CAAC,EAAE,eAAe,GACrB,uBAAuB,CAMzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/editor",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.43.0",
|
|
4
4
|
"description": "Enhanced block editor for WordPress posts.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -61,48 +61,49 @@
|
|
|
61
61
|
],
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@floating-ui/react-dom": "2.0.8",
|
|
64
|
-
"@wordpress/a11y": "^4.
|
|
65
|
-
"@wordpress/api-fetch": "^7.
|
|
66
|
-
"@wordpress/base-styles": "^6.
|
|
67
|
-
"@wordpress/blob": "^4.
|
|
68
|
-
"@wordpress/block-editor": "^15.
|
|
69
|
-
"@wordpress/block-serialization-default-parser": "^5.
|
|
70
|
-
"@wordpress/blocks": "^15.
|
|
71
|
-
"@wordpress/commands": "^1.
|
|
72
|
-
"@wordpress/components": "^32.
|
|
73
|
-
"@wordpress/compose": "^7.
|
|
74
|
-
"@wordpress/core-data": "^7.
|
|
75
|
-
"@wordpress/data": "^10.
|
|
76
|
-
"@wordpress/dataviews": "^
|
|
77
|
-
"@wordpress/date": "^5.
|
|
78
|
-
"@wordpress/deprecated": "^4.
|
|
79
|
-
"@wordpress/dom": "^4.
|
|
80
|
-
"@wordpress/element": "^6.
|
|
81
|
-
"@wordpress/fields": "^0.
|
|
82
|
-
"@wordpress/global-styles-engine": "^1.
|
|
83
|
-
"@wordpress/global-styles-ui": "^1.
|
|
84
|
-
"@wordpress/hooks": "^4.
|
|
85
|
-
"@wordpress/html-entities": "^4.
|
|
86
|
-
"@wordpress/i18n": "^6.
|
|
87
|
-
"@wordpress/icons": "^12.
|
|
88
|
-
"@wordpress/interface": "^9.
|
|
89
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
90
|
-
"@wordpress/keycodes": "^4.
|
|
91
|
-
"@wordpress/media-editor": "^0.
|
|
92
|
-
"@wordpress/media-fields": "^0.
|
|
93
|
-
"@wordpress/media-utils": "^5.
|
|
94
|
-
"@wordpress/notices": "^5.
|
|
95
|
-
"@wordpress/patterns": "^2.
|
|
96
|
-
"@wordpress/plugins": "^7.
|
|
97
|
-
"@wordpress/preferences": "^4.
|
|
98
|
-
"@wordpress/private-apis": "^1.
|
|
99
|
-
"@wordpress/reusable-blocks": "^5.
|
|
100
|
-
"@wordpress/rich-text": "^7.
|
|
101
|
-
"@wordpress/server-side-render": "^6.
|
|
102
|
-
"@wordpress/upload-media": "^0.
|
|
103
|
-
"@wordpress/url": "^4.
|
|
104
|
-
"@wordpress/
|
|
105
|
-
"@wordpress/
|
|
64
|
+
"@wordpress/a11y": "^4.43.0",
|
|
65
|
+
"@wordpress/api-fetch": "^7.43.0",
|
|
66
|
+
"@wordpress/base-styles": "^6.19.0",
|
|
67
|
+
"@wordpress/blob": "^4.43.0",
|
|
68
|
+
"@wordpress/block-editor": "^15.16.0",
|
|
69
|
+
"@wordpress/block-serialization-default-parser": "^5.43.0",
|
|
70
|
+
"@wordpress/blocks": "^15.16.0",
|
|
71
|
+
"@wordpress/commands": "^1.43.0",
|
|
72
|
+
"@wordpress/components": "^32.5.0",
|
|
73
|
+
"@wordpress/compose": "^7.43.0",
|
|
74
|
+
"@wordpress/core-data": "^7.43.0",
|
|
75
|
+
"@wordpress/data": "^10.43.0",
|
|
76
|
+
"@wordpress/dataviews": "^14.0.0",
|
|
77
|
+
"@wordpress/date": "^5.43.0",
|
|
78
|
+
"@wordpress/deprecated": "^4.43.0",
|
|
79
|
+
"@wordpress/dom": "^4.43.0",
|
|
80
|
+
"@wordpress/element": "^6.43.0",
|
|
81
|
+
"@wordpress/fields": "^0.35.0",
|
|
82
|
+
"@wordpress/global-styles-engine": "^1.10.0",
|
|
83
|
+
"@wordpress/global-styles-ui": "^1.10.0",
|
|
84
|
+
"@wordpress/hooks": "^4.43.0",
|
|
85
|
+
"@wordpress/html-entities": "^4.43.0",
|
|
86
|
+
"@wordpress/i18n": "^6.16.0",
|
|
87
|
+
"@wordpress/icons": "^12.1.0",
|
|
88
|
+
"@wordpress/interface": "^9.28.0",
|
|
89
|
+
"@wordpress/keyboard-shortcuts": "^5.43.0",
|
|
90
|
+
"@wordpress/keycodes": "^4.43.0",
|
|
91
|
+
"@wordpress/media-editor": "^0.6.0",
|
|
92
|
+
"@wordpress/media-fields": "^0.8.0",
|
|
93
|
+
"@wordpress/media-utils": "^5.43.0",
|
|
94
|
+
"@wordpress/notices": "^5.43.0",
|
|
95
|
+
"@wordpress/patterns": "^2.43.0",
|
|
96
|
+
"@wordpress/plugins": "^7.43.0",
|
|
97
|
+
"@wordpress/preferences": "^4.43.0",
|
|
98
|
+
"@wordpress/private-apis": "^1.43.0",
|
|
99
|
+
"@wordpress/reusable-blocks": "^5.43.0",
|
|
100
|
+
"@wordpress/rich-text": "^7.43.0",
|
|
101
|
+
"@wordpress/server-side-render": "^6.19.0",
|
|
102
|
+
"@wordpress/upload-media": "^0.28.0",
|
|
103
|
+
"@wordpress/url": "^4.43.0",
|
|
104
|
+
"@wordpress/views": "^1.10.0",
|
|
105
|
+
"@wordpress/warning": "^3.43.0",
|
|
106
|
+
"@wordpress/wordcount": "^4.43.0",
|
|
106
107
|
"change-case": "^4.1.2",
|
|
107
108
|
"client-zip": "^2.4.5",
|
|
108
109
|
"clsx": "^2.1.1",
|
|
@@ -125,5 +126,5 @@
|
|
|
125
126
|
"publishConfig": {
|
|
126
127
|
"access": "public"
|
|
127
128
|
},
|
|
128
|
-
"gitHead": "
|
|
129
|
+
"gitHead": "2cea90674d11aa521ec3f71652fb3a6a4c383969"
|
|
129
130
|
}
|
|
@@ -89,7 +89,7 @@ function computeCursorOnly(
|
|
|
89
89
|
);
|
|
90
90
|
return {
|
|
91
91
|
coords: getCursorPosition(
|
|
92
|
-
start.
|
|
92
|
+
start.richTextOffset,
|
|
93
93
|
blockElement,
|
|
94
94
|
overlayContext.editorDocument,
|
|
95
95
|
overlayContext.overlayRect
|
|
@@ -116,8 +116,8 @@ function computeTextSelection(
|
|
|
116
116
|
if (
|
|
117
117
|
! start.localClientId ||
|
|
118
118
|
! end.localClientId ||
|
|
119
|
-
start.
|
|
120
|
-
end.
|
|
119
|
+
start.richTextOffset === null ||
|
|
120
|
+
end.richTextOffset === null
|
|
121
121
|
) {
|
|
122
122
|
return {};
|
|
123
123
|
}
|
|
@@ -147,7 +147,7 @@ function computeTextSelection(
|
|
|
147
147
|
if ( allRects.length > 0 ) {
|
|
148
148
|
return {
|
|
149
149
|
coords: getCursorPosition(
|
|
150
|
-
activeEnd.
|
|
150
|
+
activeEnd.richTextOffset,
|
|
151
151
|
activeEndBlock,
|
|
152
152
|
overlayContext.editorDocument,
|
|
153
153
|
overlayContext.overlayRect
|
|
@@ -164,7 +164,7 @@ function computeTextSelection(
|
|
|
164
164
|
|
|
165
165
|
return {
|
|
166
166
|
coords: getCursorPosition(
|
|
167
|
-
start.
|
|
167
|
+
start.richTextOffset,
|
|
168
168
|
startBlock,
|
|
169
169
|
overlayContext.editorDocument,
|
|
170
170
|
overlayContext.overlayRect
|
|
@@ -191,8 +191,8 @@ function computeSingleBlockRects(
|
|
|
191
191
|
);
|
|
192
192
|
if (
|
|
193
193
|
! blockElement ||
|
|
194
|
-
start.
|
|
195
|
-
end.
|
|
194
|
+
start.richTextOffset === null ||
|
|
195
|
+
end.richTextOffset === null
|
|
196
196
|
) {
|
|
197
197
|
return { rects: [], blockElement: null };
|
|
198
198
|
}
|
|
@@ -200,8 +200,8 @@ function computeSingleBlockRects(
|
|
|
200
200
|
rects:
|
|
201
201
|
getSelectionRects(
|
|
202
202
|
blockElement,
|
|
203
|
-
start.
|
|
204
|
-
end.
|
|
203
|
+
start.richTextOffset,
|
|
204
|
+
end.richTextOffset,
|
|
205
205
|
overlayContext.editorDocument,
|
|
206
206
|
overlayContext.overlayRect
|
|
207
207
|
) ?? [],
|
|
@@ -244,8 +244,8 @@ function computeMultiBlockRects(
|
|
|
244
244
|
if (
|
|
245
245
|
! firstBlock ||
|
|
246
246
|
! lastBlock ||
|
|
247
|
-
docFirst.
|
|
248
|
-
docLast.
|
|
247
|
+
docFirst.richTextOffset === null ||
|
|
248
|
+
docLast.richTextOffset === null ||
|
|
249
249
|
! docFirst.localClientId ||
|
|
250
250
|
! docLast.localClientId
|
|
251
251
|
) {
|
|
@@ -262,7 +262,7 @@ function computeMultiBlockRects(
|
|
|
262
262
|
// First block: from start offset to end of block.
|
|
263
263
|
const startRects = getSelectionRects(
|
|
264
264
|
firstBlock,
|
|
265
|
-
docFirst.
|
|
265
|
+
docFirst.richTextOffset,
|
|
266
266
|
Number.MAX_SAFE_INTEGER,
|
|
267
267
|
overlayContext.editorDocument,
|
|
268
268
|
overlayContext.overlayRect
|
|
@@ -290,7 +290,7 @@ function computeMultiBlockRects(
|
|
|
290
290
|
const endRects = getSelectionRects(
|
|
291
291
|
lastBlock,
|
|
292
292
|
0,
|
|
293
|
-
docLast.
|
|
293
|
+
docLast.richTextOffset,
|
|
294
294
|
overlayContext.editorDocument,
|
|
295
295
|
overlayContext.overlayRect
|
|
296
296
|
);
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
interface ScrollToCursorOptions {
|
|
2
|
+
behavior?: ScrollBehavior;
|
|
3
|
+
block?: ScrollLogicalPosition;
|
|
4
|
+
inline?: ScrollLogicalPosition;
|
|
5
|
+
highlightDuration?: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Cursor Registry
|
|
10
|
+
* ===
|
|
11
|
+
* This registry stores references to cursor elements so that we can access them
|
|
12
|
+
* in different parts of the component tree. This would more ideally be solved
|
|
13
|
+
* with React context or state in the awareness store, but:
|
|
14
|
+
*
|
|
15
|
+
* 1. EditorPresence and BlockCanvasCover slot/fill break context propagation. We
|
|
16
|
+
* don't currently have a way to provide context to both the slot and fill.
|
|
17
|
+
* 2. Storing pointers to the cursor elements in the awareness store might be a
|
|
18
|
+
* better solution, but would require broader refactoring.
|
|
19
|
+
*
|
|
20
|
+
* For now, we create a single instance of this registry and pass it down to the
|
|
21
|
+
* components that need it. It's important that we create a single instance and
|
|
22
|
+
* not a new instance per component or render; use useState with a lazy
|
|
23
|
+
* initializer to accomplish this.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
function highlightCursor( element: HTMLElement, duration: number ): void {
|
|
27
|
+
element.classList.add( 'collaborators-overlay-cursor-highlighted' );
|
|
28
|
+
|
|
29
|
+
setTimeout( () => {
|
|
30
|
+
element.classList.remove( 'collaborators-overlay-cursor-highlighted' );
|
|
31
|
+
}, duration );
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function createCursorRegistry() {
|
|
35
|
+
const cursorMap = new Map< number, HTMLElement >();
|
|
36
|
+
|
|
37
|
+
return {
|
|
38
|
+
/**
|
|
39
|
+
* Register a cursor element when it's created.
|
|
40
|
+
*
|
|
41
|
+
* @param clientId - The clientId of the cursor to register.
|
|
42
|
+
* @param element - The cursor element to register.
|
|
43
|
+
*/
|
|
44
|
+
registerCursor( clientId: number, element: HTMLElement ): void {
|
|
45
|
+
cursorMap.set( clientId, element );
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Unregister a cursor element when it's removed.
|
|
50
|
+
*
|
|
51
|
+
* @param clientId - The clientId of the cursor to unregister.
|
|
52
|
+
*/
|
|
53
|
+
unregisterCursor( clientId: number ): void {
|
|
54
|
+
cursorMap.delete( clientId );
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Scroll to a cursor by clientId.
|
|
59
|
+
*
|
|
60
|
+
* @param clientId - The clientId of the cursor to scroll to.
|
|
61
|
+
* @param options - The options for the scroll.
|
|
62
|
+
* @return true if cursor was found and scrolled to, false otherwise.
|
|
63
|
+
*/
|
|
64
|
+
scrollToCursor(
|
|
65
|
+
clientId: number,
|
|
66
|
+
options?: ScrollToCursorOptions
|
|
67
|
+
): boolean {
|
|
68
|
+
const cursorElement = cursorMap.get( clientId );
|
|
69
|
+
|
|
70
|
+
if ( ! cursorElement ) {
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
cursorElement.scrollIntoView( {
|
|
75
|
+
behavior: options?.behavior ?? 'smooth',
|
|
76
|
+
block: options?.block ?? 'center',
|
|
77
|
+
inline: options?.inline ?? 'nearest',
|
|
78
|
+
} );
|
|
79
|
+
|
|
80
|
+
if ( options?.highlightDuration ) {
|
|
81
|
+
highlightCursor( cursorElement, options.highlightDuration );
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return true;
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Clear the registry.
|
|
89
|
+
*/
|
|
90
|
+
removeAll(): void {
|
|
91
|
+
cursorMap.clear();
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type CursorRegistry = ReturnType< typeof createCursorRegistry >;
|
|
@@ -9,22 +9,29 @@ import { privateApis } from '@wordpress/block-editor';
|
|
|
9
9
|
*/
|
|
10
10
|
import { unlock } from '../../lock-unlock';
|
|
11
11
|
import { Overlay } from './overlay';
|
|
12
|
+
import { type CursorRegistry } from './cursor-registry';
|
|
12
13
|
|
|
13
14
|
const { BlockCanvasCover } = unlock( privateApis );
|
|
14
15
|
|
|
15
16
|
interface Props {
|
|
16
17
|
postId: number | null;
|
|
17
18
|
postType: string | null;
|
|
19
|
+
cursorRegistry?: CursorRegistry;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
/**
|
|
21
23
|
* Collaborators Overlay component
|
|
22
|
-
* @param props
|
|
23
|
-
* @param props.postId
|
|
24
|
-
* @param props.postType
|
|
24
|
+
* @param props - The props for the CollaboratorsOverlay component
|
|
25
|
+
* @param props.postId - The ID of the post
|
|
26
|
+
* @param props.postType - The type of the post
|
|
27
|
+
* @param props.cursorRegistry - The shared cursor registry
|
|
25
28
|
* @return The CollaboratorsOverlay component
|
|
26
29
|
*/
|
|
27
|
-
export function CollaboratorsOverlay( {
|
|
30
|
+
export function CollaboratorsOverlay( {
|
|
31
|
+
postId,
|
|
32
|
+
postType,
|
|
33
|
+
cursorRegistry,
|
|
34
|
+
}: Props ) {
|
|
28
35
|
return (
|
|
29
36
|
<BlockCanvasCover.Fill>
|
|
30
37
|
{ ( {
|
|
@@ -36,6 +43,7 @@ export function CollaboratorsOverlay( { postId, postType }: Props ) {
|
|
|
36
43
|
blockEditorDocument={ containerRef.current?.ownerDocument }
|
|
37
44
|
postId={ postId }
|
|
38
45
|
postType={ postType }
|
|
46
|
+
cursorRegistry={ cursorRegistry }
|
|
39
47
|
/>
|
|
40
48
|
) }
|
|
41
49
|
</BlockCanvasCover.Fill>
|