superdoc 2.4.0-next.4 → 2.4.0-next.41
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/AGENTS.md +13 -13
- package/README.md +19 -22
- package/dist/chunks/{FindReplaceSurface-Dx0llWqP.cjs → FindReplaceSurface-0p7EtMZh.cjs} +4 -4
- package/dist/chunks/{FindReplaceSurface-BEW-1NhM.es.js → FindReplaceSurface-40AnrqWk.es.js} +5 -4
- package/dist/chunks/{PasswordPromptSurface-BUUVC2ee.cjs → PasswordPromptSurface-31lYPcCK.cjs} +4 -3
- package/dist/chunks/{PasswordPromptSurface-BA6HHqEa.es.js → PasswordPromptSurface-CwYeO3iQ.es.js} +4 -2
- package/dist/chunks/{PdfViewer-CNOtyS-I.es.js → PdfViewer-D8h7LRZy.es.js} +103 -19
- package/dist/chunks/{PdfViewer-qpvzwYMz.cjs → PdfViewer-Dug6yDRC.cjs} +105 -20
- package/dist/chunks/_plugin-vue_export-helper-BOaGB7Aw.es.js +8 -0
- package/dist/chunks/_plugin-vue_export-helper-SDR04tiH.cjs +13 -0
- package/dist/chunks/{blank-docx-DP8RUPW-.cjs → blank-docx-BuFAbRjs.cjs} +2 -0
- package/dist/chunks/{blank-docx-XRX6Ker2.es.js → blank-docx-DzQccOlW.es.js} +2 -0
- package/dist/chunks/constants-B6VBlmKp.es.js +4 -0
- package/dist/chunks/constants-DpXuDx_g.cjs +9 -0
- package/dist/chunks/{create-super-doc-ui-Dli6Wq70.es.js → create-super-doc-ui-B5SqT0gL.es.js} +2114 -1146
- package/dist/chunks/{create-super-doc-ui-BHMQEL2y.cjs → create-super-doc-ui-Dmv8Hjs6.cjs} +1924 -1190
- package/dist/chunks/{eventemitter3-Bt2s0X0a.es.js → eventemitter3-CMOjDs74.es.js} +124 -16
- package/dist/chunks/{eventemitter3-DqY4aSMf.cjs → eventemitter3-D38u8ta_.cjs} +125 -16
- package/dist/chunks/jszip-RC64TPzL.cjs +4758 -0
- package/dist/chunks/jszip-VxCFV9YS.es.js +4717 -0
- package/dist/chunks/{rolldown-runtime-D7PMmH3s.es.js → rolldown-runtime-B5TtN50X.es.js} +13 -4
- package/dist/chunks/{rolldown-runtime-1Y-nnZJ3.cjs → rolldown-runtime-DtsSbkrh.cjs} +12 -3
- package/dist/chunks/{uuid-CFp0WGVU.cjs → uuid-BhG0ngwk.cjs} +10 -6
- package/dist/chunks/{uuid-B2Sqk-3p.es.js → uuid-H0Xcmmhy.es.js} +8 -3
- package/dist/collaboration-upgrade-engine.cjs +34 -9
- package/dist/collaboration-upgrade-engine.es.js +30 -5
- package/dist/document-api/src/citations/citations.types.d.ts +9 -0
- package/dist/document-api/src/comments/comments.types.d.ts +7 -0
- package/dist/document-api/src/types/receipt.d.ts +9 -5
- package/dist/document-api/src/types/track-changes.types.d.ts +18 -3
- package/dist/layout-engine/contracts/src/incremental-dependency.d.ts +22 -2
- package/dist/layout-engine/contracts/src/index.d.ts +83 -2
- 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/hydrateTableTextboxMeasures.d.ts +9 -0
- package/dist/layout-engine/layout-bridge/src/incrementalLayout.d.ts +28 -10
- package/dist/layout-engine/layout-bridge/src/index.d.ts +4 -2
- package/dist/layout-engine/layout-bridge/src/inline-box-key.d.ts +3 -0
- package/dist/layout-engine/layout-bridge/src/layoutHeaderFooter.d.ts +10 -3
- 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/layout-engine/src/anchors.d.ts +4 -0
- package/dist/layout-engine/layout-engine/src/execution.d.ts +21 -0
- package/dist/layout-engine/layout-engine/src/floating-table-anchor.d.ts +2 -0
- package/dist/layout-engine/layout-engine/src/footnote-anchor-index.d.ts +17 -0
- package/dist/layout-engine/layout-engine/src/index.d.ts +10 -7
- package/dist/layout-engine/layout-engine/src/pageNumbering.d.ts +3 -41
- package/dist/layout-engine/layout-engine/src/resolvePageTokens.d.ts +2 -0
- package/dist/layout-engine/layout-engine/src/section-props.d.ts +5 -0
- package/dist/layout-engine/painters/dom/src/runs/inline-box.d.ts +8 -0
- package/dist/layout-engine/painters/dom/src/runs/text-run.d.ts +6 -4
- package/dist/layout-engine/style-engine/src/ooxml/word-style-model/parse-theme.d.ts +6 -0
- package/dist/public/ui-react.cjs +66 -2
- package/dist/public/ui-react.es.js +66 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +174 -138
- package/dist/style.layered.css +174 -138
- 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 +10 -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 +535 -42
- package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +3 -3
- package/dist/superdoc/src/helpers/comment-small-screen.d.ts +10 -0
- package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +3 -5
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +4 -4
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +11 -0
- package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +1 -1
- package/dist/superdoc/src/public/index.d.cts +28 -0
- package/dist/superdoc/src/public/index.d.ts +14 -0
- package/dist/superdoc/src/public/ui/types.d.ts +30 -6
- 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 +6790 -2159
- package/dist/superdoc.es.js +6663 -2032
- 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 +14 -14
- package/dist/chunks/_plugin-vue_export-helper-BTwbGDKw.cjs +0 -11
- package/dist/chunks/_plugin-vue_export-helper-CInC0bKI.es.js +0 -6
- package/dist/chunks/constants-CY3R3_kF.es.js +0 -3
- package/dist/chunks/constants-sbCZ2O_A.cjs +0 -14
- package/dist/chunks/jszip-C8srOKAO.es.js +0 -4650
- package/dist/chunks/jszip-Cs9JBLlJ.cjs +0 -4691
- 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
|
@@ -24,7 +24,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
24
24
|
pendingComment: import('vue').Ref<null, null>;
|
|
25
25
|
currentCommentText: import('vue').Ref<string, string>;
|
|
26
26
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
27
|
+
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
27
28
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
29
|
+
isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
|
|
30
|
+
isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
|
|
28
31
|
generalCommentIds: import('vue').Ref<never[], never[]>;
|
|
29
32
|
editorCommentIds: import('vue').Ref<never[], never[]>;
|
|
30
33
|
commentsParentElement: import('vue').Ref<null, null>;
|
|
@@ -50,6 +53,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
50
53
|
parentComments: any[];
|
|
51
54
|
resolvedComments: any[];
|
|
52
55
|
}>;
|
|
56
|
+
getGroupedReviewDirectory: import('vue').ComputedRef<{
|
|
57
|
+
parentComments: any[];
|
|
58
|
+
resolvedComments: any[];
|
|
59
|
+
}>;
|
|
53
60
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
54
61
|
getCommentsByPosition: import('vue').ComputedRef<{
|
|
55
62
|
parentComments: any[];
|
|
@@ -146,6 +153,19 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
146
153
|
removePendingComment: (superdoc: any) => void;
|
|
147
154
|
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
148
155
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
156
|
+
setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
|
|
157
|
+
commentItems?: never[] | undefined;
|
|
158
|
+
trackedChangeItems?: never[] | undefined;
|
|
159
|
+
}) => {
|
|
160
|
+
ok: boolean;
|
|
161
|
+
reason: string;
|
|
162
|
+
count?: undefined;
|
|
163
|
+
} | {
|
|
164
|
+
ok: boolean;
|
|
165
|
+
count: number;
|
|
166
|
+
reason?: undefined;
|
|
167
|
+
};
|
|
168
|
+
clearReviewDirectory: () => void;
|
|
149
169
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
150
170
|
comments: any[];
|
|
151
171
|
documentId: string;
|
|
@@ -185,14 +205,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
185
205
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
186
206
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
187
207
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
188
|
-
|
|
189
|
-
trackedChangesListMode?: string | undefined;
|
|
190
|
-
}) => Promise<any>;
|
|
191
|
-
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
192
|
-
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
193
|
-
commentsGeneration: any;
|
|
194
|
-
trackedChangesGeneration: any;
|
|
195
|
-
};
|
|
208
|
+
applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
196
209
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
197
210
|
preparedInputs?: null | undefined;
|
|
198
211
|
pruneStale?: boolean | undefined;
|
|
@@ -206,13 +219,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
206
219
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
207
220
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
208
221
|
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
209
|
-
|
|
210
|
-
trackedChangesListMode?: string | undefined;
|
|
211
|
-
reconciliationBatchSize?: number | undefined;
|
|
212
|
-
}) => Promise<any>;
|
|
213
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
222
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
|
|
214
223
|
upsertIds?: never[] | undefined;
|
|
215
224
|
removedIds?: never[] | undefined;
|
|
225
|
+
remappedPairs?: never[] | undefined;
|
|
216
226
|
}) => Promise<{
|
|
217
227
|
ok: boolean;
|
|
218
228
|
reason: string;
|
|
@@ -221,7 +231,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
221
231
|
unresolvedIds?: undefined;
|
|
222
232
|
allResolved?: undefined;
|
|
223
233
|
removedRows?: undefined;
|
|
224
|
-
|
|
234
|
+
removedIds?: undefined;
|
|
225
235
|
} | {
|
|
226
236
|
ok: boolean;
|
|
227
237
|
items: never[];
|
|
@@ -230,22 +240,13 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
230
240
|
allResolved: boolean;
|
|
231
241
|
removedRows: any;
|
|
232
242
|
reason?: undefined;
|
|
233
|
-
|
|
243
|
+
removedIds?: undefined;
|
|
234
244
|
} | {
|
|
235
245
|
ok: boolean;
|
|
236
246
|
items: never[];
|
|
237
247
|
resolvedIds: never[];
|
|
238
|
-
unresolvedIds: never[];
|
|
239
|
-
reason?: undefined;
|
|
240
|
-
allResolved?: undefined;
|
|
241
|
-
removedRows?: undefined;
|
|
242
|
-
failures?: undefined;
|
|
243
|
-
} | {
|
|
244
|
-
ok: boolean;
|
|
245
|
-
items: any[];
|
|
246
|
-
resolvedIds: (string | null)[];
|
|
247
248
|
unresolvedIds: (string | null)[];
|
|
248
|
-
|
|
249
|
+
removedIds: (string | null)[];
|
|
249
250
|
reason?: undefined;
|
|
250
251
|
allResolved?: undefined;
|
|
251
252
|
removedRows?: undefined;
|
|
@@ -257,7 +258,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
257
258
|
liveAnchorKeys?: null | undefined;
|
|
258
259
|
}) => any;
|
|
259
260
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
260
|
-
}, "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<{
|
|
261
|
+
}, "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<{
|
|
261
262
|
COMMENT_EVENTS: {
|
|
262
263
|
readonly RESOLVED: "resolved";
|
|
263
264
|
readonly NEW: "new";
|
|
@@ -283,7 +284,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
283
284
|
pendingComment: import('vue').Ref<null, null>;
|
|
284
285
|
currentCommentText: import('vue').Ref<string, string>;
|
|
285
286
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
287
|
+
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
286
288
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
289
|
+
isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
|
|
290
|
+
isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
|
|
287
291
|
generalCommentIds: import('vue').Ref<never[], never[]>;
|
|
288
292
|
editorCommentIds: import('vue').Ref<never[], never[]>;
|
|
289
293
|
commentsParentElement: import('vue').Ref<null, null>;
|
|
@@ -309,6 +313,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
309
313
|
parentComments: any[];
|
|
310
314
|
resolvedComments: any[];
|
|
311
315
|
}>;
|
|
316
|
+
getGroupedReviewDirectory: import('vue').ComputedRef<{
|
|
317
|
+
parentComments: any[];
|
|
318
|
+
resolvedComments: any[];
|
|
319
|
+
}>;
|
|
312
320
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
313
321
|
getCommentsByPosition: import('vue').ComputedRef<{
|
|
314
322
|
parentComments: any[];
|
|
@@ -405,6 +413,19 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
405
413
|
removePendingComment: (superdoc: any) => void;
|
|
406
414
|
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
407
415
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
416
|
+
setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
|
|
417
|
+
commentItems?: never[] | undefined;
|
|
418
|
+
trackedChangeItems?: never[] | undefined;
|
|
419
|
+
}) => {
|
|
420
|
+
ok: boolean;
|
|
421
|
+
reason: string;
|
|
422
|
+
count?: undefined;
|
|
423
|
+
} | {
|
|
424
|
+
ok: boolean;
|
|
425
|
+
count: number;
|
|
426
|
+
reason?: undefined;
|
|
427
|
+
};
|
|
428
|
+
clearReviewDirectory: () => void;
|
|
408
429
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
409
430
|
comments: any[];
|
|
410
431
|
documentId: string;
|
|
@@ -444,14 +465,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
444
465
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
445
466
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
446
467
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
447
|
-
|
|
448
|
-
trackedChangesListMode?: string | undefined;
|
|
449
|
-
}) => Promise<any>;
|
|
450
|
-
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
451
|
-
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
452
|
-
commentsGeneration: any;
|
|
453
|
-
trackedChangesGeneration: any;
|
|
454
|
-
};
|
|
468
|
+
applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
455
469
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
456
470
|
preparedInputs?: null | undefined;
|
|
457
471
|
pruneStale?: boolean | undefined;
|
|
@@ -465,13 +479,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
465
479
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
466
480
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
467
481
|
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
468
|
-
|
|
469
|
-
trackedChangesListMode?: string | undefined;
|
|
470
|
-
reconciliationBatchSize?: number | undefined;
|
|
471
|
-
}) => Promise<any>;
|
|
472
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
482
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
|
|
473
483
|
upsertIds?: never[] | undefined;
|
|
474
484
|
removedIds?: never[] | undefined;
|
|
485
|
+
remappedPairs?: never[] | undefined;
|
|
475
486
|
}) => Promise<{
|
|
476
487
|
ok: boolean;
|
|
477
488
|
reason: string;
|
|
@@ -480,7 +491,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
480
491
|
unresolvedIds?: undefined;
|
|
481
492
|
allResolved?: undefined;
|
|
482
493
|
removedRows?: undefined;
|
|
483
|
-
|
|
494
|
+
removedIds?: undefined;
|
|
484
495
|
} | {
|
|
485
496
|
ok: boolean;
|
|
486
497
|
items: never[];
|
|
@@ -489,22 +500,13 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
489
500
|
allResolved: boolean;
|
|
490
501
|
removedRows: any;
|
|
491
502
|
reason?: undefined;
|
|
492
|
-
|
|
503
|
+
removedIds?: undefined;
|
|
493
504
|
} | {
|
|
494
505
|
ok: boolean;
|
|
495
506
|
items: never[];
|
|
496
507
|
resolvedIds: never[];
|
|
497
|
-
unresolvedIds: never[];
|
|
498
|
-
reason?: undefined;
|
|
499
|
-
allResolved?: undefined;
|
|
500
|
-
removedRows?: undefined;
|
|
501
|
-
failures?: undefined;
|
|
502
|
-
} | {
|
|
503
|
-
ok: boolean;
|
|
504
|
-
items: any[];
|
|
505
|
-
resolvedIds: (string | null)[];
|
|
506
508
|
unresolvedIds: (string | null)[];
|
|
507
|
-
|
|
509
|
+
removedIds: (string | null)[];
|
|
508
510
|
reason?: undefined;
|
|
509
511
|
allResolved?: undefined;
|
|
510
512
|
removedRows?: undefined;
|
|
@@ -516,7 +518,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
516
518
|
liveAnchorKeys?: null | undefined;
|
|
517
519
|
}) => any;
|
|
518
520
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
519
|
-
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
521
|
+
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
520
522
|
COMMENT_EVENTS: {
|
|
521
523
|
readonly RESOLVED: "resolved";
|
|
522
524
|
readonly NEW: "new";
|
|
@@ -542,7 +544,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
542
544
|
pendingComment: import('vue').Ref<null, null>;
|
|
543
545
|
currentCommentText: import('vue').Ref<string, string>;
|
|
544
546
|
commentsList: import('vue').Ref<never[], never[]>;
|
|
547
|
+
reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
|
|
545
548
|
isCommentsListVisible: import('vue').Ref<boolean, boolean>;
|
|
549
|
+
isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
|
|
550
|
+
isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
|
|
546
551
|
generalCommentIds: import('vue').Ref<never[], never[]>;
|
|
547
552
|
editorCommentIds: import('vue').Ref<never[], never[]>;
|
|
548
553
|
commentsParentElement: import('vue').Ref<null, null>;
|
|
@@ -568,6 +573,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
568
573
|
parentComments: any[];
|
|
569
574
|
resolvedComments: any[];
|
|
570
575
|
}>;
|
|
576
|
+
getGroupedReviewDirectory: import('vue').ComputedRef<{
|
|
577
|
+
parentComments: any[];
|
|
578
|
+
resolvedComments: any[];
|
|
579
|
+
}>;
|
|
571
580
|
hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
|
|
572
581
|
getCommentsByPosition: import('vue').ComputedRef<{
|
|
573
582
|
parentComments: any[];
|
|
@@ -664,6 +673,19 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
664
673
|
removePendingComment: (superdoc: any) => void;
|
|
665
674
|
cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
|
|
666
675
|
removeCommentsForDocument: (documentId: string | null | undefined) => void;
|
|
676
|
+
setReviewDirectoryFromV2: ({ superdoc, commentItems, trackedChangeItems }?: {
|
|
677
|
+
commentItems?: never[] | undefined;
|
|
678
|
+
trackedChangeItems?: never[] | undefined;
|
|
679
|
+
}) => {
|
|
680
|
+
ok: boolean;
|
|
681
|
+
reason: string;
|
|
682
|
+
count?: undefined;
|
|
683
|
+
} | {
|
|
684
|
+
ok: boolean;
|
|
685
|
+
count: number;
|
|
686
|
+
reason?: undefined;
|
|
687
|
+
};
|
|
688
|
+
clearReviewDirectory: () => void;
|
|
667
689
|
processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
|
|
668
690
|
comments: any[];
|
|
669
691
|
documentId: string;
|
|
@@ -703,14 +725,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
703
725
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
704
726
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
705
727
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
706
|
-
|
|
707
|
-
trackedChangesListMode?: string | undefined;
|
|
708
|
-
}) => Promise<any>;
|
|
709
|
-
applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
710
|
-
supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
|
|
711
|
-
commentsGeneration: any;
|
|
712
|
-
trackedChangesGeneration: any;
|
|
713
|
-
};
|
|
728
|
+
applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
|
|
714
729
|
reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
|
|
715
730
|
preparedInputs?: null | undefined;
|
|
716
731
|
pruneStale?: boolean | undefined;
|
|
@@ -724,13 +739,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
724
739
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
725
740
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
726
741
|
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
727
|
-
|
|
728
|
-
trackedChangesListMode?: string | undefined;
|
|
729
|
-
reconciliationBatchSize?: number | undefined;
|
|
730
|
-
}) => Promise<any>;
|
|
731
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
742
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
|
|
732
743
|
upsertIds?: never[] | undefined;
|
|
733
744
|
removedIds?: never[] | undefined;
|
|
745
|
+
remappedPairs?: never[] | undefined;
|
|
734
746
|
}) => Promise<{
|
|
735
747
|
ok: boolean;
|
|
736
748
|
reason: string;
|
|
@@ -739,7 +751,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
739
751
|
unresolvedIds?: undefined;
|
|
740
752
|
allResolved?: undefined;
|
|
741
753
|
removedRows?: undefined;
|
|
742
|
-
|
|
754
|
+
removedIds?: undefined;
|
|
743
755
|
} | {
|
|
744
756
|
ok: boolean;
|
|
745
757
|
items: never[];
|
|
@@ -748,22 +760,13 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
748
760
|
allResolved: boolean;
|
|
749
761
|
removedRows: any;
|
|
750
762
|
reason?: undefined;
|
|
751
|
-
|
|
763
|
+
removedIds?: undefined;
|
|
752
764
|
} | {
|
|
753
765
|
ok: boolean;
|
|
754
766
|
items: never[];
|
|
755
767
|
resolvedIds: never[];
|
|
756
|
-
unresolvedIds: never[];
|
|
757
|
-
reason?: undefined;
|
|
758
|
-
allResolved?: undefined;
|
|
759
|
-
removedRows?: undefined;
|
|
760
|
-
failures?: undefined;
|
|
761
|
-
} | {
|
|
762
|
-
ok: boolean;
|
|
763
|
-
items: any[];
|
|
764
|
-
resolvedIds: (string | null)[];
|
|
765
768
|
unresolvedIds: (string | null)[];
|
|
766
|
-
|
|
769
|
+
removedIds: (string | null)[];
|
|
767
770
|
reason?: undefined;
|
|
768
771
|
allResolved?: undefined;
|
|
769
772
|
removedRows?: undefined;
|
|
@@ -775,4 +778,4 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
775
778
|
liveAnchorKeys?: null | undefined;
|
|
776
779
|
}) => any;
|
|
777
780
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
778
|
-
}, "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" | "
|
|
781
|
+
}, "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">>;
|