@harbour-enterprises/superdoc 0.9.18 → 0.9.19
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-BEkxhYsI.es.js → super-editor.es-BFboWKJF.es.js} +12 -8
- package/dist/chunks/{super-editor.es-DQccY-AY.cjs → super-editor.es-Ci4hKlxU.cjs} +3 -3
- package/dist/super-editor/chunks/{converter-D7tzBwl8.js → converter-Tt5zM06f.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-EBPLD6L4.js → docx-zipper-D7PDrqbo.js} +1 -1
- package/dist/super-editor/chunks/{editor-C3yIzIxA.js → editor-D0ZPyah6.js} +4 -3
- package/dist/super-editor/chunks/{toolbar-DXgM92D5.js → toolbar-CD1usebH.js} +2 -2
- package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts +2 -0
- package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/Editor.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/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +106 -103
- 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 +135 -131
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -16063,7 +16063,7 @@ const us = class l1 {
|
|
|
16063
16063
|
return;
|
|
16064
16064
|
}
|
|
16065
16065
|
}
|
|
16066
|
-
static updateDocumentVersion(e = this.convertedXml, n = "0.9.
|
|
16066
|
+
static updateDocumentVersion(e = this.convertedXml, n = "0.9.19") {
|
|
16067
16067
|
const r = "docProps/custom.xml";
|
|
16068
16068
|
e[r] || (e[r] = c1());
|
|
16069
16069
|
const o = e["docProps/custom.xml"];
|
|
@@ -16288,7 +16288,7 @@ function BT(t) {
|
|
|
16288
16288
|
function c1() {
|
|
16289
16289
|
return $E;
|
|
16290
16290
|
}
|
|
16291
|
-
function u1(t = 2, e = "0.9.
|
|
16291
|
+
function u1(t = 2, e = "0.9.19") {
|
|
16292
16292
|
return {
|
|
16293
16293
|
type: "element",
|
|
16294
16294
|
name: "property",
|
|
@@ -28579,6 +28579,7 @@ const S_ = class ox extends x5 {
|
|
|
28579
28579
|
});
|
|
28580
28580
|
}
|
|
28581
28581
|
getMaxContentSize() {
|
|
28582
|
+
if (!this.converter) return {};
|
|
28582
28583
|
const { pageSize: e = {}, pageMargins: n = {} } = this.converter.pageStyles ?? {}, { width: r, height: o } = e, { top: i = 0, bottom: s = 0, left: a = 0, right: l = 0 } = n;
|
|
28583
28584
|
if (!r || !o) return {};
|
|
28584
28585
|
const c = o * 96 - i * 96 - s * 96 - 50;
|
|
@@ -28727,7 +28728,7 @@ const S_ = class ox extends x5 {
|
|
|
28727
28728
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
28728
28729
|
*/
|
|
28729
28730
|
processCollaborationMigrations() {
|
|
28730
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.
|
|
28731
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.19"), !this.options.ydoc) return;
|
|
28731
28732
|
let e = this.options.ydoc.getMap("meta").get("version");
|
|
28732
28733
|
e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
|
|
28733
28734
|
const n = Gy(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
|
|
@@ -45397,7 +45398,6 @@ const Je = (t) => {
|
|
|
45397
45398
|
// toggleTrackChangesOriginal,
|
|
45398
45399
|
// toggleTrackChangesFinal,
|
|
45399
45400
|
H,
|
|
45400
|
-
l,
|
|
45401
45401
|
s,
|
|
45402
45402
|
l,
|
|
45403
45403
|
a,
|
|
@@ -45430,8 +45430,10 @@ const Je = (t) => {
|
|
|
45430
45430
|
// search,
|
|
45431
45431
|
];
|
|
45432
45432
|
if (n <= R.md && (L = L.filter((le) => le.type !== "separator")), t.config.pagination || (L = L.filter((le) => le.name.value !== "pageBreakTool")), t.config.mode !== "docx") {
|
|
45433
|
-
const le = L.findIndex((
|
|
45434
|
-
L.splice(le - 1, 2)
|
|
45433
|
+
const le = L.findIndex((be) => be.name.value === "linkedStyles");
|
|
45434
|
+
L.splice(le - 1, 2);
|
|
45435
|
+
const ue = ["ruler", "zoom", "undo", "redo"];
|
|
45436
|
+
L = L.filter((be) => !ue.includes(be.name.value));
|
|
45435
45437
|
}
|
|
45436
45438
|
const B = [se, J, fe];
|
|
45437
45439
|
e || (r === "viewer" && B.push(K, ce), L = L.filter((le) => !B.includes(le)));
|
|
@@ -45550,7 +45552,9 @@ class DU extends xj {
|
|
|
45550
45552
|
pagination: !1,
|
|
45551
45553
|
icons: { ...vn },
|
|
45552
45554
|
mode: "docx",
|
|
45553
|
-
excludeItems: []
|
|
45555
|
+
excludeItems: [],
|
|
45556
|
+
groups: null,
|
|
45557
|
+
editor: null
|
|
45554
45558
|
}), rb(this, gs, {
|
|
45555
45559
|
setZoom: ({ item: r, argument: o }) => {
|
|
45556
45560
|
if (!o) return;
|
|
@@ -45635,7 +45639,7 @@ class DU extends xj {
|
|
|
45635
45639
|
}
|
|
45636
45640
|
}), nb(this, "onToolbarResize", () => {
|
|
45637
45641
|
mn(this, Yt, Jf).call(this, this, this.config.icons, this.isDev), this.role === "viewer" && mn(this, Yt, Xf).call(this);
|
|
45638
|
-
}), this.config = { ...this.config, ...e }, this.toolbarItems = [], this.overflowItems = [], this.documentMode = e.documentMode || "editing", this.isDev = e.isDev || !1, this.superdoc = e.superdoc, this.role = e.role || "editor", this.config.icons = {
|
|
45642
|
+
}), this.config = { ...this.config, ...e }, this.toolbarItems = [], this.overflowItems = [], this.documentMode = e.documentMode || "editing", this.isDev = e.isDev || !1, this.superdoc = e.superdoc, this.role = e.role || "editor", this.config.editor && (this.config.mode = this.config.editor.options.mode), this.config.icons = {
|
|
45639
45643
|
...vn,
|
|
45640
45644
|
...e.icons
|
|
45641
45645
|
}, !this.config.selector && this.config.element && (this.config.selector = this.config.element), mn(this, Yt, V3).call(this), mn(this, Yt, Jf).call(this, this, this.config.icons, e.isDev);
|