superdoc 2.3.0 → 2.4.0-next.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.
Files changed (52) hide show
  1. package/README.md +0 -1
  2. package/dist/chunks/{FindReplaceSurface-DLxnCQOB.cjs → FindReplaceSurface-Dx0llWqP.cjs} +1 -1
  3. package/dist/chunks/{PasswordPromptSurface-DMbfDvpQ.cjs → PasswordPromptSurface-BUUVC2ee.cjs} +1 -1
  4. package/dist/chunks/{PdfViewer-CoFiGAhm.cjs → PdfViewer-qpvzwYMz.cjs} +1 -1
  5. package/dist/chunks/blank-docx-DP8RUPW-.cjs +7 -0
  6. package/dist/chunks/blank-docx-XRX6Ker2.es.js +2 -0
  7. package/dist/chunks/{create-super-doc-ui-fxF2Q8Ib.es.js → create-super-doc-ui-D4kk9AjM.es.js} +331 -102
  8. package/dist/chunks/{create-super-doc-ui-CXCqHc2m.cjs → create-super-doc-ui-DXdWuTzm.cjs} +331 -102
  9. package/dist/chunks/{eventemitter3-B60Fsz-a.es.js → eventemitter3-Bt2s0X0a.es.js} +1 -1
  10. package/dist/chunks/{eventemitter3-DCfwFVNn.cjs → eventemitter3-DqY4aSMf.cjs} +1 -1
  11. package/dist/chunks/{jszip-DzmwAHr3.es.js → jszip-C8srOKAO.es.js} +2 -2
  12. package/dist/chunks/{jszip-BdUBlUeG.cjs → jszip-Cs9JBLlJ.cjs} +13 -1
  13. package/dist/chunks/{rolldown-runtime-_dR15c8t.cjs → rolldown-runtime-1Y-nnZJ3.cjs} +0 -28
  14. package/dist/chunks/{rolldown-runtime-BJVcqBbz.es.js → rolldown-runtime-D7PMmH3s.es.js} +1 -17
  15. package/dist/collaboration-upgrade-engine.cjs +1 -1
  16. package/dist/collaboration-upgrade-engine.es.js +1 -1
  17. package/dist/document-api/src/comments/comment-create-attribution.d.ts +2 -0
  18. package/dist/document-api/src/comments/comments.d.ts +13 -4
  19. package/dist/document-api/src/comments/comments.types.d.ts +39 -0
  20. package/dist/document-api/src/content-controls/content-controls.types.d.ts +2 -0
  21. package/dist/document-api/src/contract/metadata-types.d.ts +18 -0
  22. package/dist/document-api/src/contract/operation-definitions.d.ts +1 -1
  23. package/dist/document-api/src/index.d.ts +2 -2
  24. package/dist/layout-engine/painters/dom/src/_test-utils.d.ts +3 -2
  25. package/dist/layout-engine/painters/dom/src/index.d.ts +24 -19
  26. package/dist/layout-engine/painters/dom/src/page-content.d.ts +107 -39
  27. package/dist/layout-engine/painters/dom/src/persistent-page-surface.d.ts +144 -0
  28. package/dist/layout-engine/painters/dom/src/pm-position-validation.d.ts +1 -1
  29. package/dist/layout-engine/painters/dom/src/renderer.d.ts +50 -106
  30. package/dist/layout-engine/painters/dom/src/sdt/boundaries.d.ts +1 -1
  31. package/dist/public/ui-react.cjs +2 -2
  32. package/dist/public/ui-react.es.js +1 -1
  33. package/dist/public/ui.cjs +1 -1
  34. package/dist/public/ui.es.js +1 -1
  35. package/dist/style.css +97 -90
  36. package/dist/style.layered.css +97 -90
  37. package/dist/superdoc/src/core/types/index.d.ts +258 -11
  38. package/dist/superdoc/src/helpers/floor.d.ts +1 -1
  39. package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +4 -0
  40. package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +0 -1
  41. package/dist/superdoc/src/public/index.d.cts +6 -0
  42. package/dist/superdoc/src/public/index.d.ts +3 -0
  43. package/dist/superdoc/src/stores/comments-store.d.ts +34 -10
  44. package/dist/superdoc/src/stores/superdoc-store.d.ts +102 -30
  45. package/dist/superdoc.cjs +4581 -608
  46. package/dist/superdoc.es.js +4581 -612
  47. package/dist-cdn/style.layered.css +1 -1
  48. package/dist-cdn/superdoc.min.css +1 -1
  49. package/dist-cdn/superdoc.min.js +37 -37
  50. package/package.json +5 -4
  51. package/dist/chunks/blank-docx-CJAXnJKp.es.js +0 -2
  52. package/dist/chunks/blank-docx-DA-G-3VB.cjs +0 -7
@@ -153,7 +153,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
153
153
  replacedFile?: boolean | undefined;
154
154
  }) => void;
155
155
  translateCommentsForExport: () => any[];
156
- handleEditorLocationsUpdate: (allCommentPositions: any) => void;
156
+ handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
157
+ retainMissingTrackedChangeGeometry?: boolean;
158
+ retainedTrackedChangeIds?: Iterable<string>;
159
+ }) => void;
157
160
  clearEditorCommentPositions: () => void;
158
161
  handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
159
162
  superdoc: Object;
@@ -184,7 +187,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
184
187
  setV2CommentsAdapter: (adapter: any) => void;
185
188
  getV2CommentsAdapter: (superdoc: any) => any;
186
189
  hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
187
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items }?: {}) => any;
190
+ applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
191
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
192
+ preparedInputs?: null | undefined;
193
+ }) => any;
188
194
  isV2EditorActive: (superdoc: any) => boolean;
189
195
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
190
196
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -221,9 +227,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
221
227
  failures: any[];
222
228
  reason?: undefined;
223
229
  }>;
224
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
230
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
225
231
  pruneStale?: boolean | undefined;
232
+ preparedParams?: null | undefined;
226
233
  }) => any;
234
+ remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
227
235
  }, "suppressInternalExternal" | "activeComment" | "activeFloatingCommentInstanceId" | "floatingCommentsOffset" | "pendingComment" | "currentCommentText" | "isDebugging" | "editingCommentId" | "editorCommentPositions" | "isCommentHighlighted" | "v2CommentsAdapter" | "COMMENT_EVENTS" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "commentsList" | "isCommentsListVisible" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "hasInitializedLocations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2TrackedChangesAdapter">, Pick<{
228
236
  COMMENT_EVENTS: {
229
237
  readonly RESOLVED: "resolved";
@@ -378,7 +386,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
378
386
  replacedFile?: boolean | undefined;
379
387
  }) => void;
380
388
  translateCommentsForExport: () => any[];
381
- handleEditorLocationsUpdate: (allCommentPositions: any) => void;
389
+ handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
390
+ retainMissingTrackedChangeGeometry?: boolean;
391
+ retainedTrackedChangeIds?: Iterable<string>;
392
+ }) => void;
382
393
  clearEditorCommentPositions: () => void;
383
394
  handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
384
395
  superdoc: Object;
@@ -409,7 +420,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
409
420
  setV2CommentsAdapter: (adapter: any) => void;
410
421
  getV2CommentsAdapter: (superdoc: any) => any;
411
422
  hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
412
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items }?: {}) => any;
423
+ applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
424
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
425
+ preparedInputs?: null | undefined;
426
+ }) => any;
413
427
  isV2EditorActive: (superdoc: any) => boolean;
414
428
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
415
429
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -446,9 +460,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
446
460
  failures: any[];
447
461
  reason?: undefined;
448
462
  }>;
449
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
463
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
450
464
  pruneStale?: boolean | undefined;
465
+ preparedParams?: null | undefined;
451
466
  }) => any;
467
+ remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
452
468
  }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
453
469
  COMMENT_EVENTS: {
454
470
  readonly RESOLVED: "resolved";
@@ -603,7 +619,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
603
619
  replacedFile?: boolean | undefined;
604
620
  }) => void;
605
621
  translateCommentsForExport: () => any[];
606
- handleEditorLocationsUpdate: (allCommentPositions: any) => void;
622
+ handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
623
+ retainMissingTrackedChangeGeometry?: boolean;
624
+ retainedTrackedChangeIds?: Iterable<string>;
625
+ }) => void;
607
626
  clearEditorCommentPositions: () => void;
608
627
  handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
609
628
  superdoc: Object;
@@ -634,7 +653,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
634
653
  setV2CommentsAdapter: (adapter: any) => void;
635
654
  getV2CommentsAdapter: (superdoc: any) => any;
636
655
  hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
637
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items }?: {}) => any;
656
+ applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
657
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
658
+ preparedInputs?: null | undefined;
659
+ }) => any;
638
660
  isV2EditorActive: (superdoc: any) => boolean;
639
661
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
640
662
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -671,10 +693,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
671
693
  failures: any[];
672
694
  reason?: undefined;
673
695
  }>;
674
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
696
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
675
697
  pruneStale?: boolean | undefined;
698
+ preparedParams?: null | undefined;
676
699
  }) => any;
677
- }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2">>;
700
+ remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
701
+ }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "applyReviewSnapshotFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
678
702
  documents: import('vue').Ref<any[], any[]>;
679
703
  documentBounds: import('vue').Ref<never[], never[]>;
680
704
  pages: {};
@@ -880,7 +904,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
880
904
  replacedFile?: boolean | undefined;
881
905
  }) => void;
882
906
  translateCommentsForExport: () => any[];
883
- handleEditorLocationsUpdate: (allCommentPositions: any) => void;
907
+ handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
908
+ retainMissingTrackedChangeGeometry?: boolean;
909
+ retainedTrackedChangeIds?: Iterable<string>;
910
+ }) => void;
884
911
  clearEditorCommentPositions: () => void;
885
912
  handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
886
913
  superdoc: Object;
@@ -911,7 +938,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
911
938
  setV2CommentsAdapter: (adapter: any) => void;
912
939
  getV2CommentsAdapter: (superdoc: any) => any;
913
940
  hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
914
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items }?: {}) => any;
941
+ applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
942
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
943
+ preparedInputs?: null | undefined;
944
+ }) => any;
915
945
  isV2EditorActive: (superdoc: any) => boolean;
916
946
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
917
947
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -948,9 +978,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
948
978
  failures: any[];
949
979
  reason?: undefined;
950
980
  }>;
951
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
981
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
952
982
  pruneStale?: boolean | undefined;
983
+ preparedParams?: null | undefined;
953
984
  }) => any;
985
+ remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
954
986
  }, "suppressInternalExternal" | "activeComment" | "activeFloatingCommentInstanceId" | "floatingCommentsOffset" | "pendingComment" | "currentCommentText" | "isDebugging" | "editingCommentId" | "editorCommentPositions" | "isCommentHighlighted" | "v2CommentsAdapter" | "COMMENT_EVENTS" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "commentsList" | "isCommentsListVisible" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "hasInitializedLocations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2TrackedChangesAdapter">, Pick<{
955
987
  COMMENT_EVENTS: {
956
988
  readonly RESOLVED: "resolved";
@@ -1105,7 +1137,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
1105
1137
  replacedFile?: boolean | undefined;
1106
1138
  }) => void;
1107
1139
  translateCommentsForExport: () => any[];
1108
- handleEditorLocationsUpdate: (allCommentPositions: any) => void;
1140
+ handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
1141
+ retainMissingTrackedChangeGeometry?: boolean;
1142
+ retainedTrackedChangeIds?: Iterable<string>;
1143
+ }) => void;
1109
1144
  clearEditorCommentPositions: () => void;
1110
1145
  handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
1111
1146
  superdoc: Object;
@@ -1136,7 +1171,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
1136
1171
  setV2CommentsAdapter: (adapter: any) => void;
1137
1172
  getV2CommentsAdapter: (superdoc: any) => any;
1138
1173
  hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
1139
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items }?: {}) => any;
1174
+ applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
1175
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
1176
+ preparedInputs?: null | undefined;
1177
+ }) => any;
1140
1178
  isV2EditorActive: (superdoc: any) => boolean;
1141
1179
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
1142
1180
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -1173,9 +1211,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
1173
1211
  failures: any[];
1174
1212
  reason?: undefined;
1175
1213
  }>;
1176
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
1214
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
1177
1215
  pruneStale?: boolean | undefined;
1216
+ preparedParams?: null | undefined;
1178
1217
  }) => any;
1218
+ remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
1179
1219
  }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
1180
1220
  COMMENT_EVENTS: {
1181
1221
  readonly RESOLVED: "resolved";
@@ -1330,7 +1370,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
1330
1370
  replacedFile?: boolean | undefined;
1331
1371
  }) => void;
1332
1372
  translateCommentsForExport: () => any[];
1333
- handleEditorLocationsUpdate: (allCommentPositions: any) => void;
1373
+ handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
1374
+ retainMissingTrackedChangeGeometry?: boolean;
1375
+ retainedTrackedChangeIds?: Iterable<string>;
1376
+ }) => void;
1334
1377
  clearEditorCommentPositions: () => void;
1335
1378
  handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
1336
1379
  superdoc: Object;
@@ -1361,7 +1404,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
1361
1404
  setV2CommentsAdapter: (adapter: any) => void;
1362
1405
  getV2CommentsAdapter: (superdoc: any) => any;
1363
1406
  hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
1364
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items }?: {}) => any;
1407
+ applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
1408
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
1409
+ preparedInputs?: null | undefined;
1410
+ }) => any;
1365
1411
  isV2EditorActive: (superdoc: any) => boolean;
1366
1412
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
1367
1413
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -1398,10 +1444,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
1398
1444
  failures: any[];
1399
1445
  reason?: undefined;
1400
1446
  }>;
1401
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
1447
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
1402
1448
  pruneStale?: boolean | undefined;
1449
+ preparedParams?: null | undefined;
1403
1450
  }) => any;
1404
- }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2">>;
1451
+ remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
1452
+ }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "applyReviewSnapshotFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
1405
1453
  documents: import('vue').Ref<any[], any[]>;
1406
1454
  documentBounds: import('vue').Ref<never[], never[]>;
1407
1455
  pages: {};
@@ -1607,7 +1655,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
1607
1655
  replacedFile?: boolean | undefined;
1608
1656
  }) => void;
1609
1657
  translateCommentsForExport: () => any[];
1610
- handleEditorLocationsUpdate: (allCommentPositions: any) => void;
1658
+ handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
1659
+ retainMissingTrackedChangeGeometry?: boolean;
1660
+ retainedTrackedChangeIds?: Iterable<string>;
1661
+ }) => void;
1611
1662
  clearEditorCommentPositions: () => void;
1612
1663
  handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
1613
1664
  superdoc: Object;
@@ -1638,7 +1689,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
1638
1689
  setV2CommentsAdapter: (adapter: any) => void;
1639
1690
  getV2CommentsAdapter: (superdoc: any) => any;
1640
1691
  hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
1641
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items }?: {}) => any;
1692
+ applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
1693
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
1694
+ preparedInputs?: null | undefined;
1695
+ }) => any;
1642
1696
  isV2EditorActive: (superdoc: any) => boolean;
1643
1697
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
1644
1698
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -1675,9 +1729,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
1675
1729
  failures: any[];
1676
1730
  reason?: undefined;
1677
1731
  }>;
1678
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
1732
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
1679
1733
  pruneStale?: boolean | undefined;
1734
+ preparedParams?: null | undefined;
1680
1735
  }) => any;
1736
+ remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
1681
1737
  }, "suppressInternalExternal" | "activeComment" | "activeFloatingCommentInstanceId" | "floatingCommentsOffset" | "pendingComment" | "currentCommentText" | "isDebugging" | "editingCommentId" | "editorCommentPositions" | "isCommentHighlighted" | "v2CommentsAdapter" | "COMMENT_EVENTS" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "commentsList" | "isCommentsListVisible" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "hasInitializedLocations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2TrackedChangesAdapter">, Pick<{
1682
1738
  COMMENT_EVENTS: {
1683
1739
  readonly RESOLVED: "resolved";
@@ -1832,7 +1888,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
1832
1888
  replacedFile?: boolean | undefined;
1833
1889
  }) => void;
1834
1890
  translateCommentsForExport: () => any[];
1835
- handleEditorLocationsUpdate: (allCommentPositions: any) => void;
1891
+ handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
1892
+ retainMissingTrackedChangeGeometry?: boolean;
1893
+ retainedTrackedChangeIds?: Iterable<string>;
1894
+ }) => void;
1836
1895
  clearEditorCommentPositions: () => void;
1837
1896
  handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
1838
1897
  superdoc: Object;
@@ -1863,7 +1922,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
1863
1922
  setV2CommentsAdapter: (adapter: any) => void;
1864
1923
  getV2CommentsAdapter: (superdoc: any) => any;
1865
1924
  hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
1866
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items }?: {}) => any;
1925
+ applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
1926
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
1927
+ preparedInputs?: null | undefined;
1928
+ }) => any;
1867
1929
  isV2EditorActive: (superdoc: any) => boolean;
1868
1930
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
1869
1931
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -1900,9 +1962,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
1900
1962
  failures: any[];
1901
1963
  reason?: undefined;
1902
1964
  }>;
1903
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
1965
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
1904
1966
  pruneStale?: boolean | undefined;
1967
+ preparedParams?: null | undefined;
1905
1968
  }) => any;
1969
+ remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
1906
1970
  }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
1907
1971
  COMMENT_EVENTS: {
1908
1972
  readonly RESOLVED: "resolved";
@@ -2057,7 +2121,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
2057
2121
  replacedFile?: boolean | undefined;
2058
2122
  }) => void;
2059
2123
  translateCommentsForExport: () => any[];
2060
- handleEditorLocationsUpdate: (allCommentPositions: any) => void;
2124
+ handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
2125
+ retainMissingTrackedChangeGeometry?: boolean;
2126
+ retainedTrackedChangeIds?: Iterable<string>;
2127
+ }) => void;
2061
2128
  clearEditorCommentPositions: () => void;
2062
2129
  handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
2063
2130
  superdoc: Object;
@@ -2088,7 +2155,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
2088
2155
  setV2CommentsAdapter: (adapter: any) => void;
2089
2156
  getV2CommentsAdapter: (superdoc: any) => any;
2090
2157
  hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
2091
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items }?: {}) => any;
2158
+ applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
2159
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
2160
+ preparedInputs?: null | undefined;
2161
+ }) => any;
2092
2162
  isV2EditorActive: (superdoc: any) => boolean;
2093
2163
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
2094
2164
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -2125,10 +2195,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
2125
2195
  failures: any[];
2126
2196
  reason?: undefined;
2127
2197
  }>;
2128
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
2198
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
2129
2199
  pruneStale?: boolean | undefined;
2200
+ preparedParams?: null | undefined;
2130
2201
  }) => any;
2131
- }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2">>;
2202
+ remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
2203
+ }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "applyReviewSnapshotFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
2132
2204
  documents: import('vue').Ref<any[], any[]>;
2133
2205
  documentBounds: import('vue').Ref<never[], never[]>;
2134
2206
  pages: {};