@harbour-enterprises/superdoc 0.10.20 → 0.10.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 (29) hide show
  1. package/dist/chunks/{index-YqE5-6V1.cjs → index-BXKGjuVW.cjs} +1 -1
  2. package/dist/chunks/{index-DHS2ANjv.cjs → index-CqRwYOdx.cjs} +1 -1
  3. package/dist/chunks/{index-XHRxRUhd.es.js → index-DjLrg1eZ.es.js} +2 -2
  4. package/dist/chunks/{index-Dd_ce0Er.es.js → index-dZKHAFXF.es.js} +1 -1
  5. package/dist/chunks/{super-editor.es-BxCFlU7Z.es.js → super-editor.es-CdMJsMle.es.js} +8 -6
  6. package/dist/chunks/{super-editor.es-CzLX9Hmg.cjs → super-editor.es-TJy-CXJ0.cjs} +2 -2
  7. package/dist/chunks/{url-Cqg7fbSS.cjs → url-6Xu7gR4T.cjs} +1 -1
  8. package/dist/chunks/{url-BWFemt_V.es.js → url-BxDGAI6E.es.js} +1 -1
  9. package/dist/chunks/{xml-js-Bzw8Bo_u.es.js → xml-js-BAML2_fM.es.js} +762 -744
  10. package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
  11. package/dist/super-editor/chunks/{converter-DStjBlxj.js → converter-BQTTQHRA.js} +5 -3
  12. package/dist/super-editor/chunks/{docx-zipper-BMm0mIhk.js → docx-zipper-DFIgRSuf.js} +1 -1
  13. package/dist/super-editor/chunks/{editor-CB-XaU1x.js → editor-ChNkdwEF.js} +5 -5
  14. package/dist/super-editor/chunks/{toolbar-Ckt-6wVK.js → toolbar-u0YXjEp9.js} +2 -2
  15. package/dist/super-editor/converter.es.js +1 -1
  16. package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
  17. package/dist/super-editor/docx-zipper.es.js +2 -2
  18. package/dist/super-editor/editor.es.js +3 -3
  19. package/dist/super-editor/file-zipper.es.js +1 -1
  20. package/dist/super-editor/super-editor.es.js +6 -6
  21. package/dist/super-editor/toolbar.es.js +2 -2
  22. package/dist/super-editor.cjs +1 -1
  23. package/dist/super-editor.es.js +1 -1
  24. package/dist/superdoc.cjs +3 -3
  25. package/dist/superdoc.es.js +6 -6
  26. package/dist/superdoc.umd.js +9 -7
  27. package/dist/superdoc.umd.js.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunks/xml-js-Zwb1wsIy.cjs +0 -10
@@ -1,5 +1,5 @@
1
- import { g as md, h as yd, d as bd, j as jo, F as Wo, k as wd, y as Sd, v as Dd, c as vd } from "./chunks/super-editor.es-BxCFlU7Z.es.js";
2
- import { a as cb, X as lb, A as gb } from "./chunks/super-editor.es-BxCFlU7Z.es.js";
1
+ import { g as md, h as yd, d as bd, j as jo, F as Wo, k as wd, y as Sd, v as Dd, c as vd } from "./chunks/super-editor.es-CdMJsMle.es.js";
2
+ import { a as cb, X as lb, A as gb } from "./chunks/super-editor.es-CdMJsMle.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 on, c as $l, X as Pd, a6 as Od } from "./chunks/vue-BDbTsTMu.es.js";
4
4
  import { B as On } from "./chunks/jszip-DSGi1sNe.es.js";
5
5
  import { B as Jd } from "./chunks/blank-docx-BRvkcuiv.es.js";
@@ -16788,13 +16788,13 @@ var Te = globalThis.pdfjsLib = {};
16788
16788
  "./chunks/empty-GlqisfcO.es.js"
16789
16789
  ), s = await import(
16790
16790
  /*webpackIgnore: true*/
16791
- "./chunks/index-XHRxRUhd.es.js"
16791
+ "./chunks/index-DjLrg1eZ.es.js"
16792
16792
  ).then((d) => d.i), a = await import(
16793
16793
  /*webpackIgnore: true*/
16794
- "./chunks/index-Dd_ce0Er.es.js"
16794
+ "./chunks/index-dZKHAFXF.es.js"
16795
16795
  ).then((d) => d.i), o = await import(
16796
16796
  /*webpackIgnore: true*/
16797
- "./chunks/url-BWFemt_V.es.js"
16797
+ "./chunks/url-BxDGAI6E.es.js"
16798
16798
  ).then((d) => d.u);
16799
16799
  let l, h;
16800
16800
  try {
@@ -32534,7 +32534,7 @@ class ab extends eg {
32534
32534
  this.config = {
32535
32535
  ...this.config,
32536
32536
  ...t
32537
- }, this.config.colors = RI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.10.20", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, this.#t(), await this.#r(this.config.modules), this.#i(), this.#s(), 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.#a(this);
32537
+ }, this.config.colors = RI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.10.22", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, this.#t(), await this.#r(this.config.modules), this.#i(), this.#s(), 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.#a(this);
32538
32538
  }
32539
32539
  get requiredNumberOfEditors() {
32540
32540
  return this.superdocStore.documents.filter((t) => t.type === rn).length;
@@ -23614,7 +23614,7 @@ Actual: ` + p3.attribValue
23614
23614
  return;
23615
23615
  }
23616
23616
  }
23617
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.20") {
23617
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.22") {
23618
23618
  const n = "docProps/custom.xml";
23619
23619
  e[n] || (e[n] = Fu$2());
23620
23620
  const i3 = e["docProps/custom.xml"];
@@ -23633,7 +23633,9 @@ Actual: ` + p3.attribValue
23633
23633
  getDocumentDefaultStyles() {
23634
23634
  const e = this.convertedXml["word/styles.xml"];
23635
23635
  if (!e) return {};
23636
- const n = e.elements[0].elements.find((o) => o.name === "w:docDefaults").elements.find((o) => o.name === "w:rPrDefault"), i3 = n.elements[0].elements, s = i3?.find((o) => o.name === "w:rFonts");
23636
+ const n = e.elements[0].elements.find((o) => o.name === "w:docDefaults").elements.find((o) => o.name === "w:rPrDefault");
23637
+ if (!n.elements) return {};
23638
+ const i3 = n.elements[0].elements, s = i3?.find((o) => o.name === "w:rFonts");
23637
23639
  if ("elements" in n) {
23638
23640
  const o = i3.find((g) => g.name === "w:rFonts")?.attributes["w:asciiTheme"];
23639
23641
  let a, u;
@@ -23839,7 +23841,7 @@ Actual: ` + p3.attribValue
23839
23841
  function Fu$2() {
23840
23842
  return zf$2;
23841
23843
  }
23842
- function Bu$2(r22 = 2, e = "0.10.20") {
23844
+ function Bu$2(r22 = 2, e = "0.10.22") {
23843
23845
  return {
23844
23846
  type: "element",
23845
23847
  name: "property",
@@ -35388,7 +35390,7 @@ Actual: ` + p3.attribValue
35388
35390
  e.footers[i3].height = a, e.footers[i3].sectionEditor = l, e.footers[i3].sectionContainer = c3;
35389
35391
  }
35390
35392
  return e;
35391
- }, el = async (t, e) => new Promise((n) => {
35393
+ }, el = async (t, e) => e ? new Promise((n) => {
35392
35394
  const r = document.createElement("div");
35393
35395
  r.className = "super-editor", r.style.padding = 0, r.style.margin = 0;
35394
35396
  const o = t.converter.getDocumentDefaultStyles(), { fontSizePt: i3, typeface: s } = o, a = i3 * 1.3333, l = a * 1.15;
@@ -35434,7 +35436,7 @@ Actual: ` + p3.attribValue
35434
35436
  }), n({ height: d, sectionEditor: c3, sectionContainer: r });
35435
35437
  });
35436
35438
  });
35437
- }), _s = [yr$2, Ri$2, Pi$2], he$2 = new Cp$2("comments"), tb = Q$1.create({
35439
+ }) : {}, _s = [yr$2, Ri$2, Pi$2], he$2 = new Cp$2("comments"), tb = Q$1.create({
35438
35440
  name: "comments",
35439
35441
  addCommands() {
35440
35442
  return {
@@ -36335,7 +36337,7 @@ Actual: ` + p3.attribValue
36335
36337
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36336
36338
  */
36337
36339
  processCollaborationMigrations() {
36338
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.20"), !this.options.ydoc) return;
36340
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.22"), !this.options.ydoc) return;
36339
36341
  let r = this.options.ydoc.getMap("meta").get("version");
36340
36342
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36341
36343
  const o = nl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -68668,7 +68670,7 @@ ${style2}
68668
68670
  this.config.colors = shuffleArray(this.config.colors);
68669
68671
  this.userColorMap = /* @__PURE__ */ new Map();
68670
68672
  this.colorIndex = 0;
68671
- this.version = "0.10.20";
68673
+ this.version = "0.10.22";
68672
68674
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
68673
68675
  this.superdocId = config.superdocId || v4();
68674
68676
  this.colors = this.config.colors;