@harbour-enterprises/superdoc 0.11.42 → 0.11.44

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 { Y as md, g as yd, c as bd, n as jo, F as Wo, H as wd, x as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-B_EX0CMY.es.js";
2
- import { O as Ib, X as Cb, R as fb } from "./chunks/super-editor.es-B_EX0CMY.es.js";
1
+ import { Y as md, g as yd, c as bd, n as jo, F as Wo, H as wd, x as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-B8d2FNzS.es.js";
2
+ import { O as Ib, X as Cb, R as fb } from "./chunks/super-editor.es-B8d2FNzS.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, D as dt, i as ht, q as ji, l as wt, y as Fe, a1 as kd, N as Zt, u as qt, a2 as xd, a3 as Rd, a4 as Xo, g as Ji, K as Us, O as jr, j as Ii, k as Di, h as da, U as Nd, s as Md, A as Wr, F as jt, R as GA, m as Ct, E as mi, I as ms, C as re, V as Ld, S as Gd, W as Td, J as qi, P as Es, G as ar, Q as Ud, H as Hd, T as Pd, b as ye, o as fe, t as yi, x as bi, z as zl, f as We, B as ri, e as Ze, v 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-DKS68Dra.es.js";
4
4
  import { B as qn } from "./chunks/jszip-OpmRHhd4.es.js";
5
5
  import { B as Yd } from "./chunks/blank-docx-BRvkcuiv.es.js";
@@ -32717,7 +32717,7 @@ class hb extends eg {
32717
32717
  this.config = {
32718
32718
  ...this.config,
32719
32719
  ...t
32720
- }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.42", 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();
32720
+ }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.44", 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();
32721
32721
  }
32722
32722
  /**
32723
32723
  * Get the number of editors that are required for this superdoc
@@ -24155,7 +24155,7 @@ Actual: ` + p3.attribValue
24155
24155
  return;
24156
24156
  }
24157
24157
  }
24158
- static updateDocumentVersion(e = this.convertedXml, t = "0.11.42") {
24158
+ static updateDocumentVersion(e = this.convertedXml, t = "0.11.44") {
24159
24159
  const n = "docProps/custom.xml";
24160
24160
  e[n] || (e[n] = Fu$2());
24161
24161
  const i3 = e["docProps/custom.xml"];
@@ -24418,7 +24418,7 @@ Actual: ` + p3.attribValue
24418
24418
  function Fu$2() {
24419
24419
  return Gf$1;
24420
24420
  }
24421
- function Bu$2(r22 = 2, e = "0.11.42") {
24421
+ function Bu$2(r22 = 2, e = "0.11.44") {
24422
24422
  return {
24423
24423
  type: "element",
24424
24424
  name: "property",
@@ -36944,7 +36944,7 @@ Actual: ` + p3.attribValue
36944
36944
  const r = this.options.extensions.findIndex((o) => o.name === "history");
36945
36945
  r !== -1 && this.options.extensions.splice(r, 1);
36946
36946
  }
36947
- this.options.isNewFile && this.options.isCommentsEnabled && (this.options.shouldLoadComments = true), !(!this.view || !this.state || this.ifsDestroyed) && (this.options.editorProps && this.view.setProps(this.options.editorProps), this.view.updateState(this.state));
36947
+ (this.options.isNewFile || !this.options.ydoc) && this.options.isCommentsEnabled && (this.options.shouldLoadComments = true), !(!this.view || !this.state || this.ifsDestroyed) && (this.options.editorProps && this.view.setProps(this.options.editorProps), this.view.updateState(this.state));
36948
36948
  }
36949
36949
  /**
36950
36950
  * Set whether the editor is editable
@@ -37158,7 +37158,7 @@ Actual: ` + p3.attribValue
37158
37158
  * @param {Array} [options.comments=[]] - Array of comments to include in the document
37159
37159
  * @returns {Promise<Blob|ArrayBuffer>} The exported DOCX file
37160
37160
  */
37161
- async exportDocx({ isFinalDoc: n = false, commentsType: r, comments: o = [] } = {}) {
37161
+ async exportDocx({ isFinalDoc: n = false, commentsType: r = "external", comments: o = [] } = {}) {
37162
37162
  const i3 = E(this, A, su$1).call(this, o), s = await this.converter.exportToDocx(
37163
37163
  i3,
37164
37164
  this.schema,
@@ -37216,7 +37216,7 @@ Actual: ` + p3.attribValue
37216
37216
  * @returns {Object | void} Migration results
37217
37217
  */
37218
37218
  processCollaborationMigrations() {
37219
- if (console.debug("[checkVersionMigrations] Current editor version", "0.11.42"), !this.options.ydoc) return;
37219
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.11.44"), !this.options.ydoc) return;
37220
37220
  let r = this.options.ydoc.getMap("meta").get("version");
37221
37221
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
37222
37222
  const o = hl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -71505,7 +71505,7 @@ ${style2}
71505
71505
  this.config.colors = shuffleArray(this.config.colors);
71506
71506
  this.userColorMap = /* @__PURE__ */ new Map();
71507
71507
  this.colorIndex = 0;
71508
- this.version = "0.11.42";
71508
+ this.version = "0.11.44";
71509
71509
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
71510
71510
  this.superdocId = config.superdocId || v4();
71511
71511
  this.colors = this.config.colors;