superdoc 2.16.0-next.9 → 2.16.0

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.16.0-next.9",
22
+ superdocVersion: "2.16.0",
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.16.0-next.9",
21
+ superdocVersion: "2.16.0",
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
@@ -158,6 +158,7 @@ export interface ContentControlMutationSuccess {
158
158
  success: true;
159
159
  contentControl: ContentControlTarget;
160
160
  updatedRef?: ContentControlTarget;
161
+ affectedStories?: StoryLocator[];
161
162
  trackedChangeRefs?: ReceiptInsert[];
162
163
  }
163
164
  export interface ContentControlMutationFailure {
@@ -58,10 +58,9 @@ export type TextTarget = {
58
58
  *
59
59
  * Excludes:
60
60
  * - `tableRow`, `tableCell`: row/column semantics out of scope
61
- * - `listItem`: derived from paragraph attrs, no distinct PM wrapper node
62
61
  */
63
- export type SelectionEdgeNodeType = Exclude<BlockNodeType, 'tableRow' | 'tableCell' | 'listItem'>;
64
- export declare const SELECTION_EDGE_NODE_TYPES: readonly ["paragraph", "heading", "table", "tableOfContents", "sdt", "image"];
62
+ export type SelectionEdgeNodeType = Exclude<BlockNodeType, 'tableRow' | 'tableCell'>;
63
+ export declare const SELECTION_EDGE_NODE_TYPES: readonly ["paragraph", "heading", "listItem", "table", "tableOfContents", "sdt", "image"];
65
64
  /** Block node address valid as a `nodeEdge` selection anchor. */
66
65
  export type SelectionEdgeNodeAddress = {
67
66
  kind: 'block';
@@ -62,7 +62,7 @@ export interface TrackChangeRewriteReviewGroup {
62
62
  childChangeIds: readonly string[];
63
63
  members: readonly {
64
64
  id: string;
65
- type: 'insertion' | 'deletion' | 'replacement';
65
+ type: TrackChangeBroadType;
66
66
  subtype: string;
67
67
  sourceIds: TrackChangeSourceIds;
68
68
  }[];
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-c041a1db] {
1826
+ .superdoc[data-v-4e56e5b9] {
1827
1827
  display: flex;
1828
1828
  position: relative;
1829
1829
  }
1830
- .right-sidebar[data-v-c041a1db] {
1830
+ .right-sidebar[data-v-4e56e5b9] {
1831
1831
  min-width: 320px;
1832
1832
  height: 100%;
1833
1833
  }
1834
- .floating-comments[data-v-c041a1db] {
1834
+ .floating-comments[data-v-4e56e5b9] {
1835
1835
  min-width: 300px;
1836
1836
  width: 300px;
1837
1837
  height: 100%;
1838
1838
  overflow: visible;
1839
1839
  }
1840
- .superdoc__layers[data-v-c041a1db] {
1840
+ .superdoc__layers[data-v-4e56e5b9] {
1841
1841
  height: 100%;
1842
1842
  position: relative;
1843
1843
  box-sizing: border-box;
1844
1844
  }
1845
- .superdoc__document[data-v-c041a1db] {
1845
+ .superdoc__document[data-v-4e56e5b9] {
1846
1846
  width: 100%;
1847
1847
  position: relative;
1848
1848
  }
1849
- .superdoc__sub-document[data-v-c041a1db] {
1849
+ .superdoc__sub-document[data-v-4e56e5b9] {
1850
1850
  width: 100%;
1851
1851
  position: relative;
1852
1852
  }
1853
- .superdoc__selection-layer[data-v-c041a1db] {
1853
+ .superdoc__selection-layer[data-v-4e56e5b9] {
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-c041a1db] {
1864
+ .superdoc__whiteboard-layer[data-v-4e56e5b9] {
1865
1865
  z-index: 4;
1866
1866
  }
1867
- .superdoc__temp-selection[data-v-c041a1db] {
1867
+ .superdoc__temp-selection[data-v-4e56e5b9] {
1868
1868
  position: absolute;
1869
1869
  }
1870
- .superdoc__right-sidebar[data-v-c041a1db] {
1870
+ .superdoc__right-sidebar[data-v-4e56e5b9] {
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-c041a1db] {
1878
+ .superdoc__compact-comment-popover[data-v-4e56e5b9] {
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-c041a1db] {
1887
+ .tools[data-v-4e56e5b9] {
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-c041a1db] {
1894
+ .tools-item[data-v-4e56e5b9] {
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-c041a1db] {
1905
+ .tools-item i[data-v-4e56e5b9] {
1906
1906
  cursor: pointer;
1907
1907
  }
1908
- .superdoc__tools-icon[data-v-c041a1db] {
1908
+ .superdoc__tools-icon[data-v-4e56e5b9] {
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-c041a1db] {
1923
+ .superdoc .superdoc__layers[data-v-4e56e5b9] {
1924
1924
  margin: 0;
1925
1925
  border: 0 !important;
1926
1926
  box-shadow: none;
1927
1927
  }
1928
- .superdoc__sub-document[data-v-c041a1db] {
1928
+ .superdoc__sub-document[data-v-4e56e5b9] {
1929
1929
  max-width: 100%;
1930
1930
  }
1931
- .superdoc__right-sidebar[data-v-c041a1db] {
1931
+ .superdoc__right-sidebar[data-v-4e56e5b9] {
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-c041a1db] {
1938
+ .ai-writer-container[data-v-4e56e5b9] {
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-c041a1db] {
1954
+ .ai-tool > svg[data-v-4e56e5b9] {
1955
1955
  fill: transparent;
1956
1956
  }
1957
- .ai-tool[data-v-c041a1db]::before {
1957
+ .ai-tool[data-v-4e56e5b9]::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-c041a1db]:hover::before {
1978
+ .ai-tool[data-v-4e56e5b9]: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-c041a1db] {
1826
+ .superdoc[data-v-4e56e5b9] {
1827
1827
  display: flex;
1828
1828
  position: relative;
1829
1829
  }
1830
- .right-sidebar[data-v-c041a1db] {
1830
+ .right-sidebar[data-v-4e56e5b9] {
1831
1831
  min-width: 320px;
1832
1832
  height: 100%;
1833
1833
  }
1834
- .floating-comments[data-v-c041a1db] {
1834
+ .floating-comments[data-v-4e56e5b9] {
1835
1835
  min-width: 300px;
1836
1836
  width: 300px;
1837
1837
  height: 100%;
1838
1838
  overflow: visible;
1839
1839
  }
1840
- .superdoc__layers[data-v-c041a1db] {
1840
+ .superdoc__layers[data-v-4e56e5b9] {
1841
1841
  height: 100%;
1842
1842
  position: relative;
1843
1843
  box-sizing: border-box;
1844
1844
  }
1845
- .superdoc__document[data-v-c041a1db] {
1845
+ .superdoc__document[data-v-4e56e5b9] {
1846
1846
  width: 100%;
1847
1847
  position: relative;
1848
1848
  }
1849
- .superdoc__sub-document[data-v-c041a1db] {
1849
+ .superdoc__sub-document[data-v-4e56e5b9] {
1850
1850
  width: 100%;
1851
1851
  position: relative;
1852
1852
  }
1853
- .superdoc__selection-layer[data-v-c041a1db] {
1853
+ .superdoc__selection-layer[data-v-4e56e5b9] {
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-c041a1db] {
1864
+ .superdoc__whiteboard-layer[data-v-4e56e5b9] {
1865
1865
  z-index: 4;
1866
1866
  }
1867
- .superdoc__temp-selection[data-v-c041a1db] {
1867
+ .superdoc__temp-selection[data-v-4e56e5b9] {
1868
1868
  position: absolute;
1869
1869
  }
1870
- .superdoc__right-sidebar[data-v-c041a1db] {
1870
+ .superdoc__right-sidebar[data-v-4e56e5b9] {
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-c041a1db] {
1878
+ .superdoc__compact-comment-popover[data-v-4e56e5b9] {
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-c041a1db] {
1887
+ .tools[data-v-4e56e5b9] {
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-c041a1db] {
1894
+ .tools-item[data-v-4e56e5b9] {
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-c041a1db] {
1905
+ .tools-item i[data-v-4e56e5b9] {
1906
1906
  cursor: pointer;
1907
1907
  }
1908
- .superdoc__tools-icon[data-v-c041a1db] {
1908
+ .superdoc__tools-icon[data-v-4e56e5b9] {
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-c041a1db] {
1923
+ .superdoc .superdoc__layers[data-v-4e56e5b9] {
1924
1924
  margin: 0;
1925
1925
  border: 0 !important;
1926
1926
  box-shadow: none;
1927
1927
  }
1928
- .superdoc__sub-document[data-v-c041a1db] {
1928
+ .superdoc__sub-document[data-v-4e56e5b9] {
1929
1929
  max-width: 100%;
1930
1930
  }
1931
- .superdoc__right-sidebar[data-v-c041a1db] {
1931
+ .superdoc__right-sidebar[data-v-4e56e5b9] {
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-c041a1db] {
1938
+ .ai-writer-container[data-v-4e56e5b9] {
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-c041a1db] {
1954
+ .ai-tool > svg[data-v-4e56e5b9] {
1955
1955
  fill: transparent;
1956
1956
  }
1957
- .ai-tool[data-v-c041a1db]::before {
1957
+ .ai-tool[data-v-4e56e5b9]::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-c041a1db]:hover::before {
1978
+ .ai-tool[data-v-4e56e5b9]: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.16.0-next.9";
319
+ return "2.16.0";
320
320
  } catch {
321
321
  return "unknown";
322
322
  }
@@ -22962,7 +22962,7 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
22962
22962
  };
22963
22963
  const v2GeometryPublisher = resolvedEditorIntegration.createGeometryPublisher({
22964
22964
  getLayersContainer: () => layers.value ?? null,
22965
- isCommentsEnabled: () => shouldRenderCommentsInViewing.value,
22965
+ isCommentsEnabled: () => Boolean(commentsModuleConfig.value) && shouldRenderCommentsInViewing.value,
22966
22966
  publishPositions: (positions, options) => handleEditorLocationsUpdate(positions, options),
22967
22967
  clearPositions: () => {
22968
22968
  commentsStore.clearEditorCommentPositions?.();
@@ -24474,7 +24474,7 @@ var SuperDoc_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_v
24474
24474
  ], 38);
24475
24475
  };
24476
24476
  }
24477
- }, [["__scopeId", "data-v-c041a1db"]]);
24477
+ }, [["__scopeId", "data-v-4e56e5b9"]]);
24478
24478
  //#endregion
24479
24479
  //#region src/core/create-app.js
24480
24480
  var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
@@ -45690,7 +45690,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
45690
45690
  this.config.colors = shuffleArray(this.config.colors);
45691
45691
  this.userColorMap = /* @__PURE__ */ new Map();
45692
45692
  this.colorIndex = 0;
45693
- this.version = "2.16.0-next.9";
45693
+ this.version = "2.16.0";
45694
45694
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
45695
45695
  this.superdocId = config.superdocId || require_uuid.v4();
45696
45696
  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.16.0-next.9";
318
+ return "2.16.0";
319
319
  } catch {
320
320
  return "unknown";
321
321
  }
@@ -22922,7 +22922,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
22922
22922
  };
22923
22923
  const v2GeometryPublisher = resolvedEditorIntegration.createGeometryPublisher({
22924
22924
  getLayersContainer: () => layers.value ?? null,
22925
- isCommentsEnabled: () => shouldRenderCommentsInViewing.value,
22925
+ isCommentsEnabled: () => Boolean(commentsModuleConfig.value) && shouldRenderCommentsInViewing.value,
22926
22926
  publishPositions: (positions, options) => handleEditorLocationsUpdate(positions, options),
22927
22927
  clearPositions: () => {
22928
22928
  commentsStore.clearEditorCommentPositions?.();
@@ -24434,7 +24434,7 @@ var SuperDoc_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
24434
24434
  ], 38);
24435
24435
  };
24436
24436
  }
24437
- }, [["__scopeId", "data-v-c041a1db"]]);
24437
+ }, [["__scopeId", "data-v-4e56e5b9"]]);
24438
24438
  //#endregion
24439
24439
  //#region src/core/create-app.js
24440
24440
  var PINIA_DEVTOOLS_SETUP_EVENT = "devtools-plugin:setup";
@@ -45621,7 +45621,7 @@ var SuperDoc = class extends import_eventemitter3.default {
45621
45621
  this.config.colors = shuffleArray(this.config.colors);
45622
45622
  this.userColorMap = /* @__PURE__ */ new Map();
45623
45623
  this.colorIndex = 0;
45624
- this.version = "2.16.0-next.9";
45624
+ this.version = "2.16.0";
45625
45625
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
45626
45626
  this.superdocId = config.superdocId || v4();
45627
45627
  this.colors = this.config.colors ?? [];