@harbour-enterprises/superdoc 1.0.0-beta.63 → 1.0.0-beta.64

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 (27) hide show
  1. package/dist/chunks/{PdfViewer-Dc7zft9M.cjs → PdfViewer-DQuv5TC5.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-Enk2l025.es.js → PdfViewer-eDXBBm0A.es.js} +1 -1
  3. package/dist/chunks/{index-DZPXVd1d.cjs → index-GODMYLW8.cjs} +3 -3
  4. package/dist/chunks/{index-KZsFukCq.es.js → index-LZWibrrm.es.js} +3 -3
  5. package/dist/chunks/{index-BO5Ne6G9-njLy4w3i.cjs → index-uKyvUOIq-BcsSifhl.cjs} +1 -1
  6. package/dist/chunks/{index-BO5Ne6G9-BxC5lPet.es.js → index-uKyvUOIq-wrjX8LH1.es.js} +1 -1
  7. package/dist/chunks/{super-editor.es-Crw7wu2n.cjs → super-editor.es-BhtY_fQ8.cjs} +35 -9
  8. package/dist/chunks/{super-editor.es-DhGXcD3R.es.js → super-editor.es-CnZWn7ul.es.js} +35 -9
  9. package/dist/super-editor/ai-writer.es.js +2 -2
  10. package/dist/super-editor/chunks/{converter-C4bE8Uad.js → converter-BcvDxwm_.js} +1 -1
  11. package/dist/super-editor/chunks/{docx-zipper-BIkbwyZO.js → docx-zipper-CNK_ACKk.js} +1 -1
  12. package/dist/super-editor/chunks/{editor-ByMtGRzi.js → editor-iZ4LJ7th.js} +36 -10
  13. package/dist/super-editor/chunks/{index-BO5Ne6G9.js → index-uKyvUOIq.js} +1 -1
  14. package/dist/super-editor/chunks/{toolbar-DFgaXUsx.js → toolbar-CopRzMJ_.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.es.js +6 -6
  20. package/dist/super-editor/toolbar.es.js +2 -2
  21. package/dist/super-editor.cjs +1 -1
  22. package/dist/super-editor.es.js +1 -1
  23. package/dist/superdoc.cjs +2 -2
  24. package/dist/superdoc.es.js +2 -2
  25. package/dist/superdoc.umd.js +37 -11
  26. package/dist/superdoc.umd.js.map +1 -1
  27. package/package.json +1 -1
@@ -42327,7 +42327,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
42327
42327
  static getStoredSuperdocVersion(docx) {
42328
42328
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
42329
42329
  }
42330
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.63") {
42330
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.64") {
42331
42331
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
42332
42332
  }
42333
42333
  /**
@@ -67373,7 +67373,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
67373
67373
  const shouldSkipNodeView = (editor) => {
67374
67374
  return isHeadless(editor);
67375
67375
  };
67376
- const summaryVersion = "1.0.0-beta.63";
67376
+ const summaryVersion = "1.0.0-beta.64";
67377
67377
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
67378
67378
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
67379
67379
  function mapAttributes(attrs) {
@@ -68162,7 +68162,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
68162
68162
  { default: remarkStringify2 },
68163
68163
  { default: remarkGfm2 }
68164
68164
  ] = await Promise.all([
68165
- Promise.resolve().then(() => indexBO5Ne6G9),
68165
+ Promise.resolve().then(() => indexUKyvUOIq),
68166
68166
  Promise.resolve().then(() => indexDRCvimau),
68167
68167
  Promise.resolve().then(() => indexC_x_N6Uh),
68168
68168
  Promise.resolve().then(() => indexD_sWOSiG),
@@ -68367,7 +68367,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
68367
68367
  * Process collaboration migrations
68368
68368
  */
68369
68369
  processCollaborationMigrations() {
68370
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.63");
68370
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.64");
68371
68371
  if (!this.options.ydoc) return;
68372
68372
  const metaMap = this.options.ydoc.getMap("meta");
68373
68373
  let docVersion = metaMap.get("version");
@@ -86644,7 +86644,7 @@ ${l}
86644
86644
  const hashRuns = (block) => {
86645
86645
  if (block.kind === "table") {
86646
86646
  const tableBlock = block;
86647
- const cellTexts = [];
86647
+ const cellHashes = [];
86648
86648
  if (!tableBlock.rows) {
86649
86649
  return `${block.id}:table:`;
86650
86650
  }
@@ -86660,14 +86660,32 @@ ${l}
86660
86660
  continue;
86661
86661
  }
86662
86662
  for (const run2 of paragraphBlock.runs) {
86663
- if ("text" in run2 && typeof run2.text === "string") {
86664
- cellTexts.push(normalizeText(run2.text));
86663
+ const text2 = "text" in run2 && typeof run2.text === "string" ? normalizeText(run2.text) : "";
86664
+ const bold = "bold" in run2 ? run2.bold : false;
86665
+ const italic = "italic" in run2 ? run2.italic : false;
86666
+ const color2 = "color" in run2 ? run2.color : void 0;
86667
+ const fontSize2 = "fontSize" in run2 ? run2.fontSize : void 0;
86668
+ const fontFamily2 = "fontFamily" in run2 ? run2.fontFamily : void 0;
86669
+ const marks = [
86670
+ bold ? "b" : "",
86671
+ italic ? "i" : "",
86672
+ color2 ?? "",
86673
+ fontSize2 !== void 0 ? `fs:${fontSize2}` : "",
86674
+ fontFamily2 ? `ff:${fontFamily2}` : ""
86675
+ ].join("");
86676
+ let trackedKey = "";
86677
+ if (hasTrackedChange(run2)) {
86678
+ const tc = run2.trackedChange;
86679
+ const beforeHash = tc.before ? JSON.stringify(tc.before) : "";
86680
+ const afterHash = tc.after ? JSON.stringify(tc.after) : "";
86681
+ trackedKey = `|tc:${tc.kind ?? ""}:${tc.id ?? ""}:${tc.author ?? ""}:${tc.date ?? ""}:${beforeHash}:${afterHash}`;
86665
86682
  }
86683
+ cellHashes.push(`${text2}:${marks}${trackedKey}`);
86666
86684
  }
86667
86685
  }
86668
86686
  }
86669
86687
  }
86670
- const contentHash = cellTexts.join("|");
86688
+ const contentHash = cellHashes.join("|");
86671
86689
  return `${block.id}:table:${contentHash}`;
86672
86690
  }
86673
86691
  if (block.kind !== "paragraph") return block.id;
@@ -86685,7 +86703,15 @@ ${l}
86685
86703
  const bold = "bold" in run2 ? run2.bold : false;
86686
86704
  const italic = "italic" in run2 ? run2.italic : false;
86687
86705
  const color2 = "color" in run2 ? run2.color : void 0;
86688
- const marks = [bold ? "b" : "", italic ? "i" : "", color2 ?? ""].join("");
86706
+ const fontSize2 = "fontSize" in run2 ? run2.fontSize : void 0;
86707
+ const fontFamily2 = "fontFamily" in run2 ? run2.fontFamily : void 0;
86708
+ const marks = [
86709
+ bold ? "b" : "",
86710
+ italic ? "i" : "",
86711
+ color2 ?? "",
86712
+ fontSize2 !== void 0 ? `fs:${fontSize2}` : "",
86713
+ fontFamily2 ? `ff:${fontFamily2}` : ""
86714
+ ].join("");
86689
86715
  let trackedKey = "";
86690
86716
  if (hasTrackedChange(run2)) {
86691
86717
  const tc = run2.trackedChange;
@@ -149855,7 +149881,7 @@ ${style2}
149855
149881
  this.config.colors = shuffleArray(this.config.colors);
149856
149882
  this.userColorMap = /* @__PURE__ */ new Map();
149857
149883
  this.colorIndex = 0;
149858
- this.version = "1.0.0-beta.63";
149884
+ this.version = "1.0.0-beta.64";
149859
149885
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
149860
149886
  this.superdocId = config2.superdocId || v4();
149861
149887
  this.colors = this.config.colors;
@@ -152327,7 +152353,7 @@ ${style2}
152327
152353
  value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
152328
152354
  );
152329
152355
  }
152330
- const indexBO5Ne6G9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
152356
+ const indexUKyvUOIq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
152331
152357
  __proto__: null,
152332
152358
  unified
152333
152359
  }, Symbol.toStringTag, { value: "Module" }));