@harbour-enterprises/superdoc 0.10.23 → 0.10.24
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-CXLaCRCo.cjs → super-editor.es-DxV1-XaR.cjs} +5 -5
- package/dist/chunks/{super-editor.es-PmZ_vC_x.es.js → super-editor.es-QKCAGemB.es.js} +6 -6
- package/dist/style.css +5 -1
- package/dist/super-editor/ai-writer.es.js +3 -3
- package/dist/super-editor/chunks/{converter-GjUq7j91.js → converter-BZpu3h0o.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-Dsr0bWUJ.js → docx-zipper-OGlRtF5k.js} +1 -1
- package/dist/super-editor/chunks/{editor-BKwduR0i.js → editor-CGwGfcxI.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-BWzCKGqH.js → toolbar-CpK0llGs.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/style.css +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 +3 -3
- package/dist/superdoc.umd.js +7 -7
- 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 { r as md, h as yd, b as bd, U as jo, j as Wo, x as wd, d as Sd, C as Dd, k as vd, c as Fd } from "./chunks/super-editor.es-
|
|
2
|
-
import { a as Ib, t as Cb, T as fb } from "./chunks/super-editor.es-
|
|
1
|
+
import { r as md, h as yd, b as bd, U as jo, j as Wo, x as wd, d as Sd, C as Dd, k as vd, c as Fd } from "./chunks/super-editor.es-QKCAGemB.es.js";
|
|
2
|
+
import { a as Ib, t as Cb, T as fb } from "./chunks/super-editor.es-QKCAGemB.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 xe, 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";
|
|
@@ -32693,7 +32693,7 @@ class hb extends eg {
|
|
|
32693
32693
|
this.config = {
|
|
32694
32694
|
...this.config,
|
|
32695
32695
|
...t
|
|
32696
|
-
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.10.
|
|
32696
|
+
}, this.config.colors = NI(this.config.colors), this.userColorMap = /* @__PURE__ */ new Map(), this.colorIndex = 0, this.version = "0.10.24", 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);
|
|
32697
32697
|
}
|
|
32698
32698
|
get requiredNumberOfEditors() {
|
|
32699
32699
|
return this.superdocStore.documents.filter((t) => t.type === on).length;
|
package/dist/superdoc.umd.js
CHANGED
|
@@ -23614,7 +23614,7 @@ Actual: ` + p3.attribValue
|
|
|
23614
23614
|
return;
|
|
23615
23615
|
}
|
|
23616
23616
|
}
|
|
23617
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.10.
|
|
23617
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.10.24") {
|
|
23618
23618
|
const n = "docProps/custom.xml";
|
|
23619
23619
|
e[n] || (e[n] = Fu$2());
|
|
23620
23620
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -23841,7 +23841,7 @@ Actual: ` + p3.attribValue
|
|
|
23841
23841
|
function Fu$2() {
|
|
23842
23842
|
return zf$1;
|
|
23843
23843
|
}
|
|
23844
|
-
function Bu$2(r22 = 2, e = "0.10.
|
|
23844
|
+
function Bu$2(r22 = 2, e = "0.10.24") {
|
|
23845
23845
|
return {
|
|
23846
23846
|
type: "element",
|
|
23847
23847
|
name: "property",
|
|
@@ -36337,7 +36337,7 @@ Actual: ` + p3.attribValue
|
|
|
36337
36337
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36338
36338
|
*/
|
|
36339
36339
|
processCollaborationMigrations() {
|
|
36340
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.
|
|
36340
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.10.24"), !this.options.ydoc) return;
|
|
36341
36341
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36342
36342
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36343
36343
|
const o = ol$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -52111,7 +52111,7 @@ ${t}
|
|
|
52111
52111
|
</defs>
|
|
52112
52112
|
<path fill="url(#gradient)" d="M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z"/>
|
|
52113
52113
|
</svg>`, J = `<!-- @note: includes color gradient for inline svg AI Writer -->
|
|
52114
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"
|
|
52114
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z"/></svg>`, Q = `<!-- @note: includes color gradient for inline svg AI Writer -->
|
|
52115
52115
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--> <defs>
|
|
52116
52116
|
<linearGradient id="gradient" x1="125%" y1="50%" x2="-25%" y2="50%">
|
|
52117
52117
|
<stop offset="-20%" stop-color="rgba(218, 215, 118, 0.5)" />
|
|
@@ -52269,7 +52269,7 @@ ${t}
|
|
|
52269
52269
|
])
|
|
52270
52270
|
], 544));
|
|
52271
52271
|
}
|
|
52272
|
-
}, de = /* @__PURE__ */ Ok(ie, [["__scopeId", "data-v-
|
|
52272
|
+
}, de = /* @__PURE__ */ Ok(ie, [["__scopeId", "data-v-1dd9d155"]]);
|
|
52273
52273
|
async function c$3(o, t) {
|
|
52274
52274
|
const e = new Et$1();
|
|
52275
52275
|
return o.forEach((i3, n) => {
|
|
@@ -53020,7 +53020,7 @@ ${t}
|
|
|
53020
53020
|
},
|
|
53021
53021
|
selectedText: m,
|
|
53022
53022
|
editor: t.activeEditor,
|
|
53023
|
-
|
|
53023
|
+
apiKey: t.config.aiApiKey,
|
|
53024
53024
|
superToolbar: t
|
|
53025
53025
|
})
|
|
53026
53026
|
]
|
|
@@ -69330,7 +69330,7 @@ ${style2}
|
|
|
69330
69330
|
this.config.colors = shuffleArray(this.config.colors);
|
|
69331
69331
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
69332
69332
|
this.colorIndex = 0;
|
|
69333
|
-
this.version = "0.10.
|
|
69333
|
+
this.version = "0.10.24";
|
|
69334
69334
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
69335
69335
|
this.superdocId = config.superdocId || v4();
|
|
69336
69336
|
this.colors = this.config.colors;
|