superdoc 2.4.0-next.2 → 2.4.0-next.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{create-super-doc-ui-DXdWuTzm.cjs → create-super-doc-ui-BHMQEL2y.cjs} +247 -25
- package/dist/chunks/{create-super-doc-ui-D4kk9AjM.es.js → create-super-doc-ui-Dli6Wq70.es.js} +247 -25
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +23 -23
- package/dist/style.layered.css +23 -23
- package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +1 -0
- package/dist/superdoc/src/helpers/v2-review-mutation-reconciler.d.ts +1 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +100 -22
- package/dist/superdoc/src/stores/superdoc-store.d.ts +300 -66
- package/dist/superdoc.cjs +496 -45
- package/dist/superdoc.es.js +496 -45
- 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 +2 -2
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-
|
|
1737
|
+
.superdoc[data-v-c3bc8a46] {
|
|
1738
1738
|
display: flex;
|
|
1739
1739
|
position: relative;
|
|
1740
1740
|
}
|
|
1741
|
-
.sd-visually-hidden[data-v-
|
|
1741
|
+
.sd-visually-hidden[data-v-c3bc8a46] {
|
|
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-
|
|
1752
|
+
.right-sidebar[data-v-c3bc8a46] {
|
|
1753
1753
|
min-width: 320px;
|
|
1754
1754
|
height: 100%;
|
|
1755
1755
|
}
|
|
1756
|
-
.floating-comments[data-v-
|
|
1756
|
+
.floating-comments[data-v-c3bc8a46] {
|
|
1757
1757
|
min-width: 300px;
|
|
1758
1758
|
width: 300px;
|
|
1759
1759
|
height: 100%;
|
|
1760
1760
|
overflow: visible;
|
|
1761
1761
|
}
|
|
1762
|
-
.superdoc__layers[data-v-
|
|
1762
|
+
.superdoc__layers[data-v-c3bc8a46] {
|
|
1763
1763
|
height: 100%;
|
|
1764
1764
|
position: relative;
|
|
1765
1765
|
box-sizing: border-box;
|
|
1766
1766
|
}
|
|
1767
|
-
.superdoc__document[data-v-
|
|
1767
|
+
.superdoc__document[data-v-c3bc8a46] {
|
|
1768
1768
|
width: 100%;
|
|
1769
1769
|
position: relative;
|
|
1770
1770
|
}
|
|
1771
|
-
.superdoc__sub-document[data-v-
|
|
1771
|
+
.superdoc__sub-document[data-v-c3bc8a46] {
|
|
1772
1772
|
width: 100%;
|
|
1773
1773
|
position: relative;
|
|
1774
1774
|
}
|
|
1775
|
-
.superdoc__selection-layer[data-v-
|
|
1775
|
+
.superdoc__selection-layer[data-v-c3bc8a46] {
|
|
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-
|
|
1786
|
+
.superdoc__whiteboard-layer[data-v-c3bc8a46] {
|
|
1787
1787
|
z-index: 4;
|
|
1788
1788
|
}
|
|
1789
|
-
.superdoc__temp-selection[data-v-
|
|
1789
|
+
.superdoc__temp-selection[data-v-c3bc8a46] {
|
|
1790
1790
|
position: absolute;
|
|
1791
1791
|
}
|
|
1792
|
-
.superdoc__right-sidebar[data-v-
|
|
1792
|
+
.superdoc__right-sidebar[data-v-c3bc8a46] {
|
|
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-
|
|
1800
|
+
.superdoc__compact-comment-popover[data-v-c3bc8a46] {
|
|
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-
|
|
1809
|
+
.tools[data-v-c3bc8a46] {
|
|
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-
|
|
1816
|
+
.tools-item[data-v-c3bc8a46] {
|
|
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-
|
|
1827
|
+
.tools-item i[data-v-c3bc8a46] {
|
|
1828
1828
|
cursor: pointer;
|
|
1829
1829
|
}
|
|
1830
|
-
.superdoc__tools-icon[data-v-
|
|
1830
|
+
.superdoc__tools-icon[data-v-c3bc8a46] {
|
|
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-
|
|
1845
|
+
.superdoc .superdoc__layers[data-v-c3bc8a46] {
|
|
1846
1846
|
margin: 0;
|
|
1847
1847
|
border: 0 !important;
|
|
1848
1848
|
box-shadow: none;
|
|
1849
1849
|
}
|
|
1850
|
-
.superdoc__sub-document[data-v-
|
|
1850
|
+
.superdoc__sub-document[data-v-c3bc8a46] {
|
|
1851
1851
|
max-width: 100%;
|
|
1852
1852
|
}
|
|
1853
|
-
.superdoc__right-sidebar[data-v-
|
|
1853
|
+
.superdoc__right-sidebar[data-v-c3bc8a46] {
|
|
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-
|
|
1860
|
+
.ai-writer-container[data-v-c3bc8a46] {
|
|
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-
|
|
1876
|
+
.ai-tool > svg[data-v-c3bc8a46] {
|
|
1877
1877
|
fill: transparent;
|
|
1878
1878
|
}
|
|
1879
|
-
.ai-tool[data-v-
|
|
1879
|
+
.ai-tool[data-v-c3bc8a46]::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-
|
|
1900
|
+
.ai-tool[data-v-c3bc8a46]:hover::before {
|
|
1901
1901
|
filter: brightness(1.3);
|
|
1902
1902
|
}
|
|
1903
1903
|
|
package/dist/style.layered.css
CHANGED
|
@@ -1734,11 +1734,11 @@ img[data-v-c95b2073] {
|
|
|
1734
1734
|
pointer-events: auto;
|
|
1735
1735
|
}
|
|
1736
1736
|
|
|
1737
|
-
.superdoc[data-v-
|
|
1737
|
+
.superdoc[data-v-c3bc8a46] {
|
|
1738
1738
|
display: flex;
|
|
1739
1739
|
position: relative;
|
|
1740
1740
|
}
|
|
1741
|
-
.sd-visually-hidden[data-v-
|
|
1741
|
+
.sd-visually-hidden[data-v-c3bc8a46] {
|
|
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-
|
|
1752
|
+
.right-sidebar[data-v-c3bc8a46] {
|
|
1753
1753
|
min-width: 320px;
|
|
1754
1754
|
height: 100%;
|
|
1755
1755
|
}
|
|
1756
|
-
.floating-comments[data-v-
|
|
1756
|
+
.floating-comments[data-v-c3bc8a46] {
|
|
1757
1757
|
min-width: 300px;
|
|
1758
1758
|
width: 300px;
|
|
1759
1759
|
height: 100%;
|
|
1760
1760
|
overflow: visible;
|
|
1761
1761
|
}
|
|
1762
|
-
.superdoc__layers[data-v-
|
|
1762
|
+
.superdoc__layers[data-v-c3bc8a46] {
|
|
1763
1763
|
height: 100%;
|
|
1764
1764
|
position: relative;
|
|
1765
1765
|
box-sizing: border-box;
|
|
1766
1766
|
}
|
|
1767
|
-
.superdoc__document[data-v-
|
|
1767
|
+
.superdoc__document[data-v-c3bc8a46] {
|
|
1768
1768
|
width: 100%;
|
|
1769
1769
|
position: relative;
|
|
1770
1770
|
}
|
|
1771
|
-
.superdoc__sub-document[data-v-
|
|
1771
|
+
.superdoc__sub-document[data-v-c3bc8a46] {
|
|
1772
1772
|
width: 100%;
|
|
1773
1773
|
position: relative;
|
|
1774
1774
|
}
|
|
1775
|
-
.superdoc__selection-layer[data-v-
|
|
1775
|
+
.superdoc__selection-layer[data-v-c3bc8a46] {
|
|
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-
|
|
1786
|
+
.superdoc__whiteboard-layer[data-v-c3bc8a46] {
|
|
1787
1787
|
z-index: 4;
|
|
1788
1788
|
}
|
|
1789
|
-
.superdoc__temp-selection[data-v-
|
|
1789
|
+
.superdoc__temp-selection[data-v-c3bc8a46] {
|
|
1790
1790
|
position: absolute;
|
|
1791
1791
|
}
|
|
1792
|
-
.superdoc__right-sidebar[data-v-
|
|
1792
|
+
.superdoc__right-sidebar[data-v-c3bc8a46] {
|
|
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-
|
|
1800
|
+
.superdoc__compact-comment-popover[data-v-c3bc8a46] {
|
|
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-
|
|
1809
|
+
.tools[data-v-c3bc8a46] {
|
|
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-
|
|
1816
|
+
.tools-item[data-v-c3bc8a46] {
|
|
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-
|
|
1827
|
+
.tools-item i[data-v-c3bc8a46] {
|
|
1828
1828
|
cursor: pointer;
|
|
1829
1829
|
}
|
|
1830
|
-
.superdoc__tools-icon[data-v-
|
|
1830
|
+
.superdoc__tools-icon[data-v-c3bc8a46] {
|
|
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-
|
|
1845
|
+
.superdoc .superdoc__layers[data-v-c3bc8a46] {
|
|
1846
1846
|
margin: 0;
|
|
1847
1847
|
border: 0 !important;
|
|
1848
1848
|
box-shadow: none;
|
|
1849
1849
|
}
|
|
1850
|
-
.superdoc__sub-document[data-v-
|
|
1850
|
+
.superdoc__sub-document[data-v-c3bc8a46] {
|
|
1851
1851
|
max-width: 100%;
|
|
1852
1852
|
}
|
|
1853
|
-
.superdoc__right-sidebar[data-v-
|
|
1853
|
+
.superdoc__right-sidebar[data-v-c3bc8a46] {
|
|
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-
|
|
1860
|
+
.ai-writer-container[data-v-c3bc8a46] {
|
|
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-
|
|
1876
|
+
.ai-tool > svg[data-v-c3bc8a46] {
|
|
1877
1877
|
fill: transparent;
|
|
1878
1878
|
}
|
|
1879
|
-
.ai-tool[data-v-
|
|
1879
|
+
.ai-tool[data-v-c3bc8a46]::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-
|
|
1900
|
+
.ai-tool[data-v-c3bc8a46]:hover::before {
|
|
1901
1901
|
filter: brightness(1.3);
|
|
1902
1902
|
}
|
|
1903
1903
|
|
|
@@ -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):
|
|
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,10 +185,17 @@ 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 }?: {
|
|
189
|
-
|
|
190
|
-
|
|
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, }?: {
|
|
191
197
|
preparedInputs?: null | undefined;
|
|
198
|
+
pruneStale?: boolean | undefined;
|
|
192
199
|
}) => any;
|
|
193
200
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
194
201
|
replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
|
|
@@ -198,10 +205,12 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
198
205
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
199
206
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
200
207
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
201
|
-
|
|
208
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
209
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
|
|
202
210
|
trackedChangesListMode?: string | undefined;
|
|
211
|
+
reconciliationBatchSize?: number | undefined;
|
|
203
212
|
}) => Promise<any>;
|
|
204
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
213
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
205
214
|
upsertIds?: never[] | undefined;
|
|
206
215
|
removedIds?: never[] | undefined;
|
|
207
216
|
}) => Promise<{
|
|
@@ -210,14 +219,27 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
210
219
|
items?: undefined;
|
|
211
220
|
resolvedIds?: undefined;
|
|
212
221
|
unresolvedIds?: undefined;
|
|
222
|
+
allResolved?: undefined;
|
|
223
|
+
removedRows?: undefined;
|
|
213
224
|
failures?: undefined;
|
|
214
225
|
} | {
|
|
215
226
|
ok: boolean;
|
|
216
227
|
items: never[];
|
|
217
228
|
resolvedIds: never[];
|
|
218
229
|
unresolvedIds: never[];
|
|
230
|
+
allResolved: boolean;
|
|
231
|
+
removedRows: any;
|
|
219
232
|
reason?: undefined;
|
|
220
233
|
failures?: undefined;
|
|
234
|
+
} | {
|
|
235
|
+
ok: boolean;
|
|
236
|
+
items: never[];
|
|
237
|
+
resolvedIds: never[];
|
|
238
|
+
unresolvedIds: never[];
|
|
239
|
+
reason?: undefined;
|
|
240
|
+
allResolved?: undefined;
|
|
241
|
+
removedRows?: undefined;
|
|
242
|
+
failures?: undefined;
|
|
221
243
|
} | {
|
|
222
244
|
ok: boolean;
|
|
223
245
|
items: any[];
|
|
@@ -225,10 +247,14 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
225
247
|
unresolvedIds: (string | null)[];
|
|
226
248
|
failures: any[];
|
|
227
249
|
reason?: undefined;
|
|
250
|
+
allResolved?: undefined;
|
|
251
|
+
removedRows?: undefined;
|
|
228
252
|
}>;
|
|
229
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
|
|
253
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
|
|
230
254
|
pruneStale?: boolean | undefined;
|
|
231
255
|
preparedParams?: null | undefined;
|
|
256
|
+
liveIds?: null | undefined;
|
|
257
|
+
liveAnchorKeys?: null | undefined;
|
|
232
258
|
}) => any;
|
|
233
259
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
234
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<{
|
|
@@ -390,7 +416,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
390
416
|
retainedTrackedChangeIds?: Iterable<string>;
|
|
391
417
|
}) => void;
|
|
392
418
|
clearEditorCommentPositions: () => void;
|
|
393
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
419
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
394
420
|
superdoc: Object;
|
|
395
421
|
params: Object;
|
|
396
422
|
}) => void;
|
|
@@ -418,10 +444,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
418
444
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
419
445
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
420
446
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
421
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {
|
|
422
|
-
|
|
423
|
-
|
|
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, }?: {
|
|
424
456
|
preparedInputs?: null | undefined;
|
|
457
|
+
pruneStale?: boolean | undefined;
|
|
425
458
|
}) => any;
|
|
426
459
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
427
460
|
replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
|
|
@@ -431,10 +464,12 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
431
464
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
432
465
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
433
466
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
434
|
-
|
|
467
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
468
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
|
|
435
469
|
trackedChangesListMode?: string | undefined;
|
|
470
|
+
reconciliationBatchSize?: number | undefined;
|
|
436
471
|
}) => Promise<any>;
|
|
437
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
472
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
438
473
|
upsertIds?: never[] | undefined;
|
|
439
474
|
removedIds?: never[] | undefined;
|
|
440
475
|
}) => Promise<{
|
|
@@ -443,14 +478,27 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
443
478
|
items?: undefined;
|
|
444
479
|
resolvedIds?: undefined;
|
|
445
480
|
unresolvedIds?: undefined;
|
|
481
|
+
allResolved?: undefined;
|
|
482
|
+
removedRows?: undefined;
|
|
446
483
|
failures?: undefined;
|
|
447
484
|
} | {
|
|
448
485
|
ok: boolean;
|
|
449
486
|
items: never[];
|
|
450
487
|
resolvedIds: never[];
|
|
451
488
|
unresolvedIds: never[];
|
|
489
|
+
allResolved: boolean;
|
|
490
|
+
removedRows: any;
|
|
452
491
|
reason?: undefined;
|
|
453
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;
|
|
454
502
|
} | {
|
|
455
503
|
ok: boolean;
|
|
456
504
|
items: any[];
|
|
@@ -458,10 +506,14 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
458
506
|
unresolvedIds: (string | null)[];
|
|
459
507
|
failures: any[];
|
|
460
508
|
reason?: undefined;
|
|
509
|
+
allResolved?: undefined;
|
|
510
|
+
removedRows?: undefined;
|
|
461
511
|
}>;
|
|
462
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
|
|
512
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
|
|
463
513
|
pruneStale?: boolean | undefined;
|
|
464
514
|
preparedParams?: null | undefined;
|
|
515
|
+
liveIds?: null | undefined;
|
|
516
|
+
liveAnchorKeys?: null | undefined;
|
|
465
517
|
}) => any;
|
|
466
518
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
467
519
|
}, "getConfig" | "documentsWithConverations" | "getGroupedComments" | "hasOpenTrackedChanges" | "getCommentsByPosition" | "getFloatingComments" | "getFloatingCommentInstances" | "isViewingMode" | "shouldRenderReviewInViewing">, Pick<{
|
|
@@ -623,7 +675,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
623
675
|
retainedTrackedChangeIds?: Iterable<string>;
|
|
624
676
|
}) => void;
|
|
625
677
|
clearEditorCommentPositions: () => void;
|
|
626
|
-
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState }: {
|
|
678
|
+
handleTrackedChangeUpdate: ({ superdoc, params, broadcastChanges, documentState, trackedChangeIdentityIndex, }: {
|
|
627
679
|
superdoc: Object;
|
|
628
680
|
params: Object;
|
|
629
681
|
}) => void;
|
|
@@ -651,10 +703,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
651
703
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
652
704
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
653
705
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
654
|
-
hydrateCommentsFromV2: ({ superdoc, adapter, documentId }?: {
|
|
655
|
-
|
|
656
|
-
|
|
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, }?: {
|
|
657
715
|
preparedInputs?: null | undefined;
|
|
716
|
+
pruneStale?: boolean | undefined;
|
|
658
717
|
}) => any;
|
|
659
718
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
660
719
|
replyCommentV2: ({ superdoc, parentCommentId, text }?: {}) => Promise<any>;
|
|
@@ -664,10 +723,12 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
664
723
|
v2TrackedChangesAdapter: import('vue').ShallowRef<null, null>;
|
|
665
724
|
setV2TrackedChangesAdapter: (adapter: any) => void;
|
|
666
725
|
getV2TrackedChangesAdapter: (superdoc: any) => any;
|
|
667
|
-
|
|
726
|
+
getV2TrackedChangeRowCount: (documentId?: null) => number;
|
|
727
|
+
hydrateTrackedChangesFromV2: ({ superdoc, adapter, documentId, trackedChangesListMode, refreshReason, blocking, isCurrent, targetIds, reconciliationBatchSize, signal, hydrationGeneration, }?: {
|
|
668
728
|
trackedChangesListMode?: string | undefined;
|
|
729
|
+
reconciliationBatchSize?: number | undefined;
|
|
669
730
|
}) => Promise<any>;
|
|
670
|
-
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, }?: {
|
|
731
|
+
reconcileTrackedChangeMutationFromV2: ({ superdoc, adapter, documentId, upsertIds, removedIds, allResolved, }?: {
|
|
671
732
|
upsertIds?: never[] | undefined;
|
|
672
733
|
removedIds?: never[] | undefined;
|
|
673
734
|
}) => Promise<{
|
|
@@ -676,6 +737,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
676
737
|
items?: undefined;
|
|
677
738
|
resolvedIds?: undefined;
|
|
678
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;
|
|
679
751
|
failures?: undefined;
|
|
680
752
|
} | {
|
|
681
753
|
ok: boolean;
|
|
@@ -683,6 +755,8 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
683
755
|
resolvedIds: never[];
|
|
684
756
|
unresolvedIds: never[];
|
|
685
757
|
reason?: undefined;
|
|
758
|
+
allResolved?: undefined;
|
|
759
|
+
removedRows?: undefined;
|
|
686
760
|
failures?: undefined;
|
|
687
761
|
} | {
|
|
688
762
|
ok: boolean;
|
|
@@ -691,10 +765,14 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
691
765
|
unresolvedIds: (string | null)[];
|
|
692
766
|
failures: any[];
|
|
693
767
|
reason?: undefined;
|
|
768
|
+
allResolved?: undefined;
|
|
769
|
+
removedRows?: undefined;
|
|
694
770
|
}>;
|
|
695
|
-
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, }?: {
|
|
771
|
+
reconcileTrackedChangesFromV2: ({ superdoc, adapter, documentId, items, pruneStale, preparedParams, liveIds: suppliedLiveIds, liveAnchorKeys: suppliedLiveAnchorKeys, hydrationGeneration, }?: {
|
|
696
772
|
pruneStale?: boolean | undefined;
|
|
697
773
|
preparedParams?: null | undefined;
|
|
774
|
+
liveIds?: null | undefined;
|
|
775
|
+
liveAnchorKeys?: null | undefined;
|
|
698
776
|
}) => any;
|
|
699
777
|
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">>;
|
|
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">>;
|