superdoc 2.3.0 → 2.4.0-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +0 -1
  2. package/dist/chunks/{FindReplaceSurface-DLxnCQOB.cjs → FindReplaceSurface-9VkPw_-X.cjs} +3 -4
  3. package/dist/chunks/{FindReplaceSurface-BEW-1NhM.es.js → FindReplaceSurface-BuvaIrQ5.es.js} +2 -3
  4. package/dist/chunks/{PasswordPromptSurface-DMbfDvpQ.cjs → PasswordPromptSurface-Bu5xHm91.cjs} +2 -2
  5. package/dist/chunks/{PasswordPromptSurface-BA6HHqEa.es.js → PasswordPromptSurface-Bz9_sKhX.es.js} +1 -1
  6. package/dist/chunks/{PdfViewer-CNOtyS-I.es.js → PdfViewer-CdVGB6Fe.es.js} +2 -2
  7. package/dist/chunks/{PdfViewer-CoFiGAhm.cjs → PdfViewer-D4eD2dV1.cjs} +3 -3
  8. package/dist/chunks/blank-docx-DP8RUPW-.cjs +7 -0
  9. package/dist/chunks/blank-docx-XRX6Ker2.es.js +2 -0
  10. package/dist/chunks/{create-super-doc-ui-CXCqHc2m.cjs → create-super-doc-ui-ByvmsAAG.cjs} +672 -190
  11. package/dist/chunks/{create-super-doc-ui-fxF2Q8Ib.es.js → create-super-doc-ui-DBXOhHdW.es.js} +667 -191
  12. package/dist/chunks/{eventemitter3-B60Fsz-a.es.js → eventemitter3-Bt2s0X0a.es.js} +1 -1
  13. package/dist/chunks/{eventemitter3-DCfwFVNn.cjs → eventemitter3-DqY4aSMf.cjs} +1 -1
  14. package/dist/chunks/{jszip-DzmwAHr3.es.js → jszip-C8srOKAO.es.js} +2 -2
  15. package/dist/chunks/{jszip-BdUBlUeG.cjs → jszip-Cs9JBLlJ.cjs} +13 -1
  16. package/dist/chunks/{rolldown-runtime-_dR15c8t.cjs → rolldown-runtime-1Y-nnZJ3.cjs} +0 -28
  17. package/dist/chunks/{rolldown-runtime-BJVcqBbz.es.js → rolldown-runtime-D7PMmH3s.es.js} +1 -17
  18. package/dist/collaboration-upgrade-engine.cjs +1 -1
  19. package/dist/collaboration-upgrade-engine.es.js +1 -1
  20. package/dist/document-api/src/comments/comment-create-attribution.d.ts +2 -0
  21. package/dist/document-api/src/comments/comments.d.ts +13 -4
  22. package/dist/document-api/src/comments/comments.types.d.ts +39 -0
  23. package/dist/document-api/src/content-controls/content-controls.types.d.ts +2 -0
  24. package/dist/document-api/src/contract/metadata-types.d.ts +18 -0
  25. package/dist/document-api/src/contract/operation-definitions.d.ts +1 -1
  26. package/dist/document-api/src/index.d.ts +2 -2
  27. package/dist/document-api/src/types/track-changes.types.d.ts +1 -3
  28. package/dist/layout-engine/painters/dom/src/_test-utils.d.ts +3 -2
  29. package/dist/layout-engine/painters/dom/src/index.d.ts +24 -19
  30. package/dist/layout-engine/painters/dom/src/page-content.d.ts +107 -39
  31. package/dist/layout-engine/painters/dom/src/persistent-page-surface.d.ts +144 -0
  32. package/dist/layout-engine/painters/dom/src/pm-position-validation.d.ts +1 -1
  33. package/dist/layout-engine/painters/dom/src/renderer.d.ts +50 -106
  34. package/dist/layout-engine/painters/dom/src/sdt/boundaries.d.ts +1 -1
  35. package/dist/public/ui-react.cjs +2 -2
  36. package/dist/public/ui-react.es.js +1 -1
  37. package/dist/public/ui.cjs +1 -1
  38. package/dist/public/ui.es.js +1 -1
  39. package/dist/style.css +138 -131
  40. package/dist/style.layered.css +138 -131
  41. package/dist/superdoc/src/core/types/index.d.ts +383 -16
  42. package/dist/superdoc/src/helpers/floor.d.ts +1 -1
  43. package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +5 -0
  44. package/dist/superdoc/src/helpers/v2-review-mutation-reconciler.d.ts +1 -1
  45. package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +0 -1
  46. package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +1 -1
  47. package/dist/superdoc/src/public/index.d.cts +14 -0
  48. package/dist/superdoc/src/public/index.d.ts +7 -0
  49. package/dist/superdoc/src/public/ui/types.d.ts +25 -1
  50. package/dist/superdoc/src/stores/comments-store.d.ts +124 -22
  51. package/dist/superdoc/src/stores/superdoc-store.d.ts +372 -66
  52. package/dist/superdoc.cjs +5160 -668
  53. package/dist/superdoc.es.js +5163 -675
  54. package/dist-cdn/style.layered.css +1 -1
  55. package/dist-cdn/superdoc.min.css +1 -1
  56. package/dist-cdn/superdoc.min.js +37 -37
  57. package/package.json +5 -4
  58. package/dist/chunks/blank-docx-CJAXnJKp.es.js +0 -2
  59. package/dist/chunks/blank-docx-DA-G-3VB.cjs +0 -7
  60. /package/dist/chunks/{_plugin-vue_export-helper-BTwbGDKw.cjs → _plugin-vue_export-helper-CZ1Nl59K.cjs} +0 -0
  61. /package/dist/chunks/{_plugin-vue_export-helper-CInC0bKI.es.js → _plugin-vue_export-helper-DSMAhhwD.es.js} +0 -0
  62. /package/dist/chunks/{constants-CY3R3_kF.es.js → constants-BfH0br5u.es.js} +0 -0
  63. /package/dist/chunks/{constants-sbCZ2O_A.cjs → constants-D7TNtyJd.cjs} +0 -0
@@ -837,7 +837,19 @@ export interface CommentsHandle extends SnapshotSubscribable<CommentsSlice> {
837
837
  list(query?: CommentsListQuery): readonly CommentInfo[];
838
838
  /** Resolve a single comment by id from the best-known loaded state. */
839
839
  getById(commentId: string): CommentInfo | null;
840
- /** Create a comment from a frozen selection capture. */
840
+ /**
841
+ * Create a comment from a frozen selection capture.
842
+ *
843
+ * A capture carrying neither `target` nor `selectionTarget` fails closed with
844
+ * the same `NO_SELECTION` receipt {@link createFromSelection} mints for an
845
+ * empty selection, because both describe the same user-visible mistake:
846
+ * commenting with nothing selected. A capture that *has* a target which no
847
+ * longer resolves is a different failure, and keeps the Document API's own
848
+ * receipt so the reason stays specific.
849
+ *
850
+ * `capturedAt` is provenance for the consumer, not an expiry. A capture stays
851
+ * usable while its target resolves; elapsed time alone never invalidates it.
852
+ */
841
853
  createFromCapture(capture: CommentAnchorCapture, input: {
842
854
  text: string;
843
855
  }): WorkflowReceipt;
@@ -853,6 +865,18 @@ export interface CommentsHandle extends SnapshotSubscribable<CommentsSlice> {
853
865
  reply(commentId: string, input: {
854
866
  text: string;
855
867
  }): WorkflowReceipt;
868
+ /**
869
+ * Replace a comment's body text through the Document API
870
+ * (`comments.patch({ commentId, text })`).
871
+ *
872
+ * Gated by the comments `readOnly` policy like every other comment write.
873
+ * `allowResolve` is deliberately NOT consulted: that policy forbids only the
874
+ * resolve/reopen transition, and an application that may not resolve threads
875
+ * can still let an author correct their own wording.
876
+ */
877
+ edit(commentId: string, input: {
878
+ text: string;
879
+ }): WorkflowReceipt;
856
880
  /** Mark a comment resolved. */
857
881
  resolve(commentId: string): WorkflowReceipt;
858
882
  /** Reopen a resolved comment. */
@@ -152,9 +152,12 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
152
152
  replacedFile?: boolean | undefined;
153
153
  }) => void;
154
154
  translateCommentsForExport: () => any[];
155
- handleEditorLocationsUpdate: (allCommentPositions: any) => void;
155
+ handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
156
+ retainMissingTrackedChangeGeometry?: boolean;
157
+ retainedTrackedChangeIds?: Iterable<string>;
158
+ }) => void;
156
159
  clearEditorCommentPositions: () => void;
157
- handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
160
+ handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
158
161
  superdoc: Object;
159
162
  params: Object;
160
163
  }) => void;
@@ -182,8 +185,18 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
182
185
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
183
186
  setV2CommentsAdapter: (adapter: any) => void;
184
187
  getV2CommentsAdapter: (superdoc: any) => any;
185
- hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
186
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items }?: {}) => any;
188
+ hydrateCommentsFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, isCurrent, signal, hydrationGeneration, }?: {
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
+ };
196
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
197
+ preparedInputs?: null | undefined;
198
+ pruneStale?: boolean | undefined;
199
+ }) => any;
187
200
  isV2EditorActive: (superdoc: any) => boolean;
188
201
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
189
202
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -192,10 +205,12 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
192
205
  v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
193
206
  setV2TrackedChangesAdapter: (adapter: any) => void;
194
207
  getV2TrackedChangesAdapter: (superdoc: any) => any;
195
- hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, }?: {
208
+ getV2TrackedChangeRowCount: (documentId?: null) => number;
209
+ hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
196
210
  trackedChangesListMode?: string | undefined;
211
+ reconciliationBatchSize?: number | undefined;
197
212
  }) => Promise<any>;
198
- reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
213
+ reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
199
214
  upsertIds?: never[] | undefined;
200
215
  removedIds?: never[] | undefined;
201
216
  }) => Promise<{
@@ -204,6 +219,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
204
219
  items?: undefined;
205
220
  resolvedIds?: undefined;
206
221
  unresolvedIds?: undefined;
222
+ allResolved?: undefined;
223
+ removedRows?: undefined;
224
+ failures?: undefined;
225
+ } | {
226
+ ok: boolean;
227
+ items: never[];
228
+ resolvedIds: never[];
229
+ unresolvedIds: never[];
230
+ allResolved: boolean;
231
+ removedRows: any;
232
+ reason?: undefined;
207
233
  failures?: undefined;
208
234
  } | {
209
235
  ok: boolean;
@@ -211,6 +237,8 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
211
237
  resolvedIds: never[];
212
238
  unresolvedIds: never[];
213
239
  reason?: undefined;
240
+ allResolved?: undefined;
241
+ removedRows?: undefined;
214
242
  failures?: undefined;
215
243
  } | {
216
244
  ok: boolean;
@@ -219,10 +247,16 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
219
247
  unresolvedIds: (string | null)[];
220
248
  failures: any[];
221
249
  reason?: undefined;
250
+ allResolved?: undefined;
251
+ removedRows?: undefined;
222
252
  }>;
223
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
253
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
224
254
  pruneStale?: boolean | undefined;
255
+ preparedParams?: null | undefined;
256
+ liveIds?: null | undefined;
257
+ liveAnchorKeys?: null | undefined;
225
258
  }) => any;
259
+ remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
226
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<{
227
261
  COMMENT_EVENTS: {
228
262
  readonly RESOLVED: "resolved";
@@ -377,9 +411,12 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
377
411
  replacedFile?: boolean | undefined;
378
412
  }) => void;
379
413
  translateCommentsForExport: () => any[];
380
- handleEditorLocationsUpdate: (allCommentPositions: any) => void;
414
+ handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
415
+ retainMissingTrackedChangeGeometry?: boolean;
416
+ retainedTrackedChangeIds?: Iterable<string>;
417
+ }) => void;
381
418
  clearEditorCommentPositions: () => void;
382
- handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
419
+ handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
383
420
  superdoc: Object;
384
421
  params: Object;
385
422
  }) => void;
@@ -407,8 +444,18 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
407
444
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
408
445
  setV2CommentsAdapter: (adapter: any) => void;
409
446
  getV2CommentsAdapter: (superdoc: any) => any;
410
- hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
411
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items }?: {}) => any;
447
+ hydrateCommentsFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, isCurrent, signal, hydrationGeneration, }?: {
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
+ };
455
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
456
+ preparedInputs?: null | undefined;
457
+ pruneStale?: boolean | undefined;
458
+ }) => any;
412
459
  isV2EditorActive: (superdoc: any) => boolean;
413
460
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
414
461
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -417,10 +464,12 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
417
464
  v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
418
465
  setV2TrackedChangesAdapter: (adapter: any) => void;
419
466
  getV2TrackedChangesAdapter: (superdoc: any) => any;
420
- hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, }?: {
467
+ getV2TrackedChangeRowCount: (documentId?: null) => number;
468
+ hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
421
469
  trackedChangesListMode?: string | undefined;
470
+ reconciliationBatchSize?: number | undefined;
422
471
  }) => Promise<any>;
423
- reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
472
+ reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
424
473
  upsertIds?: never[] | undefined;
425
474
  removedIds?: never[] | undefined;
426
475
  }) => Promise<{
@@ -429,14 +478,27 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
429
478
  items?: undefined;
430
479
  resolvedIds?: undefined;
431
480
  unresolvedIds?: undefined;
481
+ allResolved?: undefined;
482
+ removedRows?: undefined;
432
483
  failures?: undefined;
433
484
  } | {
434
485
  ok: boolean;
435
486
  items: never[];
436
487
  resolvedIds: never[];
437
488
  unresolvedIds: never[];
489
+ allResolved: boolean;
490
+ removedRows: any;
438
491
  reason?: undefined;
439
492
  failures?: undefined;
493
+ } | {
494
+ ok: boolean;
495
+ items: never[];
496
+ resolvedIds: never[];
497
+ unresolvedIds: never[];
498
+ reason?: undefined;
499
+ allResolved?: undefined;
500
+ removedRows?: undefined;
501
+ failures?: undefined;
440
502
  } | {
441
503
  ok: boolean;
442
504
  items: any[];
@@ -444,10 +506,16 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
444
506
  unresolvedIds: (string | null)[];
445
507
  failures: any[];
446
508
  reason?: undefined;
509
+ allResolved?: undefined;
510
+ removedRows?: undefined;
447
511
  }>;
448
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
512
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
449
513
  pruneStale?: boolean | undefined;
514
+ preparedParams?: null | undefined;
515
+ liveIds?: null | undefined;
516
+ liveAnchorKeys?: null | undefined;
450
517
  }) => any;
518
+ remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
451
519
  }, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
452
520
  COMMENT_EVENTS: {
453
521
  readonly RESOLVED: "resolved";
@@ -602,9 +670,12 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
602
670
  replacedFile?: boolean | undefined;
603
671
  }) => void;
604
672
  translateCommentsForExport: () => any[];
605
- handleEditorLocationsUpdate: (allCommentPositions: any) => void;
673
+ handleEditorLocationsUpdate: (allCommentPositions: Object, options?: {
674
+ retainMissingTrackedChangeGeometry?: boolean;
675
+ retainedTrackedChangeIds?: Iterable<string>;
676
+ }) => void;
606
677
  clearEditorCommentPositions: () => void;
607
- handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
678
+ handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
608
679
  superdoc: Object;
609
680
  params: Object;
610
681
  }) => void;
@@ -632,8 +703,18 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
632
703
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
633
704
  setV2CommentsAdapter: (adapter: any) => void;
634
705
  getV2CommentsAdapter: (superdoc: any) => any;
635
- hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
636
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items }?: {}) => any;
706
+ hydrateCommentsFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, isCurrent, signal, hydrationGeneration, }?: {
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
+ };
714
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, pruneStale, hydrationGeneration, }?: {
715
+ preparedInputs?: null | undefined;
716
+ pruneStale?: boolean | undefined;
717
+ }) => any;
637
718
  isV2EditorActive: (superdoc: any) => boolean;
638
719
  replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
639
720
  editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
@@ -642,10 +723,12 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
642
723
  v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
643
724
  setV2TrackedChangesAdapter: (adapter: any) => void;
644
725
  getV2TrackedChangesAdapter: (superdoc: any) => any;
645
- hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, }?: {
726
+ getV2TrackedChangeRowCount: (documentId?: null) => number;
727
+ hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
646
728
  trackedChangesListMode?: string | undefined;
729
+ reconciliationBatchSize?: number | undefined;
647
730
  }) => Promise<any>;
648
- reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
731
+ reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
649
732
  upsertIds?: never[] | undefined;
650
733
  removedIds?: never[] | undefined;
651
734
  }) => Promise<{
@@ -654,6 +737,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
654
737
  items?: undefined;
655
738
  resolvedIds?: undefined;
656
739
  unresolvedIds?: undefined;
740
+ allResolved?: undefined;
741
+ removedRows?: undefined;
742
+ failures?: undefined;
743
+ } | {
744
+ ok: boolean;
745
+ items: never[];
746
+ resolvedIds: never[];
747
+ unresolvedIds: never[];
748
+ allResolved: boolean;
749
+ removedRows: any;
750
+ reason?: undefined;
657
751
  failures?: undefined;
658
752
  } | {
659
753
  ok: boolean;
@@ -661,6 +755,8 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
661
755
  resolvedIds: never[];
662
756
  unresolvedIds: never[];
663
757
  reason?: undefined;
758
+ allResolved?: undefined;
759
+ removedRows?: undefined;
664
760
  failures?: undefined;
665
761
  } | {
666
762
  ok: boolean;
@@ -669,8 +765,14 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
669
765
  unresolvedIds: (string | null)[];
670
766
  failures: any[];
671
767
  reason?: undefined;
768
+ allResolved?: undefined;
769
+ removedRows?: undefined;
672
770
  }>;
673
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale }?: {
771
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
674
772
  pruneStale?: boolean | undefined;
773
+ preparedParams?: null | undefined;
774
+ liveIds?: null | undefined;
775
+ liveAnchorKeys?: null | undefined;
675
776
  }) => any;
676
- }, "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" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2">>;
777
+ 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" | "hydrateCommentsFromV2" | "applyReviewSnapshotFromV2" | "supersedeV2ReviewHydration" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;