superdoc 2.4.0-next.1 → 2.4.0-next.3

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.
@@ -157,7 +157,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
157
157
  retainedTrackedChangeIds?: Iterable<string>;
158
158
  }) => void;
159
159
  clearEditorCommentPositions: () => void;
160
- handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
160
+ handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
161
161
  superdoc: Object;
162
162
  params: Object;
163
163
  }) => void;
@@ -185,9 +185,13 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
185
185
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
186
186
  setV2CommentsAdapter: (adapter: any) => void;
187
187
  getV2CommentsAdapter: (superdoc: any) => any;
188
- hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
188
+ hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
189
189
  applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
190
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
190
+ supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
191
+ commentsGeneration: any;
192
+ trackedChangesGeneration: any;
193
+ };
194
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
191
195
  preparedInputs?: null | undefined;
192
196
  }) => any;
193
197
  isV2EditorActive: (superdoc: any) => boolean;
@@ -198,10 +202,11 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
198
202
  v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
199
203
  setV2TrackedChangesAdapter: (adapter: any) => void;
200
204
  getV2TrackedChangesAdapter: (superdoc: any) => any;
201
- hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, }?: {
205
+ getV2TrackedChangeRowCount: (documentId?: null) => number;
206
+ hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
202
207
  trackedChangesListMode?: string | undefined;
203
208
  }) => Promise<any>;
204
- reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
209
+ reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
205
210
  upsertIds?: never[] | undefined;
206
211
  removedIds?: never[] | undefined;
207
212
  }) => Promise<{
@@ -210,6 +215,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
210
215
  items?: undefined;
211
216
  resolvedIds?: undefined;
212
217
  unresolvedIds?: undefined;
218
+ allResolved?: undefined;
219
+ removedRows?: undefined;
220
+ failures?: undefined;
221
+ } | {
222
+ ok: boolean;
223
+ items: never[];
224
+ resolvedIds: never[];
225
+ unresolvedIds: never[];
226
+ allResolved: boolean;
227
+ removedRows: any;
228
+ reason?: undefined;
213
229
  failures?: undefined;
214
230
  } | {
215
231
  ok: boolean;
@@ -217,6 +233,8 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
217
233
  resolvedIds: never[];
218
234
  unresolvedIds: never[];
219
235
  reason?: undefined;
236
+ allResolved?: undefined;
237
+ removedRows?: undefined;
220
238
  failures?: undefined;
221
239
  } | {
222
240
  ok: boolean;
@@ -225,8 +243,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
225
243
  unresolvedIds: (string | null)[];
226
244
  failures: any[];
227
245
  reason?: undefined;
246
+ allResolved?: undefined;
247
+ removedRows?: undefined;
228
248
  }>;
229
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
249
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
230
250
  pruneStale?: boolean | undefined;
231
251
  preparedParams?: null | undefined;
232
252
  }) => any;
@@ -390,7 +410,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
390
410
  retainedTrackedChangeIds?: Iterable<string>;
391
411
  }) => void;
392
412
  clearEditorCommentPositions: () => void;
393
- handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
413
+ handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
394
414
  superdoc: Object;
395
415
  params: Object;
396
416
  }) => void;
@@ -418,9 +438,13 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
418
438
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
419
439
  setV2CommentsAdapter: (adapter: any) => void;
420
440
  getV2CommentsAdapter: (superdoc: any) => any;
421
- hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
441
+ hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
422
442
  applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
423
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
443
+ supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
444
+ commentsGeneration: any;
445
+ trackedChangesGeneration: any;
446
+ };
447
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
424
448
  preparedInputs?: null | undefined;
425
449
  }) => any;
426
450
  isV2EditorActive: (superdoc: any) => boolean;
@@ -431,10 +455,11 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
431
455
  v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
432
456
  setV2TrackedChangesAdapter: (adapter: any) => void;
433
457
  getV2TrackedChangesAdapter: (superdoc: any) => any;
434
- hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, }?: {
458
+ getV2TrackedChangeRowCount: (documentId?: null) => number;
459
+ hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
435
460
  trackedChangesListMode?: string | undefined;
436
461
  }) => Promise<any>;
437
- reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
462
+ reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
438
463
  upsertIds?: never[] | undefined;
439
464
  removedIds?: never[] | undefined;
440
465
  }) => Promise<{
@@ -443,6 +468,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
443
468
  items?: undefined;
444
469
  resolvedIds?: undefined;
445
470
  unresolvedIds?: undefined;
471
+ allResolved?: undefined;
472
+ removedRows?: undefined;
473
+ failures?: undefined;
474
+ } | {
475
+ ok: boolean;
476
+ items: never[];
477
+ resolvedIds: never[];
478
+ unresolvedIds: never[];
479
+ allResolved: boolean;
480
+ removedRows: any;
481
+ reason?: undefined;
446
482
  failures?: undefined;
447
483
  } | {
448
484
  ok: boolean;
@@ -450,6 +486,8 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
450
486
  resolvedIds: never[];
451
487
  unresolvedIds: never[];
452
488
  reason?: undefined;
489
+ allResolved?: undefined;
490
+ removedRows?: undefined;
453
491
  failures?: undefined;
454
492
  } | {
455
493
  ok: boolean;
@@ -458,8 +496,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
458
496
  unresolvedIds: (string | null)[];
459
497
  failures: any[];
460
498
  reason?: undefined;
499
+ allResolved?: undefined;
500
+ removedRows?: undefined;
461
501
  }>;
462
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
502
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
463
503
  pruneStale?: boolean | undefined;
464
504
  preparedParams?: null | undefined;
465
505
  }) => any;
@@ -623,7 +663,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
623
663
  retainedTrackedChangeIds?: Iterable<string>;
624
664
  }) => void;
625
665
  clearEditorCommentPositions: () => void;
626
- handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
666
+ handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
627
667
  superdoc: Object;
628
668
  params: Object;
629
669
  }) => void;
@@ -651,9 +691,13 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
651
691
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
652
692
  setV2CommentsAdapter: (adapter: any) => void;
653
693
  getV2CommentsAdapter: (superdoc: any) => any;
654
- hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
694
+ hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
655
695
  applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
656
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
696
+ supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
697
+ commentsGeneration: any;
698
+ trackedChangesGeneration: any;
699
+ };
700
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
657
701
  preparedInputs?: null | undefined;
658
702
  }) => any;
659
703
  isV2EditorActive: (superdoc: any) => boolean;
@@ -664,10 +708,11 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
664
708
  v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
665
709
  setV2TrackedChangesAdapter: (adapter: any) => void;
666
710
  getV2TrackedChangesAdapter: (superdoc: any) => any;
667
- hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, }?: {
711
+ getV2TrackedChangeRowCount: (documentId?: null) => number;
712
+ hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
668
713
  trackedChangesListMode?: string | undefined;
669
714
  }) => Promise<any>;
670
- reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
715
+ reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
671
716
  upsertIds?: never[] | undefined;
672
717
  removedIds?: never[] | undefined;
673
718
  }) => Promise<{
@@ -676,6 +721,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
676
721
  items?: undefined;
677
722
  resolvedIds?: undefined;
678
723
  unresolvedIds?: undefined;
724
+ allResolved?: undefined;
725
+ removedRows?: undefined;
726
+ failures?: undefined;
727
+ } | {
728
+ ok: boolean;
729
+ items: never[];
730
+ resolvedIds: never[];
731
+ unresolvedIds: never[];
732
+ allResolved: boolean;
733
+ removedRows: any;
734
+ reason?: undefined;
679
735
  failures?: undefined;
680
736
  } | {
681
737
  ok: boolean;
@@ -683,6 +739,8 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
683
739
  resolvedIds: never[];
684
740
  unresolvedIds: never[];
685
741
  reason?: undefined;
742
+ allResolved?: undefined;
743
+ removedRows?: undefined;
686
744
  failures?: undefined;
687
745
  } | {
688
746
  ok: boolean;
@@ -691,10 +749,12 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
691
749
  unresolvedIds: (string | null)[];
692
750
  failures: any[];
693
751
  reason?: undefined;
752
+ allResolved?: undefined;
753
+ removedRows?: undefined;
694
754
  }>;
695
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
755
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
696
756
  pruneStale?: boolean | undefined;
697
757
  preparedParams?: null | undefined;
698
758
  }) => any;
699
759
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
700
- }, "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">>;
760
+ }, "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" | "supersedeV2ReviewHydration" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;