superdoc 2.4.0-next.2 → 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.
- package/dist/chunks/{create-super-doc-ui-DXdWuTzm.cjs → create-super-doc-ui-BHMQEL2y.cjs} +247 -25
- package/dist/chunks/{create-super-doc-ui-D4kk9AjM.es.js → create-super-doc-ui-Dli6Wq70.es.js} +247 -25
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +23 -23
- package/dist/style.layered.css +23 -23
- package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +1 -0
- package/dist/superdoc/src/helpers/v2-review-mutation-reconciler.d.ts +1 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +79 -19
- package/dist/superdoc/src/stores/superdoc-store.d.ts +237 -57
- package/dist/superdoc.cjs +279 -33
- package/dist/superdoc.es.js +279 -33
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +36 -36
- package/package.json +2 -2
|
@@ -158,7 +158,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
158
158
|
retainedTrackedChangeIds?: Iterable<string>;
|
|
159
159
|
}) => void;
|
|
160
160
|
clearEditorCommentPositions: () => void;
|
|
161
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
161
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
162
162
|
superdoc: Object;
|
|
163
163
|
params: Object;
|
|
164
164
|
}) => void;
|
|
@@ -186,9 +186,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
186
186
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
187
187
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
188
188
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
189
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
|
|
189
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
|
|
190
190
|
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
|
|
191
|
-
|
|
191
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
192
|
+
commentsGeneration: any;
|
|
193
|
+
trackedChangesGeneration: any;
|
|
194
|
+
};
|
|
195
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
|
|
192
196
|
preparedInputs?: null | undefined;
|
|
193
197
|
}) => any;
|
|
194
198
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
@@ -199,10 +203,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
199
203
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
200
204
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
201
205
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
202
|
-
|
|
206
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
207
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
|
|
203
208
|
trackedChangesListMode?: string | undefined;
|
|
204
209
|
}) => Promise<any>;
|
|
205
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
210
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
206
211
|
upsertIds?: never[] | undefined;
|
|
207
212
|
removedIds?: never[] | undefined;
|
|
208
213
|
}) => Promise<{
|
|
@@ -211,14 +216,27 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
211
216
|
items?: undefined;
|
|
212
217
|
resolvedIds?: undefined;
|
|
213
218
|
unresolvedIds?: undefined;
|
|
219
|
+
allResolved?: undefined;
|
|
220
|
+
removedRows?: undefined;
|
|
214
221
|
failures?: undefined;
|
|
215
222
|
} | {
|
|
216
223
|
ok: boolean;
|
|
217
224
|
items: never[];
|
|
218
225
|
resolvedIds: never[];
|
|
219
226
|
unresolvedIds: never[];
|
|
227
|
+
allResolved: boolean;
|
|
228
|
+
removedRows: any;
|
|
220
229
|
reason?: undefined;
|
|
221
230
|
failures?: undefined;
|
|
231
|
+
} | {
|
|
232
|
+
ok: boolean;
|
|
233
|
+
items: never[];
|
|
234
|
+
resolvedIds: never[];
|
|
235
|
+
unresolvedIds: never[];
|
|
236
|
+
reason?: undefined;
|
|
237
|
+
allResolved?: undefined;
|
|
238
|
+
removedRows?: undefined;
|
|
239
|
+
failures?: undefined;
|
|
222
240
|
} | {
|
|
223
241
|
ok: boolean;
|
|
224
242
|
items: any[];
|
|
@@ -226,8 +244,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
226
244
|
unresolvedIds: (string | null)[];
|
|
227
245
|
failures: any[];
|
|
228
246
|
reason?: undefined;
|
|
247
|
+
allResolved?: undefined;
|
|
248
|
+
removedRows?: undefined;
|
|
229
249
|
}>;
|
|
230
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
|
|
250
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
|
|
231
251
|
pruneStale?: boolean | undefined;
|
|
232
252
|
preparedParams?: null | undefined;
|
|
233
253
|
}) => any;
|
|
@@ -391,7 +411,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
391
411
|
retainedTrackedChangeIds?: Iterable<string>;
|
|
392
412
|
}) => void;
|
|
393
413
|
clearEditorCommentPositions: () => void;
|
|
394
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
414
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
395
415
|
superdoc: Object;
|
|
396
416
|
params: Object;
|
|
397
417
|
}) => void;
|
|
@@ -419,9 +439,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
419
439
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
420
440
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
421
441
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
422
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
|
|
442
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
|
|
423
443
|
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
|
|
424
|
-
|
|
444
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
445
|
+
commentsGeneration: any;
|
|
446
|
+
trackedChangesGeneration: any;
|
|
447
|
+
};
|
|
448
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
|
|
425
449
|
preparedInputs?: null | undefined;
|
|
426
450
|
}) => any;
|
|
427
451
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
@@ -432,10 +456,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
432
456
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
433
457
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
434
458
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
435
|
-
|
|
459
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
460
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
|
|
436
461
|
trackedChangesListMode?: string | undefined;
|
|
437
462
|
}) => Promise<any>;
|
|
438
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
463
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
439
464
|
upsertIds?: never[] | undefined;
|
|
440
465
|
removedIds?: never[] | undefined;
|
|
441
466
|
}) => Promise<{
|
|
@@ -444,14 +469,27 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
444
469
|
items?: undefined;
|
|
445
470
|
resolvedIds?: undefined;
|
|
446
471
|
unresolvedIds?: undefined;
|
|
472
|
+
allResolved?: undefined;
|
|
473
|
+
removedRows?: undefined;
|
|
447
474
|
failures?: undefined;
|
|
448
475
|
} | {
|
|
449
476
|
ok: boolean;
|
|
450
477
|
items: never[];
|
|
451
478
|
resolvedIds: never[];
|
|
452
479
|
unresolvedIds: never[];
|
|
480
|
+
allResolved: boolean;
|
|
481
|
+
removedRows: any;
|
|
453
482
|
reason?: undefined;
|
|
454
483
|
failures?: undefined;
|
|
484
|
+
} | {
|
|
485
|
+
ok: boolean;
|
|
486
|
+
items: never[];
|
|
487
|
+
resolvedIds: never[];
|
|
488
|
+
unresolvedIds: never[];
|
|
489
|
+
reason?: undefined;
|
|
490
|
+
allResolved?: undefined;
|
|
491
|
+
removedRows?: undefined;
|
|
492
|
+
failures?: undefined;
|
|
455
493
|
} | {
|
|
456
494
|
ok: boolean;
|
|
457
495
|
items: any[];
|
|
@@ -459,8 +497,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
459
497
|
unresolvedIds: (string | null)[];
|
|
460
498
|
failures: any[];
|
|
461
499
|
reason?: undefined;
|
|
500
|
+
allResolved?: undefined;
|
|
501
|
+
removedRows?: undefined;
|
|
462
502
|
}>;
|
|
463
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
|
|
503
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
|
|
464
504
|
pruneStale?: boolean | undefined;
|
|
465
505
|
preparedParams?: null | undefined;
|
|
466
506
|
}) => any;
|
|
@@ -624,7 +664,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
624
664
|
retainedTrackedChangeIds?: Iterable<string>;
|
|
625
665
|
}) => void;
|
|
626
666
|
clearEditorCommentPositions: () => void;
|
|
627
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
667
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
628
668
|
superdoc: Object;
|
|
629
669
|
params: Object;
|
|
630
670
|
}) => void;
|
|
@@ -652,9 +692,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
652
692
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
653
693
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
654
694
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
655
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
|
|
695
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
|
|
656
696
|
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
|
|
657
|
-
|
|
697
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
698
|
+
commentsGeneration: any;
|
|
699
|
+
trackedChangesGeneration: any;
|
|
700
|
+
};
|
|
701
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
|
|
658
702
|
preparedInputs?: null | undefined;
|
|
659
703
|
}) => any;
|
|
660
704
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
@@ -665,10 +709,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
665
709
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
666
710
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
667
711
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
668
|
-
|
|
712
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
713
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
|
|
669
714
|
trackedChangesListMode?: string | undefined;
|
|
670
715
|
}) => Promise<any>;
|
|
671
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
716
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
672
717
|
upsertIds?: never[] | undefined;
|
|
673
718
|
removedIds?: never[] | undefined;
|
|
674
719
|
}) => Promise<{
|
|
@@ -677,6 +722,17 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
677
722
|
items?: undefined;
|
|
678
723
|
resolvedIds?: undefined;
|
|
679
724
|
unresolvedIds?: undefined;
|
|
725
|
+
allResolved?: undefined;
|
|
726
|
+
removedRows?: undefined;
|
|
727
|
+
failures?: undefined;
|
|
728
|
+
} | {
|
|
729
|
+
ok: boolean;
|
|
730
|
+
items: never[];
|
|
731
|
+
resolvedIds: never[];
|
|
732
|
+
unresolvedIds: never[];
|
|
733
|
+
allResolved: boolean;
|
|
734
|
+
removedRows: any;
|
|
735
|
+
reason?: undefined;
|
|
680
736
|
failures?: undefined;
|
|
681
737
|
} | {
|
|
682
738
|
ok: boolean;
|
|
@@ -684,6 +740,8 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
684
740
|
resolvedIds: never[];
|
|
685
741
|
unresolvedIds: never[];
|
|
686
742
|
reason?: undefined;
|
|
743
|
+
allResolved?: undefined;
|
|
744
|
+
removedRows?: undefined;
|
|
687
745
|
failures?: undefined;
|
|
688
746
|
} | {
|
|
689
747
|
ok: boolean;
|
|
@@ -692,13 +750,15 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
692
750
|
unresolvedIds: (string | null)[];
|
|
693
751
|
failures: any[];
|
|
694
752
|
reason?: undefined;
|
|
753
|
+
allResolved?: undefined;
|
|
754
|
+
removedRows?: undefined;
|
|
695
755
|
}>;
|
|
696
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
|
|
756
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
|
|
697
757
|
pruneStale?: boolean | undefined;
|
|
698
758
|
preparedParams?: null | undefined;
|
|
699
759
|
}) => any;
|
|
700
760
|
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">>;
|
|
761
|
+
}, "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">>;
|
|
702
762
|
documents: import('vue').Ref<any[], any[]>;
|
|
703
763
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
704
764
|
pages: {};
|
|
@@ -909,7 +969,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
909
969
|
retainedTrackedChangeIds?: Iterable<string>;
|
|
910
970
|
}) => void;
|
|
911
971
|
clearEditorCommentPositions: () => void;
|
|
912
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
972
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
913
973
|
superdoc: Object;
|
|
914
974
|
params: Object;
|
|
915
975
|
}) => void;
|
|
@@ -937,9 +997,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
937
997
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
938
998
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
939
999
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
940
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
|
|
1000
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
|
|
941
1001
|
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
|
|
942
|
-
|
|
1002
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
1003
|
+
commentsGeneration: any;
|
|
1004
|
+
trackedChangesGeneration: any;
|
|
1005
|
+
};
|
|
1006
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
|
|
943
1007
|
preparedInputs?: null | undefined;
|
|
944
1008
|
}) => any;
|
|
945
1009
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
@@ -950,10 +1014,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
950
1014
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
951
1015
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
952
1016
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
953
|
-
|
|
1017
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
1018
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
|
|
954
1019
|
trackedChangesListMode?: string | undefined;
|
|
955
1020
|
}) => Promise<any>;
|
|
956
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
1021
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
957
1022
|
upsertIds?: never[] | undefined;
|
|
958
1023
|
removedIds?: never[] | undefined;
|
|
959
1024
|
}) => Promise<{
|
|
@@ -962,6 +1027,17 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
962
1027
|
items?: undefined;
|
|
963
1028
|
resolvedIds?: undefined;
|
|
964
1029
|
unresolvedIds?: undefined;
|
|
1030
|
+
allResolved?: undefined;
|
|
1031
|
+
removedRows?: undefined;
|
|
1032
|
+
failures?: undefined;
|
|
1033
|
+
} | {
|
|
1034
|
+
ok: boolean;
|
|
1035
|
+
items: never[];
|
|
1036
|
+
resolvedIds: never[];
|
|
1037
|
+
unresolvedIds: never[];
|
|
1038
|
+
allResolved: boolean;
|
|
1039
|
+
removedRows: any;
|
|
1040
|
+
reason?: undefined;
|
|
965
1041
|
failures?: undefined;
|
|
966
1042
|
} | {
|
|
967
1043
|
ok: boolean;
|
|
@@ -969,6 +1045,8 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
969
1045
|
resolvedIds: never[];
|
|
970
1046
|
unresolvedIds: never[];
|
|
971
1047
|
reason?: undefined;
|
|
1048
|
+
allResolved?: undefined;
|
|
1049
|
+
removedRows?: undefined;
|
|
972
1050
|
failures?: undefined;
|
|
973
1051
|
} | {
|
|
974
1052
|
ok: boolean;
|
|
@@ -977,8 +1055,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
977
1055
|
unresolvedIds: (string | null)[];
|
|
978
1056
|
failures: any[];
|
|
979
1057
|
reason?: undefined;
|
|
1058
|
+
allResolved?: undefined;
|
|
1059
|
+
removedRows?: undefined;
|
|
980
1060
|
}>;
|
|
981
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
|
|
1061
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
|
|
982
1062
|
pruneStale?: boolean | undefined;
|
|
983
1063
|
preparedParams?: null | undefined;
|
|
984
1064
|
}) => any;
|
|
@@ -1142,7 +1222,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1142
1222
|
retainedTrackedChangeIds?: Iterable<string>;
|
|
1143
1223
|
}) => void;
|
|
1144
1224
|
clearEditorCommentPositions: () => void;
|
|
1145
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
1225
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
1146
1226
|
superdoc: Object;
|
|
1147
1227
|
params: Object;
|
|
1148
1228
|
}) => void;
|
|
@@ -1170,9 +1250,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1170
1250
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1171
1251
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1172
1252
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1173
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
|
|
1253
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
|
|
1174
1254
|
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
|
|
1175
|
-
|
|
1255
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
1256
|
+
commentsGeneration: any;
|
|
1257
|
+
trackedChangesGeneration: any;
|
|
1258
|
+
};
|
|
1259
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
|
|
1176
1260
|
preparedInputs?: null | undefined;
|
|
1177
1261
|
}) => any;
|
|
1178
1262
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
@@ -1183,10 +1267,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1183
1267
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
1184
1268
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
1185
1269
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
1186
|
-
|
|
1270
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
1271
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
|
|
1187
1272
|
trackedChangesListMode?: string | undefined;
|
|
1188
1273
|
}) => Promise<any>;
|
|
1189
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
1274
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
1190
1275
|
upsertIds?: never[] | undefined;
|
|
1191
1276
|
removedIds?: never[] | undefined;
|
|
1192
1277
|
}) => Promise<{
|
|
@@ -1195,6 +1280,17 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1195
1280
|
items?: undefined;
|
|
1196
1281
|
resolvedIds?: undefined;
|
|
1197
1282
|
unresolvedIds?: undefined;
|
|
1283
|
+
allResolved?: undefined;
|
|
1284
|
+
removedRows?: undefined;
|
|
1285
|
+
failures?: undefined;
|
|
1286
|
+
} | {
|
|
1287
|
+
ok: boolean;
|
|
1288
|
+
items: never[];
|
|
1289
|
+
resolvedIds: never[];
|
|
1290
|
+
unresolvedIds: never[];
|
|
1291
|
+
allResolved: boolean;
|
|
1292
|
+
removedRows: any;
|
|
1293
|
+
reason?: undefined;
|
|
1198
1294
|
failures?: undefined;
|
|
1199
1295
|
} | {
|
|
1200
1296
|
ok: boolean;
|
|
@@ -1202,6 +1298,8 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1202
1298
|
resolvedIds: never[];
|
|
1203
1299
|
unresolvedIds: never[];
|
|
1204
1300
|
reason?: undefined;
|
|
1301
|
+
allResolved?: undefined;
|
|
1302
|
+
removedRows?: undefined;
|
|
1205
1303
|
failures?: undefined;
|
|
1206
1304
|
} | {
|
|
1207
1305
|
ok: boolean;
|
|
@@ -1210,8 +1308,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1210
1308
|
unresolvedIds: (string | null)[];
|
|
1211
1309
|
failures: any[];
|
|
1212
1310
|
reason?: undefined;
|
|
1311
|
+
allResolved?: undefined;
|
|
1312
|
+
removedRows?: undefined;
|
|
1213
1313
|
}>;
|
|
1214
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
|
|
1314
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
|
|
1215
1315
|
pruneStale?: boolean | undefined;
|
|
1216
1316
|
preparedParams?: null | undefined;
|
|
1217
1317
|
}) => any;
|
|
@@ -1375,7 +1475,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1375
1475
|
retainedTrackedChangeIds?: Iterable<string>;
|
|
1376
1476
|
}) => void;
|
|
1377
1477
|
clearEditorCommentPositions: () => void;
|
|
1378
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
1478
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
1379
1479
|
superdoc: Object;
|
|
1380
1480
|
params: Object;
|
|
1381
1481
|
}) => void;
|
|
@@ -1403,9 +1503,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1403
1503
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1404
1504
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1405
1505
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1406
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
|
|
1506
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
|
|
1407
1507
|
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
|
|
1408
|
-
|
|
1508
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
1509
|
+
commentsGeneration: any;
|
|
1510
|
+
trackedChangesGeneration: any;
|
|
1511
|
+
};
|
|
1512
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
|
|
1409
1513
|
preparedInputs?: null | undefined;
|
|
1410
1514
|
}) => any;
|
|
1411
1515
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
@@ -1416,10 +1520,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1416
1520
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
1417
1521
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
1418
1522
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
1419
|
-
|
|
1523
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
1524
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
|
|
1420
1525
|
trackedChangesListMode?: string | undefined;
|
|
1421
1526
|
}) => Promise<any>;
|
|
1422
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
1527
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
1423
1528
|
upsertIds?: never[] | undefined;
|
|
1424
1529
|
removedIds?: never[] | undefined;
|
|
1425
1530
|
}) => Promise<{
|
|
@@ -1428,6 +1533,17 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1428
1533
|
items?: undefined;
|
|
1429
1534
|
resolvedIds?: undefined;
|
|
1430
1535
|
unresolvedIds?: undefined;
|
|
1536
|
+
allResolved?: undefined;
|
|
1537
|
+
removedRows?: undefined;
|
|
1538
|
+
failures?: undefined;
|
|
1539
|
+
} | {
|
|
1540
|
+
ok: boolean;
|
|
1541
|
+
items: never[];
|
|
1542
|
+
resolvedIds: never[];
|
|
1543
|
+
unresolvedIds: never[];
|
|
1544
|
+
allResolved: boolean;
|
|
1545
|
+
removedRows: any;
|
|
1546
|
+
reason?: undefined;
|
|
1431
1547
|
failures?: undefined;
|
|
1432
1548
|
} | {
|
|
1433
1549
|
ok: boolean;
|
|
@@ -1435,6 +1551,8 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1435
1551
|
resolvedIds: never[];
|
|
1436
1552
|
unresolvedIds: never[];
|
|
1437
1553
|
reason?: undefined;
|
|
1554
|
+
allResolved?: undefined;
|
|
1555
|
+
removedRows?: undefined;
|
|
1438
1556
|
failures?: undefined;
|
|
1439
1557
|
} | {
|
|
1440
1558
|
ok: boolean;
|
|
@@ -1443,13 +1561,15 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1443
1561
|
unresolvedIds: (string | null)[];
|
|
1444
1562
|
failures: any[];
|
|
1445
1563
|
reason?: undefined;
|
|
1564
|
+
allResolved?: undefined;
|
|
1565
|
+
removedRows?: undefined;
|
|
1446
1566
|
}>;
|
|
1447
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
|
|
1567
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
|
|
1448
1568
|
pruneStale?: boolean | undefined;
|
|
1449
1569
|
preparedParams?: null | undefined;
|
|
1450
1570
|
}) => any;
|
|
1451
1571
|
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">>;
|
|
1572
|
+
}, "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">>;
|
|
1453
1573
|
documents: import('vue').Ref<any[], any[]>;
|
|
1454
1574
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
1455
1575
|
pages: {};
|
|
@@ -1660,7 +1780,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1660
1780
|
retainedTrackedChangeIds?: Iterable<string>;
|
|
1661
1781
|
}) => void;
|
|
1662
1782
|
clearEditorCommentPositions: () => void;
|
|
1663
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
1783
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
1664
1784
|
superdoc: Object;
|
|
1665
1785
|
params: Object;
|
|
1666
1786
|
}) => void;
|
|
@@ -1688,9 +1808,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1688
1808
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1689
1809
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1690
1810
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1691
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
|
|
1811
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
|
|
1692
1812
|
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
|
|
1693
|
-
|
|
1813
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
1814
|
+
commentsGeneration: any;
|
|
1815
|
+
trackedChangesGeneration: any;
|
|
1816
|
+
};
|
|
1817
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
|
|
1694
1818
|
preparedInputs?: null | undefined;
|
|
1695
1819
|
}) => any;
|
|
1696
1820
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
@@ -1701,10 +1825,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1701
1825
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
1702
1826
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
1703
1827
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
1704
|
-
|
|
1828
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
1829
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
|
|
1705
1830
|
trackedChangesListMode?: string | undefined;
|
|
1706
1831
|
}) => Promise<any>;
|
|
1707
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
1832
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
1708
1833
|
upsertIds?: never[] | undefined;
|
|
1709
1834
|
removedIds?: never[] | undefined;
|
|
1710
1835
|
}) => Promise<{
|
|
@@ -1713,6 +1838,17 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1713
1838
|
items?: undefined;
|
|
1714
1839
|
resolvedIds?: undefined;
|
|
1715
1840
|
unresolvedIds?: undefined;
|
|
1841
|
+
allResolved?: undefined;
|
|
1842
|
+
removedRows?: undefined;
|
|
1843
|
+
failures?: undefined;
|
|
1844
|
+
} | {
|
|
1845
|
+
ok: boolean;
|
|
1846
|
+
items: never[];
|
|
1847
|
+
resolvedIds: never[];
|
|
1848
|
+
unresolvedIds: never[];
|
|
1849
|
+
allResolved: boolean;
|
|
1850
|
+
removedRows: any;
|
|
1851
|
+
reason?: undefined;
|
|
1716
1852
|
failures?: undefined;
|
|
1717
1853
|
} | {
|
|
1718
1854
|
ok: boolean;
|
|
@@ -1720,6 +1856,8 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1720
1856
|
resolvedIds: never[];
|
|
1721
1857
|
unresolvedIds: never[];
|
|
1722
1858
|
reason?: undefined;
|
|
1859
|
+
allResolved?: undefined;
|
|
1860
|
+
removedRows?: undefined;
|
|
1723
1861
|
failures?: undefined;
|
|
1724
1862
|
} | {
|
|
1725
1863
|
ok: boolean;
|
|
@@ -1728,8 +1866,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1728
1866
|
unresolvedIds: (string | null)[];
|
|
1729
1867
|
failures: any[];
|
|
1730
1868
|
reason?: undefined;
|
|
1869
|
+
allResolved?: undefined;
|
|
1870
|
+
removedRows?: undefined;
|
|
1731
1871
|
}>;
|
|
1732
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
|
|
1872
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
|
|
1733
1873
|
pruneStale?: boolean | undefined;
|
|
1734
1874
|
preparedParams?: null | undefined;
|
|
1735
1875
|
}) => any;
|
|
@@ -1893,7 +2033,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1893
2033
|
retainedTrackedChangeIds?: Iterable<string>;
|
|
1894
2034
|
}) => void;
|
|
1895
2035
|
clearEditorCommentPositions: () => void;
|
|
1896
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
2036
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
1897
2037
|
superdoc: Object;
|
|
1898
2038
|
params: Object;
|
|
1899
2039
|
}) => void;
|
|
@@ -1921,9 +2061,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1921
2061
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1922
2062
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1923
2063
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1924
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
|
|
2064
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
|
|
1925
2065
|
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
|
|
1926
|
-
|
|
2066
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
2067
|
+
commentsGeneration: any;
|
|
2068
|
+
trackedChangesGeneration: any;
|
|
2069
|
+
};
|
|
2070
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
|
|
1927
2071
|
preparedInputs?: null | undefined;
|
|
1928
2072
|
}) => any;
|
|
1929
2073
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
@@ -1934,10 +2078,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1934
2078
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
1935
2079
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
1936
2080
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
1937
|
-
|
|
2081
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
2082
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
|
|
1938
2083
|
trackedChangesListMode?: string | undefined;
|
|
1939
2084
|
}) => Promise<any>;
|
|
1940
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
2085
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
1941
2086
|
upsertIds?: never[] | undefined;
|
|
1942
2087
|
removedIds?: never[] | undefined;
|
|
1943
2088
|
}) => Promise<{
|
|
@@ -1946,6 +2091,17 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1946
2091
|
items?: undefined;
|
|
1947
2092
|
resolvedIds?: undefined;
|
|
1948
2093
|
unresolvedIds?: undefined;
|
|
2094
|
+
allResolved?: undefined;
|
|
2095
|
+
removedRows?: undefined;
|
|
2096
|
+
failures?: undefined;
|
|
2097
|
+
} | {
|
|
2098
|
+
ok: boolean;
|
|
2099
|
+
items: never[];
|
|
2100
|
+
resolvedIds: never[];
|
|
2101
|
+
unresolvedIds: never[];
|
|
2102
|
+
allResolved: boolean;
|
|
2103
|
+
removedRows: any;
|
|
2104
|
+
reason?: undefined;
|
|
1949
2105
|
failures?: undefined;
|
|
1950
2106
|
} | {
|
|
1951
2107
|
ok: boolean;
|
|
@@ -1953,6 +2109,8 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1953
2109
|
resolvedIds: never[];
|
|
1954
2110
|
unresolvedIds: never[];
|
|
1955
2111
|
reason?: undefined;
|
|
2112
|
+
allResolved?: undefined;
|
|
2113
|
+
removedRows?: undefined;
|
|
1956
2114
|
failures?: undefined;
|
|
1957
2115
|
} | {
|
|
1958
2116
|
ok: boolean;
|
|
@@ -1961,8 +2119,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1961
2119
|
unresolvedIds: (string | null)[];
|
|
1962
2120
|
failures: any[];
|
|
1963
2121
|
reason?: undefined;
|
|
2122
|
+
allResolved?: undefined;
|
|
2123
|
+
removedRows?: undefined;
|
|
1964
2124
|
}>;
|
|
1965
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
|
|
2125
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
|
|
1966
2126
|
pruneStale?: boolean | undefined;
|
|
1967
2127
|
preparedParams?: null | undefined;
|
|
1968
2128
|
}) => any;
|
|
@@ -2126,7 +2286,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2126
2286
|
retainedTrackedChangeIds?: Iterable<string>;
|
|
2127
2287
|
}) => void;
|
|
2128
2288
|
clearEditorCommentPositions: () => void;
|
|
2129
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
2289
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
2130
2290
|
superdoc: Object;
|
|
2131
2291
|
params: Object;
|
|
2132
2292
|
}) => void;
|
|
@@ -2154,9 +2314,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2154
2314
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
2155
2315
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
2156
2316
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
2157
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
|
|
2317
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
|
|
2158
2318
|
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
|
|
2159
|
-
|
|
2319
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
2320
|
+
commentsGeneration: any;
|
|
2321
|
+
trackedChangesGeneration: any;
|
|
2322
|
+
};
|
|
2323
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
|
|
2160
2324
|
preparedInputs?: null | undefined;
|
|
2161
2325
|
}) => any;
|
|
2162
2326
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
@@ -2167,10 +2331,11 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2167
2331
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
2168
2332
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
2169
2333
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
2170
|
-
|
|
2334
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
2335
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
|
|
2171
2336
|
trackedChangesListMode?: string | undefined;
|
|
2172
2337
|
}) => Promise<any>;
|
|
2173
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
2338
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
2174
2339
|
upsertIds?: never[] | undefined;
|
|
2175
2340
|
removedIds?: never[] | undefined;
|
|
2176
2341
|
}) => Promise<{
|
|
@@ -2179,6 +2344,17 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2179
2344
|
items?: undefined;
|
|
2180
2345
|
resolvedIds?: undefined;
|
|
2181
2346
|
unresolvedIds?: undefined;
|
|
2347
|
+
allResolved?: undefined;
|
|
2348
|
+
removedRows?: undefined;
|
|
2349
|
+
failures?: undefined;
|
|
2350
|
+
} | {
|
|
2351
|
+
ok: boolean;
|
|
2352
|
+
items: never[];
|
|
2353
|
+
resolvedIds: never[];
|
|
2354
|
+
unresolvedIds: never[];
|
|
2355
|
+
allResolved: boolean;
|
|
2356
|
+
removedRows: any;
|
|
2357
|
+
reason?: undefined;
|
|
2182
2358
|
failures?: undefined;
|
|
2183
2359
|
} | {
|
|
2184
2360
|
ok: boolean;
|
|
@@ -2186,6 +2362,8 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2186
2362
|
resolvedIds: never[];
|
|
2187
2363
|
unresolvedIds: never[];
|
|
2188
2364
|
reason?: undefined;
|
|
2365
|
+
allResolved?: undefined;
|
|
2366
|
+
removedRows?: undefined;
|
|
2189
2367
|
failures?: undefined;
|
|
2190
2368
|
} | {
|
|
2191
2369
|
ok: boolean;
|
|
@@ -2194,13 +2372,15 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2194
2372
|
unresolvedIds: (string | null)[];
|
|
2195
2373
|
failures: any[];
|
|
2196
2374
|
reason?: undefined;
|
|
2375
|
+
allResolved?: undefined;
|
|
2376
|
+
removedRows?: undefined;
|
|
2197
2377
|
}>;
|
|
2198
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
|
|
2378
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
|
|
2199
2379
|
pruneStale?: boolean | undefined;
|
|
2200
2380
|
preparedParams?: null | undefined;
|
|
2201
2381
|
}) => any;
|
|
2202
2382
|
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">>;
|
|
2383
|
+
}, "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">>;
|
|
2204
2384
|
documents: import('vue').Ref<any[], any[]>;
|
|
2205
2385
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
2206
2386
|
pages: {};
|