@harbour-enterprises/superdoc 0.9.21 → 0.9.22

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 (28) hide show
  1. package/dist/chunks/{index-CqRwYOdx.cjs → index-DHS2ANjv.cjs} +1 -1
  2. package/dist/chunks/{index-dZKHAFXF.es.js → index-Dd_ce0Er.es.js} +1 -1
  3. package/dist/chunks/{index-DjLrg1eZ.es.js → index-XHRxRUhd.es.js} +2 -2
  4. package/dist/chunks/{index-BXKGjuVW.cjs → index-YqE5-6V1.cjs} +1 -1
  5. package/dist/chunks/{super-editor.es-BKOFtnKb.es.js → super-editor.es-Biu3hzvL.es.js} +4 -4
  6. package/dist/chunks/{super-editor.es-CGZeYZti.cjs → super-editor.es-CMTCdDpB.cjs} +2 -2
  7. package/dist/chunks/{url-BxDGAI6E.es.js → url-BWFemt_V.es.js} +1 -1
  8. package/dist/chunks/{url-6Xu7gR4T.cjs → url-Cqg7fbSS.cjs} +1 -1
  9. package/dist/chunks/{xml-js-BAML2_fM.es.js → xml-js-Bzw8Bo_u.es.js} +744 -762
  10. package/dist/chunks/xml-js-Zwb1wsIy.cjs +10 -0
  11. package/dist/super-editor/chunks/{converter-Duqg7CGy.js → converter-ClWoW5PX.js} +3 -3
  12. package/dist/super-editor/chunks/{docx-zipper-DWmiIKZ-.js → docx-zipper-B4k46BKl.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-dPX69r76.js → editor-DZjHTvfC.js} +3 -3
  14. package/dist/super-editor/chunks/{toolbar-QSaD4Bth.js → toolbar-CKWbkRLL.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 +3 -3
  24. package/dist/superdoc.es.js +6 -6
  25. package/dist/superdoc.umd.js +5 -5
  26. package/dist/superdoc.umd.js.map +1 -1
  27. package/package.json +1 -1
  28. package/dist/chunks/xml-js-zhwNEV5e.cjs +0 -10
@@ -1,5 +1,5 @@
1
- import { q as md, m as yd, d as bd, j as jo, I as Wo, v as wd, f as Sd, p as Dd, c as vd } from "./chunks/super-editor.es-BKOFtnKb.es.js";
2
- import { k as cb, W as lb, S as gb } from "./chunks/super-editor.es-BKOFtnKb.es.js";
1
+ import { q as md, m as yd, d as bd, j as jo, I as Wo, v as wd, f as Sd, p as Dd, c as vd } from "./chunks/super-editor.es-Biu3hzvL.es.js";
2
+ import { k as cb, W as lb, S as gb } from "./chunks/super-editor.es-Biu3hzvL.es.js";
3
3
  import { Y as Vl, r as V, Z as Ai, p as Ne, _ as _n, a as Ae, $ as qn, a0 as la, C as ht, i as lt, q as Ji, l as bt, x as Oe, a1 as Fd, L as ti, R as _t, a2 as kd, a3 as xd, a4 as Xo, g as Ti, N as Gs, M as Kr, j as li, k as Qi, h as ga, U as Rd, s as Nd, z as _r, F as qt, Q as GA, m as dt, D as fi, G as fs, B as re, V as Md, S as Ld, W as Gd, K as Oi, O as ds, E as sr, P as Td, J as Ud, T as Hd, b as ye, o as pe, t as Bi, v as Si, y as zl, f as Xe, A as ci, e as tt, u as Ci, w as wi, n as js, a5 as Zl, d as An, c as $l, X as Pd, a6 as Od } from "./chunks/vue-BDbTsTMu.es.js";
4
4
  import { B as Pn } from "./chunks/jszip-DSGi1sNe.es.js";
5
5
  import { B as Jd } from "./chunks/blank-docx-BRvkcuiv.es.js";
@@ -16789,13 +16789,13 @@ var Te = globalThis.pdfjsLib = {};
16789
16789
  "./chunks/empty-GlqisfcO.es.js"
16790
16790
  ), s = await import(
16791
16791
  /*webpackIgnore: true*/
16792
- "./chunks/index-DjLrg1eZ.es.js"
16792
+ "./chunks/index-XHRxRUhd.es.js"
16793
16793
  ).then((d) => d.i), a = await import(
16794
16794
  /*webpackIgnore: true*/
16795
- "./chunks/index-dZKHAFXF.es.js"
16795
+ "./chunks/index-Dd_ce0Er.es.js"
16796
16796
  ).then((d) => d.i), o = await import(
16797
16797
  /*webpackIgnore: true*/
16798
- "./chunks/url-BxDGAI6E.es.js"
16798
+ "./chunks/url-BWFemt_V.es.js"
16799
16799
  ).then((d) => d.u);
16800
16800
  let l, h;
16801
16801
  try {
@@ -32533,7 +32533,7 @@ class ab extends eg {
32533
32533
  this.config = {
32534
32534
  ...this.config,
32535
32535
  ...t
32536
- }, this.config.colors = RI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.9.21", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, await this.#s(this.config.modules), this.#t(), this.#i(), this.user = this.config.user, this.users = this.config.users || [], this.socket = null, this.isDev = this.config.isDev || !1, this.activeEditor = null, this.comments = [], this.app.mount(this.config.selector), this.readyEditors = 0, this.isLocked = this.config.isLocked || !1, this.lockedBy = this.config.lockedBy || null, this.#n(this);
32536
+ }, this.config.colors = RI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.9.22", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, await this.#s(this.config.modules), this.#t(), this.#i(), this.user = this.config.user, this.users = this.config.users || [], this.socket = null, this.isDev = this.config.isDev || !1, this.activeEditor = null, this.comments = [], this.app.mount(this.config.selector), this.readyEditors = 0, this.isLocked = this.config.isLocked || !1, this.lockedBy = this.config.lockedBy || null, this.#n(this);
32537
32537
  }
32538
32538
  get requiredNumberOfEditors() {
32539
32539
  return this.superdocStore.documents.filter((t) => t.type === On).length;
@@ -22916,7 +22916,7 @@ Actual: ` + p3.attribValue
22916
22916
  ), u = t.findIndex(
22917
22917
  (k) => k.elements?.some((N3) => N3.name === "w:fldChar" && N3.attributes["w:fldCharType"] === "end")
22918
22918
  ), f3 = t.slice(a + 1, u), g = (t.find((k) => k.elements?.some((N3) => N3.name === "w:instrText"))?.elements?.find((k) => k.name === "w:instrText")).elements[0].text;
22919
- i3 || (i3 = g?.startsWith("PAGE"));
22919
+ i3 || (i3 = g?.includes("PAGE"));
22920
22920
  const S = g?.match(/HYPERLINK\s+"([^"]+)"/);
22921
22921
  if (i3)
22922
22922
  return e = e.filter((k) => k.name !== "w:r"), e.push({
@@ -23452,7 +23452,7 @@ Actual: ` + p3.attribValue
23452
23452
  return;
23453
23453
  }
23454
23454
  }
23455
- static updateDocumentVersion(e = this.convertedXml, t = "0.9.21") {
23455
+ static updateDocumentVersion(e = this.convertedXml, t = "0.9.22") {
23456
23456
  const n = "docProps/custom.xml";
23457
23457
  e[n] || (e[n] = Au$2());
23458
23458
  const i3 = e["docProps/custom.xml"];
@@ -23677,7 +23677,7 @@ Actual: ` + p3.attribValue
23677
23677
  function Au$2() {
23678
23678
  return Nf$1;
23679
23679
  }
23680
- function Du$2(r22 = 2, e = "0.9.21") {
23680
+ function Du$2(r22 = 2, e = "0.9.22") {
23681
23681
  return {
23682
23682
  type: "element",
23683
23683
  name: "property",
@@ -36157,7 +36157,7 @@ Actual: ` + p3.attribValue
36157
36157
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36158
36158
  */
36159
36159
  processCollaborationMigrations() {
36160
- if (console.debug("[checkVersionMigrations] Current editor version", "0.9.21"), !this.options.ydoc) return;
36160
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.9.22"), !this.options.ydoc) return;
36161
36161
  let r = this.options.ydoc.getMap("meta").get("version");
36162
36162
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36163
36163
  const o = Qa$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -68403,7 +68403,7 @@ ${style2}
68403
68403
  this.config.colors = shuffleArray(this.config.colors);
68404
68404
  this.userColorMap = /* @__PURE__ */ new Map();
68405
68405
  this.colorIndex = 0;
68406
- this.version = "0.9.21";
68406
+ this.version = "0.9.22";
68407
68407
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
68408
68408
  this.superdocId = config.superdocId || v4();
68409
68409
  this.colors = this.config.colors;