superdoc 2.6.1-next.2 → 2.6.1-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.
@@ -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.6.1-next.2",
22
+ superdocVersion: "2.6.1-next.3",
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.6.1-next.2",
21
+ superdocVersion: "2.6.1-next.3",
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
@@ -1812,11 +1812,11 @@ img[data-v-c95b2073] {
1812
1812
  pointer-events: auto;
1813
1813
  }
1814
1814
 
1815
- .superdoc[data-v-85324013] {
1815
+ .superdoc[data-v-6b2aebf0] {
1816
1816
  display: flex;
1817
1817
  position: relative;
1818
1818
  }
1819
- .sd-visually-hidden[data-v-85324013] {
1819
+ .sd-visually-hidden[data-v-6b2aebf0] {
1820
1820
  position: absolute;
1821
1821
  width: 1px;
1822
1822
  height: 1px;
@@ -1827,30 +1827,30 @@ img[data-v-c95b2073] {
1827
1827
  white-space: nowrap;
1828
1828
  border: 0;
1829
1829
  }
1830
- .right-sidebar[data-v-85324013] {
1830
+ .right-sidebar[data-v-6b2aebf0] {
1831
1831
  min-width: 320px;
1832
1832
  height: 100%;
1833
1833
  }
1834
- .floating-comments[data-v-85324013] {
1834
+ .floating-comments[data-v-6b2aebf0] {
1835
1835
  min-width: 300px;
1836
1836
  width: 300px;
1837
1837
  height: 100%;
1838
1838
  overflow: visible;
1839
1839
  }
1840
- .superdoc__layers[data-v-85324013] {
1840
+ .superdoc__layers[data-v-6b2aebf0] {
1841
1841
  height: 100%;
1842
1842
  position: relative;
1843
1843
  box-sizing: border-box;
1844
1844
  }
1845
- .superdoc__document[data-v-85324013] {
1845
+ .superdoc__document[data-v-6b2aebf0] {
1846
1846
  width: 100%;
1847
1847
  position: relative;
1848
1848
  }
1849
- .superdoc__sub-document[data-v-85324013] {
1849
+ .superdoc__sub-document[data-v-6b2aebf0] {
1850
1850
  width: 100%;
1851
1851
  position: relative;
1852
1852
  }
1853
- .superdoc__selection-layer[data-v-85324013] {
1853
+ .superdoc__selection-layer[data-v-6b2aebf0] {
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-85324013] {
1864
+ .superdoc__whiteboard-layer[data-v-6b2aebf0] {
1865
1865
  z-index: 4;
1866
1866
  }
1867
- .superdoc__temp-selection[data-v-85324013] {
1867
+ .superdoc__temp-selection[data-v-6b2aebf0] {
1868
1868
  position: absolute;
1869
1869
  }
1870
- .superdoc__right-sidebar[data-v-85324013] {
1870
+ .superdoc__right-sidebar[data-v-6b2aebf0] {
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-85324013] {
1878
+ .superdoc__compact-comment-popover[data-v-6b2aebf0] {
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-85324013] {
1887
+ .tools[data-v-6b2aebf0] {
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-85324013] {
1894
+ .tools-item[data-v-6b2aebf0] {
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-85324013] {
1905
+ .tools-item i[data-v-6b2aebf0] {
1906
1906
  cursor: pointer;
1907
1907
  }
1908
- .superdoc__tools-icon[data-v-85324013] {
1908
+ .superdoc__tools-icon[data-v-6b2aebf0] {
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-85324013] {
1923
+ .superdoc .superdoc__layers[data-v-6b2aebf0] {
1924
1924
  margin: 0;
1925
1925
  border: 0 !important;
1926
1926
  box-shadow: none;
1927
1927
  }
1928
- .superdoc__sub-document[data-v-85324013] {
1928
+ .superdoc__sub-document[data-v-6b2aebf0] {
1929
1929
  max-width: 100%;
1930
1930
  }
1931
- .superdoc__right-sidebar[data-v-85324013] {
1931
+ .superdoc__right-sidebar[data-v-6b2aebf0] {
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-85324013] {
1938
+ .ai-writer-container[data-v-6b2aebf0] {
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-85324013] {
1954
+ .ai-tool > svg[data-v-6b2aebf0] {
1955
1955
  fill: transparent;
1956
1956
  }
1957
- .ai-tool[data-v-85324013]::before {
1957
+ .ai-tool[data-v-6b2aebf0]::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-85324013]:hover::before {
1978
+ .ai-tool[data-v-6b2aebf0]:hover::before {
1979
1979
  filter: brightness(1.3);
1980
1980
  }
1981
1981
 
@@ -1812,11 +1812,11 @@ img[data-v-c95b2073] {
1812
1812
  pointer-events: auto;
1813
1813
  }
1814
1814
 
1815
- .superdoc[data-v-85324013] {
1815
+ .superdoc[data-v-6b2aebf0] {
1816
1816
  display: flex;
1817
1817
  position: relative;
1818
1818
  }
1819
- .sd-visually-hidden[data-v-85324013] {
1819
+ .sd-visually-hidden[data-v-6b2aebf0] {
1820
1820
  position: absolute;
1821
1821
  width: 1px;
1822
1822
  height: 1px;
@@ -1827,30 +1827,30 @@ img[data-v-c95b2073] {
1827
1827
  white-space: nowrap;
1828
1828
  border: 0;
1829
1829
  }
1830
- .right-sidebar[data-v-85324013] {
1830
+ .right-sidebar[data-v-6b2aebf0] {
1831
1831
  min-width: 320px;
1832
1832
  height: 100%;
1833
1833
  }
1834
- .floating-comments[data-v-85324013] {
1834
+ .floating-comments[data-v-6b2aebf0] {
1835
1835
  min-width: 300px;
1836
1836
  width: 300px;
1837
1837
  height: 100%;
1838
1838
  overflow: visible;
1839
1839
  }
1840
- .superdoc__layers[data-v-85324013] {
1840
+ .superdoc__layers[data-v-6b2aebf0] {
1841
1841
  height: 100%;
1842
1842
  position: relative;
1843
1843
  box-sizing: border-box;
1844
1844
  }
1845
- .superdoc__document[data-v-85324013] {
1845
+ .superdoc__document[data-v-6b2aebf0] {
1846
1846
  width: 100%;
1847
1847
  position: relative;
1848
1848
  }
1849
- .superdoc__sub-document[data-v-85324013] {
1849
+ .superdoc__sub-document[data-v-6b2aebf0] {
1850
1850
  width: 100%;
1851
1851
  position: relative;
1852
1852
  }
1853
- .superdoc__selection-layer[data-v-85324013] {
1853
+ .superdoc__selection-layer[data-v-6b2aebf0] {
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-85324013] {
1864
+ .superdoc__whiteboard-layer[data-v-6b2aebf0] {
1865
1865
  z-index: 4;
1866
1866
  }
1867
- .superdoc__temp-selection[data-v-85324013] {
1867
+ .superdoc__temp-selection[data-v-6b2aebf0] {
1868
1868
  position: absolute;
1869
1869
  }
1870
- .superdoc__right-sidebar[data-v-85324013] {
1870
+ .superdoc__right-sidebar[data-v-6b2aebf0] {
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-85324013] {
1878
+ .superdoc__compact-comment-popover[data-v-6b2aebf0] {
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-85324013] {
1887
+ .tools[data-v-6b2aebf0] {
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-85324013] {
1894
+ .tools-item[data-v-6b2aebf0] {
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-85324013] {
1905
+ .tools-item i[data-v-6b2aebf0] {
1906
1906
  cursor: pointer;
1907
1907
  }
1908
- .superdoc__tools-icon[data-v-85324013] {
1908
+ .superdoc__tools-icon[data-v-6b2aebf0] {
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-85324013] {
1923
+ .superdoc .superdoc__layers[data-v-6b2aebf0] {
1924
1924
  margin: 0;
1925
1925
  border: 0 !important;
1926
1926
  box-shadow: none;
1927
1927
  }
1928
- .superdoc__sub-document[data-v-85324013] {
1928
+ .superdoc__sub-document[data-v-6b2aebf0] {
1929
1929
  max-width: 100%;
1930
1930
  }
1931
- .superdoc__right-sidebar[data-v-85324013] {
1931
+ .superdoc__right-sidebar[data-v-6b2aebf0] {
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-85324013] {
1938
+ .ai-writer-container[data-v-6b2aebf0] {
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-85324013] {
1954
+ .ai-tool > svg[data-v-6b2aebf0] {
1955
1955
  fill: transparent;
1956
1956
  }
1957
- .ai-tool[data-v-85324013]::before {
1957
+ .ai-tool[data-v-6b2aebf0]::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-85324013]:hover::before {
1978
+ .ai-tool[data-v-6b2aebf0]:hover::before {
1979
1979
  filter: brightness(1.3);
1980
1980
  }
1981
1981
 
package/dist/superdoc.cjs CHANGED
@@ -21575,7 +21575,8 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
21575
21575
  const documentMode = proxy.$superdoc?.config?.documentMode;
21576
21576
  if (documentMode === "editing" || documentMode === "suggesting") {
21577
21577
  const hostSnapshot = handles?.editing?.selection?.getSnapshot?.() ?? null;
21578
- if (shouldPreserveHostV2Selection(documentMode, hostSnapshot)) {
21578
+ const renderedHostTarget = handles?.editing?.selection?.toSelectionTarget?.();
21579
+ if (renderedHostTarget ? renderedHostTarget.kind === "ok" && renderedHostTarget.mode === "range" : shouldPreserveHostV2Selection(documentMode, hostSnapshot)) {
21579
21580
  const root = getActiveV2MountContainer();
21580
21581
  if (hasOutsideV2DomRangeSelection(window.getSelection?.() ?? null, root)) {
21581
21582
  clearV2SelectionToolbarState();
@@ -23118,7 +23119,7 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
23118
23119
  ], 38);
23119
23120
  };
23120
23121
  }
23121
- }, [["__scopeId", "data-v-85324013"]]);
23122
+ }, [["__scopeId", "data-v-6b2aebf0"]]);
23122
23123
  //#endregion
23123
23124
  //#region src/core/create-app.js
23124
23125
  var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
@@ -43605,7 +43606,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
43605
43606
  this.config.colors = shuffleArray(this.config.colors);
43606
43607
  this.userColorMap = /* @__PURE__ */ new Map();
43607
43608
  this.colorIndex = 0;
43608
- this.version = "2.6.1-next.2";
43609
+ this.version = "2.6.1-next.3";
43609
43610
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
43610
43611
  this.superdocId = config.superdocId || require_uuid.v4();
43611
43612
  this.colors = this.config.colors ?? [];
@@ -21535,7 +21535,8 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
21535
21535
  const documentMode = proxy.$superdoc?.config?.documentMode;
21536
21536
  if (documentMode === "editing" || documentMode === "suggesting") {
21537
21537
  const hostSnapshot = handles?.editing?.selection?.getSnapshot?.() ?? null;
21538
- if (shouldPreserveHostV2Selection(documentMode, hostSnapshot)) {
21538
+ const renderedHostTarget = handles?.editing?.selection?.toSelectionTarget?.();
21539
+ if (renderedHostTarget ? renderedHostTarget.kind === "ok" && renderedHostTarget.mode === "range" : shouldPreserveHostV2Selection(documentMode, hostSnapshot)) {
21539
21540
  const root = getActiveV2MountContainer();
21540
21541
  if (hasOutsideV2DomRangeSelection(window.getSelection?.() ?? null, root)) {
21541
21542
  clearV2SelectionToolbarState();
@@ -23078,7 +23079,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
23078
23079
  ], 38);
23079
23080
  };
23080
23081
  }
23081
- }, [["__scopeId", "data-v-85324013"]]);
23082
+ }, [["__scopeId", "data-v-6b2aebf0"]]);
23082
23083
  //#endregion
23083
23084
  //#region src/core/create-app.js
23084
23085
  var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
@@ -43538,7 +43539,7 @@ var SuperDoc = class extends import_eventemitter3.default {
43538
43539
  this.config.colors = shuffleArray(this.config.colors);
43539
43540
  this.userColorMap = /* @__PURE__ */ new Map();
43540
43541
  this.colorIndex = 0;
43541
- this.version = "2.6.1-next.2";
43542
+ this.version = "2.6.1-next.3";
43542
43543
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
43543
43544
  this.superdocId = config.superdocId || v4();
43544
43545
  this.colors = this.config.colors ?? [];