@harbour-enterprises/superdoc 0.29.0-next.5 → 0.29.0-next.7

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.
Files changed (33) hide show
  1. package/dist/chunks/{PdfViewer-B0-i_xj1.es.js → PdfViewer-D2cnJhM1.es.js} +1 -1
  2. package/dist/chunks/{PdfViewer-GDvgD4EV.cjs → PdfViewer-DyUG4__F.cjs} +1 -1
  3. package/dist/chunks/{index-kFcrcUyP-CmyweStu.es.js → index-BqhJhdcP-B9XbOefk.es.js} +1 -1
  4. package/dist/chunks/{index-kFcrcUyP-C6zZ0EM9.cjs → index-BqhJhdcP-Dm9pUO-L.cjs} +1 -1
  5. package/dist/chunks/{index-DyPYyfC3.es.js → index-DC11bH-A.es.js} +3 -3
  6. package/dist/chunks/{index-BNH18425.cjs → index-DZIAPuKc.cjs} +3 -3
  7. package/dist/chunks/{super-editor.es-C5LZbA8E.cjs → super-editor.es-607cvQXw.cjs} +13 -8
  8. package/dist/chunks/{super-editor.es-BmSmyoDe.es.js → super-editor.es-DNPslOnx.es.js} +13 -8
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-CDG8w12p.js → converter--SREdiqQ.js} +8 -4
  11. package/dist/super-editor/chunks/{docx-zipper-JWGA5kNp.js → docx-zipper-BRGsc2Y2.js} +1 -1
  12. package/dist/super-editor/chunks/{editor-COcBSJ6s.js → editor-DsKLhlKe.js} +7 -6
  13. package/dist/super-editor/chunks/{index-kFcrcUyP.js → index-BqhJhdcP.js} +1 -1
  14. package/dist/super-editor/chunks/{toolbar-B_CGMnHE.js → toolbar-Dqed7MP7.js} +2 -2
  15. package/dist/super-editor/converter.es.js +1 -1
  16. package/dist/super-editor/docx-zipper.es.js +2 -2
  17. package/dist/super-editor/editor.es.js +3 -3
  18. package/dist/super-editor/file-zipper.es.js +1 -1
  19. package/dist/super-editor/super-editor/src/core/super-converter/SuperConverter.d.ts +0 -5
  20. package/dist/super-editor/super-editor/src/core/super-converter/SuperConverter.d.ts.map +1 -1
  21. package/dist/super-editor/super-editor/src/core/super-converter/exporter.d.ts.map +1 -1
  22. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts +1 -1
  23. package/dist/super-editor/super-editor/src/core/super-converter/v2/importer/markImporter.d.ts.map +1 -1
  24. package/dist/super-editor/super-editor/src/extensions/strike/strike.d.ts.map +1 -1
  25. package/dist/super-editor/super-editor.es.js +6 -6
  26. package/dist/super-editor/toolbar.es.js +2 -2
  27. package/dist/super-editor.cjs +1 -1
  28. package/dist/super-editor.es.js +1 -1
  29. package/dist/superdoc.cjs +2 -2
  30. package/dist/superdoc.es.js +2 -2
  31. package/dist/superdoc.umd.js +15 -10
  32. package/dist/superdoc.umd.js.map +1 -1
  33. package/package.json +1 -1
@@ -32752,7 +32752,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32752
32752
  seen.add(m2.type);
32753
32753
  const { attributes = {} } = element2;
32754
32754
  const newMark = { type: m2.type };
32755
- const exceptionMarks = ["w:b", "w:caps"];
32755
+ const exceptionMarks = ["w:b", "w:caps", "w:strike", "w:dstrike"];
32756
32756
  if ((attributes["w:val"] === "0" || attributes["w:val"] === "none") && !exceptionMarks.includes(m2.name)) {
32757
32757
  return;
32758
32758
  }
@@ -32875,7 +32875,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
32875
32875
  if (raw === void 0 || raw === null) return "1";
32876
32876
  const value = String(raw).trim().toLowerCase();
32877
32877
  if (value === "1" || value === "true" || value === "on") return "1";
32878
- return null;
32878
+ if (value === "0" || value === "false" || value === "off") return "0";
32879
+ return "1";
32879
32880
  }
32880
32881
  const parseParagraphBorders = (pBdr) => {
32881
32882
  if (!pBdr || !pBdr.elements) return {};
@@ -42760,6 +42761,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
42760
42761
  const translated = translator$1r.decode({ node: { attrs: { highlight: highlightValue } } });
42761
42762
  return translated || {};
42762
42763
  }
42764
+ case "strike":
42765
+ if (attrs?.value === "0") markElement.attributes["w:val"] = attrs.value;
42766
+ break;
42763
42767
  case "link":
42764
42768
  return {};
42765
42769
  }
@@ -43321,7 +43325,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
43321
43325
  static getStoredSuperdocVersion(docx) {
43322
43326
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
43323
43327
  }
43324
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.5") {
43328
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.29.0-next.7") {
43325
43329
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
43326
43330
  }
43327
43331
  /**
@@ -43871,7 +43875,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
43871
43875
  { name: "w:i", type: "italic" },
43872
43876
  // { name: 'w:iCs', type: 'italic' },
43873
43877
  { name: "w:u", type: "underline", mark: "underline", property: "underlineType" },
43874
- { name: "w:strike", type: "strike", mark: "strike" },
43878
+ { name: "w:strike", type: "strike", mark: "strike", property: "value" },
43875
43879
  { name: "w:color", type: "color", mark: "textStyle", property: "color" },
43876
43880
  { name: "w:sz", type: "fontSize", mark: "textStyle", property: "fontSize" },
43877
43881
  // { name: 'w:szCs', type: 'fontSize', mark: 'textStyle', property: 'fontSize' },
@@ -61510,7 +61514,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
61510
61514
  { default: remarkStringify2 },
61511
61515
  { default: remarkGfm2 }
61512
61516
  ] = await Promise.all([
61513
- Promise.resolve().then(() => indexKFcrcUyP),
61517
+ Promise.resolve().then(() => indexBqhJhdcP),
61514
61518
  Promise.resolve().then(() => indexDRCvimau),
61515
61519
  Promise.resolve().then(() => indexC_x_N6Uh),
61516
61520
  Promise.resolve().then(() => indexD_sWOSiG),
@@ -61728,7 +61732,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
61728
61732
  * @returns {Object | void} Migration results
61729
61733
  */
61730
61734
  processCollaborationMigrations() {
61731
- console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.5");
61735
+ console.debug("[checkVersionMigrations] Current editor version", "0.29.0-next.7");
61732
61736
  if (!this.options.ydoc) return;
61733
61737
  const metaMap = this.options.ydoc.getMap("meta");
61734
61738
  let docVersion = metaMap.get("version");
@@ -78168,9 +78172,10 @@ ${l}
78168
78172
  { style: "text-decoration=auto", clearMark: (m2) => m2.type.name == "s" }
78169
78173
  ];
78170
78174
  },
78171
- renderDOM({ htmlAttributes }) {
78175
+ renderDOM({ mark: mark2, htmlAttributes }) {
78172
78176
  const merged = Attribute.mergeAttributes(this.options.htmlAttributes, htmlAttributes);
78173
- const { value, ...rest } = merged || {};
78177
+ const { value } = mark2.attrs;
78178
+ const { ...rest } = merged || {};
78174
78179
  if (value === "0") {
78175
78180
  return ["span", rest, 0];
78176
78181
  }
@@ -117639,7 +117644,7 @@ ${style2}
117639
117644
  this.config.colors = shuffleArray(this.config.colors);
117640
117645
  this.userColorMap = /* @__PURE__ */ new Map();
117641
117646
  this.colorIndex = 0;
117642
- this.version = "0.29.0-next.5";
117647
+ this.version = "0.29.0-next.7";
117643
117648
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
117644
117649
  this.superdocId = config2.superdocId || v4();
117645
117650
  this.colors = this.config.colors;
@@ -120039,7 +120044,7 @@ ${style2}
120039
120044
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
120040
120045
  );
120041
120046
  }
120042
- const indexKFcrcUyP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
120047
+ const indexBqhJhdcP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
120043
120048
  __proto__: null,
120044
120049
  unified
120045
120050
  }, Symbol.toStringTag, { value: "Module" }));