vdc-editor 0.1.200 → 0.1.201
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/lib/{BulkSpellChecker-DT2RlF4H.mjs → BulkSpellChecker-D3eDM3ms.mjs} +2 -2
- package/lib/{BulkSpellChecker-DT2RlF4H.mjs.map → BulkSpellChecker-D3eDM3ms.mjs.map} +1 -1
- package/lib/{index-CaYoCbLr.mjs → index-BaaGyn1n.mjs} +251 -245
- package/lib/index-BaaGyn1n.mjs.map +1 -0
- package/lib/src/extensions/Diff.ts/Diff.d.ts +3 -0
- package/lib/src/extensions/Diff.ts/index.d.ts +1 -0
- package/lib/style.css +1 -1
- package/lib/vdc-editor.mjs +1 -1
- package/lib/vdc-editor.umd.js +32 -32
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +1 -1
- package/lib/index-CaYoCbLr.mjs.map +0 -1
|
@@ -3,7 +3,7 @@ var YI = (t, e, n) => e in t ? XI(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var pn = (t, e, n) => YI(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import * as E4 from "vue";
|
|
5
5
|
import { defineComponent as W, createElementBlock as ge, openBlock as M, normalizeClass as je, unref as g, toDisplayString as Le, markRaw as Ab, ref as H, onMounted as pt, onBeforeUnmount as oo, h as Ln, getCurrentInstance as Vo, watchEffect as Sn, nextTick as Rt, customRef as Ux, shallowRef as ch, provide as cn, reactive as rr, render as _4, watch as Fe, computed as Y, normalizeStyle as Nt, createCommentVNode as Oe, createBlock as $, createVNode as D, getCurrentScope as Wx, onScopeDispose as jx, shallowReadonly as vl, mergeProps as Me, withCtx as N, renderSlot as ne, normalizeProps as jt, guardReactiveProps as en, toRefs as Hn, toHandlers as JI, resolveDynamicComponent as ir, toRef as ZI, camelize as qx, withKeys as wc, withModifiers as Fn, Fragment as nt, Comment as Kx, cloneVNode as QI, readonly as Gx, inject as Gt, toHandlerKey as eR, Teleport as su, useSlots as dh, createTextVNode as at, onUnmounted as $n, mergeDefaults as Xx, watchPostEffect as tR, effectScope as Ob, onBeforeUpdate as nR, onUpdated as oR, isRef as fh, createElementVNode as te, renderList as zt, onBeforeMount as Zc, withDirectives as zr, vModelSelect as rR, Text as iR, defineAsyncComponent as sR, createSlots as Mb, vModelText as aR, vShow as Xi, useAttrs as Qc, onActivated as lR } from "vue";
|
|
6
|
-
import { useVModel as uR, useLocalStorage as Yx, createEventHook as S4, createGlobalState as cR, useFullscreen as dR, useEventBus as
|
|
6
|
+
import { useVModel as uR, useLocalStorage as Yx, createEventHook as S4, createGlobalState as cR, useFullscreen as dR, useEventBus as Eo, useFocus as fR, onClickOutside as ph, useFileDialog as pR, useElementSize as hR, useWindowSize as mR, useEventListener as T4 } from "@vueuse/core";
|
|
7
7
|
function Jx(t) {
|
|
8
8
|
var e, n, o = "";
|
|
9
9
|
if (typeof t == "string" || typeof t == "number") o += t;
|
|
@@ -5365,7 +5365,7 @@ class Ec {
|
|
|
5365
5365
|
}
|
|
5366
5366
|
}
|
|
5367
5367
|
const Um = /* @__PURE__ */ Object.create(null);
|
|
5368
|
-
class
|
|
5368
|
+
class vo {
|
|
5369
5369
|
/**
|
|
5370
5370
|
Get the step map that represents the changes made by this step,
|
|
5371
5371
|
and which can be used to transform between positions in the old
|
|
@@ -5448,7 +5448,7 @@ function Ib(t, e, n) {
|
|
|
5448
5448
|
}
|
|
5449
5449
|
return xe.fromArray(o);
|
|
5450
5450
|
}
|
|
5451
|
-
class Wi extends
|
|
5451
|
+
class Wi extends vo {
|
|
5452
5452
|
/**
|
|
5453
5453
|
Create a mark step.
|
|
5454
5454
|
*/
|
|
@@ -5486,8 +5486,8 @@ class Wi extends bo {
|
|
|
5486
5486
|
return new Wi(n.from, n.to, e.markFromJSON(n.mark));
|
|
5487
5487
|
}
|
|
5488
5488
|
}
|
|
5489
|
-
|
|
5490
|
-
class Fr extends
|
|
5489
|
+
vo.jsonID("addMark", Wi);
|
|
5490
|
+
class Fr extends vo {
|
|
5491
5491
|
/**
|
|
5492
5492
|
Create a mark-removing step.
|
|
5493
5493
|
*/
|
|
@@ -5525,8 +5525,8 @@ class Fr extends bo {
|
|
|
5525
5525
|
return new Fr(n.from, n.to, e.markFromJSON(n.mark));
|
|
5526
5526
|
}
|
|
5527
5527
|
}
|
|
5528
|
-
|
|
5529
|
-
class Ns extends
|
|
5528
|
+
vo.jsonID("removeMark", Fr);
|
|
5529
|
+
class Ns extends vo {
|
|
5530
5530
|
/**
|
|
5531
5531
|
Create a node mark step.
|
|
5532
5532
|
*/
|
|
@@ -5569,8 +5569,8 @@ class Ns extends bo {
|
|
|
5569
5569
|
return new Ns(n.pos, e.markFromJSON(n.mark));
|
|
5570
5570
|
}
|
|
5571
5571
|
}
|
|
5572
|
-
|
|
5573
|
-
class zl extends
|
|
5572
|
+
vo.jsonID("addNodeMark", Ns);
|
|
5573
|
+
class zl extends vo {
|
|
5574
5574
|
/**
|
|
5575
5575
|
Create a mark-removing step.
|
|
5576
5576
|
*/
|
|
@@ -5604,8 +5604,8 @@ class zl extends bo {
|
|
|
5604
5604
|
return new zl(n.pos, e.markFromJSON(n.mark));
|
|
5605
5605
|
}
|
|
5606
5606
|
}
|
|
5607
|
-
|
|
5608
|
-
class Pn extends
|
|
5607
|
+
vo.jsonID("removeNodeMark", zl);
|
|
5608
|
+
class Pn extends vo {
|
|
5609
5609
|
/**
|
|
5610
5610
|
The given `slice` should fit the 'gap' between `from` and
|
|
5611
5611
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -5656,8 +5656,8 @@ class Pn extends bo {
|
|
|
5656
5656
|
return new Pn(n.from, n.to, De.fromJSON(e, n.slice), !!n.structure);
|
|
5657
5657
|
}
|
|
5658
5658
|
}
|
|
5659
|
-
|
|
5660
|
-
class Gn extends
|
|
5659
|
+
vo.jsonID("replace", Pn);
|
|
5660
|
+
class Gn extends vo {
|
|
5661
5661
|
/**
|
|
5662
5662
|
Create a replace-around step with the given range and gap.
|
|
5663
5663
|
`insert` should be the point in the slice into which the content
|
|
@@ -5714,7 +5714,7 @@ class Gn extends bo {
|
|
|
5714
5714
|
return new Gn(n.from, n.to, n.gapFrom, n.gapTo, De.fromJSON(e, n.slice), n.insert, !!n.structure);
|
|
5715
5715
|
}
|
|
5716
5716
|
}
|
|
5717
|
-
|
|
5717
|
+
vo.jsonID("replaceAround", Gn);
|
|
5718
5718
|
function og(t, e, n) {
|
|
5719
5719
|
let o = t.resolve(e), r = n - e, i = o.depth;
|
|
5720
5720
|
for (; r > 0 && i > 0 && o.indexAfter(i) == o.node(i).childCount; )
|
|
@@ -6300,7 +6300,7 @@ function L5(t, e) {
|
|
|
6300
6300
|
}
|
|
6301
6301
|
return n;
|
|
6302
6302
|
}
|
|
6303
|
-
class Bl extends
|
|
6303
|
+
class Bl extends vo {
|
|
6304
6304
|
/**
|
|
6305
6305
|
Construct an attribute step.
|
|
6306
6306
|
*/
|
|
@@ -6337,8 +6337,8 @@ class Bl extends bo {
|
|
|
6337
6337
|
return new Bl(n.pos, n.attr, n.value);
|
|
6338
6338
|
}
|
|
6339
6339
|
}
|
|
6340
|
-
|
|
6341
|
-
class _c extends
|
|
6340
|
+
vo.jsonID("attr", Bl);
|
|
6341
|
+
class _c extends vo {
|
|
6342
6342
|
/**
|
|
6343
6343
|
Construct an attribute step.
|
|
6344
6344
|
*/
|
|
@@ -6371,7 +6371,7 @@ class _c extends bo {
|
|
|
6371
6371
|
return new _c(n.attr, n.value);
|
|
6372
6372
|
}
|
|
6373
6373
|
}
|
|
6374
|
-
|
|
6374
|
+
vo.jsonID("docAttr", _c);
|
|
6375
6375
|
let Vl = class extends Error {
|
|
6376
6376
|
};
|
|
6377
6377
|
Vl = function t(e) {
|
|
@@ -7520,7 +7520,7 @@ function XL(t, e, n) {
|
|
|
7520
7520
|
}
|
|
7521
7521
|
const ui = typeof navigator < "u" ? navigator : null, Y4 = typeof document < "u" ? document : null, Ks = ui && ui.userAgent || "", ig = /Edge\/(\d+)/.exec(Ks), F5 = /MSIE \d/.exec(Ks), sg = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ks), Fo = !!(F5 || sg || ig), Ps = F5 ? document.documentMode : sg ? +sg[1] : ig ? +ig[1] : 0, Ur = !Fo && /gecko\/(\d+)/i.test(Ks);
|
|
7522
7522
|
Ur && +(/Firefox\/(\d+)/.exec(Ks) || [0, 0])[1];
|
|
7523
|
-
const ag = !Fo && /Chrome\/(\d+)/.exec(Ks), co = !!ag, $5 = ag ? +ag[1] : 0,
|
|
7523
|
+
const ag = !Fo && /Chrome\/(\d+)/.exec(Ks), co = !!ag, $5 = ag ? +ag[1] : 0, _o = !Fo && !!ui && /Apple Computer/.test(ui.vendor), Wl = _o && (/Mobile\/\w+/.test(Ks) || !!ui && ui.maxTouchPoints > 2), vr = Wl || (ui ? /Mac/.test(ui.platform) : !1), YL = ui ? /Win/.test(ui.platform) : !1, ji = /Android \d/.test(Ks), td = !!Y4 && "webkitFontSmoothing" in Y4.documentElement.style, JL = td ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
7524
7524
|
function ZL(t) {
|
|
7525
7525
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
7526
7526
|
return e ? {
|
|
@@ -7706,7 +7706,7 @@ function aD(t, e) {
|
|
|
7706
7706
|
if (!Bb(e, u) || (s = U5(t.dom, e, u), !s))
|
|
7707
7707
|
return null;
|
|
7708
7708
|
}
|
|
7709
|
-
if (
|
|
7709
|
+
if (_o)
|
|
7710
7710
|
for (let u = s; o && u; u = Ul(u))
|
|
7711
7711
|
u.draggable && (o = void 0);
|
|
7712
7712
|
if (s = rD(s, e), o) {
|
|
@@ -8114,7 +8114,7 @@ class nd {
|
|
|
8114
8114
|
b = x;
|
|
8115
8115
|
}
|
|
8116
8116
|
let a = this.domFromPos(e, e ? -1 : 1), l = n == e ? a : this.domFromPos(n, n ? -1 : 1), u = o.root.getSelection(), d = o.domSelectionRange(), f = !1;
|
|
8117
|
-
if ((Ur ||
|
|
8117
|
+
if ((Ur || _o) && e == n) {
|
|
8118
8118
|
let { node: m, offset: b } = a;
|
|
8119
8119
|
if (m.nodeType == 3) {
|
|
8120
8120
|
if (f = !!(b && m.nodeValue[b - 1] == `
|
|
@@ -8137,7 +8137,7 @@ class nd {
|
|
|
8137
8137
|
let m = d.focusNode.childNodes[d.focusOffset];
|
|
8138
8138
|
m && m.contentEditable == "false" && (r = !0);
|
|
8139
8139
|
}
|
|
8140
|
-
if (!(r || f &&
|
|
8140
|
+
if (!(r || f && _o) && Ra(a.node, a.offset, d.anchorNode, d.anchorOffset) && Ra(l.node, l.offset, d.focusNode, d.focusOffset))
|
|
8141
8141
|
return;
|
|
8142
8142
|
let h = !1;
|
|
8143
8143
|
if ((u.extend || e == n) && !f) {
|
|
@@ -8736,7 +8736,7 @@ class gD {
|
|
|
8736
8736
|
for (; e instanceof La; )
|
|
8737
8737
|
n = e, e = n.children[n.children.length - 1];
|
|
8738
8738
|
(!e || // Empty textblock
|
|
8739
|
-
!(e instanceof yh) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((
|
|
8739
|
+
!(e instanceof yh) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((_o || co) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
8740
8740
|
}
|
|
8741
8741
|
addHackNode(e, n) {
|
|
8742
8742
|
if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
|
|
@@ -8928,10 +8928,10 @@ function Yi(t, e = !1) {
|
|
|
8928
8928
|
t.domObserver.setCurSelection(), t.domObserver.connectSelection();
|
|
8929
8929
|
}
|
|
8930
8930
|
}
|
|
8931
|
-
const i6 =
|
|
8931
|
+
const i6 = _o || co && $5 < 63;
|
|
8932
8932
|
function s6(t, e) {
|
|
8933
8933
|
let { node: n, offset: o } = t.docView.domFromPos(e, 0), r = o < n.childNodes.length ? n.childNodes[o] : null, i = o ? n.childNodes[o - 1] : null;
|
|
8934
|
-
if (
|
|
8934
|
+
if (_o && r && r.contentEditable == "false")
|
|
8935
8935
|
return Ym(r);
|
|
8936
8936
|
if ((!r || r.contentEditable == "false") && (!i || i.contentEditable == "false")) {
|
|
8937
8937
|
if (r)
|
|
@@ -8941,7 +8941,7 @@ function s6(t, e) {
|
|
|
8941
8941
|
}
|
|
8942
8942
|
}
|
|
8943
8943
|
function Ym(t) {
|
|
8944
|
-
return t.contentEditable = "true",
|
|
8944
|
+
return t.contentEditable = "true", _o && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
|
|
8945
8945
|
}
|
|
8946
8946
|
function a6(t) {
|
|
8947
8947
|
t.contentEditable = "false", t.wasDraggable && (t.draggable = !0, t.wasDraggable = null);
|
|
@@ -9208,7 +9208,7 @@ function h6(t, e, n) {
|
|
|
9208
9208
|
t.domObserver.stop(), e.contentEditable = n, t.domObserver.start();
|
|
9209
9209
|
}
|
|
9210
9210
|
function OD(t) {
|
|
9211
|
-
if (!
|
|
9211
|
+
if (!_o || t.state.selection.$head.parentOffset > 0)
|
|
9212
9212
|
return !1;
|
|
9213
9213
|
let { focusNode: e, focusOffset: n } = t.domSelectionRange();
|
|
9214
9214
|
if (e && e.nodeType == 1 && n == 0 && e.firstChild && e.firstChild.contentEditable == "false") {
|
|
@@ -9433,20 +9433,20 @@ function BD(t, e) {
|
|
|
9433
9433
|
}
|
|
9434
9434
|
return new De(r, i, s);
|
|
9435
9435
|
}
|
|
9436
|
-
const
|
|
9436
|
+
const So = {}, To = {}, FD = { touchstart: !0, touchmove: !0 };
|
|
9437
9437
|
class $D {
|
|
9438
9438
|
constructor() {
|
|
9439
9439
|
this.shiftKey = !1, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "" }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastChromeDelete = 0, this.composing = !1, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
|
|
9440
9440
|
}
|
|
9441
9441
|
}
|
|
9442
9442
|
function HD(t) {
|
|
9443
|
-
for (let e in
|
|
9444
|
-
let n =
|
|
9443
|
+
for (let e in So) {
|
|
9444
|
+
let n = So[e];
|
|
9445
9445
|
t.dom.addEventListener(e, t.input.eventHandlers[e] = (o) => {
|
|
9446
|
-
VD(t, o) && !zb(t, o) && (t.editable || !(o.type in
|
|
9446
|
+
VD(t, o) && !zb(t, o) && (t.editable || !(o.type in To)) && n(t, o);
|
|
9447
9447
|
}, FD[e] ? { passive: !0 } : void 0);
|
|
9448
9448
|
}
|
|
9449
|
-
|
|
9449
|
+
_o && t.dom.addEventListener("input", () => null), pg(t);
|
|
9450
9450
|
}
|
|
9451
9451
|
function Is(t, e) {
|
|
9452
9452
|
t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
|
|
@@ -9480,9 +9480,9 @@ function VD(t, e) {
|
|
|
9480
9480
|
return !0;
|
|
9481
9481
|
}
|
|
9482
9482
|
function UD(t, e) {
|
|
9483
|
-
!zb(t, e) &&
|
|
9483
|
+
!zb(t, e) && So[e.type] && (t.editable || !(e.type in To)) && So[e.type](t, e);
|
|
9484
9484
|
}
|
|
9485
|
-
|
|
9485
|
+
To.keydown = (t, e) => {
|
|
9486
9486
|
let n = e;
|
|
9487
9487
|
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !lC(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(ji && co && n.keyCode == 13)))
|
|
9488
9488
|
if (n.keyCode != 229 && t.domObserver.forceFlush(), Wl && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
@@ -9492,10 +9492,10 @@ So.keydown = (t, e) => {
|
|
|
9492
9492
|
}, 200);
|
|
9493
9493
|
} else t.someProp("handleKeyDown", (o) => o(t, n)) || ND(t, n) ? n.preventDefault() : Is(t, "key");
|
|
9494
9494
|
};
|
|
9495
|
-
|
|
9495
|
+
To.keyup = (t, e) => {
|
|
9496
9496
|
e.keyCode == 16 && (t.input.shiftKey = !1);
|
|
9497
9497
|
};
|
|
9498
|
-
|
|
9498
|
+
To.keypress = (t, e) => {
|
|
9499
9499
|
let n = e;
|
|
9500
9500
|
if (lC(t, n) || !n.charCode || n.ctrlKey && !n.altKey || vr && n.metaKey)
|
|
9501
9501
|
return;
|
|
@@ -9583,7 +9583,7 @@ function Ub(t) {
|
|
|
9583
9583
|
return fp(t);
|
|
9584
9584
|
}
|
|
9585
9585
|
const aC = vr ? "metaKey" : "ctrlKey";
|
|
9586
|
-
|
|
9586
|
+
So.mousedown = (t, e) => {
|
|
9587
9587
|
let n = e;
|
|
9588
9588
|
t.input.shiftKey = n.shiftKey;
|
|
9589
9589
|
let o = Ub(t), r = Date.now(), i = "singleClick";
|
|
@@ -9621,7 +9621,7 @@ class JD {
|
|
|
9621
9621
|
return;
|
|
9622
9622
|
let n = this.pos;
|
|
9623
9623
|
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(wh(e))), this.updateAllowDefault(e), this.allowDefault || !n ? Is(this.view, "pointer") : KD(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
9624
|
-
|
|
9624
|
+
_o && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
9625
9625
|
// cursor, but still report that the node is selected
|
|
9626
9626
|
// when asked through getSelection. You'll then get a
|
|
9627
9627
|
// situation where clicking at the point where that
|
|
@@ -9637,18 +9637,18 @@ class JD {
|
|
|
9637
9637
|
!this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
|
|
9638
9638
|
}
|
|
9639
9639
|
}
|
|
9640
|
-
|
|
9640
|
+
So.touchstart = (t) => {
|
|
9641
9641
|
t.input.lastTouch = Date.now(), Ub(t), Is(t, "pointer");
|
|
9642
9642
|
};
|
|
9643
|
-
|
|
9643
|
+
So.touchmove = (t) => {
|
|
9644
9644
|
t.input.lastTouch = Date.now(), Is(t, "pointer");
|
|
9645
9645
|
};
|
|
9646
|
-
|
|
9646
|
+
So.contextmenu = (t) => Ub(t);
|
|
9647
9647
|
function lC(t, e) {
|
|
9648
|
-
return t.composing ? !0 :
|
|
9648
|
+
return t.composing ? !0 : _o && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
|
|
9649
9649
|
}
|
|
9650
9650
|
const ZD = ji ? 5e3 : -1;
|
|
9651
|
-
|
|
9651
|
+
To.compositionstart = To.compositionupdate = (t) => {
|
|
9652
9652
|
if (!t.composing) {
|
|
9653
9653
|
t.domObserver.flush();
|
|
9654
9654
|
let { state: e } = t, n = e.selection.$to;
|
|
@@ -9672,7 +9672,7 @@ So.compositionstart = So.compositionupdate = (t) => {
|
|
|
9672
9672
|
}
|
|
9673
9673
|
uC(t, ZD);
|
|
9674
9674
|
};
|
|
9675
|
-
|
|
9675
|
+
To.compositionend = (t, e) => {
|
|
9676
9676
|
t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, uC(t, 20));
|
|
9677
9677
|
};
|
|
9678
9678
|
function uC(t, e) {
|
|
@@ -9725,7 +9725,7 @@ function tP(t, e) {
|
|
|
9725
9725
|
}, 50);
|
|
9726
9726
|
}
|
|
9727
9727
|
const Sc = Fo && Ps < 15 || Wl && JL < 604;
|
|
9728
|
-
|
|
9728
|
+
So.copy = To.cut = (t, e) => {
|
|
9729
9729
|
let n = e, o = t.state.selection, r = n.type == "cut";
|
|
9730
9730
|
if (o.empty)
|
|
9731
9731
|
return;
|
|
@@ -9761,7 +9761,7 @@ function dC(t) {
|
|
|
9761
9761
|
let n = t.getData("text/uri-list");
|
|
9762
9762
|
return n ? n.replace(/\r?\n/g, " ") : "";
|
|
9763
9763
|
}
|
|
9764
|
-
|
|
9764
|
+
To.paste = (t, e) => {
|
|
9765
9765
|
let n = e;
|
|
9766
9766
|
if (t.composing && !ji)
|
|
9767
9767
|
return;
|
|
@@ -9774,7 +9774,7 @@ class fC {
|
|
|
9774
9774
|
}
|
|
9775
9775
|
}
|
|
9776
9776
|
const pC = vr ? "altKey" : "ctrlKey";
|
|
9777
|
-
|
|
9777
|
+
So.dragstart = (t, e) => {
|
|
9778
9778
|
let n = e, o = t.input.mouseDown;
|
|
9779
9779
|
if (o && o.done(), !n.dataTransfer)
|
|
9780
9780
|
return;
|
|
@@ -9790,14 +9790,14 @@ _o.dragstart = (t, e) => {
|
|
|
9790
9790
|
let a = (s || t.state.selection).content(), { dom: l, text: u, slice: d } = Hb(t, a);
|
|
9791
9791
|
(!n.dataTransfer.files.length || !co || $5 > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Sc ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Sc || n.dataTransfer.setData("text/plain", u), t.dragging = new fC(d, !n[pC], s);
|
|
9792
9792
|
};
|
|
9793
|
-
|
|
9793
|
+
So.dragend = (t) => {
|
|
9794
9794
|
let e = t.dragging;
|
|
9795
9795
|
window.setTimeout(() => {
|
|
9796
9796
|
t.dragging == e && (t.dragging = null);
|
|
9797
9797
|
}, 50);
|
|
9798
9798
|
};
|
|
9799
|
-
|
|
9800
|
-
|
|
9799
|
+
To.dragover = To.dragenter = (t, e) => e.preventDefault();
|
|
9800
|
+
To.drop = (t, e) => {
|
|
9801
9801
|
let n = e, o = t.dragging;
|
|
9802
9802
|
if (t.dragging = null, !n.dataTransfer)
|
|
9803
9803
|
return;
|
|
@@ -9835,16 +9835,16 @@ So.drop = (t, e) => {
|
|
|
9835
9835
|
}
|
|
9836
9836
|
t.focus(), t.dispatch(u.setMeta("uiEvent", "drop"));
|
|
9837
9837
|
};
|
|
9838
|
-
|
|
9838
|
+
So.focus = (t) => {
|
|
9839
9839
|
t.input.lastFocus = Date.now(), t.focused || (t.domObserver.stop(), t.dom.classList.add("ProseMirror-focused"), t.domObserver.start(), t.focused = !0, setTimeout(() => {
|
|
9840
9840
|
t.docView && t.hasFocus() && !t.domObserver.currentSelection.eq(t.domSelectionRange()) && Yi(t);
|
|
9841
9841
|
}, 20));
|
|
9842
9842
|
};
|
|
9843
|
-
|
|
9843
|
+
So.blur = (t, e) => {
|
|
9844
9844
|
let n = e;
|
|
9845
9845
|
t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), n.relatedTarget && t.dom.contains(n.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = !1);
|
|
9846
9846
|
};
|
|
9847
|
-
|
|
9847
|
+
So.beforeinput = (t, e) => {
|
|
9848
9848
|
if (co && ji && e.inputType == "deleteContentBackward") {
|
|
9849
9849
|
t.domObserver.flushSoon();
|
|
9850
9850
|
let { domChangeCount: o } = t.input;
|
|
@@ -9856,8 +9856,8 @@ _o.beforeinput = (t, e) => {
|
|
|
9856
9856
|
}, 50);
|
|
9857
9857
|
}
|
|
9858
9858
|
};
|
|
9859
|
-
for (let t in
|
|
9860
|
-
|
|
9859
|
+
for (let t in To)
|
|
9860
|
+
So[t] = To[t];
|
|
9861
9861
|
function kc(t, e) {
|
|
9862
9862
|
if (t == e)
|
|
9863
9863
|
return !0;
|
|
@@ -10596,10 +10596,10 @@ function hP(t) {
|
|
|
10596
10596
|
if (e)
|
|
10597
10597
|
return e.parseRule();
|
|
10598
10598
|
if (t.nodeName == "BR" && t.parentNode) {
|
|
10599
|
-
if (
|
|
10599
|
+
if (_o && /^(ul|ol)$/i.test(t.parentNode.nodeName)) {
|
|
10600
10600
|
let n = document.createElement("div");
|
|
10601
10601
|
return n.appendChild(document.createElement("li")), { skip: n };
|
|
10602
|
-
} else if (t.parentNode.lastChild == t ||
|
|
10602
|
+
} else if (t.parentNode.lastChild == t || _o && /^(tr|table)$/i.test(t.parentNode.nodeName))
|
|
10603
10603
|
return { ignore: !0 };
|
|
10604
10604
|
} else if (t.nodeName == "IMG" && t.getAttribute("mark-placeholder"))
|
|
10605
10605
|
return { ignore: !0 };
|
|
@@ -11086,7 +11086,7 @@ class wP {
|
|
|
11086
11086
|
*/
|
|
11087
11087
|
domSelectionRange() {
|
|
11088
11088
|
let e = this.domSelection();
|
|
11089
|
-
return e ?
|
|
11089
|
+
return e ? _o && this.root.nodeType === 11 && GL(this.dom.ownerDocument) == this.dom && dP(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
|
|
11090
11090
|
}
|
|
11091
11091
|
/**
|
|
11092
11092
|
@internal
|
|
@@ -12221,7 +12221,7 @@ function Sh(t, e) {
|
|
|
12221
12221
|
ff(e[o]) && ff(t[o]) ? n[o] = Sh(t[o], e[o]) : n[o] = e[o];
|
|
12222
12222
|
}), n;
|
|
12223
12223
|
}
|
|
12224
|
-
class
|
|
12224
|
+
class go {
|
|
12225
12225
|
constructor(e = {}) {
|
|
12226
12226
|
this.type = "mark", this.name = "mark", this.parent = null, this.child = null, this.config = {
|
|
12227
12227
|
name: this.name,
|
|
@@ -12237,7 +12237,7 @@ class To {
|
|
|
12237
12237
|
})) || {};
|
|
12238
12238
|
}
|
|
12239
12239
|
static create(e = {}) {
|
|
12240
|
-
return new
|
|
12240
|
+
return new go(e);
|
|
12241
12241
|
}
|
|
12242
12242
|
configure(e = {}) {
|
|
12243
12243
|
const n = this.extend({
|
|
@@ -12247,7 +12247,7 @@ class To {
|
|
|
12247
12247
|
return n.name = this.name, n.parent = this.parent, n;
|
|
12248
12248
|
}
|
|
12249
12249
|
extend(e = {}) {
|
|
12250
|
-
const n = new
|
|
12250
|
+
const n = new go(e);
|
|
12251
12251
|
return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = Ot(Xe(n, "addOptions", {
|
|
12252
12252
|
name: n.name
|
|
12253
12253
|
})), n.storage = Ot(Xe(n, "addStorage", {
|
|
@@ -12490,7 +12490,7 @@ class Ll {
|
|
|
12490
12490
|
type: n1(s.name, this.schema)
|
|
12491
12491
|
}, l = [], u = Xe(s, "addKeyboardShortcuts", a);
|
|
12492
12492
|
let d = {};
|
|
12493
|
-
if (s.type === "mark" && Xe(s, "exitable", a) && (d.ArrowRight = () =>
|
|
12493
|
+
if (s.type === "mark" && Xe(s, "exitable", a) && (d.ArrowRight = () => go.handleExit({ editor: e, mark: s })), u) {
|
|
12494
12494
|
const y = Object.fromEntries(Object.entries(u()).map(([x, w]) => [x, () => w({ editor: e })]));
|
|
12495
12495
|
d = { ...d, ...y };
|
|
12496
12496
|
}
|
|
@@ -16720,7 +16720,7 @@ const hE = W({
|
|
|
16720
16720
|
onDragstart: this.onDragStart
|
|
16721
16721
|
}, (e = (t = this.$slots).default) === null || e === void 0 ? void 0 : e.call(t));
|
|
16722
16722
|
}
|
|
16723
|
-
}),
|
|
16723
|
+
}), Lae = (t = {}) => {
|
|
16724
16724
|
const e = ch();
|
|
16725
16725
|
return pt(() => {
|
|
16726
16726
|
e.value = new ns(t);
|
|
@@ -17924,10 +17924,10 @@ xp.exports;
|
|
|
17924
17924
|
for (; ee-- && He < Ze; ) {
|
|
17925
17925
|
Ce += p;
|
|
17926
17926
|
for (var kt = -1, dt = c[Ce]; ++kt < ke; ) {
|
|
17927
|
-
var Lt = Ee[kt], $t = Lt.iteratee, Go = Lt.type,
|
|
17927
|
+
var Lt = Ee[kt], $t = Lt.iteratee, Go = Lt.type, xo = $t(dt);
|
|
17928
17928
|
if (Go == X)
|
|
17929
|
-
dt =
|
|
17930
|
-
else if (!
|
|
17929
|
+
dt = xo;
|
|
17930
|
+
else if (!xo) {
|
|
17931
17931
|
if (Go == ve)
|
|
17932
17932
|
continue e;
|
|
17933
17933
|
break e;
|
|
@@ -18262,7 +18262,7 @@ xp.exports;
|
|
|
18262
18262
|
var _ = p(c);
|
|
18263
18263
|
return wt(c) ? _ : us(_, v(c));
|
|
18264
18264
|
}
|
|
18265
|
-
function
|
|
18265
|
+
function yo(c) {
|
|
18266
18266
|
return c == null ? c === n ? rt : se : oa && oa in nn(c) ? x9(c) : L9(c);
|
|
18267
18267
|
}
|
|
18268
18268
|
function em(c, p) {
|
|
@@ -18309,13 +18309,13 @@ xp.exports;
|
|
|
18309
18309
|
return _ == null ? n : Wo(_, c, v);
|
|
18310
18310
|
}
|
|
18311
18311
|
function Jy(c) {
|
|
18312
|
-
return Tn(c) &&
|
|
18312
|
+
return Tn(c) && yo(c) == Be;
|
|
18313
18313
|
}
|
|
18314
18314
|
function WA(c) {
|
|
18315
|
-
return Tn(c) &&
|
|
18315
|
+
return Tn(c) && yo(c) == we;
|
|
18316
18316
|
}
|
|
18317
18317
|
function jA(c) {
|
|
18318
|
-
return Tn(c) &&
|
|
18318
|
+
return Tn(c) && yo(c) == me;
|
|
18319
18319
|
}
|
|
18320
18320
|
function Pu(c, p, v, _, O) {
|
|
18321
18321
|
return c === p ? !0 : c == null || p == null || !Tn(c) && !Tn(p) ? c !== c && p !== p : qA(c, p, v, _, Pu, O);
|
|
@@ -18375,13 +18375,13 @@ xp.exports;
|
|
|
18375
18375
|
return p.test(ua(c));
|
|
18376
18376
|
}
|
|
18377
18377
|
function GA(c) {
|
|
18378
|
-
return Tn(c) &&
|
|
18378
|
+
return Tn(c) && yo(c) == he;
|
|
18379
18379
|
}
|
|
18380
18380
|
function XA(c) {
|
|
18381
18381
|
return Tn(c) && so(c) == Se;
|
|
18382
18382
|
}
|
|
18383
18383
|
function YA(c) {
|
|
18384
|
-
return Tn(c) && sf(c.length) && !!fn[
|
|
18384
|
+
return Tn(c) && sf(c.length) && !!fn[yo(c)];
|
|
18385
18385
|
}
|
|
18386
18386
|
function Qy(c) {
|
|
18387
18387
|
return typeof c == "function" ? c : c == null ? Ro : typeof c == "object" ? wt(c) ? n3(c[0], c[1]) : t3(c) : x4(c);
|
|
@@ -18788,7 +18788,7 @@ xp.exports;
|
|
|
18788
18788
|
function pl(c) {
|
|
18789
18789
|
return It(function(p, v) {
|
|
18790
18790
|
var _ = -1, O = v.length, L = O > 1 ? v[O - 1] : n, U = O > 2 ? v[2] : n;
|
|
18791
|
-
for (L = c.length > 3 && typeof L == "function" ? (O--, L) : n, U &&
|
|
18791
|
+
for (L = c.length > 3 && typeof L == "function" ? (O--, L) : n, U && wo(v[0], v[1], U) && (L = O < 3 ? n : L, O = 1), p = nn(p); ++_ < O; ) {
|
|
18792
18792
|
var G = v[_];
|
|
18793
18793
|
G && c(p, G, _, L);
|
|
18794
18794
|
}
|
|
@@ -18929,9 +18929,9 @@ xp.exports;
|
|
|
18929
18929
|
for (var Lt = arguments.length, $t = le(Lt), Go = Lt; Go--; )
|
|
18930
18930
|
$t[Go] = arguments[Go];
|
|
18931
18931
|
if (Ze)
|
|
18932
|
-
var
|
|
18932
|
+
var xo = ml(dt), Xo = kk($t, xo);
|
|
18933
18933
|
if (_ && ($t = b3($t, _, O, Ze)), L && ($t = v3($t, L, U, Ze)), Lt -= Xo, Ze && Lt < Ce) {
|
|
18934
|
-
var Nn = cs($t,
|
|
18934
|
+
var Nn = cs($t, xo);
|
|
18935
18935
|
return T3(
|
|
18936
18936
|
c,
|
|
18937
18937
|
p,
|
|
@@ -18999,7 +18999,7 @@ xp.exports;
|
|
|
18999
18999
|
}
|
|
19000
19000
|
function S3(c) {
|
|
19001
19001
|
return function(p, v, _) {
|
|
19002
|
-
return _ && typeof _ != "number" &&
|
|
19002
|
+
return _ && typeof _ != "number" && wo(p, v, _) && (v = _ = n), p = Mi(p), v === n ? (v = p, p = 0) : v = Mi(v), _ = _ === n ? p < v ? 1 : -1 : Mi(_), t9(p, v, _, c);
|
|
19003
19003
|
};
|
|
19004
19004
|
}
|
|
19005
19005
|
function Yd(c) {
|
|
@@ -19173,8 +19173,8 @@ xp.exports;
|
|
|
19173
19173
|
dt || (dt = He == "constructor");
|
|
19174
19174
|
}
|
|
19175
19175
|
if (kt && !dt) {
|
|
19176
|
-
var
|
|
19177
|
-
|
|
19176
|
+
var xo = c.constructor, Xo = p.constructor;
|
|
19177
|
+
xo != Xo && "constructor" in c && "constructor" in p && !(typeof xo == "function" && xo instanceof xo && typeof Xo == "function" && Xo instanceof Xo) && (kt = !1);
|
|
19178
19178
|
}
|
|
19179
19179
|
return L.delete(c), L.delete(p), kt;
|
|
19180
19180
|
}
|
|
@@ -19239,9 +19239,9 @@ xp.exports;
|
|
|
19239
19239
|
for (var p = []; c; )
|
|
19240
19240
|
us(p, wm(c)), c = Id(c);
|
|
19241
19241
|
return p;
|
|
19242
|
-
} : Fm, so =
|
|
19242
|
+
} : Fm, so = yo;
|
|
19243
19243
|
(G0 && so(new G0(new ArrayBuffer(1))) != Ne || Ou && so(new Ou()) != Ue || X0 && so(X0.resolve()) != V || cl && so(new cl()) != Se || Mu && so(new Mu()) != ue) && (so = function(c) {
|
|
19244
|
-
var p =
|
|
19244
|
+
var p = yo(c), v = p == $e ? c.constructor : n, _ = v ? ua(v) : "";
|
|
19245
19245
|
if (_)
|
|
19246
19246
|
switch (_) {
|
|
19247
19247
|
case oA:
|
|
@@ -19347,7 +19347,7 @@ xp.exports;
|
|
|
19347
19347
|
var v = typeof c;
|
|
19348
19348
|
return p = p ?? Z, !!p && (v == "number" || v != "symbol" && $7.test(c)) && c > -1 && c % 1 == 0 && c < p;
|
|
19349
19349
|
}
|
|
19350
|
-
function
|
|
19350
|
+
function wo(c, p, v) {
|
|
19351
19351
|
if (!xn(v))
|
|
19352
19352
|
return !1;
|
|
19353
19353
|
var _ = typeof p;
|
|
@@ -19505,7 +19505,7 @@ xp.exports;
|
|
|
19505
19505
|
return p.__actions__ = Mo(c.__actions__), p.__index__ = c.__index__, p.__values__ = c.__values__, p;
|
|
19506
19506
|
}
|
|
19507
19507
|
function B9(c, p, v) {
|
|
19508
|
-
(v ?
|
|
19508
|
+
(v ? wo(c, p, v) : p === n) ? p = 1 : p = Vn(St(p), 0);
|
|
19509
19509
|
var _ = c == null ? 0 : c.length;
|
|
19510
19510
|
if (!_ || p < 1)
|
|
19511
19511
|
return [];
|
|
@@ -19553,7 +19553,7 @@ xp.exports;
|
|
|
19553
19553
|
}
|
|
19554
19554
|
function K9(c, p, v, _) {
|
|
19555
19555
|
var O = c == null ? 0 : c.length;
|
|
19556
|
-
return O ? (v && typeof v != "number" &&
|
|
19556
|
+
return O ? (v && typeof v != "number" && wo(c, p, v) && (v = 0, _ = O), $A(c, p, v, _)) : [];
|
|
19557
19557
|
}
|
|
19558
19558
|
function U3(c, p, v) {
|
|
19559
19559
|
var _ = c == null ? 0 : c.length;
|
|
@@ -19661,7 +19661,7 @@ xp.exports;
|
|
|
19661
19661
|
}
|
|
19662
19662
|
function cO(c, p, v) {
|
|
19663
19663
|
var _ = c == null ? 0 : c.length;
|
|
19664
|
-
return _ ? (v && typeof v != "number" &&
|
|
19664
|
+
return _ ? (v && typeof v != "number" && wo(c, p, v) ? (p = 0, v = _) : (p = p == null ? 0 : St(p), v = v === n ? _ : St(v)), fr(c, p, v)) : [];
|
|
19665
19665
|
}
|
|
19666
19666
|
function dO(c, p) {
|
|
19667
19667
|
return Wd(c, p);
|
|
@@ -19839,7 +19839,7 @@ xp.exports;
|
|
|
19839
19839
|
});
|
|
19840
19840
|
function GO(c, p, v) {
|
|
19841
19841
|
var _ = wt(c) ? _y : FA;
|
|
19842
|
-
return v &&
|
|
19842
|
+
return v && wo(c, p, v) && (p = n), _(c, ut(p, 3));
|
|
19843
19843
|
}
|
|
19844
19844
|
function XO(c, p) {
|
|
19845
19845
|
var v = wt(c) ? ls : Gy;
|
|
@@ -19908,7 +19908,7 @@ xp.exports;
|
|
|
19908
19908
|
return p(c);
|
|
19909
19909
|
}
|
|
19910
19910
|
function dM(c, p, v) {
|
|
19911
|
-
(v ?
|
|
19911
|
+
(v ? wo(c, p, v) : p === n) ? p = 1 : p = St(p);
|
|
19912
19912
|
var _ = wt(c) ? RA : o9;
|
|
19913
19913
|
return _(c, p);
|
|
19914
19914
|
}
|
|
@@ -19926,13 +19926,13 @@ xp.exports;
|
|
|
19926
19926
|
}
|
|
19927
19927
|
function hM(c, p, v) {
|
|
19928
19928
|
var _ = wt(c) ? $0 : s9;
|
|
19929
|
-
return v &&
|
|
19929
|
+
return v && wo(c, p, v) && (p = n), _(c, ut(p, 3));
|
|
19930
19930
|
}
|
|
19931
19931
|
var mM = It(function(c, p) {
|
|
19932
19932
|
if (c == null)
|
|
19933
19933
|
return [];
|
|
19934
19934
|
var v = p.length;
|
|
19935
|
-
return v > 1 &&
|
|
19935
|
+
return v > 1 && wo(c, p[0], p[1]) ? p = [] : v > 2 && wo(p[0], p[1], p[2]) && (p = [p[0]]), r3(c, Zn(p, 1), []);
|
|
19936
19936
|
}), nf = Xk || function() {
|
|
19937
19937
|
return Jn.Date.now();
|
|
19938
19938
|
};
|
|
@@ -20012,7 +20012,7 @@ xp.exports;
|
|
|
20012
20012
|
function Go() {
|
|
20013
20013
|
G !== n && p3(G), Ce = 0, _ = ee = O = G = n;
|
|
20014
20014
|
}
|
|
20015
|
-
function
|
|
20015
|
+
function xo() {
|
|
20016
20016
|
return G === n ? U : $t(nf());
|
|
20017
20017
|
}
|
|
20018
20018
|
function Xo() {
|
|
@@ -20025,7 +20025,7 @@ xp.exports;
|
|
|
20025
20025
|
}
|
|
20026
20026
|
return G === n && (G = Hu(Lt, p)), U;
|
|
20027
20027
|
}
|
|
20028
|
-
return Xo.cancel = Go, Xo.flush =
|
|
20028
|
+
return Xo.cancel = Go, Xo.flush = xo, Xo;
|
|
20029
20029
|
}
|
|
20030
20030
|
var bM = It(function(c, p) {
|
|
20031
20031
|
return qy(c, 1, p);
|
|
@@ -20153,7 +20153,7 @@ xp.exports;
|
|
|
20153
20153
|
return Tn(c) && No(c);
|
|
20154
20154
|
}
|
|
20155
20155
|
function BM(c) {
|
|
20156
|
-
return c === !0 || c === !1 || Tn(c) &&
|
|
20156
|
+
return c === !0 || c === !1 || Tn(c) && yo(c) == re;
|
|
20157
20157
|
}
|
|
20158
20158
|
var gs = Jk || $m, FM = yy ? jo(yy) : jA;
|
|
20159
20159
|
function $M(c) {
|
|
@@ -20185,7 +20185,7 @@ xp.exports;
|
|
|
20185
20185
|
function Om(c) {
|
|
20186
20186
|
if (!Tn(c))
|
|
20187
20187
|
return !1;
|
|
20188
|
-
var p =
|
|
20188
|
+
var p = yo(c);
|
|
20189
20189
|
return p == _e || p == ye || typeof c.message == "string" && typeof c.name == "string" && !zu(c);
|
|
20190
20190
|
}
|
|
20191
20191
|
function UM(c) {
|
|
@@ -20194,7 +20194,7 @@ xp.exports;
|
|
|
20194
20194
|
function Oi(c) {
|
|
20195
20195
|
if (!xn(c))
|
|
20196
20196
|
return !1;
|
|
20197
|
-
var p =
|
|
20197
|
+
var p = yo(c);
|
|
20198
20198
|
return p == ie || p == Ae || p == q || p == z;
|
|
20199
20199
|
}
|
|
20200
20200
|
function i4(c) {
|
|
@@ -20232,10 +20232,10 @@ xp.exports;
|
|
|
20232
20232
|
return c == null;
|
|
20233
20233
|
}
|
|
20234
20234
|
function a4(c) {
|
|
20235
|
-
return typeof c == "number" || Tn(c) &&
|
|
20235
|
+
return typeof c == "number" || Tn(c) && yo(c) == ot;
|
|
20236
20236
|
}
|
|
20237
20237
|
function zu(c) {
|
|
20238
|
-
if (!Tn(c) ||
|
|
20238
|
+
if (!Tn(c) || yo(c) != $e)
|
|
20239
20239
|
return !1;
|
|
20240
20240
|
var p = Id(c);
|
|
20241
20241
|
if (p === null)
|
|
@@ -20249,10 +20249,10 @@ xp.exports;
|
|
|
20249
20249
|
}
|
|
20250
20250
|
var l4 = Cy ? jo(Cy) : XA;
|
|
20251
20251
|
function af(c) {
|
|
20252
|
-
return typeof c == "string" || !wt(c) && Tn(c) &&
|
|
20252
|
+
return typeof c == "string" || !wt(c) && Tn(c) && yo(c) == Ke;
|
|
20253
20253
|
}
|
|
20254
20254
|
function Ko(c) {
|
|
20255
|
-
return typeof c == "symbol" || Tn(c) &&
|
|
20255
|
+
return typeof c == "symbol" || Tn(c) && yo(c) == yt;
|
|
20256
20256
|
}
|
|
20257
20257
|
var gl = Ey ? jo(Ey) : YA;
|
|
20258
20258
|
function JM(c) {
|
|
@@ -20262,7 +20262,7 @@ xp.exports;
|
|
|
20262
20262
|
return Tn(c) && so(c) == ue;
|
|
20263
20263
|
}
|
|
20264
20264
|
function QM(c) {
|
|
20265
|
-
return Tn(c) &&
|
|
20265
|
+
return Tn(c) && yo(c) == Te;
|
|
20266
20266
|
}
|
|
20267
20267
|
var eN = Yd(rm), tN = Yd(function(c, p) {
|
|
20268
20268
|
return c <= p;
|
|
@@ -20338,7 +20338,7 @@ xp.exports;
|
|
|
20338
20338
|
var aN = It(function(c, p) {
|
|
20339
20339
|
c = nn(c);
|
|
20340
20340
|
var v = -1, _ = p.length, O = _ > 2 ? p[2] : n;
|
|
20341
|
-
for (O &&
|
|
20341
|
+
for (O && wo(p[0], p[1], O) && (_ = 1); ++v < _; )
|
|
20342
20342
|
for (var L = p[v], U = Io(L), G = -1, ee = U.length; ++G < ee; ) {
|
|
20343
20343
|
var Ce = U[G], Ee = c[Ce];
|
|
20344
20344
|
(Ee === n || Ir(Ee, ul[Ce]) && !Yt.call(c, Ce)) && (c[Ce] = L[Ce]);
|
|
@@ -20484,7 +20484,7 @@ xp.exports;
|
|
|
20484
20484
|
return p = Mi(p), v === n ? (v = p, p = 0) : v = Mi(v), c = hr(c), VA(c, p, v);
|
|
20485
20485
|
}
|
|
20486
20486
|
function BN(c, p, v) {
|
|
20487
|
-
if (v && typeof v != "boolean" &&
|
|
20487
|
+
if (v && typeof v != "boolean" && wo(c, p, v) && (p = v = n), v === n && (typeof p == "boolean" ? (v = p, p = n) : typeof c == "boolean" && (v = c, c = n)), c === n && p === n ? (c = 0, p = 1) : (c = Mi(c), p === n ? (p = c, c = 0) : p = Mi(p)), c > p) {
|
|
20488
20488
|
var _ = c;
|
|
20489
20489
|
c = p, p = _;
|
|
20490
20490
|
}
|
|
@@ -20543,7 +20543,7 @@ xp.exports;
|
|
|
20543
20543
|
return v || p == null ? p = 0 : p && (p = +p), tA(Kt(c).replace(O0, ""), p || 0);
|
|
20544
20544
|
}
|
|
20545
20545
|
function XN(c, p, v) {
|
|
20546
|
-
return (v ?
|
|
20546
|
+
return (v ? wo(c, p, v) : p === n) ? p = 1 : p = St(p), am(Kt(c), p);
|
|
20547
20547
|
}
|
|
20548
20548
|
function YN() {
|
|
20549
20549
|
var c = arguments, p = Kt(c[0]);
|
|
@@ -20553,7 +20553,7 @@ xp.exports;
|
|
|
20553
20553
|
return c + (v ? "_" : "") + p.toLowerCase();
|
|
20554
20554
|
});
|
|
20555
20555
|
function ZN(c, p, v) {
|
|
20556
|
-
return v && typeof v != "number" &&
|
|
20556
|
+
return v && typeof v != "number" && wo(c, p, v) && (p = v = n), v = v === n ? fe : v >>> 0, v ? (c = Kt(c), c && (typeof p == "string" || p != null && !Mm(p)) && (p = qo(p), !p && sl(c)) ? ms(Mr(c), 0, v) : c.split(p, v)) : [];
|
|
20557
20557
|
}
|
|
20558
20558
|
var QN = hl(function(c, p, v) {
|
|
20559
20559
|
return c + (v ? " " : "") + Rm(p);
|
|
@@ -20563,17 +20563,17 @@ xp.exports;
|
|
|
20563
20563
|
}
|
|
20564
20564
|
function tI(c, p, v) {
|
|
20565
20565
|
var _ = R.templateSettings;
|
|
20566
|
-
v &&
|
|
20566
|
+
v && wo(c, p, v) && (p = n), c = Kt(c), p = lf({}, p, _, A3);
|
|
20567
20567
|
var O = lf({}, p.imports, _.imports, A3), L = jn(O), U = W0(O, L), G, ee, Ce = 0, Ee = p.interpolate || wd, ke = "__p += '", He = q0(
|
|
20568
20568
|
(p.escape || wd).source + "|" + Ee.source + "|" + (Ee === yd ? L7 : wd).source + "|" + (p.evaluate || wd).source + "|$",
|
|
20569
20569
|
"g"
|
|
20570
20570
|
), Ze = "//# sourceURL=" + (Yt.call(p, "sourceURL") ? (p.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++ck + "]") + `
|
|
20571
20571
|
`;
|
|
20572
|
-
c.replace(He, function(dt, Lt, $t, Go,
|
|
20572
|
+
c.replace(He, function(dt, Lt, $t, Go, xo, Xo) {
|
|
20573
20573
|
return $t || ($t = Go), ke += c.slice(Ce, Xo).replace(z7, Mk), Lt && (G = !0, ke += `' +
|
|
20574
20574
|
__e(` + Lt + `) +
|
|
20575
|
-
'`),
|
|
20576
|
-
` +
|
|
20575
|
+
'`), xo && (ee = !0, ke += `';
|
|
20576
|
+
` + xo + `;
|
|
20577
20577
|
__p += '`), $t && (ke += `' +
|
|
20578
20578
|
((__t = (` + $t + `)) == null ? '' : __t) +
|
|
20579
20579
|
'`), Ce = Xo + dt.length, dt;
|
|
@@ -22714,7 +22714,7 @@ function Xz(t) {
|
|
|
22714
22714
|
e.reduce((n, o) => Lg(n, o, ""), {})
|
|
22715
22715
|
);
|
|
22716
22716
|
}
|
|
22717
|
-
const Yz = Xz(), [Fh,
|
|
22717
|
+
const Yz = Xz(), [Fh, Dae] = dn("ConfigProvider");
|
|
22718
22718
|
let Jz = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Zz = (t = 21) => {
|
|
22719
22719
|
let e = "", n = t;
|
|
22720
22720
|
for (; n--; )
|
|
@@ -23360,7 +23360,7 @@ const Ar = W({
|
|
|
23360
23360
|
contentElement: i
|
|
23361
23361
|
}), (a, l) => ne(a.$slots, "default", { open: g(o) });
|
|
23362
23362
|
}
|
|
23363
|
-
}),
|
|
23363
|
+
}), Pae = /* @__PURE__ */ W({
|
|
23364
23364
|
__name: "DialogTrigger",
|
|
23365
23365
|
props: {
|
|
23366
23366
|
asChild: { type: Boolean },
|
|
@@ -24201,7 +24201,7 @@ const KE = {
|
|
|
24201
24201
|
hideWhenDetached: !1,
|
|
24202
24202
|
updatePositionStrategy: "optimized",
|
|
24203
24203
|
prioritizePosition: !1
|
|
24204
|
-
}, [
|
|
24204
|
+
}, [Bae, tU] = dn("PopperContent"), Wh = /* @__PURE__ */ W({
|
|
24205
24205
|
inheritAttrs: !1,
|
|
24206
24206
|
__name: "PopperContent",
|
|
24207
24207
|
props: /* @__PURE__ */ Xx({
|
|
@@ -27256,7 +27256,7 @@ const wW = /* @__PURE__ */ W({
|
|
|
27256
27256
|
_: 3
|
|
27257
27257
|
}, 16)) : Oe("", !0);
|
|
27258
27258
|
}
|
|
27259
|
-
}), [
|
|
27259
|
+
}), [Fae, LW] = dn("SelectGroup"), DW = /* @__PURE__ */ W({
|
|
27260
27260
|
__name: "SelectGroup",
|
|
27261
27261
|
props: {
|
|
27262
27262
|
asChild: { type: Boolean },
|
|
@@ -28301,12 +28301,12 @@ function fu(t, e, n = {}) {
|
|
|
28301
28301
|
function wj(t) {
|
|
28302
28302
|
throw t;
|
|
28303
28303
|
}
|
|
28304
|
-
const xj = /<\/?[\w\s="/.':;#-\/]+>/, Cj = (t) => xj.test(t), Di = " ", Ej = "\r",
|
|
28304
|
+
const xj = /<\/?[\w\s="/.':;#-\/]+>/, Cj = (t) => xj.test(t), Di = " ", Ej = "\r", Co = `
|
|
28305
28305
|
`, _j = "\u2028", Sj = "\u2029";
|
|
28306
28306
|
function Tj(t) {
|
|
28307
28307
|
const e = t;
|
|
28308
28308
|
let n = 0, o = 1, r = 1, i = 0;
|
|
28309
|
-
const s = (A) => e[A] === Ej && e[A + 1] ===
|
|
28309
|
+
const s = (A) => e[A] === Ej && e[A + 1] === Co, a = (A) => e[A] === Co, l = (A) => e[A] === Sj, u = (A) => e[A] === _j, d = (A) => s(A) || a(A) || l(A) || u(A), f = () => n, h = () => o, m = () => r, b = () => i, y = (A) => s(A) || l(A) || u(A) ? Co : e[A], x = () => y(n), w = () => y(n + i);
|
|
28310
28310
|
function E() {
|
|
28311
28311
|
return i = 0, d(n) && (o++, r = 0), s(n) && n++, n++, r++, e[n];
|
|
28312
28312
|
}
|
|
@@ -28380,7 +28380,7 @@ function Oj(t, e = {}) {
|
|
|
28380
28380
|
}
|
|
28381
28381
|
function y(V) {
|
|
28382
28382
|
let z = "";
|
|
28383
|
-
for (; V.currentPeek() === Di || V.currentPeek() ===
|
|
28383
|
+
for (; V.currentPeek() === Di || V.currentPeek() === Co; )
|
|
28384
28384
|
z += V.currentPeek(), V.peek();
|
|
28385
28385
|
return z;
|
|
28386
28386
|
}
|
|
@@ -28456,7 +28456,7 @@ function Oj(t, e = {}) {
|
|
|
28456
28456
|
return !1;
|
|
28457
28457
|
const Se = () => {
|
|
28458
28458
|
const yt = V.currentPeek();
|
|
28459
|
-
return yt === "{" ? w(V.peek()) : yt === "@" || yt === "|" || yt === ":" || yt === "." || yt === Di || !yt ? !1 : yt ===
|
|
28459
|
+
return yt === "{" ? w(V.peek()) : yt === "@" || yt === "|" || yt === ":" || yt === "." || yt === Di || !yt ? !1 : yt === Co ? (V.peek(), Se()) : j(V, !1);
|
|
28460
28460
|
}, Ke = Se();
|
|
28461
28461
|
return V.resetPeek(), Ke;
|
|
28462
28462
|
}
|
|
@@ -28468,7 +28468,7 @@ function Oj(t, e = {}) {
|
|
|
28468
28468
|
function j(V, z = !0) {
|
|
28469
28469
|
const he = (Ke = !1, yt = "") => {
|
|
28470
28470
|
const rt = V.currentPeek();
|
|
28471
|
-
return rt === "{" || rt === "@" || !rt ? Ke : rt === "|" ? !(yt === Di || yt ===
|
|
28471
|
+
return rt === "{" || rt === "@" || !rt ? Ke : rt === "|" ? !(yt === Di || yt === Co) : rt === Di ? (V.peek(), he(!0, Di)) : rt === Co ? (V.peek(), he(!0, Co)) : !0;
|
|
28472
28472
|
}, Se = he();
|
|
28473
28473
|
return z && V.resetPeek(), Se;
|
|
28474
28474
|
}
|
|
@@ -28527,7 +28527,7 @@ function Oj(t, e = {}) {
|
|
|
28527
28527
|
const he = V.currentChar();
|
|
28528
28528
|
if (he === "{" || he === "}" || he === "@" || he === "|" || !he)
|
|
28529
28529
|
break;
|
|
28530
|
-
if (he === Di || he ===
|
|
28530
|
+
if (he === Di || he === Co)
|
|
28531
28531
|
if (j(V))
|
|
28532
28532
|
z += he, V.next();
|
|
28533
28533
|
else {
|
|
@@ -28553,7 +28553,7 @@ function Oj(t, e = {}) {
|
|
|
28553
28553
|
return V.currentChar() === "-" ? (V.next(), z += `-${fe(V)}`) : z += fe(V), V.currentChar() === ys && f(mt.UNTERMINATED_CLOSING_BRACE, i(), 0), z;
|
|
28554
28554
|
}
|
|
28555
28555
|
function Be(V) {
|
|
28556
|
-
return V !== kw && V !==
|
|
28556
|
+
return V !== kw && V !== Co;
|
|
28557
28557
|
}
|
|
28558
28558
|
function it(V) {
|
|
28559
28559
|
x(V), b(V, "'");
|
|
@@ -28561,7 +28561,7 @@ function Oj(t, e = {}) {
|
|
|
28561
28561
|
for (; z = J(V, Be); )
|
|
28562
28562
|
z === "\\" ? he += q(V) : he += z;
|
|
28563
28563
|
const Se = V.currentChar();
|
|
28564
|
-
return Se ===
|
|
28564
|
+
return Se === Co || Se === ys ? (f(mt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), Se === Co && (V.next(), b(V, "'")), he) : (b(V, "'"), he);
|
|
28565
28565
|
}
|
|
28566
28566
|
function q(V) {
|
|
28567
28567
|
const z = V.currentChar();
|
|
@@ -28591,7 +28591,7 @@ function Oj(t, e = {}) {
|
|
|
28591
28591
|
return `\\${z}${Se}`;
|
|
28592
28592
|
}
|
|
28593
28593
|
function me(V) {
|
|
28594
|
-
return V !== "{" && V !== "}" && V !== Di && V !==
|
|
28594
|
+
return V !== "{" && V !== "}" && V !== Di && V !== Co;
|
|
28595
28595
|
}
|
|
28596
28596
|
function ye(V) {
|
|
28597
28597
|
x(V);
|
|
@@ -28664,7 +28664,7 @@ function Oj(t, e = {}) {
|
|
|
28664
28664
|
const { currentType: he } = z;
|
|
28665
28665
|
let Se = null;
|
|
28666
28666
|
const Ke = V.currentChar();
|
|
28667
|
-
switch ((he === 7 || he === 8 || he === 11 || he === 9) && (Ke ===
|
|
28667
|
+
switch ((he === 7 || he === 8 || he === 11 || he === 9) && (Ke === Co || Ke === Di) && f(mt.INVALID_LINKED_FORMAT, i(), 0), Ke) {
|
|
28668
28668
|
case "@":
|
|
28669
28669
|
return V.next(), Se = h(
|
|
28670
28670
|
z,
|
|
@@ -31679,7 +31679,7 @@ const XK = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
|
|
|
31679
31679
|
mode: {}
|
|
31680
31680
|
},
|
|
31681
31681
|
setup(t) {
|
|
31682
|
-
const e = sR(() => import("./BulkSpellChecker-
|
|
31682
|
+
const e = sR(() => import("./BulkSpellChecker-D3eDM3ms.mjs")), { t: n } = Jt(), o = t, r = Gt("isEditable", H(!0)), i = ["fontSize", "fontFamily", "superText", "spellchecker", "fontSizeIncreaseDecrease"], s = Y(() => {
|
|
31683
31683
|
const f = [...o.editor.extensionManager.extensions].sort((m, b) => m.name === "superText" ? 1 : b.name === "superText" ? -1 : 0);
|
|
31684
31684
|
let h = [];
|
|
31685
31685
|
for (const m of f) {
|
|
@@ -34718,7 +34718,7 @@ const pd = (t, e) => {
|
|
|
34718
34718
|
return oo(() => {
|
|
34719
34719
|
o();
|
|
34720
34720
|
}), { bind: n, unbind: o };
|
|
34721
|
-
}, VX = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, UX = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, WX = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, jX = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, qX =
|
|
34721
|
+
}, VX = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, UX = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, WX = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, jX = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, qX = go.create({
|
|
34722
34722
|
name: "bold",
|
|
34723
34723
|
addOptions() {
|
|
34724
34724
|
return {
|
|
@@ -34802,7 +34802,7 @@ const pd = (t, e) => {
|
|
|
34802
34802
|
})
|
|
34803
34803
|
};
|
|
34804
34804
|
}
|
|
34805
|
-
}), KX = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, GX = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, XX = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, YX = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, JX =
|
|
34805
|
+
}), KX = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, GX = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, XX = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, YX = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, JX = go.create({
|
|
34806
34806
|
name: "italic",
|
|
34807
34807
|
addOptions() {
|
|
34808
34808
|
return {
|
|
@@ -34889,7 +34889,7 @@ const pd = (t, e) => {
|
|
|
34889
34889
|
}
|
|
34890
34890
|
};
|
|
34891
34891
|
}
|
|
34892
|
-
}), ZX =
|
|
34892
|
+
}), ZX = go.create({
|
|
34893
34893
|
name: "underline",
|
|
34894
34894
|
addOptions() {
|
|
34895
34895
|
return {
|
|
@@ -34944,7 +34944,7 @@ const pd = (t, e) => {
|
|
|
34944
34944
|
}
|
|
34945
34945
|
};
|
|
34946
34946
|
}
|
|
34947
|
-
}), QX = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, eY = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, tY =
|
|
34947
|
+
}), QX = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, eY = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, tY = go.create({
|
|
34948
34948
|
name: "strike",
|
|
34949
34949
|
addOptions() {
|
|
34950
34950
|
return {
|
|
@@ -35023,7 +35023,7 @@ const pd = (t, e) => {
|
|
|
35023
35023
|
"Mod-Shift-x": () => this.editor.commands.toggleStrike()
|
|
35024
35024
|
};
|
|
35025
35025
|
}
|
|
35026
|
-
}), nY = /(^|[^`])`([^`]+)`(?!`)/, oY = /(^|[^`])`([^`]+)`(?!`)/g, rY =
|
|
35026
|
+
}), nY = /(^|[^`])`([^`]+)`(?!`)/, oY = /(^|[^`])`([^`]+)`(?!`)/g, rY = go.create({
|
|
35027
35027
|
name: "code",
|
|
35028
35028
|
addOptions() {
|
|
35029
35029
|
return {
|
|
@@ -37479,7 +37479,7 @@ const Np = s0("XIcon", [
|
|
|
37479
37479
|
return e.items.find((f) => f.isActive() && f.title) || l;
|
|
37480
37480
|
const u = e.items.find((d) => d.title === r.value);
|
|
37481
37481
|
return u || (r.value ? { title: r.value } : l);
|
|
37482
|
-
}), s =
|
|
37482
|
+
}), s = Eo("fontFamily"), a = (l, u) => {
|
|
37483
37483
|
l === n("editor.fontSize.default.tooltip") ? (e.editor.commands.unsetFontSize(), r.value = null) : (r.value = l, e.editor.commands.setFontSize(l), s.emit()), u();
|
|
37484
37484
|
};
|
|
37485
37485
|
return (l, u) => {
|
|
@@ -37621,7 +37621,7 @@ const Np = s0("XIcon", [
|
|
|
37621
37621
|
const i = n.getAttribute("style"), s = (r = (o = n.parentElement) === null || o === void 0 ? void 0 : o.closest("span")) === null || r === void 0 ? void 0 : r.getAttribute("style");
|
|
37622
37622
|
n.setAttribute("style", `${s};${i}`);
|
|
37623
37623
|
});
|
|
37624
|
-
}, BJ =
|
|
37624
|
+
}, BJ = go.create({
|
|
37625
37625
|
name: "textStyle",
|
|
37626
37626
|
priority: 101,
|
|
37627
37627
|
addOptions() {
|
|
@@ -37806,7 +37806,7 @@ const Np = s0("XIcon", [
|
|
|
37806
37806
|
}
|
|
37807
37807
|
};
|
|
37808
37808
|
}
|
|
37809
|
-
}), KJ = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, GJ = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, HS =
|
|
37809
|
+
}), KJ = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/, GJ = /(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g, HS = go.create({
|
|
37810
37810
|
name: "highlight",
|
|
37811
37811
|
addOptions() {
|
|
37812
37812
|
return {
|
|
@@ -39345,7 +39345,7 @@ function da(t, e) {
|
|
|
39345
39345
|
"i"
|
|
39346
39346
|
));
|
|
39347
39347
|
}
|
|
39348
|
-
const LZ =
|
|
39348
|
+
const LZ = go.create({
|
|
39349
39349
|
name: "link",
|
|
39350
39350
|
priority: 1e3,
|
|
39351
39351
|
keepOnSplit: !1,
|
|
@@ -42170,7 +42170,7 @@ function vT(t) {
|
|
|
42170
42170
|
function pb() {
|
|
42171
42171
|
return ts(10);
|
|
42172
42172
|
}
|
|
42173
|
-
const u0 = "paragraph", br = "page", yT = "Extend", wu = "Node", aee = wu + yT, lee = "CC", x2 = "heading", c0 = "bulletList", C2 = "listItem", wT = "taskList", uee = "taskItem", d0 = "orderedList", Qs = "table", E2 = "tableHeader", _2 = "tableRow", cee = "tableCell", S2 = "column", tl = "columns", T2 = "textBox", ea = "image", ta = "imageUpload", dee = "iframe", fee = "file", k2 = "codeBlock", A2 = "blockquote", pee = "audio", hee = "toc", xT = "video", mee = "horizontalrule", O2 = "pagination", gee = [Qs, d0, c0, wT], bee = [xT, ea], hd = "link", vee = "placeholder", yee = "focus", wee = "text", xee = "text-bubble", Cee = "gapCursor", Eee = "dropCursor", _ee = "characterCount", See = "hardBreak", Tee = "textStyle", kee = "selection", CT = "superText", hb = "configPlan", Aee = "fontSize", Oee = "fontFamily", Mee = "bold", Nee = "italic", Iee = "underline", Ree = "strike", Lee = "color", Dee = "highlight", Pee = "moreMark", Bee = "textAlign", Fee = "indent", $ee = "lineHeight", Hee = "painter", zee = "clear", Xc = "spellchecker", ET = "fontSizeIncreaseDecrease",
|
|
42173
|
+
const u0 = "paragraph", br = "page", yT = "Extend", wu = "Node", aee = wu + yT, lee = "CC", x2 = "heading", c0 = "bulletList", C2 = "listItem", wT = "taskList", uee = "taskItem", d0 = "orderedList", Qs = "table", E2 = "tableHeader", _2 = "tableRow", cee = "tableCell", S2 = "column", tl = "columns", T2 = "textBox", ea = "image", ta = "imageUpload", dee = "iframe", fee = "file", k2 = "codeBlock", A2 = "blockquote", pee = "audio", hee = "toc", xT = "video", mee = "horizontalrule", O2 = "pagination", gee = [Qs, d0, c0, wT], bee = [xT, ea], hd = "link", vee = "placeholder", yee = "focus", wee = "text", xee = "text-bubble", Cee = "gapCursor", Eee = "dropCursor", _ee = "characterCount", See = "hardBreak", Tee = "textStyle", kee = "selection", CT = "superText", hb = "configPlan", Aee = "fontSize", Oee = "fontFamily", Mee = "bold", Nee = "italic", Iee = "underline", Ree = "strike", Lee = "color", Dee = "highlight", Pee = "moreMark", Bee = "textAlign", Fee = "indent", $ee = "lineHeight", Hee = "painter", zee = "clear", Xc = "spellchecker", ET = "fontSizeIncreaseDecrease", Hae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42174
42174
|
__proto__: null,
|
|
42175
42175
|
AUDIO: pee,
|
|
42176
42176
|
BLOCKQUOTE: A2,
|
|
@@ -43067,7 +43067,7 @@ const tte = {
|
|
|
43067
43067
|
__name: "PageNode",
|
|
43068
43068
|
props: qa,
|
|
43069
43069
|
setup(t) {
|
|
43070
|
-
const { state: e, page: n, superTextStore: o } = ro(), { size: r, pagination: i, margin: s } = n.value, a = H(null), l = H(t.node.attrs.viewSuperTextArea), u = Y(() => l.value && t.editor.storage.page.mode !== "editor"), d = Y(() => t.editor.storage.page.mode === Qe.REPORT), { width: f, height: h } = r, m = Y(() => i ? `calc(${h} - ${(s == null ? void 0 : s.top) ?? 0} - ${(s == null ? void 0 : s.bottom) ?? 0}` : "max-content"), b =
|
|
43070
|
+
const { state: e, page: n, superTextStore: o } = ro(), { size: r, pagination: i, margin: s } = n.value, a = H(null), l = H(t.node.attrs.viewSuperTextArea), u = Y(() => l.value && t.editor.storage.page.mode !== "editor"), d = Y(() => t.editor.storage.page.mode === Qe.REPORT), { width: f, height: h } = r, m = Y(() => i ? `calc(${h} - ${(s == null ? void 0 : s.top) ?? 0} - ${(s == null ? void 0 : s.bottom) ?? 0}` : "max-content"), b = Eo(Uo.SUPER_VIEW_PAGE);
|
|
43071
43071
|
return Fe(
|
|
43072
43072
|
() => t.node.attrs,
|
|
43073
43073
|
(y) => {
|
|
@@ -43489,7 +43489,7 @@ const tx = (t) => t.command(({ tr: e }) => {
|
|
|
43489
43489
|
value: o("editor.fontFamily.default")
|
|
43490
43490
|
};
|
|
43491
43491
|
return n.value ? tv(e.editor.state, "textStyle").fontFamily || f.value : i.value || f.value;
|
|
43492
|
-
}), l =
|
|
43492
|
+
}), l = Eo("fontFamily");
|
|
43493
43493
|
function u(f) {
|
|
43494
43494
|
f.value === a.value || f.value === o("editor.fontFamily.default") ? (e.editor.commands.unsetFontFamily(), i.value = null) : (i.value = f.value, e.editor.commands.setFontFamily(f.value), l.emit());
|
|
43495
43495
|
}
|
|
@@ -43614,7 +43614,7 @@ const tx = (t) => t.command(({ tr: e }) => {
|
|
|
43614
43614
|
editor: Object
|
|
43615
43615
|
},
|
|
43616
43616
|
setup(t) {
|
|
43617
|
-
const e = Gt("fontSize"), n = Y(() => e.value ? parseInt(e.value) === parseInt(Tg[0]) || parseInt(e.value) < parseInt(Tg[0]) : !1), o =
|
|
43617
|
+
const e = Gt("fontSize"), n = Y(() => e.value ? parseInt(e.value) === parseInt(Tg[0]) || parseInt(e.value) < parseInt(Tg[0]) : !1), o = Eo(Uo.INCREASE_DECREASE_FONTSIZE), r = (i) => {
|
|
43618
43618
|
o.emit(i);
|
|
43619
43619
|
};
|
|
43620
43620
|
return (i, s) => {
|
|
@@ -43684,7 +43684,7 @@ const tx = (t) => t.command(({ tr: e }) => {
|
|
|
43684
43684
|
]);
|
|
43685
43685
|
};
|
|
43686
43686
|
}
|
|
43687
|
-
}), hte = /* @__PURE__ */ rs(pte, [["__scopeId", "data-v-250d04b3"]]), mte =
|
|
43687
|
+
}), hte = /* @__PURE__ */ rs(pte, [["__scopeId", "data-v-250d04b3"]]), mte = go.create({
|
|
43688
43688
|
name: "fontSizeIncreaseDecrease",
|
|
43689
43689
|
addOptions() {
|
|
43690
43690
|
return {
|
|
@@ -44592,7 +44592,7 @@ const Fte = ["book-mark-node-id", "page-id", "page-number", "book-mark-content",
|
|
|
44592
44592
|
__name: "SuperText",
|
|
44593
44593
|
props: qa,
|
|
44594
44594
|
setup(t) {
|
|
44595
|
-
const e = t, n = H(!1), o = H(null), { selection: r, doc: i } = e.editor.state, s = H(!1), a = Gt("isMobile", !1), l =
|
|
44595
|
+
const e = t, n = H(!1), o = H(null), { selection: r, doc: i } = e.editor.state, s = H(!1), a = Gt("isMobile", !1), l = Eo(Uo.RENDER_SUPER_TEXT), { onTouchStart: u, onTouchMove: d, onTouchEnd: f } = Bte(e), h = Y(() => {
|
|
44596
44596
|
var I, j;
|
|
44597
44597
|
const k = i.resolve(r.from), A = k == null ? void 0 : k.node(-1), B = (I = A == null ? void 0 : A.attrs) == null ? void 0 : I.id, F = (j = A == null ? void 0 : A.attrs) == null ? void 0 : j.pageNumber;
|
|
44598
44598
|
return {
|
|
@@ -44942,7 +44942,7 @@ const Fte = ["book-mark-node-id", "page-id", "page-number", "book-mark-content",
|
|
|
44942
44942
|
__name: "ConfigPlan",
|
|
44943
44943
|
props: qa,
|
|
44944
44944
|
setup(t) {
|
|
44945
|
-
const e = t, n = H(!1), o = H(null), { selection: r, doc: i } = e.editor.state, s = Gt("isMobile"), a = H(!1), l =
|
|
44945
|
+
const e = t, n = H(!1), o = H(null), { selection: r, doc: i } = e.editor.state, s = Gt("isMobile"), a = H(!1), l = Eo(Uo.RENDER_SUPER_TEXT), u = Y(() => {
|
|
44946
44946
|
var T, k;
|
|
44947
44947
|
const w = i.resolve(r.from), E = w == null ? void 0 : w.node(-1), S = (T = E == null ? void 0 : E.attrs) == null ? void 0 : T.id, C = (k = E == null ? void 0 : E.attrs) == null ? void 0 : k.pageNumber;
|
|
44948
44948
|
return {
|
|
@@ -45370,7 +45370,7 @@ function Gte(t) {
|
|
|
45370
45370
|
for (let n = 0; n < t.colspan; n++) e.push(0);
|
|
45371
45371
|
return e;
|
|
45372
45372
|
}
|
|
45373
|
-
function
|
|
45373
|
+
function bo(t) {
|
|
45374
45374
|
let e = t.cached.tableNodeTypes;
|
|
45375
45375
|
if (!e) {
|
|
45376
45376
|
e = t.cached.tableNodeTypes = {};
|
|
@@ -45449,7 +45449,7 @@ function NT(t, e, n = 1) {
|
|
|
45449
45449
|
return o;
|
|
45450
45450
|
}
|
|
45451
45451
|
function Zte(t, e, n) {
|
|
45452
|
-
const o =
|
|
45452
|
+
const o = bo(e.type.schema).header_cell;
|
|
45453
45453
|
for (let r = 0; r < t.height; r++)
|
|
45454
45454
|
if (e.nodeAt(t.map[n + r * t.width]).type != o)
|
|
45455
45455
|
return !1;
|
|
@@ -45754,7 +45754,7 @@ function ine(t, e, n, o) {
|
|
|
45754
45754
|
d.firstChild && (m = d.firstChild.type.spec.tableRole);
|
|
45755
45755
|
const b = [];
|
|
45756
45756
|
for (let x = 0; x < h; x++) {
|
|
45757
|
-
const w =
|
|
45757
|
+
const w = bo(t.schema)[m].createAndFill();
|
|
45758
45758
|
w && b.push(w);
|
|
45759
45759
|
}
|
|
45760
45760
|
const y = (l == 0 || s == l - 1) && a == l ? u + 1 : f - 1;
|
|
@@ -45784,7 +45784,7 @@ function DT(t, { map: e, tableStart: n, table: o }, r) {
|
|
|
45784
45784
|
NT(u.attrs, r - e.colCount(l))
|
|
45785
45785
|
), s += u.attrs.rowspan - 1;
|
|
45786
45786
|
} else {
|
|
45787
|
-
const l = i == null ?
|
|
45787
|
+
const l = i == null ? bo(o.type.schema).cell : o.nodeAt(e.map[a + i]).type, u = e.positionAt(s, r, o);
|
|
45788
45788
|
t.insert(t.mapping.map(n + u), l.createAndFill());
|
|
45789
45789
|
}
|
|
45790
45790
|
}
|
|
@@ -45840,7 +45840,7 @@ function une(t, e) {
|
|
|
45840
45840
|
}
|
|
45841
45841
|
function cne(t, e, n) {
|
|
45842
45842
|
var o;
|
|
45843
|
-
const r =
|
|
45843
|
+
const r = bo(e.type.schema).header_cell;
|
|
45844
45844
|
for (let i = 0; i < t.width; i++)
|
|
45845
45845
|
if (((o = e.nodeAt(t.map[i + n * t.width])) == null ? void 0 : o.type) != r)
|
|
45846
45846
|
return !1;
|
|
@@ -45861,10 +45861,10 @@ function PT(t, { map: e, tableStart: n, table: o }, r) {
|
|
|
45861
45861
|
rowspan: h.rowspan + 1
|
|
45862
45862
|
}), u += h.colspan - 1;
|
|
45863
45863
|
} else {
|
|
45864
|
-
const f = l == null ?
|
|
45864
|
+
const f = l == null ? bo(o.type.schema).cell : (i = o.nodeAt(e.map[d + l * e.width])) == null ? void 0 : i.type, h = f == null ? void 0 : f.createAndFill();
|
|
45865
45865
|
h && a.push(h);
|
|
45866
45866
|
}
|
|
45867
|
-
return t.insert(s,
|
|
45867
|
+
return t.insert(s, bo(o.type.schema).row.create(null, a)), t;
|
|
45868
45868
|
}
|
|
45869
45869
|
function dne(t, e) {
|
|
45870
45870
|
if (!Gr(t)) return !1;
|
|
@@ -45981,7 +45981,7 @@ function lx(t, e) {
|
|
|
45981
45981
|
return !0;
|
|
45982
45982
|
}
|
|
45983
45983
|
function ux(t, e) {
|
|
45984
|
-
const n =
|
|
45984
|
+
const n = bo(t.schema);
|
|
45985
45985
|
return gne(({ node: o }) => n[o.type.spec.tableRole])(t, e);
|
|
45986
45986
|
}
|
|
45987
45987
|
function gne(t) {
|
|
@@ -46058,7 +46058,7 @@ function vne(t) {
|
|
|
46058
46058
|
return function(e, n) {
|
|
46059
46059
|
if (!Gr(e)) return !1;
|
|
46060
46060
|
if (n) {
|
|
46061
|
-
const o =
|
|
46061
|
+
const o = bo(e.schema), r = yi(e), i = e.tr, s = r.map.cellsInRect(
|
|
46062
46062
|
t == "column" ? {
|
|
46063
46063
|
left: r.left,
|
|
46064
46064
|
top: 0,
|
|
@@ -46107,7 +46107,7 @@ function Yc(t, e) {
|
|
|
46107
46107
|
return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? vne(t) : function(n, o) {
|
|
46108
46108
|
if (!Gr(n)) return !1;
|
|
46109
46109
|
if (o) {
|
|
46110
|
-
const r =
|
|
46110
|
+
const r = bo(n.schema), i = yi(n), s = n.tr, a = cx("row", i, r), l = cx(
|
|
46111
46111
|
"column",
|
|
46112
46112
|
i,
|
|
46113
46113
|
r
|
|
@@ -46188,7 +46188,7 @@ function Df(t, e) {
|
|
|
46188
46188
|
const n = t.selection;
|
|
46189
46189
|
if (!(n instanceof an)) return !1;
|
|
46190
46190
|
if (e) {
|
|
46191
|
-
const o = t.tr, r =
|
|
46191
|
+
const o = t.tr, r = bo(t.schema).cell.createAndFill().content;
|
|
46192
46192
|
n.forEachCell((i, s) => {
|
|
46193
46193
|
i.content.eq(r) || o.replace(
|
|
46194
46194
|
o.mapping.map(s + 1),
|
|
@@ -46210,14 +46210,14 @@ function Cne(t) {
|
|
|
46210
46210
|
let u = e.child(l).content;
|
|
46211
46211
|
const d = l ? 0 : Math.max(0, n - 1), f = l < e.childCount - 1 ? 0 : Math.max(0, o - 1);
|
|
46212
46212
|
(d || f) && (u = yb(
|
|
46213
|
-
|
|
46213
|
+
bo(s).row,
|
|
46214
46214
|
new De(u, d, f)
|
|
46215
46215
|
).content), a.push(u);
|
|
46216
46216
|
}
|
|
46217
46217
|
else if (i == "cell" || i == "header_cell")
|
|
46218
46218
|
a.push(
|
|
46219
46219
|
n || o ? yb(
|
|
46220
|
-
|
|
46220
|
+
bo(s).row,
|
|
46221
46221
|
new De(e, n, o)
|
|
46222
46222
|
).content : e
|
|
46223
46223
|
);
|
|
@@ -46239,7 +46239,7 @@ function Ene(t, e) {
|
|
|
46239
46239
|
for (let r = 0; r < n.length; r++) o = Math.max(o, n[r]);
|
|
46240
46240
|
for (let r = 0; r < n.length; r++)
|
|
46241
46241
|
if (r >= e.length && e.push(xe.empty), n[r] < o) {
|
|
46242
|
-
const i =
|
|
46242
|
+
const i = bo(t).cell.createAndFill(), s = [];
|
|
46243
46243
|
for (let a = n[r]; a < o; a++)
|
|
46244
46244
|
s.push(i);
|
|
46245
46245
|
e[r] = e[r].append(xe.from(s));
|
|
@@ -46293,7 +46293,7 @@ function _ne({ width: t, height: e, rows: n }, o, r) {
|
|
|
46293
46293
|
return { width: t, height: e, rows: n };
|
|
46294
46294
|
}
|
|
46295
46295
|
function Sne(t, e, n, o, r, i, s) {
|
|
46296
|
-
const a = t.doc.type.schema, l =
|
|
46296
|
+
const a = t.doc.type.schema, l = bo(a);
|
|
46297
46297
|
let u, d;
|
|
46298
46298
|
if (r > e.width)
|
|
46299
46299
|
for (let f = 0, h = 0; f < e.height; f++) {
|
|
@@ -46472,7 +46472,7 @@ function Ane(t, e, n) {
|
|
|
46472
46472
|
height: 1,
|
|
46473
46473
|
rows: [
|
|
46474
46474
|
xe.from(
|
|
46475
|
-
yb(
|
|
46475
|
+
yb(bo(t.state.schema).cell, n)
|
|
46476
46476
|
)
|
|
46477
46477
|
]
|
|
46478
46478
|
});
|
|
@@ -46614,7 +46614,7 @@ function Nne({
|
|
|
46614
46614
|
state: {
|
|
46615
46615
|
init(s, a) {
|
|
46616
46616
|
var l, u;
|
|
46617
|
-
const d = (u = (l = i.spec) == null ? void 0 : l.props) == null ? void 0 : u.nodeViews, f =
|
|
46617
|
+
const d = (u = (l = i.spec) == null ? void 0 : l.props) == null ? void 0 : u.nodeViews, f = bo(a.schema).table.name;
|
|
46618
46618
|
return o && d && (d[f] = (h, m) => new o(h, n, m)), new Ine(-1, !1);
|
|
46619
46619
|
},
|
|
46620
46620
|
apply(s, a) {
|
|
@@ -48585,7 +48585,7 @@ const Koe = {
|
|
|
48585
48585
|
mode: this.options.mode
|
|
48586
48586
|
};
|
|
48587
48587
|
}
|
|
48588
|
-
}), WT =
|
|
48588
|
+
}), WT = go.create({
|
|
48589
48589
|
name: "subscript",
|
|
48590
48590
|
addOptions() {
|
|
48591
48591
|
return {
|
|
@@ -48620,7 +48620,7 @@ const Koe = {
|
|
|
48620
48620
|
"Mod-,": () => this.editor.commands.toggleSubscript()
|
|
48621
48621
|
};
|
|
48622
48622
|
}
|
|
48623
|
-
}), jT =
|
|
48623
|
+
}), jT = go.create({
|
|
48624
48624
|
name: "superscript",
|
|
48625
48625
|
addOptions() {
|
|
48626
48626
|
return {
|
|
@@ -52003,22 +52003,22 @@ Dn.getAdapter = p7.getAdapter;
|
|
|
52003
52003
|
Dn.HttpStatusCode = kb;
|
|
52004
52004
|
Dn.default = Dn;
|
|
52005
52005
|
const {
|
|
52006
|
-
Axios:
|
|
52007
|
-
AxiosError:
|
|
52008
|
-
CanceledError:
|
|
52009
|
-
isCancel:
|
|
52010
|
-
CancelToken:
|
|
52011
|
-
VERSION:
|
|
52012
|
-
all:
|
|
52013
|
-
Cancel:
|
|
52014
|
-
isAxiosError:
|
|
52015
|
-
spread:
|
|
52016
|
-
toFormData:
|
|
52017
|
-
AxiosHeaders:
|
|
52018
|
-
HttpStatusCode:
|
|
52019
|
-
formToJSON:
|
|
52020
|
-
getAdapter:
|
|
52021
|
-
mergeConfig:
|
|
52006
|
+
Axios: Wae,
|
|
52007
|
+
AxiosError: jae,
|
|
52008
|
+
CanceledError: qae,
|
|
52009
|
+
isCancel: Kae,
|
|
52010
|
+
CancelToken: Gae,
|
|
52011
|
+
VERSION: Xae,
|
|
52012
|
+
all: Yae,
|
|
52013
|
+
Cancel: Jae,
|
|
52014
|
+
isAxiosError: Zae,
|
|
52015
|
+
spread: Qae,
|
|
52016
|
+
toFormData: ele,
|
|
52017
|
+
AxiosHeaders: tle,
|
|
52018
|
+
HttpStatusCode: nle,
|
|
52019
|
+
formToJSON: ole,
|
|
52020
|
+
getAdapter: rle,
|
|
52021
|
+
mergeConfig: ile
|
|
52022
52022
|
} = Dn, gse = async function(t) {
|
|
52023
52023
|
let e = [];
|
|
52024
52024
|
try {
|
|
@@ -52074,7 +52074,7 @@ class b7 {
|
|
|
52074
52074
|
return this.enabled;
|
|
52075
52075
|
}
|
|
52076
52076
|
}
|
|
52077
|
-
const
|
|
52077
|
+
const sle = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
52078
52078
|
__proto__: null,
|
|
52079
52079
|
AI: _re,
|
|
52080
52080
|
BaseKit: UT,
|
|
@@ -52118,7 +52118,7 @@ const ile = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
52118
52118
|
Video: HT,
|
|
52119
52119
|
VideoUpload: $T
|
|
52120
52120
|
}, Symbol.toStringTag, { value: "Module" })), bse = '<page id="ft6nbbxs" extend="false" pagenumber="1" force="false"><h1 id="tk6n64mj" extend=""false""><strong>Introduction(English)</strong></h1><p id="s864ng1o" extend=""false"">MyMy Editor is open-source document editor based on Vue3 and Tiptap. MyMy Editor provides comprehensive document editing capabilities, supports pagination, supports Markdown syntax, offers basic rich text editing functions, allows for the insertion of various node types in multiple formats, provides a variety of practical tools, and supports setting page styles. It also supports exporting in various formats, printing and print preview, block-level document editing, adding custom extensions, multi-language settings, and a dark theme.</p><h1 id="jm9johtz" extend=""false""><strong>소개(국문)</strong></h1><p id="0qei01hl" extend=""false"">마이마이 에디터는 Vue3과 Tiptap을 기반으로 한 오픈소스 문서 편집기입니다. 마이마이 에디터는 포괄적인 문서 편집 기능을 제공하며, 페이지네이션, 마크다운 구문 지원, 기본적인 리치 텍스트 편집 기능, 다양한 형식의 다양한 노드 유형 삽입, 다양한 실용적인 도구 제공, 페이지 스타일 설정 지원 등을 제공합니다. 또한 다양한 형식으로 내보내기, 인쇄 및 인쇄 미리보기, 블록 수준의 문서 편집, 사용자 지정 확장 추가, 다국어 설정 및 다크 테마를 지원합니다.마이마이 에디터는 Vue3과 Tiptap을 기반으로 한 오픈소스 문서 편집기입니다. 마이마이 에디터는 포괄적인 문서 편집 기능을 제공하며, 페이지네이션, 마크다운 구문 지원, 기본적인 리치 텍스트 편집 기능, 다양한 형식의 다양한 노드 유형 삽입, 다양한 실용적인 도구 제공, 페이지 스타일 설정 지원 등을 제공합니다. 또한 다양한 형식으로 내보내기, 인쇄 및 인쇄 미리보기, 블록 수준의 문서 편집, 사용자 지정 확장 추가, 다국어 설정 및 다크 테마를 지원합니다.</p><blockquote class="blockquote"><p id="nekf7yi0" extend="false"><span style="color: rgb(115, 209, 61)"><strong><em>Make by VDC</em></strong></span></p></blockquote></page>';
|
|
52121
|
-
function
|
|
52121
|
+
function ale() {
|
|
52122
52122
|
const t = window.localStorage.getItem("content"), e = H(t || bse), n = Y(() => [
|
|
52123
52123
|
UT.configure({
|
|
52124
52124
|
placeholder: {
|
|
@@ -52201,7 +52201,7 @@ function sle() {
|
|
|
52201
52201
|
// AI.configure({
|
|
52202
52202
|
// completions: text => AICompletions(text),
|
|
52203
52203
|
// }),
|
|
52204
|
-
]), o =
|
|
52204
|
+
]), o = Eo(
|
|
52205
52205
|
Uo.RENDER_SUPER_TEXT
|
|
52206
52206
|
);
|
|
52207
52207
|
function r(i, s) {
|
|
@@ -52744,7 +52744,7 @@ const vse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
52744
52744
|
}
|
|
52745
52745
|
}
|
|
52746
52746
|
), w7 = (t, e, n, o, r) => {
|
|
52747
|
-
const i = H(0), s =
|
|
52747
|
+
const i = H(0), s = Eo(Uo.RENDER_SUPER_TEXT), a = (T) => {
|
|
52748
52748
|
if (!e.value || !t) return;
|
|
52749
52749
|
const k = e.value.index, A = e.value.id, { state: B } = t, { tr: F } = B;
|
|
52750
52750
|
let I = !1;
|
|
@@ -53193,7 +53193,7 @@ const vse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53193
53193
|
},
|
|
53194
53194
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
53195
53195
|
setup(t, { expose: e, emit: n }) {
|
|
53196
|
-
const o = t, r = n, i =
|
|
53196
|
+
const o = t, r = n, i = Eo(Uo.RENDER_SUPER_TEXT), s = Qc(), a = ro(), {
|
|
53197
53197
|
isReady: l,
|
|
53198
53198
|
editor: u,
|
|
53199
53199
|
updateEditorState: d,
|
|
@@ -53416,7 +53416,7 @@ const qse = { class: "flex flex-1" }, K2 = /* @__PURE__ */ W({
|
|
|
53416
53416
|
},
|
|
53417
53417
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
53418
53418
|
setup(t, { expose: e, emit: n }) {
|
|
53419
|
-
const o = t, r = n, i =
|
|
53419
|
+
const o = t, r = n, i = Eo(Uo.RENDER_SUPER_TEXT), s = Eo(Uo.INCREASE_DECREASE_FONTSIZE), a = Qc(), l = ro(), {
|
|
53420
53420
|
state: u,
|
|
53421
53421
|
isFullscreen: d,
|
|
53422
53422
|
isReady: f,
|
|
@@ -54102,7 +54102,15 @@ const qse = { class: "flex flex-1" }, K2 = /* @__PURE__ */ W({
|
|
|
54102
54102
|
])
|
|
54103
54103
|
]));
|
|
54104
54104
|
}
|
|
54105
|
-
}), eae =
|
|
54105
|
+
}), eae = go.create({
|
|
54106
|
+
name: "diffDel",
|
|
54107
|
+
parseHTML() {
|
|
54108
|
+
return [{ tag: "span.diff-del" }];
|
|
54109
|
+
},
|
|
54110
|
+
renderHTML({ HTMLAttributes: t }) {
|
|
54111
|
+
return ["span", { class: "diff-del", ...t }, 0];
|
|
54112
|
+
}
|
|
54113
|
+
}), tae = /* @__PURE__ */ W({
|
|
54106
54114
|
__name: "EditorCommentMoblie",
|
|
54107
54115
|
props: {
|
|
54108
54116
|
isMobile: { type: Boolean },
|
|
@@ -54175,7 +54183,7 @@ const qse = { class: "flex flex-1" }, K2 = /* @__PURE__ */ W({
|
|
|
54175
54183
|
const E = b(w, o.output);
|
|
54176
54184
|
r("update:modelValue", E), r("change", { editor: w, output: E }), u(w);
|
|
54177
54185
|
}, fi),
|
|
54178
|
-
extensions: Et.uniqBy(Et.reverse(g(o.extensions)), "name"),
|
|
54186
|
+
extensions: [eae, ...Et.uniqBy(Et.reverse(g(o.extensions)), "name")],
|
|
54179
54187
|
editable: f.value,
|
|
54180
54188
|
onFocus: () => {
|
|
54181
54189
|
m();
|
|
@@ -54292,9 +54300,7 @@ const qse = { class: "flex flex-1" }, K2 = /* @__PURE__ */ W({
|
|
|
54292
54300
|
id: "editor-panel",
|
|
54293
54301
|
editor: g(h),
|
|
54294
54302
|
spellcheck: "true",
|
|
54295
|
-
class: je([
|
|
54296
|
-
"flex-1 flex-col relative"
|
|
54297
|
-
])
|
|
54303
|
+
class: je(["flex-1 flex-col relative"])
|
|
54298
54304
|
}, null, 8, ["editor"])
|
|
54299
54305
|
]),
|
|
54300
54306
|
_: 1
|
|
@@ -54668,7 +54674,7 @@ const Y2 = /* @__PURE__ */ W({
|
|
|
54668
54674
|
], 4));
|
|
54669
54675
|
}
|
|
54670
54676
|
});
|
|
54671
|
-
class
|
|
54677
|
+
class nae {
|
|
54672
54678
|
isNativeWebViewAvailable() {
|
|
54673
54679
|
return window.ReactNativeWebView !== void 0;
|
|
54674
54680
|
}
|
|
@@ -54757,9 +54763,9 @@ const yc = /* @__PURE__ */ W({
|
|
|
54757
54763
|
},
|
|
54758
54764
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
|
|
54759
54765
|
setup(t, { expose: e, emit: n }) {
|
|
54760
|
-
const o = t, r = n, i = new
|
|
54766
|
+
const o = t, r = n, i = new nae();
|
|
54761
54767
|
cn("isMobile", !0);
|
|
54762
|
-
const s =
|
|
54768
|
+
const s = Eo(Uo.INCREASE_DECREASE_FONTSIZE), a = Qc(), l = ro(), {
|
|
54763
54769
|
state: u,
|
|
54764
54770
|
isFullscreen: d,
|
|
54765
54771
|
isReady: f,
|
|
@@ -55090,7 +55096,7 @@ const yc = /* @__PURE__ */ W({
|
|
|
55090
55096
|
)
|
|
55091
55097
|
)
|
|
55092
55098
|
}, [
|
|
55093
|
-
D(
|
|
55099
|
+
D(tae, {
|
|
55094
55100
|
ref_key: "editorCommentRef",
|
|
55095
55101
|
ref: ve,
|
|
55096
55102
|
mode: se.mode,
|
|
@@ -55193,7 +55199,7 @@ const yc = /* @__PURE__ */ W({
|
|
|
55193
55199
|
], 64);
|
|
55194
55200
|
};
|
|
55195
55201
|
}
|
|
55196
|
-
}),
|
|
55202
|
+
}), lle = /* @__PURE__ */ W({
|
|
55197
55203
|
__name: "ArticleEditor",
|
|
55198
55204
|
props: {
|
|
55199
55205
|
mode: { default: Qe.STRAIGHT },
|
|
@@ -55252,7 +55258,7 @@ const yc = /* @__PURE__ */ W({
|
|
|
55252
55258
|
"onUpdate:comment": r[1] || (r[1] = (i) => o.$emit("update:comment", i))
|
|
55253
55259
|
}), null, 16));
|
|
55254
55260
|
}
|
|
55255
|
-
}),
|
|
55261
|
+
}), ule = /* @__PURE__ */ W({
|
|
55256
55262
|
__name: "DigitalNewsEditor",
|
|
55257
55263
|
props: {
|
|
55258
55264
|
mode: { default: Qe.EDITOR },
|
|
@@ -55667,21 +55673,21 @@ var E7 = { exports: {} };
|
|
|
55667
55673
|
ve.htmlToTokens = x, ve.findMatchingBlocks = B, B.findBestMatch = T, B.createMap = E, B.createToken = b, B.createSegment = A, B.getKeyForToken = w, ve.calculateOperations = F, ve.renderOperations = oe, t !== null ? t.exports = ve : this.htmldiff = ve;
|
|
55668
55674
|
}).call(Ol);
|
|
55669
55675
|
})(E7);
|
|
55670
|
-
var
|
|
55671
|
-
const
|
|
55676
|
+
var oae = E7.exports;
|
|
55677
|
+
const rae = /* @__PURE__ */ MH(oae), Hx = (t, e, n) => {
|
|
55672
55678
|
let o = "";
|
|
55673
55679
|
{
|
|
55674
55680
|
const r = fo(t, n), i = fo(e, n);
|
|
55675
|
-
o =
|
|
55681
|
+
o = rae(r, i, null, null, "button");
|
|
55676
55682
|
}
|
|
55677
|
-
return o = o.replace(/<del[^>]*>/g, '<
|
|
55678
|
-
},
|
|
55683
|
+
return o = o.replace(/<del[^>]*>/g, '<span class="diff-del">').replace(/<\/del>/g, "</span>").replace(/<ins[^>]*>/g, '<mark style="background:#FEF3C7;">').replace(/<\/ins>/g, "</mark>"), o;
|
|
55684
|
+
}, iae = {
|
|
55679
55685
|
key: 0,
|
|
55680
55686
|
class: "px-2 min-h-[24px] flex items-center justify-between gap-1 mb-1.5"
|
|
55681
|
-
},
|
|
55687
|
+
}, sae = { class: "flex items-center gap-2" }, aae = { class: "body-small text-gray-600 px-[6px] py-[2px] shrink-0 rounded-[4px] bg-gray-100 !text-gray-600" }, lae = { class: "label-large text-gray-800 line-clamp-1" }, uae = { class: "flex items-center gap-1 shrink-0" }, cae = { class: "mt-[2px]" }, dae = { class: "body-small text-gray-400" }, fae = { class: "border border-gray-50 rounded-md py-[10px] px-4 flex-1 overflow-y-auto" }, pae = { class: "border border-ed-gray rounded-[5px] p-2.5 h-full" }, hae = {
|
|
55682
55688
|
key: 0,
|
|
55683
55689
|
class: "px-2 min-h-[24px] flex items-center justify-between gap-1 mb-1.5"
|
|
55684
|
-
},
|
|
55690
|
+
}, mae = { class: "flex items-center gap-2" }, gae = { class: "body-small text-gray-600 px-[6px] py-[2px] shrink-0 rounded-[4px] bg-blue-50 !text-blue-500" }, bae = { class: "label-large text-gray-800 line-clamp-1" }, vae = { class: "flex items-center gap-1 shrink-0" }, yae = { class: "mt-[2px]" }, wae = { class: "body-small text-gray-400" }, xae = { class: "border border-gray-50 bg-dark-blue-600 rounded-md py-[10px] px-4 flex-1 overflow-y-auto" }, Cae = /* @__PURE__ */ W({
|
|
55685
55691
|
__name: "ArticleCompareEditor",
|
|
55686
55692
|
props: {
|
|
55687
55693
|
originalData: {},
|
|
@@ -55734,22 +55740,22 @@ const oae = /* @__PURE__ */ MH(nae), Hx = (t, e, n) => {
|
|
|
55734
55740
|
default: N(() => {
|
|
55735
55741
|
var w, E, S, C, T, k, A, B, F, I;
|
|
55736
55742
|
return [
|
|
55737
|
-
(E = (w = b.originalData) == null ? void 0 : w.titleBar) != null && E.title ? (M(), ge("div",
|
|
55738
|
-
te("div",
|
|
55739
|
-
te("div",
|
|
55740
|
-
te("h3",
|
|
55743
|
+
(E = (w = b.originalData) == null ? void 0 : w.titleBar) != null && E.title ? (M(), ge("div", iae, [
|
|
55744
|
+
te("div", sae, [
|
|
55745
|
+
te("div", aae, Le(b.$t("기준")), 1),
|
|
55746
|
+
te("h3", lae, Le((C = (S = b.originalData) == null ? void 0 : S.titleBar) == null ? void 0 : C.title), 1)
|
|
55741
55747
|
]),
|
|
55742
|
-
te("div",
|
|
55743
|
-
te("div",
|
|
55748
|
+
te("div", uae, [
|
|
55749
|
+
te("div", cae, [
|
|
55744
55750
|
D(x, {
|
|
55745
55751
|
name: "Clock",
|
|
55746
55752
|
class: "w-[13px] h-[13px] text-gray-400"
|
|
55747
55753
|
})
|
|
55748
55754
|
]),
|
|
55749
|
-
te("div",
|
|
55755
|
+
te("div", dae, Le((k = (T = b.originalData) == null ? void 0 : T.titleBar) == null ? void 0 : k.time), 1)
|
|
55750
55756
|
])
|
|
55751
55757
|
])) : Oe("", !0),
|
|
55752
|
-
te("div",
|
|
55758
|
+
te("div", fae, [
|
|
55753
55759
|
D(yc, {
|
|
55754
55760
|
"editor-class": "h-full",
|
|
55755
55761
|
mode: g(Qe).REPORT,
|
|
@@ -55770,7 +55776,7 @@ const oae = /* @__PURE__ */ MH(nae), Hx = (t, e, n) => {
|
|
|
55770
55776
|
default: N(() => {
|
|
55771
55777
|
var w, E, S, C;
|
|
55772
55778
|
return [
|
|
55773
|
-
te("div",
|
|
55779
|
+
te("div", pae, [
|
|
55774
55780
|
D(yc, {
|
|
55775
55781
|
"editor-class": "h-full",
|
|
55776
55782
|
mode: g(Qe).REPORT,
|
|
@@ -55794,22 +55800,22 @@ const oae = /* @__PURE__ */ MH(nae), Hx = (t, e, n) => {
|
|
|
55794
55800
|
default: N(() => {
|
|
55795
55801
|
var w, E, S, C, T, k, A, B;
|
|
55796
55802
|
return [
|
|
55797
|
-
(E = (w = b.changedData) == null ? void 0 : w.titleBar) != null && E.title ? (M(), ge("div",
|
|
55798
|
-
te("div",
|
|
55799
|
-
te("div",
|
|
55800
|
-
te("h3",
|
|
55803
|
+
(E = (w = b.changedData) == null ? void 0 : w.titleBar) != null && E.title ? (M(), ge("div", hae, [
|
|
55804
|
+
te("div", mae, [
|
|
55805
|
+
te("div", gae, Le(b.$t("대상")), 1),
|
|
55806
|
+
te("h3", bae, Le((C = (S = b.changedData) == null ? void 0 : S.titleBar) == null ? void 0 : C.title), 1)
|
|
55801
55807
|
]),
|
|
55802
|
-
te("div",
|
|
55803
|
-
te("div",
|
|
55808
|
+
te("div", vae, [
|
|
55809
|
+
te("div", yae, [
|
|
55804
55810
|
D(x, {
|
|
55805
55811
|
name: "Clock",
|
|
55806
55812
|
class: "w-[13px] h-[13px] text-gray-400"
|
|
55807
55813
|
})
|
|
55808
55814
|
]),
|
|
55809
|
-
te("div",
|
|
55815
|
+
te("div", wae, Le((k = (T = b.changedData) == null ? void 0 : T.titleBar) == null ? void 0 : k.time), 1)
|
|
55810
55816
|
])
|
|
55811
55817
|
])) : Oe("", !0),
|
|
55812
|
-
te("div",
|
|
55818
|
+
te("div", xae, [
|
|
55813
55819
|
D(yc, {
|
|
55814
55820
|
"editor-class": "h-full",
|
|
55815
55821
|
mode: g(Qe).REPORT,
|
|
@@ -55842,14 +55848,14 @@ const oae = /* @__PURE__ */ MH(nae), Hx = (t, e, n) => {
|
|
|
55842
55848
|
], 64);
|
|
55843
55849
|
};
|
|
55844
55850
|
}
|
|
55845
|
-
}),
|
|
55851
|
+
}), cle = /* @__PURE__ */ rs(Cae, [["__scopeId", "data-v-7c635073"]]), _7 = (t) => {
|
|
55846
55852
|
if (!t) return -1;
|
|
55847
55853
|
const { from: e } = t.state.selection;
|
|
55848
55854
|
let n = 0;
|
|
55849
55855
|
return t.state.doc.descendants((o, r) => {
|
|
55850
55856
|
o.type.name === u0 && r < e && n++;
|
|
55851
55857
|
}), n;
|
|
55852
|
-
},
|
|
55858
|
+
}, Eae = /* @__PURE__ */ W({
|
|
55853
55859
|
__name: "SuperViewMobileSuperEditor",
|
|
55854
55860
|
props: {
|
|
55855
55861
|
isMobile: { type: Boolean },
|
|
@@ -55900,7 +55906,7 @@ const oae = /* @__PURE__ */ MH(nae), Hx = (t, e, n) => {
|
|
|
55900
55906
|
setup(t, { expose: e, emit: n }) {
|
|
55901
55907
|
const o = t, r = n;
|
|
55902
55908
|
Y(() => o.mode === Qe.EDITOR);
|
|
55903
|
-
const i =
|
|
55909
|
+
const i = Eo(Uo.RENDER_SUPER_TEXT), s = ro(), { isReady: a, editor: l, updateEditorState: u, checkSpellStore: d } = s, f = H(!1);
|
|
55904
55910
|
cn("isEditable", f);
|
|
55905
55911
|
const h = H(rw(o.modelValue));
|
|
55906
55912
|
function m(C) {
|
|
@@ -56018,7 +56024,7 @@ const oae = /* @__PURE__ */ MH(nae), Hx = (t, e, n) => {
|
|
|
56018
56024
|
], 64);
|
|
56019
56025
|
};
|
|
56020
56026
|
}
|
|
56021
|
-
}),
|
|
56027
|
+
}), _ae = (t, e) => {
|
|
56022
56028
|
let n = null;
|
|
56023
56029
|
return t.state.doc.descendants((o, r) => {
|
|
56024
56030
|
if (o.type.name === "paragraph" && Number(o.attrs["number-line"]) === e)
|
|
@@ -56038,7 +56044,7 @@ async function Vx({
|
|
|
56038
56044
|
return e.view.dispatch(u), !1;
|
|
56039
56045
|
}
|
|
56040
56046
|
}), await Rt(), !t) return;
|
|
56041
|
-
const n =
|
|
56047
|
+
const n = _ae(e, t);
|
|
56042
56048
|
if (!n) return;
|
|
56043
56049
|
const { node: o, pos: r } = n, i = e.state.tr.setNodeMarkup(r, void 0, {
|
|
56044
56050
|
...o.attrs,
|
|
@@ -56046,7 +56052,7 @@ async function Vx({
|
|
|
56046
56052
|
});
|
|
56047
56053
|
e.view.dispatch(i), await Rt(), e.view.nodeDOM(r).scrollIntoView({ behavior: "smooth" });
|
|
56048
56054
|
}
|
|
56049
|
-
const
|
|
56055
|
+
const dle = /* @__PURE__ */ W({
|
|
56050
56056
|
__name: "SuperViewMobileEditor",
|
|
56051
56057
|
props: {
|
|
56052
56058
|
isMobile: { type: Boolean },
|
|
@@ -56097,7 +56103,7 @@ const cle = /* @__PURE__ */ W({
|
|
|
56097
56103
|
setup(t, { expose: e, emit: n }) {
|
|
56098
56104
|
const o = t, r = n;
|
|
56099
56105
|
cn("isMobile", !0);
|
|
56100
|
-
const i = Y(() => o.mode === Qe.EDITOR), s =
|
|
56106
|
+
const i = Y(() => o.mode === Qe.EDITOR), s = Eo(Uo.INCREASE_DECREASE_FONTSIZE);
|
|
56101
56107
|
Qc();
|
|
56102
56108
|
const a = ro(), { state: l, isFullscreen: u, isReady: d, editor: f, updateEditorState: h, checkSpellStore: m } = a, b = H(!1);
|
|
56103
56109
|
cn("isEditable", b);
|
|
@@ -56354,7 +56360,7 @@ const cle = /* @__PURE__ */ W({
|
|
|
56354
56360
|
)
|
|
56355
56361
|
)
|
|
56356
56362
|
}, [
|
|
56357
|
-
D(
|
|
56363
|
+
D(Eae, {
|
|
56358
56364
|
ref_key: "superEditorRef",
|
|
56359
56365
|
ref: x,
|
|
56360
56366
|
mode: q.mode,
|
|
@@ -56385,7 +56391,7 @@ const cle = /* @__PURE__ */ W({
|
|
|
56385
56391
|
], 64);
|
|
56386
56392
|
};
|
|
56387
56393
|
}
|
|
56388
|
-
}),
|
|
56394
|
+
}), Sae = {
|
|
56389
56395
|
"editor.remove": "Remove",
|
|
56390
56396
|
"editor.copy": "Copy",
|
|
56391
56397
|
"editor.words": "WORDS",
|
|
@@ -56582,7 +56588,7 @@ const cle = /* @__PURE__ */ W({
|
|
|
56582
56588
|
"editor.alert": "Super has been changed. Super ID will be deleted.",
|
|
56583
56589
|
"editor.alertConfirm": "Confirm",
|
|
56584
56590
|
"editor.alertYes": "OK"
|
|
56585
|
-
},
|
|
56591
|
+
}, Tae = {
|
|
56586
56592
|
"editor.remove": "제거",
|
|
56587
56593
|
"editor.copy": "복사",
|
|
56588
56594
|
"editor.words": "낱말",
|
|
@@ -56779,33 +56785,33 @@ const cle = /* @__PURE__ */ W({
|
|
|
56779
56785
|
"editor.alert": "수퍼가 변경되었습니다. 수퍼아이디를 삭제합니다.",
|
|
56780
56786
|
"editor.alertConfirm": "확인",
|
|
56781
56787
|
"editor.alertYes": "확인"
|
|
56782
|
-
},
|
|
56788
|
+
}, kae = $K({
|
|
56783
56789
|
legacy: !1,
|
|
56784
56790
|
locale: "en",
|
|
56785
56791
|
fallbackLocale: "en",
|
|
56786
56792
|
messages: {
|
|
56787
|
-
en:
|
|
56788
|
-
ko:
|
|
56793
|
+
en: Sae,
|
|
56794
|
+
ko: Tae
|
|
56789
56795
|
}
|
|
56790
56796
|
});
|
|
56791
56797
|
sS();
|
|
56792
|
-
const
|
|
56798
|
+
const fle = {
|
|
56793
56799
|
install(t) {
|
|
56794
|
-
t.use(
|
|
56800
|
+
t.use(kae), t.component("vdc-editor", K2);
|
|
56795
56801
|
}
|
|
56796
|
-
},
|
|
56797
|
-
function
|
|
56798
|
-
|
|
56802
|
+
}, Aae = Eo(Uo.RENDER_SUPER_TEXT);
|
|
56803
|
+
function ple() {
|
|
56804
|
+
Aae.emit({
|
|
56799
56805
|
action: "render"
|
|
56800
56806
|
});
|
|
56801
56807
|
}
|
|
56802
56808
|
export {
|
|
56803
|
-
|
|
56804
|
-
|
|
56809
|
+
cle as A,
|
|
56810
|
+
Sae as B,
|
|
56805
56811
|
NS as C,
|
|
56806
56812
|
Dt as D,
|
|
56807
56813
|
Qe as E,
|
|
56808
|
-
|
|
56814
|
+
Tae as F,
|
|
56809
56815
|
qt as P,
|
|
56810
56816
|
Do as S,
|
|
56811
56817
|
rs as _,
|
|
@@ -56823,17 +56829,17 @@ export {
|
|
|
56823
56829
|
y7 as l,
|
|
56824
56830
|
L2 as m,
|
|
56825
56831
|
Mte as n,
|
|
56826
|
-
|
|
56827
|
-
|
|
56832
|
+
Pae as o,
|
|
56833
|
+
fle as p,
|
|
56828
56834
|
K2 as q,
|
|
56829
|
-
|
|
56830
|
-
|
|
56831
|
-
|
|
56832
|
-
|
|
56833
|
-
|
|
56834
|
-
|
|
56835
|
+
lle as r,
|
|
56836
|
+
ule as s,
|
|
56837
|
+
dle as t,
|
|
56838
|
+
ple as u,
|
|
56839
|
+
sle as v,
|
|
56840
|
+
ale as w,
|
|
56835
56841
|
ro as x,
|
|
56836
|
-
|
|
56837
|
-
|
|
56842
|
+
Hae as y,
|
|
56843
|
+
Lae as z
|
|
56838
56844
|
};
|
|
56839
|
-
//# sourceMappingURL=index-
|
|
56845
|
+
//# sourceMappingURL=index-BaaGyn1n.mjs.map
|