@harbour-enterprises/superdoc 0.9.12 → 0.9.13
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.
- package/dist/chunks/{super-editor.es-C3Z5QNsv.cjs → super-editor.es-B1uPFXk3.cjs} +3 -3
- package/dist/chunks/{super-editor.es-DeN5WcEF.es.js → super-editor.es-C6vKHdgD.es.js} +4 -5
- package/dist/super-editor/chunks/{converter-BOga4z8l.js → converter-fQkM_qkr.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CKVfHe_B.js → docx-zipper-C1n_Ukte.js} +1 -1
- package/dist/super-editor/chunks/{editor-CR_HFL3q.js → editor-DrW3w9hr.js} +4 -5
- package/dist/super-editor/chunks/{toolbar-DvFgTbcC.js → toolbar-CThx2ucP.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/extensions/tab/tab.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +5 -6
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as md, a as yd, d as bd, b as jo, m as Wo, v as wd, f as Sd, p as Dd, c as vd } from "./chunks/super-editor.es-
|
|
2
|
-
import { k as cb, O as lb, n as gb } from "./chunks/super-editor.es-
|
|
1
|
+
import { D as md, a as yd, d as bd, b as jo, m as Wo, v as wd, f as Sd, p as Dd, c as vd } from "./chunks/super-editor.es-C6vKHdgD.es.js";
|
|
2
|
+
import { k as cb, O as lb, n as gb } from "./chunks/super-editor.es-C6vKHdgD.es.js";
|
|
3
3
|
import { Y as Vl, r as V, Z as Ai, p as Ne, _ as _n, a as Ae, $ as qn, a0 as la, C as ht, i as lt, q as Ji, l as bt, x as Oe, a1 as Fd, L as ti, R as _t, a2 as kd, a3 as xd, a4 as Xo, g as Ti, N as Gs, M as Kr, j as li, k as Qi, h as ga, U as Rd, s as Nd, z as _r, F as qt, Q as GA, m as dt, D as fi, G as fs, B as re, V as Md, S as Ld, W as Gd, K as Oi, O as ds, E as sr, P as Td, J as Ud, T as Hd, b as ye, o as pe, t as Bi, v as Si, y as zl, f as Xe, A as ci, e as tt, u as Ci, w as wi, n as js, a5 as Zl, d as An, c as $l, X as Pd, a6 as Od } from "./chunks/vue-BDbTsTMu.es.js";
|
|
4
4
|
import { B as Pn } from "./chunks/jszip-DSGi1sNe.es.js";
|
|
5
5
|
import { B as Jd } from "./chunks/blank-docx-BRvkcuiv.es.js";
|
|
@@ -32533,7 +32533,7 @@ class ab extends eg {
|
|
|
32533
32533
|
this.config = {
|
|
32534
32534
|
...this.config,
|
|
32535
32535
|
...t
|
|
32536
|
-
}, this.config.colors = RI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.9.
|
|
32536
|
+
}, this.config.colors = RI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.9.13", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, await this.#s(this.config.modules), this.#t(), this.#i(), 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.#n(this);
|
|
32537
32537
|
}
|
|
32538
32538
|
get requiredNumberOfEditors() {
|
|
32539
32539
|
return this.superdocStore.documents.filter((t) => t.type === On).length;
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -22081,7 +22081,7 @@ Actual: ` + h3.attribValue
|
|
|
22081
22081
|
return;
|
|
22082
22082
|
}
|
|
22083
22083
|
}
|
|
22084
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.9.
|
|
22084
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.9.13") {
|
|
22085
22085
|
const n = "docProps/custom.xml";
|
|
22086
22086
|
e[n] || (e[n] = wu$2());
|
|
22087
22087
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -22281,7 +22281,7 @@ Actual: ` + h3.attribValue
|
|
|
22281
22281
|
function wu$2() {
|
|
22282
22282
|
return Ff$2;
|
|
22283
22283
|
}
|
|
22284
|
-
function bu$2(r22 = 2, e = "0.9.
|
|
22284
|
+
function bu$2(r22 = 2, e = "0.9.13") {
|
|
22285
22285
|
return {
|
|
22286
22286
|
type: "element",
|
|
22287
22287
|
name: "property",
|
|
@@ -33296,7 +33296,7 @@ Actual: ` + h3.attribValue
|
|
|
33296
33296
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
33297
33297
|
*/
|
|
33298
33298
|
processCollaborationMigrations() {
|
|
33299
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.
|
|
33299
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.13"), !this.options.ydoc) return;
|
|
33300
33300
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
33301
33301
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
33302
33302
|
const o = za$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -35299,7 +35299,6 @@ Actual: ` + h3.attribValue
|
|
|
35299
35299
|
return L$1.create(r.doc, o);
|
|
35300
35300
|
},
|
|
35301
35301
|
apply(n, r, o, i3) {
|
|
35302
|
-
if (!n.docChanged) return r;
|
|
35303
35302
|
const s = Ua$1(i3, t);
|
|
35304
35303
|
return L$1.create(i3.doc, s);
|
|
35305
35304
|
}
|
|
@@ -35319,7 +35318,7 @@ Actual: ` + h3.attribValue
|
|
|
35319
35318
|
const s = i3.nodeBefore?.nodeSize || 0;
|
|
35320
35319
|
let a = 0;
|
|
35321
35320
|
try {
|
|
35322
|
-
|
|
35321
|
+
t.doc.nodesBetween(o - s - 1, o - 1, (d, u) => {
|
|
35323
35322
|
if (d.isText && d.textContent !== " ") {
|
|
35324
35323
|
const f3 = Vy(e, u);
|
|
35325
35324
|
a += f3;
|
|
@@ -65468,7 +65467,7 @@ ${style2}
|
|
|
65468
65467
|
this.config.colors = shuffleArray(this.config.colors);
|
|
65469
65468
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
65470
65469
|
this.colorIndex = 0;
|
|
65471
|
-
this.version = "0.9.
|
|
65470
|
+
this.version = "0.9.13";
|
|
65472
65471
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
65473
65472
|
this.superdocId = config.superdocId || v4();
|
|
65474
65473
|
this.colors = this.config.colors;
|