vdc-editor 0.1.228 → 0.1.229
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-DWPaQrWK.mjs → BulkSpellChecker-Cn3sOYpm.mjs} +2 -2
- package/lib/{BulkSpellChecker-DWPaQrWK.mjs.map → BulkSpellChecker-Cn3sOYpm.mjs.map} +1 -1
- package/lib/{index-CSjGxXU3.mjs → index--iCf6MEY.mjs} +85 -83
- package/lib/{index-CSjGxXU3.mjs.map → index--iCf6MEY.mjs.map} +1 -1
- package/lib/vdc-editor.mjs +1 -1
- package/lib/vdc-editor.umd.js +1 -1
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var oR = Object.defineProperty;
|
|
|
2
2
|
var rR = (t, e, n) => e in t ? oR(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var hn = (t, e, n) => rR(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import * as T4 from "vue";
|
|
5
|
-
import { defineComponent as j, createElementBlock as ue, openBlock as O, normalizeClass as He, unref as g, toDisplayString as Le, markRaw as Tb, ref as V, onMounted as mt, onBeforeUnmount as so, h as Dn, getCurrentInstance as jo, watchEffect as Tn, nextTick as
|
|
5
|
+
import { defineComponent as j, createElementBlock as ue, openBlock as O, normalizeClass as He, unref as g, toDisplayString as Le, markRaw as Tb, ref as V, onMounted as mt, onBeforeUnmount as so, h as Dn, getCurrentInstance as jo, watchEffect as Tn, nextTick as It, customRef as Kx, shallowRef as mh, provide as yn, reactive as lr, render as k4, watch as De, computed as X, normalizeStyle as Ht, createCommentVNode as ve, createBlock as $, createVNode as L, getCurrentScope as Gx, onScopeDispose as Xx, shallowReadonly as wl, toRefs as Bn, withCtx as N, renderSlot as ne, onBeforeMount as ed, onUnmounted as zn, normalizeProps as jt, guardReactiveProps as Yt, mergeProps as Me, toHandlers as iR, resolveDynamicComponent as Wn, toRef as sR, camelize as Jx, withKeys as Ul, withModifiers as En, Fragment as et, toHandlerKey as aR, inject as Jt, readonly as Yx, Teleport as td, useSlots as gh, createTextVNode as at, Comment as Zx, cloneVNode as lR, mergeDefaults as Qx, watchPostEffect as uR, effectScope as kb, onBeforeUpdate as cR, onUpdated as dR, isRef as nd, createElementVNode as Q, renderList as Ut, withDirectives as _o, vModelSelect as fR, Text as pR, defineAsyncComponent as hR, createSlots as Ab, vModelText as mR, vShow as rr, useAttrs as od, onActivated as gR } from "vue";
|
|
6
6
|
import { useVModel as bR, useLocalStorage as e5, createEventHook as A4, createGlobalState as vR, useFullscreen as yR, useEventBus as To, useFocus as wR, onClickOutside as xR, useFileDialog as CR, useElementSize as ER, onLongPress as SR, useEventListener as O4 } from "@vueuse/core";
|
|
7
7
|
function t5(t) {
|
|
8
8
|
var e, n, o = "";
|
|
@@ -16620,7 +16620,7 @@ const So = j({
|
|
|
16620
16620
|
const e = V(), n = jo();
|
|
16621
16621
|
return Tn(() => {
|
|
16622
16622
|
const o = t.editor;
|
|
16623
|
-
o && o.options.element && e.value &&
|
|
16623
|
+
o && o.options.element && e.value && It(() => {
|
|
16624
16624
|
if (!e.value || !o.options.element.firstChild)
|
|
16625
16625
|
return;
|
|
16626
16626
|
const r = g(e.value);
|
|
@@ -18527,7 +18527,7 @@ _p.exports;
|
|
|
18527
18527
|
while (p);
|
|
18528
18528
|
return y;
|
|
18529
18529
|
}
|
|
18530
|
-
function
|
|
18530
|
+
function Rt(c, p) {
|
|
18531
18531
|
return Cm($3(c, p, Po), c + "");
|
|
18532
18532
|
}
|
|
18533
18533
|
function cA(c) {
|
|
@@ -18692,7 +18692,7 @@ _p.exports;
|
|
|
18692
18692
|
function ms(c, p) {
|
|
18693
18693
|
return wt(c) ? c : ym(c, p) ? [c] : W3(Gt(c));
|
|
18694
18694
|
}
|
|
18695
|
-
var mA =
|
|
18695
|
+
var mA = Rt;
|
|
18696
18696
|
function gs(c, p, y) {
|
|
18697
18697
|
var _ = c.length;
|
|
18698
18698
|
return y = y === n ? _ : y, !p && y >= _ ? c : br(c, p, y);
|
|
@@ -18793,7 +18793,7 @@ _p.exports;
|
|
|
18793
18793
|
};
|
|
18794
18794
|
}
|
|
18795
18795
|
function ml(c) {
|
|
18796
|
-
return
|
|
18796
|
+
return Rt(function(p, y) {
|
|
18797
18797
|
var _ = -1, M = y.length, R = M > 1 ? y[M - 1] : n, W = M > 2 ? y[2] : n;
|
|
18798
18798
|
for (R = c.length > 3 && typeof R == "function" ? (M--, R) : n, W && xo(y[0], y[1], W) && (R = M < 3 ? n : R, M = 1), p = rn(p); ++_ < M; ) {
|
|
18799
18799
|
var G = y[_];
|
|
@@ -18977,7 +18977,7 @@ _p.exports;
|
|
|
18977
18977
|
}
|
|
18978
18978
|
function fm(c) {
|
|
18979
18979
|
return Ni(function(p) {
|
|
18980
|
-
return p = bn(p, Go(lt())),
|
|
18980
|
+
return p = bn(p, Go(lt())), Rt(function(y) {
|
|
18981
18981
|
var _ = this;
|
|
18982
18982
|
return c(p, function(M) {
|
|
18983
18983
|
return Ko(M, _, y);
|
|
@@ -19535,12 +19535,12 @@ _p.exports;
|
|
|
19535
19535
|
p[_ - 1] = arguments[_];
|
|
19536
19536
|
return cs(wt(y) ? Ro(y) : [y], eo(p, 1));
|
|
19537
19537
|
}
|
|
19538
|
-
var GA =
|
|
19538
|
+
var GA = Rt(function(c, p) {
|
|
19539
19539
|
return Nn(c) ? Pu(c, eo(p, 1, Nn, !0)) : [];
|
|
19540
|
-
}), XA =
|
|
19540
|
+
}), XA = Rt(function(c, p) {
|
|
19541
19541
|
var y = vr(p);
|
|
19542
19542
|
return Nn(y) && (y = n), Nn(c) ? Pu(c, eo(p, 1, Nn, !0), lt(y, 2)) : [];
|
|
19543
|
-
}), JA =
|
|
19543
|
+
}), JA = Rt(function(c, p) {
|
|
19544
19544
|
var y = vr(p);
|
|
19545
19545
|
return Nn(y) && (y = n), Nn(c) ? Pu(c, eo(p, 1, Nn, !0), n, y) : [];
|
|
19546
19546
|
});
|
|
@@ -19609,13 +19609,13 @@ _p.exports;
|
|
|
19609
19609
|
var p = c == null ? 0 : c.length;
|
|
19610
19610
|
return p ? br(c, 0, -1) : [];
|
|
19611
19611
|
}
|
|
19612
|
-
var aO =
|
|
19612
|
+
var aO = Rt(function(c) {
|
|
19613
19613
|
var p = bn(c, um);
|
|
19614
19614
|
return p.length && p[0] === c[0] ? Q0(p) : [];
|
|
19615
|
-
}), lO =
|
|
19615
|
+
}), lO = Rt(function(c) {
|
|
19616
19616
|
var p = vr(c), y = bn(c, um);
|
|
19617
19617
|
return p === vr(y) ? p = n : y.pop(), y.length && y[0] === c[0] ? Q0(y, lt(p, 2)) : [];
|
|
19618
|
-
}), uO =
|
|
19618
|
+
}), uO = Rt(function(c) {
|
|
19619
19619
|
var p = vr(c), y = bn(c, um);
|
|
19620
19620
|
return p = typeof p == "function" ? p : n, p && y.pop(), y.length && y[0] === c[0] ? Q0(y, n, p) : [];
|
|
19621
19621
|
});
|
|
@@ -19636,7 +19636,7 @@ _p.exports;
|
|
|
19636
19636
|
function fO(c, p) {
|
|
19637
19637
|
return c && c.length ? s3(c, Tt(p)) : n;
|
|
19638
19638
|
}
|
|
19639
|
-
var pO =
|
|
19639
|
+
var pO = Rt(J3);
|
|
19640
19640
|
function J3(c, p) {
|
|
19641
19641
|
return c && c.length && p && p.length ? om(c, p) : c;
|
|
19642
19642
|
}
|
|
@@ -19723,12 +19723,12 @@ _p.exports;
|
|
|
19723
19723
|
function NO(c, p) {
|
|
19724
19724
|
return c && c.length ? Xd(c, lt(p, 3)) : [];
|
|
19725
19725
|
}
|
|
19726
|
-
var IO =
|
|
19726
|
+
var IO = Rt(function(c) {
|
|
19727
19727
|
return hs(eo(c, 1, Nn, !0));
|
|
19728
|
-
}), RO =
|
|
19728
|
+
}), RO = Rt(function(c) {
|
|
19729
19729
|
var p = vr(c);
|
|
19730
19730
|
return Nn(p) && (p = n), hs(eo(c, 1, Nn, !0), lt(p, 2));
|
|
19731
|
-
}), LO =
|
|
19731
|
+
}), LO = Rt(function(c) {
|
|
19732
19732
|
var p = vr(c);
|
|
19733
19733
|
return p = typeof p == "function" ? p : n, hs(eo(c, 1, Nn, !0), n, p);
|
|
19734
19734
|
});
|
|
@@ -19760,24 +19760,24 @@ _p.exports;
|
|
|
19760
19760
|
return Ko(p, n, _);
|
|
19761
19761
|
});
|
|
19762
19762
|
}
|
|
19763
|
-
var FO =
|
|
19763
|
+
var FO = Rt(function(c, p) {
|
|
19764
19764
|
return Nn(c) ? Pu(c, p) : [];
|
|
19765
|
-
}), $O =
|
|
19765
|
+
}), $O = Rt(function(c) {
|
|
19766
19766
|
return lm(us(c, Nn));
|
|
19767
|
-
}), HO =
|
|
19767
|
+
}), HO = Rt(function(c) {
|
|
19768
19768
|
var p = vr(c);
|
|
19769
19769
|
return Nn(p) && (p = n), lm(us(c, Nn), lt(p, 2));
|
|
19770
|
-
}), zO =
|
|
19770
|
+
}), zO = Rt(function(c) {
|
|
19771
19771
|
var p = vr(c);
|
|
19772
19772
|
return p = typeof p == "function" ? p : n, lm(us(c, Nn), n, p);
|
|
19773
|
-
}), VO =
|
|
19773
|
+
}), VO = Rt(Sm);
|
|
19774
19774
|
function UO(c, p) {
|
|
19775
19775
|
return m3(c || [], p || [], Du);
|
|
19776
19776
|
}
|
|
19777
19777
|
function WO(c, p) {
|
|
19778
19778
|
return m3(c || [], p || [], $u);
|
|
19779
19779
|
}
|
|
19780
|
-
var jO =
|
|
19780
|
+
var jO = Rt(function(c) {
|
|
19781
19781
|
var p = c.length, y = p > 1 ? c[p - 1] : n;
|
|
19782
19782
|
return y = typeof y == "function" ? (c.pop(), y) : n, Y3(c, y);
|
|
19783
19783
|
});
|
|
@@ -19878,7 +19878,7 @@ _p.exports;
|
|
|
19878
19878
|
var M = c.length;
|
|
19879
19879
|
return y < 0 && (y = Un(M + y, 0)), df(c) ? y <= M && c.indexOf(p, y) > -1 : !!M && al(c, p, y) > -1;
|
|
19880
19880
|
}
|
|
19881
|
-
var dM =
|
|
19881
|
+
var dM = Rt(function(c, p, y) {
|
|
19882
19882
|
var _ = -1, M = typeof p == "function", R = Lo(c) ? ae(c.length) : [];
|
|
19883
19883
|
return ps(c, function(W) {
|
|
19884
19884
|
R[++_] = M ? Ko(p, W, y) : Bu(W, p, y);
|
|
@@ -19935,7 +19935,7 @@ _p.exports;
|
|
|
19935
19935
|
var _ = wt(c) ? B0 : hA;
|
|
19936
19936
|
return y && xo(c, p, y) && (p = n), _(c, lt(p, 3));
|
|
19937
19937
|
}
|
|
19938
|
-
var EM =
|
|
19938
|
+
var EM = Rt(function(c, p) {
|
|
19939
19939
|
if (c == null)
|
|
19940
19940
|
return [];
|
|
19941
19941
|
var y = p.length;
|
|
@@ -19962,14 +19962,14 @@ _p.exports;
|
|
|
19962
19962
|
return --c > 0 && (y = p.apply(this, arguments)), c <= 1 && (p = n), y;
|
|
19963
19963
|
};
|
|
19964
19964
|
}
|
|
19965
|
-
var _m =
|
|
19965
|
+
var _m = Rt(function(c, p, y) {
|
|
19966
19966
|
var _ = w;
|
|
19967
19967
|
if (y.length) {
|
|
19968
19968
|
var M = ds(y, bl(_m));
|
|
19969
19969
|
_ |= T;
|
|
19970
19970
|
}
|
|
19971
19971
|
return Mi(c, _, p, y, M);
|
|
19972
|
-
}), o4 =
|
|
19972
|
+
}), o4 = Rt(function(c, p, y) {
|
|
19973
19973
|
var _ = w | x;
|
|
19974
19974
|
if (y.length) {
|
|
19975
19975
|
var M = ds(y, bl(o4));
|
|
@@ -20034,9 +20034,9 @@ _p.exports;
|
|
|
20034
20034
|
}
|
|
20035
20035
|
return Zo.cancel = Yo, Zo.flush = Co, Zo;
|
|
20036
20036
|
}
|
|
20037
|
-
var _M =
|
|
20037
|
+
var _M = Rt(function(c, p) {
|
|
20038
20038
|
return Xy(c, 1, p);
|
|
20039
|
-
}), TM =
|
|
20039
|
+
}), TM = Rt(function(c, p, y) {
|
|
20040
20040
|
return Xy(c, yr(p) || 0, y);
|
|
20041
20041
|
});
|
|
20042
20042
|
function kM(c) {
|
|
@@ -20079,15 +20079,15 @@ _p.exports;
|
|
|
20079
20079
|
var OM = mA(function(c, p) {
|
|
20080
20080
|
p = p.length == 1 && wt(p[0]) ? bn(p[0], Go(lt())) : bn(eo(p, 1), Go(lt()));
|
|
20081
20081
|
var y = p.length;
|
|
20082
|
-
return
|
|
20082
|
+
return Rt(function(_) {
|
|
20083
20083
|
for (var M = -1, R = lo(_.length, y); ++M < R; )
|
|
20084
20084
|
_[M] = p[M].call(this, _[M]);
|
|
20085
20085
|
return Ko(c, this, _);
|
|
20086
20086
|
});
|
|
20087
|
-
}), Tm =
|
|
20087
|
+
}), Tm = Rt(function(c, p) {
|
|
20088
20088
|
var y = ds(p, bl(Tm));
|
|
20089
20089
|
return Mi(c, T, n, p, y);
|
|
20090
|
-
}), a4 =
|
|
20090
|
+
}), a4 = Rt(function(c, p) {
|
|
20091
20091
|
var y = ds(p, bl(a4));
|
|
20092
20092
|
return Mi(c, k, n, p, y);
|
|
20093
20093
|
}), MM = Ni(function(c, p) {
|
|
@@ -20096,12 +20096,12 @@ _p.exports;
|
|
|
20096
20096
|
function NM(c, p) {
|
|
20097
20097
|
if (typeof c != "function")
|
|
20098
20098
|
throw new hr(s);
|
|
20099
|
-
return p = p === n ? p : Tt(p),
|
|
20099
|
+
return p = p === n ? p : Tt(p), Rt(c, p);
|
|
20100
20100
|
}
|
|
20101
20101
|
function IM(c, p) {
|
|
20102
20102
|
if (typeof c != "function")
|
|
20103
20103
|
throw new hr(s);
|
|
20104
|
-
return p = p == null ? 0 : Un(Tt(p), 0),
|
|
20104
|
+
return p = p == null ? 0 : Un(Tt(p), 0), Rt(function(y) {
|
|
20105
20105
|
var _ = y[p], M = gs(y, 0, p);
|
|
20106
20106
|
return _ && cs(M, _), Ko(c, this, M);
|
|
20107
20107
|
});
|
|
@@ -20342,7 +20342,7 @@ _p.exports;
|
|
|
20342
20342
|
var y = hl(c);
|
|
20343
20343
|
return p == null ? y : Ky(y, p);
|
|
20344
20344
|
}
|
|
20345
|
-
var mN =
|
|
20345
|
+
var mN = Rt(function(c, p) {
|
|
20346
20346
|
c = rn(c);
|
|
20347
20347
|
var y = -1, _ = p.length, M = _ > 2 ? p[2] : n;
|
|
20348
20348
|
for (M && xo(p[0], p[1], M) && (_ = 1); ++y < _; )
|
|
@@ -20351,7 +20351,7 @@ _p.exports;
|
|
|
20351
20351
|
(_e === n || Pr(_e, dl[Se]) && !Xt.call(c, Se)) && (c[Se] = R[Se]);
|
|
20352
20352
|
}
|
|
20353
20353
|
return c;
|
|
20354
|
-
}), gN =
|
|
20354
|
+
}), gN = Rt(function(c) {
|
|
20355
20355
|
return c.push(n, I3), Ko(g4, n, c);
|
|
20356
20356
|
});
|
|
20357
20357
|
function bN(c, p) {
|
|
@@ -20392,7 +20392,7 @@ _p.exports;
|
|
|
20392
20392
|
p != null && typeof p.toString != "function" && (p = Rd.call(p)), c[p] = y;
|
|
20393
20393
|
}, Im(Po)), kN = k3(function(c, p, y) {
|
|
20394
20394
|
p != null && typeof p.toString != "function" && (p = Rd.call(p)), Xt.call(c, p) ? c[p].push(y) : c[p] = [y];
|
|
20395
|
-
}, lt), AN =
|
|
20395
|
+
}, lt), AN = Rt(Bu);
|
|
20396
20396
|
function Kn(c) {
|
|
20397
20397
|
return Lo(c) ? jy(c) : tm(c);
|
|
20398
20398
|
}
|
|
@@ -20680,7 +20680,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20680
20680
|
function C4(c, p, y) {
|
|
20681
20681
|
return c = Gt(c), p = y ? n : p, p === n ? HT(c) ? GT(c) : NT(c) : c.match(p) || [];
|
|
20682
20682
|
}
|
|
20683
|
-
var E4 =
|
|
20683
|
+
var E4 = Rt(function(c, p) {
|
|
20684
20684
|
try {
|
|
20685
20685
|
return Ko(c, n, p);
|
|
20686
20686
|
} catch (y) {
|
|
@@ -20697,7 +20697,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20697
20697
|
if (typeof _[1] != "function")
|
|
20698
20698
|
throw new hr(s);
|
|
20699
20699
|
return [y(_[0]), _[1]];
|
|
20700
|
-
}) : [],
|
|
20700
|
+
}) : [], Rt(function(_) {
|
|
20701
20701
|
for (var M = -1; ++M < p; ) {
|
|
20702
20702
|
var R = c[M];
|
|
20703
20703
|
if (Ko(R[0], this, _))
|
|
@@ -20729,11 +20729,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20729
20729
|
function _I(c, p) {
|
|
20730
20730
|
return i3(c, gr(p, f));
|
|
20731
20731
|
}
|
|
20732
|
-
var TI =
|
|
20732
|
+
var TI = Rt(function(c, p) {
|
|
20733
20733
|
return function(y) {
|
|
20734
20734
|
return Bu(y, c, p);
|
|
20735
20735
|
};
|
|
20736
|
-
}), kI =
|
|
20736
|
+
}), kI = Rt(function(c, p) {
|
|
20737
20737
|
return function(y) {
|
|
20738
20738
|
return Bu(c, y, p);
|
|
20739
20739
|
};
|
|
@@ -20760,7 +20760,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20760
20760
|
function Dm() {
|
|
20761
20761
|
}
|
|
20762
20762
|
function OI(c) {
|
|
20763
|
-
return c = Tt(c),
|
|
20763
|
+
return c = Tt(c), Rt(function(p) {
|
|
20764
20764
|
return s3(p, c);
|
|
20765
20765
|
});
|
|
20766
20766
|
}
|
|
@@ -20882,7 +20882,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20882
20882
|
return this.filter(c).head();
|
|
20883
20883
|
}, Bt.prototype.findLast = function(c) {
|
|
20884
20884
|
return this.reverse().find(c);
|
|
20885
|
-
}, Bt.prototype.invokeMap =
|
|
20885
|
+
}, Bt.prototype.invokeMap = Rt(function(c, p) {
|
|
20886
20886
|
return typeof c == "function" ? new Bt(this) : this.map(function(y) {
|
|
20887
20887
|
return Bu(y, c, p);
|
|
20888
20888
|
});
|
|
@@ -20997,7 +20997,7 @@ function Lh(t) {
|
|
|
20997
20997
|
return typeof a == "string" ? a : g(a) ?? "";
|
|
20998
20998
|
};
|
|
20999
20999
|
function i() {
|
|
21000
|
-
|
|
21000
|
+
It(() => {
|
|
21001
21001
|
const a = e.value;
|
|
21002
21002
|
if (!a || typeof window > "u" || !(a instanceof Element)) return;
|
|
21003
21003
|
const l = VH();
|
|
@@ -22512,7 +22512,7 @@ function DE(t, e, n = {}) {
|
|
|
22512
22512
|
};
|
|
22513
22513
|
}
|
|
22514
22514
|
function Yz(t, e, n) {
|
|
22515
|
-
const o = De(t, (...r) => (
|
|
22515
|
+
const o = De(t, (...r) => (It(() => o()), e(...r)), n);
|
|
22516
22516
|
return o;
|
|
22517
22517
|
}
|
|
22518
22518
|
function Xr(t) {
|
|
@@ -22617,7 +22617,7 @@ function cr(t, e, n, o = {}) {
|
|
|
22617
22617
|
return De(
|
|
22618
22618
|
() => t[e],
|
|
22619
22619
|
(k) => {
|
|
22620
|
-
T || (T = !0, C.value = w(k),
|
|
22620
|
+
T || (T = !0, C.value = w(k), It(() => T = !1));
|
|
22621
22621
|
}
|
|
22622
22622
|
), De(
|
|
22623
22623
|
C,
|
|
@@ -22759,7 +22759,7 @@ const lV = IE(() => {
|
|
|
22759
22759
|
"touchmove",
|
|
22760
22760
|
(h) => uV(h),
|
|
22761
22761
|
{ passive: !1 }
|
|
22762
|
-
)),
|
|
22762
|
+
)), It(() => {
|
|
22763
22763
|
document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden";
|
|
22764
22764
|
});
|
|
22765
22765
|
}, { immediate: !0, flush: "sync" }), t;
|
|
@@ -23249,7 +23249,7 @@ function kV(t, e) {
|
|
|
23249
23249
|
async (w, x) => {
|
|
23250
23250
|
var S;
|
|
23251
23251
|
const E = x !== w;
|
|
23252
|
-
if (await
|
|
23252
|
+
if (await It(), E) {
|
|
23253
23253
|
const C = r.value, T = kf(e.value);
|
|
23254
23254
|
w ? (d("MOUNT"), f("enter"), T === "none" && f("after-enter")) : T === "none" || ((S = o.value) == null ? void 0 : S.display) === "none" ? (d("UNMOUNT"), f("leave"), f("after-leave")) : x && C !== T ? (d("ANIMATION_OUT"), f("leave")) : (d("UNMOUNT"), f("after-leave"));
|
|
23255
23255
|
}
|
|
@@ -23483,7 +23483,7 @@ function RV(t, e) {
|
|
|
23483
23483
|
if (!ss)
|
|
23484
23484
|
return;
|
|
23485
23485
|
const s = async (a) => {
|
|
23486
|
-
e != null && e.value && (await
|
|
23486
|
+
e != null && e.value && (await It(), !(!e.value || VE(e.value, a.target)) && a.target && !r.value && NE(
|
|
23487
23487
|
NV,
|
|
23488
23488
|
t,
|
|
23489
23489
|
{ originalEvent: a }
|
|
@@ -23520,7 +23520,7 @@ const Fi = lr({
|
|
|
23520
23520
|
const v = [...Fi.branches].some(
|
|
23521
23521
|
(w) => w == null ? void 0 : w.contains(b.target)
|
|
23522
23522
|
);
|
|
23523
|
-
!d.value || v || (o("pointerDownOutside", b), o("interactOutside", b), await
|
|
23523
|
+
!d.value || v || (o("pointerDownOutside", b), o("interactOutside", b), await It(), b.defaultPrevented || o("dismiss"));
|
|
23524
23524
|
}, i), h = RV((b) => {
|
|
23525
23525
|
[...Fi.branches].some(
|
|
23526
23526
|
(v) => v == null ? void 0 : v.contains(b.target)
|
|
@@ -23671,7 +23671,7 @@ const Uh = /* @__PURE__ */ j({
|
|
|
23671
23671
|
});
|
|
23672
23672
|
}), Tn(async (d) => {
|
|
23673
23673
|
const f = i.value;
|
|
23674
|
-
if (await
|
|
23674
|
+
if (await It(), !f)
|
|
23675
23675
|
return;
|
|
23676
23676
|
a.add(l);
|
|
23677
23677
|
const h = go();
|
|
@@ -24665,7 +24665,7 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
|
|
|
24665
24665
|
);
|
|
24666
24666
|
u = n.loop.value ? SU(u, d + 1) : u.slice(d + 1);
|
|
24667
24667
|
}
|
|
24668
|
-
|
|
24668
|
+
It(() => oS(u));
|
|
24669
24669
|
}
|
|
24670
24670
|
}
|
|
24671
24671
|
return (a, l) => (O(), $(g(ZE), null, {
|
|
@@ -24877,7 +24877,7 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
|
|
|
24877
24877
|
}
|
|
24878
24878
|
}
|
|
24879
24879
|
async function s(a) {
|
|
24880
|
-
await
|
|
24880
|
+
await It(), !a.defaultPrevented && Dg(a) && n.onItemLeave(a);
|
|
24881
24881
|
}
|
|
24882
24882
|
return (a, l) => (O(), $(g(ZE), {
|
|
24883
24883
|
value: { textValue: a.textValue }
|
|
@@ -24897,10 +24897,10 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
|
|
|
24897
24897
|
onPointermove: i,
|
|
24898
24898
|
onPointerleave: s,
|
|
24899
24899
|
onFocus: l[0] || (l[0] = async (u) => {
|
|
24900
|
-
await
|
|
24900
|
+
await It(), !(u.defaultPrevented || a.disabled) && (r.value = !0);
|
|
24901
24901
|
}),
|
|
24902
24902
|
onBlur: l[1] || (l[1] = async (u) => {
|
|
24903
|
-
await
|
|
24903
|
+
await It(), !u.defaultPrevented && (r.value = !1);
|
|
24904
24904
|
})
|
|
24905
24905
|
}), {
|
|
24906
24906
|
default: N(() => [
|
|
@@ -24930,7 +24930,7 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
|
|
|
24930
24930
|
bubbles: !0,
|
|
24931
24931
|
cancelable: !0
|
|
24932
24932
|
});
|
|
24933
|
-
o("select", f), await
|
|
24933
|
+
o("select", f), await It(), f.defaultPrevented ? l.value = !1 : s.onClose();
|
|
24934
24934
|
}
|
|
24935
24935
|
}
|
|
24936
24936
|
return (d, f) => (O(), $(OU, Me(n, {
|
|
@@ -24941,7 +24941,7 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
|
|
|
24941
24941
|
}),
|
|
24942
24942
|
onPointerup: f[1] || (f[1] = async (h) => {
|
|
24943
24943
|
var m;
|
|
24944
|
-
await
|
|
24944
|
+
await It(), !h.defaultPrevented && (l.value || (m = h.currentTarget) == null || m.click());
|
|
24945
24945
|
}),
|
|
24946
24946
|
onKeydown: f[2] || (f[2] = async (h) => {
|
|
24947
24947
|
const m = g(a).searchRef.value !== "";
|
|
@@ -25221,13 +25221,13 @@ const $U = /* @__PURE__ */ j({
|
|
|
25221
25221
|
i.value = { x: m.clientX, y: m.clientY }, r.onOpenChange(!0);
|
|
25222
25222
|
}
|
|
25223
25223
|
async function d(m) {
|
|
25224
|
-
n.value || (await
|
|
25224
|
+
n.value || (await It(), m.defaultPrevented || (l(), u(m), m.preventDefault()));
|
|
25225
25225
|
}
|
|
25226
25226
|
async function f(m) {
|
|
25227
|
-
n.value || (await
|
|
25227
|
+
n.value || (await It(), E8(m) && !m.defaultPrevented && (l(), a.value = window.setTimeout(() => u(m), 700)));
|
|
25228
25228
|
}
|
|
25229
25229
|
async function h(m) {
|
|
25230
|
-
n.value || (await
|
|
25230
|
+
n.value || (await It(), E8(m) && !m.defaultPrevented && l());
|
|
25231
25231
|
}
|
|
25232
25232
|
return (m, b) => (O(), ue(et, null, [
|
|
25233
25233
|
L(g(tS), {
|
|
@@ -25403,7 +25403,7 @@ const $U = /* @__PURE__ */ j({
|
|
|
25403
25403
|
"data-state": g(n).open.value ? "open" : "closed",
|
|
25404
25404
|
onClick: s[0] || (s[0] = async (a) => {
|
|
25405
25405
|
var l;
|
|
25406
|
-
!i.disabled && a.button === 0 && a.ctrlKey === !1 && ((l = g(n)) == null || l.onOpenToggle(), await
|
|
25406
|
+
!i.disabled && a.button === 0 && a.ctrlKey === !1 && ((l = g(n)) == null || l.onOpenToggle(), await It(), g(n).open.value && a.preventDefault());
|
|
25407
25407
|
}),
|
|
25408
25408
|
onKeydown: s[1] || (s[1] = Ul(
|
|
25409
25409
|
(a) => {
|
|
@@ -26876,7 +26876,7 @@ const MW = /* @__PURE__ */ j({
|
|
|
26876
26876
|
}
|
|
26877
26877
|
const S = V("");
|
|
26878
26878
|
mt(async () => {
|
|
26879
|
-
await
|
|
26879
|
+
await It(), x(), h.value && (S.value = window.getComputedStyle(h.value).zIndex);
|
|
26880
26880
|
});
|
|
26881
26881
|
function E(C) {
|
|
26882
26882
|
C && u.value === !0 && (x(), w == null || w(), u.value = !1);
|
|
@@ -27204,19 +27204,19 @@ const MW = /* @__PURE__ */ j({
|
|
|
27204
27204
|
return ((v = o.modelValue) == null ? void 0 : v.value) === e.value;
|
|
27205
27205
|
}), l = V(!1), u = V(e.textValue ?? ""), d = Nr(void 0, "radix-vue-select-item-text");
|
|
27206
27206
|
async function f(v) {
|
|
27207
|
-
await
|
|
27207
|
+
await It(), !(v != null && v.defaultPrevented) && (n.value || (o.onValueChange(e.value), o.onOpenChange(!1)));
|
|
27208
27208
|
}
|
|
27209
27209
|
async function h(v) {
|
|
27210
27210
|
var w;
|
|
27211
|
-
await
|
|
27211
|
+
await It(), !v.defaultPrevented && (n.value ? (w = r.onItemLeave) == null || w.call(r) : v.currentTarget.focus({ preventScroll: !0 }));
|
|
27212
27212
|
}
|
|
27213
27213
|
async function m(v) {
|
|
27214
27214
|
var w;
|
|
27215
|
-
await
|
|
27215
|
+
await It(), !v.defaultPrevented && v.currentTarget === go() && ((w = r.onItemLeave) == null || w.call(r));
|
|
27216
27216
|
}
|
|
27217
27217
|
async function b(v) {
|
|
27218
27218
|
var w;
|
|
27219
|
-
await
|
|
27219
|
+
await It(), !(v.defaultPrevented || ((w = r.searchRef) == null ? void 0 : w.value) !== "" && v.key === " ") && (OW.includes(v.key) && f(), v.key === " " && v.preventDefault());
|
|
27220
27220
|
}
|
|
27221
27221
|
if (e.value === "")
|
|
27222
27222
|
throw new Error(
|
|
@@ -31804,7 +31804,7 @@ const aG = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
|
|
|
31804
31804
|
customClassToolbar: {}
|
|
31805
31805
|
},
|
|
31806
31806
|
setup(t) {
|
|
31807
|
-
const e = hR(() => import("./BulkSpellChecker-
|
|
31807
|
+
const e = hR(() => import("./BulkSpellChecker-Cn3sOYpm.mjs")), { t: n } = Zt(), o = t, r = Jt("isEditable", V(!0)), i = ["fontSize", "fontFamily", "superText", "spellchecker", "fontSizeIncreaseDecrease"], s = X(() => {
|
|
31808
31808
|
const f = [...o.editor.extensionManager.extensions].sort((m, b) => m.name === "superText" ? 1 : b.name === "superText" ? -1 : 0);
|
|
31809
31809
|
let h = [];
|
|
31810
31810
|
for (const m of f) {
|
|
@@ -42793,7 +42793,7 @@ const c0 = "paragraph", Cr = "page", C9 = "Extend", Cu = "Node", hee = Cu + C9,
|
|
|
42793
42793
|
() => n.open,
|
|
42794
42794
|
async (b) => {
|
|
42795
42795
|
if (b) {
|
|
42796
|
-
await
|
|
42796
|
+
await It();
|
|
42797
42797
|
const v = document.querySelector(".draggable-dialog");
|
|
42798
42798
|
if (v) {
|
|
42799
42799
|
const { width: w, height: x } = v.getBoundingClientRect(), S = window.innerWidth, E = window.innerHeight;
|
|
@@ -43122,7 +43122,7 @@ const c0 = "paragraph", Cr = "page", C9 = "Extend", Cu = "Node", hee = Cu + C9,
|
|
|
43122
43122
|
() => o.open,
|
|
43123
43123
|
async (me) => {
|
|
43124
43124
|
if (me) {
|
|
43125
|
-
m.value = !1, o.superTextInit && (i.value = o.superTextInit, o.superTextElementId && (s.value = o.superTextElementId)), await
|
|
43125
|
+
m.value = !1, o.superTextInit && (i.value = o.superTextInit, o.superTextElementId && (s.value = o.superTextElementId)), await It();
|
|
43126
43126
|
const q = document.querySelector(".draggable-dialog");
|
|
43127
43127
|
if (q) {
|
|
43128
43128
|
const { width: U, height: B } = q.getBoundingClientRect(), Y = window.innerHeight;
|
|
@@ -49655,7 +49655,7 @@ const _re = {
|
|
|
49655
49655
|
const n = V(0), o = V(0), r = V(null), { t: i } = Zt(), s = V([]), a = t;
|
|
49656
49656
|
e({ onKeyDown: l }), De([() => n.value, () => o.value], async () => {
|
|
49657
49657
|
if (!r.value) return;
|
|
49658
|
-
await
|
|
49658
|
+
await It();
|
|
49659
49659
|
const v = o.value * 1e3 + n.value, w = s.value[v];
|
|
49660
49660
|
w && w.scrollIntoView({
|
|
49661
49661
|
behavior: "smooth",
|
|
@@ -53265,7 +53265,7 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53265
53265
|
D > F && (F = D);
|
|
53266
53266
|
i.value = F;
|
|
53267
53267
|
}, b = async () => {
|
|
53268
|
-
await
|
|
53268
|
+
await It();
|
|
53269
53269
|
const k = u().map((A) => {
|
|
53270
53270
|
const F = A.getAttribute("node-id"), D = A.getAttribute("book-mark-content"), P = A.getAttribute("page-id"), K = A.getAttribute("page-number"), J = A.getBoundingClientRect(), Ee = A.getAttribute("line-id"), me = A.getAttribute("element-id");
|
|
53271
53271
|
return {
|
|
@@ -53304,7 +53304,7 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53304
53304
|
}), m();
|
|
53305
53305
|
}
|
|
53306
53306
|
const x = async (T) => {
|
|
53307
|
-
await
|
|
53307
|
+
await It();
|
|
53308
53308
|
const k = t == null ? void 0 : t.view.dom.querySelector(`[node-id='${T.dataId}']`), A = r.value.find((P) => {
|
|
53309
53309
|
const K = P.getBoundingClientRect().top, J = k == null ? void 0 : k.getBoundingClientRect().top;
|
|
53310
53310
|
if (J == null) return !1;
|
|
@@ -53359,7 +53359,7 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53359
53359
|
}), De(
|
|
53360
53360
|
() => n,
|
|
53361
53361
|
async () => {
|
|
53362
|
-
await
|
|
53362
|
+
await It(), w();
|
|
53363
53363
|
},
|
|
53364
53364
|
{
|
|
53365
53365
|
deep: !0
|
|
@@ -53711,7 +53711,7 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53711
53711
|
}
|
|
53712
53712
|
});
|
|
53713
53713
|
async function w() {
|
|
53714
|
-
await
|
|
53714
|
+
await It(), i.emit({
|
|
53715
53715
|
action: "render"
|
|
53716
53716
|
});
|
|
53717
53717
|
}
|
|
@@ -53819,7 +53819,7 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53819
53819
|
});
|
|
53820
53820
|
function oae(t, e, n = !1, o = 200) {
|
|
53821
53821
|
const { height: r } = ER(t), i = V(0), s = V(0), a = V(o), l = V(0), u = async () => {
|
|
53822
|
-
await
|
|
53822
|
+
await It();
|
|
53823
53823
|
const d = r.value - 8;
|
|
53824
53824
|
e.value === Je.REPORT ? (i.value = d / 3, s.value = n ? "auto" : d - i.value, a.value = o / 3 * 2, l.value = o / 3) : (i.value = 0, s.value = n ? "auto" : r.value);
|
|
53825
53825
|
};
|
|
@@ -53997,7 +53997,9 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
|
|
|
53997
53997
|
onUpdate: xt.throttle(({ editor: ce }) => {
|
|
53998
53998
|
f.value = !0;
|
|
53999
53999
|
const Pe = oe(ce, o.output);
|
|
54000
|
-
r("update:modelValue", Pe), r("change", { editor: ce, output: Pe }), m(ce),
|
|
54000
|
+
r("update:modelValue", Pe), r("change", { editor: ce, output: Pe }), m(ce), It(() => {
|
|
54001
|
+
Y();
|
|
54002
|
+
}), me();
|
|
54001
54003
|
}, bi),
|
|
54002
54004
|
extensions: xt.uniqBy(xt.reverse(g(C)), "name"),
|
|
54003
54005
|
editable: S.value,
|
|
@@ -54021,7 +54023,7 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
|
|
|
54021
54023
|
yn("measuredMinWidthComment", U);
|
|
54022
54024
|
const B = X(() => T.value ? 0 : fe.value ? Number(Ee == null ? void 0 : Ee.value) + Number(U == null ? void 0 : U.value) + 30 : Number(Ee == null ? void 0 : Ee.value));
|
|
54023
54025
|
async function Y() {
|
|
54024
|
-
await
|
|
54026
|
+
await It(), i.emit({
|
|
54025
54027
|
action: "render"
|
|
54026
54028
|
});
|
|
54027
54029
|
}
|
|
@@ -54539,14 +54541,14 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
|
|
|
54539
54541
|
}, Y = (te) => {
|
|
54540
54542
|
var de;
|
|
54541
54543
|
let xe = -1;
|
|
54542
|
-
Array.from(((de = l.value) == null ? void 0 : de.children) || []).some((be) => (be.className.includes("splitpanes__pane") && xe++, be.isSameNode(te.el))), i.value.splice(xe, 0, { ...te, index: xe }), i.value.forEach((be, ke) => be.index = ke), u.value &&
|
|
54544
|
+
Array.from(((de = l.value) == null ? void 0 : de.children) || []).some((be) => (be.className.includes("splitpanes__pane") && xe++, be.isSameNode(te.el))), i.value.splice(xe, 0, { ...te, index: xe }), i.value.forEach((be, ke) => be.index = ke), u.value && It(() => {
|
|
54543
54545
|
U(), se({ addedPane: i.value[xe] }), Ke("pane-add", { pane: i.value[xe] });
|
|
54544
54546
|
});
|
|
54545
54547
|
}, oe = (te) => {
|
|
54546
54548
|
const de = i.value.findIndex((be) => be.id === te);
|
|
54547
54549
|
i.value[de].el = null;
|
|
54548
54550
|
const xe = i.value.splice(de, 1)[0];
|
|
54549
|
-
i.value.forEach((be, ke) => be.index = ke),
|
|
54551
|
+
i.value.forEach((be, ke) => be.index = ke), It(() => {
|
|
54550
54552
|
U(), Ke("pane-remove", { pane: xe }), se({ removedPane: { ...xe } });
|
|
54551
54553
|
});
|
|
54552
54554
|
}, se = (te = {}) => {
|
|
@@ -54591,7 +54593,7 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
|
|
|
54591
54593
|
const ce = Math.max(Math.min(ke.size + be, ke.max), ke.min), Pe = ce - ke.size;
|
|
54592
54594
|
te -= Pe, ke.size = ce;
|
|
54593
54595
|
}
|
|
54594
|
-
}), Math.abs(te) > 0.1 &&
|
|
54596
|
+
}), Math.abs(te) > 0.1 && It(() => {
|
|
54595
54597
|
u.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
54596
54598
|
});
|
|
54597
54599
|
}, Ke = (te, de = void 0, xe = !1) => {
|
|
@@ -55115,7 +55117,7 @@ const O7 = /* @__PURE__ */ j({
|
|
|
55115
55117
|
};
|
|
55116
55118
|
h.addEventListener("pointerdown", m);
|
|
55117
55119
|
const b = ({ transaction: v }) => {
|
|
55118
|
-
a.value && v.docChanged && (a.value = !1,
|
|
55120
|
+
a.value && v.docChanged && (a.value = !1, It(() => {
|
|
55119
55121
|
var w;
|
|
55120
55122
|
try {
|
|
55121
55123
|
const x = (w = s.value) == null ? void 0 : w.$el;
|
|
@@ -56919,14 +56921,14 @@ async function qx({
|
|
|
56919
56921
|
});
|
|
56920
56922
|
return e.view.dispatch(u), !1;
|
|
56921
56923
|
}
|
|
56922
|
-
}), await
|
|
56924
|
+
}), await It(), !t) return;
|
|
56923
56925
|
const n = Wae(e, t);
|
|
56924
56926
|
if (!n) return;
|
|
56925
56927
|
const { node: o, pos: r } = n, i = e.state.tr.setNodeMarkup(r, void 0, {
|
|
56926
56928
|
...o.attrs,
|
|
56927
56929
|
class: jx
|
|
56928
56930
|
});
|
|
56929
|
-
e.view.dispatch(i), await
|
|
56931
|
+
e.view.dispatch(i), await It(), e.view.nodeDOM(r).scrollIntoView({ behavior: "smooth" });
|
|
56930
56932
|
}
|
|
56931
56933
|
const Nle = /* @__PURE__ */ j({
|
|
56932
56934
|
__name: "SuperViewMobileEditor",
|
|
@@ -57686,4 +57688,4 @@ export {
|
|
|
57686
57688
|
sle as y,
|
|
57687
57689
|
ele as z
|
|
57688
57690
|
};
|
|
57689
|
-
//# sourceMappingURL=index
|
|
57691
|
+
//# sourceMappingURL=index--iCf6MEY.mjs.map
|