superdoc 1.14.0 → 1.15.0-next.1

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.
@@ -33581,7 +33581,7 @@ var SuperConverter = class SuperConverter {
33581
33581
  static getStoredSuperdocVersion(docx) {
33582
33582
  return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
33583
33583
  }
33584
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.14.0") {
33584
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.15.0-next.1") {
33585
33585
  return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
33586
33586
  }
33587
33587
  static generateWordTimestamp() {
@@ -33599,7 +33599,7 @@ var SuperConverter = class SuperConverter {
33599
33599
  static getStoredSuperdocVersion(docx) {
33600
33600
  return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
33601
33601
  }
33602
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.14.0") {
33602
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.15.0-next.1") {
33603
33603
  return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
33604
33604
  }
33605
33605
  static generateWordTimestamp() {
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-Dp2H1eGw.cjs");
2
- const require_SuperConverter = require("./SuperConverter-BWKP_jTL.cjs");
2
+ const require_SuperConverter = require("./SuperConverter-D4bnFDP0.cjs");
3
3
  const require_jszip = require("./jszip-DCT9QYaK.cjs");
4
4
  const require_uuid = require("./uuid-CHj_rjgt.cjs");
5
5
  const require_helpers = require("./helpers-Cs_Zz44i.cjs");
@@ -243,7 +243,7 @@ var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
243
243
  const COMMUNITY_LICENSE_KEY = "community-and-eval-agplv3";
244
244
  function getSuperdocVersion() {
245
245
  try {
246
- return "1.14.0";
246
+ return "1.15.0-next.1";
247
247
  } catch {
248
248
  return "unknown";
249
249
  }
@@ -20355,7 +20355,7 @@ const canUseDOM = () => {
20355
20355
  return false;
20356
20356
  }
20357
20357
  };
20358
- var summaryVersion = "1.14.0";
20358
+ var summaryVersion = "1.15.0-next.1";
20359
20359
  var nodeKeys = [
20360
20360
  "group",
20361
20361
  "content",
@@ -22074,7 +22074,7 @@ var Editor = class Editor extends EventEmitter$1 {
22074
22074
  return migrations.length > 0;
22075
22075
  }
22076
22076
  processCollaborationMigrations() {
22077
- console.debug("[checkVersionMigrations] Current editor version", "1.14.0");
22077
+ console.debug("[checkVersionMigrations] Current editor version", "1.15.0-next.1");
22078
22078
  if (!this.options.ydoc) return;
22079
22079
  let docVersion = this.options.ydoc.getMap("meta").get("version");
22080
22080
  if (!docVersion) docVersion = "initial";
@@ -27730,7 +27730,7 @@ const renderTableCell = (deps) => {
27730
27730
  lineEl.style.paddingLeft = "";
27731
27731
  lineEl.style.paddingRight = "";
27732
27732
  lineEl.style.textIndent = "";
27733
- if (markerLayout && markerMeasure && lineIdx === 0 && localStartLine === 0 && markerMeasure.markerWidth > 0) {
27733
+ if (markerLayout && markerMeasure && lineIdx === 0 && localStartLine === 0 && markerMeasure.markerWidth > 0 && !markerLayout.run?.vanish) {
27734
27734
  const lineContainer = renderListMarker({
27735
27735
  doc: doc$2,
27736
27736
  lineEl,
@@ -29690,47 +29690,49 @@ var DomPainter = class DomPainter {
29690
29690
  if (isListFirstLine) {
29691
29691
  const marker = wordLayout.marker;
29692
29692
  lineEl.style.paddingLeft = `${paraIndentLeft + (paraIndent?.firstLine ?? 0) - (paraIndent?.hanging ?? 0)}px`;
29693
- const markerContainer = this.doc.createElement("span");
29694
- markerContainer.style.display = "inline-block";
29695
- markerContainer.style.wordSpacing = "0px";
29696
- const markerEl = this.doc.createElement("span");
29697
- markerEl.classList.add("superdoc-paragraph-marker");
29698
- markerEl.textContent = marker.markerText ?? "";
29699
- markerEl.style.pointerEvents = "none";
29700
- const markerJustification = marker.justification ?? "left";
29701
- markerContainer.style.position = "relative";
29702
- if (markerJustification === "right") {
29703
- markerContainer.style.position = "absolute";
29704
- markerContainer.style.left = `${markerStartPos}px`;
29705
- } else if (markerJustification === "center") {
29706
- markerContainer.style.position = "absolute";
29707
- markerContainer.style.left = `${markerStartPos - fragment.markerTextWidth / 2}px`;
29708
- lineEl.style.paddingLeft = parseFloat(lineEl.style.paddingLeft) + fragment.markerTextWidth / 2 + "px";
29709
- }
29710
- markerEl.style.fontFamily = toCssFontFamily(marker.run.fontFamily) ?? marker.run.fontFamily;
29711
- markerEl.style.fontSize = `${marker.run.fontSize}px`;
29712
- markerEl.style.fontWeight = marker.run.bold ? "bold" : "";
29713
- markerEl.style.fontStyle = marker.run.italic ? "italic" : "";
29714
- if (marker.run.color) markerEl.style.color = marker.run.color;
29715
- if (marker.run.letterSpacing != null) markerEl.style.letterSpacing = `${marker.run.letterSpacing}px`;
29716
- markerContainer.appendChild(markerEl);
29717
- const suffix$1 = marker.suffix ?? "tab";
29718
- if (suffix$1 === "tab") {
29719
- const tabEl = this.doc.createElement("span");
29720
- tabEl.className = "superdoc-tab";
29721
- tabEl.innerHTML = " ";
29722
- tabEl.style.display = "inline-block";
29723
- tabEl.style.wordSpacing = "0px";
29724
- tabEl.style.width = `${listTabWidth}px`;
29725
- lineEl.prepend(tabEl);
29726
- } else if (suffix$1 === "space") {
29727
- const spaceEl = this.doc.createElement("span");
29728
- spaceEl.classList.add("superdoc-marker-suffix-space");
29729
- spaceEl.style.wordSpacing = "0px";
29730
- spaceEl.textContent = "\xA0";
29731
- lineEl.prepend(spaceEl);
29693
+ if (!marker.run.vanish) {
29694
+ const markerContainer = this.doc.createElement("span");
29695
+ markerContainer.style.display = "inline-block";
29696
+ markerContainer.style.wordSpacing = "0px";
29697
+ const markerEl = this.doc.createElement("span");
29698
+ markerEl.classList.add("superdoc-paragraph-marker");
29699
+ markerEl.textContent = marker.markerText ?? "";
29700
+ markerEl.style.pointerEvents = "none";
29701
+ const markerJustification = marker.justification ?? "left";
29702
+ markerContainer.style.position = "relative";
29703
+ if (markerJustification === "right") {
29704
+ markerContainer.style.position = "absolute";
29705
+ markerContainer.style.left = `${markerStartPos}px`;
29706
+ } else if (markerJustification === "center") {
29707
+ markerContainer.style.position = "absolute";
29708
+ markerContainer.style.left = `${markerStartPos - fragment.markerTextWidth / 2}px`;
29709
+ lineEl.style.paddingLeft = parseFloat(lineEl.style.paddingLeft) + fragment.markerTextWidth / 2 + "px";
29710
+ }
29711
+ markerEl.style.fontFamily = toCssFontFamily(marker.run.fontFamily) ?? marker.run.fontFamily;
29712
+ markerEl.style.fontSize = `${marker.run.fontSize}px`;
29713
+ markerEl.style.fontWeight = marker.run.bold ? "bold" : "";
29714
+ markerEl.style.fontStyle = marker.run.italic ? "italic" : "";
29715
+ if (marker.run.color) markerEl.style.color = marker.run.color;
29716
+ if (marker.run.letterSpacing != null) markerEl.style.letterSpacing = `${marker.run.letterSpacing}px`;
29717
+ markerContainer.appendChild(markerEl);
29718
+ const suffix$1 = marker.suffix ?? "tab";
29719
+ if (suffix$1 === "tab") {
29720
+ const tabEl = this.doc.createElement("span");
29721
+ tabEl.className = "superdoc-tab";
29722
+ tabEl.innerHTML = " ";
29723
+ tabEl.style.display = "inline-block";
29724
+ tabEl.style.wordSpacing = "0px";
29725
+ tabEl.style.width = `${listTabWidth}px`;
29726
+ lineEl.prepend(tabEl);
29727
+ } else if (suffix$1 === "space") {
29728
+ const spaceEl = this.doc.createElement("span");
29729
+ spaceEl.classList.add("superdoc-marker-suffix-space");
29730
+ spaceEl.style.wordSpacing = "0px";
29731
+ spaceEl.textContent = "\xA0";
29732
+ lineEl.prepend(spaceEl);
29733
+ }
29734
+ lineEl.prepend(markerContainer);
29732
29735
  }
29733
- lineEl.prepend(markerContainer);
29734
29736
  }
29735
29737
  fragmentEl.appendChild(lineEl);
29736
29738
  });
@@ -33914,7 +33916,8 @@ const computeRunAttrs = (runProps, converterContext, defaultFontSizePx = 12, def
33914
33916
  smallCaps: runProps.smallCaps,
33915
33917
  allCaps: runProps?.textTransform === "uppercase",
33916
33918
  letterSpacing: runProps.letterSpacing ? twipsToPx$2(runProps.letterSpacing) : void 0,
33917
- lang: runProps.lang?.val || void 0
33919
+ lang: runProps.lang?.val || void 0,
33920
+ vanish: runProps.vanish
33918
33921
  };
33919
33922
  };
33920
33923
  const VALID_LINK_TARGETS = new Set([
@@ -1,5 +1,5 @@
1
1
  import { a as __toCommonJS, n as __esmMin, r as __export, t as __commonJSMin } from "./rolldown-runtime-B2q5OVn9.es.js";
2
- import { $ as AddMarkStep, A as getMarksFromSelection, At as Schema$1, B as getMarkType, C as generateOrderedListIndex, Ct as TrackFormatMarkName, D as findChildren$1, Dt as DOMSerializer, E as posToDOMRect, Et as DOMParser$1, F as getMarkRange, G as AllSelection, H as cleanSchemaItem, I as isTextSelection, J as Plugin, K as EditorState, L as findParentNode, M as isNodeActive, Mt as minMax, N as getSchemaTypeNameByName, Nt as callOrGet, O as getActiveFormatting, Ot as Fragment$1, P as isMarkActive, Pt as getExtensionConfigField, Q as TextSelection$1, R as findParentNodeClosestToPos, S as docxNumberingHelpers, St as TrackDeleteMarkName, T as isInTable, Tt as carbonCopy, U as getSchemaTypeByName, V as getNodeType, W as createDocument, X as Selection, Y as PluginKey, Z as SelectionRange, _ as changeListLevel, _t as resolveDocxFontFamily, a as _getReferencedTableStyles, at as canJoin, b as calculateResolvedParagraphProperties, bt as resolveTableCellProperties, c as processContent, ct as joinPoint, d as InputRule, dt as generateDocxRandomId, et as Mapping, f as handleClipboardPaste, ft as generateRandomSigned32BitIntStrId, g as ListHelpers, gt as encodeMarksFromRPr, h as unflattenListsInHtml, ht as encodeCSSFromRPr, it as Transform, j as isActive, jt as Slice, k as findMark, kt as Mark$1, l as createDocFromMarkdown, lt as liftTarget, m as inputRulesPlugin, mt as encodeCSSFromPPr, n as kebabCase$1, nt as ReplaceAroundStep$1, o as helpers_exports, ot as canSplit, p as htmlHandler, pt as decodeRPrFromMarks, q as NodeSelection, r as insertNewRelationship, rt as ReplaceStep, s as updateDOMAttributes, st as dropPoint, t as SuperConverter, tt as RemoveMarkStep, u as createDocFromHTML, ut as replaceStep$1, v as updateNumberingProperties, vt as resolveParagraphProperties, w as CommandService, wt as TrackInsertMarkName, x as getResolvedParagraphProperties, xt as getUnderlineCssString, y as isList, yt as resolveRunProperties, z as defaultBlockAt$1 } from "./SuperConverter-BGuW-x9Y.es.js";
2
+ import { $ as AddMarkStep, A as getMarksFromSelection, At as Schema$1, B as getMarkType, C as generateOrderedListIndex, Ct as TrackFormatMarkName, D as findChildren$1, Dt as DOMSerializer, E as posToDOMRect, Et as DOMParser$1, F as getMarkRange, G as AllSelection, H as cleanSchemaItem, I as isTextSelection, J as Plugin, K as EditorState, L as findParentNode, M as isNodeActive, Mt as minMax, N as getSchemaTypeNameByName, Nt as callOrGet, O as getActiveFormatting, Ot as Fragment$1, P as isMarkActive, Pt as getExtensionConfigField, Q as TextSelection$1, R as findParentNodeClosestToPos, S as docxNumberingHelpers, St as TrackDeleteMarkName, T as isInTable, Tt as carbonCopy, U as getSchemaTypeByName, V as getNodeType, W as createDocument, X as Selection, Y as PluginKey, Z as SelectionRange, _ as changeListLevel, _t as resolveDocxFontFamily, a as _getReferencedTableStyles, at as canJoin, b as calculateResolvedParagraphProperties, bt as resolveTableCellProperties, c as processContent, ct as joinPoint, d as InputRule, dt as generateDocxRandomId, et as Mapping, f as handleClipboardPaste, ft as generateRandomSigned32BitIntStrId, g as ListHelpers, gt as encodeMarksFromRPr, h as unflattenListsInHtml, ht as encodeCSSFromRPr, it as Transform, j as isActive, jt as Slice, k as findMark, kt as Mark$1, l as createDocFromMarkdown, lt as liftTarget, m as inputRulesPlugin, mt as encodeCSSFromPPr, n as kebabCase$1, nt as ReplaceAroundStep$1, o as helpers_exports, ot as canSplit, p as htmlHandler, pt as decodeRPrFromMarks, q as NodeSelection, r as insertNewRelationship, rt as ReplaceStep, s as updateDOMAttributes, st as dropPoint, t as SuperConverter, tt as RemoveMarkStep, u as createDocFromHTML, ut as replaceStep$1, v as updateNumberingProperties, vt as resolveParagraphProperties, w as CommandService, wt as TrackInsertMarkName, x as getResolvedParagraphProperties, xt as getUnderlineCssString, y as isList, yt as resolveRunProperties, z as defaultBlockAt$1 } from "./SuperConverter-0JXEABCU.es.js";
3
3
  import { a as init_dist$2, i as global, n as init_dist, o as Buffer$3, r as process$1, s as init_dist$1 } from "./jszip-ChlR43oI.es.js";
4
4
  import { t as v4_default } from "./uuid-2IzDu5nl.es.js";
5
5
  import { A as twipsToLines, T as resolveOpcTargetPath, c as getArrayBufferFromUrl, f as halfPointToPoints, g as linesToTwips, j as twipsToPixels, k as twipsToInches, m as inchesToTwips, p as inchesToPixels, r as convertSizeToCSS, w as ptToTwips, x as pixelsToTwips } from "./helpers-BGD_wEOi.es.js";
@@ -242,7 +242,7 @@ var v_click_outside_default = {
242
242
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
243
243
  function getSuperdocVersion() {
244
244
  try {
245
- return "1.14.0";
245
+ return "1.15.0-next.1";
246
246
  } catch {
247
247
  return "unknown";
248
248
  }
@@ -20336,7 +20336,7 @@ const canUseDOM = () => {
20336
20336
  return false;
20337
20337
  }
20338
20338
  };
20339
- var summaryVersion = "1.14.0";
20339
+ var summaryVersion = "1.15.0-next.1";
20340
20340
  var nodeKeys = [
20341
20341
  "group",
20342
20342
  "content",
@@ -22053,7 +22053,7 @@ var Editor = class Editor extends EventEmitter$1 {
22053
22053
  return migrations.length > 0;
22054
22054
  }
22055
22055
  processCollaborationMigrations() {
22056
- console.debug("[checkVersionMigrations] Current editor version", "1.14.0");
22056
+ console.debug("[checkVersionMigrations] Current editor version", "1.15.0-next.1");
22057
22057
  if (!this.options.ydoc) return;
22058
22058
  let docVersion = this.options.ydoc.getMap("meta").get("version");
22059
22059
  if (!docVersion) docVersion = "initial";
@@ -27699,7 +27699,7 @@ const renderTableCell = (deps) => {
27699
27699
  lineEl.style.paddingLeft = "";
27700
27700
  lineEl.style.paddingRight = "";
27701
27701
  lineEl.style.textIndent = "";
27702
- if (markerLayout && markerMeasure && lineIdx === 0 && localStartLine === 0 && markerMeasure.markerWidth > 0) {
27702
+ if (markerLayout && markerMeasure && lineIdx === 0 && localStartLine === 0 && markerMeasure.markerWidth > 0 && !markerLayout.run?.vanish) {
27703
27703
  const lineContainer = renderListMarker({
27704
27704
  doc: doc$2,
27705
27705
  lineEl,
@@ -29659,47 +29659,49 @@ var DomPainter = class DomPainter {
29659
29659
  if (isListFirstLine) {
29660
29660
  const marker = wordLayout.marker;
29661
29661
  lineEl.style.paddingLeft = `${paraIndentLeft + (paraIndent?.firstLine ?? 0) - (paraIndent?.hanging ?? 0)}px`;
29662
- const markerContainer = this.doc.createElement("span");
29663
- markerContainer.style.display = "inline-block";
29664
- markerContainer.style.wordSpacing = "0px";
29665
- const markerEl = this.doc.createElement("span");
29666
- markerEl.classList.add("superdoc-paragraph-marker");
29667
- markerEl.textContent = marker.markerText ?? "";
29668
- markerEl.style.pointerEvents = "none";
29669
- const markerJustification = marker.justification ?? "left";
29670
- markerContainer.style.position = "relative";
29671
- if (markerJustification === "right") {
29672
- markerContainer.style.position = "absolute";
29673
- markerContainer.style.left = `${markerStartPos}px`;
29674
- } else if (markerJustification === "center") {
29675
- markerContainer.style.position = "absolute";
29676
- markerContainer.style.left = `${markerStartPos - fragment.markerTextWidth / 2}px`;
29677
- lineEl.style.paddingLeft = parseFloat(lineEl.style.paddingLeft) + fragment.markerTextWidth / 2 + "px";
29678
- }
29679
- markerEl.style.fontFamily = toCssFontFamily(marker.run.fontFamily) ?? marker.run.fontFamily;
29680
- markerEl.style.fontSize = `${marker.run.fontSize}px`;
29681
- markerEl.style.fontWeight = marker.run.bold ? "bold" : "";
29682
- markerEl.style.fontStyle = marker.run.italic ? "italic" : "";
29683
- if (marker.run.color) markerEl.style.color = marker.run.color;
29684
- if (marker.run.letterSpacing != null) markerEl.style.letterSpacing = `${marker.run.letterSpacing}px`;
29685
- markerContainer.appendChild(markerEl);
29686
- const suffix$1 = marker.suffix ?? "tab";
29687
- if (suffix$1 === "tab") {
29688
- const tabEl = this.doc.createElement("span");
29689
- tabEl.className = "superdoc-tab";
29690
- tabEl.innerHTML = " ";
29691
- tabEl.style.display = "inline-block";
29692
- tabEl.style.wordSpacing = "0px";
29693
- tabEl.style.width = `${listTabWidth}px`;
29694
- lineEl.prepend(tabEl);
29695
- } else if (suffix$1 === "space") {
29696
- const spaceEl = this.doc.createElement("span");
29697
- spaceEl.classList.add("superdoc-marker-suffix-space");
29698
- spaceEl.style.wordSpacing = "0px";
29699
- spaceEl.textContent = "\xA0";
29700
- lineEl.prepend(spaceEl);
29662
+ if (!marker.run.vanish) {
29663
+ const markerContainer = this.doc.createElement("span");
29664
+ markerContainer.style.display = "inline-block";
29665
+ markerContainer.style.wordSpacing = "0px";
29666
+ const markerEl = this.doc.createElement("span");
29667
+ markerEl.classList.add("superdoc-paragraph-marker");
29668
+ markerEl.textContent = marker.markerText ?? "";
29669
+ markerEl.style.pointerEvents = "none";
29670
+ const markerJustification = marker.justification ?? "left";
29671
+ markerContainer.style.position = "relative";
29672
+ if (markerJustification === "right") {
29673
+ markerContainer.style.position = "absolute";
29674
+ markerContainer.style.left = `${markerStartPos}px`;
29675
+ } else if (markerJustification === "center") {
29676
+ markerContainer.style.position = "absolute";
29677
+ markerContainer.style.left = `${markerStartPos - fragment.markerTextWidth / 2}px`;
29678
+ lineEl.style.paddingLeft = parseFloat(lineEl.style.paddingLeft) + fragment.markerTextWidth / 2 + "px";
29679
+ }
29680
+ markerEl.style.fontFamily = toCssFontFamily(marker.run.fontFamily) ?? marker.run.fontFamily;
29681
+ markerEl.style.fontSize = `${marker.run.fontSize}px`;
29682
+ markerEl.style.fontWeight = marker.run.bold ? "bold" : "";
29683
+ markerEl.style.fontStyle = marker.run.italic ? "italic" : "";
29684
+ if (marker.run.color) markerEl.style.color = marker.run.color;
29685
+ if (marker.run.letterSpacing != null) markerEl.style.letterSpacing = `${marker.run.letterSpacing}px`;
29686
+ markerContainer.appendChild(markerEl);
29687
+ const suffix$1 = marker.suffix ?? "tab";
29688
+ if (suffix$1 === "tab") {
29689
+ const tabEl = this.doc.createElement("span");
29690
+ tabEl.className = "superdoc-tab";
29691
+ tabEl.innerHTML = " ";
29692
+ tabEl.style.display = "inline-block";
29693
+ tabEl.style.wordSpacing = "0px";
29694
+ tabEl.style.width = `${listTabWidth}px`;
29695
+ lineEl.prepend(tabEl);
29696
+ } else if (suffix$1 === "space") {
29697
+ const spaceEl = this.doc.createElement("span");
29698
+ spaceEl.classList.add("superdoc-marker-suffix-space");
29699
+ spaceEl.style.wordSpacing = "0px";
29700
+ spaceEl.textContent = "\xA0";
29701
+ lineEl.prepend(spaceEl);
29702
+ }
29703
+ lineEl.prepend(markerContainer);
29701
29704
  }
29702
- lineEl.prepend(markerContainer);
29703
29705
  }
29704
29706
  fragmentEl.appendChild(lineEl);
29705
29707
  });
@@ -33877,7 +33879,8 @@ const computeRunAttrs = (runProps, converterContext, defaultFontSizePx = 12, def
33877
33879
  smallCaps: runProps.smallCaps,
33878
33880
  allCaps: runProps?.textTransform === "uppercase",
33879
33881
  letterSpacing: runProps.letterSpacing ? twipsToPx$2(runProps.letterSpacing) : void 0,
33880
- lang: runProps.lang?.val || void 0
33882
+ lang: runProps.lang?.val || void 0,
33883
+ vanish: runProps.vanish
33881
33884
  };
33882
33885
  };
33883
33886
  const VALID_LINK_TARGETS = new Set([
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../chunks/rolldown-runtime-Dp2H1eGw.cjs");
3
- const require_SuperConverter = require("../chunks/SuperConverter-BWKP_jTL.cjs");
3
+ const require_SuperConverter = require("../chunks/SuperConverter-D4bnFDP0.cjs");
4
4
  require("../chunks/jszip-DCT9QYaK.cjs");
5
5
  require("../chunks/xml-js--DznO7Gk.cjs");
6
6
  require("../chunks/helpers-Cs_Zz44i.cjs");
@@ -1,4 +1,4 @@
1
- import { t as SuperConverter } from "../chunks/SuperConverter-BGuW-x9Y.es.js";
1
+ import { t as SuperConverter } from "../chunks/SuperConverter-0JXEABCU.es.js";
2
2
  import "../chunks/jszip-ChlR43oI.es.js";
3
3
  import "../chunks/xml-js-DLE8mr0n.es.js";
4
4
  import "../chunks/helpers-BGD_wEOi.es.js";
@@ -1,3 +1,3 @@
1
1
  import { Schema } from 'prosemirror-model';
2
- export const testSchema: Schema<"text" | "tab" | "paragraph" | "doc" | "orderedList" | "bulletList" | "listItem", never>;
2
+ export const testSchema: Schema<"text" | "tab" | "paragraph" | "doc" | "listItem" | "orderedList" | "bulletList", never>;
3
3
  //# sourceMappingURL=test-schema.d.ts.map
@@ -354,7 +354,7 @@ export type TableProperties = {
354
354
  /**
355
355
  * - Specifies whether the current table should allow other floating tables to overlap its extents when the tables are displayed in a document
356
356
  */
357
- overlap?: "never" | "overlap" | undefined;
357
+ overlap?: "overlap" | "never" | undefined;
358
358
  /**
359
359
  * - Reference to table style ID
360
360
  */
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("./chunks/rolldown-runtime-Dp2H1eGw.cjs");
3
- const require_src = require("./chunks/src-B-a8oU-W.cjs");
4
- const require_SuperConverter = require("./chunks/SuperConverter-BWKP_jTL.cjs");
3
+ const require_src = require("./chunks/src-C4usUjkO.cjs");
4
+ const require_SuperConverter = require("./chunks/SuperConverter-D4bnFDP0.cjs");
5
5
  require("./chunks/jszip-DCT9QYaK.cjs");
6
6
  require("./chunks/xml-js--DznO7Gk.cjs");
7
7
  require("./chunks/helpers-Cs_Zz44i.cjs");
@@ -1,5 +1,5 @@
1
- import { $ as SectionHelpers, Bt as assertNodeType, J as AIWriter_default, Lt as defineMark, Q as getAllowedImageDimensions, Rt as defineNode, Vt as isNodeType, X as getStarterExtensions, Y as getRichTextExtensions, Z as trackChangesHelpers_exports, a as SlashMenu_default, at as TrackChangesBasePluginKey, et as PresentationEditor, i as BasicUpload_default, it as CommentsPluginKey, n as SuperInput_default, nt as fieldAnnotationHelpers_exports, o as SuperToolbar, r as SuperEditor_default, rt as AnnotatorHelpers, s as Toolbar_default, t as Extensions, tt as Editor, zt as isMarkType } from "./chunks/src-Bff1txuA.es.js";
2
- import { A as getMarksFromSelection, O as getActiveFormatting, i as registeredHandlers, o as helpers_exports, t as SuperConverter } from "./chunks/SuperConverter-BGuW-x9Y.es.js";
1
+ import { $ as SectionHelpers, Bt as assertNodeType, J as AIWriter_default, Lt as defineMark, Q as getAllowedImageDimensions, Rt as defineNode, Vt as isNodeType, X as getStarterExtensions, Y as getRichTextExtensions, Z as trackChangesHelpers_exports, a as SlashMenu_default, at as TrackChangesBasePluginKey, et as PresentationEditor, i as BasicUpload_default, it as CommentsPluginKey, n as SuperInput_default, nt as fieldAnnotationHelpers_exports, o as SuperToolbar, r as SuperEditor_default, rt as AnnotatorHelpers, s as Toolbar_default, t as Extensions, tt as Editor, zt as isMarkType } from "./chunks/src-CF15O-H9.es.js";
2
+ import { A as getMarksFromSelection, O as getActiveFormatting, i as registeredHandlers, o as helpers_exports, t as SuperConverter } from "./chunks/SuperConverter-0JXEABCU.es.js";
3
3
  import "./chunks/jszip-ChlR43oI.es.js";
4
4
  import "./chunks/xml-js-DLE8mr0n.es.js";
5
5
  import "./chunks/helpers-BGD_wEOi.es.js";
package/dist/superdoc.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("./chunks/rolldown-runtime-Dp2H1eGw.cjs");
3
- const require_src = require("./chunks/src-B-a8oU-W.cjs");
4
- const require_SuperConverter = require("./chunks/SuperConverter-BWKP_jTL.cjs");
3
+ const require_src = require("./chunks/src-C4usUjkO.cjs");
4
+ const require_SuperConverter = require("./chunks/SuperConverter-D4bnFDP0.cjs");
5
5
  const require_jszip = require("./chunks/jszip-DCT9QYaK.cjs");
6
6
  require("./chunks/xml-js--DznO7Gk.cjs");
7
7
  const require_uuid = require("./chunks/uuid-CHj_rjgt.cjs");
@@ -19677,7 +19677,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
19677
19677
  this.config.colors = shuffleArray(this.config.colors);
19678
19678
  this.userColorMap = /* @__PURE__ */ new Map();
19679
19679
  this.colorIndex = 0;
19680
- this.version = "1.14.0";
19680
+ this.version = "1.15.0-next.1";
19681
19681
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
19682
19682
  this.superdocId = config.superdocId || require_uuid.v4_default();
19683
19683
  this.colors = this.config.colors;
@@ -1,5 +1,5 @@
1
- import { $ as SectionHelpers, A as useMergedState, At as writeVarUint8Array, B as createKey, C as render, Ct as readVarString, D as useSsrAdapter, Dt as length, E as warnOnce, Et as createEncoder, F as c, Ft as getFileObject, G as xmark_solid_default, H as insidePopover, I as cB, It as comments_module_events, J as AIWriter_default, K as check_solid_default, L as cE, M as on, Mt as min, N as createId, Nt as pow, O as createInjectionKey, Ot as toUint8Array, P as changeColor, Pt as v_click_outside_default, R as cM, S as resolveWrappedSlot, St as createDecoder, T as throwError, Tt as readVarUint8Array, U as caret_down_solid_default, V as insideModal, W as ellipsis_vertical_solid_default, X as getStarterExtensions, Y as getRichTextExtensions, Z as trackChangesHelpers_exports, _ as cssrAnchorMetaName, _t as removeAwarenessStates, at as TrackChangesBasePluginKey, b as useConfig, bt as setIfUndefined, c as messageApiInjectionKey, ct as fromBase64, d as ConfigProvider_default, dt as offChange, et as PresentationEditor, f as light_default$1, ft as onChange, g as useRtl, gt as encodeAwarenessUpdate, h as _common_default$2, ht as applyAwarenessUpdate, it as CommentsPluginKey, j as use_memo_default, jt as create, k as isMounted, kt as writeVarUint, l as messageProviderInjectionKey, lt as toBase64, m as index_cssr_default$5, mt as Awareness, n as SuperInput_default, nt as fieldAnnotationHelpers_exports, o as SuperToolbar, ot as getTrackChanges, p as use_theme_default, pt as varStorage, q as comment_solid_default, r as SuperEditor_default, rt as AnnotatorHelpers, st as createUint8ArrayFromArrayBuffer, t as Extensions, tt as Editor, u as Dropdown_default, ut as isNode, v as toString_default, vt as map, w as call, wt as readVarUint, x as configProviderInjectionKey, xt as getUnixTime, y as useThemeClass, yt as ObservableV2, z as cNotM } from "./chunks/src-Bff1txuA.es.js";
2
- import { i as registeredHandlers, o as helpers_exports, t as SuperConverter } from "./chunks/SuperConverter-BGuW-x9Y.es.js";
1
+ import { $ as SectionHelpers, A as useMergedState, At as writeVarUint8Array, B as createKey, C as render, Ct as readVarString, D as useSsrAdapter, Dt as length, E as warnOnce, Et as createEncoder, F as c, Ft as getFileObject, G as xmark_solid_default, H as insidePopover, I as cB, It as comments_module_events, J as AIWriter_default, K as check_solid_default, L as cE, M as on, Mt as min, N as createId, Nt as pow, O as createInjectionKey, Ot as toUint8Array, P as changeColor, Pt as v_click_outside_default, R as cM, S as resolveWrappedSlot, St as createDecoder, T as throwError, Tt as readVarUint8Array, U as caret_down_solid_default, V as insideModal, W as ellipsis_vertical_solid_default, X as getStarterExtensions, Y as getRichTextExtensions, Z as trackChangesHelpers_exports, _ as cssrAnchorMetaName, _t as removeAwarenessStates, at as TrackChangesBasePluginKey, b as useConfig, bt as setIfUndefined, c as messageApiInjectionKey, ct as fromBase64, d as ConfigProvider_default, dt as offChange, et as PresentationEditor, f as light_default$1, ft as onChange, g as useRtl, gt as encodeAwarenessUpdate, h as _common_default$2, ht as applyAwarenessUpdate, it as CommentsPluginKey, j as use_memo_default, jt as create, k as isMounted, kt as writeVarUint, l as messageProviderInjectionKey, lt as toBase64, m as index_cssr_default$5, mt as Awareness, n as SuperInput_default, nt as fieldAnnotationHelpers_exports, o as SuperToolbar, ot as getTrackChanges, p as use_theme_default, pt as varStorage, q as comment_solid_default, r as SuperEditor_default, rt as AnnotatorHelpers, st as createUint8ArrayFromArrayBuffer, t as Extensions, tt as Editor, u as Dropdown_default, ut as isNode, v as toString_default, vt as map, w as call, wt as readVarUint, x as configProviderInjectionKey, xt as getUnixTime, y as useThemeClass, yt as ObservableV2, z as cNotM } from "./chunks/src-CF15O-H9.es.js";
2
+ import { i as registeredHandlers, o as helpers_exports, t as SuperConverter } from "./chunks/SuperConverter-0JXEABCU.es.js";
3
3
  import { a as init_dist$1, i as global, n as init_dist, r as process$1 } from "./chunks/jszip-ChlR43oI.es.js";
4
4
  import "./chunks/xml-js-DLE8mr0n.es.js";
5
5
  import { t as v4_default } from "./chunks/uuid-2IzDu5nl.es.js";
@@ -19636,7 +19636,7 @@ var SuperDoc = class extends import_eventemitter3.default {
19636
19636
  this.config.colors = shuffleArray(this.config.colors);
19637
19637
  this.userColorMap = /* @__PURE__ */ new Map();
19638
19638
  this.colorIndex = 0;
19639
- this.version = "1.14.0";
19639
+ this.version = "1.15.0-next.1";
19640
19640
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
19641
19641
  this.superdocId = config.superdocId || v4_default();
19642
19642
  this.colors = this.config.colors;
@@ -33148,7 +33148,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
33148
33148
  var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
33149
33149
  function getSuperdocVersion() {
33150
33150
  try {
33151
- return "1.14.0";
33151
+ return "1.15.0-next.1";
33152
33152
  } catch {
33153
33153
  return "unknown";
33154
33154
  }
@@ -36090,7 +36090,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
36090
36090
  static getStoredSuperdocVersion(docx) {
36091
36091
  return SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
36092
36092
  }
36093
- static setStoredSuperdocVersion(docx = this.convertedXml, version$2 = "1.14.0") {
36093
+ static setStoredSuperdocVersion(docx = this.convertedXml, version$2 = "1.15.0-next.1") {
36094
36094
  return SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version$2, false);
36095
36095
  }
36096
36096
  static generateWordTimestamp() {
@@ -65083,7 +65083,7 @@ while (n$2 === a$3[++i$3] && n$2 === a$3[++i$3] && n$2 === a$3[++i$3] && n$2 ===
65083
65083
  return false;
65084
65084
  }
65085
65085
  };
65086
- var summaryVersion = "1.14.0";
65086
+ var summaryVersion = "1.15.0-next.1";
65087
65087
  var nodeKeys = [
65088
65088
  "group",
65089
65089
  "content",
@@ -84180,7 +84180,7 @@ while (n$2 === a$3[++i$3] && n$2 === a$3[++i$3] && n$2 === a$3[++i$3] && n$2 ===
84180
84180
  return migrations.length > 0;
84181
84181
  }
84182
84182
  processCollaborationMigrations() {
84183
- console.debug("[checkVersionMigrations] Current editor version", "1.14.0");
84183
+ console.debug("[checkVersionMigrations] Current editor version", "1.15.0-next.1");
84184
84184
  if (!this.options.ydoc) return;
84185
84185
  let docVersion = this.options.ydoc.getMap("meta").get("version");
84186
84186
  if (!docVersion) docVersion = "initial";
@@ -89824,7 +89824,7 @@ ${o}
89824
89824
  lineEl.style.paddingLeft = "";
89825
89825
  lineEl.style.paddingRight = "";
89826
89826
  lineEl.style.textIndent = "";
89827
- if (markerLayout && markerMeasure && lineIdx === 0 && localStartLine === 0 && markerMeasure.markerWidth > 0) {
89827
+ if (markerLayout && markerMeasure && lineIdx === 0 && localStartLine === 0 && markerMeasure.markerWidth > 0 && !markerLayout.run?.vanish) {
89828
89828
  const lineContainer = renderListMarker({
89829
89829
  doc: doc$4,
89830
89830
  lineEl,
@@ -91782,47 +91782,49 @@ ${o}
91782
91782
  if (isListFirstLine) {
91783
91783
  const marker = wordLayout.marker;
91784
91784
  lineEl.style.paddingLeft = `${paraIndentLeft + (paraIndent?.firstLine ?? 0) - (paraIndent?.hanging ?? 0)}px`;
91785
- const markerContainer = this.doc.createElement("span");
91786
- markerContainer.style.display = "inline-block";
91787
- markerContainer.style.wordSpacing = "0px";
91788
- const markerEl = this.doc.createElement("span");
91789
- markerEl.classList.add("superdoc-paragraph-marker");
91790
- markerEl.textContent = marker.markerText ?? "";
91791
- markerEl.style.pointerEvents = "none";
91792
- const markerJustification = marker.justification ?? "left";
91793
- markerContainer.style.position = "relative";
91794
- if (markerJustification === "right") {
91795
- markerContainer.style.position = "absolute";
91796
- markerContainer.style.left = `${markerStartPos}px`;
91797
- } else if (markerJustification === "center") {
91798
- markerContainer.style.position = "absolute";
91799
- markerContainer.style.left = `${markerStartPos - fragment.markerTextWidth / 2}px`;
91800
- lineEl.style.paddingLeft = parseFloat(lineEl.style.paddingLeft) + fragment.markerTextWidth / 2 + "px";
91801
- }
91802
- markerEl.style.fontFamily = toCssFontFamily(marker.run.fontFamily) ?? marker.run.fontFamily;
91803
- markerEl.style.fontSize = `${marker.run.fontSize}px`;
91804
- markerEl.style.fontWeight = marker.run.bold ? "bold" : "";
91805
- markerEl.style.fontStyle = marker.run.italic ? "italic" : "";
91806
- if (marker.run.color) markerEl.style.color = marker.run.color;
91807
- if (marker.run.letterSpacing != null) markerEl.style.letterSpacing = `${marker.run.letterSpacing}px`;
91808
- markerContainer.appendChild(markerEl);
91809
- const suffix$1 = marker.suffix ?? "tab";
91810
- if (suffix$1 === "tab") {
91811
- const tabEl = this.doc.createElement("span");
91812
- tabEl.className = "superdoc-tab";
91813
- tabEl.innerHTML = "&nbsp;";
91814
- tabEl.style.display = "inline-block";
91815
- tabEl.style.wordSpacing = "0px";
91816
- tabEl.style.width = `${listTabWidth}px`;
91817
- lineEl.prepend(tabEl);
91818
- } else if (suffix$1 === "space") {
91819
- const spaceEl = this.doc.createElement("span");
91820
- spaceEl.classList.add("superdoc-marker-suffix-space");
91821
- spaceEl.style.wordSpacing = "0px";
91822
- spaceEl.textContent = "\xA0";
91823
- lineEl.prepend(spaceEl);
91785
+ if (!marker.run.vanish) {
91786
+ const markerContainer = this.doc.createElement("span");
91787
+ markerContainer.style.display = "inline-block";
91788
+ markerContainer.style.wordSpacing = "0px";
91789
+ const markerEl = this.doc.createElement("span");
91790
+ markerEl.classList.add("superdoc-paragraph-marker");
91791
+ markerEl.textContent = marker.markerText ?? "";
91792
+ markerEl.style.pointerEvents = "none";
91793
+ const markerJustification = marker.justification ?? "left";
91794
+ markerContainer.style.position = "relative";
91795
+ if (markerJustification === "right") {
91796
+ markerContainer.style.position = "absolute";
91797
+ markerContainer.style.left = `${markerStartPos}px`;
91798
+ } else if (markerJustification === "center") {
91799
+ markerContainer.style.position = "absolute";
91800
+ markerContainer.style.left = `${markerStartPos - fragment.markerTextWidth / 2}px`;
91801
+ lineEl.style.paddingLeft = parseFloat(lineEl.style.paddingLeft) + fragment.markerTextWidth / 2 + "px";
91802
+ }
91803
+ markerEl.style.fontFamily = toCssFontFamily(marker.run.fontFamily) ?? marker.run.fontFamily;
91804
+ markerEl.style.fontSize = `${marker.run.fontSize}px`;
91805
+ markerEl.style.fontWeight = marker.run.bold ? "bold" : "";
91806
+ markerEl.style.fontStyle = marker.run.italic ? "italic" : "";
91807
+ if (marker.run.color) markerEl.style.color = marker.run.color;
91808
+ if (marker.run.letterSpacing != null) markerEl.style.letterSpacing = `${marker.run.letterSpacing}px`;
91809
+ markerContainer.appendChild(markerEl);
91810
+ const suffix$1 = marker.suffix ?? "tab";
91811
+ if (suffix$1 === "tab") {
91812
+ const tabEl = this.doc.createElement("span");
91813
+ tabEl.className = "superdoc-tab";
91814
+ tabEl.innerHTML = "&nbsp;";
91815
+ tabEl.style.display = "inline-block";
91816
+ tabEl.style.wordSpacing = "0px";
91817
+ tabEl.style.width = `${listTabWidth}px`;
91818
+ lineEl.prepend(tabEl);
91819
+ } else if (suffix$1 === "space") {
91820
+ const spaceEl = this.doc.createElement("span");
91821
+ spaceEl.classList.add("superdoc-marker-suffix-space");
91822
+ spaceEl.style.wordSpacing = "0px";
91823
+ spaceEl.textContent = "\xA0";
91824
+ lineEl.prepend(spaceEl);
91825
+ }
91826
+ lineEl.prepend(markerContainer);
91824
91827
  }
91825
- lineEl.prepend(markerContainer);
91826
91828
  }
91827
91829
  fragmentEl.appendChild(lineEl);
91828
91830
  });
@@ -95995,7 +95997,8 @@ ${o}
95995
95997
  smallCaps: runProps.smallCaps,
95996
95998
  allCaps: runProps?.textTransform === "uppercase",
95997
95999
  letterSpacing: runProps.letterSpacing ? twipsToPx$2(runProps.letterSpacing) : void 0,
95998
- lang: runProps.lang?.val || void 0
96000
+ lang: runProps.lang?.val || void 0,
96001
+ vanish: runProps.vanish
95999
96002
  };
96000
96003
  };
96001
96004
  const VALID_LINK_TARGETS = new Set([
@@ -166952,7 +166955,7 @@ js: import "konva/skia-backend";
166952
166955
  this.config.colors = shuffleArray(this.config.colors);
166953
166956
  this.userColorMap = /* @__PURE__ */ new Map();
166954
166957
  this.colorIndex = 0;
166955
- this.version = "1.14.0";
166958
+ this.version = "1.15.0-next.1";
166956
166959
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
166957
166960
  this.superdocId = config$31.superdocId || v4_default();
166958
166961
  this.colors = this.config.colors;