@harbour-enterprises/superdoc 0.10.26 → 0.10.27

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 { o as md, h as yd, b as bd, U as jo, W as Wo, x as wd, d as Sd, C as Dd, k as vd, c as Fd } from "./chunks/super-editor.es-0-nrctHr.es.js";
2
- import { a as Ib, n as Cb, T as fb } from "./chunks/super-editor.es-0-nrctHr.es.js";
1
+ import { o as md, h as yd, b as bd, U as jo, W as Wo, x as wd, d as Sd, C as Dd, k as vd, c as Fd } from "./chunks/super-editor.es-DqGwgHzQ.es.js";
2
+ import { a as Ib, n as Cb, T as fb } from "./chunks/super-editor.es-DqGwgHzQ.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.26", 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.27", 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;
@@ -22598,7 +22598,7 @@ Actual: ` + p3.attribValue
22598
22598
  if (t.length !== n.length)
22599
22599
  return false;
22600
22600
  for (let i3 = 0; i3 < t.length; i3++)
22601
- if (t[i3].type !== n[i3].type || Object.keys(t[i3].attrs).length !== Object.keys(n[i3].attrs).length || !vm$1(t[i3].attrs, n[i3].attrs))
22601
+ if (t[i3].attrs || (t[i3].attrs = {}), n[i3].attrs || (n[i3].attrs = {}), t[i3].type !== n[i3].type || Object.keys(t[i3].attrs).length !== Object.keys(n[i3].attrs).length || !vm$1(t[i3].attrs, n[i3].attrs))
22602
22602
  return false;
22603
22603
  return true;
22604
22604
  }, vm$1 = (r22 = {}, e = {}) => If$1(r22, e);
@@ -23680,7 +23680,7 @@ Actual: ` + p3.attribValue
23680
23680
  return;
23681
23681
  }
23682
23682
  }
23683
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.26") {
23683
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.27") {
23684
23684
  const n = "docProps/custom.xml";
23685
23685
  e[n] || (e[n] = Fu$2());
23686
23686
  const i3 = e["docProps/custom.xml"];
@@ -23941,7 +23941,7 @@ Actual: ` + p3.attribValue
23941
23941
  function Fu$2() {
23942
23942
  return Gf$2;
23943
23943
  }
23944
- function Bu$2(r22 = 2, e = "0.10.26") {
23944
+ function Bu$2(r22 = 2, e = "0.10.27") {
23945
23945
  return {
23946
23946
  type: "element",
23947
23947
  name: "property",
@@ -36441,7 +36441,7 @@ Actual: ` + p3.attribValue
36441
36441
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36442
36442
  */
36443
36443
  processCollaborationMigrations() {
36444
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.26"), !this.options.ydoc) return;
36444
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.27"), !this.options.ydoc) return;
36445
36445
  let r = this.options.ydoc.getMap("meta").get("version");
36446
36446
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36447
36447
  const o = ol$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -69442,7 +69442,7 @@ ${style2}
69442
69442
  this.config.colors = shuffleArray(this.config.colors);
69443
69443
  this.userColorMap = /* @__PURE__ */ new Map();
69444
69444
  this.colorIndex = 0;
69445
- this.version = "0.10.26";
69445
+ this.version = "0.10.27";
69446
69446
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
69447
69447
  this.superdocId = config.superdocId || v4();
69448
69448
  this.colors = this.config.colors;