@harbour-enterprises/superdoc 0.11.23 → 0.11.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-CBrrSyRJ.es.js → super-editor.es-BYQUwXzm.es.js} +1972 -1974
- package/dist/chunks/{super-editor.es-nSRiLBHJ.cjs → super-editor.es-Dv9_xwE3.cjs} +63 -63
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-6jOM9NGa.js → converter-Da9SVJB1.js} +769 -771
- package/dist/super-editor/chunks/{docx-zipper-DwjtCKZi.js → docx-zipper-BaVRAeT-.js} +1 -1
- package/dist/super-editor/chunks/{editor-CaLOL3Ro.js → editor-C-OrZnnH.js} +41 -41
- package/dist/super-editor/chunks/{toolbar-1v68uuSI.js → toolbar-ofl_qv42.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.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/table/table.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 +920 -922
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-
|
|
1
|
+
import { p as Tt, a0 as wt, B as ut, a1 as Bt, a2 as Rt } from "./converter-Da9SVJB1.js";
|
|
2
2
|
function kt(bt) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + bt + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -7,9 +7,9 @@ var L = (t, e, n) => Ff(t, typeof e != "symbol" ? e + "" : e, n), Zi = (t, e, n)
|
|
|
7
7
|
var Qe = (t, e, n) => (Zi(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? ca("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Qi = (t, e, n, r) => (Zi(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), E = (t, e, n) => (Zi(t, e, "access private method"), n);
|
|
8
8
|
import * as N from "yjs";
|
|
9
9
|
import { UndoManager as Bf, Item as zf, ContentType as _f, Text as $f, XmlElement as Vf } from "yjs";
|
|
10
|
-
import { P as X, a as J, M as fr, c as Y, N as _, S as ee, T as j, b as W, D as Hn, F as T, d as rn, e as Hf, f as hc, A as Nr, p as ie, B as jf, i as Wf, g as mc, h as Uf, j as wt, l as Er, k as jt, m as gc, r as yc, R as ln, o as pr, n as da, q as Vt, s as No, t as bc, u as qf, v as Kf, w as de, x as Ve, y as Pr, z as xn, C as xi, E as Xf, G as Se, H as di, I as wc, J as Sn, K as eo, L as to, O as no, Q as ui, U as Rt, V as _i, W as Jf, X as ua, Y as fa, Z as Yf, _ as Gf, $ as Zf } from "./converter-
|
|
10
|
+
import { P as X, a as J, M as fr, c as Y, N as _, S as ee, T as j, b as W, D as Hn, F as T, d as rn, e as Hf, f as hc, A as Nr, p as ie, B as jf, i as Wf, g as mc, h as Uf, j as wt, l as Er, k as jt, m as gc, r as yc, R as ln, o as pr, n as da, q as Vt, s as No, t as bc, u as qf, v as Kf, w as de, x as Ve, y as Pr, z as xn, C as xi, E as Xf, G as Se, H as di, I as wc, J as Sn, K as eo, L as to, O as no, Q as ui, U as Rt, V as _i, W as Jf, X as ua, Y as fa, Z as Yf, _ as Gf, $ as Zf } from "./converter-Da9SVJB1.js";
|
|
11
11
|
import { ref as pa, computed as Qf, createElementBlock as Xt, openBlock as Jt, withModifiers as ro, Fragment as ep, renderList as tp, normalizeClass as np, createCommentVNode as ha, toDisplayString as io, createElementVNode as rp, createApp as ip } from "vue";
|
|
12
|
-
import { D as ma } from "./docx-zipper-
|
|
12
|
+
import { D as ma } from "./docx-zipper-BaVRAeT-.js";
|
|
13
13
|
function $i(t) {
|
|
14
14
|
const { from: e, to: n, empty: r } = t.selection, i = [];
|
|
15
15
|
return r ? (t.storedMarks && i.push(...t.storedMarks), i.push(...t.selection.$head.marks())) : t.doc.nodesBetween(e, n, (o) => {
|
|
@@ -5681,7 +5681,7 @@ function _s(t) {
|
|
|
5681
5681
|
return !1;
|
|
5682
5682
|
};
|
|
5683
5683
|
}
|
|
5684
|
-
function
|
|
5684
|
+
function ae(t, e) {
|
|
5685
5685
|
if (typeof t == "string") {
|
|
5686
5686
|
if (!e.nodes[t])
|
|
5687
5687
|
throw Error(`There is no node type named '${t}' in schema.`);
|
|
@@ -5808,7 +5808,7 @@ class D {
|
|
|
5808
5808
|
* @returns The node attrs.
|
|
5809
5809
|
*/
|
|
5810
5810
|
static getNodeAttributes(e, n) {
|
|
5811
|
-
const r =
|
|
5811
|
+
const r = ae(n, e.schema), { from: i, to: o } = e.selection, s = [];
|
|
5812
5812
|
e.doc.nodesBetween(i, o, (l) => {
|
|
5813
5813
|
s.push(l);
|
|
5814
5814
|
});
|
|
@@ -6374,7 +6374,7 @@ const An = class An {
|
|
|
6374
6374
|
options: i.options,
|
|
6375
6375
|
storage: i.storage,
|
|
6376
6376
|
editor: e,
|
|
6377
|
-
type:
|
|
6377
|
+
type: ae(i.name, this.schema)
|
|
6378
6378
|
}, a = I(i, "addNodeView", s);
|
|
6379
6379
|
if (!a) return [];
|
|
6380
6380
|
const l = (c, d, u, f) => {
|
|
@@ -6901,11 +6901,11 @@ const xy = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
|
|
|
6901
6901
|
});
|
|
6902
6902
|
}), !0;
|
|
6903
6903
|
}, My = (t, e = {}) => ({ state: n, dispatch: r, chain: i }) => {
|
|
6904
|
-
const o =
|
|
6904
|
+
const o = ae(t, n.schema);
|
|
6905
6905
|
return o.isTextblock ? i().command(({ commands: s }) => sl(o, e)(n) ? !0 : s.clearNodes()).command(({ state: s }) => sl(o, e)(s, r)).run() : !1;
|
|
6906
6906
|
};
|
|
6907
6907
|
function Ri(t, e, n = {}) {
|
|
6908
|
-
const { from: r, to: i, empty: o } = t.selection, s = e ?
|
|
6908
|
+
const { from: r, to: i, empty: o } = t.selection, s = e ? ae(e, t.schema) : null, a = [];
|
|
6909
6909
|
t.doc.nodesBetween(r, i, (u, f) => {
|
|
6910
6910
|
if (u.isText) return;
|
|
6911
6911
|
const p = Math.max(r, f), h = Math.min(i, f + u.nodeSize);
|
|
@@ -6919,7 +6919,7 @@ function Ri(t, e, n = {}) {
|
|
|
6919
6919
|
return o ? !!c.length : c.reduce((u, f) => u + f.to - f.from, 0) >= l;
|
|
6920
6920
|
}
|
|
6921
6921
|
const Cy = (t, e, n = {}) => ({ state: r, commands: i }) => {
|
|
6922
|
-
const o =
|
|
6922
|
+
const o = ae(t, r.schema), s = ae(e, r.schema);
|
|
6923
6923
|
return Ri(r, o, n) ? i.setNode(s) : i.setNode(o, n);
|
|
6924
6924
|
}, Ay = () => ({ state: t, dispatch: e }) => ly(t, e), Oy = () => ({ state: t, dispatch: e }) => Vs(t, e), Ty = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
6925
6925
|
let o = null, s = null;
|
|
@@ -6927,7 +6927,7 @@ const Cy = (t, e, n = {}) => ({ state: r, commands: i }) => {
|
|
|
6927
6927
|
typeof t == "string" ? t : t.name,
|
|
6928
6928
|
r.schema
|
|
6929
6929
|
);
|
|
6930
|
-
return a ? (a === "node" && (o =
|
|
6930
|
+
return a ? (a === "node" && (o = ae(t, r.schema)), a === "mark" && (s = St(t, r.schema)), i && n.selection.ranges.forEach((l) => {
|
|
6931
6931
|
const c = l.$from.pos, d = l.$to.pos;
|
|
6932
6932
|
r.doc.nodesBetween(c, d, (u, f) => {
|
|
6933
6933
|
o && o === u.type && n.setNodeMarkup(f, void 0, { ...u.attrs, ...e }), s && u.marks.length && u.marks.forEach((p) => {
|
|
@@ -6944,7 +6944,7 @@ const Cy = (t, e, n = {}) => ({ state: r, commands: i }) => {
|
|
|
6944
6944
|
typeof t == "string" ? t : t.name,
|
|
6945
6945
|
r.schema
|
|
6946
6946
|
);
|
|
6947
|
-
return a ? (a === "node" && (o =
|
|
6947
|
+
return a ? (a === "node" && (o = ae(t, r.schema)), a === "mark" && (s = St(t, r.schema)), i && n.selection.ranges.forEach((l) => {
|
|
6948
6948
|
r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, d) => {
|
|
6949
6949
|
o && o === c.type && n.setNodeMarkup(d, void 0, da(c.attrs, e)), s && c.marks.length && c.marks.forEach((u) => {
|
|
6950
6950
|
s === u.type && n.addMark(d, d + c.nodeSize, s.create(da(u.attrs, e)));
|
|
@@ -7165,7 +7165,7 @@ function Jy(t) {
|
|
|
7165
7165
|
};
|
|
7166
7166
|
}
|
|
7167
7167
|
const Yy = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
7168
|
-
const i =
|
|
7168
|
+
const i = ae(t, n.schema);
|
|
7169
7169
|
return jy(i, e)(n, r);
|
|
7170
7170
|
}, Ki = (t, e) => {
|
|
7171
7171
|
for (let n = t.depth; n > 0; n--) {
|
|
@@ -8345,7 +8345,7 @@ const Yy = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
8345
8345
|
const i = t.doc.nodeAt(r);
|
|
8346
8346
|
return n.node.type === i?.type && jt(t.doc, r) && t.join(r), !0;
|
|
8347
8347
|
}, Qy = (t, e, n, r = {}) => (i) => {
|
|
8348
|
-
const { editor: o, tr: s, state: a, dispatch: l, chain: c, can: d, commands: u } = i, { extensions: f, splittableMarks: p } = o.extensionService, h =
|
|
8348
|
+
const { editor: o, tr: s, state: a, dispatch: l, chain: c, can: d, commands: u } = i, { extensions: f, splittableMarks: p } = o.extensionService, h = ae(t, a.schema), m = ae(e, a.schema), { selection: g, storedMarks: b } = a, { $from: w, $to: x } = g, y = w.blockRange(x), S = b || g.$to.parentOffset && g.$from.marks();
|
|
8349
8349
|
if (!y) return !1;
|
|
8350
8350
|
const k = je((V) => es(V.type.name, f))(g), { numbering: C } = o.converter;
|
|
8351
8351
|
if (y.depth >= 1 && k && y.depth - k.depth <= 1) {
|
|
@@ -8390,7 +8390,7 @@ const Yy = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
8390
8390
|
const { definitions: n, abstracts: r } = e, i = n[t].elements[0].attributes["w:val"];
|
|
8391
8391
|
return delete n[t], delete r[i], e;
|
|
8392
8392
|
}, nb = (t) => (e) => {
|
|
8393
|
-
const { tr: n, state: r, dispatch: i, editor: o } = e, s =
|
|
8393
|
+
const { tr: n, state: r, dispatch: i, editor: o } = e, s = ae(t, r.schema), { $from: a, $to: l, node: c } = r.selection;
|
|
8394
8394
|
if (c && c.isBlock || a.depth < 2 || !a.sameParent(l))
|
|
8395
8395
|
return !1;
|
|
8396
8396
|
const d = a.node(-1);
|
|
@@ -8442,10 +8442,10 @@ const Yy = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
8442
8442
|
}
|
|
8443
8443
|
return !0;
|
|
8444
8444
|
}, rb = (t) => ({ state: e, dispatch: n }) => {
|
|
8445
|
-
const r =
|
|
8445
|
+
const r = ae(t, e.schema);
|
|
8446
8446
|
return Jy(r)(e, n);
|
|
8447
8447
|
}, ib = (t) => ({ state: e, dispatch: n }) => {
|
|
8448
|
-
const r =
|
|
8448
|
+
const r = ae(t, e.schema);
|
|
8449
8449
|
return qy(r)(e, n);
|
|
8450
8450
|
}, ob = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8451
8451
|
__proto__: null,
|
|
@@ -8777,7 +8777,7 @@ const Hd = (t) => {
|
|
|
8777
8777
|
getMarkType: St,
|
|
8778
8778
|
getMarksBetween: fb,
|
|
8779
8779
|
getMarksFromSelection: $i,
|
|
8780
|
-
getNodeType:
|
|
8780
|
+
getNodeType: ae,
|
|
8781
8781
|
getSchemaTypeByName: Zn,
|
|
8782
8782
|
getSchemaTypeNameByName: Fr,
|
|
8783
8783
|
isActive: zd,
|
|
@@ -10107,7 +10107,7 @@ const aa = class aa extends Rg {
|
|
|
10107
10107
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
10108
10108
|
*/
|
|
10109
10109
|
processCollaborationMigrations() {
|
|
10110
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
10110
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.25"), !this.options.ydoc) return;
|
|
10111
10111
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
10112
10112
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
10113
10113
|
const i = fl(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
|
|
@@ -11523,13 +11523,13 @@ function u0(t) {
|
|
|
11523
11523
|
Array.isArray(w.listLevel) || (w.listLevel = JSON.parse(w.listLevel));
|
|
11524
11524
|
let V = [...w.listLevel.slice(0, -1), w.listLevel.at(-1) + 1];
|
|
11525
11525
|
if (!(R === w.lvlText && $ === w.listNumberingType && hl(M, V))) {
|
|
11526
|
-
let { selection: H, storedMarks: oe } = r,
|
|
11526
|
+
let { selection: H, storedMarks: oe } = r, le = oe || H.$to.parentOffset && H.$from.marks();
|
|
11527
11527
|
s.setNodeMarkup(C, void 0, {
|
|
11528
11528
|
...k.attrs,
|
|
11529
11529
|
listLevel: V,
|
|
11530
11530
|
lvlText: w.lvlText,
|
|
11531
11531
|
listNumberingType: w.listNumberingType
|
|
11532
|
-
}),
|
|
11532
|
+
}), le && s.ensureMarks(le), l = !0;
|
|
11533
11533
|
}
|
|
11534
11534
|
w = {
|
|
11535
11535
|
...w,
|
|
@@ -12629,10 +12629,10 @@ const Ml = (t, e = null) => e ? t.createChecked(null, e) : t.createAndFill(), Tu
|
|
|
12629
12629
|
insideV: { size: t, color: e }
|
|
12630
12630
|
}), W0 = (t, e, n, r, i = null) => {
|
|
12631
12631
|
const o = {
|
|
12632
|
-
table:
|
|
12633
|
-
tableRow:
|
|
12634
|
-
tableCell:
|
|
12635
|
-
tableHeader:
|
|
12632
|
+
table: ae("table", t),
|
|
12633
|
+
tableRow: ae("tableRow", t),
|
|
12634
|
+
tableCell: ae("tableCell", t),
|
|
12635
|
+
tableHeader: ae("tableHeader", t)
|
|
12636
12636
|
}, s = [], a = [];
|
|
12637
12637
|
for (let d = 0; d < n; d++) {
|
|
12638
12638
|
const u = Ml(o.tableCell, i);
|
|
@@ -14440,10 +14440,10 @@ const Hw = (t) => t instanceof G, oi = ({ editor: t }) => {
|
|
|
14440
14440
|
addCommands() {
|
|
14441
14441
|
return {
|
|
14442
14442
|
insertTable: ({ rows: t = 3, cols: e = 3, withHeaderRow: n = !1 } = {}) => ({ tr: r, dispatch: i, editor: o }) => {
|
|
14443
|
-
const s = W0(o.schema, t, e, n);
|
|
14443
|
+
const s = o.schema.text(""), a = ae("paragraph", o.schema).create(null, s), l = W0(o.schema, t, e, n, a);
|
|
14444
14444
|
if (i) {
|
|
14445
|
-
const
|
|
14446
|
-
r.replaceSelectionWith(
|
|
14445
|
+
const c = r.selection.from + 1;
|
|
14446
|
+
r.replaceSelectionWith(l).scrollIntoView().setSelection(j.near(r.doc.resolve(c)));
|
|
14447
14447
|
}
|
|
14448
14448
|
return !0;
|
|
14449
14449
|
},
|
|
@@ -17136,8 +17136,8 @@ function Ar(t, e) {
|
|
|
17136
17136
|
if (f === Gn && V) {
|
|
17137
17137
|
var z = V[i];
|
|
17138
17138
|
Object.keys($).forEach(function(H) {
|
|
17139
|
-
var oe = [qe, Ue].indexOf(H) >= 0 ? 1 : -1,
|
|
17140
|
-
$[H] += z[
|
|
17139
|
+
var oe = [qe, Ue].indexOf(H) >= 0 ? 1 : -1, le = [Ne, Ue].indexOf(H) >= 0 ? "y" : "x";
|
|
17140
|
+
$[H] += z[le] * oe;
|
|
17141
17141
|
});
|
|
17142
17142
|
}
|
|
17143
17143
|
return $;
|
|
@@ -17181,14 +17181,14 @@ function lk(t) {
|
|
|
17181
17181
|
allowedAutoPlacements: m
|
|
17182
17182
|
}) : Pe);
|
|
17183
17183
|
}, []), S = e.rects.reference, k = e.rects.popper, C = /* @__PURE__ */ new Map(), R = !0, M = y[0], $ = 0; $ < y.length; $++) {
|
|
17184
|
-
var V = y[$], z = ot(V), H = Bn(V) === Rn, oe = [Ne, Ue].indexOf(z) >= 0,
|
|
17184
|
+
var V = y[$], z = ot(V), H = Bn(V) === Rn, oe = [Ne, Ue].indexOf(z) >= 0, le = oe ? "width" : "height", fe = Ar(e, {
|
|
17185
17185
|
placement: V,
|
|
17186
17186
|
boundary: d,
|
|
17187
17187
|
rootBoundary: u,
|
|
17188
17188
|
altBoundary: f,
|
|
17189
17189
|
padding: c
|
|
17190
17190
|
}), se = oe ? H ? qe : Ee : H ? Ue : Ne;
|
|
17191
|
-
S[
|
|
17191
|
+
S[le] > k[le] && (se = ki(se));
|
|
17192
17192
|
var Q = ki(se), pe = [];
|
|
17193
17193
|
if (o && pe.push(fe[z] <= 0), a && pe.push(fe[se] <= 0, fe[Q] <= 0), pe.every(function(Ke) {
|
|
17194
17194
|
return Ke;
|
|
@@ -17328,10 +17328,10 @@ function bk(t) {
|
|
|
17328
17328
|
};
|
|
17329
17329
|
if (k) {
|
|
17330
17330
|
if (o) {
|
|
17331
|
-
var H, oe = y === "y" ? Ne : Ee,
|
|
17331
|
+
var H, oe = y === "y" ? Ne : Ee, le = y === "y" ? Ue : qe, fe = y === "y" ? "height" : "width", se = k[y], Q = se + g[oe], pe = se - g[le], he = p ? -R[fe] / 2 : 0, Te = w === Rn ? C[fe] : R[fe], Be = w === Rn ? -R[fe] : -C[fe], dt = e.elements.arrow, Ke = p && dt ? ta(dt) : {
|
|
17332
17332
|
width: 0,
|
|
17333
17333
|
height: 0
|
|
17334
|
-
}, Pe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : uf(), Xe = Pe[oe], Mt = Pe[
|
|
17334
|
+
}, Pe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : uf(), Xe = Pe[oe], Mt = Pe[le], Je = ar(0, C[fe], Ke[fe]), pn = x ? C[fe] / 2 - he - Je - Xe - $.mainAxis : Te - Je - Xe - $.mainAxis, Ct = x ? -C[fe] / 2 + he + Je + Mt + $.mainAxis : Be + Je + Mt + $.mainAxis, hn = e.elements.arrow && zr(e.elements.arrow), $r = hn ? y === "y" ? hn.clientTop || 0 : hn.clientLeft || 0 : 0, Wn = (H = V?.[y]) != null ? H : 0, Vr = se + pn - Wn - $r, Hr = se + Ct - Wn, Un = ar(p ? Bi(Q, Vr) : Q, se, p ? an(pe, Hr) : pe);
|
|
17335
17335
|
k[y] = Un, z[y] = Un - se;
|
|
17336
17336
|
}
|
|
17337
17337
|
if (a) {
|
|
@@ -17965,7 +17965,7 @@ function ix(t, e) {
|
|
|
17965
17965
|
var v = H().parentNode;
|
|
17966
17966
|
return v ? Hk(v) : document;
|
|
17967
17967
|
}
|
|
17968
|
-
function
|
|
17968
|
+
function le() {
|
|
17969
17969
|
return Cs(k);
|
|
17970
17970
|
}
|
|
17971
17971
|
function fe(v) {
|
|
@@ -18050,7 +18050,7 @@ function ix(t, e) {
|
|
|
18050
18050
|
pn(v, O);
|
|
18051
18051
|
}
|
|
18052
18052
|
function pn(v, O) {
|
|
18053
|
-
var F =
|
|
18053
|
+
var F = le().box;
|
|
18054
18054
|
function K(U) {
|
|
18055
18055
|
U.target === F && (Co(F, "remove", K), O());
|
|
18056
18056
|
}
|
|
@@ -18148,7 +18148,7 @@ function ix(t, e) {
|
|
|
18148
18148
|
fn: function(Jr) {
|
|
18149
18149
|
var gn = Jr.state;
|
|
18150
18150
|
if (z()) {
|
|
18151
|
-
var Rf =
|
|
18151
|
+
var Rf = le(), Gi = Rf.box;
|
|
18152
18152
|
["placement", "reference-hidden", "escaped"].forEach(function(Yr) {
|
|
18153
18153
|
Yr === "placement" ? Gi.setAttribute("data-placement", gn.placement) : gn.attributes.popper["data-popper-" + Yr] ? Gi.setAttribute("data-" + Yr, "") : Gi.removeAttribute("data-" + Yr);
|
|
18154
18154
|
}), gn.attributes.popper = {};
|
|
@@ -18261,14 +18261,14 @@ function ix(t, e) {
|
|
|
18261
18261
|
var v = y.state.isVisible, O = y.state.isDestroyed, F = !y.state.isEnabled, K = rt.isTouch && !y.props.touch, U = So(y.props.duration, 0, Re.duration);
|
|
18262
18262
|
if (!(v || O || F || K) && !H().hasAttribute("disabled") && (Q("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
18263
18263
|
if (y.state.isVisible = !0, z() && (k.style.visibility = "visible"), se(), Pe(), y.state.isMounted || (k.style.transition = "none"), z()) {
|
|
18264
|
-
var xe =
|
|
18264
|
+
var xe = le(), ze = xe.box, mn = xe.content;
|
|
18265
18265
|
Mo([ze, mn], 0);
|
|
18266
18266
|
}
|
|
18267
18267
|
f = function() {
|
|
18268
18268
|
var Kt;
|
|
18269
18269
|
if (!(!y.state.isVisible || c)) {
|
|
18270
18270
|
if (c = !0, k.offsetHeight, k.style.transition = y.props.moveTransition, z() && y.props.animation) {
|
|
18271
|
-
var Yi =
|
|
18271
|
+
var Yi = le(), Jr = Yi.box, gn = Yi.content;
|
|
18272
18272
|
Mo([Jr, gn], U), tc([Jr, gn], "visible");
|
|
18273
18273
|
}
|
|
18274
18274
|
pe(), he(), Ql(Ao, y), (Kt = y.popperInstance) == null || Kt.forceUpdate(), Q("onMount", [y]), y.props.animation && z() && Je(U, function() {
|
|
@@ -18283,7 +18283,7 @@ function ix(t, e) {
|
|
|
18283
18283
|
var v = !y.state.isVisible, O = y.state.isDestroyed, F = !y.state.isEnabled, K = So(y.props.duration, 1, Re.duration);
|
|
18284
18284
|
if (!(v || O || F) && (Q("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
18285
18285
|
if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, s = !1, z() && (k.style.visibility = "hidden"), Te(), Xe(), se(!0), z()) {
|
|
18286
|
-
var U =
|
|
18286
|
+
var U = le(), xe = U.box, ze = U.content;
|
|
18287
18287
|
y.props.animation && (Mo([xe, ze], K), tc([xe, ze], "hidden"));
|
|
18288
18288
|
}
|
|
18289
18289
|
pe(), he(), y.props.animation ? z() && Mt(K, y.unmount) : y.unmount();
|
|
@@ -18660,8 +18660,8 @@ function wx(t, e, n, r) {
|
|
|
18660
18660
|
t.descendants(($, V) => {
|
|
18661
18661
|
let z = $, H = V;
|
|
18662
18662
|
if (b = e?.coordsAtPos(H), !b) return;
|
|
18663
|
-
let oe = b.bottom > c,
|
|
18664
|
-
if (z.attrs?.pageBreakSource === "sectPr" && (t.nodeAt(H + z.nodeSize)?.attrs?.pageBreakSource === "sectPr" || (
|
|
18663
|
+
let oe = b.bottom > c, le = z.type.name === "hardBreak";
|
|
18664
|
+
if (z.attrs?.pageBreakSource === "sectPr" && (t.nodeAt(H + z.nodeSize)?.attrs?.pageBreakSource === "sectPr" || (le = !0), l === 1)) {
|
|
18665
18665
|
const pe = Yt(l, "headerIds", n, z);
|
|
18666
18666
|
i.pop();
|
|
18667
18667
|
const he = li(s, o, r, pe), Te = ci({ editor: n, header: he, isFirstHeader: !0 });
|
|
@@ -18674,7 +18674,7 @@ function wx(t, e, n, r) {
|
|
|
18674
18674
|
(he || Te) && (oe = !0);
|
|
18675
18675
|
}
|
|
18676
18676
|
}
|
|
18677
|
-
if (
|
|
18677
|
+
if (le || oe) {
|
|
18678
18678
|
const se = e.state.doc.resolve(H), Q = Ki(se, (Je) => Je.type.name === "tableRow");
|
|
18679
18679
|
Q && (z = Q.node, H = Q.pos);
|
|
18680
18680
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as _, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as R, unref as W, createBlock as Ge, toDisplayString as Xn, withDirectives as ft, withKeys as Hr, withModifiers as jr, vModelText as Wr, getCurrentInstance as Lt, createVNode as ct, readonly as tn, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Us, onBeforeMount as fr, inject as te, onActivated as Gs, onDeactivated as oi, createTextVNode as ht, Fragment as _e, Comment as hr, defineComponent as ee, provide as Se, h as A, Teleport as Xs, toRef as se, nextTick as ii, renderSlot as qs, isVNode as Ys, shallowRef as Zs, watchEffect as pt, mergeProps as gt, Transition as nn, vShow as Js, cloneVNode as Qs, Text as el, renderList as tl, withCtx as xt } from "vue";
|
|
2
|
-
import { p as rn } from "./converter-
|
|
3
|
-
import { _ as mt, g as kt } from "./editor-
|
|
2
|
+
import { p as rn } from "./converter-Da9SVJB1.js";
|
|
3
|
+
import { _ as mt, g as kt } from "./editor-C-OrZnnH.js";
|
|
4
4
|
const I0 = (e, t) => {
|
|
5
5
|
let n = e.replace(/[^0-9.]/g, "");
|
|
6
6
|
return n = parseFloat(n), isNaN(n) && (n = t), n = parseFloat(n), n;
|
|
@@ -36,7 +36,7 @@ export function getDefaultStyleDefinition(defaultStyleId: string, docx: ParsedDo
|
|
|
36
36
|
* @param {XmlNode[]} nodes
|
|
37
37
|
* @returns
|
|
38
38
|
*/
|
|
39
|
-
export function preProcessNodesForFldChar(nodes
|
|
39
|
+
export function preProcessNodesForFldChar(nodes?: XmlNode[]): any[];
|
|
40
40
|
/**
|
|
41
41
|
* Special cases of w:p based on paragraph properties
|
|
42
42
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"AA0SA;;;GAGG;AACH,0DAHW,MAAM,QACN,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;EAuGpB;AAED;;;;;;GAMG;AACH,
|
|
1
|
+
{"version":3,"file":"paragraphNodeImporter.d.ts","sourceRoot":"","sources":["../../../../../src/core/super-converter/v2/importer/paragraphNodeImporter.js"],"names":[],"mappings":"AA0SA;;;GAGG;AACH,0DAHW,MAAM,QACN,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;EAuGpB;AAED;;;;;;GAMG;AACH,kDAHW,OAAO,EAAE,SA4CnB;AA9bD;;;;;;;GAOG;AACH,sCAqIE;AAEK;;;;;;EAwCN;AAEM;;;;;EAkDN;AAgDD;;GAEG;AACH,6CAGE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as m } from "./chunks/editor-
|
|
2
|
-
import "./chunks/converter-
|
|
3
|
-
import "./chunks/docx-zipper-
|
|
1
|
+
import { E as m } from "./chunks/editor-C-OrZnnH.js";
|
|
2
|
+
import "./chunks/converter-Da9SVJB1.js";
|
|
3
|
+
import "./chunks/docx-zipper-BaVRAeT-.js";
|
|
4
4
|
export {
|
|
5
5
|
m as Editor
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/extensions/table/table.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/extensions/table/table.js"],"names":[],"mappings":"AAqCA,wBAiUG"}
|
|
@@ -6,14 +6,14 @@ var bt = (t, l, o) => l in t ? yt(t, l, { enumerable: !0, configurable: !0, writ
|
|
|
6
6
|
var Re = (t, l, o) => bt(t, typeof l != "symbol" ? l + "" : l, o), qe = (t, l, o) => l.has(t) || Ue("Cannot " + o);
|
|
7
7
|
var Ae = (t, l, o) => (qe(t, l, "read from private field"), o ? o.call(t) : l.get(t)), Oe = (t, l, o) => l.has(t) ? Ue("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(t) : l.set(t, o);
|
|
8
8
|
var z = (t, l, o) => (qe(t, l, "access private method"), o);
|
|
9
|
-
import { _ as q, a as Ze, b as wt, I as Ne, f as kt, c as Ge, d as Ct, i as _t, u as xt, r as St, E as ze, e as Et, P as At, h as Tt, M as Ft, j as It, A as Lt, N as Mt } from "./chunks/editor-
|
|
10
|
-
import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor-
|
|
11
|
-
import { a1 as Dt, y as $t, a3 as Ht, T as Ye, a as Bt } from "./chunks/converter-
|
|
12
|
-
import { O as qo } from "./chunks/converter-
|
|
9
|
+
import { _ as q, a as Ze, b as wt, I as Ne, f as kt, c as Ge, d as Ct, i as _t, u as xt, r as St, E as ze, e as Et, P as At, h as Tt, M as Ft, j as It, A as Lt, N as Mt } from "./chunks/editor-C-OrZnnH.js";
|
|
10
|
+
import { C as No, T as zo, l as Vo, n as Wo, k as Po, m as jo } from "./chunks/editor-C-OrZnnH.js";
|
|
11
|
+
import { a1 as Dt, y as $t, a3 as Ht, T as Ye, a as Bt } from "./chunks/converter-Da9SVJB1.js";
|
|
12
|
+
import { O as qo } from "./chunks/converter-Da9SVJB1.js";
|
|
13
13
|
import { ref as f, createElementBlock as k, openBlock as w, createElementVNode as C, unref as D, getCurrentInstance as Rt, computed as j, watch as Ot, onMounted as Ce, createCommentVNode as Q, withDirectives as Je, withKeys as Qe, normalizeClass as oe, withModifiers as ge, vModelText as et, createTextVNode as tt, toDisplayString as ie, Fragment as U, renderList as ee, normalizeStyle as J, createVNode as P, h as B, createApp as Nt, reactive as Ke, onUnmounted as zt, shallowRef as nt, onBeforeUnmount as ot, createBlock as Vt } from "vue";
|
|
14
|
-
import { t as X, s as Wt, T as Pt, N as Y } from "./chunks/toolbar-
|
|
14
|
+
import { t as X, s as Wt, T as Pt, N as Y } from "./chunks/toolbar-ofl_qv42.js";
|
|
15
15
|
import jt from "./ai-writer.es.js";
|
|
16
|
-
import { D as Ko } from "./chunks/docx-zipper-
|
|
16
|
+
import { D as Ko } from "./chunks/docx-zipper-BaVRAeT-.js";
|
|
17
17
|
import { createZip as Zo } from "./file-zipper.es.js";
|
|
18
18
|
var it = { exports: {} };
|
|
19
19
|
(function(t) {
|
package/dist/super-editor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/super-editor.es-Dv9_xwE3.cjs");require("./chunks/vue-Ckf0DkDN.cjs");exports.AIWriter=e.me;exports.BasicUpload=e.$o;exports.CommentsPluginKey=e.ge;exports.DocxZipper=e.Nt;exports.Editor=e.ts;exports.Extensions=e.Bo;exports.SuperConverter=e.Ot;exports.SuperEditor=e.Do;exports.SuperInput=e.Ho;exports.SuperToolbar=e.Mo;exports.Toolbar=e.P0;exports.TrackChangesBasePluginKey=e.ce;exports.createZip=e.c;exports.fieldAnnotationHelpers=e.Hx;exports.getActiveFormatting=e.op;exports.getAllowedImageDimensions=e.mo;exports.getMarksFromSelection=e.$i;exports.getRichTextExtensions=e.Nx;exports.getStarterExtensions=e.Ex;exports.helpers=e.Ks;exports.trackChangesHelpers=e.Wx;
|
package/dist/super-editor.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as t, $ as r, g as o, N as i, t as n, B as p, O as g, D as l, H as c, M as m, P as u, c as d, a as x, b as E, o as S, d as h, e as A, f as C, E as T, K as b, W as f } from "./chunks/super-editor.es-
|
|
1
|
+
import { m as t, $ as r, g as o, N as i, t as n, B as p, O as g, D as l, H as c, M as m, P as u, c as d, a as x, b as E, o as S, d as h, e as A, f as C, E as T, K as b, W as f } from "./chunks/super-editor.es-BYQUwXzm.es.js";
|
|
2
2
|
import "./chunks/vue-DXpzqXur.es.js";
|
|
3
3
|
export {
|
|
4
4
|
t as AIWriter,
|