superdoc 2.3.0 → 2.4.0-next.10
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/README.md +0 -1
- package/dist/chunks/{FindReplaceSurface-DLxnCQOB.cjs → FindReplaceSurface-9VkPw_-X.cjs} +3 -4
- package/dist/chunks/{FindReplaceSurface-BEW-1NhM.es.js → FindReplaceSurface-BuvaIrQ5.es.js} +2 -3
- package/dist/chunks/{PasswordPromptSurface-DMbfDvpQ.cjs → PasswordPromptSurface-Bu5xHm91.cjs} +2 -2
- package/dist/chunks/{PasswordPromptSurface-BA6HHqEa.es.js → PasswordPromptSurface-Bz9_sKhX.es.js} +1 -1
- package/dist/chunks/{PdfViewer-CNOtyS-I.es.js → PdfViewer-CdVGB6Fe.es.js} +2 -2
- package/dist/chunks/{PdfViewer-CoFiGAhm.cjs → PdfViewer-D4eD2dV1.cjs} +3 -3
- package/dist/chunks/blank-docx-DP8RUPW-.cjs +7 -0
- package/dist/chunks/blank-docx-XRX6Ker2.es.js +2 -0
- package/dist/chunks/{create-super-doc-ui-CXCqHc2m.cjs → create-super-doc-ui-ByvmsAAG.cjs} +672 -190
- package/dist/chunks/{create-super-doc-ui-fxF2Q8Ib.es.js → create-super-doc-ui-DBXOhHdW.es.js} +667 -191
- package/dist/chunks/{eventemitter3-B60Fsz-a.es.js → eventemitter3-Bt2s0X0a.es.js} +1 -1
- package/dist/chunks/{eventemitter3-DCfwFVNn.cjs → eventemitter3-DqY4aSMf.cjs} +1 -1
- package/dist/chunks/{jszip-DzmwAHr3.es.js → jszip-C8srOKAO.es.js} +2 -2
- package/dist/chunks/{jszip-BdUBlUeG.cjs → jszip-Cs9JBLlJ.cjs} +13 -1
- package/dist/chunks/{rolldown-runtime-_dR15c8t.cjs → rolldown-runtime-1Y-nnZJ3.cjs} +0 -28
- package/dist/chunks/{rolldown-runtime-BJVcqBbz.es.js → rolldown-runtime-D7PMmH3s.es.js} +1 -17
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/comments/comment-create-attribution.d.ts +2 -0
- package/dist/document-api/src/comments/comments.d.ts +13 -4
- package/dist/document-api/src/comments/comments.types.d.ts +39 -0
- package/dist/document-api/src/content-controls/content-controls.types.d.ts +2 -0
- package/dist/document-api/src/contract/metadata-types.d.ts +18 -0
- package/dist/document-api/src/contract/operation-definitions.d.ts +1 -1
- package/dist/document-api/src/index.d.ts +2 -2
- package/dist/document-api/src/types/track-changes.types.d.ts +1 -3
- package/dist/layout-engine/painters/dom/src/_test-utils.d.ts +3 -2
- package/dist/layout-engine/painters/dom/src/index.d.ts +24 -19
- package/dist/layout-engine/painters/dom/src/page-content.d.ts +107 -39
- package/dist/layout-engine/painters/dom/src/persistent-page-surface.d.ts +144 -0
- package/dist/layout-engine/painters/dom/src/pm-position-validation.d.ts +1 -1
- package/dist/layout-engine/painters/dom/src/renderer.d.ts +50 -106
- package/dist/layout-engine/painters/dom/src/sdt/boundaries.d.ts +1 -1
- package/dist/public/ui-react.cjs +2 -2
- 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 +138 -131
- package/dist/style.layered.css +138 -131
- package/dist/superdoc/src/core/types/index.d.ts +383 -16
- package/dist/superdoc/src/helpers/floor.d.ts +1 -1
- package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +5 -0
- package/dist/superdoc/src/helpers/v2-review-mutation-reconciler.d.ts +1 -1
- package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +0 -1
- package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +1 -1
- package/dist/superdoc/src/public/index.d.cts +14 -0
- package/dist/superdoc/src/public/index.d.ts +7 -0
- package/dist/superdoc/src/public/ui/types.d.ts +25 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +124 -22
- package/dist/superdoc/src/stores/superdoc-store.d.ts +372 -66
- package/dist/superdoc.cjs +5160 -668
- package/dist/superdoc.es.js +5163 -675
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +37 -37
- package/package.json +5 -4
- package/dist/chunks/blank-docx-CJAXnJKp.es.js +0 -2
- package/dist/chunks/blank-docx-DA-G-3VB.cjs +0 -7
- /package/dist/chunks/{_plugin-vue_export-helper-BTwbGDKw.cjs → _plugin-vue_export-helper-CZ1Nl59K.cjs} +0 -0
- /package/dist/chunks/{_plugin-vue_export-helper-CInC0bKI.es.js → _plugin-vue_export-helper-DSMAhhwD.es.js} +0 -0
- /package/dist/chunks/{constants-CY3R3_kF.es.js → constants-BfH0br5u.es.js} +0 -0
- /package/dist/chunks/{constants-sbCZ2O_A.cjs → constants-D7TNtyJd.cjs} +0 -0
|
@@ -153,9 +153,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
153
153
|
replacedFile?: boolean | undefined;
|
|
154
154
|
}) => void;
|
|
155
155
|
translateCommentsForExport: () => any[];
|
|
156
|
-
handleEditorLocationsUpdate: (allCommentPositions:
|
|
156
|
+
handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
|
|
157
|
+
retainMissingTrackedChangeGeometry?: boolean;
|
|
158
|
+
retainedTrackedChangeIds?: Iterable<string>;
|
|
159
|
+
}) => void;
|
|
157
160
|
clearEditorCommentPositions: () => void;
|
|
158
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
161
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
159
162
|
superdoc: Object;
|
|
160
163
|
params: Object;
|
|
161
164
|
}) => void;
|
|
@@ -183,8 +186,18 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
183
186
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
184
187
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
185
188
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
186
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {
|
|
187
|
-
|
|
189
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, isCurrent, signal, hydrationGeneration, }?: {
|
|
190
|
+
trackedChangesListMode?: string | undefined;
|
|
191
|
+
}) => Promise<any>;
|
|
192
|
+
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
193
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
194
|
+
commentsGeneration: any;
|
|
195
|
+
trackedChangesGeneration: any;
|
|
196
|
+
};
|
|
197
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
198
|
+
preparedInputs?: null | undefined;
|
|
199
|
+
pruneStale?: boolean | undefined;
|
|
200
|
+
}) => any;
|
|
188
201
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
189
202
|
replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
|
|
190
203
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
@@ -193,10 +206,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
193
206
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
194
207
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
195
208
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
196
|
-
|
|
209
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
210
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
|
|
197
211
|
trackedChangesListMode?: string | undefined;
|
|
212
|
+
reconciliationBatchSize?: number | undefined;
|
|
198
213
|
}) => Promise<any>;
|
|
199
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
214
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
200
215
|
upsertIds?: never[] | undefined;
|
|
201
216
|
removedIds?: never[] | undefined;
|
|
202
217
|
}) => Promise<{
|
|
@@ -205,14 +220,27 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
205
220
|
items?: undefined;
|
|
206
221
|
resolvedIds?: undefined;
|
|
207
222
|
unresolvedIds?: undefined;
|
|
223
|
+
allResolved?: undefined;
|
|
224
|
+
removedRows?: undefined;
|
|
208
225
|
failures?: undefined;
|
|
209
226
|
} | {
|
|
210
227
|
ok: boolean;
|
|
211
228
|
items: never[];
|
|
212
229
|
resolvedIds: never[];
|
|
213
230
|
unresolvedIds: never[];
|
|
231
|
+
allResolved: boolean;
|
|
232
|
+
removedRows: any;
|
|
214
233
|
reason?: undefined;
|
|
215
234
|
failures?: undefined;
|
|
235
|
+
} | {
|
|
236
|
+
ok: boolean;
|
|
237
|
+
items: never[];
|
|
238
|
+
resolvedIds: never[];
|
|
239
|
+
unresolvedIds: never[];
|
|
240
|
+
reason?: undefined;
|
|
241
|
+
allResolved?: undefined;
|
|
242
|
+
removedRows?: undefined;
|
|
243
|
+
failures?: undefined;
|
|
216
244
|
} | {
|
|
217
245
|
ok: boolean;
|
|
218
246
|
items: any[];
|
|
@@ -220,10 +248,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
220
248
|
unresolvedIds: (string | null)[];
|
|
221
249
|
failures: any[];
|
|
222
250
|
reason?: undefined;
|
|
251
|
+
allResolved?: undefined;
|
|
252
|
+
removedRows?: undefined;
|
|
223
253
|
}>;
|
|
224
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
|
|
254
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
|
|
225
255
|
pruneStale?: boolean | undefined;
|
|
256
|
+
preparedParams?: null | undefined;
|
|
257
|
+
liveIds?: null | undefined;
|
|
258
|
+
liveAnchorKeys?: null | undefined;
|
|
226
259
|
}) => any;
|
|
260
|
+
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
227
261
|
}, "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
262
|
COMMENT_EVENTS: {
|
|
229
263
|
readonly RESOLVED: "resolved";
|
|
@@ -378,9 +412,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
378
412
|
replacedFile?: boolean | undefined;
|
|
379
413
|
}) => void;
|
|
380
414
|
translateCommentsForExport: () => any[];
|
|
381
|
-
handleEditorLocationsUpdate: (allCommentPositions:
|
|
415
|
+
handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
|
|
416
|
+
retainMissingTrackedChangeGeometry?: boolean;
|
|
417
|
+
retainedTrackedChangeIds?: Iterable<string>;
|
|
418
|
+
}) => void;
|
|
382
419
|
clearEditorCommentPositions: () => void;
|
|
383
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
420
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
384
421
|
superdoc: Object;
|
|
385
422
|
params: Object;
|
|
386
423
|
}) => void;
|
|
@@ -408,8 +445,18 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
408
445
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
409
446
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
410
447
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
411
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {
|
|
412
|
-
|
|
448
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, isCurrent, signal, hydrationGeneration, }?: {
|
|
449
|
+
trackedChangesListMode?: string | undefined;
|
|
450
|
+
}) => Promise<any>;
|
|
451
|
+
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
452
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
453
|
+
commentsGeneration: any;
|
|
454
|
+
trackedChangesGeneration: any;
|
|
455
|
+
};
|
|
456
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
457
|
+
preparedInputs?: null | undefined;
|
|
458
|
+
pruneStale?: boolean | undefined;
|
|
459
|
+
}) => any;
|
|
413
460
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
414
461
|
replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
|
|
415
462
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
@@ -418,10 +465,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
418
465
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
419
466
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
420
467
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
421
|
-
|
|
468
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
469
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
|
|
422
470
|
trackedChangesListMode?: string | undefined;
|
|
471
|
+
reconciliationBatchSize?: number | undefined;
|
|
423
472
|
}) => Promise<any>;
|
|
424
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
473
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
425
474
|
upsertIds?: never[] | undefined;
|
|
426
475
|
removedIds?: never[] | undefined;
|
|
427
476
|
}) => Promise<{
|
|
@@ -430,14 +479,27 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
430
479
|
items?: undefined;
|
|
431
480
|
resolvedIds?: undefined;
|
|
432
481
|
unresolvedIds?: undefined;
|
|
482
|
+
allResolved?: undefined;
|
|
483
|
+
removedRows?: undefined;
|
|
433
484
|
failures?: undefined;
|
|
434
485
|
} | {
|
|
435
486
|
ok: boolean;
|
|
436
487
|
items: never[];
|
|
437
488
|
resolvedIds: never[];
|
|
438
489
|
unresolvedIds: never[];
|
|
490
|
+
allResolved: boolean;
|
|
491
|
+
removedRows: any;
|
|
439
492
|
reason?: undefined;
|
|
440
493
|
failures?: undefined;
|
|
494
|
+
} | {
|
|
495
|
+
ok: boolean;
|
|
496
|
+
items: never[];
|
|
497
|
+
resolvedIds: never[];
|
|
498
|
+
unresolvedIds: never[];
|
|
499
|
+
reason?: undefined;
|
|
500
|
+
allResolved?: undefined;
|
|
501
|
+
removedRows?: undefined;
|
|
502
|
+
failures?: undefined;
|
|
441
503
|
} | {
|
|
442
504
|
ok: boolean;
|
|
443
505
|
items: any[];
|
|
@@ -445,10 +507,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
445
507
|
unresolvedIds: (string | null)[];
|
|
446
508
|
failures: any[];
|
|
447
509
|
reason?: undefined;
|
|
510
|
+
allResolved?: undefined;
|
|
511
|
+
removedRows?: undefined;
|
|
448
512
|
}>;
|
|
449
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
|
|
513
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
|
|
450
514
|
pruneStale?: boolean | undefined;
|
|
515
|
+
preparedParams?: null | undefined;
|
|
516
|
+
liveIds?: null | undefined;
|
|
517
|
+
liveAnchorKeys?: null | undefined;
|
|
451
518
|
}) => any;
|
|
519
|
+
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
452
520
|
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
453
521
|
COMMENT_EVENTS: {
|
|
454
522
|
readonly RESOLVED: "resolved";
|
|
@@ -603,9 +671,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
603
671
|
replacedFile?: boolean | undefined;
|
|
604
672
|
}) => void;
|
|
605
673
|
translateCommentsForExport: () => any[];
|
|
606
|
-
handleEditorLocationsUpdate: (allCommentPositions:
|
|
674
|
+
handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
|
|
675
|
+
retainMissingTrackedChangeGeometry?: boolean;
|
|
676
|
+
retainedTrackedChangeIds?: Iterable<string>;
|
|
677
|
+
}) => void;
|
|
607
678
|
clearEditorCommentPositions: () => void;
|
|
608
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
679
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
609
680
|
superdoc: Object;
|
|
610
681
|
params: Object;
|
|
611
682
|
}) => void;
|
|
@@ -633,8 +704,18 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
633
704
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
634
705
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
635
706
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
636
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {
|
|
637
|
-
|
|
707
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, isCurrent, signal, hydrationGeneration, }?: {
|
|
708
|
+
trackedChangesListMode?: string | undefined;
|
|
709
|
+
}) => Promise<any>;
|
|
710
|
+
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
711
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
712
|
+
commentsGeneration: any;
|
|
713
|
+
trackedChangesGeneration: any;
|
|
714
|
+
};
|
|
715
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
716
|
+
preparedInputs?: null | undefined;
|
|
717
|
+
pruneStale?: boolean | undefined;
|
|
718
|
+
}) => any;
|
|
638
719
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
639
720
|
replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
|
|
640
721
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
@@ -643,10 +724,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
643
724
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
644
725
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
645
726
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
646
|
-
|
|
727
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
728
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
|
|
647
729
|
trackedChangesListMode?: string | undefined;
|
|
730
|
+
reconciliationBatchSize?: number | undefined;
|
|
648
731
|
}) => Promise<any>;
|
|
649
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
732
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
650
733
|
upsertIds?: never[] | undefined;
|
|
651
734
|
removedIds?: never[] | undefined;
|
|
652
735
|
}) => Promise<{
|
|
@@ -655,14 +738,27 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
655
738
|
items?: undefined;
|
|
656
739
|
resolvedIds?: undefined;
|
|
657
740
|
unresolvedIds?: undefined;
|
|
741
|
+
allResolved?: undefined;
|
|
742
|
+
removedRows?: undefined;
|
|
658
743
|
failures?: undefined;
|
|
659
744
|
} | {
|
|
660
745
|
ok: boolean;
|
|
661
746
|
items: never[];
|
|
662
747
|
resolvedIds: never[];
|
|
663
748
|
unresolvedIds: never[];
|
|
749
|
+
allResolved: boolean;
|
|
750
|
+
removedRows: any;
|
|
664
751
|
reason?: undefined;
|
|
665
752
|
failures?: undefined;
|
|
753
|
+
} | {
|
|
754
|
+
ok: boolean;
|
|
755
|
+
items: never[];
|
|
756
|
+
resolvedIds: never[];
|
|
757
|
+
unresolvedIds: never[];
|
|
758
|
+
reason?: undefined;
|
|
759
|
+
allResolved?: undefined;
|
|
760
|
+
removedRows?: undefined;
|
|
761
|
+
failures?: undefined;
|
|
666
762
|
} | {
|
|
667
763
|
ok: boolean;
|
|
668
764
|
items: any[];
|
|
@@ -670,11 +766,17 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
670
766
|
unresolvedIds: (string | null)[];
|
|
671
767
|
failures: any[];
|
|
672
768
|
reason?: undefined;
|
|
769
|
+
allResolved?: undefined;
|
|
770
|
+
removedRows?: undefined;
|
|
673
771
|
}>;
|
|
674
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
|
|
772
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
|
|
675
773
|
pruneStale?: boolean | undefined;
|
|
774
|
+
preparedParams?: null | undefined;
|
|
775
|
+
liveIds?: null | undefined;
|
|
776
|
+
liveAnchorKeys?: null | undefined;
|
|
676
777
|
}) => any;
|
|
677
|
-
|
|
778
|
+
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
779
|
+
}, "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">>;
|
|
678
780
|
documents: import('vue').Ref<any[], any[]>;
|
|
679
781
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
680
782
|
pages: {};
|
|
@@ -880,9 +982,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
880
982
|
replacedFile?: boolean | undefined;
|
|
881
983
|
}) => void;
|
|
882
984
|
translateCommentsForExport: () => any[];
|
|
883
|
-
handleEditorLocationsUpdate: (allCommentPositions:
|
|
985
|
+
handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
|
|
986
|
+
retainMissingTrackedChangeGeometry?: boolean;
|
|
987
|
+
retainedTrackedChangeIds?: Iterable<string>;
|
|
988
|
+
}) => void;
|
|
884
989
|
clearEditorCommentPositions: () => void;
|
|
885
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
990
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
886
991
|
superdoc: Object;
|
|
887
992
|
params: Object;
|
|
888
993
|
}) => void;
|
|
@@ -910,8 +1015,18 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
910
1015
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
911
1016
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
912
1017
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
913
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {
|
|
914
|
-
|
|
1018
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, isCurrent, signal, hydrationGeneration, }?: {
|
|
1019
|
+
trackedChangesListMode?: string | undefined;
|
|
1020
|
+
}) => Promise<any>;
|
|
1021
|
+
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
1022
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
1023
|
+
commentsGeneration: any;
|
|
1024
|
+
trackedChangesGeneration: any;
|
|
1025
|
+
};
|
|
1026
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
1027
|
+
preparedInputs?: null | undefined;
|
|
1028
|
+
pruneStale?: boolean | undefined;
|
|
1029
|
+
}) => any;
|
|
915
1030
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
916
1031
|
replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
|
|
917
1032
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
@@ -920,10 +1035,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
920
1035
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
921
1036
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
922
1037
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
923
|
-
|
|
1038
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
1039
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
|
|
924
1040
|
trackedChangesListMode?: string | undefined;
|
|
1041
|
+
reconciliationBatchSize?: number | undefined;
|
|
925
1042
|
}) => Promise<any>;
|
|
926
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
1043
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
927
1044
|
upsertIds?: never[] | undefined;
|
|
928
1045
|
removedIds?: never[] | undefined;
|
|
929
1046
|
}) => Promise<{
|
|
@@ -932,14 +1049,27 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
932
1049
|
items?: undefined;
|
|
933
1050
|
resolvedIds?: undefined;
|
|
934
1051
|
unresolvedIds?: undefined;
|
|
1052
|
+
allResolved?: undefined;
|
|
1053
|
+
removedRows?: undefined;
|
|
935
1054
|
failures?: undefined;
|
|
936
1055
|
} | {
|
|
937
1056
|
ok: boolean;
|
|
938
1057
|
items: never[];
|
|
939
1058
|
resolvedIds: never[];
|
|
940
1059
|
unresolvedIds: never[];
|
|
1060
|
+
allResolved: boolean;
|
|
1061
|
+
removedRows: any;
|
|
941
1062
|
reason?: undefined;
|
|
942
1063
|
failures?: undefined;
|
|
1064
|
+
} | {
|
|
1065
|
+
ok: boolean;
|
|
1066
|
+
items: never[];
|
|
1067
|
+
resolvedIds: never[];
|
|
1068
|
+
unresolvedIds: never[];
|
|
1069
|
+
reason?: undefined;
|
|
1070
|
+
allResolved?: undefined;
|
|
1071
|
+
removedRows?: undefined;
|
|
1072
|
+
failures?: undefined;
|
|
943
1073
|
} | {
|
|
944
1074
|
ok: boolean;
|
|
945
1075
|
items: any[];
|
|
@@ -947,10 +1077,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
947
1077
|
unresolvedIds: (string | null)[];
|
|
948
1078
|
failures: any[];
|
|
949
1079
|
reason?: undefined;
|
|
1080
|
+
allResolved?: undefined;
|
|
1081
|
+
removedRows?: undefined;
|
|
950
1082
|
}>;
|
|
951
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
|
|
1083
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
|
|
952
1084
|
pruneStale?: boolean | undefined;
|
|
1085
|
+
preparedParams?: null | undefined;
|
|
1086
|
+
liveIds?: null | undefined;
|
|
1087
|
+
liveAnchorKeys?: null | undefined;
|
|
953
1088
|
}) => any;
|
|
1089
|
+
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
954
1090
|
}, "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
1091
|
COMMENT_EVENTS: {
|
|
956
1092
|
readonly RESOLVED: "resolved";
|
|
@@ -1105,9 +1241,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1105
1241
|
replacedFile?: boolean | undefined;
|
|
1106
1242
|
}) => void;
|
|
1107
1243
|
translateCommentsForExport: () => any[];
|
|
1108
|
-
handleEditorLocationsUpdate: (allCommentPositions:
|
|
1244
|
+
handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
|
|
1245
|
+
retainMissingTrackedChangeGeometry?: boolean;
|
|
1246
|
+
retainedTrackedChangeIds?: Iterable<string>;
|
|
1247
|
+
}) => void;
|
|
1109
1248
|
clearEditorCommentPositions: () => void;
|
|
1110
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
1249
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
1111
1250
|
superdoc: Object;
|
|
1112
1251
|
params: Object;
|
|
1113
1252
|
}) => void;
|
|
@@ -1135,8 +1274,18 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1135
1274
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1136
1275
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1137
1276
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1138
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {
|
|
1139
|
-
|
|
1277
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, isCurrent, signal, hydrationGeneration, }?: {
|
|
1278
|
+
trackedChangesListMode?: string | undefined;
|
|
1279
|
+
}) => Promise<any>;
|
|
1280
|
+
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
1281
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
1282
|
+
commentsGeneration: any;
|
|
1283
|
+
trackedChangesGeneration: any;
|
|
1284
|
+
};
|
|
1285
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
1286
|
+
preparedInputs?: null | undefined;
|
|
1287
|
+
pruneStale?: boolean | undefined;
|
|
1288
|
+
}) => any;
|
|
1140
1289
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
1141
1290
|
replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
|
|
1142
1291
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
@@ -1145,10 +1294,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1145
1294
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
1146
1295
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
1147
1296
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
1148
|
-
|
|
1297
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
1298
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
|
|
1149
1299
|
trackedChangesListMode?: string | undefined;
|
|
1300
|
+
reconciliationBatchSize?: number | undefined;
|
|
1150
1301
|
}) => Promise<any>;
|
|
1151
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
1302
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
1152
1303
|
upsertIds?: never[] | undefined;
|
|
1153
1304
|
removedIds?: never[] | undefined;
|
|
1154
1305
|
}) => Promise<{
|
|
@@ -1157,14 +1308,27 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1157
1308
|
items?: undefined;
|
|
1158
1309
|
resolvedIds?: undefined;
|
|
1159
1310
|
unresolvedIds?: undefined;
|
|
1311
|
+
allResolved?: undefined;
|
|
1312
|
+
removedRows?: undefined;
|
|
1160
1313
|
failures?: undefined;
|
|
1161
1314
|
} | {
|
|
1162
1315
|
ok: boolean;
|
|
1163
1316
|
items: never[];
|
|
1164
1317
|
resolvedIds: never[];
|
|
1165
1318
|
unresolvedIds: never[];
|
|
1319
|
+
allResolved: boolean;
|
|
1320
|
+
removedRows: any;
|
|
1166
1321
|
reason?: undefined;
|
|
1167
1322
|
failures?: undefined;
|
|
1323
|
+
} | {
|
|
1324
|
+
ok: boolean;
|
|
1325
|
+
items: never[];
|
|
1326
|
+
resolvedIds: never[];
|
|
1327
|
+
unresolvedIds: never[];
|
|
1328
|
+
reason?: undefined;
|
|
1329
|
+
allResolved?: undefined;
|
|
1330
|
+
removedRows?: undefined;
|
|
1331
|
+
failures?: undefined;
|
|
1168
1332
|
} | {
|
|
1169
1333
|
ok: boolean;
|
|
1170
1334
|
items: any[];
|
|
@@ -1172,10 +1336,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1172
1336
|
unresolvedIds: (string | null)[];
|
|
1173
1337
|
failures: any[];
|
|
1174
1338
|
reason?: undefined;
|
|
1339
|
+
allResolved?: undefined;
|
|
1340
|
+
removedRows?: undefined;
|
|
1175
1341
|
}>;
|
|
1176
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
|
|
1342
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
|
|
1177
1343
|
pruneStale?: boolean | undefined;
|
|
1344
|
+
preparedParams?: null | undefined;
|
|
1345
|
+
liveIds?: null | undefined;
|
|
1346
|
+
liveAnchorKeys?: null | undefined;
|
|
1178
1347
|
}) => any;
|
|
1348
|
+
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1179
1349
|
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
1180
1350
|
COMMENT_EVENTS: {
|
|
1181
1351
|
readonly RESOLVED: "resolved";
|
|
@@ -1330,9 +1500,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1330
1500
|
replacedFile?: boolean | undefined;
|
|
1331
1501
|
}) => void;
|
|
1332
1502
|
translateCommentsForExport: () => any[];
|
|
1333
|
-
handleEditorLocationsUpdate: (allCommentPositions:
|
|
1503
|
+
handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
|
|
1504
|
+
retainMissingTrackedChangeGeometry?: boolean;
|
|
1505
|
+
retainedTrackedChangeIds?: Iterable<string>;
|
|
1506
|
+
}) => void;
|
|
1334
1507
|
clearEditorCommentPositions: () => void;
|
|
1335
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
1508
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
1336
1509
|
superdoc: Object;
|
|
1337
1510
|
params: Object;
|
|
1338
1511
|
}) => void;
|
|
@@ -1360,8 +1533,18 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1360
1533
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1361
1534
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1362
1535
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1363
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {
|
|
1364
|
-
|
|
1536
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, isCurrent, signal, hydrationGeneration, }?: {
|
|
1537
|
+
trackedChangesListMode?: string | undefined;
|
|
1538
|
+
}) => Promise<any>;
|
|
1539
|
+
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
1540
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
1541
|
+
commentsGeneration: any;
|
|
1542
|
+
trackedChangesGeneration: any;
|
|
1543
|
+
};
|
|
1544
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
1545
|
+
preparedInputs?: null | undefined;
|
|
1546
|
+
pruneStale?: boolean | undefined;
|
|
1547
|
+
}) => any;
|
|
1365
1548
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
1366
1549
|
replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
|
|
1367
1550
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
@@ -1370,10 +1553,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1370
1553
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
1371
1554
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
1372
1555
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
1373
|
-
|
|
1556
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
1557
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
|
|
1374
1558
|
trackedChangesListMode?: string | undefined;
|
|
1559
|
+
reconciliationBatchSize?: number | undefined;
|
|
1375
1560
|
}) => Promise<any>;
|
|
1376
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
1561
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
1377
1562
|
upsertIds?: never[] | undefined;
|
|
1378
1563
|
removedIds?: never[] | undefined;
|
|
1379
1564
|
}) => Promise<{
|
|
@@ -1382,14 +1567,27 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1382
1567
|
items?: undefined;
|
|
1383
1568
|
resolvedIds?: undefined;
|
|
1384
1569
|
unresolvedIds?: undefined;
|
|
1570
|
+
allResolved?: undefined;
|
|
1571
|
+
removedRows?: undefined;
|
|
1385
1572
|
failures?: undefined;
|
|
1386
1573
|
} | {
|
|
1387
1574
|
ok: boolean;
|
|
1388
1575
|
items: never[];
|
|
1389
1576
|
resolvedIds: never[];
|
|
1390
1577
|
unresolvedIds: never[];
|
|
1578
|
+
allResolved: boolean;
|
|
1579
|
+
removedRows: any;
|
|
1391
1580
|
reason?: undefined;
|
|
1392
1581
|
failures?: undefined;
|
|
1582
|
+
} | {
|
|
1583
|
+
ok: boolean;
|
|
1584
|
+
items: never[];
|
|
1585
|
+
resolvedIds: never[];
|
|
1586
|
+
unresolvedIds: never[];
|
|
1587
|
+
reason?: undefined;
|
|
1588
|
+
allResolved?: undefined;
|
|
1589
|
+
removedRows?: undefined;
|
|
1590
|
+
failures?: undefined;
|
|
1393
1591
|
} | {
|
|
1394
1592
|
ok: boolean;
|
|
1395
1593
|
items: any[];
|
|
@@ -1397,11 +1595,17 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1397
1595
|
unresolvedIds: (string | null)[];
|
|
1398
1596
|
failures: any[];
|
|
1399
1597
|
reason?: undefined;
|
|
1598
|
+
allResolved?: undefined;
|
|
1599
|
+
removedRows?: undefined;
|
|
1400
1600
|
}>;
|
|
1401
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
|
|
1601
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
|
|
1402
1602
|
pruneStale?: boolean | undefined;
|
|
1603
|
+
preparedParams?: null | undefined;
|
|
1604
|
+
liveIds?: null | undefined;
|
|
1605
|
+
liveAnchorKeys?: null | undefined;
|
|
1403
1606
|
}) => any;
|
|
1404
|
-
|
|
1607
|
+
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1608
|
+
}, "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">>;
|
|
1405
1609
|
documents: import('vue').Ref<any[], any[]>;
|
|
1406
1610
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
1407
1611
|
pages: {};
|
|
@@ -1607,9 +1811,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1607
1811
|
replacedFile?: boolean | undefined;
|
|
1608
1812
|
}) => void;
|
|
1609
1813
|
translateCommentsForExport: () => any[];
|
|
1610
|
-
handleEditorLocationsUpdate: (allCommentPositions:
|
|
1814
|
+
handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
|
|
1815
|
+
retainMissingTrackedChangeGeometry?: boolean;
|
|
1816
|
+
retainedTrackedChangeIds?: Iterable<string>;
|
|
1817
|
+
}) => void;
|
|
1611
1818
|
clearEditorCommentPositions: () => void;
|
|
1612
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
1819
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
1613
1820
|
superdoc: Object;
|
|
1614
1821
|
params: Object;
|
|
1615
1822
|
}) => void;
|
|
@@ -1637,8 +1844,18 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1637
1844
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1638
1845
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1639
1846
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1640
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {
|
|
1641
|
-
|
|
1847
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, isCurrent, signal, hydrationGeneration, }?: {
|
|
1848
|
+
trackedChangesListMode?: string | undefined;
|
|
1849
|
+
}) => Promise<any>;
|
|
1850
|
+
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
1851
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
1852
|
+
commentsGeneration: any;
|
|
1853
|
+
trackedChangesGeneration: any;
|
|
1854
|
+
};
|
|
1855
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
1856
|
+
preparedInputs?: null | undefined;
|
|
1857
|
+
pruneStale?: boolean | undefined;
|
|
1858
|
+
}) => any;
|
|
1642
1859
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
1643
1860
|
replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
|
|
1644
1861
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
@@ -1647,10 +1864,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1647
1864
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
1648
1865
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
1649
1866
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
1650
|
-
|
|
1867
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
1868
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
|
|
1651
1869
|
trackedChangesListMode?: string | undefined;
|
|
1870
|
+
reconciliationBatchSize?: number | undefined;
|
|
1652
1871
|
}) => Promise<any>;
|
|
1653
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
1872
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
1654
1873
|
upsertIds?: never[] | undefined;
|
|
1655
1874
|
removedIds?: never[] | undefined;
|
|
1656
1875
|
}) => Promise<{
|
|
@@ -1659,6 +1878,17 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1659
1878
|
items?: undefined;
|
|
1660
1879
|
resolvedIds?: undefined;
|
|
1661
1880
|
unresolvedIds?: undefined;
|
|
1881
|
+
allResolved?: undefined;
|
|
1882
|
+
removedRows?: undefined;
|
|
1883
|
+
failures?: undefined;
|
|
1884
|
+
} | {
|
|
1885
|
+
ok: boolean;
|
|
1886
|
+
items: never[];
|
|
1887
|
+
resolvedIds: never[];
|
|
1888
|
+
unresolvedIds: never[];
|
|
1889
|
+
allResolved: boolean;
|
|
1890
|
+
removedRows: any;
|
|
1891
|
+
reason?: undefined;
|
|
1662
1892
|
failures?: undefined;
|
|
1663
1893
|
} | {
|
|
1664
1894
|
ok: boolean;
|
|
@@ -1666,6 +1896,8 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1666
1896
|
resolvedIds: never[];
|
|
1667
1897
|
unresolvedIds: never[];
|
|
1668
1898
|
reason?: undefined;
|
|
1899
|
+
allResolved?: undefined;
|
|
1900
|
+
removedRows?: undefined;
|
|
1669
1901
|
failures?: undefined;
|
|
1670
1902
|
} | {
|
|
1671
1903
|
ok: boolean;
|
|
@@ -1674,10 +1906,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1674
1906
|
unresolvedIds: (string | null)[];
|
|
1675
1907
|
failures: any[];
|
|
1676
1908
|
reason?: undefined;
|
|
1909
|
+
allResolved?: undefined;
|
|
1910
|
+
removedRows?: undefined;
|
|
1677
1911
|
}>;
|
|
1678
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
|
|
1912
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
|
|
1679
1913
|
pruneStale?: boolean | undefined;
|
|
1914
|
+
preparedParams?: null | undefined;
|
|
1915
|
+
liveIds?: null | undefined;
|
|
1916
|
+
liveAnchorKeys?: null | undefined;
|
|
1680
1917
|
}) => any;
|
|
1918
|
+
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1681
1919
|
}, "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
1920
|
COMMENT_EVENTS: {
|
|
1683
1921
|
readonly RESOLVED: "resolved";
|
|
@@ -1832,9 +2070,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1832
2070
|
replacedFile?: boolean | undefined;
|
|
1833
2071
|
}) => void;
|
|
1834
2072
|
translateCommentsForExport: () => any[];
|
|
1835
|
-
handleEditorLocationsUpdate: (allCommentPositions:
|
|
2073
|
+
handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
|
|
2074
|
+
retainMissingTrackedChangeGeometry?: boolean;
|
|
2075
|
+
retainedTrackedChangeIds?: Iterable<string>;
|
|
2076
|
+
}) => void;
|
|
1836
2077
|
clearEditorCommentPositions: () => void;
|
|
1837
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
2078
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
1838
2079
|
superdoc: Object;
|
|
1839
2080
|
params: Object;
|
|
1840
2081
|
}) => void;
|
|
@@ -1862,8 +2103,18 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1862
2103
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1863
2104
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1864
2105
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1865
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {
|
|
1866
|
-
|
|
2106
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, isCurrent, signal, hydrationGeneration, }?: {
|
|
2107
|
+
trackedChangesListMode?: string | undefined;
|
|
2108
|
+
}) => Promise<any>;
|
|
2109
|
+
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
2110
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
2111
|
+
commentsGeneration: any;
|
|
2112
|
+
trackedChangesGeneration: any;
|
|
2113
|
+
};
|
|
2114
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
2115
|
+
preparedInputs?: null | undefined;
|
|
2116
|
+
pruneStale?: boolean | undefined;
|
|
2117
|
+
}) => any;
|
|
1867
2118
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
1868
2119
|
replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
|
|
1869
2120
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
@@ -1872,10 +2123,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1872
2123
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
1873
2124
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
1874
2125
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
1875
|
-
|
|
2126
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
2127
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
|
|
1876
2128
|
trackedChangesListMode?: string | undefined;
|
|
2129
|
+
reconciliationBatchSize?: number | undefined;
|
|
1877
2130
|
}) => Promise<any>;
|
|
1878
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
2131
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
1879
2132
|
upsertIds?: never[] | undefined;
|
|
1880
2133
|
removedIds?: never[] | undefined;
|
|
1881
2134
|
}) => Promise<{
|
|
@@ -1884,14 +2137,27 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1884
2137
|
items?: undefined;
|
|
1885
2138
|
resolvedIds?: undefined;
|
|
1886
2139
|
unresolvedIds?: undefined;
|
|
2140
|
+
allResolved?: undefined;
|
|
2141
|
+
removedRows?: undefined;
|
|
1887
2142
|
failures?: undefined;
|
|
1888
2143
|
} | {
|
|
1889
2144
|
ok: boolean;
|
|
1890
2145
|
items: never[];
|
|
1891
2146
|
resolvedIds: never[];
|
|
1892
2147
|
unresolvedIds: never[];
|
|
2148
|
+
allResolved: boolean;
|
|
2149
|
+
removedRows: any;
|
|
1893
2150
|
reason?: undefined;
|
|
1894
2151
|
failures?: undefined;
|
|
2152
|
+
} | {
|
|
2153
|
+
ok: boolean;
|
|
2154
|
+
items: never[];
|
|
2155
|
+
resolvedIds: never[];
|
|
2156
|
+
unresolvedIds: never[];
|
|
2157
|
+
reason?: undefined;
|
|
2158
|
+
allResolved?: undefined;
|
|
2159
|
+
removedRows?: undefined;
|
|
2160
|
+
failures?: undefined;
|
|
1895
2161
|
} | {
|
|
1896
2162
|
ok: boolean;
|
|
1897
2163
|
items: any[];
|
|
@@ -1899,10 +2165,16 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1899
2165
|
unresolvedIds: (string | null)[];
|
|
1900
2166
|
failures: any[];
|
|
1901
2167
|
reason?: undefined;
|
|
2168
|
+
allResolved?: undefined;
|
|
2169
|
+
removedRows?: undefined;
|
|
1902
2170
|
}>;
|
|
1903
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
|
|
2171
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
|
|
1904
2172
|
pruneStale?: boolean | undefined;
|
|
2173
|
+
preparedParams?: null | undefined;
|
|
2174
|
+
liveIds?: null | undefined;
|
|
2175
|
+
liveAnchorKeys?: null | undefined;
|
|
1905
2176
|
}) => any;
|
|
2177
|
+
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1906
2178
|
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
1907
2179
|
COMMENT_EVENTS: {
|
|
1908
2180
|
readonly RESOLVED: "resolved";
|
|
@@ -2057,9 +2329,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2057
2329
|
replacedFile?: boolean | undefined;
|
|
2058
2330
|
}) => void;
|
|
2059
2331
|
translateCommentsForExport: () => any[];
|
|
2060
|
-
handleEditorLocationsUpdate: (allCommentPositions:
|
|
2332
|
+
handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
|
|
2333
|
+
retainMissingTrackedChangeGeometry?: boolean;
|
|
2334
|
+
retainedTrackedChangeIds?: Iterable<string>;
|
|
2335
|
+
}) => void;
|
|
2061
2336
|
clearEditorCommentPositions: () => void;
|
|
2062
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
2337
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
2063
2338
|
superdoc: Object;
|
|
2064
2339
|
params: Object;
|
|
2065
2340
|
}) => void;
|
|
@@ -2087,8 +2362,18 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2087
2362
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
2088
2363
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
2089
2364
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
2090
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {
|
|
2091
|
-
|
|
2365
|
+
hydrateCommentsFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, isCurrent, signal, hydrationGeneration, }?: {
|
|
2366
|
+
trackedChangesListMode?: string | undefined;
|
|
2367
|
+
}) => Promise<any>;
|
|
2368
|
+
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
2369
|
+
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
2370
|
+
commentsGeneration: any;
|
|
2371
|
+
trackedChangesGeneration: any;
|
|
2372
|
+
};
|
|
2373
|
+
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
2374
|
+
preparedInputs?: null | undefined;
|
|
2375
|
+
pruneStale?: boolean | undefined;
|
|
2376
|
+
}) => any;
|
|
2092
2377
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
2093
2378
|
replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
|
|
2094
2379
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
@@ -2097,10 +2382,12 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2097
2382
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
2098
2383
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
2099
2384
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
2100
|
-
|
|
2385
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
2386
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
|
|
2101
2387
|
trackedChangesListMode?: string | undefined;
|
|
2388
|
+
reconciliationBatchSize?: number | undefined;
|
|
2102
2389
|
}) => Promise<any>;
|
|
2103
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
2390
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
2104
2391
|
upsertIds?: never[] | undefined;
|
|
2105
2392
|
removedIds?: never[] | undefined;
|
|
2106
2393
|
}) => Promise<{
|
|
@@ -2109,6 +2396,17 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2109
2396
|
items?: undefined;
|
|
2110
2397
|
resolvedIds?: undefined;
|
|
2111
2398
|
unresolvedIds?: undefined;
|
|
2399
|
+
allResolved?: undefined;
|
|
2400
|
+
removedRows?: undefined;
|
|
2401
|
+
failures?: undefined;
|
|
2402
|
+
} | {
|
|
2403
|
+
ok: boolean;
|
|
2404
|
+
items: never[];
|
|
2405
|
+
resolvedIds: never[];
|
|
2406
|
+
unresolvedIds: never[];
|
|
2407
|
+
allResolved: boolean;
|
|
2408
|
+
removedRows: any;
|
|
2409
|
+
reason?: undefined;
|
|
2112
2410
|
failures?: undefined;
|
|
2113
2411
|
} | {
|
|
2114
2412
|
ok: boolean;
|
|
@@ -2116,6 +2414,8 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2116
2414
|
resolvedIds: never[];
|
|
2117
2415
|
unresolvedIds: never[];
|
|
2118
2416
|
reason?: undefined;
|
|
2417
|
+
allResolved?: undefined;
|
|
2418
|
+
removedRows?: undefined;
|
|
2119
2419
|
failures?: undefined;
|
|
2120
2420
|
} | {
|
|
2121
2421
|
ok: boolean;
|
|
@@ -2124,11 +2424,17 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2124
2424
|
unresolvedIds: (string | null)[];
|
|
2125
2425
|
failures: any[];
|
|
2126
2426
|
reason?: undefined;
|
|
2427
|
+
allResolved?: undefined;
|
|
2428
|
+
removedRows?: undefined;
|
|
2127
2429
|
}>;
|
|
2128
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
|
|
2430
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
|
|
2129
2431
|
pruneStale?: boolean | undefined;
|
|
2432
|
+
preparedParams?: null | undefined;
|
|
2433
|
+
liveIds?: null | undefined;
|
|
2434
|
+
liveAnchorKeys?: null | undefined;
|
|
2130
2435
|
}) => any;
|
|
2131
|
-
|
|
2436
|
+
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
2437
|
+
}, "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">>;
|
|
2132
2438
|
documents: import('vue').Ref<any[], any[]>;
|
|
2133
2439
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
2134
2440
|
pages: {};
|