superdoc 2.4.0-next.3 → 2.4.0-next.30

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.
Files changed (90) hide show
  1. package/AGENTS.md +13 -13
  2. package/README.md +19 -22
  3. package/dist/chunks/{FindReplaceSurface-Dx0llWqP.cjs → FindReplaceSurface-0p7EtMZh.cjs} +4 -4
  4. package/dist/chunks/{FindReplaceSurface-BEW-1NhM.es.js → FindReplaceSurface-40AnrqWk.es.js} +5 -4
  5. package/dist/chunks/{PasswordPromptSurface-BUUVC2ee.cjs → PasswordPromptSurface-31lYPcCK.cjs} +4 -3
  6. package/dist/chunks/{PasswordPromptSurface-BA6HHqEa.es.js → PasswordPromptSurface-CwYeO3iQ.es.js} +4 -2
  7. package/dist/chunks/{PdfViewer-CNOtyS-I.es.js → PdfViewer-D8h7LRZy.es.js} +103 -19
  8. package/dist/chunks/{PdfViewer-qpvzwYMz.cjs → PdfViewer-Dug6yDRC.cjs} +105 -20
  9. package/dist/chunks/_plugin-vue_export-helper-BOaGB7Aw.es.js +8 -0
  10. package/dist/chunks/_plugin-vue_export-helper-SDR04tiH.cjs +13 -0
  11. package/dist/chunks/{blank-docx-DP8RUPW-.cjs → blank-docx-BuFAbRjs.cjs} +2 -0
  12. package/dist/chunks/{blank-docx-XRX6Ker2.es.js → blank-docx-DzQccOlW.es.js} +2 -0
  13. package/dist/chunks/constants-B6VBlmKp.es.js +4 -0
  14. package/dist/chunks/constants-DpXuDx_g.cjs +9 -0
  15. package/dist/chunks/{create-super-doc-ui-Dli6Wq70.es.js → create-super-doc-ui-CmOSA_lN.es.js} +2115 -1146
  16. package/dist/chunks/{create-super-doc-ui-BHMQEL2y.cjs → create-super-doc-ui-CqGmoMMA.cjs} +1925 -1190
  17. package/dist/chunks/{eventemitter3-Bt2s0X0a.es.js → eventemitter3-CMOjDs74.es.js} +124 -16
  18. package/dist/chunks/{eventemitter3-DqY4aSMf.cjs → eventemitter3-D38u8ta_.cjs} +125 -16
  19. package/dist/chunks/jszip-RC64TPzL.cjs +4758 -0
  20. package/dist/chunks/jszip-VxCFV9YS.es.js +4717 -0
  21. package/dist/chunks/{rolldown-runtime-D7PMmH3s.es.js → rolldown-runtime-B5TtN50X.es.js} +13 -4
  22. package/dist/chunks/{rolldown-runtime-1Y-nnZJ3.cjs → rolldown-runtime-DtsSbkrh.cjs} +12 -3
  23. package/dist/chunks/{uuid-CFp0WGVU.cjs → uuid-BhG0ngwk.cjs} +10 -6
  24. package/dist/chunks/{uuid-B2Sqk-3p.es.js → uuid-H0Xcmmhy.es.js} +8 -3
  25. package/dist/collaboration-upgrade-engine.cjs +34 -9
  26. package/dist/collaboration-upgrade-engine.es.js +30 -5
  27. package/dist/document-api/src/citations/citations.types.d.ts +9 -0
  28. package/dist/document-api/src/comments/comments.types.d.ts +7 -0
  29. package/dist/document-api/src/types/receipt.d.ts +9 -5
  30. package/dist/document-api/src/types/track-changes.types.d.ts +1 -3
  31. package/dist/layout-engine/contracts/src/incremental-dependency.d.ts +22 -2
  32. package/dist/layout-engine/contracts/src/index.d.ts +83 -2
  33. package/dist/layout-engine/contracts/src/inline-box.d.ts +19 -0
  34. package/dist/layout-engine/contracts/src/paragraph-visible-text.d.ts +19 -0
  35. package/dist/layout-engine/layout-bridge/src/hydrateTableTextboxMeasures.d.ts +9 -0
  36. package/dist/layout-engine/layout-bridge/src/incrementalLayout.d.ts +10 -10
  37. package/dist/layout-engine/layout-bridge/src/index.d.ts +4 -2
  38. package/dist/layout-engine/layout-bridge/src/inline-box-key.d.ts +3 -0
  39. package/dist/layout-engine/layout-bridge/src/layoutHeaderFooter.d.ts +8 -3
  40. package/dist/layout-engine/layout-bridge/src/run-visual-marks.d.ts +2 -0
  41. package/dist/layout-engine/layout-bridge/src/text-measurement.d.ts +0 -12
  42. package/dist/layout-engine/layout-engine/src/anchors.d.ts +4 -0
  43. package/dist/layout-engine/layout-engine/src/execution.d.ts +21 -0
  44. package/dist/layout-engine/layout-engine/src/floating-table-anchor.d.ts +2 -0
  45. package/dist/layout-engine/layout-engine/src/index.d.ts +10 -7
  46. package/dist/layout-engine/layout-engine/src/pageNumbering.d.ts +3 -41
  47. package/dist/layout-engine/layout-engine/src/resolvePageTokens.d.ts +2 -0
  48. package/dist/layout-engine/layout-engine/src/section-props.d.ts +5 -0
  49. package/dist/layout-engine/painters/dom/src/runs/inline-box.d.ts +8 -0
  50. package/dist/layout-engine/painters/dom/src/runs/text-run.d.ts +6 -4
  51. package/dist/layout-engine/style-engine/src/ooxml/word-style-model/parse-theme.d.ts +6 -0
  52. package/dist/public/ui-react.cjs +66 -2
  53. package/dist/public/ui-react.es.js +66 -1
  54. package/dist/public/ui.cjs +1 -1
  55. package/dist/public/ui.es.js +1 -1
  56. package/dist/style.css +174 -138
  57. package/dist/style.layered.css +174 -138
  58. package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +2 -0
  59. package/dist/superdoc/src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue.d.ts +16 -0
  60. package/dist/superdoc/src/components/CommentsLayer/commentsList/commentsList.vue.d.ts +3 -1
  61. package/dist/superdoc/src/components/CommentsLayer/commentsList/super-comments-list.d.ts +12 -0
  62. package/dist/superdoc/src/core/SuperDoc.d.ts +10 -7
  63. package/dist/superdoc/src/core/extensions/index.d.ts +1 -1
  64. package/dist/superdoc/src/core/extensions/types.d.ts +63 -5
  65. package/dist/superdoc/src/core/types/index.d.ts +535 -42
  66. package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +3 -3
  67. package/dist/superdoc/src/helpers/comment-small-screen.d.ts +10 -0
  68. package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +3 -5
  69. package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +4 -4
  70. package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +11 -0
  71. package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +1 -1
  72. package/dist/superdoc/src/public/index.d.cts +28 -0
  73. package/dist/superdoc/src/public/index.d.ts +14 -0
  74. package/dist/superdoc/src/public/ui/types.d.ts +30 -6
  75. package/dist/superdoc/src/stores/comments-store.d.ts +96 -75
  76. package/dist/superdoc/src/stores/superdoc-store.d.ts +288 -225
  77. package/dist/superdoc.cjs +6800 -1989
  78. package/dist/superdoc.es.js +6673 -1862
  79. package/dist-cdn/style.layered.css +1 -1
  80. package/dist-cdn/superdoc.min.css +1 -1
  81. package/dist-cdn/superdoc.min.js +37 -37
  82. package/package.json +14 -14
  83. package/dist/chunks/_plugin-vue_export-helper-BTwbGDKw.cjs +0 -11
  84. package/dist/chunks/_plugin-vue_export-helper-CInC0bKI.es.js +0 -6
  85. package/dist/chunks/constants-CY3R3_kF.es.js +0 -3
  86. package/dist/chunks/constants-sbCZ2O_A.cjs +0 -14
  87. package/dist/chunks/jszip-C8srOKAO.es.js +0 -4650
  88. package/dist/chunks/jszip-Cs9JBLlJ.cjs +0 -4691
  89. package/dist/superdoc/src/helpers/v2-remote-review-hydration.d.ts +0 -12
  90. 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,10 @@ 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
- hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
189
- applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
190
- supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
191
- commentsGeneration: any;
192
- trackedChangesGeneration: any;
193
- };
194
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
208
+ applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
209
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
195
210
  preparedInputs?: null | undefined;
211
+ pruneStale?: boolean | undefined;
196
212
  }) => any;
197
213
  isV2EditorActive: (superdoc: any) => boolean;
198
214
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
@@ -203,12 +219,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
203
219
  setV2TrackedChangesAdapter: (adapter: any) => void;
204
220
  getV2TrackedChangesAdapter: (superdoc: any) => any;
205
221
  getV2TrackedChangeRowCount: (documentId?: null) => number;
206
- hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
207
- trackedChangesListMode?: string | undefined;
208
- }) => Promise<any>;
209
- reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
222
+ reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
210
223
  upsertIds?: never[] | undefined;
211
224
  removedIds?: never[] | undefined;
225
+ remappedPairs?: never[] | undefined;
212
226
  }) => Promise<{
213
227
  ok: boolean;
214
228
  reason: string;
@@ -217,7 +231,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
217
231
  unresolvedIds?: undefined;
218
232
  allResolved?: undefined;
219
233
  removedRows?: undefined;
220
- failures?: undefined;
234
+ removedIds?: undefined;
221
235
  } | {
222
236
  ok: boolean;
223
237
  items: never[];
@@ -226,32 +240,25 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
226
240
  allResolved: boolean;
227
241
  removedRows: any;
228
242
  reason?: undefined;
229
- failures?: undefined;
243
+ removedIds?: undefined;
230
244
  } | {
231
245
  ok: boolean;
232
246
  items: never[];
233
247
  resolvedIds: never[];
234
- unresolvedIds: never[];
235
- reason?: undefined;
236
- allResolved?: undefined;
237
- removedRows?: undefined;
238
- failures?: undefined;
239
- } | {
240
- ok: boolean;
241
- items: any[];
242
- resolvedIds: (string | null)[];
243
248
  unresolvedIds: (string | null)[];
244
- failures: any[];
249
+ removedIds: (string | null)[];
245
250
  reason?: undefined;
246
251
  allResolved?: undefined;
247
252
  removedRows?: undefined;
248
253
  }>;
249
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
254
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
250
255
  pruneStale?: boolean | undefined;
251
256
  preparedParams?: null | undefined;
257
+ liveIds?: null | undefined;
258
+ liveAnchorKeys?: null | undefined;
252
259
  }) => any;
253
260
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
254
- }, "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<{
255
262
  COMMENT_EVENTS: {
256
263
  readonly RESOLVED: "resolved";
257
264
  readonly NEW: "new";
@@ -277,7 +284,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
277
284
  pendingComment: import('vue').Ref<null, null>;
278
285
  currentCommentText: import('vue').Ref<string, string>;
279
286
  commentsList: import('vue').Ref<never[], never[]>;
287
+ reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
280
288
  isCommentsListVisible: import('vue').Ref<boolean, boolean>;
289
+ isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
290
+ isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
281
291
  generalCommentIds: import('vue').Ref<never[], never[]>;
282
292
  editorCommentIds: import('vue').Ref<never[], never[]>;
283
293
  commentsParentElement: import('vue').Ref<null, null>;
@@ -303,6 +313,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
303
313
  parentComments: any[];
304
314
  resolvedComments: any[];
305
315
  }>;
316
+ getGroupedReviewDirectory: import('vue').ComputedRef<{
317
+ parentComments: any[];
318
+ resolvedComments: any[];
319
+ }>;
306
320
  hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
307
321
  getCommentsByPosition: import('vue').ComputedRef<{
308
322
  parentComments: any[];
@@ -399,6 +413,19 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
399
413
  removePendingComment: (superdoc: any) => void;
400
414
  cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
401
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;
402
429
  processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
403
430
  comments: any[];
404
431
  documentId: string;
@@ -438,14 +465,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
438
465
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
439
466
  setV2CommentsAdapter: (adapter: any) => void;
440
467
  getV2CommentsAdapter: (superdoc: any) => any;
441
- hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
442
- applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
443
- supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
444
- commentsGeneration: any;
445
- trackedChangesGeneration: any;
446
- };
447
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
468
+ applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
469
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
448
470
  preparedInputs?: null | undefined;
471
+ pruneStale?: boolean | undefined;
449
472
  }) => any;
450
473
  isV2EditorActive: (superdoc: any) => boolean;
451
474
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
@@ -456,12 +479,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
456
479
  setV2TrackedChangesAdapter: (adapter: any) => void;
457
480
  getV2TrackedChangesAdapter: (superdoc: any) => any;
458
481
  getV2TrackedChangeRowCount: (documentId?: null) => number;
459
- hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
460
- trackedChangesListMode?: string | undefined;
461
- }) => Promise<any>;
462
- reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
482
+ reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
463
483
  upsertIds?: never[] | undefined;
464
484
  removedIds?: never[] | undefined;
485
+ remappedPairs?: never[] | undefined;
465
486
  }) => Promise<{
466
487
  ok: boolean;
467
488
  reason: string;
@@ -470,7 +491,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
470
491
  unresolvedIds?: undefined;
471
492
  allResolved?: undefined;
472
493
  removedRows?: undefined;
473
- failures?: undefined;
494
+ removedIds?: undefined;
474
495
  } | {
475
496
  ok: boolean;
476
497
  items: never[];
@@ -479,32 +500,25 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
479
500
  allResolved: boolean;
480
501
  removedRows: any;
481
502
  reason?: undefined;
482
- failures?: undefined;
503
+ removedIds?: undefined;
483
504
  } | {
484
505
  ok: boolean;
485
506
  items: never[];
486
507
  resolvedIds: never[];
487
- unresolvedIds: never[];
488
- reason?: undefined;
489
- allResolved?: undefined;
490
- removedRows?: undefined;
491
- failures?: undefined;
492
- } | {
493
- ok: boolean;
494
- items: any[];
495
- resolvedIds: (string | null)[];
496
508
  unresolvedIds: (string | null)[];
497
- failures: any[];
509
+ removedIds: (string | null)[];
498
510
  reason?: undefined;
499
511
  allResolved?: undefined;
500
512
  removedRows?: undefined;
501
513
  }>;
502
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
514
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
503
515
  pruneStale?: boolean | undefined;
504
516
  preparedParams?: null | undefined;
517
+ liveIds?: null | undefined;
518
+ liveAnchorKeys?: null | undefined;
505
519
  }) => any;
506
520
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
507
- }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
521
+ }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "getGroupedReviewDirectory" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
508
522
  COMMENT_EVENTS: {
509
523
  readonly RESOLVED: "resolved";
510
524
  readonly NEW: "new";
@@ -530,7 +544,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
530
544
  pendingComment: import('vue').Ref<null, null>;
531
545
  currentCommentText: import('vue').Ref<string, string>;
532
546
  commentsList: import('vue').Ref<never[], never[]>;
547
+ reviewDirectoryList: import('vue').ShallowRef<never[], never[]>;
533
548
  isCommentsListVisible: import('vue').Ref<boolean, boolean>;
549
+ isReviewDirectoryActive: import('vue').Ref<boolean, boolean>;
550
+ isReviewDirectoryLoading: import('vue').Ref<boolean, boolean>;
534
551
  generalCommentIds: import('vue').Ref<never[], never[]>;
535
552
  editorCommentIds: import('vue').Ref<never[], never[]>;
536
553
  commentsParentElement: import('vue').Ref<null, null>;
@@ -556,6 +573,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
556
573
  parentComments: any[];
557
574
  resolvedComments: any[];
558
575
  }>;
576
+ getGroupedReviewDirectory: import('vue').ComputedRef<{
577
+ parentComments: any[];
578
+ resolvedComments: any[];
579
+ }>;
559
580
  hasOpenTrackedChanges: import('vue').ComputedRef<boolean>;
560
581
  getCommentsByPosition: import('vue').ComputedRef<{
561
582
  parentComments: any[];
@@ -652,6 +673,19 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
652
673
  removePendingComment: (superdoc: any) => void;
653
674
  cancelImportedTrackedChangeBootstrap: (documentId: string | null | undefined) => number;
654
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;
655
689
  processLoadedDocxComments: ({ superdoc, editor, comments, documentId, replacedFile }: {
656
690
  comments: any[];
657
691
  documentId: string;
@@ -691,14 +725,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
691
725
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
692
726
  setV2CommentsAdapter: (adapter: any) => void;
693
727
  getV2CommentsAdapter: (superdoc: any) => any;
694
- hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
695
- applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
696
- supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
697
- commentsGeneration: any;
698
- trackedChangesGeneration: any;
699
- };
700
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
728
+ applyReviewWindowFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, requestedCommentIds, requestedTrackedChangeIds, unresolvedCommentIds, trackedList, sourceCoverageRevision, evaluatedRevision, patch, }?: {}) => any;
729
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
701
730
  preparedInputs?: null | undefined;
731
+ pruneStale?: boolean | undefined;
702
732
  }) => any;
703
733
  isV2EditorActive: (superdoc: any) => boolean;
704
734
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
@@ -709,12 +739,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
709
739
  setV2TrackedChangesAdapter: (adapter: any) => void;
710
740
  getV2TrackedChangesAdapter: (superdoc: any) => any;
711
741
  getV2TrackedChangeRowCount: (documentId?: null) => number;
712
- hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
713
- trackedChangesListMode?: string | undefined;
714
- }) => Promise<any>;
715
- reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
742
+ reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, remappedPairs, allResolved, }?: {
716
743
  upsertIds?: never[] | undefined;
717
744
  removedIds?: never[] | undefined;
745
+ remappedPairs?: never[] | undefined;
718
746
  }) => Promise<{
719
747
  ok: boolean;
720
748
  reason: string;
@@ -723,7 +751,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
723
751
  unresolvedIds?: undefined;
724
752
  allResolved?: undefined;
725
753
  removedRows?: undefined;
726
- failures?: undefined;
754
+ removedIds?: undefined;
727
755
  } | {
728
756
  ok: boolean;
729
757
  items: never[];
@@ -732,29 +760,22 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
732
760
  allResolved: boolean;
733
761
  removedRows: any;
734
762
  reason?: undefined;
735
- failures?: undefined;
763
+ removedIds?: undefined;
736
764
  } | {
737
765
  ok: boolean;
738
766
  items: never[];
739
767
  resolvedIds: never[];
740
- unresolvedIds: never[];
741
- reason?: undefined;
742
- allResolved?: undefined;
743
- removedRows?: undefined;
744
- failures?: undefined;
745
- } | {
746
- ok: boolean;
747
- items: any[];
748
- resolvedIds: (string | null)[];
749
768
  unresolvedIds: (string | null)[];
750
- failures: any[];
769
+ removedIds: (string | null)[];
751
770
  reason?: undefined;
752
771
  allResolved?: undefined;
753
772
  removedRows?: undefined;
754
773
  }>;
755
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
774
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
756
775
  pruneStale?: boolean | undefined;
757
776
  preparedParams?: null | undefined;
777
+ liveIds?: null | undefined;
778
+ liveAnchorKeys?: null | undefined;
758
779
  }) => any;
759
780
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
760
- }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "cancelImportedTrackedChangeBootstrap" | "removeCommentsForDocument" | "processLoadedDocxComments" | "translateCommentsForExport" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "refreshTrackedChangeCommentsByIds" | "syncResolvedCommentsWithDocument" | "syncTrackedChangePositionsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "syncTrackedChangeComments" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "hydrateCommentsFromV2" | "applyReviewSnapshotFromV2" | "supersedeV2ReviewHydration" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
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">>;