smart-editor-v3 1.16.1 → 1.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/smart-editor-package.js +167 -158
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -80,7 +80,7 @@ const t7 = /\{([0-9a-zA-Z]+)\}/g;
|
|
|
80
80
|
function rh(t, ...e) {
|
|
81
81
|
return e.length === 1 && Ot(e[0]) && (e = e[0]), (!e || !e.hasOwnProperty) && (e = {}), t.replace(t7, (n, r) => e.hasOwnProperty(r) ? e[r] : "");
|
|
82
82
|
}
|
|
83
|
-
const Wi = (t, e = !1) => e ? Symbol.for(t) : Symbol(t), n7 = (t, e, n) => r7({ l: t, k: e, s: n }), r7 = (t) => JSON.stringify(t).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Tn = (t) => typeof t == "number" && isFinite(t), i7 = (t) => gg(t) === "[object Date]", Ga = (t) => gg(t) === "[object RegExp]", ih = (t) =>
|
|
83
|
+
const Wi = (t, e = !1) => e ? Symbol.for(t) : Symbol(t), n7 = (t, e, n) => r7({ l: t, k: e, s: n }), r7 = (t) => JSON.stringify(t).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Tn = (t) => typeof t == "number" && isFinite(t), i7 = (t) => gg(t) === "[object Date]", Ga = (t) => gg(t) === "[object RegExp]", ih = (t) => kt(t) && Object.keys(t).length === 0, Bn = Object.assign, o7 = Object.create, Gt = (t = null) => o7(t);
|
|
84
84
|
let iv;
|
|
85
85
|
const Ds = () => iv || (iv = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : Gt());
|
|
86
86
|
function ov(t) {
|
|
@@ -103,7 +103,7 @@ const a7 = Object.prototype.hasOwnProperty;
|
|
|
103
103
|
function ui(t, e) {
|
|
104
104
|
return a7.call(t, e);
|
|
105
105
|
}
|
|
106
|
-
const gn = Array.isArray, Xt = (t) => typeof t == "function", Ie = (t) => typeof t == "string", Dt = (t) => typeof t == "boolean", Ot = (t) => t !== null && typeof t == "object", l7 = (t) => Ot(t) && Xt(t.then) && Xt(t.catch), ew = Object.prototype.toString, gg = (t) => ew.call(t),
|
|
106
|
+
const gn = Array.isArray, Xt = (t) => typeof t == "function", Ie = (t) => typeof t == "string", Dt = (t) => typeof t == "boolean", Ot = (t) => t !== null && typeof t == "object", l7 = (t) => Ot(t) && Xt(t.then) && Xt(t.catch), ew = Object.prototype.toString, gg = (t) => ew.call(t), kt = (t) => gg(t) === "[object Object]", c7 = (t) => t == null ? "" : gn(t) || kt(t) && t.toString === ew ? JSON.stringify(t, null, 2) : String(t);
|
|
107
107
|
function bg(t, e = "") {
|
|
108
108
|
return t.reduce((n, r, i) => i === 0 ? n + r : n + e + r, "");
|
|
109
109
|
}
|
|
@@ -1350,7 +1350,7 @@ function uw(t, e, n) {
|
|
|
1350
1350
|
let s = [n];
|
|
1351
1351
|
for (; gn(s); )
|
|
1352
1352
|
s = hv(o, s, e);
|
|
1353
|
-
const a = gn(e) || !
|
|
1353
|
+
const a = gn(e) || !kt(e) ? e : e.default ? e.default : null;
|
|
1354
1354
|
s = Ie(a) ? [a] : a, gn(s) && hv(o, s, !1), i.__localeChainCache.set(r, o);
|
|
1355
1355
|
}
|
|
1356
1356
|
return o;
|
|
@@ -1377,7 +1377,7 @@ function aC(t, e, n) {
|
|
|
1377
1377
|
if (!t.includes(e) && (r = !0, e)) {
|
|
1378
1378
|
r = e[e.length - 1] !== "!";
|
|
1379
1379
|
const i = e.replace(/!/g, "");
|
|
1380
|
-
t.push(i), (gn(n) ||
|
|
1380
|
+
t.push(i), (gn(n) || kt(n)) && n[i] && (r = n[i]);
|
|
1381
1381
|
}
|
|
1382
1382
|
return r;
|
|
1383
1383
|
}
|
|
@@ -1708,7 +1708,7 @@ const gv = (t) => {
|
|
|
1708
1708
|
}, SC = () => mw;
|
|
1709
1709
|
let bv = 0;
|
|
1710
1710
|
function CC(t = {}) {
|
|
1711
|
-
const e = Xt(t.onWarn) ? t.onWarn : So, n = Ie(t.version) ? t.version : vC, r = Ie(t.locale) || Xt(t.locale) ? t.locale : pc, i = Xt(r) ? pc : r, o = gn(t.fallbackLocale) ||
|
|
1711
|
+
const e = Xt(t.onWarn) ? t.onWarn : So, n = Ie(t.version) ? t.version : vC, r = Ie(t.locale) || Xt(t.locale) ? t.locale : pc, i = Xt(r) ? pc : r, o = gn(t.fallbackLocale) || kt(t.fallbackLocale) || Ie(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : i, s = kt(t.messages) ? t.messages : l0(i), a = kt(t.datetimeFormats) ? t.datetimeFormats : l0(i), l = kt(t.numberFormats) ? t.numberFormats : l0(i), c = Bn(Gt(), t.modifiers, yC()), u = t.pluralRules || Gt(), d = Xt(t.missing) ? t.missing : null, f = Dt(t.missingWarn) || Ga(t.missingWarn) ? t.missingWarn : !0, h = Dt(t.fallbackWarn) || Ga(t.fallbackWarn) ? t.fallbackWarn : !0, p = !!t.fallbackFormat, m = !!t.unresolving, b = Xt(t.postTranslation) ? t.postTranslation : null, g = kt(t.processor) ? t.processor : null, _ = Dt(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, k = !!t.escapeParameter, w = Xt(t.messageCompiler) ? t.messageCompiler : dw;
|
|
1712
1712
|
process.env.NODE_ENV !== "production" && Xt(t.messageCompiler) && Q2(Xs(wr.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1713
1713
|
const S = Xt(t.messageResolver) ? t.messageResolver : fw || pC, M = Xt(t.localeFallbacker) ? t.localeFallbacker : hw || oC, I = Ot(t.fallbackContext) ? t.fallbackContext : void 0, z = t, L = Ot(z.__datetimeFormatters) ? z.__datetimeFormatters : /* @__PURE__ */ new Map(), Y = Ot(z.__numberFormatters) ? z.__numberFormatters : /* @__PURE__ */ new Map(), X = Ot(z.__meta) ? z.__meta : {};
|
|
1714
1714
|
bv++;
|
|
@@ -1810,11 +1810,11 @@ function yv(t, ...e) {
|
|
|
1810
1810
|
groupId: `${M}:${l}`
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
|
-
if (g = n[_] || {}, k = g[l],
|
|
1813
|
+
if (g = n[_] || {}, k = g[l], kt(k))
|
|
1814
1814
|
break;
|
|
1815
1815
|
xg(t, l, _, f, M), w = S;
|
|
1816
1816
|
}
|
|
1817
|
-
if (!
|
|
1817
|
+
if (!kt(k) || !Ie(_))
|
|
1818
1818
|
return r ? oh : l;
|
|
1819
1819
|
let I = `${_}__${l}`;
|
|
1820
1820
|
ih(d) || (I = `${I}__${JSON.stringify(d)}`);
|
|
@@ -1865,9 +1865,9 @@ function Rp(...t) {
|
|
|
1865
1865
|
a = e;
|
|
1866
1866
|
else
|
|
1867
1867
|
throw lo(er.INVALID_ARGUMENT);
|
|
1868
|
-
return Ie(n) ? o.key = n :
|
|
1868
|
+
return Ie(n) ? o.key = n : kt(n) && Object.keys(n).forEach((l) => {
|
|
1869
1869
|
yw.includes(l) ? s[l] = n[l] : o[l] = n[l];
|
|
1870
|
-
}), Ie(r) ? o.locale = r :
|
|
1870
|
+
}), Ie(r) ? o.locale = r : kt(r) && (s = r), kt(i) && (s = i), [o.key || "", a, o, s];
|
|
1871
1871
|
}
|
|
1872
1872
|
function _v(t, e, n) {
|
|
1873
1873
|
const r = t;
|
|
@@ -1904,11 +1904,11 @@ function wv(t, ...e) {
|
|
|
1904
1904
|
groupId: `${M}:${l}`
|
|
1905
1905
|
});
|
|
1906
1906
|
}
|
|
1907
|
-
if (g = n[_] || {}, k = g[l],
|
|
1907
|
+
if (g = n[_] || {}, k = g[l], kt(k))
|
|
1908
1908
|
break;
|
|
1909
1909
|
xg(t, l, _, f, M), w = S;
|
|
1910
1910
|
}
|
|
1911
|
-
if (!
|
|
1911
|
+
if (!kt(k) || !Ie(_))
|
|
1912
1912
|
return r ? oh : l;
|
|
1913
1913
|
let I = `${_}__${l}`;
|
|
1914
1914
|
ih(d) || (I = `${I}__${JSON.stringify(d)}`);
|
|
@@ -1943,9 +1943,9 @@ function Ip(...t) {
|
|
|
1943
1943
|
if (!Tn(e))
|
|
1944
1944
|
throw lo(er.INVALID_ARGUMENT);
|
|
1945
1945
|
const a = e;
|
|
1946
|
-
return Ie(n) ? o.key = n :
|
|
1946
|
+
return Ie(n) ? o.key = n : kt(n) && Object.keys(n).forEach((l) => {
|
|
1947
1947
|
_w.includes(l) ? s[l] = n[l] : o[l] = n[l];
|
|
1948
|
-
}), Ie(r) ? o.locale = r :
|
|
1948
|
+
}), Ie(r) ? o.locale = r : kt(r) && (s = r), kt(i) && (s = i), [o.key || "", a, o, s];
|
|
1949
1949
|
}
|
|
1950
1950
|
function xv(t, e, n) {
|
|
1951
1951
|
const r = t;
|
|
@@ -1973,7 +1973,7 @@ function LC(t = {}) {
|
|
|
1973
1973
|
const k = Xt(t.messages) ? t.messages(g, !!_) : Ot(t.messages) ? t.messages[g] : !1;
|
|
1974
1974
|
return k || (t.parent ? t.parent.message(g) : MC);
|
|
1975
1975
|
}
|
|
1976
|
-
const d = (g) => t.modifiers ? t.modifiers[g] : AC, f =
|
|
1976
|
+
const d = (g) => t.modifiers ? t.modifiers[g] : AC, f = kt(t.processor) && Xt(t.processor.normalize) ? t.processor.normalize : OC, h = kt(t.processor) && Xt(t.processor.interpolate) ? t.processor.interpolate : RC, p = kt(t.processor) && Ie(t.processor.type) ? t.processor.type : NC, b = {
|
|
1977
1977
|
list: a,
|
|
1978
1978
|
named: c,
|
|
1979
1979
|
plural: o,
|
|
@@ -2124,7 +2124,7 @@ function Dp(...t) {
|
|
|
2124
2124
|
if (!Ie(e) && !Tn(e) && !Gr(e) && !Qr(e))
|
|
2125
2125
|
throw lo(er.INVALID_ARGUMENT);
|
|
2126
2126
|
const o = Tn(e) ? String(e) : (Gr(e), e);
|
|
2127
|
-
return Tn(n) ? i.plural = n : Ie(n) ? i.default = n :
|
|
2127
|
+
return Tn(n) ? i.plural = n : Ie(n) ? i.default = n : kt(n) && !ih(n) ? i.named = n : gn(n) && (i.list = n), Tn(r) ? i.plural = r : Ie(r) ? i.default = r : kt(r) && Bn(i, r), [o, i];
|
|
2128
2128
|
}
|
|
2129
2129
|
function $C(t, e, n, r, i, o) {
|
|
2130
2130
|
return {
|
|
@@ -2366,7 +2366,7 @@ function gc(t) {
|
|
|
2366
2366
|
return t;
|
|
2367
2367
|
}
|
|
2368
2368
|
function kg(t, e) {
|
|
2369
|
-
const { messages: n, __i18n: r, messageResolver: i, flatJson: o } = e, s =
|
|
2369
|
+
const { messages: n, __i18n: r, messageResolver: i, flatJson: o } = e, s = kt(n) ? n : gn(r) ? Gt() : { [t]: Gt() };
|
|
2370
2370
|
if (gn(r) && r.forEach((a) => {
|
|
2371
2371
|
if ("locale" in a && "resource" in a) {
|
|
2372
2372
|
const { locale: l, resource: c } = a;
|
|
@@ -2427,10 +2427,10 @@ function Eg(t = {}) {
|
|
|
2427
2427
|
e && s ? e.locale.value : Ie(t.locale) ? t.locale : pc
|
|
2428
2428
|
), l = o(
|
|
2429
2429
|
// prettier-ignore
|
|
2430
|
-
e && s ? e.fallbackLocale.value : Ie(t.fallbackLocale) || gn(t.fallbackLocale) ||
|
|
2431
|
-
), c = o(kg(a.value, t)), u = o(
|
|
2430
|
+
e && s ? e.fallbackLocale.value : Ie(t.fallbackLocale) || gn(t.fallbackLocale) || kt(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : a.value
|
|
2431
|
+
), c = o(kg(a.value, t)), u = o(kt(t.datetimeFormats) ? t.datetimeFormats : { [a.value]: {} }), d = o(kt(t.numberFormats) ? t.numberFormats : { [a.value]: {} });
|
|
2432
2432
|
let f = e ? e.missingWarn : Dt(t.missingWarn) || Ga(t.missingWarn) ? t.missingWarn : !0, h = e ? e.fallbackWarn : Dt(t.fallbackWarn) || Ga(t.fallbackWarn) ? t.fallbackWarn : !0, p = e ? e.fallbackRoot : Dt(t.fallbackRoot) ? t.fallbackRoot : !0, m = !!t.fallbackFormat, b = Xt(t.missing) ? t.missing : null, g = Xt(t.missing) ? Nv(t.missing) : null, _ = Xt(t.postTranslation) ? t.postTranslation : null, k = e ? e.warnHtmlMessage : Dt(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, w = !!t.escapeParameter;
|
|
2433
|
-
const S = e ? e.modifiers :
|
|
2433
|
+
const S = e ? e.modifiers : kt(t.modifiers) ? t.modifiers : {};
|
|
2434
2434
|
let M = t.pluralRules || e && e.pluralRules, I;
|
|
2435
2435
|
I = (() => {
|
|
2436
2436
|
r && gv(null);
|
|
@@ -2453,7 +2453,7 @@ function Eg(t = {}) {
|
|
|
2453
2453
|
messageCompiler: t.messageCompiler,
|
|
2454
2454
|
__meta: { framework: "vue" }
|
|
2455
2455
|
};
|
|
2456
|
-
ce.datetimeFormats = u.value, ce.numberFormats = d.value, ce.__datetimeFormatters =
|
|
2456
|
+
ce.datetimeFormats = u.value, ce.numberFormats = d.value, ce.__datetimeFormatters = kt(I) ? I.__datetimeFormatters : void 0, ce.__numberFormatters = kt(I) ? I.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (ce.__v_emitter = kt(I) ? I.__v_emitter : void 0);
|
|
2457
2457
|
const re = CC(ce);
|
|
2458
2458
|
return r && gv(re), re;
|
|
2459
2459
|
})(), Il(I, a.value, l.value);
|
|
@@ -2969,9 +2969,9 @@ function hT(t, e) {
|
|
|
2969
2969
|
}
|
|
2970
2970
|
}
|
|
2971
2971
|
function pT(t) {
|
|
2972
|
-
const e = Ie(t.locale) ? t.locale : pc, n = Ie(t.fallbackLocale) || gn(t.fallbackLocale) ||
|
|
2972
|
+
const e = Ie(t.locale) ? t.locale : pc, n = Ie(t.fallbackLocale) || gn(t.fallbackLocale) || kt(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : e, r = Xt(t.missing) ? t.missing : void 0, i = Dt(t.silentTranslationWarn) || Ga(t.silentTranslationWarn) ? !t.silentTranslationWarn : !0, o = Dt(t.silentFallbackWarn) || Ga(t.silentFallbackWarn) ? !t.silentFallbackWarn : !0, s = Dt(t.fallbackRoot) ? t.fallbackRoot : !0, a = !!t.formatFallbackMessages, l = kt(t.modifiers) ? t.modifiers : {}, c = t.pluralizationRules, u = Xt(t.postTranslation) ? t.postTranslation : void 0, d = Ie(t.warnHtmlInMessage) ? t.warnHtmlInMessage !== "off" : !0, f = !!t.escapeParameterHtml, h = Dt(t.sync) ? t.sync : !0;
|
|
2973
2973
|
let p = t.messages;
|
|
2974
|
-
if (
|
|
2974
|
+
if (kt(t.sharedMessages)) {
|
|
2975
2975
|
const S = t.sharedMessages;
|
|
2976
2976
|
p = Object.keys(S).reduce((I, z) => {
|
|
2977
2977
|
const L = I[z] || (I[z] = {});
|
|
@@ -3118,7 +3118,7 @@ function Hp(t = {}) {
|
|
|
3118
3118
|
if (process.env.NODE_ENV !== "production" && Q2(ah(Wo.DEPRECATE_TC)), !Ie(o))
|
|
3119
3119
|
throw pr(Yt.INVALID_ARGUMENT);
|
|
3120
3120
|
const d = o;
|
|
3121
|
-
return Ie(s) ? l.locale = s : Tn(s) ? l.plural = s : gn(s) ? c = s :
|
|
3121
|
+
return Ie(s) ? l.locale = s : Tn(s) ? l.plural = s : gn(s) ? c = s : kt(s) && (u = s), Ie(a) ? l.locale = a : gn(a) ? c = a : kt(a) && (u = a), Reflect.apply(e.t, e, [
|
|
3122
3122
|
d,
|
|
3123
3123
|
c || u || {},
|
|
3124
3124
|
l
|
|
@@ -3417,7 +3417,7 @@ function xT(t) {
|
|
|
3417
3417
|
function Bv(t) {
|
|
3418
3418
|
if (Ie(t))
|
|
3419
3419
|
return { path: t };
|
|
3420
|
-
if (
|
|
3420
|
+
if (kt(t)) {
|
|
3421
3421
|
if (!("path" in t))
|
|
3422
3422
|
throw pr(Yt.REQUIRED_VALUE, "path");
|
|
3423
3423
|
return t;
|
|
@@ -3429,7 +3429,7 @@ function Pv(t) {
|
|
|
3429
3429
|
return Ie(n) && (s.locale = n), Tn(i) && (s.plural = i), Tn(o) && (s.plural = o), [e, a, s];
|
|
3430
3430
|
}
|
|
3431
3431
|
function kT(t, e, ...n) {
|
|
3432
|
-
const r =
|
|
3432
|
+
const r = kt(n[0]) ? n[0] : {};
|
|
3433
3433
|
(Dt(r.globalInstall) ? r.globalInstall : !0) && ([Iv.name, "I18nT"].forEach((o) => t.component(o, Iv)), [Dv.name, "I18nN"].forEach((o) => t.component(o, Dv)), [Lv.name, "I18nD"].forEach((o) => t.component(o, Lv))), t.directive("t", xT(e));
|
|
3434
3434
|
}
|
|
3435
3435
|
const ET = /* @__PURE__ */ Wi("global-vue-i18n");
|
|
@@ -3451,7 +3451,7 @@ function ST(t = {}, e) {
|
|
|
3451
3451
|
},
|
|
3452
3452
|
// install plugin
|
|
3453
3453
|
async install(f, ...h) {
|
|
3454
|
-
if (process.env.NODE_ENV !== "production" && (f.__VUE_I18N__ = d), f.__VUE_I18N_SYMBOL__ = a, f.provide(f.__VUE_I18N_SYMBOL__, d),
|
|
3454
|
+
if (process.env.NODE_ENV !== "production" && (f.__VUE_I18N__ = d), f.__VUE_I18N_SYMBOL__ = a, f.provide(f.__VUE_I18N_SYMBOL__, d), kt(h[0])) {
|
|
3455
3455
|
const b = h[0];
|
|
3456
3456
|
d.__composerExtend = b.__composerExtend, d.__vueI18nExtend = b.__vueI18nExtend;
|
|
3457
3457
|
}
|
|
@@ -9889,7 +9889,7 @@ const b0 = /* @__PURE__ */ Object.create(null);
|
|
|
9889
9889
|
function h3(t) {
|
|
9890
9890
|
return t in b0 ? t + "$" + ++b0[t] : (b0[t] = 0, t + "$");
|
|
9891
9891
|
}
|
|
9892
|
-
class
|
|
9892
|
+
class _t {
|
|
9893
9893
|
/**
|
|
9894
9894
|
Create a plugin key.
|
|
9895
9895
|
*/
|
|
@@ -14454,7 +14454,7 @@ function am(t, e) {
|
|
|
14454
14454
|
function ax(t) {
|
|
14455
14455
|
return typeof t == "function";
|
|
14456
14456
|
}
|
|
14457
|
-
function
|
|
14457
|
+
function xt(t, e = void 0, ...n) {
|
|
14458
14458
|
return ax(t) ? e ? t.bind(e)(...n) : t(...n) : t;
|
|
14459
14459
|
}
|
|
14460
14460
|
function V9(t = {}) {
|
|
@@ -14503,23 +14503,23 @@ function q9(t, e) {
|
|
|
14503
14503
|
};
|
|
14504
14504
|
}, {}), h = Fy({
|
|
14505
14505
|
...f,
|
|
14506
|
-
content:
|
|
14507
|
-
marks:
|
|
14508
|
-
group:
|
|
14509
|
-
inline:
|
|
14510
|
-
atom:
|
|
14511
|
-
selectable:
|
|
14512
|
-
draggable:
|
|
14513
|
-
code:
|
|
14514
|
-
whitespace:
|
|
14515
|
-
linebreakReplacement:
|
|
14516
|
-
defining:
|
|
14517
|
-
isolating:
|
|
14506
|
+
content: xt($e(c, "content", d)),
|
|
14507
|
+
marks: xt($e(c, "marks", d)),
|
|
14508
|
+
group: xt($e(c, "group", d)),
|
|
14509
|
+
inline: xt($e(c, "inline", d)),
|
|
14510
|
+
atom: xt($e(c, "atom", d)),
|
|
14511
|
+
selectable: xt($e(c, "selectable", d)),
|
|
14512
|
+
draggable: xt($e(c, "draggable", d)),
|
|
14513
|
+
code: xt($e(c, "code", d)),
|
|
14514
|
+
whitespace: xt($e(c, "whitespace", d)),
|
|
14515
|
+
linebreakReplacement: xt($e(c, "linebreakReplacement", d)),
|
|
14516
|
+
defining: xt($e(c, "defining", d)),
|
|
14517
|
+
isolating: xt($e(c, "isolating", d)),
|
|
14518
14518
|
attrs: Object.fromEntries(u.map((g) => {
|
|
14519
14519
|
var _;
|
|
14520
14520
|
return [g.name, { default: (_ = g == null ? void 0 : g.attribute) === null || _ === void 0 ? void 0 : _.default }];
|
|
14521
14521
|
}))
|
|
14522
|
-
}), p =
|
|
14522
|
+
}), p = xt($e(c, "parseHTML", d));
|
|
14523
14523
|
p && (h.parseDOM = p.map((g) => $y(g, u)));
|
|
14524
14524
|
const m = $e(c, "renderHTML", d);
|
|
14525
14525
|
m && (h.toDOM = (g) => m({
|
|
@@ -14542,16 +14542,16 @@ function q9(t, e) {
|
|
|
14542
14542
|
};
|
|
14543
14543
|
}, {}), h = Fy({
|
|
14544
14544
|
...f,
|
|
14545
|
-
inclusive:
|
|
14546
|
-
excludes:
|
|
14547
|
-
group:
|
|
14548
|
-
spanning:
|
|
14549
|
-
code:
|
|
14545
|
+
inclusive: xt($e(c, "inclusive", d)),
|
|
14546
|
+
excludes: xt($e(c, "excludes", d)),
|
|
14547
|
+
group: xt($e(c, "group", d)),
|
|
14548
|
+
spanning: xt($e(c, "spanning", d)),
|
|
14549
|
+
code: xt($e(c, "code", d)),
|
|
14550
14550
|
attrs: Object.fromEntries(u.map((b) => {
|
|
14551
14551
|
var g;
|
|
14552
14552
|
return [b.name, { default: (g = b == null ? void 0 : b.attribute) === null || g === void 0 ? void 0 : g.default }];
|
|
14553
14553
|
}))
|
|
14554
|
-
}), p =
|
|
14554
|
+
}), p = xt($e(c, "parseHTML", d));
|
|
14555
14555
|
p && (h.parseDOM = p.map((b) => $y(b, u)));
|
|
14556
14556
|
const m = $e(c, "renderHTML", d);
|
|
14557
14557
|
return m && (h.toDOM = (b) => m({
|
|
@@ -14742,9 +14742,9 @@ class vr {
|
|
|
14742
14742
|
}, this.config = {
|
|
14743
14743
|
...this.config,
|
|
14744
14744
|
...e
|
|
14745
|
-
}, this.name = this.config.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: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options =
|
|
14745
|
+
}, this.name = this.config.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: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = xt($e(this, "addOptions", {
|
|
14746
14746
|
name: this.name
|
|
14747
|
-
}))), this.storage =
|
|
14747
|
+
}))), this.storage = xt($e(this, "addStorage", {
|
|
14748
14748
|
name: this.name,
|
|
14749
14749
|
options: this.options
|
|
14750
14750
|
})) || {};
|
|
@@ -14761,9 +14761,9 @@ class vr {
|
|
|
14761
14761
|
}
|
|
14762
14762
|
extend(e = {}) {
|
|
14763
14763
|
const n = new vr(e);
|
|
14764
|
-
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 =
|
|
14764
|
+
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 = xt($e(n, "addOptions", {
|
|
14765
14765
|
name: n.name
|
|
14766
|
-
})), n.storage =
|
|
14766
|
+
})), n.storage = xt($e(n, "addStorage", {
|
|
14767
14767
|
name: n.name,
|
|
14768
14768
|
options: n.options
|
|
14769
14769
|
})), n;
|
|
@@ -15088,7 +15088,7 @@ class Da {
|
|
|
15088
15088
|
editor: this.editor,
|
|
15089
15089
|
type: S0(e.name, this.schema)
|
|
15090
15090
|
};
|
|
15091
|
-
e.type === "mark" && (!((n =
|
|
15091
|
+
e.type === "mark" && (!((n = xt($e(e, "keepOnSplit", r))) !== null && n !== void 0) || n) && this.splittableMarks.push(e.name);
|
|
15092
15092
|
const i = $e(e, "onBeforeCreate", r), o = $e(e, "onCreate", r), s = $e(e, "onUpdate", r), a = $e(e, "onSelectionUpdate", r), l = $e(e, "onTransaction", r), c = $e(e, "onFocus", r), u = $e(e, "onBlur", r), d = $e(e, "onDestroy", r);
|
|
15093
15093
|
i && this.editor.on("beforeCreate", i), o && this.editor.on("create", o), s && this.editor.on("update", s), a && this.editor.on("selectionUpdate", a), l && this.editor.on("transaction", l), c && this.editor.on("focus", c), u && this.editor.on("blur", u), d && this.editor.on("destroy", d);
|
|
15094
15094
|
});
|
|
@@ -15102,9 +15102,9 @@ class bt {
|
|
|
15102
15102
|
}, this.config = {
|
|
15103
15103
|
...this.config,
|
|
15104
15104
|
...e
|
|
15105
|
-
}, this.name = this.config.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: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options =
|
|
15105
|
+
}, this.name = this.config.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: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = xt($e(this, "addOptions", {
|
|
15106
15106
|
name: this.name
|
|
15107
|
-
}))), this.storage =
|
|
15107
|
+
}))), this.storage = xt($e(this, "addStorage", {
|
|
15108
15108
|
name: this.name,
|
|
15109
15109
|
options: this.options
|
|
15110
15110
|
})) || {};
|
|
@@ -15121,9 +15121,9 @@ class bt {
|
|
|
15121
15121
|
}
|
|
15122
15122
|
extend(e = {}) {
|
|
15123
15123
|
const n = new bt({ ...this.config, ...e });
|
|
15124
|
-
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 =
|
|
15124
|
+
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 = xt($e(n, "addOptions", {
|
|
15125
15125
|
name: n.name
|
|
15126
|
-
})), n.storage =
|
|
15126
|
+
})), n.storage = xt($e(n, "addStorage", {
|
|
15127
15127
|
name: n.name,
|
|
15128
15128
|
options: n.options
|
|
15129
15129
|
})), n;
|
|
@@ -15162,7 +15162,7 @@ const rN = bt.create({
|
|
|
15162
15162
|
addProseMirrorPlugins() {
|
|
15163
15163
|
return [
|
|
15164
15164
|
new mt({
|
|
15165
|
-
key: new
|
|
15165
|
+
key: new _t("clipboardTextSerializer"),
|
|
15166
15166
|
props: {
|
|
15167
15167
|
clipboardTextSerializer: () => {
|
|
15168
15168
|
const { editor: t } = this, { state: e, schema: n } = t, { doc: r, selection: i } = e, { ranges: o } = i, s = Math.min(...o.map((u) => u.$from.pos)), a = Math.max(...o.map((u) => u.$to.pos)), l = Zg(n);
|
|
@@ -15790,7 +15790,7 @@ function Vy(t, e) {
|
|
|
15790
15790
|
name: r.name,
|
|
15791
15791
|
options: r.options,
|
|
15792
15792
|
storage: r.storage
|
|
15793
|
-
}, o =
|
|
15793
|
+
}, o = xt($e(r, "group", i));
|
|
15794
15794
|
return typeof o != "string" ? !1 : o.split(" ").includes("list");
|
|
15795
15795
|
}
|
|
15796
15796
|
function kh(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) {
|
|
@@ -16180,7 +16180,7 @@ const yO = bt.create({
|
|
|
16180
16180
|
addProseMirrorPlugins() {
|
|
16181
16181
|
return [
|
|
16182
16182
|
new mt({
|
|
16183
|
-
key: new
|
|
16183
|
+
key: new _t("tiptapDrop"),
|
|
16184
16184
|
props: {
|
|
16185
16185
|
handleDrop: (t, e, n, r) => {
|
|
16186
16186
|
this.editor.emit("drop", {
|
|
@@ -16199,14 +16199,14 @@ const yO = bt.create({
|
|
|
16199
16199
|
addProseMirrorPlugins() {
|
|
16200
16200
|
return [
|
|
16201
16201
|
new mt({
|
|
16202
|
-
key: new
|
|
16202
|
+
key: new _t("editable"),
|
|
16203
16203
|
props: {
|
|
16204
16204
|
editable: () => this.editor.options.editable
|
|
16205
16205
|
}
|
|
16206
16206
|
})
|
|
16207
16207
|
];
|
|
16208
16208
|
}
|
|
16209
|
-
}), xO = new
|
|
16209
|
+
}), xO = new _t("focusEvents"), kO = bt.create({
|
|
16210
16210
|
name: "focusEvents",
|
|
16211
16211
|
addProseMirrorPlugins() {
|
|
16212
16212
|
const { editor: t } = this;
|
|
@@ -16285,7 +16285,7 @@ const yO = bt.create({
|
|
|
16285
16285
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
|
16286
16286
|
// with many other commands.
|
|
16287
16287
|
new mt({
|
|
16288
|
-
key: new
|
|
16288
|
+
key: new _t("clearDocument"),
|
|
16289
16289
|
appendTransaction: (t, e, n) => {
|
|
16290
16290
|
if (t.some((m) => m.getMeta("composition")))
|
|
16291
16291
|
return;
|
|
@@ -16313,7 +16313,7 @@ const yO = bt.create({
|
|
|
16313
16313
|
addProseMirrorPlugins() {
|
|
16314
16314
|
return [
|
|
16315
16315
|
new mt({
|
|
16316
|
-
key: new
|
|
16316
|
+
key: new _t("tiptapPaste"),
|
|
16317
16317
|
props: {
|
|
16318
16318
|
handlePaste: (t, e, n) => {
|
|
16319
16319
|
this.editor.emit("paste", {
|
|
@@ -16331,7 +16331,7 @@ const yO = bt.create({
|
|
|
16331
16331
|
addProseMirrorPlugins() {
|
|
16332
16332
|
return [
|
|
16333
16333
|
new mt({
|
|
16334
|
-
key: new
|
|
16334
|
+
key: new _t("tabindex"),
|
|
16335
16335
|
props: {
|
|
16336
16336
|
attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
|
|
16337
16337
|
}
|
|
@@ -16898,7 +16898,7 @@ function na(t) {
|
|
|
16898
16898
|
return new ou({
|
|
16899
16899
|
find: t.find,
|
|
16900
16900
|
handler: ({ state: e, range: n, match: r }) => {
|
|
16901
|
-
const i =
|
|
16901
|
+
const i = xt(t.getAttributes, void 0, r);
|
|
16902
16902
|
if (i === !1 || i === null)
|
|
16903
16903
|
return null;
|
|
16904
16904
|
const { tr: o } = e, s = r[r.length - 1], a = r[0];
|
|
@@ -16917,7 +16917,7 @@ function o1(t) {
|
|
|
16917
16917
|
return new ou({
|
|
16918
16918
|
find: t.find,
|
|
16919
16919
|
handler: ({ state: e, range: n, match: r }) => {
|
|
16920
|
-
const i =
|
|
16920
|
+
const i = xt(t.getAttributes, void 0, r) || {}, { tr: o } = e, s = n.from;
|
|
16921
16921
|
let a = n.to;
|
|
16922
16922
|
const l = t.type.create(i);
|
|
16923
16923
|
if (r[1]) {
|
|
@@ -16938,7 +16938,7 @@ function um(t) {
|
|
|
16938
16938
|
return new ou({
|
|
16939
16939
|
find: t.find,
|
|
16940
16940
|
handler: ({ state: e, range: n, match: r }) => {
|
|
16941
|
-
const i = e.doc.resolve(n.from), o =
|
|
16941
|
+
const i = e.doc.resolve(n.from), o = xt(t.getAttributes, void 0, r) || {};
|
|
16942
16942
|
if (!i.node(-1).canReplaceWith(i.index(-1), i.indexAfter(-1), t.type))
|
|
16943
16943
|
return null;
|
|
16944
16944
|
e.tr.delete(n.from, n.to).setBlockType(n.from, n.from, t.type, o);
|
|
@@ -16965,7 +16965,7 @@ function Tc(t) {
|
|
|
16965
16965
|
return new ou({
|
|
16966
16966
|
find: t.find,
|
|
16967
16967
|
handler: ({ state: e, range: n, match: r, chain: i }) => {
|
|
16968
|
-
const o =
|
|
16968
|
+
const o = xt(t.getAttributes, void 0, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c = l && Rg(l, t.type, o);
|
|
16969
16969
|
if (!c)
|
|
16970
16970
|
return null;
|
|
16971
16971
|
if (s.wrap(l, c), t.keepMarks && t.editor) {
|
|
@@ -16992,9 +16992,9 @@ let ut = class dm {
|
|
|
16992
16992
|
}, this.config = {
|
|
16993
16993
|
...this.config,
|
|
16994
16994
|
...e
|
|
16995
|
-
}, this.name = this.config.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: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options =
|
|
16995
|
+
}, this.name = this.config.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: "${this.name}".`), this.options = this.config.defaultOptions, this.config.addOptions && (this.options = xt($e(this, "addOptions", {
|
|
16996
16996
|
name: this.name
|
|
16997
|
-
}))), this.storage =
|
|
16997
|
+
}))), this.storage = xt($e(this, "addStorage", {
|
|
16998
16998
|
name: this.name,
|
|
16999
16999
|
options: this.options
|
|
17000
17000
|
})) || {};
|
|
@@ -17011,9 +17011,9 @@ let ut = class dm {
|
|
|
17011
17011
|
}
|
|
17012
17012
|
extend(e = {}) {
|
|
17013
17013
|
const n = new dm(e);
|
|
17014
|
-
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 =
|
|
17014
|
+
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 = xt($e(n, "addOptions", {
|
|
17015
17015
|
name: n.name
|
|
17016
|
-
})), n.storage =
|
|
17016
|
+
})), n.storage = xt($e(n, "addStorage", {
|
|
17017
17017
|
name: n.name,
|
|
17018
17018
|
options: n.options
|
|
17019
17019
|
})), n;
|
|
@@ -17118,7 +17118,7 @@ function as(t) {
|
|
|
17118
17118
|
return new J9({
|
|
17119
17119
|
find: t.find,
|
|
17120
17120
|
handler: ({ state: e, range: n, match: r, pasteEvent: i }) => {
|
|
17121
|
-
const o =
|
|
17121
|
+
const o = xt(t.getAttributes, void 0, r, i);
|
|
17122
17122
|
if (o === !1 || o === null)
|
|
17123
17123
|
return null;
|
|
17124
17124
|
const { tr: s } = e, a = r[r.length - 1], l = r[0];
|
|
@@ -17156,7 +17156,7 @@ const IO = ["table", "orderedList", "bulletList", "section"], DO = ["iframe", "f
|
|
|
17156
17156
|
const { editor: t } = this;
|
|
17157
17157
|
return [
|
|
17158
17158
|
new mt({
|
|
17159
|
-
key: new
|
|
17159
|
+
key: new _t("selection"),
|
|
17160
17160
|
props: {
|
|
17161
17161
|
decorations(e) {
|
|
17162
17162
|
const { doc: n, selection: r } = e;
|
|
@@ -19841,7 +19841,7 @@ let XI = class {
|
|
|
19841
19841
|
}
|
|
19842
19842
|
};
|
|
19843
19843
|
const Gx = (t) => new mt({
|
|
19844
|
-
key: typeof t.pluginKey == "string" ? new
|
|
19844
|
+
key: typeof t.pluginKey == "string" ? new _t(t.pluginKey) : t.pluginKey,
|
|
19845
19845
|
view: (e) => new XI({ view: e, ...t })
|
|
19846
19846
|
});
|
|
19847
19847
|
bt.create({
|
|
@@ -19936,7 +19936,7 @@ class JI {
|
|
|
19936
19936
|
}
|
|
19937
19937
|
}
|
|
19938
19938
|
const jx = (t) => new mt({
|
|
19939
|
-
key: typeof t.pluginKey == "string" ? new
|
|
19939
|
+
key: typeof t.pluginKey == "string" ? new _t(t.pluginKey) : t.pluginKey,
|
|
19940
19940
|
view: (e) => new JI({ view: e, ...t })
|
|
19941
19941
|
});
|
|
19942
19942
|
bt.create({
|
|
@@ -21147,7 +21147,7 @@ const yd = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, m4 = (t, e)
|
|
|
21147
21147
|
return f.setSelection(p), f.scrollIntoView(), n.dispatch(f), !0;
|
|
21148
21148
|
}, ArrowRight: ({ editor: t }) => m4(t, "right"), ArrowDown: ({ editor: t }) => m4(t, "down") };
|
|
21149
21149
|
}, addProseMirrorPlugins() {
|
|
21150
|
-
return [new mt({ key: new
|
|
21150
|
+
return [new mt({ key: new _t("detailsSelection"), appendTransaction: (t, e, n) => {
|
|
21151
21151
|
const { editor: r, type: i } = this;
|
|
21152
21152
|
if (!t.some((f) => f.selectionSet) || !e.selection.empty || !n.selection.empty || !_x(n, i.name)) return;
|
|
21153
21153
|
const { $from: s } = n.selection;
|
|
@@ -32844,7 +32844,7 @@ var aB = function(e, n) {
|
|
|
32844
32844
|
};
|
|
32845
32845
|
const fB = (t) => {
|
|
32846
32846
|
const { regex: e, katexOptions: n = {}, editor: r, shouldRender: i } = t;
|
|
32847
|
-
return new mt({ key: new
|
|
32847
|
+
return new mt({ key: new _t("mathematics"), state: { init: () => ({ decorations: void 0, isEditable: void 0 }), apply(o, s, a, l) {
|
|
32848
32848
|
if (!o.docChanged && !o.selectionSet && s.decorations) return s;
|
|
32849
32849
|
const c = (s.decorations || Mt.empty).map(o.mapping, o.doc), { selection: u } = l, d = r.isEditable, f = [], { minFrom: h, maxTo: p } = function(b, g, _, k, w) {
|
|
32850
32850
|
const S = b.doc.nodeSize - 2;
|
|
@@ -32914,7 +32914,7 @@ function Cm(t, e, n) {
|
|
|
32914
32914
|
var r = t.random || (t.rng || gB)();
|
|
32915
32915
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, pB(r);
|
|
32916
32916
|
}
|
|
32917
|
-
const vB = ({ getId: t, anchorTypes: e = ["heading"] }) => new mt({ key: new
|
|
32917
|
+
const vB = ({ getId: t, anchorTypes: e = ["heading"] }) => new mt({ key: new _t("tableOfContent"), appendTransaction(n, r, i) {
|
|
32918
32918
|
const o = i.tr;
|
|
32919
32919
|
let s = !1;
|
|
32920
32920
|
if (n.some((a) => a.docChanged)) {
|
|
@@ -33090,7 +33090,7 @@ const vB = ({ getId: t, anchorTypes: e = ["heading"] }) => new mt({ key: new kt(
|
|
|
33090
33090
|
let t = !1;
|
|
33091
33091
|
return [
|
|
33092
33092
|
new mt({
|
|
33093
|
-
key: new
|
|
33093
|
+
key: new _t("characterCount"),
|
|
33094
33094
|
appendTransaction: (e, n, r) => {
|
|
33095
33095
|
if (t)
|
|
33096
33096
|
return;
|
|
@@ -33303,7 +33303,7 @@ const e6 = bt.create({
|
|
|
33303
33303
|
addProseMirrorPlugins() {
|
|
33304
33304
|
return [
|
|
33305
33305
|
new mt({
|
|
33306
|
-
key: new
|
|
33306
|
+
key: new _t("focus"),
|
|
33307
33307
|
props: {
|
|
33308
33308
|
decorations: ({ doc: t, selection: e }) => {
|
|
33309
33309
|
const { isEditable: n, isFocused: r } = this.editor, { anchor: i } = e, o = [];
|
|
@@ -33612,7 +33612,7 @@ xr.prototype = {
|
|
|
33612
33612
|
return i.j[t] = s, s;
|
|
33613
33613
|
}
|
|
33614
33614
|
};
|
|
33615
|
-
const
|
|
33615
|
+
const wt = (t, e, n, r, i) => t.ta(e, n, r, i), yn = (t, e, n, r, i) => t.tr(e, n, r, i), J4 = (t, e, n, r, i) => t.ts(e, n, r, i), ke = (t, e, n, r, i) => t.tt(e, n, r, i), ro = "WORD", Om = "UWORD", r6 = "ASCIINUMERICAL", i6 = "ALPHANUMERICAL", Pc = "LOCALHOST", Rm = "TLD", Im = "UTLD", xd = "SCHEME", Na = "SLASH_SCHEME", V1 = "NUM", Dm = "WS", W1 = "NL", ic = "OPENBRACE", oc = "CLOSEBRACE", nf = "OPENBRACKET", rf = "CLOSEBRACKET", of = "OPENPAREN", sf = "CLOSEPAREN", af = "OPENANGLEBRACKET", lf = "CLOSEANGLEBRACKET", cf = "FULLWIDTHLEFTPAREN", uf = "FULLWIDTHRIGHTPAREN", df = "LEFTCORNERBRACKET", ff = "RIGHTCORNERBRACKET", hf = "LEFTWHITECORNERBRACKET", pf = "RIGHTWHITECORNERBRACKET", mf = "FULLWIDTHLESSTHAN", gf = "FULLWIDTHGREATERTHAN", bf = "AMPERSAND", vf = "APOSTROPHE", yf = "ASTERISK", $o = "AT", _f = "BACKSLASH", wf = "BACKTICK", xf = "CARET", Ho = "COLON", q1 = "COMMA", kf = "DOLLAR", Mi = "DOT", Ef = "EQUALS", K1 = "EXCLAMATION", qr = "HYPHEN", sc = "PERCENT", Sf = "PIPE", Cf = "PLUS", Tf = "POUND", ac = "QUERY", G1 = "QUOTE", o6 = "FULLWIDTHMIDDLEDOT", j1 = "SEMI", Ni = "SLASH", lc = "TILDE", Af = "UNDERSCORE", s6 = "EMOJI", Mf = "SYM";
|
|
33616
33616
|
var a6 = /* @__PURE__ */ Object.freeze({
|
|
33617
33617
|
__proto__: null,
|
|
33618
33618
|
ALPHANUMERICAL: i6,
|
|
@@ -34035,33 +34035,33 @@ function PB({
|
|
|
34035
34035
|
groups: t
|
|
34036
34036
|
}) {
|
|
34037
34037
|
const e = t.domain.concat([bf, yf, $o, _f, wf, xf, kf, Ef, qr, V1, sc, Sf, Cf, Tf, Ni, Mf, lc, Af]), n = [vf, Ho, q1, Mi, K1, sc, ac, G1, j1, af, lf, ic, oc, rf, nf, of, sf, cf, uf, df, ff, hf, pf, mf, gf], r = [bf, vf, yf, _f, wf, xf, kf, Ef, qr, ic, oc, sc, Sf, Cf, Tf, ac, Ni, Mf, lc, Af], i = Wr(), o = ke(i, lc);
|
|
34038
|
-
|
|
34038
|
+
wt(o, r, o), wt(o, t.domain, o);
|
|
34039
34039
|
const s = Wr(), a = Wr(), l = Wr();
|
|
34040
|
-
|
|
34040
|
+
wt(i, t.domain, s), wt(i, t.scheme, a), wt(i, t.slashscheme, l), wt(s, r, o), wt(s, t.domain, s);
|
|
34041
34041
|
const c = ke(s, $o);
|
|
34042
34042
|
ke(o, $o, c), ke(a, $o, c), ke(l, $o, c);
|
|
34043
34043
|
const u = ke(o, Mi);
|
|
34044
|
-
|
|
34044
|
+
wt(u, r, o), wt(u, t.domain, o);
|
|
34045
34045
|
const d = Wr();
|
|
34046
|
-
|
|
34046
|
+
wt(c, t.domain, d), wt(d, t.domain, d);
|
|
34047
34047
|
const f = ke(d, Mi);
|
|
34048
|
-
|
|
34048
|
+
wt(f, t.domain, d);
|
|
34049
34049
|
const h = Wr(t_);
|
|
34050
|
-
|
|
34050
|
+
wt(f, t.tld, h), wt(f, t.utld, h), ke(c, Pc, h);
|
|
34051
34051
|
const p = ke(d, qr);
|
|
34052
|
-
ke(p, qr, p),
|
|
34052
|
+
ke(p, qr, p), wt(p, t.domain, d), wt(h, t.domain, d), ke(h, Mi, f), ke(h, qr, p);
|
|
34053
34053
|
const m = ke(h, Ho);
|
|
34054
|
-
|
|
34054
|
+
wt(m, t.numeric, t_);
|
|
34055
34055
|
const b = ke(s, qr), g = ke(s, Mi);
|
|
34056
|
-
ke(b, qr, b),
|
|
34056
|
+
ke(b, qr, b), wt(b, t.domain, s), wt(g, r, o), wt(g, t.domain, s);
|
|
34057
34057
|
const _ = Wr(Ku);
|
|
34058
|
-
|
|
34058
|
+
wt(g, t.tld, _), wt(g, t.utld, _), wt(_, t.domain, s), wt(_, r, o), ke(_, Mi, g), ke(_, qr, b), ke(_, $o, c);
|
|
34059
34059
|
const k = ke(_, Ho), w = Wr(Ku);
|
|
34060
|
-
|
|
34060
|
+
wt(k, t.numeric, w);
|
|
34061
34061
|
const S = Wr(Ku), M = Wr();
|
|
34062
|
-
|
|
34062
|
+
wt(S, e, S), wt(S, n, M), wt(M, e, S), wt(M, n, M), ke(_, Ni, S), ke(w, Ni, S);
|
|
34063
34063
|
const I = ke(a, Ho), z = ke(l, Ho), L = ke(z, Ni), Y = ke(L, Ni);
|
|
34064
|
-
|
|
34064
|
+
wt(a, t.domain, s), ke(a, Mi, g), ke(a, qr, b), wt(l, t.domain, s), ke(l, Mi, g), ke(l, qr, b), wt(I, t.domain, S), ke(I, Ni, S), ke(I, ac, S), wt(Y, t.domain, S), wt(Y, e, S), ke(Y, Ni, S);
|
|
34065
34065
|
const X = [
|
|
34066
34066
|
[ic, oc],
|
|
34067
34067
|
// {}
|
|
@@ -34084,9 +34084,9 @@ function PB({
|
|
|
34084
34084
|
const [P, D] = X[T], C = ke(S, P);
|
|
34085
34085
|
ke(M, P, C), ke(C, D, S);
|
|
34086
34086
|
const R = Wr(Ku);
|
|
34087
|
-
|
|
34087
|
+
wt(C, e, R);
|
|
34088
34088
|
const E = Wr();
|
|
34089
|
-
|
|
34089
|
+
wt(C, n), wt(R, e, R), wt(R, n, E), wt(E, e, R), wt(E, n, E), ke(R, D, S), ke(E, D, S);
|
|
34090
34090
|
}
|
|
34091
34091
|
return ke(i, Pc, _), ke(i, W1, BB), {
|
|
34092
34092
|
start: i,
|
|
@@ -34172,7 +34172,7 @@ function KB(t) {
|
|
|
34172
34172
|
}
|
|
34173
34173
|
function GB(t) {
|
|
34174
34174
|
return new mt({
|
|
34175
|
-
key: new
|
|
34175
|
+
key: new _t("autolink"),
|
|
34176
34176
|
appendTransaction: (e, n, r) => {
|
|
34177
34177
|
const i = e.some((c) => c.docChanged) && !n.doc.eq(r.doc), o = e.some((c) => c.getMeta("preventAutolink"));
|
|
34178
34178
|
if (!i || o)
|
|
@@ -34216,7 +34216,7 @@ function GB(t) {
|
|
|
34216
34216
|
}
|
|
34217
34217
|
function jB(t) {
|
|
34218
34218
|
return new mt({
|
|
34219
|
-
key: new
|
|
34219
|
+
key: new _t("handleClickLink"),
|
|
34220
34220
|
props: {
|
|
34221
34221
|
handleClick: (e, n, r) => {
|
|
34222
34222
|
var i, o;
|
|
@@ -34236,7 +34236,7 @@ function jB(t) {
|
|
|
34236
34236
|
}
|
|
34237
34237
|
function YB(t) {
|
|
34238
34238
|
return new mt({
|
|
34239
|
-
key: new
|
|
34239
|
+
key: new _t("handlePasteLink"),
|
|
34240
34240
|
props: {
|
|
34241
34241
|
handlePaste: (e, n, r) => {
|
|
34242
34242
|
const { state: i } = e, { selection: o } = i, { empty: s } = o;
|
|
@@ -34549,7 +34549,7 @@ const d6 = vr.create({
|
|
|
34549
34549
|
addProseMirrorPlugins() {
|
|
34550
34550
|
return [
|
|
34551
34551
|
new mt({
|
|
34552
|
-
key: new
|
|
34552
|
+
key: new _t("placeholder"),
|
|
34553
34553
|
props: {
|
|
34554
34554
|
decorations: ({ doc: t, selection: e }) => {
|
|
34555
34555
|
const n = this.editor.isEditable || !this.options.showOnlyWhenEditable, { anchor: r } = e, i = [];
|
|
@@ -35146,7 +35146,7 @@ const d6 = vr.create({
|
|
|
35146
35146
|
// this plugin creates a code block for pasted content from VS Code
|
|
35147
35147
|
// we can also detect the copied code language
|
|
35148
35148
|
new mt({
|
|
35149
|
-
key: new
|
|
35149
|
+
key: new _t("codeBlockVSCodeHandler"),
|
|
35150
35150
|
props: {
|
|
35151
35151
|
handlePaste: (t, e) => {
|
|
35152
35152
|
if (!e.clipboardData || this.editor.isActive(this.type.name))
|
|
@@ -35181,7 +35181,7 @@ const d6 = vr.create({
|
|
|
35181
35181
|
storage: t.storage
|
|
35182
35182
|
};
|
|
35183
35183
|
return {
|
|
35184
|
-
allowGapCursor: (e =
|
|
35184
|
+
allowGapCursor: (e = xt($e(t, "allowGapCursor", n))) !== null && e !== void 0 ? e : null
|
|
35185
35185
|
};
|
|
35186
35186
|
}
|
|
35187
35187
|
}), PP = ut.create({
|
|
@@ -35582,7 +35582,7 @@ function kd(t) {
|
|
|
35582
35582
|
}
|
|
35583
35583
|
return ap;
|
|
35584
35584
|
}
|
|
35585
|
-
const Ws = new
|
|
35585
|
+
const Ws = new _t("history"), KP = new _t("closeHistory");
|
|
35586
35586
|
function GP(t = {}) {
|
|
35587
35587
|
return t = {
|
|
35588
35588
|
depth: t.depth || 100,
|
|
@@ -36444,7 +36444,7 @@ function b$(t) {
|
|
|
36444
36444
|
text: b[0]
|
|
36445
36445
|
} : null;
|
|
36446
36446
|
}
|
|
36447
|
-
const v$ = new
|
|
36447
|
+
const v$ = new _t("suggestion");
|
|
36448
36448
|
function y$({ pluginKey: t = v$, editor: e, char: n = "@", allowSpaces: r = !1, allowToIncludeChar: i = !1, allowedPrefixes: o = [" "], startOfLine: s = !1, decorationTag: a = "span", decorationClass: l = "suggestion", decorationContent: c = "", decorationEmptyClass: u = "is-empty", command: d = () => null, items: f = () => [], render: h = () => ({}), allow: p = () => !0, findSuggestionMatch: m = b$ }) {
|
|
36449
36449
|
let b;
|
|
36450
36450
|
const g = h == null ? void 0 : h(), _ = new mt({
|
|
@@ -36628,7 +36628,7 @@ const _$ = bt.create({
|
|
|
36628
36628
|
let t = !1;
|
|
36629
36629
|
return [
|
|
36630
36630
|
new mt({
|
|
36631
|
-
key: new
|
|
36631
|
+
key: new _t("customPaste"),
|
|
36632
36632
|
props: {
|
|
36633
36633
|
// 1. 在拖拽时设置标志
|
|
36634
36634
|
handleDOMEvents: {
|
|
@@ -36965,7 +36965,7 @@ const _$ = bt.create({
|
|
|
36965
36965
|
addProseMirrorPlugins() {
|
|
36966
36966
|
return [
|
|
36967
36967
|
new mt({
|
|
36968
|
-
key: new
|
|
36968
|
+
key: new _t("format-painter"),
|
|
36969
36969
|
state: {
|
|
36970
36970
|
init: () => [],
|
|
36971
36971
|
apply(t, e) {
|
|
@@ -39483,7 +39483,7 @@ function nz({ name: t, lowlight: e, defaultLanguage: n }) {
|
|
|
39483
39483
|
if (!["highlight", "highlightAuto", "listLanguages"].every((i) => tz(e[i])))
|
|
39484
39484
|
throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");
|
|
39485
39485
|
const r = new mt({
|
|
39486
|
-
key: new
|
|
39486
|
+
key: new _t("lowlight"),
|
|
39487
39487
|
state: {
|
|
39488
39488
|
init: (i, { doc: o }) => E_({
|
|
39489
39489
|
doc: o,
|
|
@@ -53890,7 +53890,6 @@ const GU = { class: "smart-button-content" }, jU = { class: "smart-button-text"
|
|
|
53890
53890
|
"select-value": c.node.attrs.language,
|
|
53891
53891
|
"render-label": o,
|
|
53892
53892
|
filterable: "",
|
|
53893
|
-
to: !1,
|
|
53894
53893
|
onMenuClick: u[0] || (u[0] = (p) => a("language", p))
|
|
53895
53894
|
}, null, 8, ["select-options", "select-value"]),
|
|
53896
53895
|
J(d, {
|
|
@@ -53899,7 +53898,6 @@ const GU = { class: "smart-button-content" }, jU = { class: "smart-button-text"
|
|
|
53899
53898
|
style: { width: "100px" },
|
|
53900
53899
|
"select-options": s,
|
|
53901
53900
|
"select-value": c.node.attrs.theme,
|
|
53902
|
-
to: !1,
|
|
53903
53901
|
onMenuClick: u[1] || (u[1] = (p) => a("theme", p))
|
|
53904
53902
|
}, null, 8, ["text", "select-value"])
|
|
53905
53903
|
]),
|
|
@@ -53958,7 +53956,7 @@ const GU = { class: "smart-button-content" }, jU = { class: "smart-button-text"
|
|
|
53958
53956
|
}, 8, ["data-smart-id"]);
|
|
53959
53957
|
};
|
|
53960
53958
|
}
|
|
53961
|
-
}, dV = /* @__PURE__ */ rt(uV, [["__scopeId", "data-v-
|
|
53959
|
+
}, dV = /* @__PURE__ */ rt(uV, [["__scopeId", "data-v-9015cc8f"]]), fV = {
|
|
53962
53960
|
__name: "code-wrapper",
|
|
53963
53961
|
props: fn,
|
|
53964
53962
|
setup(t) {
|
|
@@ -53976,6 +53974,7 @@ const GU = { class: "smart-button-content" }, jU = { class: "smart-button-text"
|
|
|
53976
53974
|
}, 8, ["class", "data-smart-id"]));
|
|
53977
53975
|
}
|
|
53978
53976
|
}, hV = /* @__PURE__ */ rt(fV, [["__scopeId", "data-v-c9d475ce"]]), { options: pV } = ve(), mV = Uk(Mk), gV = rz.extend({
|
|
53977
|
+
isInitialized: !1,
|
|
53979
53978
|
isolating: !0,
|
|
53980
53979
|
addAttributes() {
|
|
53981
53980
|
var t;
|
|
@@ -54010,50 +54009,60 @@ const GU = { class: "smart-button-content" }, jU = { class: "smart-button-text"
|
|
|
54010
54009
|
var t;
|
|
54011
54010
|
return kn((t = pV.value.render.codeBlock) != null && t.view ? hV : dV);
|
|
54012
54011
|
},
|
|
54012
|
+
addKeyboardShortcuts() {
|
|
54013
|
+
var t;
|
|
54014
|
+
return {
|
|
54015
|
+
...(t = this.parent) == null ? void 0 : t.call(this),
|
|
54016
|
+
Backspace: () => {
|
|
54017
|
+
const { empty: e, $anchor: n } = this.editor.state.selection, r = n.pos === 1;
|
|
54018
|
+
return !e || n.parent.type.name !== this.name ? !1 : !!(r || !n.parent.textContent.length);
|
|
54019
|
+
}
|
|
54020
|
+
};
|
|
54021
|
+
},
|
|
54013
54022
|
addProseMirrorPlugins() {
|
|
54014
54023
|
var t;
|
|
54015
54024
|
return [
|
|
54016
54025
|
...(t = this.parent) == null ? void 0 : t.call(this),
|
|
54017
54026
|
new mt({
|
|
54018
|
-
key: new
|
|
54019
|
-
|
|
54020
|
-
|
|
54021
|
-
|
|
54022
|
-
|
|
54023
|
-
|
|
54024
|
-
|
|
54025
|
-
|
|
54026
|
-
|
|
54027
|
-
|
|
54028
|
-
|
|
54029
|
-
|
|
54030
|
-
|
|
54031
|
-
|
|
54032
|
-
|
|
54033
|
-
|
|
54034
|
-
|
|
54035
|
-
|
|
54036
|
-
|
|
54037
|
-
|
|
54038
|
-
|
|
54039
|
-
|
|
54040
|
-
|
|
54041
|
-
|
|
54027
|
+
key: new _t("codeBlockInit"),
|
|
54028
|
+
appendTransaction: (e, n, r) => {
|
|
54029
|
+
if (this.isInitialized)
|
|
54030
|
+
return null;
|
|
54031
|
+
const i = [];
|
|
54032
|
+
if (r.doc.descendants((s, a) => {
|
|
54033
|
+
if (s.type.name === "codeBlock" && s.attrs.code && s.content.size === 0) {
|
|
54034
|
+
const l = s.type.schema.text(s.attrs.code);
|
|
54035
|
+
i.push({
|
|
54036
|
+
pos: a + 1,
|
|
54037
|
+
// pos + 1 是 codeBlock 内部的起始位置
|
|
54038
|
+
content: l
|
|
54039
|
+
});
|
|
54040
|
+
}
|
|
54041
|
+
}), i.length === 0)
|
|
54042
|
+
return null;
|
|
54043
|
+
this.isInitialized = !0;
|
|
54044
|
+
const o = r.tr;
|
|
54045
|
+
return i.sort((s, a) => a.pos - s.pos), i.forEach((s) => {
|
|
54046
|
+
o.insert(s.pos, s.content);
|
|
54047
|
+
}), o;
|
|
54048
|
+
}
|
|
54049
|
+
}),
|
|
54050
|
+
new mt({
|
|
54051
|
+
key: new _t("codeBlockSync"),
|
|
54042
54052
|
appendTransaction: (e, n, r) => {
|
|
54043
|
-
|
|
54053
|
+
const i = r.tr;
|
|
54054
|
+
let o = !1;
|
|
54044
54055
|
return r.doc.descendants((s, a) => {
|
|
54045
|
-
if (s.type.name !== "codeBlock")
|
|
54056
|
+
if (s.type.name !== "codeBlock")
|
|
54057
|
+
return;
|
|
54046
54058
|
const l = s.textContent;
|
|
54047
|
-
if (s.attrs.code
|
|
54048
|
-
|
|
54049
|
-
|
|
54050
|
-
...s.attrs
|
|
54051
|
-
}), o = !0;
|
|
54052
|
-
}
|
|
54053
|
-
s.attrs.code !== l && (i = i.setNodeMarkup(a, void 0, {
|
|
54059
|
+
if (s.attrs.code === l)
|
|
54060
|
+
return;
|
|
54061
|
+
const c = {
|
|
54054
54062
|
...s.attrs,
|
|
54055
54063
|
code: l
|
|
54056
|
-
}
|
|
54064
|
+
};
|
|
54065
|
+
i.setNodeMarkup(a, void 0, c), o = !0;
|
|
54057
54066
|
}), o ? i : null;
|
|
54058
54067
|
}
|
|
54059
54068
|
})
|
|
@@ -54332,7 +54341,7 @@ function SV(t, e, { tr: n, dispatch: r }) {
|
|
|
54332
54341
|
r(n);
|
|
54333
54342
|
}
|
|
54334
54343
|
}
|
|
54335
|
-
const CV = new
|
|
54344
|
+
const CV = new _t(
|
|
54336
54345
|
"searchAndReplacePlugin"
|
|
54337
54346
|
), TV = bt.create({
|
|
54338
54347
|
name: "searchAndReplace",
|
|
@@ -56455,7 +56464,7 @@ function ir(t) {
|
|
|
56455
56464
|
}
|
|
56456
56465
|
return e;
|
|
56457
56466
|
}
|
|
56458
|
-
var Uo = new
|
|
56467
|
+
var Uo = new _t("selectingCells");
|
|
56459
56468
|
function kl(t) {
|
|
56460
56469
|
for (let e = t.depth - 1; e > 0; e--)
|
|
56461
56470
|
if (t.node(e).type.spec.tableRole == "row")
|
|
@@ -56759,7 +56768,7 @@ function GW(t, e, n) {
|
|
|
56759
56768
|
} else r instanceof qe && qW(r) ? o = qe.create(i, r.from) : r instanceof qe && KW(r) && (o = qe.create(i, r.$from.start(), r.$from.end()));
|
|
56760
56769
|
return o && (e || (e = t.tr)).setSelection(o), e;
|
|
56761
56770
|
}
|
|
56762
|
-
var jW = new
|
|
56771
|
+
var jW = new _t("fix-tables");
|
|
56763
56772
|
function dE(t, e, n, r) {
|
|
56764
56773
|
const i = t.childCount, o = e.childCount;
|
|
56765
56774
|
e: for (let s = 0, a = 0; s < o; s++) {
|
|
@@ -57673,7 +57682,7 @@ function Wm(t, e, n, r, i, o) {
|
|
|
57673
57682
|
l ? (n.style.width = a + "px", n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = a + "px");
|
|
57674
57683
|
}
|
|
57675
57684
|
}
|
|
57676
|
-
var $r = new
|
|
57685
|
+
var $r = new _t(
|
|
57677
57686
|
"tableColumnResizing"
|
|
57678
57687
|
);
|
|
57679
57688
|
function wq({
|
|
@@ -58223,7 +58232,7 @@ const Cb = ut.create({
|
|
|
58223
58232
|
storage: t.storage
|
|
58224
58233
|
};
|
|
58225
58234
|
return {
|
|
58226
|
-
tableRole:
|
|
58235
|
+
tableRole: xt(
|
|
58227
58236
|
$e(t, "tableRole", e)
|
|
58228
58237
|
)
|
|
58229
58238
|
};
|
|
@@ -58497,7 +58506,7 @@ const Hq = () => `se-${zq()}`, bE = bt.create({
|
|
|
58497
58506
|
let t = !1, e = null;
|
|
58498
58507
|
return [
|
|
58499
58508
|
new mt({
|
|
58500
|
-
key: new
|
|
58509
|
+
key: new _t("uniqueID"),
|
|
58501
58510
|
appendTransaction: (n, r, i) => {
|
|
58502
58511
|
var h, p;
|
|
58503
58512
|
const o = n.some((m) => m.docChanged) && !r.doc.eq(i.doc), s = (p = (h = this.options).filterTransaction) == null ? void 0 : p.call(h, n), a = n.some((m) => m.getMeta("y-sync$"));
|
|
@@ -66846,8 +66855,8 @@ const aY = () => {
|
|
|
66846
66855
|
remove: t.length - n - r,
|
|
66847
66856
|
insert: e.slice(n, e.length - r)
|
|
66848
66857
|
};
|
|
66849
|
-
}, dY = uY, _n = new
|
|
66850
|
-
new
|
|
66858
|
+
}, dY = uY, _n = new _t("y-sync"), bo = new _t("y-undo");
|
|
66859
|
+
new _t("yjs-cursor");
|
|
66851
66860
|
const Fi = (t, e) => t >>> e | t << 32 - e, fY = (t) => Fi(t, 2) ^ Fi(t, 13) ^ Fi(t, 22), hY = (t) => Fi(t, 6) ^ Fi(t, 11) ^ Fi(t, 25), pY = (t) => Fi(t, 7) ^ Fi(t, 18) ^ t >>> 3, mY = (t) => Fi(t, 17) ^ Fi(t, 19) ^ t >>> 10, gY = new Uint32Array([
|
|
66852
66861
|
1116352408,
|
|
66853
66862
|
1899447441,
|
|
@@ -67892,7 +67901,7 @@ const BY = (t) => {
|
|
|
67892
67901
|
n,
|
|
67893
67902
|
// Only add the filterInvalidContent plugin if content checking is enabled
|
|
67894
67903
|
this.editor.options.enableContentCheck && new mt({
|
|
67895
|
-
key: new
|
|
67904
|
+
key: new _t("filterInvalidContent"),
|
|
67896
67905
|
filterTransaction: () => {
|
|
67897
67906
|
var s;
|
|
67898
67907
|
return this.storage.isDisabled && ((s = e.doc) === null || s === void 0 || s.destroy()), !0;
|
|
@@ -68017,7 +68026,7 @@ bt.create({ name: "nodeRange", addOptions: () => ({ depth: void 0, key: "Mod" })
|
|
|
68017
68026
|
fd(t) && this.editor.view.dom.classList.add("ProseMirror-noderangeselection");
|
|
68018
68027
|
}, addProseMirrorPlugins() {
|
|
68019
68028
|
let t = !1, e = !1;
|
|
68020
|
-
return [new mt({ key: new
|
|
68029
|
+
return [new mt({ key: new _t("nodeRange"), props: { attributes: () => t ? { class: "ProseMirror-noderangeselection" } : { class: "" }, handleDOMEvents: { mousedown: (n, r) => {
|
|
68021
68030
|
const { key: i } = this.options, o = /Mac/.test(navigator.platform), s = !!r.shiftKey, a = !!r.ctrlKey, l = !!r.altKey, c = !!r.metaKey;
|
|
68022
68031
|
return (i == null || i === "Shift" && s || i === "Control" && a || i === "Alt" && l || i === "Meta" && c || i === "Mod" && (o ? c : a)) && (e = !0), !!e && (document.addEventListener("mouseup", () => {
|
|
68023
68032
|
e = !1;
|
|
@@ -68103,7 +68112,7 @@ const F2 = (t, e) => {
|
|
|
68103
68112
|
let n = e;
|
|
68104
68113
|
for (; n && n.parentNode && n.parentNode !== t.dom; ) n = n.parentNode;
|
|
68105
68114
|
return n;
|
|
68106
|
-
}, TS = new
|
|
68115
|
+
}, TS = new _t("dragHandle"), AS = ({ pluginKey: t = TS, element: e, editor: n, tippyOptions: r, onNodeChange: i }) => {
|
|
68107
68116
|
const o = document.createElement("div");
|
|
68108
68117
|
let s, a = null, l = !1, c = null, u = -1;
|
|
68109
68118
|
return e.addEventListener("dragstart", (d) => {
|
|
@@ -68122,7 +68131,7 @@ const F2 = (t, e) => {
|
|
|
68122
68131
|
}, 0);
|
|
68123
68132
|
}), e.addEventListener("dragend", () => {
|
|
68124
68133
|
e && (e.style.pointerEvents = "auto");
|
|
68125
|
-
}), new mt({ key: typeof t == "string" ? new
|
|
68134
|
+
}), new mt({ key: typeof t == "string" ? new _t(t) : t, state: { init: () => ({ locked: !1 }), apply(d, f, h, p) {
|
|
68126
68135
|
const m = d.getMeta("lockDragHandle"), b = d.getMeta("hideDragHandle");
|
|
68127
68136
|
if (m !== void 0 && (l = m), b && a) return a.hide(), l = !1, c = null, u = -1, i == null || i({ editor: n, node: null, pos: -1 }), f;
|
|
68128
68137
|
if (d.docChanged && u !== -1 && e && a) if (UY(d)) {
|
|
@@ -70018,7 +70027,7 @@ class WX {
|
|
|
70018
70027
|
}
|
|
70019
70028
|
function qX(t) {
|
|
70020
70029
|
return new mt({
|
|
70021
|
-
key: typeof t.pluginKey == "string" ? new
|
|
70030
|
+
key: typeof t.pluginKey == "string" ? new _t(t.pluginKey) : t.pluginKey,
|
|
70022
70031
|
view: (e) => new WX({ view: e, ...t })
|
|
70023
70032
|
});
|
|
70024
70033
|
}
|