@harbour-enterprises/superdoc 0.10.61 → 0.10.63
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-DLnaQ9Pa.es.js → super-editor.es-DB2c7BO2.es.js} +3 -3
- package/dist/chunks/{super-editor.es-Dl4ZHGtR.cjs → super-editor.es-hVKxdScp.cjs} +3 -3
- 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-Ce2-D35j.js → converter-Dq3TlpdQ.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-hQhZ7R1x.js → docx-zipper-Sybgd_NX.js} +1 -1
- package/dist/super-editor/chunks/{editor-BR_ymsaE.js → editor-8LEG4GZ5.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-FCEYKoeL.js → toolbar-DK1oYzms.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 +12 -5
- package/dist/superdoc.umd.js +14 -4
- 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 { f as md, g as yd, c as bd, K as jo, J as Wo, A as wd, d as Sd, E as Dd, x as vd, a as Fd } from "./chunks/super-editor.es-
|
|
2
|
-
import { P as Ib, b as Cb, e as fb } from "./chunks/super-editor.es-
|
|
1
|
+
import { f as md, g as yd, c as bd, K as jo, J as Wo, A as wd, d as Sd, E as Dd, x as vd, a as Fd } from "./chunks/super-editor.es-DB2c7BO2.es.js";
|
|
2
|
+
import { P as Ib, b as Cb, e as fb } from "./chunks/super-editor.es-DB2c7BO2.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, C as dt, i as ht, q as ji, l as wt, x as ke, a1 as kd, L as Zt, R as qt, a2 as xd, a3 as Rd, a4 as Xo, g as Ji, N as Us, M as jr, j as Ii, k as Di, h as da, U as Nd, s as Md, A as Wr, F as jt, Q as GA, m as Ct, D as mi, G as ms, B as re, V as Ld, S as Gd, W as Td, K as qi, O as Es, E as ar, P as Ud, J as Hd, T as Pd, b as ye, o as fe, t as yi, v as bi, y as zl, f as We, z as ri, e as Ze, u 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-D254cI7X.es.js";
|
|
4
4
|
import { B as qn } from "./chunks/jszip-ChtTJmXO.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.10.
|
|
32697
|
+
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.10.63", 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;
|
|
@@ -32706,14 +32706,21 @@ class hb extends eg {
|
|
|
32706
32706
|
};
|
|
32707
32707
|
}
|
|
32708
32708
|
#t() {
|
|
32709
|
-
const t = this.config.document, i = !!t && typeof t == "object" && Object.keys(this.config.document)?.length, r = !!t && typeof t == "string" && t.length > 0, A = this.config.documents && this.config.documents?.length;
|
|
32710
|
-
i &&
|
|
32709
|
+
const t = this.config.document, i = !!t && typeof t == "object" && Object.keys(this.config.document)?.length, r = !!t && typeof t == "string" && t.length > 0, A = !!t && t instanceof File, c = this.config.documents && this.config.documents?.length;
|
|
32710
|
+
i && c && console.warn("🦋 [superdoc] You can only provide one of document or documents"), i ? this.config.documents = [this.config.document] : r ? this.config.documents = [
|
|
32711
32711
|
{
|
|
32712
32712
|
type: on,
|
|
32713
32713
|
url: this.config.document,
|
|
32714
32714
|
name: "document.docx",
|
|
32715
32715
|
isNewFile: !0
|
|
32716
32716
|
}
|
|
32717
|
+
] : A && (this.config.documents = [
|
|
32718
|
+
{
|
|
32719
|
+
type: this.config.document.type,
|
|
32720
|
+
data: this.config.document,
|
|
32721
|
+
name: this.config.document.name,
|
|
32722
|
+
isNewFile: !0
|
|
32723
|
+
}
|
|
32717
32724
|
]);
|
|
32718
32725
|
}
|
|
32719
32726
|
#i() {
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -23916,7 +23916,7 @@ Actual: ` + p3.attribValue
|
|
|
23916
23916
|
return;
|
|
23917
23917
|
}
|
|
23918
23918
|
}
|
|
23919
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.10.
|
|
23919
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.10.63") {
|
|
23920
23920
|
const n = "docProps/custom.xml";
|
|
23921
23921
|
e[n] || (e[n] = Fu$2());
|
|
23922
23922
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -24177,7 +24177,7 @@ Actual: ` + p3.attribValue
|
|
|
24177
24177
|
function Fu$2() {
|
|
24178
24178
|
return Gf$2;
|
|
24179
24179
|
}
|
|
24180
|
-
function Bu$2(r22 = 2, e = "0.10.
|
|
24180
|
+
function Bu$2(r22 = 2, e = "0.10.63") {
|
|
24181
24181
|
return {
|
|
24182
24182
|
type: "element",
|
|
24183
24183
|
name: "property",
|
|
@@ -36687,7 +36687,7 @@ Actual: ` + p3.attribValue
|
|
|
36687
36687
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36688
36688
|
*/
|
|
36689
36689
|
processCollaborationMigrations() {
|
|
36690
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.
|
|
36690
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.63"), !this.options.ydoc) return;
|
|
36691
36691
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36692
36692
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36693
36693
|
const o = ol$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -69968,7 +69968,7 @@ ${style2}
|
|
|
69968
69968
|
this.config.colors = shuffleArray(this.config.colors);
|
|
69969
69969
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
69970
69970
|
this.colorIndex = 0;
|
|
69971
|
-
this.version = "0.10.
|
|
69971
|
+
this.version = "0.10.63";
|
|
69972
69972
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
69973
69973
|
this.superdocId = config.superdocId || v4();
|
|
69974
69974
|
this.colors = this.config.colors;
|
|
@@ -70001,6 +70001,7 @@ ${style2}
|
|
|
70001
70001
|
const doc2 = this.config.document;
|
|
70002
70002
|
const hasDocumentConfig = !!doc2 && typeof doc2 === "object" && Object.keys(this.config.document)?.length;
|
|
70003
70003
|
const hasDocumentUrl = !!doc2 && typeof doc2 === "string" && doc2.length > 0;
|
|
70004
|
+
const hasDocumentFile = !!doc2 && doc2 instanceof File;
|
|
70004
70005
|
const hasListOfDocuments = this.config.documents && this.config.documents?.length;
|
|
70005
70006
|
if (hasDocumentConfig && hasListOfDocuments) {
|
|
70006
70007
|
console.warn("🦋 [superdoc] You can only provide one of document or documents");
|
|
@@ -70016,6 +70017,15 @@ ${style2}
|
|
|
70016
70017
|
isNewFile: true
|
|
70017
70018
|
}
|
|
70018
70019
|
];
|
|
70020
|
+
} else if (hasDocumentFile) {
|
|
70021
|
+
this.config.documents = [
|
|
70022
|
+
{
|
|
70023
|
+
type: this.config.document.type,
|
|
70024
|
+
data: this.config.document,
|
|
70025
|
+
name: this.config.document.name,
|
|
70026
|
+
isNewFile: true
|
|
70027
|
+
}
|
|
70028
|
+
];
|
|
70019
70029
|
}
|
|
70020
70030
|
}
|
|
70021
70031
|
#initVueApp() {
|