@harbour-enterprises/superdoc 0.9.24 → 0.9.25
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-C8w4J5jx.es.js → super-editor.es-CIN79FjT.es.js} +211 -209
- package/dist/chunks/{super-editor.es-dH2QglKu.cjs → super-editor.es-h2nZfGPP.cjs} +2 -2
- package/dist/super-editor/chunks/{converter-Cwp-Sia4.js → converter-sW9TD9S-.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CnOgTDAX.js → docx-zipper-CtBfaHzU.js} +1 -1
- package/dist/super-editor/chunks/{editor-D1IioTBl.js → editor--8YB7Owp.js} +35 -33
- package/dist/super-editor/chunks/{toolbar-CTkdGAwV.js → toolbar-DxQCXy5M.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/commands/splitListItem.d.ts.map +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/list-item/helpers/styledListMarkerPlugin.d.ts.map +1 -1
- package/dist/super-editor/extensions/ordered-list/helpers/orderedListMarkerPlugin.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 +35 -33
- 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 { q as md, m as yd, d as bd, j as jo, I as Wo, v as wd, f as Sd, p as Dd, c as vd } from "./chunks/super-editor.es-
|
|
2
|
-
import { k as cb, W as lb, S as gb } from "./chunks/super-editor.es-
|
|
1
|
+
import { q as md, m as yd, d as bd, j as jo, I as Wo, v as wd, f as Sd, p as Dd, c as vd } from "./chunks/super-editor.es-CIN79FjT.es.js";
|
|
2
|
+
import { k as cb, W as lb, S as gb } from "./chunks/super-editor.es-CIN79FjT.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.25", 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
|
@@ -23452,7 +23452,7 @@ Actual: ` + p3.attribValue
|
|
|
23452
23452
|
return;
|
|
23453
23453
|
}
|
|
23454
23454
|
}
|
|
23455
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.9.
|
|
23455
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.9.25") {
|
|
23456
23456
|
const n = "docProps/custom.xml";
|
|
23457
23457
|
e[n] || (e[n] = Au$2());
|
|
23458
23458
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -23677,7 +23677,7 @@ Actual: ` + p3.attribValue
|
|
|
23677
23677
|
function Au$2() {
|
|
23678
23678
|
return Nf$1;
|
|
23679
23679
|
}
|
|
23680
|
-
function Du$2(r22 = 2, e = "0.9.
|
|
23680
|
+
function Du$2(r22 = 2, e = "0.9.25") {
|
|
23681
23681
|
return {
|
|
23682
23682
|
type: "element",
|
|
23683
23683
|
name: "property",
|
|
@@ -34555,7 +34555,7 @@ Actual: ` + p3.attribValue
|
|
|
34555
34555
|
const { selection: g, storedMarks: b } = r, { splittableMarks: w } = i3.extensionService, C = b || g.$to.parentOffset && g.$from.marks();
|
|
34556
34556
|
if (n.split(a.pos, 2, m).scrollIntoView(), !C || !o) return true;
|
|
34557
34557
|
const y = C.filter((S) => w.includes(S.type.name));
|
|
34558
|
-
n.ensureMarks(y);
|
|
34558
|
+
n.ensureMarks(y), n.setMeta("splitListItem", y);
|
|
34559
34559
|
}
|
|
34560
34560
|
return true;
|
|
34561
34561
|
}, Dy = (t) => ({ state: e, dispatch: n }) => {
|
|
@@ -36157,7 +36157,7 @@ Actual: ` + p3.attribValue
|
|
|
36157
36157
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36158
36158
|
*/
|
|
36159
36159
|
processCollaborationMigrations() {
|
|
36160
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.
|
|
36160
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.25"), !this.options.ydoc) return;
|
|
36161
36161
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36162
36162
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36163
36163
|
const o = Qa$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -37360,7 +37360,7 @@ Actual: ` + p3.attribValue
|
|
|
37360
37360
|
listLevel: _
|
|
37361
37361
|
};
|
|
37362
37362
|
});
|
|
37363
|
-
}), l ? s : null;
|
|
37363
|
+
}), s.setMeta("orderedListMarker", true), l ? s : null;
|
|
37364
37364
|
}
|
|
37365
37365
|
});
|
|
37366
37366
|
}
|
|
@@ -37632,12 +37632,12 @@ Actual: ` + p3.attribValue
|
|
|
37632
37632
|
return F.create(n.doc, r);
|
|
37633
37633
|
},
|
|
37634
37634
|
apply(e, n, r, o) {
|
|
37635
|
-
if (!e.docChanged) return n;
|
|
37636
|
-
const
|
|
37637
|
-
...rl$1(o),
|
|
37635
|
+
if (!e.docChanged || e.getMeta("orderedListMarker")) return n;
|
|
37636
|
+
const s = e.getMeta("splitListItem"), a = [
|
|
37637
|
+
...rl$1(o, s),
|
|
37638
37638
|
...ol$1(o)
|
|
37639
37639
|
];
|
|
37640
|
-
return F.create(o.doc,
|
|
37640
|
+
return F.create(o.doc, a);
|
|
37641
37641
|
}
|
|
37642
37642
|
},
|
|
37643
37643
|
props: {
|
|
@@ -37647,33 +37647,35 @@ Actual: ` + p3.attribValue
|
|
|
37647
37647
|
}
|
|
37648
37648
|
});
|
|
37649
37649
|
}
|
|
37650
|
-
function rl$1(t) {
|
|
37651
|
-
let { doc:
|
|
37652
|
-
|
|
37653
|
-
|
|
37654
|
-
|
|
37655
|
-
|
|
37656
|
-
|
|
37650
|
+
function rl$1(t, e = []) {
|
|
37651
|
+
let { doc: n, storedMarks: r } = t, o = [];
|
|
37652
|
+
Array.isArray(r) && e.push(...r);
|
|
37653
|
+
let i3 = Ls(n, (s) => s.type.name === "listItem");
|
|
37654
|
+
return i3.length && i3.forEach(({ node: s, pos: a }) => {
|
|
37655
|
+
let l = xt$1("textStyle", n.type.schema), c3 = [...e.filter((b) => b.type === l)];
|
|
37656
|
+
if (Wb(s) && e.length) {
|
|
37657
|
+
const b = e.filter((w) => w.type === l);
|
|
37658
|
+
c3.push(...b);
|
|
37657
37659
|
} else {
|
|
37658
|
-
|
|
37659
|
-
|
|
37660
|
+
const b = jb(s, n, l);
|
|
37661
|
+
c3.push(...b);
|
|
37660
37662
|
}
|
|
37661
|
-
let
|
|
37662
|
-
|
|
37663
|
-
let { attrs:
|
|
37664
|
-
if (
|
|
37665
|
-
let [
|
|
37666
|
-
Number.isNaN(
|
|
37663
|
+
let u = null, f3 = null;
|
|
37664
|
+
c3.forEach((b) => {
|
|
37665
|
+
let { attrs: w } = b;
|
|
37666
|
+
if (w.fontSize && !u) {
|
|
37667
|
+
let [C, y] = Ct$1(w.fontSize);
|
|
37668
|
+
Number.isNaN(C) || (y = y ?? "pt", u = `${C}${y}`);
|
|
37667
37669
|
}
|
|
37668
|
-
|
|
37670
|
+
w.fontFamily && !f3 && (f3 = w.fontFamily);
|
|
37669
37671
|
});
|
|
37670
|
-
let
|
|
37671
|
-
style: `--marker-font-size: ${
|
|
37672
|
-
},
|
|
37673
|
-
style: `--marker-font-family: ${
|
|
37674
|
-
},
|
|
37675
|
-
|
|
37676
|
-
}),
|
|
37672
|
+
let p3 = {
|
|
37673
|
+
style: `--marker-font-size: ${u ?? "initial"}`
|
|
37674
|
+
}, h3 = {
|
|
37675
|
+
style: `--marker-font-family: ${f3 ?? "initial"}`
|
|
37676
|
+
}, m = N.mergeAttributes(p3, h3), g = z.node(a, a + s.nodeSize, m);
|
|
37677
|
+
o.push(g);
|
|
37678
|
+
}), o;
|
|
37677
37679
|
}
|
|
37678
37680
|
function ol$1(t) {
|
|
37679
37681
|
let { doc: e } = t, n = [], r = Ls(e, (o) => o.type.name === "listItem");
|
|
@@ -68442,7 +68444,7 @@ ${style2}
|
|
|
68442
68444
|
this.config.colors = shuffleArray(this.config.colors);
|
|
68443
68445
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
68444
68446
|
this.colorIndex = 0;
|
|
68445
|
-
this.version = "0.9.
|
|
68447
|
+
this.version = "0.9.25";
|
|
68446
68448
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
68447
68449
|
this.superdocId = config.superdocId || v4();
|
|
68448
68450
|
this.colors = this.config.colors;
|