@harbour-enterprises/superdoc 0.10.58 → 0.10.59

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 { h as md, g as yd, c as bd, q as jo, J as Wo, x as wd, d as Sd, C as Dd, w as vd, a as Fd } from "./chunks/super-editor.es-fuqUtg0Z.es.js";
2
- import { P as Ib, b as Cb, f as fb } from "./chunks/super-editor.es-fuqUtg0Z.es.js";
1
+ import { h as md, g as yd, c as bd, q as jo, J as Wo, x as wd, d as Sd, C as Dd, w as vd, a as Fd } from "./chunks/super-editor.es-zactM06E.es.js";
2
+ import { P as Ib, b as Cb, f as fb } from "./chunks/super-editor.es-zactM06E.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 ke, 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";
@@ -32694,7 +32694,7 @@ class hb extends eg {
32694
32694
  this.config = {
32695
32695
  ...this.config,
32696
32696
  ...t
32697
- }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.10.58", 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
+ }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.10.59", 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);
32698
32698
  }
32699
32699
  get requiredNumberOfEditors() {
32700
32700
  return this.superdocStore.documents.filter((t) => t.type === on).length;
@@ -23916,7 +23916,7 @@ Actual: ` + p3.attribValue
23916
23916
  return;
23917
23917
  }
23918
23918
  }
23919
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.58") {
23919
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.59") {
23920
23920
  const n = "docProps/custom.xml";
23921
23921
  e[n] || (e[n] = Fu$2());
23922
23922
  const i3 = e["docProps/custom.xml"];
@@ -24177,7 +24177,7 @@ Actual: ` + p3.attribValue
24177
24177
  function Fu$2() {
24178
24178
  return Gf$2;
24179
24179
  }
24180
- function Bu$2(r22 = 2, e = "0.10.58") {
24180
+ function Bu$2(r22 = 2, e = "0.10.59") {
24181
24181
  return {
24182
24182
  type: "element",
24183
24183
  name: "property",
@@ -36687,7 +36687,7 @@ Actual: ` + p3.attribValue
36687
36687
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36688
36688
  */
36689
36689
  processCollaborationMigrations() {
36690
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.58"), !this.options.ydoc) return;
36690
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.59"), !this.options.ydoc) return;
36691
36691
  let r = this.options.ydoc.getMap("meta").get("version");
36692
36692
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36693
36693
  const o = ol$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -38580,7 +38580,7 @@ Actual: ` + p3.attribValue
38580
38580
  }
38581
38581
  l.push({ key: f3.type.name, value: f3.attrs[a] });
38582
38582
  });
38583
- const c3 = l.find((f3) => f3.key === a), d = Object.keys(n?.attrs.indent || {}), u = Object.keys(n?.attrs.spacing || {});
38583
+ const c3 = l.find((f3) => f3.key === a), d = Object.keys(n?.attrs?.indent || {}), u = Object.keys(n?.attrs?.spacing || {});
38584
38584
  if (!c3)
38585
38585
  if (a === "spacing" && r && !u) {
38586
38586
  const f3 = a0$1(s);
@@ -38677,7 +38677,7 @@ Actual: ` + p3.attribValue
38677
38677
  class: {
38678
38678
  renderDOM: (e) => e.dropcap ? { class: "super-doc-dropcap" } : null
38679
38679
  },
38680
- styleId: { rendered: false },
38680
+ styleId: {},
38681
38681
  attributes: {
38682
38682
  rendered: false
38683
38683
  },
@@ -69941,7 +69941,7 @@ ${style2}
69941
69941
  this.config.colors = shuffleArray(this.config.colors);
69942
69942
  this.userColorMap = /* @__PURE__ */ new Map();
69943
69943
  this.colorIndex = 0;
69944
- this.version = "0.10.58";
69944
+ this.version = "0.10.59";
69945
69945
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
69946
69946
  this.superdocId = config.superdocId || v4();
69947
69947
  this.colors = this.config.colors;