superdoc 2.18.0-next.6 → 2.18.0-next.8

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.
@@ -19,7 +19,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
19
19
  var PRIVATE_ENGINE_INFO = (0, _superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
20
20
  var ENGINE_INFO = Object.freeze({
21
21
  ...PRIVATE_ENGINE_INFO,
22
- superdocVersion: "2.18.0-next.6",
22
+ superdocVersion: "2.18.0-next.8",
23
23
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
24
24
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
25
25
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
@@ -18,7 +18,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
18
18
  var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
19
19
  var ENGINE_INFO = Object.freeze({
20
20
  ...PRIVATE_ENGINE_INFO,
21
- superdocVersion: "2.18.0-next.6",
21
+ superdocVersion: "2.18.0-next.8",
22
22
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
23
23
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
24
24
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
package/dist/style.css CHANGED
@@ -1823,34 +1823,34 @@ img[data-v-c95b2073] {
1823
1823
  pointer-events: auto;
1824
1824
  }
1825
1825
 
1826
- .superdoc[data-v-4e56e5b9] {
1826
+ .superdoc[data-v-4efb0cab] {
1827
1827
  display: flex;
1828
1828
  position: relative;
1829
1829
  }
1830
- .right-sidebar[data-v-4e56e5b9] {
1830
+ .right-sidebar[data-v-4efb0cab] {
1831
1831
  min-width: 320px;
1832
1832
  height: 100%;
1833
1833
  }
1834
- .floating-comments[data-v-4e56e5b9] {
1834
+ .floating-comments[data-v-4efb0cab] {
1835
1835
  min-width: 300px;
1836
1836
  width: 300px;
1837
1837
  height: 100%;
1838
1838
  overflow: visible;
1839
1839
  }
1840
- .superdoc__layers[data-v-4e56e5b9] {
1840
+ .superdoc__layers[data-v-4efb0cab] {
1841
1841
  height: 100%;
1842
1842
  position: relative;
1843
1843
  box-sizing: border-box;
1844
1844
  }
1845
- .superdoc__document[data-v-4e56e5b9] {
1845
+ .superdoc__document[data-v-4efb0cab] {
1846
1846
  width: 100%;
1847
1847
  position: relative;
1848
1848
  }
1849
- .superdoc__sub-document[data-v-4e56e5b9] {
1849
+ .superdoc__sub-document[data-v-4efb0cab] {
1850
1850
  width: 100%;
1851
1851
  position: relative;
1852
1852
  }
1853
- .superdoc__selection-layer[data-v-4e56e5b9] {
1853
+ .superdoc__selection-layer[data-v-4efb0cab] {
1854
1854
  position: absolute;
1855
1855
  min-width: 100%;
1856
1856
  min-height: 100%;
@@ -1861,13 +1861,13 @@ img[data-v-c95b2073] {
1861
1861
  /* SD-3497: PDF whiteboard overlay sits above the rendered PDF canvas but below
1862
1862
  the PDF comment anchors (z-index 6 in PdfCommentsLayer) so anchors stay
1863
1863
  clickable, and below the selection layer (z-index 10). */
1864
- .superdoc__whiteboard-layer[data-v-4e56e5b9] {
1864
+ .superdoc__whiteboard-layer[data-v-4efb0cab] {
1865
1865
  z-index: 4;
1866
1866
  }
1867
- .superdoc__temp-selection[data-v-4e56e5b9] {
1867
+ .superdoc__temp-selection[data-v-4efb0cab] {
1868
1868
  position: absolute;
1869
1869
  }
1870
- .superdoc__right-sidebar[data-v-4e56e5b9] {
1870
+ .superdoc__right-sidebar[data-v-4efb0cab] {
1871
1871
  width: 320px;
1872
1872
  min-width: 320px;
1873
1873
  padding: 0 10px;
@@ -1875,7 +1875,7 @@ img[data-v-c95b2073] {
1875
1875
  position: relative;
1876
1876
  z-index: 2;
1877
1877
  }
1878
- .superdoc__compact-comment-popover[data-v-4e56e5b9] {
1878
+ .superdoc__compact-comment-popover[data-v-4efb0cab] {
1879
1879
  position: absolute;
1880
1880
  top: 12px;
1881
1881
  right: 12px;
@@ -1884,14 +1884,14 @@ img[data-v-c95b2073] {
1884
1884
  }
1885
1885
 
1886
1886
  /* Tools styles */
1887
- .tools[data-v-4e56e5b9] {
1887
+ .tools[data-v-4efb0cab] {
1888
1888
  position: absolute;
1889
1889
  z-index: 3;
1890
1890
  display: flex;
1891
1891
  flex-direction: column;
1892
1892
  gap: var(--sd-ui-tools-gap, 6px);
1893
1893
  }
1894
- .tools-item[data-v-4e56e5b9] {
1894
+ .tools-item[data-v-4efb0cab] {
1895
1895
  display: flex;
1896
1896
  align-items: center;
1897
1897
  justify-content: center;
@@ -1902,10 +1902,10 @@ img[data-v-c95b2073] {
1902
1902
  cursor: pointer;
1903
1903
  position: relative;
1904
1904
  }
1905
- .tools-item i[data-v-4e56e5b9] {
1905
+ .tools-item i[data-v-4efb0cab] {
1906
1906
  cursor: pointer;
1907
1907
  }
1908
- .superdoc__tools-icon[data-v-4e56e5b9] {
1908
+ .superdoc__tools-icon[data-v-4efb0cab] {
1909
1909
  width: var(--sd-ui-tools-icon-size, 20px);
1910
1910
  height: var(--sd-ui-tools-icon-size, 20px);
1911
1911
  flex-shrink: 0;
@@ -1920,22 +1920,22 @@ img[data-v-c95b2073] {
1920
1920
 
1921
1921
  /* 834px is iPad screen size in portrait orientation */
1922
1922
  @media (max-width: 834px) {
1923
- .superdoc .superdoc__layers[data-v-4e56e5b9] {
1923
+ .superdoc .superdoc__layers[data-v-4efb0cab] {
1924
1924
  margin: 0;
1925
1925
  border: 0 !important;
1926
1926
  box-shadow: none;
1927
1927
  }
1928
- .superdoc__sub-document[data-v-4e56e5b9] {
1928
+ .superdoc__sub-document[data-v-4efb0cab] {
1929
1929
  max-width: 100%;
1930
1930
  }
1931
- .superdoc__right-sidebar[data-v-4e56e5b9] {
1931
+ .superdoc__right-sidebar[data-v-4efb0cab] {
1932
1932
  padding: 10px;
1933
1933
  position: relative;
1934
1934
  }
1935
1935
  }
1936
1936
 
1937
1937
  /* AI Writer styles */
1938
- .ai-writer-container[data-v-4e56e5b9] {
1938
+ .ai-writer-container[data-v-4efb0cab] {
1939
1939
  position: fixed;
1940
1940
  z-index: 1000;
1941
1941
  background: white;
@@ -1951,10 +1951,10 @@ img[data-v-c95b2073] {
1951
1951
  transform: translateY(-50%);
1952
1952
  z-index: 50;
1953
1953
  } */
1954
- .ai-tool > svg[data-v-4e56e5b9] {
1954
+ .ai-tool > svg[data-v-4efb0cab] {
1955
1955
  fill: transparent;
1956
1956
  }
1957
- .ai-tool[data-v-4e56e5b9]::before {
1957
+ .ai-tool[data-v-4efb0cab]::before {
1958
1958
  content: '';
1959
1959
  position: absolute;
1960
1960
  width: 20px;
@@ -1975,7 +1975,7 @@ img[data-v-c95b2073] {
1975
1975
  filter: brightness(1.2);
1976
1976
  transition: filter 0.2s ease;
1977
1977
  }
1978
- .ai-tool[data-v-4e56e5b9]:hover::before {
1978
+ .ai-tool[data-v-4efb0cab]:hover::before {
1979
1979
  filter: brightness(1.3);
1980
1980
  }
1981
1981
 
@@ -1823,34 +1823,34 @@ img[data-v-c95b2073] {
1823
1823
  pointer-events: auto;
1824
1824
  }
1825
1825
 
1826
- .superdoc[data-v-4e56e5b9] {
1826
+ .superdoc[data-v-4efb0cab] {
1827
1827
  display: flex;
1828
1828
  position: relative;
1829
1829
  }
1830
- .right-sidebar[data-v-4e56e5b9] {
1830
+ .right-sidebar[data-v-4efb0cab] {
1831
1831
  min-width: 320px;
1832
1832
  height: 100%;
1833
1833
  }
1834
- .floating-comments[data-v-4e56e5b9] {
1834
+ .floating-comments[data-v-4efb0cab] {
1835
1835
  min-width: 300px;
1836
1836
  width: 300px;
1837
1837
  height: 100%;
1838
1838
  overflow: visible;
1839
1839
  }
1840
- .superdoc__layers[data-v-4e56e5b9] {
1840
+ .superdoc__layers[data-v-4efb0cab] {
1841
1841
  height: 100%;
1842
1842
  position: relative;
1843
1843
  box-sizing: border-box;
1844
1844
  }
1845
- .superdoc__document[data-v-4e56e5b9] {
1845
+ .superdoc__document[data-v-4efb0cab] {
1846
1846
  width: 100%;
1847
1847
  position: relative;
1848
1848
  }
1849
- .superdoc__sub-document[data-v-4e56e5b9] {
1849
+ .superdoc__sub-document[data-v-4efb0cab] {
1850
1850
  width: 100%;
1851
1851
  position: relative;
1852
1852
  }
1853
- .superdoc__selection-layer[data-v-4e56e5b9] {
1853
+ .superdoc__selection-layer[data-v-4efb0cab] {
1854
1854
  position: absolute;
1855
1855
  min-width: 100%;
1856
1856
  min-height: 100%;
@@ -1861,13 +1861,13 @@ img[data-v-c95b2073] {
1861
1861
  /* SD-3497: PDF whiteboard overlay sits above the rendered PDF canvas but below
1862
1862
  the PDF comment anchors (z-index 6 in PdfCommentsLayer) so anchors stay
1863
1863
  clickable, and below the selection layer (z-index 10). */
1864
- .superdoc__whiteboard-layer[data-v-4e56e5b9] {
1864
+ .superdoc__whiteboard-layer[data-v-4efb0cab] {
1865
1865
  z-index: 4;
1866
1866
  }
1867
- .superdoc__temp-selection[data-v-4e56e5b9] {
1867
+ .superdoc__temp-selection[data-v-4efb0cab] {
1868
1868
  position: absolute;
1869
1869
  }
1870
- .superdoc__right-sidebar[data-v-4e56e5b9] {
1870
+ .superdoc__right-sidebar[data-v-4efb0cab] {
1871
1871
  width: 320px;
1872
1872
  min-width: 320px;
1873
1873
  padding: 0 10px;
@@ -1875,7 +1875,7 @@ img[data-v-c95b2073] {
1875
1875
  position: relative;
1876
1876
  z-index: 2;
1877
1877
  }
1878
- .superdoc__compact-comment-popover[data-v-4e56e5b9] {
1878
+ .superdoc__compact-comment-popover[data-v-4efb0cab] {
1879
1879
  position: absolute;
1880
1880
  top: 12px;
1881
1881
  right: 12px;
@@ -1884,14 +1884,14 @@ img[data-v-c95b2073] {
1884
1884
  }
1885
1885
 
1886
1886
  /* Tools styles */
1887
- .tools[data-v-4e56e5b9] {
1887
+ .tools[data-v-4efb0cab] {
1888
1888
  position: absolute;
1889
1889
  z-index: 3;
1890
1890
  display: flex;
1891
1891
  flex-direction: column;
1892
1892
  gap: var(--sd-ui-tools-gap, 6px);
1893
1893
  }
1894
- .tools-item[data-v-4e56e5b9] {
1894
+ .tools-item[data-v-4efb0cab] {
1895
1895
  display: flex;
1896
1896
  align-items: center;
1897
1897
  justify-content: center;
@@ -1902,10 +1902,10 @@ img[data-v-c95b2073] {
1902
1902
  cursor: pointer;
1903
1903
  position: relative;
1904
1904
  }
1905
- .tools-item i[data-v-4e56e5b9] {
1905
+ .tools-item i[data-v-4efb0cab] {
1906
1906
  cursor: pointer;
1907
1907
  }
1908
- .superdoc__tools-icon[data-v-4e56e5b9] {
1908
+ .superdoc__tools-icon[data-v-4efb0cab] {
1909
1909
  width: var(--sd-ui-tools-icon-size, 20px);
1910
1910
  height: var(--sd-ui-tools-icon-size, 20px);
1911
1911
  flex-shrink: 0;
@@ -1920,22 +1920,22 @@ img[data-v-c95b2073] {
1920
1920
 
1921
1921
  /* 834px is iPad screen size in portrait orientation */
1922
1922
  @media (max-width: 834px) {
1923
- .superdoc .superdoc__layers[data-v-4e56e5b9] {
1923
+ .superdoc .superdoc__layers[data-v-4efb0cab] {
1924
1924
  margin: 0;
1925
1925
  border: 0 !important;
1926
1926
  box-shadow: none;
1927
1927
  }
1928
- .superdoc__sub-document[data-v-4e56e5b9] {
1928
+ .superdoc__sub-document[data-v-4efb0cab] {
1929
1929
  max-width: 100%;
1930
1930
  }
1931
- .superdoc__right-sidebar[data-v-4e56e5b9] {
1931
+ .superdoc__right-sidebar[data-v-4efb0cab] {
1932
1932
  padding: 10px;
1933
1933
  position: relative;
1934
1934
  }
1935
1935
  }
1936
1936
 
1937
1937
  /* AI Writer styles */
1938
- .ai-writer-container[data-v-4e56e5b9] {
1938
+ .ai-writer-container[data-v-4efb0cab] {
1939
1939
  position: fixed;
1940
1940
  z-index: 1000;
1941
1941
  background: white;
@@ -1951,10 +1951,10 @@ img[data-v-c95b2073] {
1951
1951
  transform: translateY(-50%);
1952
1952
  z-index: 50;
1953
1953
  } */
1954
- .ai-tool > svg[data-v-4e56e5b9] {
1954
+ .ai-tool > svg[data-v-4efb0cab] {
1955
1955
  fill: transparent;
1956
1956
  }
1957
- .ai-tool[data-v-4e56e5b9]::before {
1957
+ .ai-tool[data-v-4efb0cab]::before {
1958
1958
  content: '';
1959
1959
  position: absolute;
1960
1960
  width: 20px;
@@ -1975,7 +1975,7 @@ img[data-v-c95b2073] {
1975
1975
  filter: brightness(1.2);
1976
1976
  transition: filter 0.2s ease;
1977
1977
  }
1978
- .ai-tool[data-v-4e56e5b9]:hover::before {
1978
+ .ai-tool[data-v-4efb0cab]:hover::before {
1979
1979
  filter: brightness(1.3);
1980
1980
  }
1981
1981
 
package/dist/superdoc.cjs CHANGED
@@ -316,7 +316,7 @@ var shuffleArray = (array) => {
316
316
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
317
317
  function getSuperdocVersion() {
318
318
  try {
319
- return "2.18.0-next.6";
319
+ return "2.18.0-next.8";
320
320
  } catch {
321
321
  return "unknown";
322
322
  }
@@ -22696,7 +22696,7 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
22696
22696
  bindSessionShortcuts,
22697
22697
  documentApi
22698
22698
  });
22699
- if (resolveDocumentV2Collaboration(getDocument(documentId)).state === "valid") onEditorCollaborationReady({ editor: facade });
22699
+ if (collaborationProvider && resolveDocumentV2Collaboration(getDocument(documentId)).state === "valid") onEditorCollaborationReady({ editor: facade });
22700
22700
  if (pageMetrics && pageLayout) syncV2RulerActiveEditor();
22701
22701
  const commentsModuleEnabled = proxy.$superdoc.config.modules?.comments !== false;
22702
22702
  if (commentsAdapter && commentsModuleEnabled) commentsStore.setV2CommentsAdapter?.(commentsAdapter);
@@ -24494,7 +24494,7 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
24494
24494
  ], 38);
24495
24495
  };
24496
24496
  }
24497
- }, [["__scopeId", "data-v-4e56e5b9"]]);
24497
+ }, [["__scopeId", "data-v-4efb0cab"]]);
24498
24498
  //#endregion
24499
24499
  //#region src/core/create-app.js
24500
24500
  var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
@@ -45726,7 +45726,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
45726
45726
  this.config.colors = shuffleArray(this.config.colors);
45727
45727
  this.userColorMap = /* @__PURE__ */ new Map();
45728
45728
  this.colorIndex = 0;
45729
- this.version = "2.18.0-next.6";
45729
+ this.version = "2.18.0-next.8";
45730
45730
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
45731
45731
  this.superdocId = config.superdocId || require_uuid.v4();
45732
45732
  this.colors = this.config.colors ?? [];
@@ -315,7 +315,7 @@ var shuffleArray = (array) => {
315
315
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
316
316
  function getSuperdocVersion() {
317
317
  try {
318
- return "2.18.0-next.6";
318
+ return "2.18.0-next.8";
319
319
  } catch {
320
320
  return "unknown";
321
321
  }
@@ -22656,7 +22656,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
22656
22656
  bindSessionShortcuts,
22657
22657
  documentApi
22658
22658
  });
22659
- if (resolveDocumentV2Collaboration(getDocument(documentId)).state === "valid") onEditorCollaborationReady({ editor: facade });
22659
+ if (collaborationProvider && resolveDocumentV2Collaboration(getDocument(documentId)).state === "valid") onEditorCollaborationReady({ editor: facade });
22660
22660
  if (pageMetrics && pageLayout) syncV2RulerActiveEditor();
22661
22661
  const commentsModuleEnabled = proxy.$superdoc.config.modules?.comments !== false;
22662
22662
  if (commentsAdapter && commentsModuleEnabled) commentsStore.setV2CommentsAdapter?.(commentsAdapter);
@@ -24454,7 +24454,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
24454
24454
  ], 38);
24455
24455
  };
24456
24456
  }
24457
- }, [["__scopeId", "data-v-4e56e5b9"]]);
24457
+ }, [["__scopeId", "data-v-4efb0cab"]]);
24458
24458
  //#endregion
24459
24459
  //#region src/core/create-app.js
24460
24460
  var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
@@ -45657,7 +45657,7 @@ var SuperDoc = class extends import_eventemitter3.default {
45657
45657
  this.config.colors = shuffleArray(this.config.colors);
45658
45658
  this.userColorMap = /* @__PURE__ */ new Map();
45659
45659
  this.colorIndex = 0;
45660
- this.version = "2.18.0-next.6";
45660
+ this.version = "2.18.0-next.8";
45661
45661
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
45662
45662
  this.superdocId = config.superdocId || v4();
45663
45663
  this.colors = this.config.colors ?? [];