@harbour-enterprises/superdoc 0.11.25 → 0.11.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 { W as md, g as yd, c as bd, t as jo, f as Wo, H as wd, m as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-BYQUwXzm.es.js";
2
- import { O as Ib, b as Cb, K as fb } from "./chunks/super-editor.es-BYQUwXzm.es.js";
1
+ import { W as md, g as yd, c as bd, t as jo, f as Wo, H as wd, m as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-BIK-8ouX.es.js";
2
+ import { O as Ib, b as Cb, K as fb } from "./chunks/super-editor.es-BIK-8ouX.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-DXpzqXur.es.js";
4
4
  import { B as qn } from "./chunks/jszip-DO3il9iI.es.js";
5
5
  import { B as Yd } from "./chunks/blank-docx-BRvkcuiv.es.js";
@@ -32713,7 +32713,7 @@ class hb extends eg {
32713
32713
  this.config = {
32714
32714
  ...this.config,
32715
32715
  ...t
32716
- }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.25", 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);
32716
+ }, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.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);
32717
32717
  }
32718
32718
  get requiredNumberOfEditors() {
32719
32719
  return this.superdocStore.documents.filter((t) => t.type === on).length;
@@ -24064,7 +24064,7 @@ Actual: ` + p3.attribValue
24064
24064
  return;
24065
24065
  }
24066
24066
  }
24067
- static updateDocumentVersion(e = this.convertedXml, t = "0.11.25") {
24067
+ static updateDocumentVersion(e = this.convertedXml, t = "0.11.27") {
24068
24068
  const n = "docProps/custom.xml";
24069
24069
  e[n] || (e[n] = Fu$2());
24070
24070
  const i3 = e["docProps/custom.xml"];
@@ -24327,7 +24327,7 @@ Actual: ` + p3.attribValue
24327
24327
  function Fu$2() {
24328
24328
  return Gf$1;
24329
24329
  }
24330
- function Bu$2(r22 = 2, e = "0.11.25") {
24330
+ function Bu$2(r22 = 2, e = "0.11.27") {
24331
24331
  return {
24332
24332
  type: "element",
24333
24333
  name: "property",
@@ -35136,11 +35136,11 @@ Actual: ` + p3.attribValue
35136
35136
  }, Qy = (t, e, n, r = {}) => (i3) => {
35137
35137
  const { editor: o, tr: s, state: a, dispatch: l, chain: c3, can: d, commands: u } = i3, { extensions: f, splittableMarks: p3 } = o.extensionService, h3 = ae$3(t, a.schema), m = ae$3(e, a.schema), { selection: g, storedMarks: b } = a, { $from: w, $to: x3 } = g, y = w.blockRange(x3), S = b || g.$to.parentOffset && g.$from.marks();
35138
35138
  if (!y) return false;
35139
- const k = je$1((V) => es$1(V.type.name, f))(g), { numbering: C3 } = o.converter;
35139
+ const k = je$1((V) => es$1(V.type.name, f))(g), C3 = o.converter?.numbering ?? null;
35140
35140
  if (y.depth >= 1 && k && y.depth - k.depth <= 1) {
35141
35141
  if (k.node.type === h3) {
35142
35142
  const { listId: V } = k.node.attrs;
35143
- return o.converter.numbering = tb(V, C3), u.liftListItem(m);
35143
+ return o.converter && (o.converter.numbering = tb(V, C3)), u.liftListItem(m);
35144
35144
  }
35145
35145
  if (es$1(k.node.type.name, f) && h3.validContent(k.node.content) && l)
35146
35146
  return c3().command(() => (s.setNodeMarkup(k.pos, h3), true)).command(() => bo$2(s, h3)).command(() => wo$2(s, h3)).run();
@@ -35152,8 +35152,8 @@ Actual: ` + p3.attribValue
35152
35152
  s.ensureMarks(H3);
35153
35153
  }
35154
35154
  return z3 ? true : u.clearNodes();
35155
- }, M = Fd$1(C3.definitions);
35156
- return o.converter.numbering = eb(M, C3, h3), r.listId = M, !n || !S || !l ? c3().command(R({ ensureMarks: false })).wrapInList(h3, r).command(() => bo$2(s, h3)).command(() => wo$2(s, h3)).run() : c3().command(R({ ensureMarks: true })).wrapInList(h3, r).command(() => bo$2(s, h3)).command(() => wo$2(s, h3)).run();
35155
+ }, M = C3?.definitions ? Fd$1(C3.definitions) : null;
35156
+ return o.converter && (o.converter.numbering = eb(M, C3, h3)), r.listId = M, !n || !S || !l ? c3().command(R({ ensureMarks: false })).wrapInList(h3, r).command(() => bo$2(s, h3)).command(() => wo$2(s, h3)).run() : c3().command(R({ ensureMarks: true })).wrapInList(h3, r).command(() => bo$2(s, h3)).command(() => wo$2(s, h3)).run();
35157
35157
  }, Fd$1 = (t) => Math.max(...Object.keys(t).map(Number)) + 1, eb = (t, e, n) => {
35158
35158
  const r = n.name === "orderedList" ? Gy : Zy, i3 = { ...e }, o = Fd$1(i3.abstracts), s = {
35159
35159
  ...r,
@@ -36896,7 +36896,7 @@ Actual: ` + p3.attribValue
36896
36896
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36897
36897
  */
36898
36898
  processCollaborationMigrations() {
36899
- if (console.debug("[checkVersionMigrations] Current editor version", "0.11.25"), !this.options.ydoc) return;
36899
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.11.27"), !this.options.ydoc) return;
36900
36900
  let r = this.options.ydoc.getMap("meta").get("version");
36901
36901
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36902
36902
  const i3 = fl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -70796,7 +70796,7 @@ ${style2}
70796
70796
  this.config.colors = shuffleArray(this.config.colors);
70797
70797
  this.userColorMap = /* @__PURE__ */ new Map();
70798
70798
  this.colorIndex = 0;
70799
- this.version = "0.11.25";
70799
+ this.version = "0.11.27";
70800
70800
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
70801
70801
  this.superdocId = config.superdocId || v4();
70802
70802
  this.colors = this.config.colors;