@harbour-enterprises/superdoc 1.0.0-beta.62 → 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 (30) hide show
  1. package/dist/chunks/{PdfViewer-Dm3bZ_1B.cjs → PdfViewer-DQuv5TC5.cjs} +1 -1
  2. package/dist/chunks/{PdfViewer-rmkhzY1H.es.js → PdfViewer-eDXBBm0A.es.js} +1 -1
  3. package/dist/chunks/{index-VQNmJYMh.cjs → index-GODMYLW8.cjs} +3 -3
  4. package/dist/chunks/{index-5vPj3xiM.es.js → index-LZWibrrm.es.js} +3 -3
  5. package/dist/chunks/{index-XOsGE2PW-BL-ekicF.cjs → index-uKyvUOIq-BcsSifhl.cjs} +1 -1
  6. package/dist/chunks/{index-XOsGE2PW-hNAnvmsK.es.js → index-uKyvUOIq-wrjX8LH1.es.js} +1 -1
  7. package/dist/chunks/{super-editor.es-CxtR72x8.cjs → super-editor.es-BhtY_fQ8.cjs} +51 -15
  8. package/dist/chunks/{super-editor.es-BIEE4joF.es.js → super-editor.es-CnZWn7ul.es.js} +51 -15
  9. package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
  10. package/dist/style.css +29 -29
  11. package/dist/super-editor/ai-writer.es.js +2 -2
  12. package/dist/super-editor/chunks/{converter-Bo9KIIo_.js → converter-BcvDxwm_.js} +1 -1
  13. package/dist/super-editor/chunks/{docx-zipper-Cw0Rbwvk.js → docx-zipper-CNK_ACKk.js} +1 -1
  14. package/dist/super-editor/chunks/{editor-v-i8Oo_X.js → editor-iZ4LJ7th.js} +41 -12
  15. package/dist/super-editor/chunks/{index-XOsGE2PW.js → index-uKyvUOIq.js} +1 -1
  16. package/dist/super-editor/chunks/{toolbar-CiKH0Ttu.js → toolbar-CopRzMJ_.js} +2 -2
  17. package/dist/super-editor/converter.es.js +1 -1
  18. package/dist/super-editor/docx-zipper.es.js +2 -2
  19. package/dist/super-editor/editor.es.js +3 -3
  20. package/dist/super-editor/file-zipper.es.js +1 -1
  21. package/dist/super-editor/style.css +29 -29
  22. package/dist/super-editor/super-editor.es.js +17 -10
  23. package/dist/super-editor/toolbar.es.js +2 -2
  24. package/dist/super-editor.cjs +1 -1
  25. package/dist/super-editor.es.js +1 -1
  26. package/dist/superdoc.cjs +2 -2
  27. package/dist/superdoc.es.js +2 -2
  28. package/dist/superdoc.umd.js +53 -17
  29. package/dist/superdoc.umd.js.map +1 -1
  30. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("./vue-jWLMl8Ts.cjs");
4
- const superdoc = require("./index-VQNmJYMh.cjs");
4
+ const superdoc = require("./index-GODMYLW8.cjs");
5
5
  function self(vars) {
6
6
  const {
7
7
  opacityDisabled,
@@ -1,5 +1,5 @@
1
1
  import { y as defineComponent, z as h, O as Transition, a0 as process$1, J as watchEffect, a as computed, r as ref, j as onMounted, W as onUnmounted, b as createElementBlock, o as openBlock, f as createBaseVNode, e as createCommentVNode, u as createVNode, v as unref } from "./vue-Dysv_7z5.es.js";
2
- import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-5vPj3xiM.es.js";
2
+ import { d as derived, c, a as cB, f as fadeInTransition, b as cM, N as NBaseLoading, w as warnOnce, u as useConfig, e as useTheme, p as pxfy, g as createKey, h as useThemeClass, i as useCompitable, _ as _export_sfc, j as useSuperdocStore, s as storeToRefs, k as useSelection } from "./index-LZWibrrm.es.js";
3
3
  function self(vars) {
4
4
  const {
5
5
  opacityDisabled,
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const superEditor_es = require("./super-editor.es-CxtR72x8.cjs");
2
+ const superEditor_es = require("./super-editor.es-BhtY_fQ8.cjs");
3
3
  const blankDocx = require("./blank-docx-DfW3Eeh2.cjs");
4
4
  const eventemitter3 = require("./eventemitter3-DQmQUge-.cjs");
5
5
  const provider = require("@hocuspocus/provider");
@@ -17268,7 +17268,7 @@ const _sfc_main = {
17268
17268
  __name: "SuperDoc",
17269
17269
  emits: ["selection-update"],
17270
17270
  setup(__props, { emit: __emit }) {
17271
- const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-Dm3bZ_1B.cjs")));
17271
+ const PdfViewer = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./PdfViewer-DQuv5TC5.cjs")));
17272
17272
  const superdocStore = useSuperdocStore();
17273
17273
  const commentsStore = useCommentsStore();
17274
17274
  const {
@@ -18157,7 +18157,7 @@ class SuperDoc extends eventemitter3.EventEmitter {
18157
18157
  this.config.colors = shuffleArray(this.config.colors);
18158
18158
  this.userColorMap = /* @__PURE__ */ new Map();
18159
18159
  this.colorIndex = 0;
18160
- this.version = "1.0.0-beta.62";
18160
+ this.version = "1.0.0-beta.64";
18161
18161
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18162
18162
  this.superdocId = config.superdocId || uuid.v4();
18163
18163
  this.colors = this.config.colors;
@@ -1,4 +1,4 @@
1
- import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, P as PresentationEditor, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-BIEE4joF.es.js";
1
+ import { q as index, C as CommentsPluginKey, h as TrackChangesBasePluginKey, E as Editor, n as getRichTextExtensions, f as SuperInput, P as PresentationEditor, e as SuperEditor, A as AIWriter, g as SuperToolbar, i as createZip } from "./super-editor.es-CnZWn7ul.es.js";
2
2
  import { B as BlankDOCX } from "./blank-docx-ABm6XYAA.es.js";
3
3
  import { E as EventEmitter } from "./eventemitter3-CcXAdeql.es.js";
4
4
  import { HocuspocusProvider, HocuspocusProviderWebsocket } from "@hocuspocus/provider";
@@ -17251,7 +17251,7 @@ const _sfc_main = {
17251
17251
  __name: "SuperDoc",
17252
17252
  emits: ["selection-update"],
17253
17253
  setup(__props, { emit: __emit }) {
17254
- const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-rmkhzY1H.es.js"));
17254
+ const PdfViewer = defineAsyncComponent(() => import("./PdfViewer-eDXBBm0A.es.js"));
17255
17255
  const superdocStore = useSuperdocStore();
17256
17256
  const commentsStore = useCommentsStore();
17257
17257
  const {
@@ -18140,7 +18140,7 @@ class SuperDoc extends EventEmitter {
18140
18140
  this.config.colors = shuffleArray(this.config.colors);
18141
18141
  this.userColorMap = /* @__PURE__ */ new Map();
18142
18142
  this.colorIndex = 0;
18143
- this.version = "1.0.0-beta.62";
18143
+ this.version = "1.0.0-beta.64";
18144
18144
  this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
18145
18145
  this.superdocId = config.superdocId || v4();
18146
18146
  this.colors = this.config.colors;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const superEditor_es = require("./super-editor.es-CxtR72x8.cjs");
3
+ const superEditor_es = require("./super-editor.es-BhtY_fQ8.cjs");
4
4
  const indexCvBqQJbG = require("./index-CvBqQJbG-Dwm0THD7.cjs");
5
5
  function bail(error) {
6
6
  if (error) {
@@ -1,4 +1,4 @@
1
- import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-BIEE4joF.es.js";
1
+ import { s as getDefaultExportFromCjs$2 } from "./super-editor.es-CnZWn7ul.es.js";
2
2
  import { V as VFile } from "./index-CvBqQJbG-CvBqQJbG.es.js";
3
3
  function bail(error) {
4
4
  if (error) {
@@ -42326,7 +42326,7 @@ const _SuperConverter = class _SuperConverter2 {
42326
42326
  static getStoredSuperdocVersion(docx) {
42327
42327
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
42328
42328
  }
42329
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.62") {
42329
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.64") {
42330
42330
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
42331
42331
  }
42332
42332
  /**
@@ -59515,7 +59515,7 @@ const isHeadless = (editor) => {
59515
59515
  const shouldSkipNodeView = (editor) => {
59516
59516
  return isHeadless(editor);
59517
59517
  };
59518
- const summaryVersion = "1.0.0-beta.62";
59518
+ const summaryVersion = "1.0.0-beta.64";
59519
59519
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
59520
59520
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
59521
59521
  function mapAttributes(attrs) {
@@ -60304,7 +60304,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
60304
60304
  { default: remarkStringify },
60305
60305
  { default: remarkGfm }
60306
60306
  ] = await Promise.all([
60307
- Promise.resolve().then(() => require("./index-XOsGE2PW-BL-ekicF.cjs")),
60307
+ Promise.resolve().then(() => require("./index-uKyvUOIq-BcsSifhl.cjs")),
60308
60308
  Promise.resolve().then(() => require("./index-DRCvimau-H4Ck3S9a.cjs")),
60309
60309
  Promise.resolve().then(() => require("./index-C_x_N6Uh-Db3CUJMX.cjs")),
60310
60310
  Promise.resolve().then(() => require("./index-D_sWOSiG-BtDZzJ6I.cjs")),
@@ -60509,7 +60509,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
60509
60509
  * Process collaboration migrations
60510
60510
  */
60511
60511
  processCollaborationMigrations() {
60512
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.62");
60512
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.64");
60513
60513
  if (!this.options.ydoc) return;
60514
60514
  const metaMap = this.options.ydoc.getMap("meta");
60515
60515
  let docVersion = metaMap.get("version");
@@ -67396,8 +67396,7 @@ const normalizeRowHeight = (rowProps) => {
67396
67396
  if (rawValue == null) return void 0;
67397
67397
  const rawRule = heightObj.rule ?? heightObj.hRule;
67398
67398
  const rule = rawRule === "exact" || rawRule === "atLeast" || rawRule === "auto" ? rawRule : "atLeast";
67399
- const isLikelyTwips = rawValue >= 300 || Math.abs(rawValue % 15) < 1e-6;
67400
- const valuePx = isLikelyTwips ? twipsToPx$1(rawValue) : rawValue;
67399
+ const valuePx = twipsToPx$1(rawValue);
67401
67400
  return {
67402
67401
  value: valuePx,
67403
67402
  rule
@@ -78787,7 +78786,7 @@ const normalizeText = (text) => text.replace(NORMALIZED_WHITESPACE, " ");
78787
78786
  const hashRuns = (block) => {
78788
78787
  if (block.kind === "table") {
78789
78788
  const tableBlock = block;
78790
- const cellTexts = [];
78789
+ const cellHashes = [];
78791
78790
  if (!tableBlock.rows) {
78792
78791
  return `${block.id}:table:`;
78793
78792
  }
@@ -78803,14 +78802,32 @@ const hashRuns = (block) => {
78803
78802
  continue;
78804
78803
  }
78805
78804
  for (const run2 of paragraphBlock.runs) {
78806
- if ("text" in run2 && typeof run2.text === "string") {
78807
- cellTexts.push(normalizeText(run2.text));
78805
+ const text = "text" in run2 && typeof run2.text === "string" ? normalizeText(run2.text) : "";
78806
+ const bold = "bold" in run2 ? run2.bold : false;
78807
+ const italic = "italic" in run2 ? run2.italic : false;
78808
+ const color = "color" in run2 ? run2.color : void 0;
78809
+ const fontSize2 = "fontSize" in run2 ? run2.fontSize : void 0;
78810
+ const fontFamily2 = "fontFamily" in run2 ? run2.fontFamily : void 0;
78811
+ const marks = [
78812
+ bold ? "b" : "",
78813
+ italic ? "i" : "",
78814
+ color ?? "",
78815
+ fontSize2 !== void 0 ? `fs:${fontSize2}` : "",
78816
+ fontFamily2 ? `ff:${fontFamily2}` : ""
78817
+ ].join("");
78818
+ let trackedKey = "";
78819
+ if (hasTrackedChange(run2)) {
78820
+ const tc = run2.trackedChange;
78821
+ const beforeHash = tc.before ? JSON.stringify(tc.before) : "";
78822
+ const afterHash = tc.after ? JSON.stringify(tc.after) : "";
78823
+ trackedKey = `|tc:${tc.kind ?? ""}:${tc.id ?? ""}:${tc.author ?? ""}:${tc.date ?? ""}:${beforeHash}:${afterHash}`;
78808
78824
  }
78825
+ cellHashes.push(`${text}:${marks}${trackedKey}`);
78809
78826
  }
78810
78827
  }
78811
78828
  }
78812
78829
  }
78813
- const contentHash = cellTexts.join("|");
78830
+ const contentHash = cellHashes.join("|");
78814
78831
  return `${block.id}:table:${contentHash}`;
78815
78832
  }
78816
78833
  if (block.kind !== "paragraph") return block.id;
@@ -78828,7 +78845,15 @@ const hashRuns = (block) => {
78828
78845
  const bold = "bold" in run2 ? run2.bold : false;
78829
78846
  const italic = "italic" in run2 ? run2.italic : false;
78830
78847
  const color = "color" in run2 ? run2.color : void 0;
78831
- const marks = [bold ? "b" : "", italic ? "i" : "", color ?? ""].join("");
78848
+ const fontSize2 = "fontSize" in run2 ? run2.fontSize : void 0;
78849
+ const fontFamily2 = "fontFamily" in run2 ? run2.fontFamily : void 0;
78850
+ const marks = [
78851
+ bold ? "b" : "",
78852
+ italic ? "i" : "",
78853
+ color ?? "",
78854
+ fontSize2 !== void 0 ? `fs:${fontSize2}` : "",
78855
+ fontFamily2 ? `ff:${fontFamily2}` : ""
78856
+ ].join("");
78832
78857
  let trackedKey = "";
78833
78858
  if (hasTrackedChange(run2)) {
78834
78859
  const tc = run2.trackedChange;
@@ -91414,7 +91439,11 @@ const splitRunsAfterMarkPlugin = new Plugin({
91414
91439
  const runType = newState.schema.nodes["run"];
91415
91440
  if (!runType) return null;
91416
91441
  const runPositions = /* @__PURE__ */ new Set();
91442
+ const docSize = newState.doc.content.size;
91417
91443
  markRanges.forEach(({ from: from2, to }) => {
91444
+ if (from2 < 0 || to < 0 || from2 > docSize || to > docSize || from2 > to) {
91445
+ return;
91446
+ }
91418
91447
  newState.doc.nodesBetween(from2, to, (node, pos) => {
91419
91448
  if (node.type === runType) runPositions.add(pos);
91420
91449
  });
@@ -118988,13 +119017,20 @@ const _sfc_main$e = {
118988
119017
  const { $from, empty: empty2 } = selection;
118989
119018
  if (empty2) {
118990
119019
  const marks = state2.storedMarks || $from.marks();
118991
- const link = marks.find((mark) => mark.type === linkMark);
118992
- if (link) href = link.attrs.href;
119020
+ let link = marks.find((mark) => mark.type === linkMark);
119021
+ if (!link) {
119022
+ const nodeAfter = $from.nodeAfter;
119023
+ const nodeBefore = $from.nodeBefore;
119024
+ const marksOnNodeAfter = nodeAfter && Array.isArray(nodeAfter.marks) ? nodeAfter.marks : [];
119025
+ const marksOnNodeBefore = nodeBefore && Array.isArray(nodeBefore.marks) ? nodeBefore.marks : [];
119026
+ link = marksOnNodeAfter.find((mark) => mark.type === linkMark) || marksOnNodeBefore.find((mark) => mark.type === linkMark);
119027
+ }
119028
+ if (link && link.attrs && link.attrs.href) href = link.attrs.href;
118993
119029
  } else {
118994
119030
  state2.doc.nodesBetween(selection.from, selection.to, (node) => {
118995
119031
  if (node.marks) {
118996
119032
  const link = node.marks.find((mark) => mark.type === linkMark);
118997
- if (link) href = link.attrs.href;
119033
+ if (link && link.attrs && link.attrs.href) href = link.attrs.href;
118998
119034
  }
118999
119035
  });
119000
119036
  }
@@ -119137,7 +119173,7 @@ const _sfc_main$e = {
119137
119173
  };
119138
119174
  }
119139
119175
  };
119140
- const LinkInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-ba50627b"]]);
119176
+ const LinkInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-de37bd1c"]]);
119141
119177
  const _hoisted_1$b = ["aria-label", "onClick", "onKeydown"];
119142
119178
  const _hoisted_2$6 = ["innerHTML"];
119143
119179
  const _hoisted_3$5 = ["innerHTML"];
@@ -42309,7 +42309,7 @@ const _SuperConverter = class _SuperConverter2 {
42309
42309
  static getStoredSuperdocVersion(docx) {
42310
42310
  return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
42311
42311
  }
42312
- static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.62") {
42312
+ static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "1.0.0-beta.64") {
42313
42313
  return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
42314
42314
  }
42315
42315
  /**
@@ -59498,7 +59498,7 @@ const isHeadless = (editor) => {
59498
59498
  const shouldSkipNodeView = (editor) => {
59499
59499
  return isHeadless(editor);
59500
59500
  };
59501
- const summaryVersion = "1.0.0-beta.62";
59501
+ const summaryVersion = "1.0.0-beta.64";
59502
59502
  const nodeKeys = ["group", "content", "marks", "inline", "atom", "defining", "code", "tableRole", "summary"];
59503
59503
  const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
59504
59504
  function mapAttributes(attrs) {
@@ -60287,7 +60287,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
60287
60287
  { default: remarkStringify },
60288
60288
  { default: remarkGfm }
60289
60289
  ] = await Promise.all([
60290
- import("./index-XOsGE2PW-hNAnvmsK.es.js"),
60290
+ import("./index-uKyvUOIq-wrjX8LH1.es.js"),
60291
60291
  import("./index-DRCvimau-Cw339678.es.js"),
60292
60292
  import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
60293
60293
  import("./index-D_sWOSiG-DE96TaT5.es.js"),
@@ -60492,7 +60492,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
60492
60492
  * Process collaboration migrations
60493
60493
  */
60494
60494
  processCollaborationMigrations() {
60495
- console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.62");
60495
+ console.debug("[checkVersionMigrations] Current editor version", "1.0.0-beta.64");
60496
60496
  if (!this.options.ydoc) return;
60497
60497
  const metaMap = this.options.ydoc.getMap("meta");
60498
60498
  let docVersion = metaMap.get("version");
@@ -67379,8 +67379,7 @@ const normalizeRowHeight = (rowProps) => {
67379
67379
  if (rawValue == null) return void 0;
67380
67380
  const rawRule = heightObj.rule ?? heightObj.hRule;
67381
67381
  const rule = rawRule === "exact" || rawRule === "atLeast" || rawRule === "auto" ? rawRule : "atLeast";
67382
- const isLikelyTwips = rawValue >= 300 || Math.abs(rawValue % 15) < 1e-6;
67383
- const valuePx = isLikelyTwips ? twipsToPx$1(rawValue) : rawValue;
67382
+ const valuePx = twipsToPx$1(rawValue);
67384
67383
  return {
67385
67384
  value: valuePx,
67386
67385
  rule
@@ -78770,7 +78769,7 @@ const normalizeText = (text) => text.replace(NORMALIZED_WHITESPACE, " ");
78770
78769
  const hashRuns = (block) => {
78771
78770
  if (block.kind === "table") {
78772
78771
  const tableBlock = block;
78773
- const cellTexts = [];
78772
+ const cellHashes = [];
78774
78773
  if (!tableBlock.rows) {
78775
78774
  return `${block.id}:table:`;
78776
78775
  }
@@ -78786,14 +78785,32 @@ const hashRuns = (block) => {
78786
78785
  continue;
78787
78786
  }
78788
78787
  for (const run2 of paragraphBlock.runs) {
78789
- if ("text" in run2 && typeof run2.text === "string") {
78790
- cellTexts.push(normalizeText(run2.text));
78788
+ const text = "text" in run2 && typeof run2.text === "string" ? normalizeText(run2.text) : "";
78789
+ const bold = "bold" in run2 ? run2.bold : false;
78790
+ const italic = "italic" in run2 ? run2.italic : false;
78791
+ const color = "color" in run2 ? run2.color : void 0;
78792
+ const fontSize2 = "fontSize" in run2 ? run2.fontSize : void 0;
78793
+ const fontFamily2 = "fontFamily" in run2 ? run2.fontFamily : void 0;
78794
+ const marks = [
78795
+ bold ? "b" : "",
78796
+ italic ? "i" : "",
78797
+ color ?? "",
78798
+ fontSize2 !== void 0 ? `fs:${fontSize2}` : "",
78799
+ fontFamily2 ? `ff:${fontFamily2}` : ""
78800
+ ].join("");
78801
+ let trackedKey = "";
78802
+ if (hasTrackedChange(run2)) {
78803
+ const tc = run2.trackedChange;
78804
+ const beforeHash = tc.before ? JSON.stringify(tc.before) : "";
78805
+ const afterHash = tc.after ? JSON.stringify(tc.after) : "";
78806
+ trackedKey = `|tc:${tc.kind ?? ""}:${tc.id ?? ""}:${tc.author ?? ""}:${tc.date ?? ""}:${beforeHash}:${afterHash}`;
78791
78807
  }
78808
+ cellHashes.push(`${text}:${marks}${trackedKey}`);
78792
78809
  }
78793
78810
  }
78794
78811
  }
78795
78812
  }
78796
- const contentHash = cellTexts.join("|");
78813
+ const contentHash = cellHashes.join("|");
78797
78814
  return `${block.id}:table:${contentHash}`;
78798
78815
  }
78799
78816
  if (block.kind !== "paragraph") return block.id;
@@ -78811,7 +78828,15 @@ const hashRuns = (block) => {
78811
78828
  const bold = "bold" in run2 ? run2.bold : false;
78812
78829
  const italic = "italic" in run2 ? run2.italic : false;
78813
78830
  const color = "color" in run2 ? run2.color : void 0;
78814
- const marks = [bold ? "b" : "", italic ? "i" : "", color ?? ""].join("");
78831
+ const fontSize2 = "fontSize" in run2 ? run2.fontSize : void 0;
78832
+ const fontFamily2 = "fontFamily" in run2 ? run2.fontFamily : void 0;
78833
+ const marks = [
78834
+ bold ? "b" : "",
78835
+ italic ? "i" : "",
78836
+ color ?? "",
78837
+ fontSize2 !== void 0 ? `fs:${fontSize2}` : "",
78838
+ fontFamily2 ? `ff:${fontFamily2}` : ""
78839
+ ].join("");
78815
78840
  let trackedKey = "";
78816
78841
  if (hasTrackedChange(run2)) {
78817
78842
  const tc = run2.trackedChange;
@@ -91397,7 +91422,11 @@ const splitRunsAfterMarkPlugin = new Plugin({
91397
91422
  const runType = newState.schema.nodes["run"];
91398
91423
  if (!runType) return null;
91399
91424
  const runPositions = /* @__PURE__ */ new Set();
91425
+ const docSize = newState.doc.content.size;
91400
91426
  markRanges.forEach(({ from: from2, to }) => {
91427
+ if (from2 < 0 || to < 0 || from2 > docSize || to > docSize || from2 > to) {
91428
+ return;
91429
+ }
91401
91430
  newState.doc.nodesBetween(from2, to, (node, pos) => {
91402
91431
  if (node.type === runType) runPositions.add(pos);
91403
91432
  });
@@ -118971,13 +119000,20 @@ const _sfc_main$e = {
118971
119000
  const { $from, empty: empty2 } = selection;
118972
119001
  if (empty2) {
118973
119002
  const marks = state2.storedMarks || $from.marks();
118974
- const link = marks.find((mark) => mark.type === linkMark);
118975
- if (link) href = link.attrs.href;
119003
+ let link = marks.find((mark) => mark.type === linkMark);
119004
+ if (!link) {
119005
+ const nodeAfter = $from.nodeAfter;
119006
+ const nodeBefore = $from.nodeBefore;
119007
+ const marksOnNodeAfter = nodeAfter && Array.isArray(nodeAfter.marks) ? nodeAfter.marks : [];
119008
+ const marksOnNodeBefore = nodeBefore && Array.isArray(nodeBefore.marks) ? nodeBefore.marks : [];
119009
+ link = marksOnNodeAfter.find((mark) => mark.type === linkMark) || marksOnNodeBefore.find((mark) => mark.type === linkMark);
119010
+ }
119011
+ if (link && link.attrs && link.attrs.href) href = link.attrs.href;
118976
119012
  } else {
118977
119013
  state2.doc.nodesBetween(selection.from, selection.to, (node) => {
118978
119014
  if (node.marks) {
118979
119015
  const link = node.marks.find((mark) => mark.type === linkMark);
118980
- if (link) href = link.attrs.href;
119016
+ if (link && link.attrs && link.attrs.href) href = link.attrs.href;
118981
119017
  }
118982
119018
  });
118983
119019
  }
@@ -119120,7 +119156,7 @@ const _sfc_main$e = {
119120
119156
  };
119121
119157
  }
119122
119158
  };
119123
- const LinkInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-ba50627b"]]);
119159
+ const LinkInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-de37bd1c"]]);
119124
119160
  const _hoisted_1$b = ["aria-label", "onClick", "onKeydown"];
119125
119161
  const _hoisted_2$6 = ["innerHTML"];
119126
119162
  const _hoisted_3$5 = ["innerHTML"];
@@ -1 +1 @@
1
- {"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../../../../src/core/SuperDoc.js"],"names":[],"mappings":"AAsBA,6CAA6C;AAC7C,mEAAmE;AACnE,qDAAqD;AACrD,mDAAmD;AACnD,iDAAiD;AACjD,6DAA6D;AAC7D,iDAAiD;AACjD,6DAA6D;AAE7D;;;;;;GAMG;AACH;IACE,4BAA4B;IAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CACgB;IA4ExC;;OAEG;IACH,oBAFW,MAAM,EAKhB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C,IAAI,EAAE,CAAC,CAY3B;IAED;;;OAGG;IACH,WAFa,IAAI,CAiChB;IAED;;;OAGG;IACH,SAFa,IAAI,CAahB;IAED;;;;OAIG;IACH,oCAHW,OAAO,GACL,IAAI,CAMhB;IAED;;;;;;;OAOG;IACH,oCAJG;QAAwB,IAAI,EAApB,MAAM;QACU,IAAI,EAApB,MAAM;KACd,GAAU,IAAI,CAUhB;;CACF;mBA7hCa,OAAO,SAAS,EAAE,IAAI;8BACtB,OAAO,SAAS,EAAE,eAAe;uBACjC,OAAO,SAAS,EAAE,QAAQ;sBAC1B,OAAO,SAAS,EAAE,OAAO;qBACzB,OAAO,SAAS,EAAE,MAAM;2BACxB,OAAO,SAAS,EAAE,YAAY;qBAC9B,OAAO,SAAS,EAAE,MAAM;2BACxB,OAAO,SAAS,EAAE,YAAY;6BA3Bf,eAAe;8BAMd,iEAAiE"}
package/dist/style.css CHANGED
@@ -1721,12 +1721,12 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1721
1721
  fill: currentColor;
1722
1722
  }
1723
1723
 
1724
- .link-input-wrapper[data-v-ba50627b] {
1724
+ .link-input-wrapper[data-v-de37bd1c] {
1725
1725
  display: flex;
1726
1726
  flex-direction: column;
1727
1727
  gap: 8px;
1728
1728
  }
1729
- .link-input-ctn[data-v-ba50627b] {
1729
+ .link-input-ctn[data-v-de37bd1c] {
1730
1730
  width: 320px;
1731
1731
  display: flex;
1732
1732
  flex-direction: column;
@@ -1735,19 +1735,19 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1735
1735
  background-color: #fff;
1736
1736
  box-sizing: border-box;
1737
1737
  }
1738
- .link-input-ctn[data-v-ba50627b] svg {
1738
+ .link-input-ctn[data-v-de37bd1c] svg {
1739
1739
  width: 100%;
1740
1740
  height: 100%;
1741
1741
  display: block;
1742
1742
  fill: currentColor;
1743
1743
  }
1744
- .link-input-ctn .input-row[data-v-ba50627b] {
1744
+ .link-input-ctn .input-row[data-v-de37bd1c] {
1745
1745
  align-content: baseline;
1746
1746
  display: flex;
1747
1747
  align-items: center;
1748
1748
  font-size: 16px;
1749
1749
  }
1750
- .link-input-ctn .input-row input[data-v-ba50627b] {
1750
+ .link-input-ctn .input-row input[data-v-de37bd1c] {
1751
1751
  font-size: 13px;
1752
1752
  flex-grow: 1;
1753
1753
  padding: 10px;
@@ -1758,30 +1758,30 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1758
1758
  border: 1px solid #ddd;
1759
1759
  box-sizing: border-box;
1760
1760
  }
1761
- .link-input-ctn .input-row input[data-v-ba50627b]:active,
1762
- .link-input-ctn .input-row input[data-v-ba50627b]:focus {
1761
+ .link-input-ctn .input-row input[data-v-de37bd1c]:active,
1762
+ .link-input-ctn .input-row input[data-v-de37bd1c]:focus {
1763
1763
  outline: none;
1764
1764
  border: 1px solid #1355ff;
1765
1765
  }
1766
- .link-input-ctn .input-icon[data-v-ba50627b] {
1766
+ .link-input-ctn .input-icon[data-v-de37bd1c] {
1767
1767
  position: absolute;
1768
1768
  left: 25px;
1769
1769
  width: auto;
1770
1770
  color: #999;
1771
1771
  pointer-events: none;
1772
1772
  }
1773
- .link-input-ctn .input-icon[data-v-ba50627b]:not(.text-input-icon) {
1773
+ .link-input-ctn .input-icon[data-v-de37bd1c]:not(.text-input-icon) {
1774
1774
  transform: rotate(45deg);
1775
1775
  height: 12px;
1776
1776
  }
1777
- .link-input-ctn.high-contrast .input-icon[data-v-ba50627b] {
1777
+ .link-input-ctn.high-contrast .input-icon[data-v-de37bd1c] {
1778
1778
  color: #000;
1779
1779
  }
1780
- .link-input-ctn.high-contrast .input-row input[data-v-ba50627b] {
1780
+ .link-input-ctn.high-contrast .input-row input[data-v-de37bd1c] {
1781
1781
  color: #000;
1782
1782
  border-color: #000;
1783
1783
  }
1784
- .open-link-icon[data-v-ba50627b] {
1784
+ .open-link-icon[data-v-de37bd1c] {
1785
1785
  margin-left: 10px;
1786
1786
  width: 30px;
1787
1787
  height: 30px;
@@ -1794,56 +1794,56 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1794
1794
  transition: all 0.2s ease;
1795
1795
  cursor: pointer;
1796
1796
  }
1797
- .open-link-icon[data-v-ba50627b]:hover {
1797
+ .open-link-icon[data-v-de37bd1c]:hover {
1798
1798
  color: #1355ff;
1799
1799
  background-color: white;
1800
1800
  border: 1px solid #dbdbdb;
1801
1801
  }
1802
- .open-link-icon[data-v-ba50627b] svg {
1802
+ .open-link-icon[data-v-de37bd1c] svg {
1803
1803
  width: 15px;
1804
1804
  height: 15px;
1805
1805
  }
1806
- .disabled[data-v-ba50627b] {
1806
+ .disabled[data-v-de37bd1c] {
1807
1807
  opacity: 0.6;
1808
1808
  cursor: not-allowed;
1809
1809
  pointer-events: none;
1810
1810
  }
1811
- .link-buttons[data-v-ba50627b] {
1811
+ .link-buttons[data-v-de37bd1c] {
1812
1812
  display: flex;
1813
1813
  justify-content: flex-end;
1814
1814
  margin-top: 10px;
1815
1815
  }
1816
- .remove-btn__icon[data-v-ba50627b] {
1816
+ .remove-btn__icon[data-v-de37bd1c] {
1817
1817
  display: inline-flex;
1818
1818
  width: 13px;
1819
1819
  height: 13px;
1820
1820
  flex-shrink: 0;
1821
1821
  margin-right: 4px;
1822
1822
  }
1823
- .link-buttons button[data-v-ba50627b] {
1823
+ .link-buttons button[data-v-de37bd1c] {
1824
1824
  margin-left: 5px;
1825
1825
  }
1826
- .disable-btn[data-v-ba50627b] {
1826
+ .disable-btn[data-v-de37bd1c] {
1827
1827
  opacity: 0.6;
1828
1828
  cursor: not-allowed;
1829
1829
  pointer-events: none;
1830
1830
  }
1831
- .go-to-anchor a[data-v-ba50627b] {
1831
+ .go-to-anchor a[data-v-de37bd1c] {
1832
1832
  font-size: 14px;
1833
1833
  text-decoration: underline;
1834
1834
  }
1835
- .clickable[data-v-ba50627b] {
1835
+ .clickable[data-v-de37bd1c] {
1836
1836
  cursor: pointer;
1837
1837
  }
1838
- .link-title[data-v-ba50627b] {
1838
+ .link-title[data-v-de37bd1c] {
1839
1839
  font-size: 14px;
1840
1840
  font-weight: 600;
1841
1841
  margin-bottom: 10px;
1842
1842
  }
1843
- .hasBottomMargin[data-v-ba50627b] {
1843
+ .hasBottomMargin[data-v-de37bd1c] {
1844
1844
  margin-bottom: 1em;
1845
1845
  }
1846
- .remove-btn[data-v-ba50627b] {
1846
+ .remove-btn[data-v-de37bd1c] {
1847
1847
  display: inline-flex;
1848
1848
  justify-content: center;
1849
1849
  align-items: center;
@@ -1859,10 +1859,10 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1859
1859
  border: 1px solid #ebebeb;
1860
1860
  box-sizing: border-box;
1861
1861
  }
1862
- .remove-btn[data-v-ba50627b]:hover {
1862
+ .remove-btn[data-v-de37bd1c]:hover {
1863
1863
  background-color: #dbdbdb;
1864
1864
  }
1865
- .submit-btn[data-v-ba50627b] {
1865
+ .submit-btn[data-v-de37bd1c] {
1866
1866
  display: inline-flex;
1867
1867
  justify-content: center;
1868
1868
  align-items: center;
@@ -1882,14 +1882,14 @@ https://github.com/ProseMirror/prosemirror-tables/blob/master/demo/index.html
1882
1882
  /* &.high-contrast {
1883
1883
  background-color: black;
1884
1884
  } */
1885
- .submit-btn[data-v-ba50627b]:hover {
1885
+ .submit-btn[data-v-de37bd1c]:hover {
1886
1886
  background-color: #0d47c1;
1887
1887
  }
1888
- .error[data-v-ba50627b] {
1888
+ .error[data-v-de37bd1c] {
1889
1889
  border-color: red !important;
1890
1890
  background-color: #ff00001a;
1891
1891
  }
1892
- .submit[data-v-ba50627b] {
1892
+ .submit[data-v-de37bd1c] {
1893
1893
  cursor: pointer;
1894
1894
  }
1895
1895
 
@@ -1,6 +1,6 @@
1
1
  import { ref, onMounted, onUnmounted, computed, createElementBlock, openBlock, withModifiers, createElementVNode, withDirectives, unref, vModelText, createCommentVNode, nextTick } from "vue";
2
- import { T as TextSelection } from "./chunks/converter-Bo9KIIo_.js";
3
- import { _ as _export_sfc } from "./chunks/editor-v-i8Oo_X.js";
2
+ import { T as TextSelection } from "./chunks/converter-BcvDxwm_.js";
3
+ import { _ as _export_sfc } from "./chunks/editor-iZ4LJ7th.js";
4
4
  const DEFAULT_API_ENDPOINT = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights";
5
5
  const SYSTEM_PROMPT = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
6
6
  async function baseInsightsFetch(payload, options = {}) {
@@ -42626,7 +42626,7 @@ const _SuperConverter = class _SuperConverter {
42626
42626
  static getStoredSuperdocVersion(docx) {
42627
42627
  return _SuperConverter.getStoredCustomProperty(docx, "SuperdocVersion");
42628
42628
  }
42629
- static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.0-beta.62") {
42629
+ static setStoredSuperdocVersion(docx = this.convertedXml, version = "1.0.0-beta.64") {
42630
42630
  return _SuperConverter.setStoredCustomProperty(docx, "SuperdocVersion", version, false);
42631
42631
  }
42632
42632
  /**
@@ -1,4 +1,4 @@
1
- import { p as process$1, aJ as commonjsGlobal, B as Buffer, aK as getDefaultExportFromCjs, aL as getContentTypesFromXml, aM as xmljs } from "./converter-Bo9KIIo_.js";
1
+ import { p as process$1, aJ as commonjsGlobal, B as Buffer, aK as getDefaultExportFromCjs, aL as getContentTypesFromXml, aM as xmljs } from "./converter-BcvDxwm_.js";
2
2
  function commonjsRequire(path) {
3
3
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }