@harbour-enterprises/superdoc 0.10.38 → 0.10.39

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, w as vd, c as Fd } from "./chunks/super-editor.es-C5F4y-e_.es.js";
2
- import { R as Ib, s as Cb, D as fb } from "./chunks/super-editor.es-C5F4y-e_.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, w as vd, c as Fd } from "./chunks/super-editor.es-DUWXIgsn.es.js";
2
+ import { R as Ib, s as Cb, D as fb } from "./chunks/super-editor.es-DUWXIgsn.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.38", 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.39", 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;
@@ -22167,6 +22167,10 @@ Actual: ` + p3.attribValue
22167
22167
  for (let f3 of i3) {
22168
22168
  const l = $e$1(this, nt$3, gi$2).call(this, f3);
22169
22169
  if (!l) continue;
22170
+ if (typeof l == "string") {
22171
+ u.push(l);
22172
+ continue;
22173
+ }
22170
22174
  const h3 = l.filter((g) => g !== "<undefined>" && g !== "</undefined>");
22171
22175
  u.push(...h3);
22172
22176
  }
@@ -23823,7 +23827,7 @@ Actual: ` + p3.attribValue
23823
23827
  return;
23824
23828
  }
23825
23829
  }
23826
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.38") {
23830
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.39") {
23827
23831
  const n = "docProps/custom.xml";
23828
23832
  e[n] || (e[n] = Bu$2());
23829
23833
  const i3 = e["docProps/custom.xml"];
@@ -24084,7 +24088,7 @@ Actual: ` + p3.attribValue
24084
24088
  function Bu$2() {
24085
24089
  return Wf$2;
24086
24090
  }
24087
- function ku$2(r22 = 2, e = "0.10.38") {
24091
+ function ku$2(r22 = 2, e = "0.10.39") {
24088
24092
  return {
24089
24093
  type: "element",
24090
24094
  name: "property",
@@ -36584,7 +36588,7 @@ Actual: ` + p3.attribValue
36584
36588
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36585
36589
  */
36586
36590
  processCollaborationMigrations() {
36587
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.38"), !this.options.ydoc) return;
36591
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.39"), !this.options.ydoc) return;
36588
36592
  let r = this.options.ydoc.getMap("meta").get("version");
36589
36593
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36590
36594
  const o = ol$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -69737,7 +69741,7 @@ ${style2}
69737
69741
  this.config.colors = shuffleArray(this.config.colors);
69738
69742
  this.userColorMap = /* @__PURE__ */ new Map();
69739
69743
  this.colorIndex = 0;
69740
- this.version = "0.10.38";
69744
+ this.version = "0.10.39";
69741
69745
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
69742
69746
  this.superdocId = config.superdocId || v4();
69743
69747
  this.colors = this.config.colors;