@harbour-enterprises/superdoc 0.10.73 → 0.10.74
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/{index-KF0xW8HE.es.js → index-BF-lC4S6.es.js} +1 -1
- package/dist/chunks/{index-CqRwYOdx.cjs → index-DHS2ANjv.cjs} +1 -1
- package/dist/chunks/{index-DMqh3IMV.es.js → index-DcSLQU3f.es.js} +2 -2
- package/dist/chunks/{index-BXKGjuVW.cjs → index-YqE5-6V1.cjs} +1 -1
- package/dist/chunks/{super-editor.es-BK7U7y5h.cjs → super-editor.es-BKb3ou8n.cjs} +3 -3
- package/dist/chunks/{super-editor.es-BCwQiJH2.es.js → super-editor.es-BvOszlT8.es.js} +10 -10
- package/dist/chunks/{url-6Xu7gR4T.cjs → url-Cqg7fbSS.cjs} +1 -1
- package/dist/chunks/{url-xe7NIKp4.es.js → url-_K71OnFe.es.js} +1 -1
- package/dist/chunks/{xml-js-COexJRRq.es.js → xml-js--d8FG5HY.es.js} +744 -762
- package/dist/chunks/xml-js-Zwb1wsIy.cjs +10 -0
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-Ixflu90g.js → converter-GSZUUKpF.js} +9 -9
- package/dist/super-editor/chunks/{docx-zipper-CIQoxaYW.js → docx-zipper-Bkti_srw.js} +1 -1
- package/dist/super-editor/chunks/{editor-BhXIrBQH.js → editor-BRWSXTYt.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-c8nHjhgU.js → toolbar-D2m1kB4W.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/v2/exporter/commentsExporter.d.ts +1 -1
- package/dist/super-editor/core/super-converter/v2/exporter/commentsExporter.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 +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 +3 -3
- package/dist/superdoc.es.js +6 -6
- package/dist/superdoc.umd.js +11 -11
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-zhwNEV5e.cjs +0 -10
package/dist/superdoc.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as md, g as yd, c as bd, J as jo, e 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, V as fb } from "./chunks/super-editor.es-
|
|
1
|
+
import { f as md, g as yd, c as bd, J as jo, e as Wo, A as wd, d as Sd, E as Dd, x as vd, a as Fd } from "./chunks/super-editor.es-BvOszlT8.es.js";
|
|
2
|
+
import { P as Ib, b as Cb, V as fb } from "./chunks/super-editor.es-BvOszlT8.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, M as Zt, R as qt, a2 as xd, a3 as Rd, a4 as Xo, g as Ji, J as Us, N as jr, j as Ii, k as Di, h as da, U as Nd, s as Md, z as Wr, F as jt, Q as GA, m as Ct, D as mi, H as ms, B as re, V as Ld, S as Gd, W as Td, I as qi, O as Es, E as ar, P as Ud, G as Hd, T as Pd, b as ye, o as fe, t as yi, v as bi, y as zl, f as We, A 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-fDwoASPl.es.js";
|
|
4
4
|
import { B as qn } from "./chunks/jszip-CxAhBy-b.es.js";
|
|
5
5
|
import { B as Yd } from "./chunks/blank-docx-BRvkcuiv.es.js";
|
|
@@ -16788,13 +16788,13 @@ var Ue = globalThis.pdfjsLib = {};
|
|
|
16788
16788
|
"./chunks/empty-GlqisfcO.es.js"
|
|
16789
16789
|
), s = await import(
|
|
16790
16790
|
/*webpackIgnore: true*/
|
|
16791
|
-
"./chunks/index-
|
|
16791
|
+
"./chunks/index-DcSLQU3f.es.js"
|
|
16792
16792
|
).then((d) => d.i), a = await import(
|
|
16793
16793
|
/*webpackIgnore: true*/
|
|
16794
|
-
"./chunks/index-
|
|
16794
|
+
"./chunks/index-BF-lC4S6.es.js"
|
|
16795
16795
|
).then((d) => d.i), o = await import(
|
|
16796
16796
|
/*webpackIgnore: true*/
|
|
16797
|
-
"./chunks/url-
|
|
16797
|
+
"./chunks/url-_K71OnFe.es.js"
|
|
16798
16798
|
).then((d) => d.u);
|
|
16799
16799
|
let l, h;
|
|
16800
16800
|
try {
|
|
@@ -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.74", 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;
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -20935,8 +20935,8 @@ Actual: ` + p3.attribValue
|
|
|
20935
20935
|
}), nd$2 = (r22) => ({
|
|
20936
20936
|
...r22,
|
|
20937
20937
|
commentParaId: nu$2()
|
|
20938
|
-
}), id$2 = (r22, e, t) => {
|
|
20939
|
-
const
|
|
20938
|
+
}), id$2 = (r22, e, t, n) => {
|
|
20939
|
+
const i3 = ou$2({ editor: n, node: r22.commentJSON }), s = {
|
|
20940
20940
|
"w:id": String(e),
|
|
20941
20941
|
"w:author": r22.creatorName || r22.importedAuthor?.name,
|
|
20942
20942
|
"w:email": r22.creatorEmail || r22.importedAuthor?.email,
|
|
@@ -20951,14 +20951,14 @@ Actual: ` + p3.attribValue
|
|
|
20951
20951
|
"custom:trackedDeletedText": r22.deletedText || null
|
|
20952
20952
|
};
|
|
20953
20953
|
if (r22?.parentCommentId) {
|
|
20954
|
-
const
|
|
20955
|
-
|
|
20954
|
+
const o = t.find((a) => a.commentId === r22.parentCommentId);
|
|
20955
|
+
s["w15:paraIdParent"] = o.commentParaId;
|
|
20956
20956
|
}
|
|
20957
20957
|
return {
|
|
20958
20958
|
type: "element",
|
|
20959
20959
|
name: "w:comment",
|
|
20960
|
-
attributes:
|
|
20961
|
-
elements: [
|
|
20960
|
+
attributes: s,
|
|
20961
|
+
elements: [i3]
|
|
20962
20962
|
};
|
|
20963
20963
|
}, sd$2 = (r22) => r22 ? r22.replace("(imported)", "").trim().split(" ").map((n) => n[0]).join("") : null, su$2 = (r22) => new Date(r22 || Date.now()).toISOString().replace(/\.\d{3}Z$/, "Z"), od$2 = (r22 = [], e) => {
|
|
20964
20964
|
const t = He$3(e);
|
|
@@ -23929,7 +23929,7 @@ Actual: ` + p3.attribValue
|
|
|
23929
23929
|
return;
|
|
23930
23930
|
}
|
|
23931
23931
|
}
|
|
23932
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.10.
|
|
23932
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.10.74") {
|
|
23933
23933
|
const n = "docProps/custom.xml";
|
|
23934
23934
|
e[n] || (e[n] = Fu$2());
|
|
23935
23935
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -24038,7 +24038,7 @@ Actual: ` + p3.attribValue
|
|
|
24038
24038
|
return new No$2(this).schemaToXml(e, t);
|
|
24039
24039
|
}
|
|
24040
24040
|
async exportToDocx(e, t, n, i3 = false, s, o = [], a) {
|
|
24041
|
-
const u = o.map((F3) => nd$2(F3)), f3 = u.map((F3, w) => id$2(F3, w, u)), { result: l, params: h3 } = this.exportToXmlJson({
|
|
24041
|
+
const u = o.map((F3) => nd$2(F3)), f3 = u.map((F3, w) => id$2(F3, w, u, a)), { result: l, params: h3 } = this.exportToXmlJson({
|
|
24042
24042
|
data: e,
|
|
24043
24043
|
editorSchema: t,
|
|
24044
24044
|
comments: o,
|
|
@@ -24192,7 +24192,7 @@ Actual: ` + p3.attribValue
|
|
|
24192
24192
|
function Fu$2() {
|
|
24193
24193
|
return Gf$2;
|
|
24194
24194
|
}
|
|
24195
|
-
function Bu$2(r22 = 2, e = "0.10.
|
|
24195
|
+
function Bu$2(r22 = 2, e = "0.10.74") {
|
|
24196
24196
|
return {
|
|
24197
24197
|
type: "element",
|
|
24198
24198
|
name: "property",
|
|
@@ -36767,7 +36767,7 @@ Actual: ` + p3.attribValue
|
|
|
36767
36767
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36768
36768
|
*/
|
|
36769
36769
|
processCollaborationMigrations() {
|
|
36770
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.
|
|
36770
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.74"), !this.options.ydoc) return;
|
|
36771
36771
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36772
36772
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36773
36773
|
const o = sl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -70086,7 +70086,7 @@ ${style2}
|
|
|
70086
70086
|
this.config.colors = shuffleArray(this.config.colors);
|
|
70087
70087
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
70088
70088
|
this.colorIndex = 0;
|
|
70089
|
-
this.version = "0.10.
|
|
70089
|
+
this.version = "0.10.74";
|
|
70090
70090
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
70091
70091
|
this.superdocId = config.superdocId || v4();
|
|
70092
70092
|
this.colors = this.config.colors;
|