@harbour-enterprises/superdoc 0.10.32 → 0.10.34

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.
@@ -1,5 +1,5 @@
1
- import { l as md, h as yd, a as bd, q as jo, X as Wo, x as wd, d as Sd, C as Dd, k as vd, c as Fd } from "./chunks/super-editor.es-CILD3W7m.es.js";
2
- import { R as Ib, s as Cb, D as fb } from "./chunks/super-editor.es-CILD3W7m.es.js";
1
+ import { l as md, h as yd, a as bd, q as jo, X as Wo, x as wd, d as Sd, C as Dd, k as vd, c as Fd } from "./chunks/super-editor.es-C8dsGkpp.es.js";
2
+ import { R as Ib, s as Cb, D as fb } from "./chunks/super-editor.es-C8dsGkpp.es.js";
3
3
  import { Y as Vl, r as W, Z as ui, p as Ge, _ as Vn, a as ae, $ as zn, a0 as ua, C as dt, i as ht, q as ji, l as wt, x as xe, a1 as kd, L as Zt, R as qt, a2 as xd, a3 as Rd, a4 as Xo, g as Ji, N as Us, M as jr, j as Ii, k as Di, h as da, U as Nd, s as Md, A as Wr, F as jt, Q as GA, m as Ct, D as mi, G as ms, B as re, V as Ld, S as Gd, W as Td, K as qi, O as Es, E as ar, P as Ud, J as Hd, T as Pd, b as ye, o as fe, t as yi, v as bi, y as zl, f as We, z as ri, e as Ze, u as hi, w as Qi, n as Xs, a5 as Zl, d as gn, c as $l, X as Od, a6 as Jd } from "./chunks/vue-D254cI7X.es.js";
4
4
  import { B as qn } from "./chunks/jszip-ChtTJmXO.es.js";
5
5
  import { B as Yd } from "./chunks/blank-docx-BRvkcuiv.es.js";
@@ -32693,7 +32693,7 @@ class hb extends eg {
32693
32693
  this.config = {
32694
32694
  ...this.config,
32695
32695
  ...t
32696
- }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.10.32", 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);
32696
+ }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.10.34", 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);
32697
32697
  }
32698
32698
  get requiredNumberOfEditors() {
32699
32699
  return this.superdocStore.documents.filter((t) => t.type === on).length;
@@ -22728,10 +22728,10 @@ Actual: ` + p3.attribValue
22728
22728
  pStyleId: null,
22729
22729
  docx: u
22730
22730
  }), P = L3 !== s && !K3, p3 = n < j || n === j && P && I3 === n;
22731
- l[s] || (l[s] = {}), l[s][n] || (l[s][n] = 0);
22731
+ l[s] || (l[s] = {}), l[s][n] || (l[s][n] = Number($3));
22732
22732
  const m = {};
22733
22733
  if (V && !p3) {
22734
- l[s][i3]++, g = me2, R.seen = true;
22734
+ g = me2, R.seen = true;
22735
22735
  const N3 = [];
22736
22736
  let v = {
22737
22737
  type: "paragraph",
@@ -22746,7 +22746,7 @@ Actual: ` + p3.attribValue
22746
22746
  content: gu$1(v.content)
22747
22747
  }), N3.push(v), I3 = n;
22748
22748
  let b = [];
22749
- if (A !== "bullet" && (b = [...o, l[s][n]]), !o.length && i3 > 0) {
22749
+ if (A !== "bullet" && (b = [...o, l[s][n]], l[s][i3]++), !o.length && i3 > 0) {
22750
22750
  const le2 = l[s];
22751
22751
  if (le2) {
22752
22752
  const z = [];
@@ -23822,7 +23822,7 @@ Actual: ` + p3.attribValue
23822
23822
  return;
23823
23823
  }
23824
23824
  }
23825
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.32") {
23825
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.34") {
23826
23826
  const n = "docProps/custom.xml";
23827
23827
  e[n] || (e[n] = Bu$2());
23828
23828
  const i3 = e["docProps/custom.xml"];
@@ -24083,7 +24083,7 @@ Actual: ` + p3.attribValue
24083
24083
  function Bu$2() {
24084
24084
  return Wf$2;
24085
24085
  }
24086
- function ku$2(r22 = 2, e = "0.10.32") {
24086
+ function ku$2(r22 = 2, e = "0.10.34") {
24087
24087
  return {
24088
24088
  type: "element",
24089
24089
  name: "property",
@@ -26454,7 +26454,7 @@ Actual: ` + p3.attribValue
26454
26454
  const i3 = new File([v], m.name, { type: v.type }), d = URL.createObjectURL(i3);
26455
26455
  this.media[m.name] = d;
26456
26456
  }
26457
- else if (m.name.startsWith("word/fonts") && m.name !== "word/fonts/") {
26457
+ else if (!_3 && m.name.startsWith("word/fonts") && m.name !== "word/fonts/") {
26458
26458
  const v = await m.async("arraybuffer");
26459
26459
  this.fonts[m.name] = v;
26460
26460
  }
@@ -36583,7 +36583,7 @@ Actual: ` + p3.attribValue
36583
36583
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36584
36584
  */
36585
36585
  processCollaborationMigrations() {
36586
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.32"), !this.options.ydoc) return;
36586
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.34"), !this.options.ydoc) return;
36587
36587
  let r = this.options.ydoc.getMap("meta").get("version");
36588
36588
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36589
36589
  const o = ol$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -69718,7 +69718,7 @@ ${style2}
69718
69718
  this.config.colors = shuffleArray(this.config.colors);
69719
69719
  this.userColorMap = /* @__PURE__ */ new Map();
69720
69720
  this.colorIndex = 0;
69721
- this.version = "0.10.32";
69721
+ this.version = "0.10.34";
69722
69722
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
69723
69723
  this.superdocId = config.superdocId || v4();
69724
69724
  this.colors = this.config.colors;