@zipify/wysiwyg 1.0.0-dev.59 → 1.0.0-dev.61
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/wysiwyg.css +1 -1
- package/dist/wysiwyg.mjs +238 -207
- package/lib/components/toolbar/ToolbarRow.vue +1 -0
- package/lib/components/toolbar/controls/ListControl.vue +68 -30
- package/lib/components/toolbar/controls/__tests__/ListControl.test.js +18 -3
- package/lib/extensions/Superscript.js +5 -1
- package/lib/styles/content.css +8 -0
- package/package.json +1 -1
package/dist/wysiwyg.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ty = Object.defineProperty;
|
|
2
2
|
var ry = (r, e, t) => e in r ? ty(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var $r = (r, e, t) => (ry(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { computed as
|
|
4
|
+
import { computed as A, ref as q, watch as rn, inject as z, onUnmounted as Dl, nextTick as pp, provide as ft, onMounted as mp, toRef as fe, reactive as ny } from "vue";
|
|
5
5
|
import { ColorModel as iy, ZipifyColorPicker as oy } from "@zipify/colorpicker";
|
|
6
6
|
function ce(r) {
|
|
7
7
|
this.content = r;
|
|
@@ -3437,7 +3437,7 @@ function jp(r, e, t) {
|
|
|
3437
3437
|
}
|
|
3438
3438
|
return t;
|
|
3439
3439
|
}
|
|
3440
|
-
class
|
|
3440
|
+
class Te {
|
|
3441
3441
|
constructor(e) {
|
|
3442
3442
|
this.spec = e, this.props = {}, e.props && jp(e.props, this, this.props), this.key = e.key ? e.key.key : Vp("plugin");
|
|
3443
3443
|
}
|
|
@@ -3462,7 +3462,7 @@ class tt {
|
|
|
3462
3462
|
}
|
|
3463
3463
|
const Ut = typeof navigator < "u" ? navigator : null, hu = typeof document < "u" ? document : null, Yt = Ut && Ut.userAgent || "", za = /Edge\/(\d+)/.exec(Yt), Hp = /MSIE \d/.exec(Yt), ja = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Yt), Ie = !!(Hp || ja || za), Vt = Hp ? document.documentMode : ja ? +ja[1] : za ? +za[1] : 0, yt = !Ie && /gecko\/(\d+)/i.test(Yt);
|
|
3464
3464
|
yt && +(/Firefox\/(\d+)/.exec(Yt) || [0, 0])[1];
|
|
3465
|
-
const Va = !Ie && /Chrome\/(\d+)/.exec(Yt), be = !!Va, t0 = Va ? +Va[1] : 0,
|
|
3465
|
+
const Va = !Ie && /Chrome\/(\d+)/.exec(Yt), be = !!Va, t0 = Va ? +Va[1] : 0, ke = !Ie && !!Ut && /Apple Computer/.test(Ut.vendor), sn = ke && (/Mobile\/\w+/.test(Yt) || !!Ut && Ut.maxTouchPoints > 2), Be = sn || (Ut ? /Mac/.test(Ut.platform) : !1), dt = /Android \d/.test(Yt), Ko = !!hu && "webkitFontSmoothing" in hu.documentElement.style, r0 = Ko ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0, $e = function(r) {
|
|
3466
3466
|
for (var e = 0; ; e++)
|
|
3467
3467
|
if (r = r.previousSibling, !r)
|
|
3468
3468
|
return e;
|
|
@@ -3711,7 +3711,7 @@ function m0(r, e) {
|
|
|
3711
3711
|
if (!Tl(e, l) || (o = Kp(r.dom, e, l), !o))
|
|
3712
3712
|
return null;
|
|
3713
3713
|
}
|
|
3714
|
-
if (
|
|
3714
|
+
if (ke)
|
|
3715
3715
|
for (let l = o; n && l; l = kl(l))
|
|
3716
3716
|
l.draggable && (n = void 0);
|
|
3717
3717
|
if (o = d0(o, e), n) {
|
|
@@ -4081,7 +4081,7 @@ class ui {
|
|
|
4081
4081
|
h = m;
|
|
4082
4082
|
}
|
|
4083
4083
|
let a = this.domFromPos(e, e ? -1 : 1), l = t == e ? a : this.domFromPos(t, t ? -1 : 1), u = n.getSelection(), c = !1;
|
|
4084
|
-
if ((yt ||
|
|
4084
|
+
if ((yt || ke) && e == t) {
|
|
4085
4085
|
let { node: d, offset: h } = a;
|
|
4086
4086
|
if (d.nodeType == 3) {
|
|
4087
4087
|
if (c = !!(h && d.nodeValue[h - 1] == `
|
|
@@ -4104,7 +4104,7 @@ class ui {
|
|
|
4104
4104
|
let d = u.focusNode.childNodes[u.focusOffset];
|
|
4105
4105
|
d && d.contentEditable == "false" && (i = !0);
|
|
4106
4106
|
}
|
|
4107
|
-
if (!(i || c &&
|
|
4107
|
+
if (!(i || c && ke) && ti(a.node, a.offset, u.anchorNode, u.anchorOffset) && ti(l.node, l.offset, u.focusNode, u.focusOffset))
|
|
4108
4108
|
return;
|
|
4109
4109
|
let f = !1;
|
|
4110
4110
|
if ((u.extend || e == t) && !c) {
|
|
@@ -4640,7 +4640,7 @@ class w0 {
|
|
|
4640
4640
|
let e = this.top.children[this.index - 1], t = this.top;
|
|
4641
4641
|
for (; e instanceof _r; )
|
|
4642
4642
|
t = e, e = t.children[t.children.length - 1];
|
|
4643
|
-
(!e || !(e instanceof Go) || /\n$/.test(e.node.text)) && ((
|
|
4643
|
+
(!e || !(e instanceof Go) || /\n$/.test(e.node.text)) && ((ke || be) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
|
|
4644
4644
|
}
|
|
4645
4645
|
addHackNode(e, t) {
|
|
4646
4646
|
if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
|
|
@@ -4829,10 +4829,10 @@ function Kt(r, e = !1) {
|
|
|
4829
4829
|
r.domObserver.setCurSelection(), r.domObserver.connectSelection();
|
|
4830
4830
|
}
|
|
4831
4831
|
}
|
|
4832
|
-
const Du =
|
|
4832
|
+
const Du = ke || be && t0 < 63;
|
|
4833
4833
|
function wu(r, e) {
|
|
4834
4834
|
let { node: t, offset: n } = r.docView.domFromPos(e, 0), i = n < t.childNodes.length ? t.childNodes[n] : null, o = n ? t.childNodes[n - 1] : null;
|
|
4835
|
-
if (
|
|
4835
|
+
if (ke && i && i.contentEditable == "false")
|
|
4836
4836
|
return Fs(i);
|
|
4837
4837
|
if ((!i || i.contentEditable == "false") && (!o || o.contentEditable == "false")) {
|
|
4838
4838
|
if (i)
|
|
@@ -4842,7 +4842,7 @@ function wu(r, e) {
|
|
|
4842
4842
|
}
|
|
4843
4843
|
}
|
|
4844
4844
|
function Fs(r) {
|
|
4845
|
-
return r.contentEditable = "true",
|
|
4845
|
+
return r.contentEditable = "true", ke && r.draggable && (r.draggable = !1, r.wasDraggable = !0), r;
|
|
4846
4846
|
}
|
|
4847
4847
|
function xu(r) {
|
|
4848
4848
|
r.contentEditable = "false", r.wasDraggable && (r.draggable = !0, r.wasDraggable = null);
|
|
@@ -5050,7 +5050,7 @@ function Mu(r, e, t) {
|
|
|
5050
5050
|
r.domObserver.stop(), e.contentEditable = t, r.domObserver.start();
|
|
5051
5051
|
}
|
|
5052
5052
|
function I0(r) {
|
|
5053
|
-
if (!
|
|
5053
|
+
if (!ke || r.state.selection.$head.parentOffset > 0)
|
|
5054
5054
|
return !1;
|
|
5055
5055
|
let { focusNode: e, focusOffset: t } = r.domSelection();
|
|
5056
5056
|
if (e && e.nodeType == 1 && t == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
|
|
@@ -5241,7 +5241,7 @@ function j0(r, e) {
|
|
|
5241
5241
|
}
|
|
5242
5242
|
return new k(i, o, s);
|
|
5243
5243
|
}
|
|
5244
|
-
const
|
|
5244
|
+
const Ae = {};
|
|
5245
5245
|
let _e = {};
|
|
5246
5246
|
class V0 {
|
|
5247
5247
|
constructor() {
|
|
@@ -5249,13 +5249,13 @@ class V0 {
|
|
|
5249
5249
|
}
|
|
5250
5250
|
}
|
|
5251
5251
|
function H0(r) {
|
|
5252
|
-
for (let e in
|
|
5253
|
-
let t =
|
|
5252
|
+
for (let e in Ae) {
|
|
5253
|
+
let t = Ae[e];
|
|
5254
5254
|
r.dom.addEventListener(e, r.input.eventHandlers[e] = (n) => {
|
|
5255
5255
|
q0(r, n) && !$l(r, n) && (r.editable || !(n.type in _e)) && t(r, n);
|
|
5256
5256
|
});
|
|
5257
5257
|
}
|
|
5258
|
-
|
|
5258
|
+
ke && r.dom.addEventListener("input", () => null), Ja(r);
|
|
5259
5259
|
}
|
|
5260
5260
|
function cr(r, e) {
|
|
5261
5261
|
r.input.lastSelectionOrigin = e, r.input.lastSelectionTime = Date.now();
|
|
@@ -5289,7 +5289,7 @@ function q0(r, e) {
|
|
|
5289
5289
|
return !0;
|
|
5290
5290
|
}
|
|
5291
5291
|
function U0(r, e) {
|
|
5292
|
-
!$l(r, e) &&
|
|
5292
|
+
!$l(r, e) && Ae[e.type] && (r.editable || !(e.type in _e)) && Ae[e.type](r, e);
|
|
5293
5293
|
}
|
|
5294
5294
|
_e.keydown = (r, e) => {
|
|
5295
5295
|
let t = e;
|
|
@@ -5392,7 +5392,7 @@ function Il(r) {
|
|
|
5392
5392
|
return co(r);
|
|
5393
5393
|
}
|
|
5394
5394
|
const hm = Be ? "metaKey" : "ctrlKey";
|
|
5395
|
-
|
|
5395
|
+
Ae.mousedown = (r, e) => {
|
|
5396
5396
|
let t = e;
|
|
5397
5397
|
r.input.shiftKey = t.shiftKey;
|
|
5398
5398
|
let n = Il(r), i = Date.now(), o = "singleClick";
|
|
@@ -5429,18 +5429,18 @@ class eb {
|
|
|
5429
5429
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
5430
5430
|
return;
|
|
5431
5431
|
let t = this.pos;
|
|
5432
|
-
this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Jo(e))), this.allowDefault || !t ? cr(this.view, "pointer") : Y0(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed ||
|
|
5432
|
+
this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Jo(e))), this.allowDefault || !t ? cr(this.view, "pointer") : Y0(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || ke && this.mightDrag && !this.mightDrag.node.isAtom || be && !(this.view.state.selection instanceof B) && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Qr(this.view, P.near(this.view.state.doc.resolve(t.pos)), "pointer"), e.preventDefault()) : cr(this.view, "pointer");
|
|
5433
5433
|
}
|
|
5434
5434
|
move(e) {
|
|
5435
5435
|
!this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0), cr(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
5436
5436
|
}
|
|
5437
5437
|
}
|
|
5438
|
-
|
|
5438
|
+
Ae.touchdown = (r) => {
|
|
5439
5439
|
Il(r), cr(r, "pointer");
|
|
5440
5440
|
};
|
|
5441
|
-
|
|
5441
|
+
Ae.contextmenu = (r) => Il(r);
|
|
5442
5442
|
function pm(r, e) {
|
|
5443
|
-
return r.composing ? !0 :
|
|
5443
|
+
return r.composing ? !0 : ke && Math.abs(e.timeStamp - r.input.compositionEndedAt) < 500 ? (r.input.compositionEndedAt = -2e8, !0) : !1;
|
|
5444
5444
|
}
|
|
5445
5445
|
const tb = dt ? 5e3 : -1;
|
|
5446
5446
|
_e.compositionstart = _e.compositionupdate = (r) => {
|
|
@@ -5500,7 +5500,7 @@ function nb(r, e) {
|
|
|
5500
5500
|
}, 50);
|
|
5501
5501
|
}
|
|
5502
5502
|
const an = Ie && Vt < 15 || sn && r0 < 604;
|
|
5503
|
-
|
|
5503
|
+
Ae.copy = _e.cut = (r, e) => {
|
|
5504
5504
|
let t = e, n = r.state.selection, i = t.type == "cut";
|
|
5505
5505
|
if (n.empty)
|
|
5506
5506
|
return;
|
|
@@ -5540,7 +5540,7 @@ class sb {
|
|
|
5540
5540
|
}
|
|
5541
5541
|
}
|
|
5542
5542
|
const gm = Be ? "altKey" : "ctrlKey";
|
|
5543
|
-
|
|
5543
|
+
Ae.dragstart = (r, e) => {
|
|
5544
5544
|
let t = e, n = r.input.mouseDown;
|
|
5545
5545
|
if (n && n.done(), !t.dataTransfer)
|
|
5546
5546
|
return;
|
|
@@ -5556,7 +5556,7 @@ ke.dragstart = (r, e) => {
|
|
|
5556
5556
|
let s = r.state.selection.content(), { dom: a, text: l } = sm(r, s);
|
|
5557
5557
|
t.dataTransfer.clearData(), t.dataTransfer.setData(an ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", an || t.dataTransfer.setData("text/plain", l), r.dragging = new sb(s, !t[gm]);
|
|
5558
5558
|
};
|
|
5559
|
-
|
|
5559
|
+
Ae.dragend = (r) => {
|
|
5560
5560
|
let e = r.dragging;
|
|
5561
5561
|
window.setTimeout(() => {
|
|
5562
5562
|
r.dragging == e && (r.dragging = null);
|
|
@@ -5601,16 +5601,16 @@ _e.drop = (r, e) => {
|
|
|
5601
5601
|
}
|
|
5602
5602
|
r.focus(), r.dispatch(u.setMeta("uiEvent", "drop"));
|
|
5603
5603
|
};
|
|
5604
|
-
|
|
5604
|
+
Ae.focus = (r) => {
|
|
5605
5605
|
r.focused || (r.domObserver.stop(), r.dom.classList.add("ProseMirror-focused"), r.domObserver.start(), r.focused = !0, setTimeout(() => {
|
|
5606
5606
|
r.docView && r.hasFocus() && !r.domObserver.currentSelection.eq(r.domSelection()) && Kt(r);
|
|
5607
5607
|
}, 20));
|
|
5608
5608
|
};
|
|
5609
|
-
|
|
5609
|
+
Ae.blur = (r, e) => {
|
|
5610
5610
|
let t = e;
|
|
5611
5611
|
r.focused && (r.domObserver.stop(), r.dom.classList.remove("ProseMirror-focused"), r.domObserver.start(), t.relatedTarget && r.dom.contains(t.relatedTarget) && r.domObserver.currentSelection.clear(), r.focused = !1);
|
|
5612
5612
|
};
|
|
5613
|
-
|
|
5613
|
+
Ae.beforeinput = (r, e) => {
|
|
5614
5614
|
if (be && dt && e.inputType == "deleteContentBackward") {
|
|
5615
5615
|
r.domObserver.flushSoon();
|
|
5616
5616
|
let { domChangeCount: n } = r.input;
|
|
@@ -5623,7 +5623,7 @@ ke.beforeinput = (r, e) => {
|
|
|
5623
5623
|
}
|
|
5624
5624
|
};
|
|
5625
5625
|
for (let r in _e)
|
|
5626
|
-
|
|
5626
|
+
Ae[r] = _e[r];
|
|
5627
5627
|
function ri(r, e) {
|
|
5628
5628
|
if (r == e)
|
|
5629
5629
|
return !0;
|
|
@@ -6209,10 +6209,10 @@ function mb(r) {
|
|
|
6209
6209
|
if (e)
|
|
6210
6210
|
return e.parseRule();
|
|
6211
6211
|
if (r.nodeName == "BR" && r.parentNode) {
|
|
6212
|
-
if (
|
|
6212
|
+
if (ke && /^(ul|ol)$/i.test(r.parentNode.nodeName)) {
|
|
6213
6213
|
let t = document.createElement("div");
|
|
6214
6214
|
return t.appendChild(document.createElement("li")), { skip: t };
|
|
6215
|
-
} else if (r.parentNode.lastChild == r ||
|
|
6215
|
+
} else if (r.parentNode.lastChild == r || ke && /^(tr|table)$/i.test(r.parentNode.nodeName))
|
|
6216
6216
|
return { ignore: !0 };
|
|
6217
6217
|
} else if (r.nodeName == "IMG" && r.getAttribute("mark-placeholder"))
|
|
6218
6218
|
return { ignore: !0 };
|
|
@@ -6664,7 +6664,7 @@ function Ls(r, e, t) {
|
|
|
6664
6664
|
return e.altKey && (r = "Alt-" + r), e.ctrlKey && (r = "Ctrl-" + r), e.metaKey && (r = "Meta-" + r), t !== !1 && e.shiftKey && (r = "Shift-" + r), r;
|
|
6665
6665
|
}
|
|
6666
6666
|
function Mb(r) {
|
|
6667
|
-
return new
|
|
6667
|
+
return new Te({ props: { handleKeyDown: $b(r) } });
|
|
6668
6668
|
}
|
|
6669
6669
|
function $b(r) {
|
|
6670
6670
|
let e = Tb(r);
|
|
@@ -7094,10 +7094,10 @@ class e1 {
|
|
|
7094
7094
|
this.callbacks = {};
|
|
7095
7095
|
}
|
|
7096
7096
|
}
|
|
7097
|
-
function
|
|
7098
|
-
return r.config[e] === void 0 && r.parent ?
|
|
7097
|
+
function T(r, e, t) {
|
|
7098
|
+
return r.config[e] === void 0 && r.parent ? T(r.parent, e, t) : typeof r.config[e] == "function" ? r.config[e].bind({
|
|
7099
7099
|
...t,
|
|
7100
|
-
parent: r.parent ?
|
|
7100
|
+
parent: r.parent ? T(r.parent, e, t) : null
|
|
7101
7101
|
}) : r.config[e];
|
|
7102
7102
|
}
|
|
7103
7103
|
function Zo(r) {
|
|
@@ -7122,7 +7122,7 @@ function Cm(r) {
|
|
|
7122
7122
|
name: s.name,
|
|
7123
7123
|
options: s.options,
|
|
7124
7124
|
storage: s.storage
|
|
7125
|
-
}, l =
|
|
7125
|
+
}, l = T(s, "addGlobalAttributes", a);
|
|
7126
7126
|
if (!l)
|
|
7127
7127
|
return;
|
|
7128
7128
|
l().forEach((c) => {
|
|
@@ -7144,7 +7144,7 @@ function Cm(r) {
|
|
|
7144
7144
|
name: s.name,
|
|
7145
7145
|
options: s.options,
|
|
7146
7146
|
storage: s.storage
|
|
7147
|
-
}, l =
|
|
7147
|
+
}, l = T(s, "addAttributes", a);
|
|
7148
7148
|
if (!l)
|
|
7149
7149
|
return;
|
|
7150
7150
|
const u = l();
|
|
@@ -7221,41 +7221,41 @@ function Uu(r) {
|
|
|
7221
7221
|
}
|
|
7222
7222
|
function n1(r) {
|
|
7223
7223
|
var e;
|
|
7224
|
-
const t = Cm(r), { nodeExtensions: n, markExtensions: i } = Zo(r), o = (e = n.find((l) =>
|
|
7224
|
+
const t = Cm(r), { nodeExtensions: n, markExtensions: i } = Zo(r), o = (e = n.find((l) => T(l, "topNode"))) === null || e === void 0 ? void 0 : e.name, s = Object.fromEntries(n.map((l) => {
|
|
7225
7225
|
const u = t.filter((v) => v.type === l.name), c = {
|
|
7226
7226
|
name: l.name,
|
|
7227
7227
|
options: l.options,
|
|
7228
7228
|
storage: l.storage
|
|
7229
7229
|
}, f = r.reduce((v, g) => {
|
|
7230
|
-
const y =
|
|
7230
|
+
const y = T(g, "extendNodeSchema", c);
|
|
7231
7231
|
return {
|
|
7232
7232
|
...v,
|
|
7233
7233
|
...y ? y(l) : {}
|
|
7234
7234
|
};
|
|
7235
7235
|
}, {}), d = Uu({
|
|
7236
7236
|
...f,
|
|
7237
|
-
content: R(
|
|
7238
|
-
marks: R(
|
|
7239
|
-
group: R(
|
|
7240
|
-
inline: R(
|
|
7241
|
-
atom: R(
|
|
7242
|
-
selectable: R(
|
|
7243
|
-
draggable: R(
|
|
7244
|
-
code: R(
|
|
7245
|
-
defining: R(
|
|
7246
|
-
isolating: R(
|
|
7237
|
+
content: R(T(l, "content", c)),
|
|
7238
|
+
marks: R(T(l, "marks", c)),
|
|
7239
|
+
group: R(T(l, "group", c)),
|
|
7240
|
+
inline: R(T(l, "inline", c)),
|
|
7241
|
+
atom: R(T(l, "atom", c)),
|
|
7242
|
+
selectable: R(T(l, "selectable", c)),
|
|
7243
|
+
draggable: R(T(l, "draggable", c)),
|
|
7244
|
+
code: R(T(l, "code", c)),
|
|
7245
|
+
defining: R(T(l, "defining", c)),
|
|
7246
|
+
isolating: R(T(l, "isolating", c)),
|
|
7247
7247
|
attrs: Object.fromEntries(u.map((v) => {
|
|
7248
7248
|
var g;
|
|
7249
7249
|
return [v.name, { default: (g = v == null ? void 0 : v.attribute) === null || g === void 0 ? void 0 : g.default }];
|
|
7250
7250
|
}))
|
|
7251
|
-
}), h = R(
|
|
7251
|
+
}), h = R(T(l, "parseHTML", c));
|
|
7252
7252
|
h && (d.parseDOM = h.map((v) => qu(v, u)));
|
|
7253
|
-
const p =
|
|
7253
|
+
const p = T(l, "renderHTML", c);
|
|
7254
7254
|
p && (d.toDOM = (v) => p({
|
|
7255
7255
|
node: v,
|
|
7256
7256
|
HTMLAttributes: Xa(v, u)
|
|
7257
7257
|
}));
|
|
7258
|
-
const m =
|
|
7258
|
+
const m = T(l, "renderText", c);
|
|
7259
7259
|
return m && (d.toText = m), [l.name, d];
|
|
7260
7260
|
})), a = Object.fromEntries(i.map((l) => {
|
|
7261
7261
|
const u = t.filter((m) => m.type === l.name), c = {
|
|
@@ -7263,25 +7263,25 @@ function n1(r) {
|
|
|
7263
7263
|
options: l.options,
|
|
7264
7264
|
storage: l.storage
|
|
7265
7265
|
}, f = r.reduce((m, v) => {
|
|
7266
|
-
const g =
|
|
7266
|
+
const g = T(v, "extendMarkSchema", c);
|
|
7267
7267
|
return {
|
|
7268
7268
|
...m,
|
|
7269
7269
|
...g ? g(l) : {}
|
|
7270
7270
|
};
|
|
7271
7271
|
}, {}), d = Uu({
|
|
7272
7272
|
...f,
|
|
7273
|
-
inclusive: R(
|
|
7274
|
-
excludes: R(
|
|
7275
|
-
group: R(
|
|
7276
|
-
spanning: R(
|
|
7277
|
-
code: R(
|
|
7273
|
+
inclusive: R(T(l, "inclusive", c)),
|
|
7274
|
+
excludes: R(T(l, "excludes", c)),
|
|
7275
|
+
group: R(T(l, "group", c)),
|
|
7276
|
+
spanning: R(T(l, "spanning", c)),
|
|
7277
|
+
code: R(T(l, "code", c)),
|
|
7278
7278
|
attrs: Object.fromEntries(u.map((m) => {
|
|
7279
7279
|
var v;
|
|
7280
7280
|
return [m.name, { default: (v = m == null ? void 0 : m.attribute) === null || v === void 0 ? void 0 : v.default }];
|
|
7281
7281
|
}))
|
|
7282
|
-
}), h = R(
|
|
7282
|
+
}), h = R(T(l, "parseHTML", c));
|
|
7283
7283
|
h && (d.parseDOM = h.map((m) => qu(m, u)));
|
|
7284
|
-
const p =
|
|
7284
|
+
const p = T(l, "renderHTML", c);
|
|
7285
7285
|
return p && (d.toDOM = (m) => p({
|
|
7286
7286
|
mark: m,
|
|
7287
7287
|
HTMLAttributes: Xa(m, u)
|
|
@@ -7370,7 +7370,7 @@ function js(r) {
|
|
|
7370
7370
|
}), c;
|
|
7371
7371
|
}
|
|
7372
7372
|
function s1(r) {
|
|
7373
|
-
const { editor: e, rules: t } = r, n = new
|
|
7373
|
+
const { editor: e, rules: t } = r, n = new Te({
|
|
7374
7374
|
state: {
|
|
7375
7375
|
init() {
|
|
7376
7376
|
return null;
|
|
@@ -7470,7 +7470,7 @@ function u1(r) {
|
|
|
7470
7470
|
function f1(r) {
|
|
7471
7471
|
const { editor: e, rules: t } = r;
|
|
7472
7472
|
let n = null, i = !1, o = !1;
|
|
7473
|
-
return t.map((a) => new
|
|
7473
|
+
return t.map((a) => new Te({
|
|
7474
7474
|
view(l) {
|
|
7475
7475
|
const u = (c) => {
|
|
7476
7476
|
var f;
|
|
@@ -7530,22 +7530,22 @@ class Wr {
|
|
|
7530
7530
|
editor: this.editor,
|
|
7531
7531
|
type: zs(n.name, this.schema)
|
|
7532
7532
|
};
|
|
7533
|
-
n.type === "mark" && ((i = R(
|
|
7534
|
-
const s =
|
|
7533
|
+
n.type === "mark" && ((i = R(T(n, "keepOnSplit", o))) !== null && i !== void 0 ? i : !0) && this.splittableMarks.push(n.name);
|
|
7534
|
+
const s = T(n, "onBeforeCreate", o);
|
|
7535
7535
|
s && this.editor.on("beforeCreate", s);
|
|
7536
|
-
const a =
|
|
7536
|
+
const a = T(n, "onCreate", o);
|
|
7537
7537
|
a && this.editor.on("create", a);
|
|
7538
|
-
const l =
|
|
7538
|
+
const l = T(n, "onUpdate", o);
|
|
7539
7539
|
l && this.editor.on("update", l);
|
|
7540
|
-
const u =
|
|
7540
|
+
const u = T(n, "onSelectionUpdate", o);
|
|
7541
7541
|
u && this.editor.on("selectionUpdate", u);
|
|
7542
|
-
const c =
|
|
7542
|
+
const c = T(n, "onTransaction", o);
|
|
7543
7543
|
c && this.editor.on("transaction", c);
|
|
7544
|
-
const f =
|
|
7544
|
+
const f = T(n, "onFocus", o);
|
|
7545
7545
|
f && this.editor.on("focus", f);
|
|
7546
|
-
const d =
|
|
7546
|
+
const d = T(n, "onBlur", o);
|
|
7547
7547
|
d && this.editor.on("blur", d);
|
|
7548
|
-
const h =
|
|
7548
|
+
const h = T(n, "onDestroy", o);
|
|
7549
7549
|
h && this.editor.on("destroy", h);
|
|
7550
7550
|
});
|
|
7551
7551
|
}
|
|
@@ -7559,7 +7559,7 @@ class Wr {
|
|
|
7559
7559
|
name: t.name,
|
|
7560
7560
|
options: t.options,
|
|
7561
7561
|
storage: t.storage
|
|
7562
|
-
}, i =
|
|
7562
|
+
}, i = T(t, "addExtensions", n);
|
|
7563
7563
|
return i ? [
|
|
7564
7564
|
t,
|
|
7565
7565
|
...this.flatten(i())
|
|
@@ -7568,7 +7568,7 @@ class Wr {
|
|
|
7568
7568
|
}
|
|
7569
7569
|
static sort(e) {
|
|
7570
7570
|
return e.sort((n, i) => {
|
|
7571
|
-
const o =
|
|
7571
|
+
const o = T(n, "priority") || 100, s = T(i, "priority") || 100;
|
|
7572
7572
|
return o > s ? -1 : o < s ? 1 : 0;
|
|
7573
7573
|
});
|
|
7574
7574
|
}
|
|
@@ -7580,7 +7580,7 @@ class Wr {
|
|
|
7580
7580
|
storage: t.storage,
|
|
7581
7581
|
editor: this.editor,
|
|
7582
7582
|
type: zs(t.name, this.schema)
|
|
7583
|
-
}, i =
|
|
7583
|
+
}, i = T(t, "addCommands", n);
|
|
7584
7584
|
return i ? {
|
|
7585
7585
|
...e,
|
|
7586
7586
|
...i()
|
|
@@ -7595,16 +7595,16 @@ class Wr {
|
|
|
7595
7595
|
storage: s.storage,
|
|
7596
7596
|
editor: e,
|
|
7597
7597
|
type: zs(s.name, this.schema)
|
|
7598
|
-
}, l = [], u =
|
|
7598
|
+
}, l = [], u = T(s, "addKeyboardShortcuts", a);
|
|
7599
7599
|
if (u) {
|
|
7600
7600
|
const h = Object.fromEntries(Object.entries(u()).map(([m, v]) => [m, () => v({ editor: e })])), p = Mb(h);
|
|
7601
7601
|
l.push(p);
|
|
7602
7602
|
}
|
|
7603
|
-
const c =
|
|
7603
|
+
const c = T(s, "addInputRules", a);
|
|
7604
7604
|
Ku(s, e.options.enableInputRules) && c && n.push(...c());
|
|
7605
|
-
const f =
|
|
7605
|
+
const f = T(s, "addPasteRules", a);
|
|
7606
7606
|
Ku(s, e.options.enablePasteRules) && f && i.push(...f());
|
|
7607
|
-
const d =
|
|
7607
|
+
const d = T(s, "addProseMirrorPlugins", a);
|
|
7608
7608
|
if (d) {
|
|
7609
7609
|
const h = d();
|
|
7610
7610
|
l.push(...h);
|
|
@@ -7628,14 +7628,14 @@ class Wr {
|
|
|
7628
7628
|
}
|
|
7629
7629
|
get nodeViews() {
|
|
7630
7630
|
const { editor: e } = this, { nodeExtensions: t } = Zo(this.extensions);
|
|
7631
|
-
return Object.fromEntries(t.filter((n) => !!
|
|
7631
|
+
return Object.fromEntries(t.filter((n) => !!T(n, "addNodeView")).map((n) => {
|
|
7632
7632
|
const i = this.attributes.filter((l) => l.type === n.name), o = {
|
|
7633
7633
|
name: n.name,
|
|
7634
7634
|
options: n.options,
|
|
7635
7635
|
storage: n.storage,
|
|
7636
7636
|
editor: e,
|
|
7637
7637
|
type: ae(n.name, this.schema)
|
|
7638
|
-
}, s =
|
|
7638
|
+
}, s = T(n, "addNodeView", o);
|
|
7639
7639
|
if (!s)
|
|
7640
7640
|
return [];
|
|
7641
7641
|
const a = (l, u, c, f) => {
|
|
@@ -7673,9 +7673,9 @@ class te {
|
|
|
7673
7673
|
}, this.config = {
|
|
7674
7674
|
...this.config,
|
|
7675
7675
|
...e
|
|
7676
|
-
}, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = R(
|
|
7676
|
+
}, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = R(T(this, "addOptions", {
|
|
7677
7677
|
name: this.name
|
|
7678
|
-
}))), this.storage = R(
|
|
7678
|
+
}))), this.storage = R(T(this, "addStorage", {
|
|
7679
7679
|
name: this.name,
|
|
7680
7680
|
options: this.options
|
|
7681
7681
|
})) || {};
|
|
@@ -7685,16 +7685,16 @@ class te {
|
|
|
7685
7685
|
}
|
|
7686
7686
|
configure(e = {}) {
|
|
7687
7687
|
const t = this.extend();
|
|
7688
|
-
return t.options = Qo(this.options, e), t.storage = R(
|
|
7688
|
+
return t.options = Qo(this.options, e), t.storage = R(T(t, "addStorage", {
|
|
7689
7689
|
name: t.name,
|
|
7690
7690
|
options: t.options
|
|
7691
7691
|
})), t;
|
|
7692
7692
|
}
|
|
7693
7693
|
extend(e = {}) {
|
|
7694
7694
|
const t = new te(e);
|
|
7695
|
-
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = R(
|
|
7695
|
+
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = R(T(t, "addOptions", {
|
|
7696
7696
|
name: t.name
|
|
7697
|
-
})), t.storage = R(
|
|
7697
|
+
})), t.storage = R(T(t, "addStorage", {
|
|
7698
7698
|
name: t.name,
|
|
7699
7699
|
options: t.options
|
|
7700
7700
|
})), t;
|
|
@@ -7724,7 +7724,7 @@ const p1 = te.create({
|
|
|
7724
7724
|
name: "clipboardTextSerializer",
|
|
7725
7725
|
addProseMirrorPlugins() {
|
|
7726
7726
|
return [
|
|
7727
|
-
new
|
|
7727
|
+
new Te({
|
|
7728
7728
|
key: new tt("clipboardTextSerializer"),
|
|
7729
7729
|
props: {
|
|
7730
7730
|
clipboardTextSerializer: () => {
|
|
@@ -8182,7 +8182,7 @@ function Xu(r, e) {
|
|
|
8182
8182
|
name: n.name,
|
|
8183
8183
|
options: n.options,
|
|
8184
8184
|
storage: n.storage
|
|
8185
|
-
}, o = R(
|
|
8185
|
+
}, o = R(T(n, "group", i));
|
|
8186
8186
|
return typeof o != "string" ? !1 : o.split(" ").includes("list");
|
|
8187
8187
|
}
|
|
8188
8188
|
const Zu = (r, e) => {
|
|
@@ -8378,7 +8378,7 @@ const S_ = te.create({
|
|
|
8378
8378
|
name: "editable",
|
|
8379
8379
|
addProseMirrorPlugins() {
|
|
8380
8380
|
return [
|
|
8381
|
-
new
|
|
8381
|
+
new Te({
|
|
8382
8382
|
key: new tt("editable"),
|
|
8383
8383
|
props: {
|
|
8384
8384
|
editable: () => this.editor.options.editable
|
|
@@ -8391,7 +8391,7 @@ const S_ = te.create({
|
|
|
8391
8391
|
addProseMirrorPlugins() {
|
|
8392
8392
|
const { editor: r } = this;
|
|
8393
8393
|
return [
|
|
8394
|
-
new
|
|
8394
|
+
new Te({
|
|
8395
8395
|
key: new tt("focusEvents"),
|
|
8396
8396
|
props: {
|
|
8397
8397
|
handleDOMEvents: {
|
|
@@ -8457,7 +8457,7 @@ const S_ = te.create({
|
|
|
8457
8457
|
},
|
|
8458
8458
|
addProseMirrorPlugins() {
|
|
8459
8459
|
return [
|
|
8460
|
-
new
|
|
8460
|
+
new Te({
|
|
8461
8461
|
key: new tt("clearDocument"),
|
|
8462
8462
|
appendTransaction: (r, e, t) => {
|
|
8463
8463
|
if (!(r.some((p) => p.docChanged) && !e.doc.eq(t.doc)))
|
|
@@ -8482,7 +8482,7 @@ const S_ = te.create({
|
|
|
8482
8482
|
name: "tabindex",
|
|
8483
8483
|
addProseMirrorPlugins() {
|
|
8484
8484
|
return [
|
|
8485
|
-
new
|
|
8485
|
+
new Te({
|
|
8486
8486
|
key: new tt("tabindex"),
|
|
8487
8487
|
props: {
|
|
8488
8488
|
attributes: this.editor.isEditable ? { tabindex: "0" } : {}
|
|
@@ -8918,9 +8918,9 @@ class je {
|
|
|
8918
8918
|
}, this.config = {
|
|
8919
8919
|
...this.config,
|
|
8920
8920
|
...e
|
|
8921
|
-
}, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = R(
|
|
8921
|
+
}, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = R(T(this, "addOptions", {
|
|
8922
8922
|
name: this.name
|
|
8923
|
-
}))), this.storage = R(
|
|
8923
|
+
}))), this.storage = R(T(this, "addStorage", {
|
|
8924
8924
|
name: this.name,
|
|
8925
8925
|
options: this.options
|
|
8926
8926
|
})) || {};
|
|
@@ -8930,16 +8930,16 @@ class je {
|
|
|
8930
8930
|
}
|
|
8931
8931
|
configure(e = {}) {
|
|
8932
8932
|
const t = this.extend();
|
|
8933
|
-
return t.options = Qo(this.options, e), t.storage = R(
|
|
8933
|
+
return t.options = Qo(this.options, e), t.storage = R(T(t, "addStorage", {
|
|
8934
8934
|
name: t.name,
|
|
8935
8935
|
options: t.options
|
|
8936
8936
|
})), t;
|
|
8937
8937
|
}
|
|
8938
8938
|
extend(e = {}) {
|
|
8939
8939
|
const t = new je(e);
|
|
8940
|
-
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = R(
|
|
8940
|
+
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = R(T(t, "addOptions", {
|
|
8941
8941
|
name: t.name
|
|
8942
|
-
})), t.storage = R(
|
|
8942
|
+
})), t.storage = R(T(t, "addStorage", {
|
|
8943
8943
|
name: t.name,
|
|
8944
8944
|
options: t.options
|
|
8945
8945
|
})), t;
|
|
@@ -8953,9 +8953,9 @@ class Ot {
|
|
|
8953
8953
|
}, this.config = {
|
|
8954
8954
|
...this.config,
|
|
8955
8955
|
...e
|
|
8956
|
-
}, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = R(
|
|
8956
|
+
}, this.name = this.config.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = R(T(this, "addOptions", {
|
|
8957
8957
|
name: this.name
|
|
8958
|
-
}))), this.storage = R(
|
|
8958
|
+
}))), this.storage = R(T(this, "addStorage", {
|
|
8959
8959
|
name: this.name,
|
|
8960
8960
|
options: this.options
|
|
8961
8961
|
})) || {};
|
|
@@ -8965,16 +8965,16 @@ class Ot {
|
|
|
8965
8965
|
}
|
|
8966
8966
|
configure(e = {}) {
|
|
8967
8967
|
const t = this.extend();
|
|
8968
|
-
return t.options = Qo(this.options, e), t.storage = R(
|
|
8968
|
+
return t.options = Qo(this.options, e), t.storage = R(T(t, "addStorage", {
|
|
8969
8969
|
name: t.name,
|
|
8970
8970
|
options: t.options
|
|
8971
8971
|
})), t;
|
|
8972
8972
|
}
|
|
8973
8973
|
extend(e = {}) {
|
|
8974
8974
|
const t = new Ot(e);
|
|
8975
|
-
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = R(
|
|
8975
|
+
return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = R(T(t, "addOptions", {
|
|
8976
8976
|
name: t.name
|
|
8977
|
-
})), t.storage = R(
|
|
8977
|
+
})), t.storage = R(T(t, "addStorage", {
|
|
8978
8978
|
name: t.name,
|
|
8979
8979
|
options: t.options
|
|
8980
8980
|
})), t;
|
|
@@ -8998,7 +8998,7 @@ function V_(r) {
|
|
|
8998
8998
|
}
|
|
8999
8999
|
});
|
|
9000
9000
|
}
|
|
9001
|
-
var
|
|
9001
|
+
var Ce = "top", Ve = "bottom", He = "right", Oe = "left", ts = "auto", fi = [Ce, Ve, He, Oe], cn = "start", ii = "end", H_ = "clippingParents", Nm = "viewport", On = "popper", W_ = "reference", ef = /* @__PURE__ */ fi.reduce(function(r, e) {
|
|
9002
9002
|
return r.concat([e + "-" + cn, e + "-" + ii]);
|
|
9003
9003
|
}, []), Rm = /* @__PURE__ */ [].concat(fi, [ts]).reduce(function(r, e) {
|
|
9004
9004
|
return r.concat([e, e + "-" + cn, e + "-" + ii]);
|
|
@@ -9184,9 +9184,9 @@ var sS = function(e, t) {
|
|
|
9184
9184
|
})) : e, Lm(typeof e != "number" ? e : zm(e, fi));
|
|
9185
9185
|
};
|
|
9186
9186
|
function aS(r) {
|
|
9187
|
-
var e, t = r.state, n = r.name, i = r.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Qe(t.placement), l = ql(a), u = [
|
|
9187
|
+
var e, t = r.state, n = r.name, i = r.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, a = Qe(t.placement), l = ql(a), u = [Oe, He].indexOf(a) >= 0, c = u ? "height" : "width";
|
|
9188
9188
|
if (!(!o || !s)) {
|
|
9189
|
-
var f = sS(i.padding, t), d = Wl(o), h = l === "y" ?
|
|
9189
|
+
var f = sS(i.padding, t), d = Wl(o), h = l === "y" ? Ce : Oe, p = l === "y" ? Ve : He, m = t.rects.reference[c] + t.rects.reference[l] - s[l] - t.rects.popper[c], v = s[l] - t.rects.reference[l], g = di(o), y = g ? l === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, D = m / 2 - v / 2, _ = f[h], x = y - d[c] - f[p], b = y / 2 - d[c] / 2 + D, C = qn(_, b, x), E = l;
|
|
9190
9190
|
t.modifiersData[n] = (e = {}, e[E] = C, e.centerOffset = C - b, e);
|
|
9191
9191
|
}
|
|
9192
9192
|
}
|
|
@@ -9234,15 +9234,15 @@ function rf(r) {
|
|
|
9234
9234
|
y: m
|
|
9235
9235
|
};
|
|
9236
9236
|
h = v.x, m = v.y;
|
|
9237
|
-
var g = s.hasOwnProperty("x"), y = s.hasOwnProperty("y"), D =
|
|
9237
|
+
var g = s.hasOwnProperty("x"), y = s.hasOwnProperty("y"), D = Oe, _ = Ce, x = window;
|
|
9238
9238
|
if (u) {
|
|
9239
9239
|
var b = di(t), C = "clientHeight", E = "clientWidth";
|
|
9240
|
-
if (b === rt(t) && (b = Zt(t), et(b).position !== "static" && a === "absolute" && (C = "scrollHeight", E = "scrollWidth")), b = b, i ===
|
|
9240
|
+
if (b === rt(t) && (b = Zt(t), et(b).position !== "static" && a === "absolute" && (C = "scrollHeight", E = "scrollWidth")), b = b, i === Ce || (i === Oe || i === He) && o === ii) {
|
|
9241
9241
|
_ = Ve;
|
|
9242
9242
|
var F = f && b === x && x.visualViewport ? x.visualViewport.height : b[C];
|
|
9243
9243
|
m -= F - n.height, m *= l ? 1 : -1;
|
|
9244
9244
|
}
|
|
9245
|
-
if (i ===
|
|
9245
|
+
if (i === Oe || (i === Ce || i === Ve) && o === ii) {
|
|
9246
9246
|
D = He;
|
|
9247
9247
|
var V = f && b === x && x.visualViewport ? x.visualViewport.width : b[E];
|
|
9248
9248
|
h -= V - n.width, h *= l ? 1 : -1;
|
|
@@ -9418,7 +9418,7 @@ function ES(r, e, t) {
|
|
|
9418
9418
|
function Vm(r) {
|
|
9419
9419
|
var e = r.reference, t = r.element, n = r.placement, i = n ? Qe(n) : null, o = n ? hn(n) : null, s = e.x + e.width / 2 - t.width / 2, a = e.y + e.height / 2 - t.height / 2, l;
|
|
9420
9420
|
switch (i) {
|
|
9421
|
-
case
|
|
9421
|
+
case Ce:
|
|
9422
9422
|
l = {
|
|
9423
9423
|
x: s,
|
|
9424
9424
|
y: e.y - t.height
|
|
@@ -9436,7 +9436,7 @@ function Vm(r) {
|
|
|
9436
9436
|
y: a
|
|
9437
9437
|
};
|
|
9438
9438
|
break;
|
|
9439
|
-
case
|
|
9439
|
+
case Oe:
|
|
9440
9440
|
l = {
|
|
9441
9441
|
x: e.x - t.width,
|
|
9442
9442
|
y: a
|
|
@@ -9478,7 +9478,7 @@ function oi(r, e) {
|
|
|
9478
9478
|
if (c === On && F) {
|
|
9479
9479
|
var V = F[i];
|
|
9480
9480
|
Object.keys(E).forEach(function(j) {
|
|
9481
|
-
var Q = [He, Ve].indexOf(j) >= 0 ? 1 : -1, J = [
|
|
9481
|
+
var Q = [He, Ve].indexOf(j) >= 0 ? 1 : -1, J = [Ce, Ve].indexOf(j) >= 0 ? "y" : "x";
|
|
9482
9482
|
E[j] += V[J] * Q;
|
|
9483
9483
|
});
|
|
9484
9484
|
}
|
|
@@ -9523,13 +9523,13 @@ function xS(r) {
|
|
|
9523
9523
|
allowedAutoPlacements: m
|
|
9524
9524
|
}) : Tt);
|
|
9525
9525
|
}, []), x = e.rects.reference, b = e.rects.popper, C = /* @__PURE__ */ new Map(), E = !0, F = _[0], V = 0; V < _.length; V++) {
|
|
9526
|
-
var j = _[V], Q = Qe(j), J = hn(j) === cn, st = [
|
|
9526
|
+
var j = _[V], Q = Qe(j), J = hn(j) === cn, st = [Ce, Ve].indexOf(Q) >= 0, Ee = st ? "width" : "height", Y = oi(e, {
|
|
9527
9527
|
placement: j,
|
|
9528
9528
|
boundary: c,
|
|
9529
9529
|
rootBoundary: f,
|
|
9530
9530
|
altBoundary: d,
|
|
9531
9531
|
padding: u
|
|
9532
|
-
}), De = st ? J ? He :
|
|
9532
|
+
}), De = st ? J ? He : Oe : J ? Ve : Ce;
|
|
9533
9533
|
x[Ee] > b[Ee] && (De = qi(De));
|
|
9534
9534
|
var Tr = qi(De), K = [];
|
|
9535
9535
|
if (o && K.push(Y[Q] <= 0), a && K.push(Y[De] <= 0, Y[Tr] <= 0), K.every(function(Mr) {
|
|
@@ -9581,7 +9581,7 @@ function sf(r, e, t) {
|
|
|
9581
9581
|
};
|
|
9582
9582
|
}
|
|
9583
9583
|
function af(r) {
|
|
9584
|
-
return [
|
|
9584
|
+
return [Ce, He, Ve, Oe].some(function(e) {
|
|
9585
9585
|
return r[e] >= 0;
|
|
9586
9586
|
});
|
|
9587
9587
|
}
|
|
@@ -9609,10 +9609,10 @@ const kS = {
|
|
|
9609
9609
|
fn: OS
|
|
9610
9610
|
};
|
|
9611
9611
|
function AS(r, e, t) {
|
|
9612
|
-
var n = Qe(r), i = [
|
|
9612
|
+
var n = Qe(r), i = [Oe, Ce].indexOf(n) >= 0 ? -1 : 1, o = typeof t == "function" ? t(Object.assign({}, e, {
|
|
9613
9613
|
placement: r
|
|
9614
9614
|
})) : t, s = o[0], a = o[1];
|
|
9615
|
-
return s = s || 0, a = (a || 0) * i, [
|
|
9615
|
+
return s = s || 0, a = (a || 0) * i, [Oe, He].indexOf(n) >= 0 ? {
|
|
9616
9616
|
x: a,
|
|
9617
9617
|
y: s
|
|
9618
9618
|
} : {
|
|
@@ -9672,14 +9672,14 @@ function NS(r) {
|
|
|
9672
9672
|
};
|
|
9673
9673
|
if (!!b) {
|
|
9674
9674
|
if (o) {
|
|
9675
|
-
var J, st = _ === "y" ?
|
|
9675
|
+
var J, st = _ === "y" ? Ce : Oe, Ee = _ === "y" ? Ve : He, Y = _ === "y" ? "height" : "width", De = b[_], Tr = De + v[st], K = De - v[Ee], X = h ? -E[Y] / 2 : 0, St = y === cn ? C[Y] : E[Y], wn = y === cn ? -E[Y] : -C[Y], bi = e.elements.arrow, Mr = h && bi ? Wl(bi) : {
|
|
9676
9676
|
width: 0,
|
|
9677
9677
|
height: 0
|
|
9678
9678
|
}, Tt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Bm(), xn = Tt[st], _i = Tt[Ee], tr = qn(0, C[Y], Mr[Y]), bs = D ? C[Y] / 2 - X - tr - xn - V.mainAxis : St - tr - xn - V.mainAxis, Jg = D ? -C[Y] / 2 + X + tr + _i + V.mainAxis : wn + tr + _i + V.mainAxis, _s = e.elements.arrow && di(e.elements.arrow), Yg = _s ? _ === "y" ? _s.clientTop || 0 : _s.clientLeft || 0 : 0, Hc = (J = j == null ? void 0 : j[_]) != null ? J : 0, Xg = De + bs - Hc - Yg, Zg = De + Jg - Hc, Wc = qn(h ? mo(Tr, Xg) : Tr, De, h ? mr(K, Zg) : K);
|
|
9679
9679
|
b[_] = Wc, Q[_] = Wc - De;
|
|
9680
9680
|
}
|
|
9681
9681
|
if (a) {
|
|
9682
|
-
var qc, Qg = _ === "x" ?
|
|
9682
|
+
var qc, Qg = _ === "x" ? Ce : Oe, ey = _ === "x" ? Ve : He, rr = b[x], Si = x === "y" ? "height" : "width", Uc = rr + v[Qg], Kc = rr - v[ey], Ss = [Ce, Oe].indexOf(g) !== -1, Gc = (qc = j == null ? void 0 : j[x]) != null ? qc : 0, Jc = Ss ? Uc : rr - C[Si] - E[Si] - Gc + V.altAxis, Yc = Ss ? rr + C[Si] + E[Si] - Gc - V.altAxis : Kc, Xc = h && Ss ? oS(Jc, rr, Yc) : qn(h ? Jc : Uc, rr, h ? Yc : Kc);
|
|
9683
9683
|
b[x] = Xc, Q[x] = Xc - rr;
|
|
9684
9684
|
}
|
|
9685
9685
|
e.modifiersData[n] = Q;
|
|
@@ -10039,7 +10039,7 @@ const ZS = {
|
|
|
10039
10039
|
get blocks() {
|
|
10040
10040
|
return [this.PARAGRAPH, this.LIST, this.HEADING];
|
|
10041
10041
|
}
|
|
10042
|
-
}),
|
|
10042
|
+
}), we = Object.freeze({
|
|
10043
10043
|
DISC: "disc",
|
|
10044
10044
|
CIRCLE: "circle",
|
|
10045
10045
|
SQUARE: "square",
|
|
@@ -10144,7 +10144,7 @@ const tE = {
|
|
|
10144
10144
|
}
|
|
10145
10145
|
},
|
|
10146
10146
|
setup(r) {
|
|
10147
|
-
return { classes:
|
|
10147
|
+
return { classes: A(() => ({
|
|
10148
10148
|
"zw-toolbar__divider--vertical": r.vertical,
|
|
10149
10149
|
"zw-toolbar__divider--horizontal": r.horizontal
|
|
10150
10150
|
})) };
|
|
@@ -10182,7 +10182,7 @@ var aE = /* @__PURE__ */ $(
|
|
|
10182
10182
|
oE,
|
|
10183
10183
|
!1,
|
|
10184
10184
|
lE,
|
|
10185
|
-
"
|
|
10185
|
+
"a6ed2ebe",
|
|
10186
10186
|
null,
|
|
10187
10187
|
null
|
|
10188
10188
|
);
|
|
@@ -10268,7 +10268,7 @@ const gE = {
|
|
|
10268
10268
|
}
|
|
10269
10269
|
},
|
|
10270
10270
|
setup(r) {
|
|
10271
|
-
return { classes:
|
|
10271
|
+
return { classes: A(() => ({
|
|
10272
10272
|
[`zw-button--${r.skin}`]: r.skin !== "none",
|
|
10273
10273
|
"zw-button--active": r.active,
|
|
10274
10274
|
"zw-button--icon": r.icon
|
|
@@ -10494,10 +10494,10 @@ const iD = {
|
|
|
10494
10494
|
}
|
|
10495
10495
|
},
|
|
10496
10496
|
setup(r) {
|
|
10497
|
-
const e =
|
|
10497
|
+
const e = A(() => tD(r.name)), t = A(() => isNaN(Number(r.size)) ? r.size : `${r.size}px`), n = A(() => r.size ? {
|
|
10498
10498
|
"--zw-icon-width": t.value,
|
|
10499
10499
|
"--zw-icon-height": t.value
|
|
10500
|
-
} : null), i =
|
|
10500
|
+
} : null), i = A(() => ({
|
|
10501
10501
|
"zw-icon--auto-color": r.autoColor
|
|
10502
10502
|
}));
|
|
10503
10503
|
return {
|
|
@@ -10524,9 +10524,9 @@ function sD(r) {
|
|
|
10524
10524
|
const ye = /* @__PURE__ */ function() {
|
|
10525
10525
|
return oD.exports;
|
|
10526
10526
|
}();
|
|
10527
|
-
var
|
|
10527
|
+
var xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ci = function(r) {
|
|
10528
10528
|
return r && r.Math == Math && r;
|
|
10529
|
-
}, le = Ci(typeof globalThis == "object" && globalThis) || Ci(typeof window == "object" && window) || Ci(typeof self == "object" && self) || Ci(typeof
|
|
10529
|
+
}, le = Ci(typeof globalThis == "object" && globalThis) || Ci(typeof window == "object" && window) || Ci(typeof self == "object" && self) || Ci(typeof xe == "object" && xe) || function() {
|
|
10530
10530
|
return this;
|
|
10531
10531
|
}() || Function("return this")(), ns = { exports: {} }, yf = le, aD = Object.defineProperty, Yl = function(r, e) {
|
|
10532
10532
|
try {
|
|
@@ -11586,7 +11586,7 @@ var Nd = le, og = uv, c2 = fv, zn = oA, ga = bn, sg = Se, ya = sg("iterator"), R
|
|
|
11586
11586
|
for (var _a in og)
|
|
11587
11587
|
ag(Nd[_a] && Nd[_a].prototype, _a);
|
|
11588
11588
|
ag(c2, "DOMTokenList");
|
|
11589
|
-
var lg = "Expected a function", Pd = 0 / 0, u2 = "[object Symbol]", f2 = /^\s+|\s+$/g, d2 = /^[-+]0x[0-9a-f]+$/i, h2 = /^0b[01]+$/i, p2 = /^0o[0-7]+$/i, m2 = parseInt, v2 = typeof
|
|
11589
|
+
var lg = "Expected a function", Pd = 0 / 0, u2 = "[object Symbol]", f2 = /^\s+|\s+$/g, d2 = /^[-+]0x[0-9a-f]+$/i, h2 = /^0b[01]+$/i, p2 = /^0o[0-7]+$/i, m2 = parseInt, v2 = typeof xe == "object" && xe && xe.Object === Object && xe, g2 = typeof self == "object" && self && self.Object === Object && self, y2 = v2 || g2 || Function("return this")(), b2 = Object.prototype, _2 = b2.toString, S2 = Math.max, E2 = Math.min, Sa = function() {
|
|
11590
11590
|
return y2.Date.now();
|
|
11591
11591
|
};
|
|
11592
11592
|
function D2(r, e, t) {
|
|
@@ -11671,7 +11671,7 @@ function Bd(r) {
|
|
|
11671
11671
|
var t = h2.test(r);
|
|
11672
11672
|
return t || p2.test(r) ? m2(r.slice(2), t ? 2 : 8) : d2.test(r) ? Pd : +r;
|
|
11673
11673
|
}
|
|
11674
|
-
var Ld = w2, O2 = "Expected a function", zd = 0 / 0, k2 = "[object Symbol]", A2 = /^\s+|\s+$/g, T2 = /^[-+]0x[0-9a-f]+$/i, M2 = /^0b[01]+$/i, $2 = /^0o[0-7]+$/i, F2 = parseInt, I2 = typeof
|
|
11674
|
+
var Ld = w2, O2 = "Expected a function", zd = 0 / 0, k2 = "[object Symbol]", A2 = /^\s+|\s+$/g, T2 = /^[-+]0x[0-9a-f]+$/i, M2 = /^0b[01]+$/i, $2 = /^0o[0-7]+$/i, F2 = parseInt, I2 = typeof xe == "object" && xe && xe.Object === Object && xe, N2 = typeof self == "object" && self && self.Object === Object && self, R2 = I2 || N2 || Function("return this")(), P2 = Object.prototype, B2 = P2.toString, L2 = Math.max, z2 = Math.min, Ea = function() {
|
|
11675
11675
|
return R2.Date.now();
|
|
11676
11676
|
};
|
|
11677
11677
|
function j2(r, e, t) {
|
|
@@ -11746,7 +11746,7 @@ function jd(r) {
|
|
|
11746
11746
|
var t = M2.test(r);
|
|
11747
11747
|
return t || $2.test(r) ? F2(r.slice(2), t ? 2 : 8) : T2.test(r) ? zd : +r;
|
|
11748
11748
|
}
|
|
11749
|
-
var Vd = j2, W2 = "Expected a function", cg = "__lodash_hash_undefined__", q2 = "[object Function]", U2 = "[object GeneratorFunction]", K2 = /[\\^$.*+?()[\]{}|]/g, G2 = /^\[object .+?Constructor\]$/, J2 = typeof
|
|
11749
|
+
var Vd = j2, W2 = "Expected a function", cg = "__lodash_hash_undefined__", q2 = "[object Function]", U2 = "[object GeneratorFunction]", K2 = /[\\^$.*+?()[\]{}|]/g, G2 = /^\[object .+?Constructor\]$/, J2 = typeof xe == "object" && xe && xe.Object === Object && xe, Y2 = typeof self == "object" && self && self.Object === Object && self, ug = J2 || Y2 || Function("return this")();
|
|
11750
11750
|
function X2(r, e) {
|
|
11751
11751
|
return r == null ? void 0 : r[e];
|
|
11752
11752
|
}
|
|
@@ -12782,7 +12782,7 @@ function Tg({ valueRef: r, format: e = $F }) {
|
|
|
12782
12782
|
return rn(r, () => t.value = e(r.value)), t;
|
|
12783
12783
|
}
|
|
12784
12784
|
function wo(r) {
|
|
12785
|
-
return
|
|
12785
|
+
return A(() => {
|
|
12786
12786
|
var e;
|
|
12787
12787
|
return ((e = r.value) == null ? void 0 : e.$el) || r.value;
|
|
12788
12788
|
});
|
|
@@ -13016,7 +13016,7 @@ const JF = {
|
|
|
13016
13016
|
const t = Tg({
|
|
13017
13017
|
valueRef: fe(r, "value"),
|
|
13018
13018
|
format: Number
|
|
13019
|
-
}), n =
|
|
13019
|
+
}), n = A(() => {
|
|
13020
13020
|
const o = Number(r.min), s = Number(r.max), a = Number(r.step);
|
|
13021
13021
|
return { "--zw-range-progress": `${(Math.ceil(t.value / a) * a - o) / (s - o) * 100}%` };
|
|
13022
13022
|
});
|
|
@@ -13148,7 +13148,7 @@ const tI = {
|
|
|
13148
13148
|
max: t(r.max)
|
|
13149
13149
|
}), i = (l) => n.change(l.target.value), o = () => n.increment(Number(r.step)), s = () => n.decrement(Number(r.step));
|
|
13150
13150
|
return {
|
|
13151
|
-
elementClasses:
|
|
13151
|
+
elementClasses: A(() => ({
|
|
13152
13152
|
"zw-number-field--disabled": r.disabled
|
|
13153
13153
|
})),
|
|
13154
13154
|
tempValue: n.temp,
|
|
@@ -13424,7 +13424,7 @@ const cI = {
|
|
|
13424
13424
|
}
|
|
13425
13425
|
},
|
|
13426
13426
|
setup(r) {
|
|
13427
|
-
const e = r.toggler || yi(), t = q(null), n =
|
|
13427
|
+
const e = r.toggler || yi(), t = q(null), n = A(() => ({
|
|
13428
13428
|
"--zw-modal-max-height": `${r.maxHeight}px`,
|
|
13429
13429
|
"--zw-modal-max-width": `${r.maxWidth}px`
|
|
13430
13430
|
}));
|
|
@@ -13510,7 +13510,7 @@ const pI = {
|
|
|
13510
13510
|
}
|
|
13511
13511
|
},
|
|
13512
13512
|
setup(r, { emit: e }) {
|
|
13513
|
-
const t = (i) => e("input", i.target.value), n =
|
|
13513
|
+
const t = (i) => e("input", i.target.value), n = A(() => r.label.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (i, o) => o.toUpperCase()));
|
|
13514
13514
|
return { onInput: t, fieldId: n };
|
|
13515
13515
|
}
|
|
13516
13516
|
}, Eh = {};
|
|
@@ -13605,7 +13605,7 @@ function DI({ optionsRef: r, inputRef: e, stateless: t, onChange: n }) {
|
|
|
13605
13605
|
return a(), rn(e, a), { activeOption: i, activateOption: o };
|
|
13606
13606
|
}
|
|
13607
13607
|
function Ic(r) {
|
|
13608
|
-
return
|
|
13608
|
+
return A(() => {
|
|
13609
13609
|
var e, t;
|
|
13610
13610
|
return ((e = r.value) == null ? void 0 : e.title) || ((t = r.value) == null ? void 0 : t.id) || "";
|
|
13611
13611
|
});
|
|
@@ -13655,7 +13655,7 @@ const CI = {
|
|
|
13655
13655
|
}
|
|
13656
13656
|
},
|
|
13657
13657
|
setup(r) {
|
|
13658
|
-
const e = z(Wt.ACTIVE_MANAGER), t = z(Wt.TOGGLER), n = fe(r, "color"), i = Ic(e.activeOption), o =
|
|
13658
|
+
const e = z(Wt.ACTIVE_MANAGER), t = z(Wt.TOGGLER), n = fe(r, "color"), i = Ic(e.activeOption), o = A(() => ({
|
|
13659
13659
|
"zw-dropdown__activator--active": t.isOpened.value,
|
|
13660
13660
|
"zw-dropdown__activator--gray": n.value === "gray"
|
|
13661
13661
|
}));
|
|
@@ -13709,10 +13709,10 @@ const $I = {
|
|
|
13709
13709
|
}
|
|
13710
13710
|
},
|
|
13711
13711
|
setup(r) {
|
|
13712
|
-
const e = z(Wt.ACTIVE_MANAGER), t = z(Wt.TOGGLER), n = z(Wt.SESSION), i = q(null), o = NF(), s = Ic(fe(r, "option")), a =
|
|
13712
|
+
const e = z(Wt.ACTIVE_MANAGER), t = z(Wt.TOGGLER), n = z(Wt.SESSION), i = q(null), o = NF(), s = Ic(fe(r, "option")), a = A(() => {
|
|
13713
13713
|
var c;
|
|
13714
13714
|
return r.option.id === ((c = e.activeOption.value) == null ? void 0 : c.id);
|
|
13715
|
-
}), l =
|
|
13715
|
+
}), l = A(() => ({ "zw-dropdown__option--active": a.value }));
|
|
13716
13716
|
function u() {
|
|
13717
13717
|
e.activateOption(r.option), t.close();
|
|
13718
13718
|
}
|
|
@@ -13991,7 +13991,7 @@ const er = /* @__PURE__ */ function() {
|
|
|
13991
13991
|
return rN.exports;
|
|
13992
13992
|
}();
|
|
13993
13993
|
function iN({ pickerRef: r, initialColorRef: e, onClosed: t, onBeforeOpened: n }) {
|
|
13994
|
-
const i = q(e.value), o =
|
|
13994
|
+
const i = q(e.value), o = A(() => {
|
|
13995
13995
|
var c, f;
|
|
13996
13996
|
return (f = (c = r.value) == null ? void 0 : c.isVisible) != null ? f : !1;
|
|
13997
13997
|
});
|
|
@@ -14197,12 +14197,12 @@ const hN = [ne.FONT_SIZE, ne.FONT_WEIGHT], pN = {
|
|
|
14197
14197
|
tooltip: pe
|
|
14198
14198
|
},
|
|
14199
14199
|
setup() {
|
|
14200
|
-
const r = z(L.EDITOR), e = r.commands.getPresetList(), t = r.commands.getPreset(), n = r.commands.getPresetCustomization(), i =
|
|
14200
|
+
const r = z(L.EDITOR), e = r.commands.getPresetList(), t = r.commands.getPreset(), n = r.commands.getPresetCustomization(), i = A(() => {
|
|
14201
14201
|
const { attributes: l, marks: u } = n.value;
|
|
14202
14202
|
return !!l.length || !!u.length;
|
|
14203
14203
|
});
|
|
14204
14204
|
return {
|
|
14205
|
-
options:
|
|
14205
|
+
options: A(() => e.value.map((l) => ({
|
|
14206
14206
|
id: l.id,
|
|
14207
14207
|
title: l.name
|
|
14208
14208
|
}))),
|
|
@@ -14237,7 +14237,7 @@ function gN({ limit: r }) {
|
|
|
14237
14237
|
function n(o) {
|
|
14238
14238
|
t.value = Array.from(/* @__PURE__ */ new Set([o, ...t.value])).slice(0, r), e.setItem($h, t.value);
|
|
14239
14239
|
}
|
|
14240
|
-
const i =
|
|
14240
|
+
const i = A(() => !t.value.length);
|
|
14241
14241
|
return { fonts: t, isEmpty: i, add: n };
|
|
14242
14242
|
}
|
|
14243
14243
|
var yN = function() {
|
|
@@ -14288,10 +14288,10 @@ const _N = {
|
|
|
14288
14288
|
tooltip: pe
|
|
14289
14289
|
},
|
|
14290
14290
|
setup() {
|
|
14291
|
-
const r = z(L.FONTS), e = z(L.EDITOR), t = gN({ limit: 5 }), n =
|
|
14291
|
+
const r = z(L.FONTS), e = z(L.EDITOR), t = gN({ limit: 5 }), n = A(() => ({
|
|
14292
14292
|
id: "Recently Used",
|
|
14293
14293
|
options: t.fonts.value.map((l) => ({ id: l }))
|
|
14294
|
-
})), i =
|
|
14294
|
+
})), i = A(() => {
|
|
14295
14295
|
var u, c;
|
|
14296
14296
|
const l = {};
|
|
14297
14297
|
for (const f of r)
|
|
@@ -14359,7 +14359,7 @@ const CN = {
|
|
|
14359
14359
|
tooltip: pe
|
|
14360
14360
|
},
|
|
14361
14361
|
setup() {
|
|
14362
|
-
const r = z(L.EDITOR), e = r.commands.getFont(), t =
|
|
14362
|
+
const r = z(L.EDITOR), e = r.commands.getFont(), t = A(() => e.value.weights.map((o) => ({ id: o }))), n = r.commands.getFontWeight();
|
|
14363
14363
|
return {
|
|
14364
14364
|
options: t,
|
|
14365
14365
|
currentValue: n,
|
|
@@ -14415,7 +14415,7 @@ const $N = {
|
|
|
14415
14415
|
tooltip: pe
|
|
14416
14416
|
},
|
|
14417
14417
|
setup() {
|
|
14418
|
-
const r = z(L.FONT_SIZES), e = z(L.EDITOR), t =
|
|
14418
|
+
const r = z(L.FONT_SIZES), e = z(L.EDITOR), t = A(() => r.map((o) => ({ id: o, title: `${o}px` }))), n = e.commands.getFontSize();
|
|
14419
14419
|
return {
|
|
14420
14420
|
options: t,
|
|
14421
14421
|
currentValue: n,
|
|
@@ -14692,7 +14692,7 @@ const tR = {
|
|
|
14692
14692
|
setup() {
|
|
14693
14693
|
const r = z(L.EDITOR);
|
|
14694
14694
|
return {
|
|
14695
|
-
currentValue:
|
|
14695
|
+
currentValue: A(() => r.commands.isUnderline().value),
|
|
14696
14696
|
apply: () => r.chain().focus().toggleUnderline().run()
|
|
14697
14697
|
};
|
|
14698
14698
|
}
|
|
@@ -14810,7 +14810,7 @@ const hR = {
|
|
|
14810
14810
|
setup() {
|
|
14811
14811
|
const r = z(L.EDITOR);
|
|
14812
14812
|
return {
|
|
14813
|
-
currentValue:
|
|
14813
|
+
currentValue: A(() => r.isActive("superscript")),
|
|
14814
14814
|
apply: () => r.chain().focus().toggleSuperscript().run()
|
|
14815
14815
|
};
|
|
14816
14816
|
}
|
|
@@ -15190,7 +15190,30 @@ const Lg = /* @__PURE__ */ function() {
|
|
|
15190
15190
|
}();
|
|
15191
15191
|
var LR = function() {
|
|
15192
15192
|
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
15193
|
-
return n("
|
|
15193
|
+
return n("div", {
|
|
15194
|
+
staticClass: "zpa-list-control"
|
|
15195
|
+
}, [n("Button", {
|
|
15196
|
+
directives: [{
|
|
15197
|
+
name: "tooltip",
|
|
15198
|
+
rawName: "v-tooltip",
|
|
15199
|
+
value: "Bullets",
|
|
15200
|
+
expression: "'Bullets'"
|
|
15201
|
+
}],
|
|
15202
|
+
attrs: {
|
|
15203
|
+
icon: "",
|
|
15204
|
+
skin: "toolbar",
|
|
15205
|
+
active: e.isCurrentListSelected
|
|
15206
|
+
},
|
|
15207
|
+
on: {
|
|
15208
|
+
click: e.toggle
|
|
15209
|
+
}
|
|
15210
|
+
}, [n("Icon", {
|
|
15211
|
+
attrs: {
|
|
15212
|
+
name: e.currentIcon,
|
|
15213
|
+
size: "28px",
|
|
15214
|
+
"auto-color": ""
|
|
15215
|
+
}
|
|
15216
|
+
})], 1), n("Dropdown", {
|
|
15194
15217
|
attrs: {
|
|
15195
15218
|
value: e.currentValue,
|
|
15196
15219
|
options: e.$options.listTypes
|
|
@@ -15212,15 +15235,16 @@ var LR = function() {
|
|
|
15212
15235
|
attrs: {
|
|
15213
15236
|
icon: "",
|
|
15214
15237
|
skin: "toolbar",
|
|
15215
|
-
active: a
|
|
15238
|
+
active: a
|
|
15216
15239
|
},
|
|
15217
15240
|
on: {
|
|
15218
15241
|
click: s
|
|
15219
15242
|
}
|
|
15220
15243
|
}, [n("Icon", {
|
|
15244
|
+
staticClass: "zw-list-control__activator",
|
|
15221
15245
|
attrs: {
|
|
15222
|
-
name:
|
|
15223
|
-
size: "
|
|
15246
|
+
name: "arrow",
|
|
15247
|
+
size: "8px",
|
|
15224
15248
|
"auto-color": ""
|
|
15225
15249
|
}
|
|
15226
15250
|
})], 1)];
|
|
@@ -15243,11 +15267,11 @@ var LR = function() {
|
|
|
15243
15267
|
})], 1)];
|
|
15244
15268
|
}
|
|
15245
15269
|
}])
|
|
15246
|
-
});
|
|
15270
|
+
})], 1);
|
|
15247
15271
|
}, zR = [];
|
|
15248
15272
|
const jR = {
|
|
15249
15273
|
name: "ListControl",
|
|
15250
|
-
listTypes:
|
|
15274
|
+
listTypes: we.values.map((r) => ({
|
|
15251
15275
|
id: r,
|
|
15252
15276
|
icon: `list-${r}`
|
|
15253
15277
|
})),
|
|
@@ -15261,12 +15285,16 @@ const jR = {
|
|
|
15261
15285
|
tooltip: pe
|
|
15262
15286
|
},
|
|
15263
15287
|
setup() {
|
|
15264
|
-
const r = z(L.EDITOR), e = r.commands.getListType(), t =
|
|
15288
|
+
const r = z(L.EDITOR), e = r.commands.getListType(), t = A(() => !!e.value), n = A(() => e.value || "none"), i = q(we.DISC), o = A(() => e.value === i.value), s = A(() => `list-${i.value}`), a = (u) => {
|
|
15289
|
+
i.value = u, r.chain().focus().applyList(u).run();
|
|
15290
|
+
};
|
|
15265
15291
|
return {
|
|
15266
15292
|
isList: t,
|
|
15267
15293
|
currentValue: n,
|
|
15268
|
-
currentIcon:
|
|
15269
|
-
|
|
15294
|
+
currentIcon: s,
|
|
15295
|
+
isCurrentListSelected: o,
|
|
15296
|
+
apply: a,
|
|
15297
|
+
toggle: () => a(i.value || we.DISC)
|
|
15270
15298
|
};
|
|
15271
15299
|
}
|
|
15272
15300
|
}, Uh = {};
|
|
@@ -15276,7 +15304,7 @@ var VR = /* @__PURE__ */ $(
|
|
|
15276
15304
|
zR,
|
|
15277
15305
|
!1,
|
|
15278
15306
|
HR,
|
|
15279
|
-
"
|
|
15307
|
+
"ce2b1130",
|
|
15280
15308
|
null,
|
|
15281
15309
|
null
|
|
15282
15310
|
);
|
|
@@ -15370,7 +15398,7 @@ const QR = {
|
|
|
15370
15398
|
components: { Icon: ye, Button: ie },
|
|
15371
15399
|
setup(r, { emit: e }) {
|
|
15372
15400
|
const t = z(L.EDITOR);
|
|
15373
|
-
return { isLink:
|
|
15401
|
+
return { isLink: A(() => t.isActive("link")), removeLink: () => e("remove-link") };
|
|
15374
15402
|
}
|
|
15375
15403
|
}, Gh = {};
|
|
15376
15404
|
var eP = /* @__PURE__ */ $(
|
|
@@ -15670,9 +15698,9 @@ const wP = {
|
|
|
15670
15698
|
}
|
|
15671
15699
|
},
|
|
15672
15700
|
setup(r, { emit: e }) {
|
|
15673
|
-
const t = fe(r, "link"), n =
|
|
15701
|
+
const t = fe(r, "link"), n = A(() => t.value.currentDestination.value.id === "url");
|
|
15674
15702
|
return {
|
|
15675
|
-
isTargetBlank:
|
|
15703
|
+
isTargetBlank: A(() => t.value.linkData.value.target === jt.BLANK),
|
|
15676
15704
|
isURLDestination: n,
|
|
15677
15705
|
changeDestination: (a) => {
|
|
15678
15706
|
e("reset-errors"), t.value.currentDestination.value.id = a, n.value || (t.value.target = jt.SELF), t.value.destinationHrefs.value.url = "";
|
|
@@ -15792,7 +15820,7 @@ const TP = {
|
|
|
15792
15820
|
onBeforeOpened: () => c(),
|
|
15793
15821
|
wrapperRef: r,
|
|
15794
15822
|
modalRef: e
|
|
15795
|
-
}), d =
|
|
15823
|
+
}), d = A(() => f.isOpened.value || t.isActive("link"));
|
|
15796
15824
|
return {
|
|
15797
15825
|
wrapperRef: r,
|
|
15798
15826
|
modalRef: e,
|
|
@@ -15984,11 +16012,11 @@ const GP = {
|
|
|
15984
16012
|
}
|
|
15985
16013
|
},
|
|
15986
16014
|
setup(r) {
|
|
15987
|
-
const e =
|
|
16015
|
+
const e = A(() => r.device === vo.DESKTOP ? LP : qP), t = A(() => r.toolbar.isActiveRef.value), n = q(null);
|
|
15988
16016
|
rn(n, (o) => {
|
|
15989
16017
|
o && r.toolbar.mount(o);
|
|
15990
16018
|
});
|
|
15991
|
-
const i =
|
|
16019
|
+
const i = A(() => ({
|
|
15992
16020
|
"--zw-toolbar-offset-y": `${r.toolbar.offsets[1]}px`
|
|
15993
16021
|
}));
|
|
15994
16022
|
return {
|
|
@@ -16081,19 +16109,19 @@ const eB = je.create({
|
|
|
16081
16109
|
}),
|
|
16082
16110
|
getFont: O(({ commands: r }) => {
|
|
16083
16111
|
const e = r.getFontFamily();
|
|
16084
|
-
return
|
|
16112
|
+
return A(() => r.findFontByName(e.value));
|
|
16085
16113
|
}),
|
|
16086
16114
|
findFontByName: O((r, e) => this.options.fonts.find((t) => t.name === e)),
|
|
16087
16115
|
getFontFamily: O(({ editor: r, commands: e }) => {
|
|
16088
16116
|
const t = e.getDefaultFontFamily();
|
|
16089
|
-
return
|
|
16117
|
+
return A(() => {
|
|
16090
16118
|
var n, i;
|
|
16091
16119
|
return (i = (n = r.getAttributes(this.name)) == null ? void 0 : n.value) != null ? i : t.value;
|
|
16092
16120
|
});
|
|
16093
16121
|
}),
|
|
16094
16122
|
getDefaultFontFamily: O(({ commands: r }) => {
|
|
16095
16123
|
const e = r.getPreset();
|
|
16096
|
-
return
|
|
16124
|
+
return A(() => e.value.common.font_family);
|
|
16097
16125
|
})
|
|
16098
16126
|
};
|
|
16099
16127
|
},
|
|
@@ -16215,10 +16243,10 @@ const rB = te.create({
|
|
|
16215
16243
|
return e.find((n) => t === n.id);
|
|
16216
16244
|
}
|
|
16217
16245
|
return {
|
|
16218
|
-
getPresetList: O(() =>
|
|
16246
|
+
getPresetList: O(() => A(() => this.options.presets.filter((e) => !e.hidden))),
|
|
16219
16247
|
getPreset: O(({ commands: e }) => {
|
|
16220
16248
|
const t = e.getBlockAttributes("preset", { id: this.options.defaultId }), n = e.getPresetList();
|
|
16221
|
-
return
|
|
16249
|
+
return A(() => r(n.value, t.value.id));
|
|
16222
16250
|
}),
|
|
16223
16251
|
applyPreset: O(({ commands: e, chain: t }, n) => {
|
|
16224
16252
|
var l, u;
|
|
@@ -16238,7 +16266,7 @@ const rB = te.create({
|
|
|
16238
16266
|
}),
|
|
16239
16267
|
getPresetCustomization: O(({ editor: e }) => {
|
|
16240
16268
|
const t = fe(e, "state");
|
|
16241
|
-
return
|
|
16269
|
+
return A(() => {
|
|
16242
16270
|
const n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), { from: o, to: s } = t.value.selection;
|
|
16243
16271
|
return t.value.doc.nodesBetween(o, s, (a) => {
|
|
16244
16272
|
for (const [l, u] of Object.entries(a.attrs))
|
|
@@ -16293,7 +16321,7 @@ const rB = te.create({
|
|
|
16293
16321
|
}),
|
|
16294
16322
|
getFontWeight: O(({ editor: r, commands: e }) => {
|
|
16295
16323
|
const t = e.getDefaultFontWeight(), n = e.getFont();
|
|
16296
|
-
return
|
|
16324
|
+
return A(() => {
|
|
16297
16325
|
var o, s;
|
|
16298
16326
|
const i = (s = (o = r.getAttributes(this.name)) == null ? void 0 : o.value) != null ? s : t.value;
|
|
16299
16327
|
return n.value.isWeightSupported(i) ? i : n.value.findClosestWeight(i);
|
|
@@ -16301,7 +16329,7 @@ const rB = te.create({
|
|
|
16301
16329
|
}),
|
|
16302
16330
|
getDefaultFontWeight: O(({ commands: r }) => {
|
|
16303
16331
|
const e = r.getPreset();
|
|
16304
|
-
return
|
|
16332
|
+
return A(() => e.value.common.font_weight);
|
|
16305
16333
|
})
|
|
16306
16334
|
};
|
|
16307
16335
|
},
|
|
@@ -16350,14 +16378,14 @@ const rB = te.create({
|
|
|
16350
16378
|
return {
|
|
16351
16379
|
getFontSize: O(({ editor: r, commands: e }) => {
|
|
16352
16380
|
const t = e.getDevice(), n = e.getDefaultFontSize();
|
|
16353
|
-
return
|
|
16381
|
+
return A(() => {
|
|
16354
16382
|
var i, o;
|
|
16355
16383
|
return (o = (i = r.getAttributes(this.name)) == null ? void 0 : i[t.value]) != null ? o : n.value;
|
|
16356
16384
|
});
|
|
16357
16385
|
}),
|
|
16358
16386
|
getDefaultFontSize: O(({ commands: r }) => {
|
|
16359
16387
|
const e = r.getDevice(), t = r.getPreset();
|
|
16360
|
-
return
|
|
16388
|
+
return A(() => t.value[e.value].font_size.replace("px", ""));
|
|
16361
16389
|
}),
|
|
16362
16390
|
applyFontSize: O(({ commands: r }, e) => {
|
|
16363
16391
|
const t = r.getDevice().value;
|
|
@@ -16419,14 +16447,14 @@ const rB = te.create({
|
|
|
16419
16447
|
return {
|
|
16420
16448
|
getFontColor: O(({ commands: r, editor: e }) => {
|
|
16421
16449
|
const t = r.getDefaultFontColor();
|
|
16422
|
-
return
|
|
16450
|
+
return A(() => {
|
|
16423
16451
|
var n, i;
|
|
16424
16452
|
return (i = (n = e.getAttributes(this.name)) == null ? void 0 : n.value) != null ? i : t.value;
|
|
16425
16453
|
});
|
|
16426
16454
|
}),
|
|
16427
16455
|
getDefaultFontColor: O(({ commands: r }) => {
|
|
16428
16456
|
const e = r.getPreset();
|
|
16429
|
-
return
|
|
16457
|
+
return A(() => e.value.common.color);
|
|
16430
16458
|
}),
|
|
16431
16459
|
applyFontColor: O(({ commands: r }, e) => {
|
|
16432
16460
|
r.setMark(this.name, { value: e });
|
|
@@ -16456,7 +16484,7 @@ const rB = te.create({
|
|
|
16456
16484
|
}),
|
|
16457
16485
|
addCommands() {
|
|
16458
16486
|
return {
|
|
16459
|
-
getBackgroundColor: O(({ editor: r }) =>
|
|
16487
|
+
getBackgroundColor: O(({ editor: r }) => A(() => {
|
|
16460
16488
|
var e, t;
|
|
16461
16489
|
return (t = (e = r.getAttributes(this.name)) == null ? void 0 : e.value) != null ? t : "rgba(255, 255, 255, 0%)";
|
|
16462
16490
|
})),
|
|
@@ -16497,18 +16525,18 @@ const rB = te.create({
|
|
|
16497
16525
|
return {
|
|
16498
16526
|
isItalic: O(({ editor: r, commands: e }) => {
|
|
16499
16527
|
const t = e.getDefaultFontStyle();
|
|
16500
|
-
return
|
|
16528
|
+
return A(() => {
|
|
16501
16529
|
var n, i;
|
|
16502
16530
|
return (i = (n = r.getAttributes(this.name)) == null ? void 0 : n.italic) != null ? i : t.value.italic;
|
|
16503
16531
|
});
|
|
16504
16532
|
}),
|
|
16505
16533
|
isItalicAvailable: O(({ commands: r }) => {
|
|
16506
16534
|
const e = r.getFont(), t = r.getFontWeight();
|
|
16507
|
-
return
|
|
16535
|
+
return A(() => e.value.isItalicSupported(t.value));
|
|
16508
16536
|
}),
|
|
16509
16537
|
getDefaultFontStyle: O(({ commands: r }) => {
|
|
16510
16538
|
const e = r.getPreset();
|
|
16511
|
-
return
|
|
16539
|
+
return A(() => ({
|
|
16512
16540
|
italic: e.value.common.font_style === "italic"
|
|
16513
16541
|
}));
|
|
16514
16542
|
}),
|
|
@@ -16558,15 +16586,15 @@ const rB = te.create({
|
|
|
16558
16586
|
return {
|
|
16559
16587
|
isUnderline: O(({ commands: r, editor: e }) => {
|
|
16560
16588
|
const t = r.getTextDecoration();
|
|
16561
|
-
return
|
|
16589
|
+
return A(() => e.isActive("link") || t.value.underline);
|
|
16562
16590
|
}),
|
|
16563
16591
|
isStrikeThrough: O(({ commands: r }) => {
|
|
16564
16592
|
const e = r.getTextDecoration();
|
|
16565
|
-
return
|
|
16593
|
+
return A(() => e.value.strike_through);
|
|
16566
16594
|
}),
|
|
16567
16595
|
getTextDecoration: O(({ editor: r, commands: e }) => {
|
|
16568
16596
|
const t = e.getDefaultTextDecoration();
|
|
16569
|
-
return
|
|
16597
|
+
return A(() => {
|
|
16570
16598
|
var i, o, s;
|
|
16571
16599
|
const n = (i = r.getAttributes(this.name)) != null ? i : {};
|
|
16572
16600
|
return {
|
|
@@ -16577,7 +16605,7 @@ const rB = te.create({
|
|
|
16577
16605
|
}),
|
|
16578
16606
|
getDefaultTextDecoration: O(({ commands: r }) => {
|
|
16579
16607
|
const e = r.getPreset();
|
|
16580
|
-
return
|
|
16608
|
+
return A(() => {
|
|
16581
16609
|
const t = e.value.common.text_decoration;
|
|
16582
16610
|
return {
|
|
16583
16611
|
underline: t.includes("underline"),
|
|
@@ -16715,14 +16743,14 @@ const rB = te.create({
|
|
|
16715
16743
|
}),
|
|
16716
16744
|
getAlignment: O(({ commands: r }) => {
|
|
16717
16745
|
const e = r.getBlockAttributes(this.name, ip), t = r.getDevice(), n = r.getDefaultAlignment();
|
|
16718
|
-
return
|
|
16746
|
+
return A(() => {
|
|
16719
16747
|
var i, o;
|
|
16720
16748
|
return (o = (i = e.value) == null ? void 0 : i[t.value]) != null ? o : n.value;
|
|
16721
16749
|
});
|
|
16722
16750
|
}),
|
|
16723
16751
|
getDefaultAlignment: O(({ commands: r }) => {
|
|
16724
16752
|
const e = r.getDevice(), t = r.getPreset();
|
|
16725
|
-
return
|
|
16753
|
+
return A(() => t.value[e.value].alignment);
|
|
16726
16754
|
})
|
|
16727
16755
|
};
|
|
16728
16756
|
},
|
|
@@ -16772,14 +16800,14 @@ const rB = te.create({
|
|
|
16772
16800
|
return {
|
|
16773
16801
|
getLineHeight: O(({ commands: r }) => {
|
|
16774
16802
|
const e = r.getBlockAttributes(this.name, op), t = r.getDevice(), n = r.getDefaultLineHeight();
|
|
16775
|
-
return
|
|
16803
|
+
return A(() => {
|
|
16776
16804
|
var i, o;
|
|
16777
16805
|
return (o = (i = e.value) == null ? void 0 : i[t.value]) != null ? o : n.value;
|
|
16778
16806
|
});
|
|
16779
16807
|
}),
|
|
16780
16808
|
getDefaultLineHeight: O(({ commands: r }) => {
|
|
16781
16809
|
const e = r.getDevice(), t = r.getPreset();
|
|
16782
|
-
return
|
|
16810
|
+
return A(() => t.value[e.value].line_height);
|
|
16783
16811
|
}),
|
|
16784
16812
|
applyLineHeight: O(({ commands: r }, e) => {
|
|
16785
16813
|
const t = r.getDevice().value;
|
|
@@ -16834,11 +16862,11 @@ const rB = te.create({
|
|
|
16834
16862
|
}),
|
|
16835
16863
|
parseHTML() {
|
|
16836
16864
|
const r = {
|
|
16837
|
-
a:
|
|
16838
|
-
i:
|
|
16839
|
-
1:
|
|
16865
|
+
a: we.ROMAN,
|
|
16866
|
+
i: we.LATIN,
|
|
16867
|
+
1: we.DECIMAL
|
|
16840
16868
|
}, e = (t) => {
|
|
16841
|
-
for (const n of
|
|
16869
|
+
for (const n of we.values) {
|
|
16842
16870
|
const i = `.${this.options.baseClass}${n}`;
|
|
16843
16871
|
if (t.matches(i) || r[t.type.toLowerCase()] === n)
|
|
16844
16872
|
return n;
|
|
@@ -16848,26 +16876,26 @@ const rB = te.create({
|
|
|
16848
16876
|
{
|
|
16849
16877
|
tag: "ol",
|
|
16850
16878
|
getAttrs: (t) => ({
|
|
16851
|
-
bullet: { type: e(t) ||
|
|
16879
|
+
bullet: { type: e(t) || we.DECIMAL }
|
|
16852
16880
|
})
|
|
16853
16881
|
},
|
|
16854
16882
|
{
|
|
16855
16883
|
tag: "ul",
|
|
16856
16884
|
getAttrs: (t) => ({
|
|
16857
|
-
bullet: { type: e(t) ||
|
|
16885
|
+
bullet: { type: e(t) || we.DISC }
|
|
16858
16886
|
})
|
|
16859
16887
|
}
|
|
16860
16888
|
];
|
|
16861
16889
|
},
|
|
16862
16890
|
renderHTML({ HTMLAttributes: r }) {
|
|
16863
|
-
const t =
|
|
16891
|
+
const t = we.ordered.includes(r.bullet.type) ? "ol" : "ul", n = this.options.baseClass + r.bullet.type;
|
|
16864
16892
|
return [t, { class: n }, 0];
|
|
16865
16893
|
},
|
|
16866
16894
|
addCommands() {
|
|
16867
16895
|
return {
|
|
16868
16896
|
getListType: O(({ commands: r }) => {
|
|
16869
16897
|
const e = r.getBlockAttributes("bullet", { type: null });
|
|
16870
|
-
return
|
|
16898
|
+
return A(() => {
|
|
16871
16899
|
var t;
|
|
16872
16900
|
return (t = e.value.type) != null ? t : null;
|
|
16873
16901
|
});
|
|
@@ -16893,10 +16921,10 @@ const rB = te.create({
|
|
|
16893
16921
|
joinPredicate: (n, { attrs: i }) => i.bullet.type === e
|
|
16894
16922
|
});
|
|
16895
16923
|
return [
|
|
16896
|
-
r(
|
|
16897
|
-
r(
|
|
16898
|
-
r(
|
|
16899
|
-
r(
|
|
16924
|
+
r(we.DISC, /^\s*([-+*])\s$/),
|
|
16925
|
+
r(we.DECIMAL, /^(\d+)\.\s$/),
|
|
16926
|
+
r(we.LATIN, /^([ivx]{1,3})\.\s$/i),
|
|
16927
|
+
r(we.ROMAN, /^([a-z])\.\s$/i)
|
|
16900
16928
|
];
|
|
16901
16929
|
}
|
|
16902
16930
|
});
|
|
@@ -17255,7 +17283,7 @@ function cp(r) {
|
|
|
17255
17283
|
return t.length === 1 && t[0].isLink && (!e || t[0].t === e);
|
|
17256
17284
|
}
|
|
17257
17285
|
function AB(r) {
|
|
17258
|
-
return new
|
|
17286
|
+
return new Te({
|
|
17259
17287
|
key: new tt("autolink"),
|
|
17260
17288
|
appendTransaction: (e, t, n) => {
|
|
17261
17289
|
const i = e.some((c) => c.docChanged) && !t.doc.eq(n.doc), o = e.some((c) => c.getMeta("preventAutolink"));
|
|
@@ -17290,7 +17318,7 @@ function AB(r) {
|
|
|
17290
17318
|
});
|
|
17291
17319
|
}
|
|
17292
17320
|
function TB(r) {
|
|
17293
|
-
return new
|
|
17321
|
+
return new Te({
|
|
17294
17322
|
key: new tt("handleClickLink"),
|
|
17295
17323
|
props: {
|
|
17296
17324
|
handleClick: (e, t, n) => {
|
|
@@ -17302,7 +17330,7 @@ function TB(r) {
|
|
|
17302
17330
|
});
|
|
17303
17331
|
}
|
|
17304
17332
|
function MB(r) {
|
|
17305
|
-
return new
|
|
17333
|
+
return new Te({
|
|
17306
17334
|
key: new tt("handlePasteLink"),
|
|
17307
17335
|
props: {
|
|
17308
17336
|
handlePaste: (e, t, n) => {
|
|
@@ -17501,7 +17529,10 @@ const $B = je.create({
|
|
|
17501
17529
|
};
|
|
17502
17530
|
}
|
|
17503
17531
|
}), NB = IB.extend({
|
|
17504
|
-
addKeyboardShortcuts: null
|
|
17532
|
+
addKeyboardShortcuts: null,
|
|
17533
|
+
addOptions: () => ({
|
|
17534
|
+
HTMLAttributes: { class: "zw-superscript" }
|
|
17535
|
+
})
|
|
17505
17536
|
}), RB = Ot.create({
|
|
17506
17537
|
name: "doc",
|
|
17507
17538
|
topNode: !0,
|
|
@@ -17551,7 +17582,7 @@ const $B = je.create({
|
|
|
17551
17582
|
},
|
|
17552
17583
|
addProseMirrorPlugins() {
|
|
17553
17584
|
return [
|
|
17554
|
-
new
|
|
17585
|
+
new Te({
|
|
17555
17586
|
props: {
|
|
17556
17587
|
decorations: ({ doc: r, selection: e }) => {
|
|
17557
17588
|
const t = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: n } = e, i = [];
|
|
@@ -17869,7 +17900,7 @@ function KB(r = {}) {
|
|
|
17869
17900
|
return r = {
|
|
17870
17901
|
depth: r.depth || 100,
|
|
17871
17902
|
newGroupDelay: r.newGroupDelay || 500
|
|
17872
|
-
}, new
|
|
17903
|
+
}, new Te({
|
|
17873
17904
|
key: qt,
|
|
17874
17905
|
state: {
|
|
17875
17906
|
init() {
|
|
@@ -17936,7 +17967,7 @@ const Kg = (r, e) => {
|
|
|
17936
17967
|
[e]: { ...n, ...i, ...t }
|
|
17937
17968
|
});
|
|
17938
17969
|
}),
|
|
17939
|
-
getBlockAttributes: O(({ editor: r }, e, t) =>
|
|
17970
|
+
getBlockAttributes: O(({ editor: r }, e, t) => A(() => {
|
|
17940
17971
|
var i;
|
|
17941
17972
|
let n = Object.assign({}, t || {});
|
|
17942
17973
|
for (const o of ee.blocks)
|
|
@@ -18033,7 +18064,7 @@ const Kg = (r, e) => {
|
|
|
18033
18064
|
class aL {
|
|
18034
18065
|
static create(e) {
|
|
18035
18066
|
const t = new this(e || {});
|
|
18036
|
-
return new
|
|
18067
|
+
return new Te({
|
|
18037
18068
|
key: new tt(this.name),
|
|
18038
18069
|
props: t.buildProps()
|
|
18039
18070
|
});
|
|
@@ -18249,7 +18280,7 @@ const Ra = 5, dp = 112, mL = {
|
|
|
18249
18280
|
],
|
|
18250
18281
|
setup(r, { emit: e }) {
|
|
18251
18282
|
Ct.use(r.window);
|
|
18252
|
-
const t = r.fonts.map((h) => new dL(h)), n = q(null), i = q(null), o =
|
|
18283
|
+
const t = r.fonts.map((h) => new dL(h)), n = q(null), i = q(null), o = A(() => {
|
|
18253
18284
|
var h;
|
|
18254
18285
|
return ((h = i.value) == null ? void 0 : h.$el) || document.body;
|
|
18255
18286
|
}), s = QP({
|