superdoc 2.4.0-next.5 → 2.4.0-next.6
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/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/types/track-changes.types.d.ts +1 -3
- package/dist/style.css +23 -23
- package/dist/style.layered.css +23 -23
- package/dist/superdoc.cjs +7 -5
- package/dist/superdoc.es.js +7 -5
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +14 -14
- package/package.json +2 -2
|
@@ -7,7 +7,7 @@ const COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
7
7
|
var PRIVATE_ENGINE_INFO = (0, __superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
|
|
8
8
|
var ENGINE_INFO = Object.freeze({
|
|
9
9
|
...PRIVATE_ENGINE_INFO,
|
|
10
|
-
superdocVersion: "2.4.0-next.
|
|
10
|
+
superdocVersion: "2.4.0-next.6",
|
|
11
11
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
12
12
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
13
13
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
|
@@ -6,7 +6,7 @@ const COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
|
|
|
6
6
|
var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
|
|
7
7
|
var ENGINE_INFO = Object.freeze({
|
|
8
8
|
...PRIVATE_ENGINE_INFO,
|
|
9
|
-
superdocVersion: "2.4.0-next.
|
|
9
|
+
superdocVersion: "2.4.0-next.6",
|
|
10
10
|
roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
|
|
11
11
|
supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
|
|
12
12
|
supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
|
|
@@ -2,9 +2,7 @@ import { TextTarget, TrackedChangeAddress } from './address.js';
|
|
|
2
2
|
import { DiscoveryOutput } from './discovery.js';
|
|
3
3
|
import { StoryLocator } from './story.types.js';
|
|
4
4
|
/**
|
|
5
|
-
* Canonical v2 tracked-change broad-type vocabulary
|
|
6
|
-
* `../labs/tests/requirements/specs/tracked-changes-comments/tracked-changes-spec.md`
|
|
7
|
-
* §3 / §5.
|
|
5
|
+
* Canonical v2 tracked-change broad-type vocabulary.
|
|
8
6
|
*
|
|
9
7
|
* Public adapters MUST emit one of these values. Existing v1 emitters and
|
|
10
8
|
* tests still produce the legacy `insert` / `delete` / `format` strings; both
|
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-acf35f4b] {
|
|
1738
1738
|
display: flex;
|
|
1739
1739
|
position: relative;
|
|
1740
1740
|
}
|
|
1741
|
-
.sd-visually-hidden[data-v-
|
|
1741
|
+
.sd-visually-hidden[data-v-acf35f4b] {
|
|
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-acf35f4b] {
|
|
1753
1753
|
min-width: 320px;
|
|
1754
1754
|
height: 100%;
|
|
1755
1755
|
}
|
|
1756
|
-
.floating-comments[data-v-
|
|
1756
|
+
.floating-comments[data-v-acf35f4b] {
|
|
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-acf35f4b] {
|
|
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-acf35f4b] {
|
|
1768
1768
|
width: 100%;
|
|
1769
1769
|
position: relative;
|
|
1770
1770
|
}
|
|
1771
|
-
.superdoc__sub-document[data-v-
|
|
1771
|
+
.superdoc__sub-document[data-v-acf35f4b] {
|
|
1772
1772
|
width: 100%;
|
|
1773
1773
|
position: relative;
|
|
1774
1774
|
}
|
|
1775
|
-
.superdoc__selection-layer[data-v-
|
|
1775
|
+
.superdoc__selection-layer[data-v-acf35f4b] {
|
|
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-acf35f4b] {
|
|
1787
1787
|
z-index: 4;
|
|
1788
1788
|
}
|
|
1789
|
-
.superdoc__temp-selection[data-v-
|
|
1789
|
+
.superdoc__temp-selection[data-v-acf35f4b] {
|
|
1790
1790
|
position: absolute;
|
|
1791
1791
|
}
|
|
1792
|
-
.superdoc__right-sidebar[data-v-
|
|
1792
|
+
.superdoc__right-sidebar[data-v-acf35f4b] {
|
|
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-acf35f4b] {
|
|
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-acf35f4b] {
|
|
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-acf35f4b] {
|
|
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-acf35f4b] {
|
|
1828
1828
|
cursor: pointer;
|
|
1829
1829
|
}
|
|
1830
|
-
.superdoc__tools-icon[data-v-
|
|
1830
|
+
.superdoc__tools-icon[data-v-acf35f4b] {
|
|
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-acf35f4b] {
|
|
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-acf35f4b] {
|
|
1851
1851
|
max-width: 100%;
|
|
1852
1852
|
}
|
|
1853
|
-
.superdoc__right-sidebar[data-v-
|
|
1853
|
+
.superdoc__right-sidebar[data-v-acf35f4b] {
|
|
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-acf35f4b] {
|
|
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-acf35f4b] {
|
|
1877
1877
|
fill: transparent;
|
|
1878
1878
|
}
|
|
1879
|
-
.ai-tool[data-v-
|
|
1879
|
+
.ai-tool[data-v-acf35f4b]::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-acf35f4b]: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-acf35f4b] {
|
|
1738
1738
|
display: flex;
|
|
1739
1739
|
position: relative;
|
|
1740
1740
|
}
|
|
1741
|
-
.sd-visually-hidden[data-v-
|
|
1741
|
+
.sd-visually-hidden[data-v-acf35f4b] {
|
|
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-acf35f4b] {
|
|
1753
1753
|
min-width: 320px;
|
|
1754
1754
|
height: 100%;
|
|
1755
1755
|
}
|
|
1756
|
-
.floating-comments[data-v-
|
|
1756
|
+
.floating-comments[data-v-acf35f4b] {
|
|
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-acf35f4b] {
|
|
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-acf35f4b] {
|
|
1768
1768
|
width: 100%;
|
|
1769
1769
|
position: relative;
|
|
1770
1770
|
}
|
|
1771
|
-
.superdoc__sub-document[data-v-
|
|
1771
|
+
.superdoc__sub-document[data-v-acf35f4b] {
|
|
1772
1772
|
width: 100%;
|
|
1773
1773
|
position: relative;
|
|
1774
1774
|
}
|
|
1775
|
-
.superdoc__selection-layer[data-v-
|
|
1775
|
+
.superdoc__selection-layer[data-v-acf35f4b] {
|
|
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-acf35f4b] {
|
|
1787
1787
|
z-index: 4;
|
|
1788
1788
|
}
|
|
1789
|
-
.superdoc__temp-selection[data-v-
|
|
1789
|
+
.superdoc__temp-selection[data-v-acf35f4b] {
|
|
1790
1790
|
position: absolute;
|
|
1791
1791
|
}
|
|
1792
|
-
.superdoc__right-sidebar[data-v-
|
|
1792
|
+
.superdoc__right-sidebar[data-v-acf35f4b] {
|
|
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-acf35f4b] {
|
|
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-acf35f4b] {
|
|
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-acf35f4b] {
|
|
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-acf35f4b] {
|
|
1828
1828
|
cursor: pointer;
|
|
1829
1829
|
}
|
|
1830
|
-
.superdoc__tools-icon[data-v-
|
|
1830
|
+
.superdoc__tools-icon[data-v-acf35f4b] {
|
|
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-acf35f4b] {
|
|
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-acf35f4b] {
|
|
1851
1851
|
max-width: 100%;
|
|
1852
1852
|
}
|
|
1853
|
-
.superdoc__right-sidebar[data-v-
|
|
1853
|
+
.superdoc__right-sidebar[data-v-acf35f4b] {
|
|
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-acf35f4b] {
|
|
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-acf35f4b] {
|
|
1877
1877
|
fill: transparent;
|
|
1878
1878
|
}
|
|
1879
|
-
.ai-tool[data-v-
|
|
1879
|
+
.ai-tool[data-v-acf35f4b]::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-acf35f4b]:hover::before {
|
|
1901
1901
|
filter: brightness(1.3);
|
|
1902
1902
|
}
|
|
1903
1903
|
|
package/dist/superdoc.cjs
CHANGED
|
@@ -19618,7 +19618,7 @@ var _sfc_main$20 = {
|
|
|
19618
19618
|
zoom: (activeZoom.value ?? 100) / 100,
|
|
19619
19619
|
emitCommentPositionsInViewing: isViewingMode() && shouldRenderCommentsInViewing.value,
|
|
19620
19620
|
enableCommentsInViewing: isViewingCommentsVisible.value,
|
|
19621
|
-
contentControlsChrome:
|
|
19621
|
+
contentControlsChrome: proxy.$superdoc.uiConfig.contentControls.options.chrome,
|
|
19622
19622
|
resolveTrackedChangeColor: require_create_super_doc_ui.composeAuthorColorResolver(proxy.$superdoc.config.modules?.trackChanges?.authorColors)
|
|
19623
19623
|
} : void 0,
|
|
19624
19624
|
permissionResolver: (payload = {}) => proxy.$superdoc.canPerformPermission({
|
|
@@ -20560,7 +20560,7 @@ var _sfc_main$20 = {
|
|
|
20560
20560
|
};
|
|
20561
20561
|
}
|
|
20562
20562
|
};
|
|
20563
|
-
var SuperDoc_default = /* @__PURE__ */ require__plugin_vue_export_helper.__plugin_vue_export_helper_default(_sfc_main$20, [["__scopeId", "data-v-
|
|
20563
|
+
var SuperDoc_default = /* @__PURE__ */ require__plugin_vue_export_helper.__plugin_vue_export_helper_default(_sfc_main$20, [["__scopeId", "data-v-acf35f4b"]]);
|
|
20564
20564
|
var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
|
|
20565
20565
|
var PINIA_DEVTOOLS_PLUGIN_ID = "dev.esm.pinia";
|
|
20566
20566
|
var piniaDevtoolsSuppressionState = {
|
|
@@ -32995,6 +32995,8 @@ function normalizeUiConfig(config = {}) {
|
|
|
32995
32995
|
};
|
|
32996
32996
|
const options = (key) => allDisabled ? {} : resolveOptions(ui, key);
|
|
32997
32997
|
const rulerSuppressed = allDisabled || explicit("ruler") === false;
|
|
32998
|
+
const contentControlsEnabled = explicit("contentControls") ?? (!allDisabled && config.modules?.contentControls?.chrome !== "none");
|
|
32999
|
+
const legacyContentControlsChrome = config.modules?.contentControls?.chrome === "none" ? void 0 : config.modules?.contentControls?.chrome;
|
|
32998
33000
|
const toolbarOptions = options("toolbar");
|
|
32999
33001
|
const legacyToolbar = config.modules?.toolbar;
|
|
33000
33002
|
const legacyToolbarOptions = isPlainObject$2(legacyToolbar) ? legacyToolbar : {};
|
|
@@ -33045,8 +33047,8 @@ function normalizeUiConfig(config = {}) {
|
|
|
33045
33047
|
container: rulerSuppressed ? null : options("ruler").container ?? config.rulerContainer ?? null
|
|
33046
33048
|
},
|
|
33047
33049
|
contentControls: {
|
|
33048
|
-
enabled:
|
|
33049
|
-
options: options("contentControls")
|
|
33050
|
+
enabled: contentControlsEnabled,
|
|
33051
|
+
options: contentControlsEnabled ? mergeDefined({ chrome: legacyContentControlsChrome }, options("contentControls")) : { chrome: "none" }
|
|
33050
33052
|
}
|
|
33051
33053
|
};
|
|
33052
33054
|
}
|
|
@@ -39353,7 +39355,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
39353
39355
|
this.config.colors = shuffleArray(this.config.colors);
|
|
39354
39356
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
39355
39357
|
this.colorIndex = 0;
|
|
39356
|
-
this.version = "2.4.0-next.
|
|
39358
|
+
this.version = "2.4.0-next.6";
|
|
39357
39359
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
39358
39360
|
this.superdocId = config.superdocId || require_uuid.v4_default();
|
|
39359
39361
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -19575,7 +19575,7 @@ var SuperDoc_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
|
19575
19575
|
zoom: (activeZoom.value ?? 100) / 100,
|
|
19576
19576
|
emitCommentPositionsInViewing: isViewingMode() && shouldRenderCommentsInViewing.value,
|
|
19577
19577
|
enableCommentsInViewing: isViewingCommentsVisible.value,
|
|
19578
|
-
contentControlsChrome:
|
|
19578
|
+
contentControlsChrome: proxy.$superdoc.uiConfig.contentControls.options.chrome,
|
|
19579
19579
|
resolveTrackedChangeColor: composeAuthorColorResolver(proxy.$superdoc.config.modules?.trackChanges?.authorColors)
|
|
19580
19580
|
} : void 0,
|
|
19581
19581
|
permissionResolver: (payload = {}) => proxy.$superdoc.canPerformPermission({
|
|
@@ -20516,7 +20516,7 @@ var SuperDoc_default = /* @__PURE__ */ __plugin_vue_export_helper_default({
|
|
|
20516
20516
|
], 38);
|
|
20517
20517
|
};
|
|
20518
20518
|
}
|
|
20519
|
-
}, [["__scopeId", "data-v-
|
|
20519
|
+
}, [["__scopeId", "data-v-acf35f4b"]]);
|
|
20520
20520
|
var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
|
|
20521
20521
|
var PINIA_DEVTOOLS_PLUGIN_ID = "dev.esm.pinia";
|
|
20522
20522
|
var piniaDevtoolsSuppressionState = {
|
|
@@ -32950,6 +32950,8 @@ function normalizeUiConfig(config = {}) {
|
|
|
32950
32950
|
};
|
|
32951
32951
|
const options = (key) => allDisabled ? {} : resolveOptions(ui, key);
|
|
32952
32952
|
const rulerSuppressed = allDisabled || explicit("ruler") === false;
|
|
32953
|
+
const contentControlsEnabled = explicit("contentControls") ?? (!allDisabled && config.modules?.contentControls?.chrome !== "none");
|
|
32954
|
+
const legacyContentControlsChrome = config.modules?.contentControls?.chrome === "none" ? void 0 : config.modules?.contentControls?.chrome;
|
|
32953
32955
|
const toolbarOptions = options("toolbar");
|
|
32954
32956
|
const legacyToolbar = config.modules?.toolbar;
|
|
32955
32957
|
const legacyToolbarOptions = isPlainObject$2(legacyToolbar) ? legacyToolbar : {};
|
|
@@ -33000,8 +33002,8 @@ function normalizeUiConfig(config = {}) {
|
|
|
33000
33002
|
container: rulerSuppressed ? null : options("ruler").container ?? config.rulerContainer ?? null
|
|
33001
33003
|
},
|
|
33002
33004
|
contentControls: {
|
|
33003
|
-
enabled:
|
|
33004
|
-
options: options("contentControls")
|
|
33005
|
+
enabled: contentControlsEnabled,
|
|
33006
|
+
options: contentControlsEnabled ? mergeDefined({ chrome: legacyContentControlsChrome }, options("contentControls")) : { chrome: "none" }
|
|
33005
33007
|
}
|
|
33006
33008
|
};
|
|
33007
33009
|
}
|
|
@@ -39286,7 +39288,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
39286
39288
|
this.config.colors = shuffleArray(this.config.colors);
|
|
39287
39289
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
39288
39290
|
this.colorIndex = 0;
|
|
39289
|
-
this.version = "2.4.0-next.
|
|
39291
|
+
this.version = "2.4.0-next.6";
|
|
39290
39292
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
39291
39293
|
this.superdocId = config.superdocId || v4_default();
|
|
39292
39294
|
this.colors = this.config.colors ?? [];
|