superdoc 2.4.0-next.21 → 2.4.0-next.22
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-CFsY0uxw.es.js → create-super-doc-ui-CmOSA_lN.es.js} +252 -657
- package/dist/chunks/{create-super-doc-ui-jSJQis_0.cjs → create-super-doc-ui-CqGmoMMA.cjs} +251 -662
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/citations/citations.types.d.ts +9 -0
- package/dist/document-api/src/types/receipt.d.ts +9 -5
- package/dist/layout-engine/contracts/src/index.d.ts +73 -1
- package/dist/layout-engine/contracts/src/inline-box.d.ts +19 -0
- package/dist/layout-engine/contracts/src/paragraph-visible-text.d.ts +19 -0
- package/dist/layout-engine/layout-bridge/src/inline-box-key.d.ts +3 -0
- package/dist/layout-engine/layout-bridge/src/run-visual-marks.d.ts +2 -0
- package/dist/layout-engine/layout-bridge/src/text-measurement.d.ts +0 -12
- package/dist/layout-engine/painters/dom/src/runs/inline-box.d.ts +8 -0
- 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 +93 -92
- package/dist/style.layered.css +93 -92
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +2 -0
- package/dist/superdoc/src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue.d.ts +16 -0
- package/dist/superdoc/src/components/CommentsLayer/commentsList/commentsList.vue.d.ts +3 -1
- package/dist/superdoc/src/components/CommentsLayer/commentsList/super-comments-list.d.ts +12 -0
- package/dist/superdoc/src/core/SuperDoc.d.ts +6 -7
- package/dist/superdoc/src/core/extensions/index.d.ts +1 -1
- package/dist/superdoc/src/core/extensions/types.d.ts +63 -5
- package/dist/superdoc/src/core/types/index.d.ts +19 -0
- package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +3 -3
- package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +3 -5
- package/dist/superdoc/src/public/index.d.cts +6 -0
- package/dist/superdoc/src/public/index.d.ts +3 -0
- package/dist/superdoc/src/public/ui/types.d.ts +5 -5
- package/dist/superdoc/src/stores/comments-store.d.ts +81 -78
- package/dist/superdoc/src/stores/superdoc-store.d.ts +243 -234
- package/dist/superdoc.cjs +660 -857
- package/dist/superdoc.es.js +648 -846
- 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
- package/dist/superdoc/src/helpers/v2-remote-review-hydration.d.ts +0 -12
- package/dist/superdoc/src/helpers/v2-review-mutation-reconciler.d.ts +0 -19
- package/dist/superdoc/src/helpers/v2-typing-review-hydration.d.ts +0 -16
|
@@ -25,7 +25,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
25
25
|
pendingComment: import('vue').Ref<null, null>;
|
|
26
26
|
currentCommentText: import('vue').Ref<string, string>;
|
|
27
27
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
28
|
+
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
28
29
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
30
|
+
isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
|
|
31
|
+
isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
|
|
29
32
|
generalCommentIds: import('vue').Ref<never[], never[]>;
|
|
30
33
|
editorCommentIds: import('vue').Ref<never[], never[]>;
|
|
31
34
|
commentsParentElement: import('vue').Ref<null, null>;
|
|
@@ -51,6 +54,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
51
54
|
parentComments: any[];
|
|
52
55
|
resolvedComments: any[];
|
|
53
56
|
}>;
|
|
57
|
+
getGroupedReviewDirectory: import('vue').ComputedRef<{
|
|
58
|
+
parentComments: any[];
|
|
59
|
+
resolvedComments: any[];
|
|
60
|
+
}>;
|
|
54
61
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
55
62
|
getCommentsByPosition: import('vue').ComputedRef<{
|
|
56
63
|
parentComments: any[];
|
|
@@ -147,6 +154,19 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
147
154
|
removePendingComment: (superdoc: any) => void;
|
|
148
155
|
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
149
156
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
157
|
+
setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
|
|
158
|
+
commentItems?: never[] | undefined;
|
|
159
|
+
trackedChangeItems?: never[] | undefined;
|
|
160
|
+
}) => {
|
|
161
|
+
ok: boolean;
|
|
162
|
+
reason: string;
|
|
163
|
+
count?: undefined;
|
|
164
|
+
} | {
|
|
165
|
+
ok: boolean;
|
|
166
|
+
count: number;
|
|
167
|
+
reason?: undefined;
|
|
168
|
+
};
|
|
169
|
+
clearReviewDirectory: () => void;
|
|
150
170
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
151
171
|
comments: any[];
|
|
152
172
|
documentId: string;
|
|
@@ -186,14 +206,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
186
206
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
187
207
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
188
208
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
189
|
-
|
|
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
|
-
};
|
|
209
|
+
applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
197
210
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
198
211
|
preparedInputs?: null | undefined;
|
|
199
212
|
pruneStale?: boolean | undefined;
|
|
@@ -207,13 +220,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
207
220
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
208
221
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
209
222
|
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
210
|
-
|
|
211
|
-
trackedChangesListMode?: string | undefined;
|
|
212
|
-
reconciliationBatchSize?: number | undefined;
|
|
213
|
-
}) => Promise<any>;
|
|
214
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
223
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
|
|
215
224
|
upsertIds?: never[] | undefined;
|
|
216
225
|
removedIds?: never[] | undefined;
|
|
226
|
+
remappedPairs?: never[] | undefined;
|
|
217
227
|
}) => Promise<{
|
|
218
228
|
ok: boolean;
|
|
219
229
|
reason: string;
|
|
@@ -222,7 +232,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
222
232
|
unresolvedIds?: undefined;
|
|
223
233
|
allResolved?: undefined;
|
|
224
234
|
removedRows?: undefined;
|
|
225
|
-
|
|
235
|
+
removedIds?: undefined;
|
|
226
236
|
} | {
|
|
227
237
|
ok: boolean;
|
|
228
238
|
items: never[];
|
|
@@ -231,22 +241,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
231
241
|
allResolved: boolean;
|
|
232
242
|
removedRows: any;
|
|
233
243
|
reason?: undefined;
|
|
234
|
-
|
|
244
|
+
removedIds?: undefined;
|
|
235
245
|
} | {
|
|
236
246
|
ok: boolean;
|
|
237
247
|
items: never[];
|
|
238
248
|
resolvedIds: never[];
|
|
239
|
-
unresolvedIds: never[];
|
|
240
|
-
reason?: undefined;
|
|
241
|
-
allResolved?: undefined;
|
|
242
|
-
removedRows?: undefined;
|
|
243
|
-
failures?: undefined;
|
|
244
|
-
} | {
|
|
245
|
-
ok: boolean;
|
|
246
|
-
items: any[];
|
|
247
|
-
resolvedIds: (string | null)[];
|
|
248
249
|
unresolvedIds: (string | null)[];
|
|
249
|
-
|
|
250
|
+
removedIds: (string | null)[];
|
|
250
251
|
reason?: undefined;
|
|
251
252
|
allResolved?: undefined;
|
|
252
253
|
removedRows?: undefined;
|
|
@@ -258,7 +259,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
258
259
|
liveAnchorKeys?: null | undefined;
|
|
259
260
|
}) => any;
|
|
260
261
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
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<{
|
|
262
|
+
}, "suppressInternalExternal" | "activeComment" | "activeFloatingCommentInstanceId" | "floatingCommentsOffset" | "pendingComment" | "currentCommentText" | "isDebugging" | "editingCommentId" | "editorCommentPositions" | "isCommentHighlighted" | "v2CommentsAdapter" | "COMMENT_EVENTS" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "hasInitializedLocations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2TrackedChangesAdapter">, Pick<{
|
|
262
263
|
COMMENT_EVENTS: {
|
|
263
264
|
readonly RESOLVED: "resolved";
|
|
264
265
|
readonly NEW: "new";
|
|
@@ -284,7 +285,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
284
285
|
pendingComment: import('vue').Ref<null, null>;
|
|
285
286
|
currentCommentText: import('vue').Ref<string, string>;
|
|
286
287
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
288
|
+
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
287
289
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
290
|
+
isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
|
|
291
|
+
isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
|
|
288
292
|
generalCommentIds: import('vue').Ref<never[], never[]>;
|
|
289
293
|
editorCommentIds: import('vue').Ref<never[], never[]>;
|
|
290
294
|
commentsParentElement: import('vue').Ref<null, null>;
|
|
@@ -310,6 +314,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
310
314
|
parentComments: any[];
|
|
311
315
|
resolvedComments: any[];
|
|
312
316
|
}>;
|
|
317
|
+
getGroupedReviewDirectory: import('vue').ComputedRef<{
|
|
318
|
+
parentComments: any[];
|
|
319
|
+
resolvedComments: any[];
|
|
320
|
+
}>;
|
|
313
321
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
314
322
|
getCommentsByPosition: import('vue').ComputedRef<{
|
|
315
323
|
parentComments: any[];
|
|
@@ -406,6 +414,19 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
406
414
|
removePendingComment: (superdoc: any) => void;
|
|
407
415
|
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
408
416
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
417
|
+
setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
|
|
418
|
+
commentItems?: never[] | undefined;
|
|
419
|
+
trackedChangeItems?: never[] | undefined;
|
|
420
|
+
}) => {
|
|
421
|
+
ok: boolean;
|
|
422
|
+
reason: string;
|
|
423
|
+
count?: undefined;
|
|
424
|
+
} | {
|
|
425
|
+
ok: boolean;
|
|
426
|
+
count: number;
|
|
427
|
+
reason?: undefined;
|
|
428
|
+
};
|
|
429
|
+
clearReviewDirectory: () => void;
|
|
409
430
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
410
431
|
comments: any[];
|
|
411
432
|
documentId: string;
|
|
@@ -445,14 +466,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
445
466
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
446
467
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
447
468
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
448
|
-
|
|
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
|
-
};
|
|
469
|
+
applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
456
470
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
457
471
|
preparedInputs?: null | undefined;
|
|
458
472
|
pruneStale?: boolean | undefined;
|
|
@@ -466,13 +480,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
466
480
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
467
481
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
468
482
|
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
469
|
-
|
|
470
|
-
trackedChangesListMode?: string | undefined;
|
|
471
|
-
reconciliationBatchSize?: number | undefined;
|
|
472
|
-
}) => Promise<any>;
|
|
473
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
483
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
|
|
474
484
|
upsertIds?: never[] | undefined;
|
|
475
485
|
removedIds?: never[] | undefined;
|
|
486
|
+
remappedPairs?: never[] | undefined;
|
|
476
487
|
}) => Promise<{
|
|
477
488
|
ok: boolean;
|
|
478
489
|
reason: string;
|
|
@@ -481,7 +492,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
481
492
|
unresolvedIds?: undefined;
|
|
482
493
|
allResolved?: undefined;
|
|
483
494
|
removedRows?: undefined;
|
|
484
|
-
|
|
495
|
+
removedIds?: undefined;
|
|
485
496
|
} | {
|
|
486
497
|
ok: boolean;
|
|
487
498
|
items: never[];
|
|
@@ -490,22 +501,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
490
501
|
allResolved: boolean;
|
|
491
502
|
removedRows: any;
|
|
492
503
|
reason?: undefined;
|
|
493
|
-
|
|
504
|
+
removedIds?: undefined;
|
|
494
505
|
} | {
|
|
495
506
|
ok: boolean;
|
|
496
507
|
items: never[];
|
|
497
508
|
resolvedIds: never[];
|
|
498
|
-
unresolvedIds: never[];
|
|
499
|
-
reason?: undefined;
|
|
500
|
-
allResolved?: undefined;
|
|
501
|
-
removedRows?: undefined;
|
|
502
|
-
failures?: undefined;
|
|
503
|
-
} | {
|
|
504
|
-
ok: boolean;
|
|
505
|
-
items: any[];
|
|
506
|
-
resolvedIds: (string | null)[];
|
|
507
509
|
unresolvedIds: (string | null)[];
|
|
508
|
-
|
|
510
|
+
removedIds: (string | null)[];
|
|
509
511
|
reason?: undefined;
|
|
510
512
|
allResolved?: undefined;
|
|
511
513
|
removedRows?: undefined;
|
|
@@ -517,7 +519,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
517
519
|
liveAnchorKeys?: null | undefined;
|
|
518
520
|
}) => any;
|
|
519
521
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
520
|
-
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
522
|
+
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
521
523
|
COMMENT_EVENTS: {
|
|
522
524
|
readonly RESOLVED: "resolved";
|
|
523
525
|
readonly NEW: "new";
|
|
@@ -543,7 +545,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
543
545
|
pendingComment: import('vue').Ref<null, null>;
|
|
544
546
|
currentCommentText: import('vue').Ref<string, string>;
|
|
545
547
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
548
|
+
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
546
549
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
550
|
+
isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
|
|
551
|
+
isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
|
|
547
552
|
generalCommentIds: import('vue').Ref<never[], never[]>;
|
|
548
553
|
editorCommentIds: import('vue').Ref<never[], never[]>;
|
|
549
554
|
commentsParentElement: import('vue').Ref<null, null>;
|
|
@@ -569,6 +574,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
569
574
|
parentComments: any[];
|
|
570
575
|
resolvedComments: any[];
|
|
571
576
|
}>;
|
|
577
|
+
getGroupedReviewDirectory: import('vue').ComputedRef<{
|
|
578
|
+
parentComments: any[];
|
|
579
|
+
resolvedComments: any[];
|
|
580
|
+
}>;
|
|
572
581
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
573
582
|
getCommentsByPosition: import('vue').ComputedRef<{
|
|
574
583
|
parentComments: any[];
|
|
@@ -665,6 +674,19 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
665
674
|
removePendingComment: (superdoc: any) => void;
|
|
666
675
|
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
667
676
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
677
|
+
setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
|
|
678
|
+
commentItems?: never[] | undefined;
|
|
679
|
+
trackedChangeItems?: never[] | undefined;
|
|
680
|
+
}) => {
|
|
681
|
+
ok: boolean;
|
|
682
|
+
reason: string;
|
|
683
|
+
count?: undefined;
|
|
684
|
+
} | {
|
|
685
|
+
ok: boolean;
|
|
686
|
+
count: number;
|
|
687
|
+
reason?: undefined;
|
|
688
|
+
};
|
|
689
|
+
clearReviewDirectory: () => void;
|
|
668
690
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
669
691
|
comments: any[];
|
|
670
692
|
documentId: string;
|
|
@@ -704,14 +726,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
704
726
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
705
727
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
706
728
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
707
|
-
|
|
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
|
-
};
|
|
729
|
+
applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
715
730
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
716
731
|
preparedInputs?: null | undefined;
|
|
717
732
|
pruneStale?: boolean | undefined;
|
|
@@ -725,13 +740,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
725
740
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
726
741
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
727
742
|
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
728
|
-
|
|
729
|
-
trackedChangesListMode?: string | undefined;
|
|
730
|
-
reconciliationBatchSize?: number | undefined;
|
|
731
|
-
}) => Promise<any>;
|
|
732
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
743
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
|
|
733
744
|
upsertIds?: never[] | undefined;
|
|
734
745
|
removedIds?: never[] | undefined;
|
|
746
|
+
remappedPairs?: never[] | undefined;
|
|
735
747
|
}) => Promise<{
|
|
736
748
|
ok: boolean;
|
|
737
749
|
reason: string;
|
|
@@ -740,7 +752,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
740
752
|
unresolvedIds?: undefined;
|
|
741
753
|
allResolved?: undefined;
|
|
742
754
|
removedRows?: undefined;
|
|
743
|
-
|
|
755
|
+
removedIds?: undefined;
|
|
744
756
|
} | {
|
|
745
757
|
ok: boolean;
|
|
746
758
|
items: never[];
|
|
@@ -749,22 +761,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
749
761
|
allResolved: boolean;
|
|
750
762
|
removedRows: any;
|
|
751
763
|
reason?: undefined;
|
|
752
|
-
|
|
764
|
+
removedIds?: undefined;
|
|
753
765
|
} | {
|
|
754
766
|
ok: boolean;
|
|
755
767
|
items: never[];
|
|
756
768
|
resolvedIds: never[];
|
|
757
|
-
unresolvedIds: never[];
|
|
758
|
-
reason?: undefined;
|
|
759
|
-
allResolved?: undefined;
|
|
760
|
-
removedRows?: undefined;
|
|
761
|
-
failures?: undefined;
|
|
762
|
-
} | {
|
|
763
|
-
ok: boolean;
|
|
764
|
-
items: any[];
|
|
765
|
-
resolvedIds: (string | null)[];
|
|
766
769
|
unresolvedIds: (string | null)[];
|
|
767
|
-
|
|
770
|
+
removedIds: (string | null)[];
|
|
768
771
|
reason?: undefined;
|
|
769
772
|
allResolved?: undefined;
|
|
770
773
|
removedRows?: undefined;
|
|
@@ -776,7 +779,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
776
779
|
liveAnchorKeys?: null | undefined;
|
|
777
780
|
}) => any;
|
|
778
781
|
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" | "
|
|
782
|
+
}, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
|
|
780
783
|
documents: import('vue').Ref<any[], any[]>;
|
|
781
784
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
782
785
|
pages: {};
|
|
@@ -854,7 +857,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
854
857
|
pendingComment: import('vue').Ref<null, null>;
|
|
855
858
|
currentCommentText: import('vue').Ref<string, string>;
|
|
856
859
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
860
|
+
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
857
861
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
862
|
+
isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
|
|
863
|
+
isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
|
|
858
864
|
generalCommentIds: import('vue').Ref<never[], never[]>;
|
|
859
865
|
editorCommentIds: import('vue').Ref<never[], never[]>;
|
|
860
866
|
commentsParentElement: import('vue').Ref<null, null>;
|
|
@@ -880,6 +886,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
880
886
|
parentComments: any[];
|
|
881
887
|
resolvedComments: any[];
|
|
882
888
|
}>;
|
|
889
|
+
getGroupedReviewDirectory: import('vue').ComputedRef<{
|
|
890
|
+
parentComments: any[];
|
|
891
|
+
resolvedComments: any[];
|
|
892
|
+
}>;
|
|
883
893
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
884
894
|
getCommentsByPosition: import('vue').ComputedRef<{
|
|
885
895
|
parentComments: any[];
|
|
@@ -976,6 +986,19 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
976
986
|
removePendingComment: (superdoc: any) => void;
|
|
977
987
|
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
978
988
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
989
|
+
setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
|
|
990
|
+
commentItems?: never[] | undefined;
|
|
991
|
+
trackedChangeItems?: never[] | undefined;
|
|
992
|
+
}) => {
|
|
993
|
+
ok: boolean;
|
|
994
|
+
reason: string;
|
|
995
|
+
count?: undefined;
|
|
996
|
+
} | {
|
|
997
|
+
ok: boolean;
|
|
998
|
+
count: number;
|
|
999
|
+
reason?: undefined;
|
|
1000
|
+
};
|
|
1001
|
+
clearReviewDirectory: () => void;
|
|
979
1002
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
980
1003
|
comments: any[];
|
|
981
1004
|
documentId: string;
|
|
@@ -1015,14 +1038,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1015
1038
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1016
1039
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1017
1040
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1018
|
-
|
|
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
|
-
};
|
|
1041
|
+
applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
1026
1042
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
1027
1043
|
preparedInputs?: null | undefined;
|
|
1028
1044
|
pruneStale?: boolean | undefined;
|
|
@@ -1036,13 +1052,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1036
1052
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
1037
1053
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
1038
1054
|
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
1039
|
-
|
|
1040
|
-
trackedChangesListMode?: string | undefined;
|
|
1041
|
-
reconciliationBatchSize?: number | undefined;
|
|
1042
|
-
}) => Promise<any>;
|
|
1043
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
1055
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
|
|
1044
1056
|
upsertIds?: never[] | undefined;
|
|
1045
1057
|
removedIds?: never[] | undefined;
|
|
1058
|
+
remappedPairs?: never[] | undefined;
|
|
1046
1059
|
}) => Promise<{
|
|
1047
1060
|
ok: boolean;
|
|
1048
1061
|
reason: string;
|
|
@@ -1051,7 +1064,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1051
1064
|
unresolvedIds?: undefined;
|
|
1052
1065
|
allResolved?: undefined;
|
|
1053
1066
|
removedRows?: undefined;
|
|
1054
|
-
|
|
1067
|
+
removedIds?: undefined;
|
|
1055
1068
|
} | {
|
|
1056
1069
|
ok: boolean;
|
|
1057
1070
|
items: never[];
|
|
@@ -1060,22 +1073,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1060
1073
|
allResolved: boolean;
|
|
1061
1074
|
removedRows: any;
|
|
1062
1075
|
reason?: undefined;
|
|
1063
|
-
|
|
1076
|
+
removedIds?: undefined;
|
|
1064
1077
|
} | {
|
|
1065
1078
|
ok: boolean;
|
|
1066
1079
|
items: never[];
|
|
1067
1080
|
resolvedIds: never[];
|
|
1068
|
-
unresolvedIds: never[];
|
|
1069
|
-
reason?: undefined;
|
|
1070
|
-
allResolved?: undefined;
|
|
1071
|
-
removedRows?: undefined;
|
|
1072
|
-
failures?: undefined;
|
|
1073
|
-
} | {
|
|
1074
|
-
ok: boolean;
|
|
1075
|
-
items: any[];
|
|
1076
|
-
resolvedIds: (string | null)[];
|
|
1077
1081
|
unresolvedIds: (string | null)[];
|
|
1078
|
-
|
|
1082
|
+
removedIds: (string | null)[];
|
|
1079
1083
|
reason?: undefined;
|
|
1080
1084
|
allResolved?: undefined;
|
|
1081
1085
|
removedRows?: undefined;
|
|
@@ -1087,7 +1091,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1087
1091
|
liveAnchorKeys?: null | undefined;
|
|
1088
1092
|
}) => any;
|
|
1089
1093
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
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<{
|
|
1094
|
+
}, "suppressInternalExternal" | "activeComment" | "activeFloatingCommentInstanceId" | "floatingCommentsOffset" | "pendingComment" | "currentCommentText" | "isDebugging" | "editingCommentId" | "editorCommentPositions" | "isCommentHighlighted" | "v2CommentsAdapter" | "COMMENT_EVENTS" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "hasInitializedLocations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2TrackedChangesAdapter">, Pick<{
|
|
1091
1095
|
COMMENT_EVENTS: {
|
|
1092
1096
|
readonly RESOLVED: "resolved";
|
|
1093
1097
|
readonly NEW: "new";
|
|
@@ -1113,7 +1117,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1113
1117
|
pendingComment: import('vue').Ref<null, null>;
|
|
1114
1118
|
currentCommentText: import('vue').Ref<string, string>;
|
|
1115
1119
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
1120
|
+
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
1116
1121
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
1122
|
+
isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
|
|
1123
|
+
isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
|
|
1117
1124
|
generalCommentIds: import('vue').Ref<never[], never[]>;
|
|
1118
1125
|
editorCommentIds: import('vue').Ref<never[], never[]>;
|
|
1119
1126
|
commentsParentElement: import('vue').Ref<null, null>;
|
|
@@ -1139,6 +1146,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1139
1146
|
parentComments: any[];
|
|
1140
1147
|
resolvedComments: any[];
|
|
1141
1148
|
}>;
|
|
1149
|
+
getGroupedReviewDirectory: import('vue').ComputedRef<{
|
|
1150
|
+
parentComments: any[];
|
|
1151
|
+
resolvedComments: any[];
|
|
1152
|
+
}>;
|
|
1142
1153
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
1143
1154
|
getCommentsByPosition: import('vue').ComputedRef<{
|
|
1144
1155
|
parentComments: any[];
|
|
@@ -1235,6 +1246,19 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1235
1246
|
removePendingComment: (superdoc: any) => void;
|
|
1236
1247
|
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
1237
1248
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
1249
|
+
setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
|
|
1250
|
+
commentItems?: never[] | undefined;
|
|
1251
|
+
trackedChangeItems?: never[] | undefined;
|
|
1252
|
+
}) => {
|
|
1253
|
+
ok: boolean;
|
|
1254
|
+
reason: string;
|
|
1255
|
+
count?: undefined;
|
|
1256
|
+
} | {
|
|
1257
|
+
ok: boolean;
|
|
1258
|
+
count: number;
|
|
1259
|
+
reason?: undefined;
|
|
1260
|
+
};
|
|
1261
|
+
clearReviewDirectory: () => void;
|
|
1238
1262
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
1239
1263
|
comments: any[];
|
|
1240
1264
|
documentId: string;
|
|
@@ -1274,14 +1298,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1274
1298
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1275
1299
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1276
1300
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1277
|
-
|
|
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
|
-
};
|
|
1301
|
+
applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
1285
1302
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
1286
1303
|
preparedInputs?: null | undefined;
|
|
1287
1304
|
pruneStale?: boolean | undefined;
|
|
@@ -1295,13 +1312,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1295
1312
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
1296
1313
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
1297
1314
|
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
1298
|
-
|
|
1299
|
-
trackedChangesListMode?: string | undefined;
|
|
1300
|
-
reconciliationBatchSize?: number | undefined;
|
|
1301
|
-
}) => Promise<any>;
|
|
1302
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
1315
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
|
|
1303
1316
|
upsertIds?: never[] | undefined;
|
|
1304
1317
|
removedIds?: never[] | undefined;
|
|
1318
|
+
remappedPairs?: never[] | undefined;
|
|
1305
1319
|
}) => Promise<{
|
|
1306
1320
|
ok: boolean;
|
|
1307
1321
|
reason: string;
|
|
@@ -1310,7 +1324,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1310
1324
|
unresolvedIds?: undefined;
|
|
1311
1325
|
allResolved?: undefined;
|
|
1312
1326
|
removedRows?: undefined;
|
|
1313
|
-
|
|
1327
|
+
removedIds?: undefined;
|
|
1314
1328
|
} | {
|
|
1315
1329
|
ok: boolean;
|
|
1316
1330
|
items: never[];
|
|
@@ -1319,22 +1333,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1319
1333
|
allResolved: boolean;
|
|
1320
1334
|
removedRows: any;
|
|
1321
1335
|
reason?: undefined;
|
|
1322
|
-
|
|
1336
|
+
removedIds?: undefined;
|
|
1323
1337
|
} | {
|
|
1324
1338
|
ok: boolean;
|
|
1325
1339
|
items: never[];
|
|
1326
1340
|
resolvedIds: never[];
|
|
1327
|
-
unresolvedIds: never[];
|
|
1328
|
-
reason?: undefined;
|
|
1329
|
-
allResolved?: undefined;
|
|
1330
|
-
removedRows?: undefined;
|
|
1331
|
-
failures?: undefined;
|
|
1332
|
-
} | {
|
|
1333
|
-
ok: boolean;
|
|
1334
|
-
items: any[];
|
|
1335
|
-
resolvedIds: (string | null)[];
|
|
1336
1341
|
unresolvedIds: (string | null)[];
|
|
1337
|
-
|
|
1342
|
+
removedIds: (string | null)[];
|
|
1338
1343
|
reason?: undefined;
|
|
1339
1344
|
allResolved?: undefined;
|
|
1340
1345
|
removedRows?: undefined;
|
|
@@ -1346,7 +1351,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1346
1351
|
liveAnchorKeys?: null | undefined;
|
|
1347
1352
|
}) => any;
|
|
1348
1353
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
1349
|
-
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
1354
|
+
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
1350
1355
|
COMMENT_EVENTS: {
|
|
1351
1356
|
readonly RESOLVED: "resolved";
|
|
1352
1357
|
readonly NEW: "new";
|
|
@@ -1372,7 +1377,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1372
1377
|
pendingComment: import('vue').Ref<null, null>;
|
|
1373
1378
|
currentCommentText: import('vue').Ref<string, string>;
|
|
1374
1379
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
1380
|
+
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
1375
1381
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
1382
|
+
isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
|
|
1383
|
+
isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
|
|
1376
1384
|
generalCommentIds: import('vue').Ref<never[], never[]>;
|
|
1377
1385
|
editorCommentIds: import('vue').Ref<never[], never[]>;
|
|
1378
1386
|
commentsParentElement: import('vue').Ref<null, null>;
|
|
@@ -1398,6 +1406,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1398
1406
|
parentComments: any[];
|
|
1399
1407
|
resolvedComments: any[];
|
|
1400
1408
|
}>;
|
|
1409
|
+
getGroupedReviewDirectory: import('vue').ComputedRef<{
|
|
1410
|
+
parentComments: any[];
|
|
1411
|
+
resolvedComments: any[];
|
|
1412
|
+
}>;
|
|
1401
1413
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
1402
1414
|
getCommentsByPosition: import('vue').ComputedRef<{
|
|
1403
1415
|
parentComments: any[];
|
|
@@ -1494,6 +1506,19 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1494
1506
|
removePendingComment: (superdoc: any) => void;
|
|
1495
1507
|
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
1496
1508
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
1509
|
+
setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
|
|
1510
|
+
commentItems?: never[] | undefined;
|
|
1511
|
+
trackedChangeItems?: never[] | undefined;
|
|
1512
|
+
}) => {
|
|
1513
|
+
ok: boolean;
|
|
1514
|
+
reason: string;
|
|
1515
|
+
count?: undefined;
|
|
1516
|
+
} | {
|
|
1517
|
+
ok: boolean;
|
|
1518
|
+
count: number;
|
|
1519
|
+
reason?: undefined;
|
|
1520
|
+
};
|
|
1521
|
+
clearReviewDirectory: () => void;
|
|
1497
1522
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
1498
1523
|
comments: any[];
|
|
1499
1524
|
documentId: string;
|
|
@@ -1533,14 +1558,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1533
1558
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1534
1559
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1535
1560
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1536
|
-
|
|
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
|
-
};
|
|
1561
|
+
applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
1544
1562
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
1545
1563
|
preparedInputs?: null | undefined;
|
|
1546
1564
|
pruneStale?: boolean | undefined;
|
|
@@ -1554,13 +1572,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1554
1572
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
1555
1573
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
1556
1574
|
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
1557
|
-
|
|
1558
|
-
trackedChangesListMode?: string | undefined;
|
|
1559
|
-
reconciliationBatchSize?: number | undefined;
|
|
1560
|
-
}) => Promise<any>;
|
|
1561
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
1575
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
|
|
1562
1576
|
upsertIds?: never[] | undefined;
|
|
1563
1577
|
removedIds?: never[] | undefined;
|
|
1578
|
+
remappedPairs?: never[] | undefined;
|
|
1564
1579
|
}) => Promise<{
|
|
1565
1580
|
ok: boolean;
|
|
1566
1581
|
reason: string;
|
|
@@ -1569,7 +1584,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1569
1584
|
unresolvedIds?: undefined;
|
|
1570
1585
|
allResolved?: undefined;
|
|
1571
1586
|
removedRows?: undefined;
|
|
1572
|
-
|
|
1587
|
+
removedIds?: undefined;
|
|
1573
1588
|
} | {
|
|
1574
1589
|
ok: boolean;
|
|
1575
1590
|
items: never[];
|
|
@@ -1578,22 +1593,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1578
1593
|
allResolved: boolean;
|
|
1579
1594
|
removedRows: any;
|
|
1580
1595
|
reason?: undefined;
|
|
1581
|
-
|
|
1596
|
+
removedIds?: undefined;
|
|
1582
1597
|
} | {
|
|
1583
1598
|
ok: boolean;
|
|
1584
1599
|
items: never[];
|
|
1585
1600
|
resolvedIds: never[];
|
|
1586
|
-
unresolvedIds: never[];
|
|
1587
|
-
reason?: undefined;
|
|
1588
|
-
allResolved?: undefined;
|
|
1589
|
-
removedRows?: undefined;
|
|
1590
|
-
failures?: undefined;
|
|
1591
|
-
} | {
|
|
1592
|
-
ok: boolean;
|
|
1593
|
-
items: any[];
|
|
1594
|
-
resolvedIds: (string | null)[];
|
|
1595
1601
|
unresolvedIds: (string | null)[];
|
|
1596
|
-
|
|
1602
|
+
removedIds: (string | null)[];
|
|
1597
1603
|
reason?: undefined;
|
|
1598
1604
|
allResolved?: undefined;
|
|
1599
1605
|
removedRows?: undefined;
|
|
@@ -1605,7 +1611,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1605
1611
|
liveAnchorKeys?: null | undefined;
|
|
1606
1612
|
}) => any;
|
|
1607
1613
|
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" | "
|
|
1614
|
+
}, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
|
|
1609
1615
|
documents: import('vue').Ref<any[], any[]>;
|
|
1610
1616
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
1611
1617
|
pages: {};
|
|
@@ -1683,7 +1689,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1683
1689
|
pendingComment: import('vue').Ref<null, null>;
|
|
1684
1690
|
currentCommentText: import('vue').Ref<string, string>;
|
|
1685
1691
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
1692
|
+
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
1686
1693
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
1694
|
+
isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
|
|
1695
|
+
isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
|
|
1687
1696
|
generalCommentIds: import('vue').Ref<never[], never[]>;
|
|
1688
1697
|
editorCommentIds: import('vue').Ref<never[], never[]>;
|
|
1689
1698
|
commentsParentElement: import('vue').Ref<null, null>;
|
|
@@ -1709,6 +1718,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1709
1718
|
parentComments: any[];
|
|
1710
1719
|
resolvedComments: any[];
|
|
1711
1720
|
}>;
|
|
1721
|
+
getGroupedReviewDirectory: import('vue').ComputedRef<{
|
|
1722
|
+
parentComments: any[];
|
|
1723
|
+
resolvedComments: any[];
|
|
1724
|
+
}>;
|
|
1712
1725
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
1713
1726
|
getCommentsByPosition: import('vue').ComputedRef<{
|
|
1714
1727
|
parentComments: any[];
|
|
@@ -1805,6 +1818,19 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1805
1818
|
removePendingComment: (superdoc: any) => void;
|
|
1806
1819
|
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
1807
1820
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
1821
|
+
setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
|
|
1822
|
+
commentItems?: never[] | undefined;
|
|
1823
|
+
trackedChangeItems?: never[] | undefined;
|
|
1824
|
+
}) => {
|
|
1825
|
+
ok: boolean;
|
|
1826
|
+
reason: string;
|
|
1827
|
+
count?: undefined;
|
|
1828
|
+
} | {
|
|
1829
|
+
ok: boolean;
|
|
1830
|
+
count: number;
|
|
1831
|
+
reason?: undefined;
|
|
1832
|
+
};
|
|
1833
|
+
clearReviewDirectory: () => void;
|
|
1808
1834
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
1809
1835
|
comments: any[];
|
|
1810
1836
|
documentId: string;
|
|
@@ -1844,14 +1870,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1844
1870
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
1845
1871
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
1846
1872
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
1847
|
-
|
|
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
|
-
};
|
|
1873
|
+
applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
1855
1874
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
1856
1875
|
preparedInputs?: null | undefined;
|
|
1857
1876
|
pruneStale?: boolean | undefined;
|
|
@@ -1865,13 +1884,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1865
1884
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
1866
1885
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
1867
1886
|
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
1868
|
-
|
|
1869
|
-
trackedChangesListMode?: string | undefined;
|
|
1870
|
-
reconciliationBatchSize?: number | undefined;
|
|
1871
|
-
}) => Promise<any>;
|
|
1872
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
1887
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
|
|
1873
1888
|
upsertIds?: never[] | undefined;
|
|
1874
1889
|
removedIds?: never[] | undefined;
|
|
1890
|
+
remappedPairs?: never[] | undefined;
|
|
1875
1891
|
}) => Promise<{
|
|
1876
1892
|
ok: boolean;
|
|
1877
1893
|
reason: string;
|
|
@@ -1880,7 +1896,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1880
1896
|
unresolvedIds?: undefined;
|
|
1881
1897
|
allResolved?: undefined;
|
|
1882
1898
|
removedRows?: undefined;
|
|
1883
|
-
|
|
1899
|
+
removedIds?: undefined;
|
|
1884
1900
|
} | {
|
|
1885
1901
|
ok: boolean;
|
|
1886
1902
|
items: never[];
|
|
@@ -1889,22 +1905,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1889
1905
|
allResolved: boolean;
|
|
1890
1906
|
removedRows: any;
|
|
1891
1907
|
reason?: undefined;
|
|
1892
|
-
|
|
1908
|
+
removedIds?: undefined;
|
|
1893
1909
|
} | {
|
|
1894
1910
|
ok: boolean;
|
|
1895
1911
|
items: never[];
|
|
1896
1912
|
resolvedIds: never[];
|
|
1897
|
-
unresolvedIds: never[];
|
|
1898
|
-
reason?: undefined;
|
|
1899
|
-
allResolved?: undefined;
|
|
1900
|
-
removedRows?: undefined;
|
|
1901
|
-
failures?: undefined;
|
|
1902
|
-
} | {
|
|
1903
|
-
ok: boolean;
|
|
1904
|
-
items: any[];
|
|
1905
|
-
resolvedIds: (string | null)[];
|
|
1906
1913
|
unresolvedIds: (string | null)[];
|
|
1907
|
-
|
|
1914
|
+
removedIds: (string | null)[];
|
|
1908
1915
|
reason?: undefined;
|
|
1909
1916
|
allResolved?: undefined;
|
|
1910
1917
|
removedRows?: undefined;
|
|
@@ -1916,7 +1923,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1916
1923
|
liveAnchorKeys?: null | undefined;
|
|
1917
1924
|
}) => any;
|
|
1918
1925
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
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<{
|
|
1926
|
+
}, "suppressInternalExternal" | "activeComment" | "activeFloatingCommentInstanceId" | "floatingCommentsOffset" | "pendingComment" | "currentCommentText" | "isDebugging" | "editingCommentId" | "editorCommentPositions" | "isCommentHighlighted" | "v2CommentsAdapter" | "COMMENT_EVENTS" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "hasInitializedLocations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2TrackedChangesAdapter">, Pick<{
|
|
1920
1927
|
COMMENT_EVENTS: {
|
|
1921
1928
|
readonly RESOLVED: "resolved";
|
|
1922
1929
|
readonly NEW: "new";
|
|
@@ -1942,7 +1949,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1942
1949
|
pendingComment: import('vue').Ref<null, null>;
|
|
1943
1950
|
currentCommentText: import('vue').Ref<string, string>;
|
|
1944
1951
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
1952
|
+
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
1945
1953
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
1954
|
+
isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
|
|
1955
|
+
isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
|
|
1946
1956
|
generalCommentIds: import('vue').Ref<never[], never[]>;
|
|
1947
1957
|
editorCommentIds: import('vue').Ref<never[], never[]>;
|
|
1948
1958
|
commentsParentElement: import('vue').Ref<null, null>;
|
|
@@ -1968,6 +1978,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
1968
1978
|
parentComments: any[];
|
|
1969
1979
|
resolvedComments: any[];
|
|
1970
1980
|
}>;
|
|
1981
|
+
getGroupedReviewDirectory: import('vue').ComputedRef<{
|
|
1982
|
+
parentComments: any[];
|
|
1983
|
+
resolvedComments: any[];
|
|
1984
|
+
}>;
|
|
1971
1985
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
1972
1986
|
getCommentsByPosition: import('vue').ComputedRef<{
|
|
1973
1987
|
parentComments: any[];
|
|
@@ -2064,6 +2078,19 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2064
2078
|
removePendingComment: (superdoc: any) => void;
|
|
2065
2079
|
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
2066
2080
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
2081
|
+
setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
|
|
2082
|
+
commentItems?: never[] | undefined;
|
|
2083
|
+
trackedChangeItems?: never[] | undefined;
|
|
2084
|
+
}) => {
|
|
2085
|
+
ok: boolean;
|
|
2086
|
+
reason: string;
|
|
2087
|
+
count?: undefined;
|
|
2088
|
+
} | {
|
|
2089
|
+
ok: boolean;
|
|
2090
|
+
count: number;
|
|
2091
|
+
reason?: undefined;
|
|
2092
|
+
};
|
|
2093
|
+
clearReviewDirectory: () => void;
|
|
2067
2094
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
2068
2095
|
comments: any[];
|
|
2069
2096
|
documentId: string;
|
|
@@ -2103,14 +2130,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2103
2130
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
2104
2131
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
2105
2132
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
2106
|
-
|
|
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
|
-
};
|
|
2133
|
+
applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
2114
2134
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
2115
2135
|
preparedInputs?: null | undefined;
|
|
2116
2136
|
pruneStale?: boolean | undefined;
|
|
@@ -2124,13 +2144,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2124
2144
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
2125
2145
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
2126
2146
|
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
2127
|
-
|
|
2128
|
-
trackedChangesListMode?: string | undefined;
|
|
2129
|
-
reconciliationBatchSize?: number | undefined;
|
|
2130
|
-
}) => Promise<any>;
|
|
2131
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
2147
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
|
|
2132
2148
|
upsertIds?: never[] | undefined;
|
|
2133
2149
|
removedIds?: never[] | undefined;
|
|
2150
|
+
remappedPairs?: never[] | undefined;
|
|
2134
2151
|
}) => Promise<{
|
|
2135
2152
|
ok: boolean;
|
|
2136
2153
|
reason: string;
|
|
@@ -2139,7 +2156,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2139
2156
|
unresolvedIds?: undefined;
|
|
2140
2157
|
allResolved?: undefined;
|
|
2141
2158
|
removedRows?: undefined;
|
|
2142
|
-
|
|
2159
|
+
removedIds?: undefined;
|
|
2143
2160
|
} | {
|
|
2144
2161
|
ok: boolean;
|
|
2145
2162
|
items: never[];
|
|
@@ -2148,22 +2165,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2148
2165
|
allResolved: boolean;
|
|
2149
2166
|
removedRows: any;
|
|
2150
2167
|
reason?: undefined;
|
|
2151
|
-
|
|
2168
|
+
removedIds?: undefined;
|
|
2152
2169
|
} | {
|
|
2153
2170
|
ok: boolean;
|
|
2154
2171
|
items: never[];
|
|
2155
2172
|
resolvedIds: never[];
|
|
2156
|
-
unresolvedIds: never[];
|
|
2157
|
-
reason?: undefined;
|
|
2158
|
-
allResolved?: undefined;
|
|
2159
|
-
removedRows?: undefined;
|
|
2160
|
-
failures?: undefined;
|
|
2161
|
-
} | {
|
|
2162
|
-
ok: boolean;
|
|
2163
|
-
items: any[];
|
|
2164
|
-
resolvedIds: (string | null)[];
|
|
2165
2173
|
unresolvedIds: (string | null)[];
|
|
2166
|
-
|
|
2174
|
+
removedIds: (string | null)[];
|
|
2167
2175
|
reason?: undefined;
|
|
2168
2176
|
allResolved?: undefined;
|
|
2169
2177
|
removedRows?: undefined;
|
|
@@ -2175,7 +2183,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2175
2183
|
liveAnchorKeys?: null | undefined;
|
|
2176
2184
|
}) => any;
|
|
2177
2185
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
2178
|
-
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
2186
|
+
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
2179
2187
|
COMMENT_EVENTS: {
|
|
2180
2188
|
readonly RESOLVED: "resolved";
|
|
2181
2189
|
readonly NEW: "new";
|
|
@@ -2201,7 +2209,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2201
2209
|
pendingComment: import('vue').Ref<null, null>;
|
|
2202
2210
|
currentCommentText: import('vue').Ref<string, string>;
|
|
2203
2211
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
2212
|
+
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
2204
2213
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
2214
|
+
isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
|
|
2215
|
+
isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
|
|
2205
2216
|
generalCommentIds: import('vue').Ref<never[], never[]>;
|
|
2206
2217
|
editorCommentIds: import('vue').Ref<never[], never[]>;
|
|
2207
2218
|
commentsParentElement: import('vue').Ref<null, null>;
|
|
@@ -2227,6 +2238,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2227
2238
|
parentComments: any[];
|
|
2228
2239
|
resolvedComments: any[];
|
|
2229
2240
|
}>;
|
|
2241
|
+
getGroupedReviewDirectory: import('vue').ComputedRef<{
|
|
2242
|
+
parentComments: any[];
|
|
2243
|
+
resolvedComments: any[];
|
|
2244
|
+
}>;
|
|
2230
2245
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
2231
2246
|
getCommentsByPosition: import('vue').ComputedRef<{
|
|
2232
2247
|
parentComments: any[];
|
|
@@ -2323,6 +2338,19 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2323
2338
|
removePendingComment: (superdoc: any) => void;
|
|
2324
2339
|
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
2325
2340
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
2341
|
+
setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
|
|
2342
|
+
commentItems?: never[] | undefined;
|
|
2343
|
+
trackedChangeItems?: never[] | undefined;
|
|
2344
|
+
}) => {
|
|
2345
|
+
ok: boolean;
|
|
2346
|
+
reason: string;
|
|
2347
|
+
count?: undefined;
|
|
2348
|
+
} | {
|
|
2349
|
+
ok: boolean;
|
|
2350
|
+
count: number;
|
|
2351
|
+
reason?: undefined;
|
|
2352
|
+
};
|
|
2353
|
+
clearReviewDirectory: () => void;
|
|
2326
2354
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
2327
2355
|
comments: any[];
|
|
2328
2356
|
documentId: string;
|
|
@@ -2362,14 +2390,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2362
2390
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
2363
2391
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
2364
2392
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
2365
|
-
|
|
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
|
-
};
|
|
2393
|
+
applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
2373
2394
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
2374
2395
|
preparedInputs?: null | undefined;
|
|
2375
2396
|
pruneStale?: boolean | undefined;
|
|
@@ -2383,13 +2404,10 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2383
2404
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
2384
2405
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
2385
2406
|
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
2386
|
-
|
|
2387
|
-
trackedChangesListMode?: string | undefined;
|
|
2388
|
-
reconciliationBatchSize?: number | undefined;
|
|
2389
|
-
}) => Promise<any>;
|
|
2390
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
2407
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
|
|
2391
2408
|
upsertIds?: never[] | undefined;
|
|
2392
2409
|
removedIds?: never[] | undefined;
|
|
2410
|
+
remappedPairs?: never[] | undefined;
|
|
2393
2411
|
}) => Promise<{
|
|
2394
2412
|
ok: boolean;
|
|
2395
2413
|
reason: string;
|
|
@@ -2398,7 +2416,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2398
2416
|
unresolvedIds?: undefined;
|
|
2399
2417
|
allResolved?: undefined;
|
|
2400
2418
|
removedRows?: undefined;
|
|
2401
|
-
|
|
2419
|
+
removedIds?: undefined;
|
|
2402
2420
|
} | {
|
|
2403
2421
|
ok: boolean;
|
|
2404
2422
|
items: never[];
|
|
@@ -2407,22 +2425,13 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2407
2425
|
allResolved: boolean;
|
|
2408
2426
|
removedRows: any;
|
|
2409
2427
|
reason?: undefined;
|
|
2410
|
-
|
|
2428
|
+
removedIds?: undefined;
|
|
2411
2429
|
} | {
|
|
2412
2430
|
ok: boolean;
|
|
2413
2431
|
items: never[];
|
|
2414
2432
|
resolvedIds: never[];
|
|
2415
|
-
unresolvedIds: never[];
|
|
2416
|
-
reason?: undefined;
|
|
2417
|
-
allResolved?: undefined;
|
|
2418
|
-
removedRows?: undefined;
|
|
2419
|
-
failures?: undefined;
|
|
2420
|
-
} | {
|
|
2421
|
-
ok: boolean;
|
|
2422
|
-
items: any[];
|
|
2423
|
-
resolvedIds: (string | null)[];
|
|
2424
2433
|
unresolvedIds: (string | null)[];
|
|
2425
|
-
|
|
2434
|
+
removedIds: (string | null)[];
|
|
2426
2435
|
reason?: undefined;
|
|
2427
2436
|
allResolved?: undefined;
|
|
2428
2437
|
removedRows?: undefined;
|
|
@@ -2434,7 +2443,7 @@ export const useSuperdocStore: import('pinia').StoreDefinition<"superdoc", Pick<
|
|
|
2434
2443
|
liveAnchorKeys?: null | undefined;
|
|
2435
2444
|
}) => any;
|
|
2436
2445
|
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" | "
|
|
2446
|
+
}, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
|
|
2438
2447
|
documents: import('vue').Ref<any[], any[]>;
|
|
2439
2448
|
documentBounds: import('vue').Ref<never[], never[]>;
|
|
2440
2449
|
pages: {};
|