@harbour-enterprises/superdoc 0.10.52 → 0.10.54
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-D2PVfIIY.cjs → super-editor.es-DWR8J3Wj.cjs} +5 -5
- package/dist/chunks/{super-editor.es-C7TOrAd0.es.js → super-editor.es-EEBHksvV.es.js} +6 -5
- package/dist/style.css +28 -28
- package/dist/super-editor/ai-writer.es.js +3 -2
- package/dist/super-editor/chunks/{converter-WM8wcLCV.js → converter-DU79T9R2.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-CrGV_M63.js → docx-zipper-2ySrztBZ.js} +1 -1
- package/dist/super-editor/chunks/{editor-B3Ut75Qp.js → editor-2Oc3JzUc.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-CQqIamY5.js → toolbar-BjPEYlSJ.js} +2 -2
- package/dist/super-editor/components/toolbar/ai-helpers.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/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +7 -7
- 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 +5 -5
- package/dist/superdoc.umd.js +9 -8
- 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 { g as md, h as yd, a as bd, q as jo, J as Wo, x as wd, d as Sd, C as Dd, w as vd, c as Fd } from "./chunks/super-editor.es-
|
|
2
|
-
import { R as Ib, b as Cb, f as fb } from "./chunks/super-editor.es-
|
|
1
|
+
import { g as md, h as yd, a as bd, q as jo, J as Wo, x as wd, d as Sd, C as Dd, w as vd, c as Fd } from "./chunks/super-editor.es-EEBHksvV.es.js";
|
|
2
|
+
import { R as Ib, b as Cb, f as fb } from "./chunks/super-editor.es-EEBHksvV.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";
|
|
@@ -32508,7 +32508,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32508
32508
|
innerHTML: ke(an).comment
|
|
32509
32509
|
}, null, 8, yy)
|
|
32510
32510
|
]),
|
|
32511
|
-
ke(q).$superdoc.
|
|
32511
|
+
ke(q).$superdoc.config.modules.ai ? (fe(), ye("div", {
|
|
32512
32512
|
key: 0,
|
|
32513
32513
|
class: "tools-item",
|
|
32514
32514
|
"data-id": "is-tool",
|
|
@@ -32620,7 +32620,7 @@ const yy = ["innerHTML"], by = { class: "superdoc__document document" }, wy = {
|
|
|
32620
32620
|
], 2);
|
|
32621
32621
|
};
|
|
32622
32622
|
}
|
|
32623
|
-
}, vy = /* @__PURE__ */ Mt(Dy, [["__scopeId", "data-v-
|
|
32623
|
+
}, vy = /* @__PURE__ */ Mt(Dy, [["__scopeId", "data-v-c0c771c2"]]), Fy = () => {
|
|
32624
32624
|
const n = $l(vy), t = yI();
|
|
32625
32625
|
n.use(t), n.directive("click-outside", ng);
|
|
32626
32626
|
const i = Ri(), r = hn();
|
|
@@ -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.54", 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
|
@@ -23891,7 +23891,7 @@ Actual: ` + p3.attribValue
|
|
|
23891
23891
|
return;
|
|
23892
23892
|
}
|
|
23893
23893
|
}
|
|
23894
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.10.
|
|
23894
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.10.54") {
|
|
23895
23895
|
const n = "docProps/custom.xml";
|
|
23896
23896
|
e[n] || (e[n] = Fu$2());
|
|
23897
23897
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -24152,7 +24152,7 @@ Actual: ` + p3.attribValue
|
|
|
24152
24152
|
function Fu$2() {
|
|
24153
24153
|
return Gf$2;
|
|
24154
24154
|
}
|
|
24155
|
-
function Bu$2(r22 = 2, e = "0.10.
|
|
24155
|
+
function Bu$2(r22 = 2, e = "0.10.54") {
|
|
24156
24156
|
return {
|
|
24157
24157
|
type: "element",
|
|
24158
24158
|
name: "property",
|
|
@@ -36662,7 +36662,7 @@ Actual: ` + p3.attribValue
|
|
|
36662
36662
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36663
36663
|
*/
|
|
36664
36664
|
processCollaborationMigrations() {
|
|
36665
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.
|
|
36665
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.54"), !this.options.ydoc) return;
|
|
36666
36666
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36667
36667
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36668
36668
|
const o = ol$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -52536,7 +52536,8 @@ ${t}
|
|
|
52536
52536
|
const o = await fetch(r, {
|
|
52537
52537
|
method: "POST",
|
|
52538
52538
|
headers: s,
|
|
52539
|
-
body: JSON.stringify(a)
|
|
52539
|
+
body: JSON.stringify(a),
|
|
52540
|
+
credentials: "include"
|
|
52540
52541
|
});
|
|
52541
52542
|
if (!o.ok) {
|
|
52542
52543
|
const c3 = await o.text();
|
|
@@ -54182,7 +54183,7 @@ ${t}
|
|
|
54182
54183
|
ee2
|
|
54183
54184
|
// search,
|
|
54184
54185
|
];
|
|
54185
|
-
if (t.config
|
|
54186
|
+
if (t.config?.superdoc?.config?.modules?.ai || (O = O.filter((m) => m.name.value !== "ai")), o <= Me2.md && (O = O.filter((m) => m.type !== "separator")), t.config.pagination || (O = O.filter((m) => m.name.value !== "pageBreakTool")), t.config.mode !== "docx") {
|
|
54186
54187
|
const m = O.findIndex((A) => A.name.value === "linkedStyles");
|
|
54187
54188
|
O.splice(m - 1, 2);
|
|
54188
54189
|
const S3 = ["ruler", "zoom", "undo", "redo"];
|
|
@@ -69670,7 +69671,7 @@ ${style2}
|
|
|
69670
69671
|
innerHTML: unref(superdocIcons).comment
|
|
69671
69672
|
}, null, 8, _hoisted_1)
|
|
69672
69673
|
]),
|
|
69673
|
-
unref(proxy).$superdoc.
|
|
69674
|
+
unref(proxy).$superdoc.config.modules.ai ? (openBlock(), createElementBlock("div", {
|
|
69674
69675
|
key: 0,
|
|
69675
69676
|
class: "tools-item",
|
|
69676
69677
|
"data-id": "is-tool",
|
|
@@ -69787,7 +69788,7 @@ ${style2}
|
|
|
69787
69788
|
};
|
|
69788
69789
|
}
|
|
69789
69790
|
};
|
|
69790
|
-
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
69791
|
+
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c0c771c2"]]);
|
|
69791
69792
|
const createSuperdocVueApp = () => {
|
|
69792
69793
|
const app = createApp(App);
|
|
69793
69794
|
const pinia = createPinia();
|
|
@@ -69880,7 +69881,7 @@ ${style2}
|
|
|
69880
69881
|
this.config.colors = shuffleArray(this.config.colors);
|
|
69881
69882
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
69882
69883
|
this.colorIndex = 0;
|
|
69883
|
-
this.version = "0.10.
|
|
69884
|
+
this.version = "0.10.54";
|
|
69884
69885
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
69885
69886
|
this.superdocId = config.superdocId || v4();
|
|
69886
69887
|
this.colors = this.config.colors;
|