@harbour-enterprises/superdoc 0.11.5 → 0.11.7
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-La5qZHd6.cjs → super-editor.es-Bzb69A_2.cjs} +5 -5
- package/dist/chunks/{super-editor.es-oAo48rEf.es.js → super-editor.es-DJOHm_Af.es.js} +25 -17
- package/dist/core/SuperDoc.d.ts +1 -0
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-DI1zszVK.js → converter-CZzJR8Zm.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-C_TsLRgS.js → docx-zipper-B5g2wszk.js} +1 -1
- package/dist/super-editor/chunks/{editor-E6lPTE8Y.js → editor-BnNjq7dV.js} +24 -15
- package/dist/super-editor/chunks/{toolbar-DMEPLoM9.js → toolbar-CHnJpJgV.js} +2 -2
- package/dist/super-editor/components/toolbar/defaultItems.d.ts.map +1 -1
- 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/search/search.d.ts.map +1 -1
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +7 -8
- 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 +6 -3
- package/dist/superdoc.umd.js +29 -18
- 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 { T as md, g as yd, c as bd, Q as jo, h as Wo, H as wd, d as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-
|
|
2
|
-
import { P as Ib, A as Cb, U as fb } from "./chunks/super-editor.es-
|
|
1
|
+
import { T as md, g as yd, c as bd, Q as jo, h as Wo, H as wd, d as Sd, D as Dd, M as vd, a as Fd } from "./chunks/super-editor.es-DJOHm_Af.es.js";
|
|
2
|
+
import { P as Ib, A as Cb, U as fb } from "./chunks/super-editor.es-DJOHm_Af.es.js";
|
|
3
3
|
import { Y as Vl, r as W, Z as ui, p as Ge, _ as Vn, a as ae, $ as zn, a0 as ua, D as dt, i as ht, q as ji, l as wt, y as ke, a1 as kd, M as Zt, u as qt, a2 as xd, a3 as Rd, a4 as Xo, g as Ji, O as Us, N as jr, j as Ii, k as Di, h as da, U as Nd, s as Md, B as Wr, F as jt, R as GA, m as Ct, E as mi, H as ms, C as re, V as Ld, S as Gd, W as Td, L as qi, P as Es, G as ar, Q as Ud, K as Hd, T as Pd, b as ye, o as fe, t as yi, x as bi, z as zl, f as We, A as ri, e as Ze, v as hi, w as Qi, n as Xs, a5 as Zl, d as gn, c as $l, X as Od, a6 as Jd } from "./chunks/vue-B11Xj7yz.es.js";
|
|
4
4
|
import { B as qn } from "./chunks/jszip-Clbt_EEu.es.js";
|
|
5
5
|
import { B as Yd } from "./chunks/blank-docx-BRvkcuiv.es.js";
|
|
@@ -32694,7 +32694,7 @@ class hb extends eg {
|
|
|
32694
32694
|
this.config = {
|
|
32695
32695
|
...this.config,
|
|
32696
32696
|
...t
|
|
32697
|
-
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.
|
|
32697
|
+
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.11.7", console.debug("🦋 [superdoc] Using SuperDoc version:", this.version), this.superdocId = t.superdocId || ig(), this.colors = this.config.colors, this.#t(), await this.#r(this.config.modules), this.#i(), this.#s(), 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.#a(this);
|
|
32698
32698
|
}
|
|
32699
32699
|
get requiredNumberOfEditors() {
|
|
32700
32700
|
return this.superdocStore.documents.filter((t) => t.type === on).length;
|
|
@@ -32881,6 +32881,9 @@ class hb extends eg {
|
|
|
32881
32881
|
search(t) {
|
|
32882
32882
|
return this.activeEditor?.commands.search(t);
|
|
32883
32883
|
}
|
|
32884
|
+
goToSearchResult(t) {
|
|
32885
|
+
return this.activeEditor?.commands.goToSearchResult(t);
|
|
32886
|
+
}
|
|
32884
32887
|
/**
|
|
32885
32888
|
* Set the document to locked or unlocked
|
|
32886
32889
|
* @param {boolean} lock
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -23929,7 +23929,7 @@ Actual: ` + p3.attribValue
|
|
|
23929
23929
|
return;
|
|
23930
23930
|
}
|
|
23931
23931
|
}
|
|
23932
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.11.
|
|
23932
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.11.7") {
|
|
23933
23933
|
const n = "docProps/custom.xml";
|
|
23934
23934
|
e[n] || (e[n] = Fu$2());
|
|
23935
23935
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -24192,7 +24192,7 @@ Actual: ` + p3.attribValue
|
|
|
24192
24192
|
function Fu$2() {
|
|
24193
24193
|
return Gf$1;
|
|
24194
24194
|
}
|
|
24195
|
-
function Bu$2(r22 = 2, e = "0.11.
|
|
24195
|
+
function Bu$2(r22 = 2, e = "0.11.7") {
|
|
24196
24196
|
return {
|
|
24197
24197
|
type: "element",
|
|
24198
24198
|
name: "property",
|
|
@@ -36702,7 +36702,7 @@ Actual: ` + p3.attribValue
|
|
|
36702
36702
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36703
36703
|
*/
|
|
36704
36704
|
processCollaborationMigrations() {
|
|
36705
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
36705
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.7"), !this.options.ydoc) return;
|
|
36706
36706
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36707
36707
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36708
36708
|
const o = dl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -45457,18 +45457,27 @@ Actual: ` + p3.attribValue
|
|
|
45457
45457
|
e.view.domAtPos(i3)?.node?.scrollIntoView(true);
|
|
45458
45458
|
},
|
|
45459
45459
|
search: (t) => ({ state: e, dispatch: n }) => {
|
|
45460
|
-
|
|
45461
|
-
|
|
45462
|
-
|
|
45463
|
-
|
|
45464
|
-
|
|
45465
|
-
|
|
45466
|
-
|
|
45467
|
-
|
|
45468
|
-
|
|
45469
|
-
|
|
45470
|
-
|
|
45471
|
-
|
|
45460
|
+
let r, o = false, i3 = false;
|
|
45461
|
+
const s = false;
|
|
45462
|
+
if (t instanceof RegExp)
|
|
45463
|
+
i3 = true, r = t.source, o = !t.flags.includes("i");
|
|
45464
|
+
else if (typeof t == "string" && /^\/(.+)\/([gimsuy]*)$/.test(t)) {
|
|
45465
|
+
const [, f, p3] = t.match(/^\/(.+)\/([gimsuy]*)$/);
|
|
45466
|
+
i3 = true, r = f, o = !p3.includes("i");
|
|
45467
|
+
} else
|
|
45468
|
+
r = String(t);
|
|
45469
|
+
const a = new kf$1({
|
|
45470
|
+
search: r,
|
|
45471
|
+
caseSensitive: o,
|
|
45472
|
+
regexp: i3,
|
|
45473
|
+
wholeWord: s
|
|
45474
|
+
}), l = fx(e.tr, a);
|
|
45475
|
+
n(l);
|
|
45476
|
+
const c3 = e.apply(l), d = cc$1(c3);
|
|
45477
|
+
return (d ? d.find() : []).map((f) => ({
|
|
45478
|
+
from: f.from,
|
|
45479
|
+
to: f.to,
|
|
45480
|
+
text: c3.doc.textBetween(f.from, f.to)
|
|
45472
45481
|
}));
|
|
45473
45482
|
},
|
|
45474
45483
|
goToSearchResult: (t) => ({ state: e, dispatch: n, editor: r }) => {
|
|
@@ -54650,8 +54659,7 @@ ${t}
|
|
|
54650
54659
|
dt2,
|
|
54651
54660
|
a,
|
|
54652
54661
|
R3,
|
|
54653
|
-
ne2
|
|
54654
|
-
S
|
|
54662
|
+
ne2
|
|
54655
54663
|
];
|
|
54656
54664
|
if (t.config?.superdoc?.config?.modules?.ai || (O = O.filter((m) => m.name.value !== "ai")), o <= $e2.md && (O = O.filter((m) => m.type !== "separator")), t.config.pagination || (O = O.filter((m) => m.name.value !== "pageBreakTool")), t.config.mode !== "docx") {
|
|
54657
54665
|
const m = O.findIndex((A) => A.name.value === "linkedStyles");
|
|
@@ -70359,7 +70367,7 @@ ${style2}
|
|
|
70359
70367
|
this.config.colors = shuffleArray(this.config.colors);
|
|
70360
70368
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
70361
70369
|
this.colorIndex = 0;
|
|
70362
|
-
this.version = "0.11.
|
|
70370
|
+
this.version = "0.11.7";
|
|
70363
70371
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
70364
70372
|
this.superdocId = config.superdocId || v4();
|
|
70365
70373
|
this.colors = this.config.colors;
|
|
@@ -70641,6 +70649,9 @@ ${style2}
|
|
|
70641
70649
|
search(text) {
|
|
70642
70650
|
return this.activeEditor?.commands.search(text);
|
|
70643
70651
|
}
|
|
70652
|
+
goToSearchResult(match) {
|
|
70653
|
+
return this.activeEditor?.commands.goToSearchResult(match);
|
|
70654
|
+
}
|
|
70644
70655
|
/**
|
|
70645
70656
|
* Set the document to locked or unlocked
|
|
70646
70657
|
* @param {boolean} lock
|