@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.
- package/dist/chunks/{super-editor.es-BYQUwXzm.es.js → super-editor.es-BIK-8ouX.es.js} +7 -7
- package/dist/chunks/{super-editor.es-Dv9_xwE3.cjs → super-editor.es-CvbHDMLc.cjs} +3 -3
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-Da9SVJB1.js → converter-BvdaXwuX.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-BaVRAeT-.js → docx-zipper-Dd22cL7M.js} +1 -1
- package/dist/super-editor/chunks/{editor-C-OrZnnH.js → editor-CLxKVVZn.js} +7 -7
- package/dist/super-editor/chunks/{toolbar-ofl_qv42.js → toolbar-BpiMk6d5.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/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 +8 -8
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -16703,7 +16703,7 @@ const gs = class q1 {
|
|
|
16703
16703
|
return;
|
|
16704
16704
|
}
|
|
16705
16705
|
}
|
|
16706
|
-
static updateDocumentVersion(e = this.convertedXml, n = "0.11.
|
|
16706
|
+
static updateDocumentVersion(e = this.convertedXml, n = "0.11.27") {
|
|
16707
16707
|
const r = "docProps/custom.xml";
|
|
16708
16708
|
e[r] || (e[r] = U1());
|
|
16709
16709
|
const o = e["docProps/custom.xml"];
|
|
@@ -16966,7 +16966,7 @@ function Q$(t) {
|
|
|
16966
16966
|
function U1() {
|
|
16967
16967
|
return x4;
|
|
16968
16968
|
}
|
|
16969
|
-
function H1(t = 2, e = "0.11.
|
|
16969
|
+
function H1(t = 2, e = "0.11.27") {
|
|
16970
16970
|
return {
|
|
16971
16971
|
type: "element",
|
|
16972
16972
|
name: "property",
|
|
@@ -27749,11 +27749,11 @@ const QD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
27749
27749
|
}, n_ = (t, e, n, r = {}) => (o) => {
|
|
27750
27750
|
const { editor: i, tr: s, state: a, dispatch: l, chain: c, can: u, commands: d } = o, { extensions: p, splittableMarks: f } = i.extensionService, h = kt(t, a.schema), m = kt(e, a.schema), { selection: y, storedMarks: g } = a, { $from: v, $to: x } = y, w = v.blockRange(x), A = g || y.$to.parentOffset && y.$from.marks();
|
|
27751
27751
|
if (!w) return !1;
|
|
27752
|
-
const M = dn((V) => Dp(V.type.name, p))(y),
|
|
27752
|
+
const M = dn((V) => Dp(V.type.name, p))(y), O = i.converter?.numbering ?? null;
|
|
27753
27753
|
if (w.depth >= 1 && M && w.depth - M.depth <= 1) {
|
|
27754
27754
|
if (M.node.type === h) {
|
|
27755
27755
|
const { listId: V } = M.node.attrs;
|
|
27756
|
-
return i.converter.numbering = o_(V, O), d.liftListItem(m);
|
|
27756
|
+
return i.converter && (i.converter.numbering = o_(V, O)), d.liftListItem(m);
|
|
27757
27757
|
}
|
|
27758
27758
|
if (Dp(M.node.type.name, p) && h.validContent(M.node.content) && l)
|
|
27759
27759
|
return c().command(() => (s.setNodeMarkup(M.pos, h), !0)).command(() => id(s, h)).command(() => sd(s, h)).run();
|
|
@@ -27765,8 +27765,8 @@ const QD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
27765
27765
|
s.ensureMarks(_);
|
|
27766
27766
|
}
|
|
27767
27767
|
return Y ? !0 : d.clearNodes();
|
|
27768
|
-
}, S = vx(O.definitions);
|
|
27769
|
-
return i.converter.numbering = r_(S, O, h), r.listId = S, !n || !A || !l ? c().command(N({ ensureMarks: !1 })).wrapInList(h, r).command(() => id(s, h)).command(() => sd(s, h)).run() : c().command(N({ ensureMarks: !0 })).wrapInList(h, r).command(() => id(s, h)).command(() => sd(s, h)).run();
|
|
27768
|
+
}, S = O?.definitions ? vx(O.definitions) : null;
|
|
27769
|
+
return i.converter && (i.converter.numbering = r_(S, O, h)), r.listId = S, !n || !A || !l ? c().command(N({ ensureMarks: !1 })).wrapInList(h, r).command(() => id(s, h)).command(() => sd(s, h)).run() : c().command(N({ ensureMarks: !0 })).wrapInList(h, r).command(() => id(s, h)).command(() => sd(s, h)).run();
|
|
27770
27770
|
}, vx = (t) => Math.max(...Object.keys(t).map(Number)) + 1, r_ = (t, e, n) => {
|
|
27771
27771
|
const r = n.name === "orderedList" ? e_ : t_, o = { ...e }, i = vx(o.abstracts), s = {
|
|
27772
27772
|
...r,
|
|
@@ -29499,7 +29499,7 @@ const q_ = class jx extends NM {
|
|
|
29499
29499
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
29500
29500
|
*/
|
|
29501
29501
|
processCollaborationMigrations() {
|
|
29502
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
29502
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.27"), !this.options.ydoc) return;
|
|
29503
29503
|
let e = this.options.ydoc.getMap("meta").get("version");
|
|
29504
29504
|
e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
|
|
29505
29505
|
const n = f0(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
|