@harbour-enterprises/superdoc 0.11.23 → 0.11.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-CBrrSyRJ.es.js → super-editor.es-Drj1-k9m.es.js} +80 -80
- package/dist/chunks/{super-editor.es-nSRiLBHJ.cjs → super-editor.es-hpZRbvKj.cjs} +36 -36
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-6jOM9NGa.js → converter-CZN3yFqr.js} +2 -2
- package/dist/super-editor/chunks/{docx-zipper-DwjtCKZi.js → docx-zipper-BwpR2edv.js} +1 -1
- package/dist/super-editor/chunks/{editor-CaLOL3Ro.js → editor-BPsKBCAJ.js} +41 -41
- package/dist/super-editor/chunks/{toolbar-1v68uuSI.js → toolbar-Ba50Re4w.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/extensions/table/table.d.ts.map +1 -1
- 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 +138 -138
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1045,7 +1045,7 @@ vf.write = function(t, e, n, r, o, i) {
|
|
|
1045
1045
|
throw new Error("BigInt not supported");
|
|
1046
1046
|
}
|
|
1047
1047
|
})($t);
|
|
1048
|
-
const
|
|
1048
|
+
const At = $t.Buffer, vE = $t.Blob, xE = $t.BlobOptions, kE = $t.Buffer, SE = $t.File, EE = $t.FileOptions, AE = $t.INSPECT_MAX_BYTES, CE = $t.SlowBuffer, $E = $t.TranscodeEncoding, TE = $t.atob, OE = $t.btoa, ME = $t.constants, DE = $t.isAscii, _E = $t.isUtf8, IE = $t.kMaxLength, NE = $t.kStringMaxLength, FE = $t.resolveObjectURL, RE = $t.transcode, LE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1049
1049
|
__proto__: null,
|
|
1050
1050
|
Blob: vE,
|
|
1051
1051
|
BlobOptions: xE,
|
|
@@ -1058,7 +1058,7 @@ const Et = $t.Buffer, vE = $t.Blob, xE = $t.BlobOptions, kE = $t.Buffer, SE = $t
|
|
|
1058
1058
|
atob: TE,
|
|
1059
1059
|
btoa: OE,
|
|
1060
1060
|
constants: ME,
|
|
1061
|
-
default:
|
|
1061
|
+
default: At,
|
|
1062
1062
|
isAscii: DE,
|
|
1063
1063
|
isUtf8: _E,
|
|
1064
1064
|
kMaxLength: IE,
|
|
@@ -4580,7 +4580,7 @@ function OA() {
|
|
|
4580
4580
|
value: u
|
|
4581
4581
|
}
|
|
4582
4582
|
}), u.prototype.write = function(T) {
|
|
4583
|
-
if (typeof
|
|
4583
|
+
if (typeof At == "function" && typeof At.isBuffer == "function" && At.isBuffer(T)) {
|
|
4584
4584
|
if (!this._decoder) {
|
|
4585
4585
|
var E = Ud().StringDecoder;
|
|
4586
4586
|
this._decoder = new E("utf8");
|
|
@@ -5651,7 +5651,7 @@ var bv = function(t, e) {
|
|
|
5651
5651
|
var n = [];
|
|
5652
5652
|
return Ht = t, Vt = "_root_", e.compact ? n.push(wv(t, e, 0, !0)) : (t[e.declarationKey] && n.push(dv(t[e.declarationKey], e, 0)), t[e.elementsKey] && t[e.elementsKey].length && n.push(gv(t[e.elementsKey], e, 0, !n.length))), n.join("");
|
|
5653
5653
|
}, JA = bv, XA = function(t, e) {
|
|
5654
|
-
t instanceof
|
|
5654
|
+
t instanceof At && (t = t.toString());
|
|
5655
5655
|
var n = null;
|
|
5656
5656
|
if (typeof t == "string")
|
|
5657
5657
|
try {
|
|
@@ -11019,7 +11019,7 @@ const h4 = async (t) => {
|
|
|
11019
11019
|
i[s] = r.charCodeAt(s);
|
|
11020
11020
|
return i.buffer;
|
|
11021
11021
|
}
|
|
11022
|
-
const n =
|
|
11022
|
+
const n = At.from(e, "base64");
|
|
11023
11023
|
return n.buffer.slice(
|
|
11024
11024
|
n.byteOffset,
|
|
11025
11025
|
n.byteOffset + n.byteLength
|
|
@@ -16705,7 +16705,7 @@ const gs = class U1 {
|
|
|
16705
16705
|
return;
|
|
16706
16706
|
}
|
|
16707
16707
|
}
|
|
16708
|
-
static updateDocumentVersion(e = this.convertedXml, n = "0.11.
|
|
16708
|
+
static updateDocumentVersion(e = this.convertedXml, n = "0.11.24") {
|
|
16709
16709
|
const r = "docProps/custom.xml";
|
|
16710
16710
|
e[r] || (e[r] = H1());
|
|
16711
16711
|
const o = e["docProps/custom.xml"];
|
|
@@ -16968,7 +16968,7 @@ function Q$(t) {
|
|
|
16968
16968
|
function H1() {
|
|
16969
16969
|
return k4;
|
|
16970
16970
|
}
|
|
16971
|
-
function V1(t = 2, e = "0.11.
|
|
16971
|
+
function V1(t = 2, e = "0.11.24") {
|
|
16972
16972
|
return {
|
|
16973
16973
|
type: "element",
|
|
16974
16974
|
name: "property",
|
|
@@ -17277,16 +17277,16 @@ var W1 = { exports: {} };
|
|
|
17277
17277
|
this._helper.resume();
|
|
17278
17278
|
}, r.exports = s;
|
|
17279
17279
|
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(n, r, o) {
|
|
17280
|
-
r.exports = { isNode: typeof
|
|
17281
|
-
if (
|
|
17280
|
+
r.exports = { isNode: typeof At < "u", newBufferFrom: function(i, s) {
|
|
17281
|
+
if (At.from && At.from !== Uint8Array.from) return At.from(i, s);
|
|
17282
17282
|
if (typeof i == "number") throw new Error('The "data" argument must not be a number');
|
|
17283
|
-
return new
|
|
17283
|
+
return new At(i, s);
|
|
17284
17284
|
}, allocBuffer: function(i) {
|
|
17285
|
-
if (
|
|
17286
|
-
var s = new
|
|
17285
|
+
if (At.alloc) return At.alloc(i);
|
|
17286
|
+
var s = new At(i);
|
|
17287
17287
|
return s.fill(0), s;
|
|
17288
17288
|
}, isBuffer: function(i) {
|
|
17289
|
-
return
|
|
17289
|
+
return At.isBuffer(i);
|
|
17290
17290
|
}, isStream: function(i) {
|
|
17291
17291
|
return i && typeof i.on == "function" && typeof i.pause == "function" && typeof i.resume == "function";
|
|
17292
17292
|
} };
|
|
@@ -17613,7 +17613,7 @@ var W1 = { exports: {} };
|
|
|
17613
17613
|
for (Y = new Uint8Array(_), S = 0; S < N.length; S++) Y.set(N[S], V), V += N[S].length;
|
|
17614
17614
|
return Y;
|
|
17615
17615
|
case "nodebuffer":
|
|
17616
|
-
return
|
|
17616
|
+
return At.concat(N);
|
|
17617
17617
|
default:
|
|
17618
17618
|
throw new Error("concat : unsupported type '" + O + "'");
|
|
17619
17619
|
}
|
|
@@ -17660,7 +17660,7 @@ var W1 = { exports: {} };
|
|
|
17660
17660
|
return new d(this, { objectMode: this._outputType !== "nodebuffer" }, h);
|
|
17661
17661
|
} }, r.exports = f;
|
|
17662
17662
|
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(n, r, o) {
|
|
17663
|
-
if (o.base64 = !0, o.array = !0, o.string = !0, o.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", o.nodebuffer = typeof
|
|
17663
|
+
if (o.base64 = !0, o.array = !0, o.string = !0, o.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", o.nodebuffer = typeof At < "u", o.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") o.blob = !1;
|
|
17664
17664
|
else {
|
|
17665
17665
|
var i = new ArrayBuffer(0);
|
|
17666
17666
|
try {
|
|
@@ -19405,7 +19405,7 @@ let gy = class {
|
|
|
19405
19405
|
const a = n[s];
|
|
19406
19406
|
i.file(s, a);
|
|
19407
19407
|
}), Object.keys(r).forEach((s) => {
|
|
19408
|
-
const a =
|
|
19408
|
+
const a = At.from(r[s], "base64");
|
|
19409
19409
|
i.file(`word/media/${s}`, a);
|
|
19410
19410
|
});
|
|
19411
19411
|
for (const [s, a] of Object.entries(o))
|
|
@@ -23960,7 +23960,7 @@ const QO = (t) => new YO().digest(t), eM = (t) => {
|
|
|
23960
23960
|
for (let n = 0; n < t.byteLength; n++)
|
|
23961
23961
|
e += rO(t[n]);
|
|
23962
23962
|
return btoa(e);
|
|
23963
|
-
}, tM = (t) =>
|
|
23963
|
+
}, tM = (t) => At.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), nM = G2 ? eM : tM, rM = (t) => fO((e) => vp(e, t)), oM = (t) => {
|
|
23964
23964
|
for (let e = 6; e < t.length; e++)
|
|
23965
23965
|
t[e % 6] = t[e % 6] ^ t[e];
|
|
23966
23966
|
return t.slice(0, 6);
|
|
@@ -25095,7 +25095,7 @@ function Xf(t) {
|
|
|
25095
25095
|
return !1;
|
|
25096
25096
|
};
|
|
25097
25097
|
}
|
|
25098
|
-
function
|
|
25098
|
+
function kt(t, e) {
|
|
25099
25099
|
if (typeof t == "string") {
|
|
25100
25100
|
if (!e.nodes[t])
|
|
25101
25101
|
throw Error(`There is no node type named '${t}' in schema.`);
|
|
@@ -25222,7 +25222,7 @@ let Oe = class {
|
|
|
25222
25222
|
* @returns The node attrs.
|
|
25223
25223
|
*/
|
|
25224
25224
|
static getNodeAttributes(e, n) {
|
|
25225
|
-
const r =
|
|
25225
|
+
const r = kt(n, e.schema), { from: o, to: i } = e.selection, s = [];
|
|
25226
25226
|
e.doc.nodesBetween(o, i, (l) => {
|
|
25227
25227
|
s.push(l);
|
|
25228
25228
|
});
|
|
@@ -25778,7 +25778,7 @@ const ZM = class ys {
|
|
|
25778
25778
|
options: r.options,
|
|
25779
25779
|
storage: r.storage,
|
|
25780
25780
|
editor: e,
|
|
25781
|
-
type:
|
|
25781
|
+
type: kt(r.name, this.schema)
|
|
25782
25782
|
}, s = Le(r, "addNodeView", i);
|
|
25783
25783
|
if (!s) return [];
|
|
25784
25784
|
const a = (l, c, u, d) => {
|
|
@@ -26305,11 +26305,11 @@ const AD = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
|
|
|
26305
26305
|
});
|
|
26306
26306
|
}), !0;
|
|
26307
26307
|
}, $D = (t, e = {}) => ({ state: n, dispatch: r, chain: o }) => {
|
|
26308
|
-
const i =
|
|
26308
|
+
const i = kt(t, n.schema);
|
|
26309
26309
|
return i.isTextblock ? o().command(({ commands: s }) => l0(i, e)(n) ? !0 : s.clearNodes()).command(({ state: s }) => l0(i, e)(s, r)).run() : !1;
|
|
26310
26310
|
};
|
|
26311
26311
|
function Ql(t, e, n = {}) {
|
|
26312
|
-
const { from: r, to: o, empty: i } = t.selection, s = e ?
|
|
26312
|
+
const { from: r, to: o, empty: i } = t.selection, s = e ? kt(e, t.schema) : null, a = [];
|
|
26313
26313
|
t.doc.nodesBetween(r, o, (u, d) => {
|
|
26314
26314
|
if (u.isText) return;
|
|
26315
26315
|
const p = Math.max(r, d), f = Math.min(o, d + u.nodeSize);
|
|
@@ -26323,7 +26323,7 @@ function Ql(t, e, n = {}) {
|
|
|
26323
26323
|
return i ? !!c.length : c.reduce((u, d) => u + d.to - d.from, 0) >= l;
|
|
26324
26324
|
}
|
|
26325
26325
|
const TD = (t, e, n = {}) => ({ state: r, commands: o }) => {
|
|
26326
|
-
const i =
|
|
26326
|
+
const i = kt(t, r.schema), s = kt(e, r.schema);
|
|
26327
26327
|
return Ql(r, i, n) ? o.setNode(s) : o.setNode(i, n);
|
|
26328
26328
|
}, OD = () => ({ state: t, dispatch: e }) => dD(t, e), MD = () => ({ state: t, dispatch: e }) => Yf(t, e), DD = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
26329
26329
|
let i = null, s = null;
|
|
@@ -26331,7 +26331,7 @@ const TD = (t, e, n = {}) => ({ state: r, commands: o }) => {
|
|
|
26331
26331
|
typeof t == "string" ? t : t.name,
|
|
26332
26332
|
r.schema
|
|
26333
26333
|
);
|
|
26334
|
-
return a ? (a === "node" && (i =
|
|
26334
|
+
return a ? (a === "node" && (i = kt(t, r.schema)), a === "mark" && (s = Or(t, r.schema)), o && n.selection.ranges.forEach((l) => {
|
|
26335
26335
|
const c = l.$from.pos, u = l.$to.pos;
|
|
26336
26336
|
r.doc.nodesBetween(c, u, (d, p) => {
|
|
26337
26337
|
i && i === d.type && n.setNodeMarkup(p, void 0, { ...d.attrs, ...e }), s && d.marks.length && d.marks.forEach((f) => {
|
|
@@ -26348,7 +26348,7 @@ const TD = (t, e, n = {}) => ({ state: r, commands: o }) => {
|
|
|
26348
26348
|
typeof t == "string" ? t : t.name,
|
|
26349
26349
|
r.schema
|
|
26350
26350
|
);
|
|
26351
|
-
return a ? (a === "node" && (i =
|
|
26351
|
+
return a ? (a === "node" && (i = kt(t, r.schema)), a === "mark" && (s = Or(t, r.schema)), o && n.selection.ranges.forEach((l) => {
|
|
26352
26352
|
r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, u) => {
|
|
26353
26353
|
i && i === c.type && n.setNodeMarkup(u, void 0, ty(c.attrs, e)), s && c.marks.length && c.marks.forEach((d) => {
|
|
26354
26354
|
s === d.type && n.addMark(u, u + c.nodeSize, s.create(ty(d.attrs, e)));
|
|
@@ -26569,7 +26569,7 @@ function YD(t) {
|
|
|
26569
26569
|
};
|
|
26570
26570
|
}
|
|
26571
26571
|
const QD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
26572
|
-
const o =
|
|
26572
|
+
const o = kt(t, n.schema);
|
|
26573
26573
|
return WD(o, e)(n, r);
|
|
26574
26574
|
}, Mc = (t, e) => {
|
|
26575
26575
|
for (let n = t.depth; n > 0; n--) {
|
|
@@ -27749,7 +27749,7 @@ const QD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
27749
27749
|
const o = t.doc.nodeAt(r);
|
|
27750
27750
|
return n.node.type === o?.type && ao(t.doc, r) && t.join(r), !0;
|
|
27751
27751
|
}, n_ = (t, e, n, r = {}) => (o) => {
|
|
27752
|
-
const { editor: i, tr: s, state: a, dispatch: l, chain: c, can: u, commands: d } = o, { extensions: p, splittableMarks: f } = i.extensionService, h =
|
|
27752
|
+
const { editor: i, tr: s, state: a, dispatch: l, chain: c, can: u, commands: d } = o, { extensions: p, splittableMarks: f } = i.extensionService, h = kt(t, a.schema), m = kt(e, a.schema), { selection: y, storedMarks: g } = a, { $from: v, $to: x } = y, w = v.blockRange(x), A = g || y.$to.parentOffset && y.$from.marks();
|
|
27753
27753
|
if (!w) return !1;
|
|
27754
27754
|
const M = dn((V) => Dp(V.type.name, p))(y), { numbering: O } = i.converter;
|
|
27755
27755
|
if (w.depth >= 1 && M && w.depth - M.depth <= 1) {
|
|
@@ -27794,7 +27794,7 @@ const QD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
27794
27794
|
const { definitions: n, abstracts: r } = e, o = n[t].elements[0].attributes["w:val"];
|
|
27795
27795
|
return delete n[t], delete r[o], e;
|
|
27796
27796
|
}, i_ = (t) => (e) => {
|
|
27797
|
-
const { tr: n, state: r, dispatch: o, editor: i } = e, s =
|
|
27797
|
+
const { tr: n, state: r, dispatch: o, editor: i } = e, s = kt(t, r.schema), { $from: a, $to: l, node: c } = r.selection;
|
|
27798
27798
|
if (c && c.isBlock || a.depth < 2 || !a.sameParent(l))
|
|
27799
27799
|
return !1;
|
|
27800
27800
|
const u = a.node(-1);
|
|
@@ -27846,10 +27846,10 @@ const QD = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
27846
27846
|
}
|
|
27847
27847
|
return !0;
|
|
27848
27848
|
}, s_ = (t) => ({ state: e, dispatch: n }) => {
|
|
27849
|
-
const r =
|
|
27849
|
+
const r = kt(t, e.schema);
|
|
27850
27850
|
return YD(r)(e, n);
|
|
27851
27851
|
}, a_ = (t) => ({ state: e, dispatch: n }) => {
|
|
27852
|
-
const r =
|
|
27852
|
+
const r = kt(t, e.schema);
|
|
27853
27853
|
return JD(r)(e, n);
|
|
27854
27854
|
}, l_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27855
27855
|
__proto__: null,
|
|
@@ -28181,7 +28181,7 @@ const oh = (t) => {
|
|
|
28181
28181
|
getMarkType: Or,
|
|
28182
28182
|
getMarksBetween: m_,
|
|
28183
28183
|
getMarksFromSelection: Ac,
|
|
28184
|
-
getNodeType:
|
|
28184
|
+
getNodeType: kt,
|
|
28185
28185
|
getSchemaTypeByName: Qs,
|
|
28186
28186
|
getSchemaTypeNameByName: va,
|
|
28187
28187
|
isActive: Sx,
|
|
@@ -29501,7 +29501,7 @@ const q_ = class qx extends NM {
|
|
|
29501
29501
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
29502
29502
|
*/
|
|
29503
29503
|
processCollaborationMigrations() {
|
|
29504
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.
|
|
29504
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.11.24"), !this.options.ydoc) return;
|
|
29505
29505
|
let e = this.options.ydoc.getMap("meta").get("version");
|
|
29506
29506
|
e || (e = "initial"), console.debug("[checkVersionMigrations] Document version", e);
|
|
29507
29507
|
const n = h0(e) || [], r = this.state.plugins.find((i) => i.key.startsWith("y-sync"));
|
|
@@ -32003,10 +32003,10 @@ const M0 = (t, e = null) => e ? t.createChecked(null, e) : t.createAndFill(), f3
|
|
|
32003
32003
|
insideV: { size: t, color: e }
|
|
32004
32004
|
}), G8 = (t, e, n, r, o = null) => {
|
|
32005
32005
|
const i = {
|
|
32006
|
-
table:
|
|
32007
|
-
tableRow:
|
|
32008
|
-
tableCell:
|
|
32009
|
-
tableHeader:
|
|
32006
|
+
table: kt("table", t),
|
|
32007
|
+
tableRow: kt("tableRow", t),
|
|
32008
|
+
tableCell: kt("tableCell", t),
|
|
32009
|
+
tableHeader: kt("tableHeader", t)
|
|
32010
32010
|
}, s = [], a = [];
|
|
32011
32011
|
for (let u = 0; u < n; u++) {
|
|
32012
32012
|
const d = M0(i.tableCell, o);
|
|
@@ -33814,10 +33814,10 @@ const VI = (t) => t instanceof st, ja = ({ editor: t }) => {
|
|
|
33814
33814
|
addCommands() {
|
|
33815
33815
|
return {
|
|
33816
33816
|
insertTable: ({ rows: t = 3, cols: e = 3, withHeaderRow: n = !1 } = {}) => ({ tr: r, dispatch: o, editor: i }) => {
|
|
33817
|
-
const s = G8(i.schema, t, e, n);
|
|
33817
|
+
const s = i.schema.text(""), a = kt("paragraph", i.schema).create(null, s), l = G8(i.schema, t, e, n, a);
|
|
33818
33818
|
if (o) {
|
|
33819
|
-
const
|
|
33820
|
-
r.replaceSelectionWith(
|
|
33819
|
+
const c = r.selection.from + 1;
|
|
33820
|
+
r.replaceSelectionWith(l).scrollIntoView().setSelection(Ge.near(r.doc.resolve(c)));
|
|
33821
33821
|
}
|
|
33822
33822
|
return !0;
|
|
33823
33823
|
},
|
|
@@ -37712,7 +37712,7 @@ Object.assign({}, G3, {
|
|
|
37712
37712
|
Sa.setDefaultProps({
|
|
37713
37713
|
render: dk
|
|
37714
37714
|
});
|
|
37715
|
-
const
|
|
37715
|
+
const St = (t, e) => {
|
|
37716
37716
|
const n = t.__vccOpts || t;
|
|
37717
37717
|
for (const [r, o] of e)
|
|
37718
37718
|
n[r] = o;
|
|
@@ -37778,7 +37778,7 @@ const kt = (t, e) => {
|
|
|
37778
37778
|
], 42, lR))), 128))
|
|
37779
37779
|
], 544));
|
|
37780
37780
|
}
|
|
37781
|
-
}, hR = /* @__PURE__ */
|
|
37781
|
+
}, hR = /* @__PURE__ */ St(fR, [["__scopeId", "data-v-0a2a8b4e"]]), hw = new Qe("popoverPlugin"), mR = ct.create({
|
|
37782
37782
|
name: "popoverPlugin",
|
|
37783
37783
|
addPmPlugins() {
|
|
37784
37784
|
return [new Ze({
|
|
@@ -38662,7 +38662,7 @@ const DR = ct.create({
|
|
|
38662
38662
|
}, null, 4)) : nt("", !0)
|
|
38663
38663
|
]));
|
|
38664
38664
|
}
|
|
38665
|
-
}, AL = /* @__PURE__ */
|
|
38665
|
+
}, AL = /* @__PURE__ */ St(EL, [["__scopeId", "data-v-6d7523ab"]]), CL = {
|
|
38666
38666
|
key: 1,
|
|
38667
38667
|
class: "button-label"
|
|
38668
38668
|
}, $L = { key: 2 }, TL = ["placeholder", "onKeydown", "id"], OL = ["placeholder", "onKeydown", "id"], ML = ["innerHTML"], DL = {
|
|
@@ -38774,7 +38774,7 @@ const DR = ct.create({
|
|
|
38774
38774
|
], 2)
|
|
38775
38775
|
], 6));
|
|
38776
38776
|
}
|
|
38777
|
-
}, Jp = /* @__PURE__ */
|
|
38777
|
+
}, Jp = /* @__PURE__ */ St(DL, [["__scopeId", "data-v-33900b15"]]), _L = { class: "toolbar-separator" }, IL = {
|
|
38778
38778
|
__name: "ToolbarSeparator",
|
|
38779
38779
|
props: {
|
|
38780
38780
|
active: {
|
|
@@ -38788,7 +38788,7 @@ const DR = ct.create({
|
|
|
38788
38788
|
Pe("div", { class: "separator-inner" }, null, -1)
|
|
38789
38789
|
])));
|
|
38790
38790
|
}
|
|
38791
|
-
}, NL = /* @__PURE__ */
|
|
38791
|
+
}, NL = /* @__PURE__ */ St(IL, [["__scopeId", "data-v-ac2ee4f9"]]), FL = { class: "overflow-menu" }, RL = { class: "overflow-menu-trigger" }, LL = {
|
|
38792
38792
|
key: 0,
|
|
38793
38793
|
class: "overflow-menu_items"
|
|
38794
38794
|
}, BL = {
|
|
@@ -38828,7 +38828,7 @@ const DR = ct.create({
|
|
|
38828
38828
|
])) : nt("", !0)
|
|
38829
38829
|
]));
|
|
38830
38830
|
}
|
|
38831
|
-
}, PL = /* @__PURE__ */
|
|
38831
|
+
}, PL = /* @__PURE__ */ St(BL, [["__scopeId", "data-v-ca29bf1d"]]);
|
|
38832
38832
|
function zL(t) {
|
|
38833
38833
|
let e = ".", n = "__", r = "--", o;
|
|
38834
38834
|
if (t) {
|
|
@@ -43691,7 +43691,7 @@ const Rh = {
|
|
|
43691
43691
|
bottom: "top",
|
|
43692
43692
|
left: "right",
|
|
43693
43693
|
right: "left"
|
|
43694
|
-
},
|
|
43694
|
+
}, Et = "var(--n-arrow-height) * 1.414", kq = Ke([it("popover", `
|
|
43695
43695
|
transition:
|
|
43696
43696
|
box-shadow .3s var(--n-bezier),
|
|
43697
43697
|
background-color .3s var(--n-bezier),
|
|
@@ -43728,8 +43728,8 @@ const Rh = {
|
|
|
43728
43728
|
transition: background-color .3s var(--n-bezier);
|
|
43729
43729
|
position: absolute;
|
|
43730
43730
|
display: block;
|
|
43731
|
-
width: calc(${
|
|
43732
|
-
height: calc(${
|
|
43731
|
+
width: calc(${Et});
|
|
43732
|
+
height: calc(${Et});
|
|
43733
43733
|
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
|
|
43734
43734
|
transform: rotate(45deg);
|
|
43735
43735
|
background-color: var(--n-color);
|
|
@@ -43761,44 +43761,44 @@ const Rh = {
|
|
|
43761
43761
|
transform .15s var(--n-bezier-ease-in);
|
|
43762
43762
|
`)
|
|
43763
43763
|
]), On("top-start", `
|
|
43764
|
-
top: calc(${
|
|
43764
|
+
top: calc(${Et} / -2);
|
|
43765
43765
|
left: calc(${dr("top-start")} - var(--v-offset-left));
|
|
43766
43766
|
`), On("top", `
|
|
43767
|
-
top: calc(${
|
|
43768
|
-
transform: translateX(calc(${
|
|
43767
|
+
top: calc(${Et} / -2);
|
|
43768
|
+
transform: translateX(calc(${Et} / -2)) rotate(45deg);
|
|
43769
43769
|
left: 50%;
|
|
43770
43770
|
`), On("top-end", `
|
|
43771
|
-
top: calc(${
|
|
43771
|
+
top: calc(${Et} / -2);
|
|
43772
43772
|
right: calc(${dr("top-end")} + var(--v-offset-left));
|
|
43773
43773
|
`), On("bottom-start", `
|
|
43774
|
-
bottom: calc(${
|
|
43774
|
+
bottom: calc(${Et} / -2);
|
|
43775
43775
|
left: calc(${dr("bottom-start")} - var(--v-offset-left));
|
|
43776
43776
|
`), On("bottom", `
|
|
43777
|
-
bottom: calc(${
|
|
43778
|
-
transform: translateX(calc(${
|
|
43777
|
+
bottom: calc(${Et} / -2);
|
|
43778
|
+
transform: translateX(calc(${Et} / -2)) rotate(45deg);
|
|
43779
43779
|
left: 50%;
|
|
43780
43780
|
`), On("bottom-end", `
|
|
43781
|
-
bottom: calc(${
|
|
43781
|
+
bottom: calc(${Et} / -2);
|
|
43782
43782
|
right: calc(${dr("bottom-end")} + var(--v-offset-left));
|
|
43783
43783
|
`), On("left-start", `
|
|
43784
|
-
left: calc(${
|
|
43784
|
+
left: calc(${Et} / -2);
|
|
43785
43785
|
top: calc(${dr("left-start")} - var(--v-offset-top));
|
|
43786
43786
|
`), On("left", `
|
|
43787
|
-
left: calc(${
|
|
43788
|
-
transform: translateY(calc(${
|
|
43787
|
+
left: calc(${Et} / -2);
|
|
43788
|
+
transform: translateY(calc(${Et} / -2)) rotate(45deg);
|
|
43789
43789
|
top: 50%;
|
|
43790
43790
|
`), On("left-end", `
|
|
43791
|
-
left: calc(${
|
|
43791
|
+
left: calc(${Et} / -2);
|
|
43792
43792
|
bottom: calc(${dr("left-end")} + var(--v-offset-top));
|
|
43793
43793
|
`), On("right-start", `
|
|
43794
|
-
right: calc(${
|
|
43794
|
+
right: calc(${Et} / -2);
|
|
43795
43795
|
top: calc(${dr("right-start")} - var(--v-offset-top));
|
|
43796
43796
|
`), On("right", `
|
|
43797
|
-
right: calc(${
|
|
43798
|
-
transform: translateY(calc(${
|
|
43797
|
+
right: calc(${Et} / -2);
|
|
43798
|
+
transform: translateY(calc(${Et} / -2)) rotate(45deg);
|
|
43799
43799
|
top: 50%;
|
|
43800
43800
|
`), On("right-end", `
|
|
43801
|
-
right: calc(${
|
|
43801
|
+
right: calc(${Et} / -2);
|
|
43802
43802
|
bottom: calc(${dr("right-end")} + var(--v-offset-top));
|
|
43803
43803
|
`), ..._j({
|
|
43804
43804
|
top: ["right-start", "left-start"],
|
|
@@ -43808,7 +43808,7 @@ const Rh = {
|
|
|
43808
43808
|
}, (t, e) => {
|
|
43809
43809
|
const n = ["right", "left"].includes(e), r = n ? "width" : "height";
|
|
43810
43810
|
return t.map((o) => {
|
|
43811
|
-
const i = o.split("-")[1] === "end", s = `calc((${`var(--v-target-${r}, 0px)`} - ${
|
|
43811
|
+
const i = o.split("-")[1] === "end", s = `calc((${`var(--v-target-${r}, 0px)`} - ${Et}) / 2)`, a = dr(o);
|
|
43812
43812
|
return Ke(`[v-placement="${o}"] >`, [it("popover-shared", [ht("center-arrow", [it("popover-arrow", `${e}: calc(max(${s}, ${a}) ${i ? "+" : "-"} var(--v-offset-${n ? "left" : "top"}));`)])])]);
|
|
43813
43813
|
});
|
|
43814
43814
|
})]);
|
|
@@ -45858,7 +45858,7 @@ const Zq = {
|
|
|
45858
45858
|
], 2))), 128))
|
|
45859
45859
|
], 4));
|
|
45860
45860
|
}
|
|
45861
|
-
}, $l = /* @__PURE__ */
|
|
45861
|
+
}, $l = /* @__PURE__ */ St(rU, [["__scopeId", "data-v-7a2db351"]]), oU = {
|
|
45862
45862
|
__name: "Toolbar",
|
|
45863
45863
|
emits: ["command", "toggle", "select"],
|
|
45864
45864
|
setup(t, { emit: e }) {
|
|
@@ -45907,7 +45907,7 @@ const Zq = {
|
|
|
45907
45907
|
}, null, 8, ["toolbar-items"])) : nt("", !0)
|
|
45908
45908
|
]));
|
|
45909
45909
|
}
|
|
45910
|
-
}, iU = /* @__PURE__ */
|
|
45910
|
+
}, iU = /* @__PURE__ */ St(oU, [["__scopeId", "data-v-ac3df73e"]]), sU = "https://sd-dev-express-gateway-i6xtm.ondigitalocean.app/insights", CS = "You are an expert copywriter and you are immersed in a document editor. You are to provide document related text responses based on the user prompts. Only write what is asked for. Do not provide explanations. Try to keep placeholders as short as possible. Do not output your prompt. Your instructions are: ";
|
|
45911
45911
|
async function $S(t, e = {}) {
|
|
45912
45912
|
const n = e.apiKey, r = e.endpoint || sU;
|
|
45913
45913
|
try {
|
|
@@ -46181,7 +46181,7 @@ const uU = `<!-- @note: includes color gradient for inline svg AI Writer -->
|
|
|
46181
46181
|
])
|
|
46182
46182
|
], 544));
|
|
46183
46183
|
}
|
|
46184
|
-
}, wU = /* @__PURE__ */
|
|
46184
|
+
}, wU = /* @__PURE__ */ St(yU, [["__scopeId", "data-v-b140a4fa"]]);
|
|
46185
46185
|
async function PV(t, e) {
|
|
46186
46186
|
const n = new sp();
|
|
46187
46187
|
return t.forEach((r, o) => {
|
|
@@ -46418,7 +46418,7 @@ const Je = (t) => {
|
|
|
46418
46418
|
}, null, 8, OU)
|
|
46419
46419
|
]));
|
|
46420
46420
|
}
|
|
46421
|
-
}, DU = /* @__PURE__ */
|
|
46421
|
+
}, DU = /* @__PURE__ */ St(MU, [["__scopeId", "data-v-d6fae878"]]), _U = { class: "link-input-ctn" }, IU = {
|
|
46422
46422
|
key: 0,
|
|
46423
46423
|
class: "link-title"
|
|
46424
46424
|
}, NU = {
|
|
@@ -46537,7 +46537,7 @@ const Je = (t) => {
|
|
|
46537
46537
|
])) : nt("", !0)
|
|
46538
46538
|
]));
|
|
46539
46539
|
}
|
|
46540
|
-
}, VU = /* @__PURE__ */
|
|
46540
|
+
}, VU = /* @__PURE__ */ St(HU, [["__scopeId", "data-v-6990d5b2"]]), WU = { class: "document-mode" }, GU = ["onClick"], KU = { class: "document-mode-column icon-column" }, JU = ["innerHTML"], XU = { class: "document-mode-column text-column" }, ZU = { class: "document-mode-type" }, YU = { class: "document-mode-description" }, QU = {
|
|
46541
46541
|
__name: "DocumentMode",
|
|
46542
46542
|
props: {
|
|
46543
46543
|
options: {
|
|
@@ -46567,7 +46567,7 @@ const Je = (t) => {
|
|
|
46567
46567
|
], 10, GU))), 256))
|
|
46568
46568
|
]));
|
|
46569
46569
|
}
|
|
46570
|
-
}, eH = /* @__PURE__ */
|
|
46570
|
+
}, eH = /* @__PURE__ */ St(QU, [["__scopeId", "data-v-f86e1477"]]), tH = {
|
|
46571
46571
|
key: 0,
|
|
46572
46572
|
class: "linked-style-buttons"
|
|
46573
46573
|
}, nH = ["onClick"], rH = {
|
|
@@ -46595,7 +46595,7 @@ const Je = (t) => {
|
|
|
46595
46595
|
], 8, nH))), 256))
|
|
46596
46596
|
])) : nt("", !0);
|
|
46597
46597
|
}
|
|
46598
|
-
}, oH = /* @__PURE__ */
|
|
46598
|
+
}, oH = /* @__PURE__ */ St(rH, [["__scopeId", "data-v-97e3296a"]]), iH = ["onClick"], sH = ["innerHTML"], aH = ["innerHTML"], lH = {
|
|
46599
46599
|
__name: "IconGridRow",
|
|
46600
46600
|
props: {
|
|
46601
46601
|
icons: {
|
|
@@ -46637,7 +46637,7 @@ const Je = (t) => {
|
|
|
46637
46637
|
], 8, iH))), 128))
|
|
46638
46638
|
]))), 128));
|
|
46639
46639
|
}
|
|
46640
|
-
}, Nb = /* @__PURE__ */
|
|
46640
|
+
}, Nb = /* @__PURE__ */ St(lH, [["__scopeId", "data-v-6a2a9a40"]]), cH = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M320 512c53.2 0 101.4-21.6 136.1-56.6l-298.3-235C140 257.1 128 292.3 128 320c0 106 86 192 192 192zM505.2 370.7c4.4-16.2 6.8-33.1 6.8-50.7c0-91.2-130.2-262.3-166.6-308.3C339.4 4.2 330.5 0 320.9 0l-1.8 0c-9.6 0-18.5 4.2-24.5 11.7C277.8 33 240.7 81.3 205.8 136L38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L505.2 370.7zM224 336c0 44.2 35.8 80 80 80c8.8 0 16 7.2 16 16s-7.2 16-16 16c-61.9 0-112-50.1-112-112c0-8.8 7.2-16 16-16s16 7.2 16 16z"/></svg>
|
|
46641
46641
|
`, uH = { class: "options-grid-wrap" }, dH = ["innerHTML"], pH = { class: "option-grid-ctn" }, fH = {
|
|
46642
46642
|
__name: "IconGrid",
|
|
46643
46643
|
props: {
|
|
@@ -46692,7 +46692,7 @@ const Je = (t) => {
|
|
|
46692
46692
|
])
|
|
46693
46693
|
]));
|
|
46694
46694
|
}
|
|
46695
|
-
}, hH = /* @__PURE__ */
|
|
46695
|
+
}, hH = /* @__PURE__ */ St(fH, [["__scopeId", "data-v-47b783db"]]), mH = (t) => {
|
|
46696
46696
|
t.expand.value = !1;
|
|
46697
46697
|
}, Me = (t, e = null) => ({
|
|
46698
46698
|
label: e,
|
|
@@ -46826,7 +46826,7 @@ const Je = (t) => {
|
|
|
46826
46826
|
Pe("div", bH, tn(r.value) + " x " + tn(o.value), 1)
|
|
46827
46827
|
]));
|
|
46828
46828
|
}
|
|
46829
|
-
}, xH = /* @__PURE__ */
|
|
46829
|
+
}, xH = /* @__PURE__ */ St(vH, [["__scopeId", "data-v-06352ab9"]]), kH = { class: "toolbar-table-actions" }, SH = ["onClick"], EH = { class: "toolbar-table-actions__icon" }, AH = ["innerHTML"], CH = { class: "toolbar-table-actions__label" }, $H = {
|
|
46830
46830
|
__name: "TableActions",
|
|
46831
46831
|
props: {
|
|
46832
46832
|
options: {
|
|
@@ -46853,7 +46853,7 @@ const Je = (t) => {
|
|
|
46853
46853
|
], 10, SH))), 256))
|
|
46854
46854
|
]));
|
|
46855
46855
|
}
|
|
46856
|
-
}, TH = /* @__PURE__ */
|
|
46856
|
+
}, TH = /* @__PURE__ */ St($H, [["__scopeId", "data-v-9a702d7f"]]), OH = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"/></svg>
|
|
46857
46857
|
`, MH = { class: "search-input-ctn" }, DH = { class: "row" }, _H = ["onKeydown"], IH = {
|
|
46858
46858
|
__name: "SearchInput",
|
|
46859
46859
|
props: {
|
|
@@ -46888,7 +46888,7 @@ const Je = (t) => {
|
|
|
46888
46888
|
])
|
|
46889
46889
|
]));
|
|
46890
46890
|
}
|
|
46891
|
-
}, NH = /* @__PURE__ */
|
|
46891
|
+
}, NH = /* @__PURE__ */ St(IH, [["__scopeId", "data-v-af870fbd"]]), Fr = (t) => {
|
|
46892
46892
|
t.expand.value = !1;
|
|
46893
46893
|
}, FH = (t, e = !1, n, r, o) => {
|
|
46894
46894
|
const i = Je({
|
|
@@ -48134,7 +48134,7 @@ const UH = (t, e) => {
|
|
|
48134
48134
|
], 6))), 256))
|
|
48135
48135
|
], 4));
|
|
48136
48136
|
}
|
|
48137
|
-
}, GH = /* @__PURE__ */
|
|
48137
|
+
}, GH = /* @__PURE__ */ St(WH, [["__scopeId", "data-v-ad77036c"]]), KH = { class: "super-editor-container" }, JH = {
|
|
48138
48138
|
key: 1,
|
|
48139
48139
|
class: "placeholder-editor"
|
|
48140
48140
|
}, XH = { class: "placeholder-title" }, ZH = {
|
|
@@ -48305,7 +48305,7 @@ const UH = (t, e) => {
|
|
|
48305
48305
|
]))
|
|
48306
48306
|
]));
|
|
48307
48307
|
}
|
|
48308
|
-
}, jV = /* @__PURE__ */
|
|
48308
|
+
}, jV = /* @__PURE__ */ St(ZH, [["__scopeId", "data-v-ff8f86f4"]]), qV = {
|
|
48309
48309
|
__name: "BasicUpload",
|
|
48310
48310
|
emits: ["file-change"],
|
|
48311
48311
|
setup(t, { emit: e }) {
|
|
@@ -48386,7 +48386,7 @@ const UH = (t, e) => {
|
|
|
48386
48386
|
}, null, 512)
|
|
48387
48387
|
], 2));
|
|
48388
48388
|
}
|
|
48389
|
-
}, UV = /* @__PURE__ */
|
|
48389
|
+
}, UV = /* @__PURE__ */ St(QH, [["__scopeId", "data-v-4d5cff52"]]), HV = {
|
|
48390
48390
|
Node: Xe,
|
|
48391
48391
|
Attribute: Oe,
|
|
48392
48392
|
Extension: ct,
|