superdoc 2.4.0-next.2 → 2.4.0-next.3

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/style.css CHANGED
@@ -1734,11 +1734,11 @@ img[data-v-c95b2073] {
1734
1734
  pointer-events: auto;
1735
1735
  }
1736
1736
 
1737
- .superdoc[data-v-d75089d2] {
1737
+ .superdoc[data-v-e489229f] {
1738
1738
  display: flex;
1739
1739
  position: relative;
1740
1740
  }
1741
- .sd-visually-hidden[data-v-d75089d2] {
1741
+ .sd-visually-hidden[data-v-e489229f] {
1742
1742
  position: absolute;
1743
1743
  width: 1px;
1744
1744
  height: 1px;
@@ -1749,30 +1749,30 @@ img[data-v-c95b2073] {
1749
1749
  white-space: nowrap;
1750
1750
  border: 0;
1751
1751
  }
1752
- .right-sidebar[data-v-d75089d2] {
1752
+ .right-sidebar[data-v-e489229f] {
1753
1753
  min-width: 320px;
1754
1754
  height: 100%;
1755
1755
  }
1756
- .floating-comments[data-v-d75089d2] {
1756
+ .floating-comments[data-v-e489229f] {
1757
1757
  min-width: 300px;
1758
1758
  width: 300px;
1759
1759
  height: 100%;
1760
1760
  overflow: visible;
1761
1761
  }
1762
- .superdoc__layers[data-v-d75089d2] {
1762
+ .superdoc__layers[data-v-e489229f] {
1763
1763
  height: 100%;
1764
1764
  position: relative;
1765
1765
  box-sizing: border-box;
1766
1766
  }
1767
- .superdoc__document[data-v-d75089d2] {
1767
+ .superdoc__document[data-v-e489229f] {
1768
1768
  width: 100%;
1769
1769
  position: relative;
1770
1770
  }
1771
- .superdoc__sub-document[data-v-d75089d2] {
1771
+ .superdoc__sub-document[data-v-e489229f] {
1772
1772
  width: 100%;
1773
1773
  position: relative;
1774
1774
  }
1775
- .superdoc__selection-layer[data-v-d75089d2] {
1775
+ .superdoc__selection-layer[data-v-e489229f] {
1776
1776
  position: absolute;
1777
1777
  min-width: 100%;
1778
1778
  min-height: 100%;
@@ -1783,13 +1783,13 @@ img[data-v-c95b2073] {
1783
1783
  /* SD-3497: PDF whiteboard overlay sits above the rendered PDF canvas but below
1784
1784
  the PDF comment anchors (z-index 6 in PdfCommentsLayer) so anchors stay
1785
1785
  clickable, and below the selection layer (z-index 10). */
1786
- .superdoc__whiteboard-layer[data-v-d75089d2] {
1786
+ .superdoc__whiteboard-layer[data-v-e489229f] {
1787
1787
  z-index: 4;
1788
1788
  }
1789
- .superdoc__temp-selection[data-v-d75089d2] {
1789
+ .superdoc__temp-selection[data-v-e489229f] {
1790
1790
  position: absolute;
1791
1791
  }
1792
- .superdoc__right-sidebar[data-v-d75089d2] {
1792
+ .superdoc__right-sidebar[data-v-e489229f] {
1793
1793
  width: 320px;
1794
1794
  min-width: 320px;
1795
1795
  padding: 0 10px;
@@ -1797,7 +1797,7 @@ img[data-v-c95b2073] {
1797
1797
  position: relative;
1798
1798
  z-index: 2;
1799
1799
  }
1800
- .superdoc__compact-comment-popover[data-v-d75089d2] {
1800
+ .superdoc__compact-comment-popover[data-v-e489229f] {
1801
1801
  position: absolute;
1802
1802
  top: 12px;
1803
1803
  right: 12px;
@@ -1806,14 +1806,14 @@ img[data-v-c95b2073] {
1806
1806
  }
1807
1807
 
1808
1808
  /* Tools styles */
1809
- .tools[data-v-d75089d2] {
1809
+ .tools[data-v-e489229f] {
1810
1810
  position: absolute;
1811
1811
  z-index: 3;
1812
1812
  display: flex;
1813
1813
  flex-direction: column;
1814
1814
  gap: var(--sd-ui-tools-gap, 6px);
1815
1815
  }
1816
- .tools-item[data-v-d75089d2] {
1816
+ .tools-item[data-v-e489229f] {
1817
1817
  display: flex;
1818
1818
  align-items: center;
1819
1819
  justify-content: center;
@@ -1824,10 +1824,10 @@ img[data-v-c95b2073] {
1824
1824
  cursor: pointer;
1825
1825
  position: relative;
1826
1826
  }
1827
- .tools-item i[data-v-d75089d2] {
1827
+ .tools-item i[data-v-e489229f] {
1828
1828
  cursor: pointer;
1829
1829
  }
1830
- .superdoc__tools-icon[data-v-d75089d2] {
1830
+ .superdoc__tools-icon[data-v-e489229f] {
1831
1831
  width: var(--sd-ui-tools-icon-size, 20px);
1832
1832
  height: var(--sd-ui-tools-icon-size, 20px);
1833
1833
  flex-shrink: 0;
@@ -1842,22 +1842,22 @@ img[data-v-c95b2073] {
1842
1842
 
1843
1843
  /* 834px is iPad screen size in portrait orientation */
1844
1844
  @media (max-width: 834px) {
1845
- .superdoc .superdoc__layers[data-v-d75089d2] {
1845
+ .superdoc .superdoc__layers[data-v-e489229f] {
1846
1846
  margin: 0;
1847
1847
  border: 0 !important;
1848
1848
  box-shadow: none;
1849
1849
  }
1850
- .superdoc__sub-document[data-v-d75089d2] {
1850
+ .superdoc__sub-document[data-v-e489229f] {
1851
1851
  max-width: 100%;
1852
1852
  }
1853
- .superdoc__right-sidebar[data-v-d75089d2] {
1853
+ .superdoc__right-sidebar[data-v-e489229f] {
1854
1854
  padding: 10px;
1855
1855
  position: relative;
1856
1856
  }
1857
1857
  }
1858
1858
 
1859
1859
  /* AI Writer styles */
1860
- .ai-writer-container[data-v-d75089d2] {
1860
+ .ai-writer-container[data-v-e489229f] {
1861
1861
  position: fixed;
1862
1862
  z-index: 1000;
1863
1863
  background: white;
@@ -1873,10 +1873,10 @@ img[data-v-c95b2073] {
1873
1873
  transform: translateY(-50%);
1874
1874
  z-index: 50;
1875
1875
  } */
1876
- .ai-tool > svg[data-v-d75089d2] {
1876
+ .ai-tool > svg[data-v-e489229f] {
1877
1877
  fill: transparent;
1878
1878
  }
1879
- .ai-tool[data-v-d75089d2]::before {
1879
+ .ai-tool[data-v-e489229f]::before {
1880
1880
  content: '';
1881
1881
  position: absolute;
1882
1882
  width: 20px;
@@ -1897,7 +1897,7 @@ img[data-v-c95b2073] {
1897
1897
  filter: brightness(1.2);
1898
1898
  transition: filter 0.2s ease;
1899
1899
  }
1900
- .ai-tool[data-v-d75089d2]:hover::before {
1900
+ .ai-tool[data-v-e489229f]:hover::before {
1901
1901
  filter: brightness(1.3);
1902
1902
  }
1903
1903
 
@@ -1734,11 +1734,11 @@ img[data-v-c95b2073] {
1734
1734
  pointer-events: auto;
1735
1735
  }
1736
1736
 
1737
- .superdoc[data-v-d75089d2] {
1737
+ .superdoc[data-v-e489229f] {
1738
1738
  display: flex;
1739
1739
  position: relative;
1740
1740
  }
1741
- .sd-visually-hidden[data-v-d75089d2] {
1741
+ .sd-visually-hidden[data-v-e489229f] {
1742
1742
  position: absolute;
1743
1743
  width: 1px;
1744
1744
  height: 1px;
@@ -1749,30 +1749,30 @@ img[data-v-c95b2073] {
1749
1749
  white-space: nowrap;
1750
1750
  border: 0;
1751
1751
  }
1752
- .right-sidebar[data-v-d75089d2] {
1752
+ .right-sidebar[data-v-e489229f] {
1753
1753
  min-width: 320px;
1754
1754
  height: 100%;
1755
1755
  }
1756
- .floating-comments[data-v-d75089d2] {
1756
+ .floating-comments[data-v-e489229f] {
1757
1757
  min-width: 300px;
1758
1758
  width: 300px;
1759
1759
  height: 100%;
1760
1760
  overflow: visible;
1761
1761
  }
1762
- .superdoc__layers[data-v-d75089d2] {
1762
+ .superdoc__layers[data-v-e489229f] {
1763
1763
  height: 100%;
1764
1764
  position: relative;
1765
1765
  box-sizing: border-box;
1766
1766
  }
1767
- .superdoc__document[data-v-d75089d2] {
1767
+ .superdoc__document[data-v-e489229f] {
1768
1768
  width: 100%;
1769
1769
  position: relative;
1770
1770
  }
1771
- .superdoc__sub-document[data-v-d75089d2] {
1771
+ .superdoc__sub-document[data-v-e489229f] {
1772
1772
  width: 100%;
1773
1773
  position: relative;
1774
1774
  }
1775
- .superdoc__selection-layer[data-v-d75089d2] {
1775
+ .superdoc__selection-layer[data-v-e489229f] {
1776
1776
  position: absolute;
1777
1777
  min-width: 100%;
1778
1778
  min-height: 100%;
@@ -1783,13 +1783,13 @@ img[data-v-c95b2073] {
1783
1783
  /* SD-3497: PDF whiteboard overlay sits above the rendered PDF canvas but below
1784
1784
  the PDF comment anchors (z-index 6 in PdfCommentsLayer) so anchors stay
1785
1785
  clickable, and below the selection layer (z-index 10). */
1786
- .superdoc__whiteboard-layer[data-v-d75089d2] {
1786
+ .superdoc__whiteboard-layer[data-v-e489229f] {
1787
1787
  z-index: 4;
1788
1788
  }
1789
- .superdoc__temp-selection[data-v-d75089d2] {
1789
+ .superdoc__temp-selection[data-v-e489229f] {
1790
1790
  position: absolute;
1791
1791
  }
1792
- .superdoc__right-sidebar[data-v-d75089d2] {
1792
+ .superdoc__right-sidebar[data-v-e489229f] {
1793
1793
  width: 320px;
1794
1794
  min-width: 320px;
1795
1795
  padding: 0 10px;
@@ -1797,7 +1797,7 @@ img[data-v-c95b2073] {
1797
1797
  position: relative;
1798
1798
  z-index: 2;
1799
1799
  }
1800
- .superdoc__compact-comment-popover[data-v-d75089d2] {
1800
+ .superdoc__compact-comment-popover[data-v-e489229f] {
1801
1801
  position: absolute;
1802
1802
  top: 12px;
1803
1803
  right: 12px;
@@ -1806,14 +1806,14 @@ img[data-v-c95b2073] {
1806
1806
  }
1807
1807
 
1808
1808
  /* Tools styles */
1809
- .tools[data-v-d75089d2] {
1809
+ .tools[data-v-e489229f] {
1810
1810
  position: absolute;
1811
1811
  z-index: 3;
1812
1812
  display: flex;
1813
1813
  flex-direction: column;
1814
1814
  gap: var(--sd-ui-tools-gap, 6px);
1815
1815
  }
1816
- .tools-item[data-v-d75089d2] {
1816
+ .tools-item[data-v-e489229f] {
1817
1817
  display: flex;
1818
1818
  align-items: center;
1819
1819
  justify-content: center;
@@ -1824,10 +1824,10 @@ img[data-v-c95b2073] {
1824
1824
  cursor: pointer;
1825
1825
  position: relative;
1826
1826
  }
1827
- .tools-item i[data-v-d75089d2] {
1827
+ .tools-item i[data-v-e489229f] {
1828
1828
  cursor: pointer;
1829
1829
  }
1830
- .superdoc__tools-icon[data-v-d75089d2] {
1830
+ .superdoc__tools-icon[data-v-e489229f] {
1831
1831
  width: var(--sd-ui-tools-icon-size, 20px);
1832
1832
  height: var(--sd-ui-tools-icon-size, 20px);
1833
1833
  flex-shrink: 0;
@@ -1842,22 +1842,22 @@ img[data-v-c95b2073] {
1842
1842
 
1843
1843
  /* 834px is iPad screen size in portrait orientation */
1844
1844
  @media (max-width: 834px) {
1845
- .superdoc .superdoc__layers[data-v-d75089d2] {
1845
+ .superdoc .superdoc__layers[data-v-e489229f] {
1846
1846
  margin: 0;
1847
1847
  border: 0 !important;
1848
1848
  box-shadow: none;
1849
1849
  }
1850
- .superdoc__sub-document[data-v-d75089d2] {
1850
+ .superdoc__sub-document[data-v-e489229f] {
1851
1851
  max-width: 100%;
1852
1852
  }
1853
- .superdoc__right-sidebar[data-v-d75089d2] {
1853
+ .superdoc__right-sidebar[data-v-e489229f] {
1854
1854
  padding: 10px;
1855
1855
  position: relative;
1856
1856
  }
1857
1857
  }
1858
1858
 
1859
1859
  /* AI Writer styles */
1860
- .ai-writer-container[data-v-d75089d2] {
1860
+ .ai-writer-container[data-v-e489229f] {
1861
1861
  position: fixed;
1862
1862
  z-index: 1000;
1863
1863
  background: white;
@@ -1873,10 +1873,10 @@ img[data-v-c95b2073] {
1873
1873
  transform: translateY(-50%);
1874
1874
  z-index: 50;
1875
1875
  } */
1876
- .ai-tool > svg[data-v-d75089d2] {
1876
+ .ai-tool > svg[data-v-e489229f] {
1877
1877
  fill: transparent;
1878
1878
  }
1879
- .ai-tool[data-v-d75089d2]::before {
1879
+ .ai-tool[data-v-e489229f]::before {
1880
1880
  content: '';
1881
1881
  position: absolute;
1882
1882
  width: 20px;
@@ -1897,7 +1897,7 @@ img[data-v-c95b2073] {
1897
1897
  filter: brightness(1.2);
1898
1898
  transition: filter 0.2s ease;
1899
1899
  }
1900
- .ai-tool[data-v-d75089d2]:hover::before {
1900
+ .ai-tool[data-v-e489229f]:hover::before {
1901
1901
  filter: brightness(1.3);
1902
1902
  }
1903
1903
 
@@ -9,6 +9,7 @@
9
9
  * one authoritative catalog after render instead of issuing one read per id.
10
10
  */
11
11
  export function getV2TrackedChangeMutationImpact(event: any): {
12
+ allResolved?: any;
12
13
  upsertIds: Set<any>;
13
14
  removedIds: Set<any>;
14
15
  remappedPairs: {
@@ -12,7 +12,7 @@ export function createV2ReviewMutationReconciler({ getContext, reconcile, hydrat
12
12
  onReconciled: any;
13
13
  }): {
14
14
  enqueue: (impact: any) => void;
15
- enqueueAfterPaint(impact: any, waitForPaint: any): void;
15
+ enqueueAfterPaint(impact: any, waitForPaint: any): Promise<any>;
16
16
  onRender: (supersedesInFlight?: boolean) => void;
17
17
  reset(): void;
18
18
  getPendingIds(): Set<any>;
@@ -157,7 +157,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
157
157
  retainedTrackedChangeIds?: Iterable<string>;
158
158
  }) => void;
159
159
  clearEditorCommentPositions: () => void;
160
- handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
160
+ handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
161
161
  superdoc: Object;
162
162
  params: Object;
163
163
  }) => void;
@@ -185,9 +185,13 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
185
185
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
186
186
  setV2CommentsAdapter: (adapter: any) => void;
187
187
  getV2CommentsAdapter: (superdoc: any) => any;
188
- hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
188
+ hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
189
189
  applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
190
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
190
+ supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
191
+ commentsGeneration: any;
192
+ trackedChangesGeneration: any;
193
+ };
194
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
191
195
  preparedInputs?: null | undefined;
192
196
  }) => any;
193
197
  isV2EditorActive: (superdoc: any) => boolean;
@@ -198,10 +202,11 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
198
202
  v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
199
203
  setV2TrackedChangesAdapter: (adapter: any) => void;
200
204
  getV2TrackedChangesAdapter: (superdoc: any) => any;
201
- hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, }?: {
205
+ getV2TrackedChangeRowCount: (documentId?: null) => number;
206
+ hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
202
207
  trackedChangesListMode?: string | undefined;
203
208
  }) => Promise<any>;
204
- reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
209
+ reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
205
210
  upsertIds?: never[] | undefined;
206
211
  removedIds?: never[] | undefined;
207
212
  }) => Promise<{
@@ -210,6 +215,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
210
215
  items?: undefined;
211
216
  resolvedIds?: undefined;
212
217
  unresolvedIds?: undefined;
218
+ allResolved?: undefined;
219
+ removedRows?: undefined;
220
+ failures?: undefined;
221
+ } | {
222
+ ok: boolean;
223
+ items: never[];
224
+ resolvedIds: never[];
225
+ unresolvedIds: never[];
226
+ allResolved: boolean;
227
+ removedRows: any;
228
+ reason?: undefined;
213
229
  failures?: undefined;
214
230
  } | {
215
231
  ok: boolean;
@@ -217,6 +233,8 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
217
233
  resolvedIds: never[];
218
234
  unresolvedIds: never[];
219
235
  reason?: undefined;
236
+ allResolved?: undefined;
237
+ removedRows?: undefined;
220
238
  failures?: undefined;
221
239
  } | {
222
240
  ok: boolean;
@@ -225,8 +243,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
225
243
  unresolvedIds: (string | null)[];
226
244
  failures: any[];
227
245
  reason?: undefined;
246
+ allResolved?: undefined;
247
+ removedRows?: undefined;
228
248
  }>;
229
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
249
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
230
250
  pruneStale?: boolean | undefined;
231
251
  preparedParams?: null | undefined;
232
252
  }) => any;
@@ -390,7 +410,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
390
410
  retainedTrackedChangeIds?: Iterable<string>;
391
411
  }) => void;
392
412
  clearEditorCommentPositions: () => void;
393
- handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
413
+ handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
394
414
  superdoc: Object;
395
415
  params: Object;
396
416
  }) => void;
@@ -418,9 +438,13 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
418
438
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
419
439
  setV2CommentsAdapter: (adapter: any) => void;
420
440
  getV2CommentsAdapter: (superdoc: any) => any;
421
- hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
441
+ hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
422
442
  applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
423
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
443
+ supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
444
+ commentsGeneration: any;
445
+ trackedChangesGeneration: any;
446
+ };
447
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
424
448
  preparedInputs?: null | undefined;
425
449
  }) => any;
426
450
  isV2EditorActive: (superdoc: any) => boolean;
@@ -431,10 +455,11 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
431
455
  v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
432
456
  setV2TrackedChangesAdapter: (adapter: any) => void;
433
457
  getV2TrackedChangesAdapter: (superdoc: any) => any;
434
- hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, }?: {
458
+ getV2TrackedChangeRowCount: (documentId?: null) => number;
459
+ hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
435
460
  trackedChangesListMode?: string | undefined;
436
461
  }) => Promise<any>;
437
- reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
462
+ reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
438
463
  upsertIds?: never[] | undefined;
439
464
  removedIds?: never[] | undefined;
440
465
  }) => Promise<{
@@ -443,6 +468,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
443
468
  items?: undefined;
444
469
  resolvedIds?: undefined;
445
470
  unresolvedIds?: undefined;
471
+ allResolved?: undefined;
472
+ removedRows?: undefined;
473
+ failures?: undefined;
474
+ } | {
475
+ ok: boolean;
476
+ items: never[];
477
+ resolvedIds: never[];
478
+ unresolvedIds: never[];
479
+ allResolved: boolean;
480
+ removedRows: any;
481
+ reason?: undefined;
446
482
  failures?: undefined;
447
483
  } | {
448
484
  ok: boolean;
@@ -450,6 +486,8 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
450
486
  resolvedIds: never[];
451
487
  unresolvedIds: never[];
452
488
  reason?: undefined;
489
+ allResolved?: undefined;
490
+ removedRows?: undefined;
453
491
  failures?: undefined;
454
492
  } | {
455
493
  ok: boolean;
@@ -458,8 +496,10 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
458
496
  unresolvedIds: (string | null)[];
459
497
  failures: any[];
460
498
  reason?: undefined;
499
+ allResolved?: undefined;
500
+ removedRows?: undefined;
461
501
  }>;
462
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
502
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
463
503
  pruneStale?: boolean | undefined;
464
504
  preparedParams?: null | undefined;
465
505
  }) => any;
@@ -623,7 +663,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
623
663
  retainedTrackedChangeIds?: Iterable<string>;
624
664
  }) => void;
625
665
  clearEditorCommentPositions: () => void;
626
- handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
666
+ handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
627
667
  superdoc: Object;
628
668
  params: Object;
629
669
  }) => void;
@@ -651,9 +691,13 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
651
691
  v2CommentsAdapter: import('vue').ShallowRef<null, null>;
652
692
  setV2CommentsAdapter: (adapter: any) => void;
653
693
  getV2CommentsAdapter: (superdoc: any) => any;
654
- hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {}) => Promise<any>;
694
+ hydrateCommentsFromV2: ({ superdoc, adapter, documentId, signal, hydrationGeneration }?: {}) => Promise<any>;
655
695
  applyReviewSnapshotFromV2: ({ superdoc, commentsAdapter, trackedChangesAdapter, documentId, commentItems, trackedChangeItems, trackedList, patch, }?: {}) => any;
656
- reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs }?: {
696
+ supersedeV2ReviewHydration: ({ commentsAdapter, trackedChangesAdapter }?: {}) => {
697
+ commentsGeneration: any;
698
+ trackedChangesGeneration: any;
699
+ };
700
+ reconcileCommentsFromV2: ({ superdoc, adapter, documentId, items, preparedInputs, hydrationGeneration, }?: {
657
701
  preparedInputs?: null | undefined;
658
702
  }) => any;
659
703
  isV2EditorActive: (superdoc: any) => boolean;
@@ -664,10 +708,11 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
664
708
  v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
665
709
  setV2TrackedChangesAdapter: (adapter: any) => void;
666
710
  getV2TrackedChangesAdapter: (superdoc: any) => any;
667
- hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, }?: {
711
+ getV2TrackedChangeRowCount: (documentId?: null) => number;
712
+ hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, signal, hydrationGeneration, }?: {
668
713
  trackedChangesListMode?: string | undefined;
669
714
  }) => Promise<any>;
670
- reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
715
+ reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
671
716
  upsertIds?: never[] | undefined;
672
717
  removedIds?: never[] | undefined;
673
718
  }) => Promise<{
@@ -676,6 +721,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
676
721
  items?: undefined;
677
722
  resolvedIds?: undefined;
678
723
  unresolvedIds?: undefined;
724
+ allResolved?: undefined;
725
+ removedRows?: undefined;
726
+ failures?: undefined;
727
+ } | {
728
+ ok: boolean;
729
+ items: never[];
730
+ resolvedIds: never[];
731
+ unresolvedIds: never[];
732
+ allResolved: boolean;
733
+ removedRows: any;
734
+ reason?: undefined;
679
735
  failures?: undefined;
680
736
  } | {
681
737
  ok: boolean;
@@ -683,6 +739,8 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
683
739
  resolvedIds: never[];
684
740
  unresolvedIds: never[];
685
741
  reason?: undefined;
742
+ allResolved?: undefined;
743
+ removedRows?: undefined;
686
744
  failures?: undefined;
687
745
  } | {
688
746
  ok: boolean;
@@ -691,10 +749,12 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
691
749
  unresolvedIds: (string | null)[];
692
750
  failures: any[];
693
751
  reason?: undefined;
752
+ allResolved?: undefined;
753
+ removedRows?: undefined;
694
754
  }>;
695
- reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
755
+ reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, hydrationGeneration, }?: {
696
756
  pruneStale?: boolean | undefined;
697
757
  preparedParams?: null | undefined;
698
758
  }) => any;
699
759
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
700
- }, "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" | "reconcileCommentsFromV2" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "hydrateTrackedChangesFromV2" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
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">>;