@harbour-enterprises/superdoc 0.10.64 → 0.10.65
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-DrbFuM-S.es.js → super-editor.es-Br9eH3cn.es.js} +8 -5
- package/dist/chunks/{super-editor.es-W9nlzUam.cjs → super-editor.es-zve2N3NE.cjs} +3 -3
- package/dist/super-editor/ai-writer.es.js +1 -1
- package/dist/super-editor/chunks/{converter-CfEnepDb.js → converter-CPw1nhKU.js} +7 -4
- package/dist/super-editor/chunks/{docx-zipper-Cp8TcPW8.js → docx-zipper-DmUudu9K.js} +1 -1
- package/dist/super-editor/chunks/{editor-CPXnk_pU.js → editor-ByusZHOE.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-BGQdT8Qk.js → toolbar-BwyACjtB.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 +3 -3
- package/dist/superdoc.umd.js +9 -6
- 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-Br9eH3cn.es.js";
|
|
2
|
+
import { P as Ib, b as Cb, e as fb } from "./chunks/super-editor.es-Br9eH3cn.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.65", 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
|
@@ -23834,7 +23834,10 @@ Actual: ` + p3.attribValue
|
|
|
23834
23834
|
const Ap$1 = (r22, e, t) => {
|
|
23835
23835
|
const i3 = r22["word/_rels/document.xml.rels"].elements.find((g) => g.name === "Relationships"), { elements: s } = i3, o = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", a = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", u = s.filter((g) => g.attributes.Type === o), f3 = s.filter((g) => g.attributes.Type === a), h3 = (Eu$2(r22["word/document.xml"]) || []).flatMap((g) => g.elements);
|
|
23836
23836
|
u.forEach((g) => {
|
|
23837
|
-
const { rId: v, referenceFile: A, currentFileName: E3 } = qo$1(g, r22)
|
|
23837
|
+
const { rId: v, referenceFile: A, currentFileName: E3 } = qo$1(g, r22);
|
|
23838
|
+
let w = h3.find((D3) => D3.name === "w:headerReference" && D3.attributes["r:id"] === v)?.attributes["w:type"];
|
|
23839
|
+
e.headerIds[w] && (w = null);
|
|
23840
|
+
const B = Jt$2(), R = B.handler({
|
|
23838
23841
|
nodes: A.elements[0].elements,
|
|
23839
23842
|
nodeListHandler: B,
|
|
23840
23843
|
docx: r22,
|
|
@@ -23842,7 +23845,7 @@ Actual: ` + p3.attribValue
|
|
|
23842
23845
|
editor: t,
|
|
23843
23846
|
filename: E3
|
|
23844
23847
|
});
|
|
23845
|
-
e.headerIds.ids || (e.headerIds.ids = []), e.headerIds.ids.push(v), e.headers[v] = { type: "doc", content: [...R] }, e.headerIds[w] = v;
|
|
23848
|
+
e.headerIds.ids || (e.headerIds.ids = []), e.headerIds.ids.push(v), e.headers[v] = { type: "doc", content: [...R] }, w && (e.headerIds[w] = v);
|
|
23846
23849
|
}), f3.forEach((g) => {
|
|
23847
23850
|
const { rId: v, referenceFile: A, currentFileName: E3 } = qo$1(g, r22), w = h3.find((D3) => D3.name === "w:footerReference" && D3.attributes["r:id"] === v)?.attributes["w:type"], B = Jt$2(), R = B.handler({
|
|
23848
23851
|
nodes: A.elements[0].elements,
|
|
@@ -23916,7 +23919,7 @@ Actual: ` + p3.attribValue
|
|
|
23916
23919
|
return;
|
|
23917
23920
|
}
|
|
23918
23921
|
}
|
|
23919
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.10.
|
|
23922
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.10.65") {
|
|
23920
23923
|
const n = "docProps/custom.xml";
|
|
23921
23924
|
e[n] || (e[n] = Fu$2());
|
|
23922
23925
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -24177,7 +24180,7 @@ Actual: ` + p3.attribValue
|
|
|
24177
24180
|
function Fu$2() {
|
|
24178
24181
|
return Gf$2;
|
|
24179
24182
|
}
|
|
24180
|
-
function Bu$2(r22 = 2, e = "0.10.
|
|
24183
|
+
function Bu$2(r22 = 2, e = "0.10.65") {
|
|
24181
24184
|
return {
|
|
24182
24185
|
type: "element",
|
|
24183
24186
|
name: "property",
|
|
@@ -36687,7 +36690,7 @@ Actual: ` + p3.attribValue
|
|
|
36687
36690
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36688
36691
|
*/
|
|
36689
36692
|
processCollaborationMigrations() {
|
|
36690
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.
|
|
36693
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.65"), !this.options.ydoc) return;
|
|
36691
36694
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36692
36695
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36693
36696
|
const o = ol$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -69967,7 +69970,7 @@ ${style2}
|
|
|
69967
69970
|
this.config.colors = shuffleArray(this.config.colors);
|
|
69968
69971
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
69969
69972
|
this.colorIndex = 0;
|
|
69970
|
-
this.version = "0.10.
|
|
69973
|
+
this.version = "0.10.65";
|
|
69971
69974
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
69972
69975
|
this.superdocId = config.superdocId || v4();
|
|
69973
69976
|
this.colors = this.config.colors;
|