@cling-se/widget 0.20.0 → 0.21.0
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/CHANGELOG.md +6 -0
- package/dist/{AddClientCallout-p9hY5ma4.js → AddClientCallout-CHUJdq58.js} +4 -4
- package/dist/{AnswerModal-B5HomjlZ.js → AnswerModal-DyapzyIy.js} +679 -681
- package/dist/{AttachmentItem-vWCnfmSy.js → AttachmentItem-2Lbs4CKr.js} +4 -4
- package/dist/{BaseUpload-CpJcJRjy.js → BaseUpload-BdfjBI10.js} +2 -2
- package/dist/{BlockMedia-TjxVQfRI.js → BlockMedia-Cgrrv6PB.js} +1 -1
- package/dist/{CCallout-mg5CHKbW.js → CCallout-CbGaTfon.js} +1 -1
- package/dist/{CCurrencyDropdown-CYsaulJX.js → CCurrencyDropdown-s6YyITN1.js} +3 -3
- package/dist/{CDropdownItem-Cu4bFWtD.js → CDropdownItem-D2_kvXa_.js} +2 -2
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-BeIp8_aU.js → CFormField.vue_vue_type_script_setup_true_lang-CXzY3WCV.js} +2 -2
- package/dist/{CPhoneFormat-GM3CZqub.js → CPhoneFormat-CgWUX4xc.js} +1 -1
- package/dist/{CPhoneInput-DKf8eSyK.js → CPhoneInput-Bb78mU9U.js} +5 -5
- package/dist/{CPriceInput-Be3pub6u.js → CPriceInput-1feoLjqZ.js} +2 -2
- package/dist/{CSelect-CNY0-lsV.js → CSelect-DzVWxFr-.js} +1 -1
- package/dist/{CSkeleton-Bh4UU_9s.js → CSkeleton-Che8iURg.js} +1 -1
- package/dist/{ClientAutocomplete-Dm4wSPnJ.js → ClientAutocomplete-BrRpKW_p.js} +3 -3
- package/dist/{ClientModal-BHmZDhYp.js → ClientModal-BkRusR-p.js} +8 -8
- package/dist/{ColorPicker-CDmqEHnY.js → ColorPicker-Ba0bViV-.js} +1 -1
- package/dist/{CompanyModal-CifLcwwI.js → CompanyModal-RtuWTytD.js} +7 -7
- package/dist/{ContentWrapper-CTNDb0ck.js → ContentWrapper-C92i2rMN.js} +6 -6
- package/dist/{CoverBlockSettings-rLaGxL29.js → CoverBlockSettings-BPqtMkhc.js} +7 -7
- package/dist/{DocAnswer-DdRshw-Z.js → DocAnswer-BPB_pIO9.js} +2 -2
- package/dist/{DocDetails-bSPDS7-8.js → DocDetails-CmuE-pGU.js} +4 -4
- package/dist/{DocForm-Cn6th1oG.js → DocForm-MZuCjmqg.js} +24 -24
- package/dist/{DocFormSend-BVoLYwUB.js → DocFormSend-t1DotUWg.js} +2 -2
- package/dist/{DocLinks-BB5jSGpp.js → DocLinks-raND-RV3.js} +2 -2
- package/dist/{DocModalBase-DVMNHrQ0.js → DocModalBase-BTf5RwrM.js} +1 -1
- package/dist/{DocPrint-4LADFj3b.js → DocPrint-rFQCpls5.js} +1 -1
- package/dist/{DocReceipt-DMsRqm6N.js → DocReceipt-BzEv7iQI.js} +2 -2
- package/dist/{DocSendReminder--sHhq7nq.js → DocSendReminder-B3x4IK4a.js} +1 -1
- package/dist/{DocTextEditor-rxDDkurp.js → DocTextEditor-BnizHe_5.js} +141 -134
- package/dist/{DocTimeline-XcSBcUaQ.js → DocTimeline-DnZj_LnM.js} +2 -2
- package/dist/{DocumentClient-C_ZKPKB5.js → DocumentClient-gm-pzudv.js} +5 -5
- package/dist/{DocumentLayout-B49wHYov.js → DocumentLayout-YxxpHY-E.js} +5 -5
- package/dist/{DocumentLogotype-BuK-fBZa.js → DocumentLogotype-ChGKZ_Qg.js} +4 -4
- package/dist/{DocumentVoided-oOGAvC6V.js → DocumentVoided-HJGhl1_K.js} +1 -1
- package/dist/{EmbedInput-D8YWQ-qB.js → EmbedInput-vxzmm0aK.js} +3 -3
- package/dist/{EmbedSettings-CAMvefuZ.js → EmbedSettings-CzXZc7oD.js} +3 -3
- package/dist/{ErrorCallout-BJyb9nBD.js → ErrorCallout-C51ElTfp.js} +1 -1
- package/dist/{FilePreviewModal-DHyhUuZo.js → FilePreviewModal-BAT5txhb.js} +2 -2
- package/dist/{Flag-Ce5qgf2m.js → Flag-BexeJEGw.js} +1 -1
- package/dist/{HeaderSettings-BMOUeMU8.js → HeaderSettings-DrrnesnI.js} +9 -9
- package/dist/{ImageSelectModal-BJEHD53w.js → ImageSelectModal-CZK9a8V7.js} +3 -3
- package/dist/{ImageUploadWrapper-Bm_fsubV.js → ImageUploadWrapper-DMR97A6K.js} +2 -2
- package/dist/{Index-BFUBReG-.js → Index-B1ay-1P2.js} +3 -3
- package/dist/{Index-BRRXjIQP.js → Index-BEuSlOrT.js} +1 -1
- package/dist/{Index-BIAKEao7.js → Index-BVBYxWuz.js} +4 -4
- package/dist/{Index-C9iZyCtn.js → Index-BYFWrKuq.js} +8 -8
- package/dist/{Index-CxSrhoOz.js → Index-BYIKyMnu.js} +5 -5
- package/dist/{Index-ClT5TAft.js → Index-BiP_vcaf.js} +3 -3
- package/dist/{Index-CghqZnil.js → Index-BiuMBcD2.js} +5 -5
- package/dist/{Index-D_j8z8TJ.js → Index-Blrcegjn.js} +9 -9
- package/dist/{Index-BkaAqWBO.js → Index-BwDu8CJK.js} +1 -1
- package/dist/{Index-C7CgBDIF.js → Index-C9yPo8e-.js} +3 -3
- package/dist/{Index-y1iAAknQ.js → Index-CAMIux1F.js} +641 -598
- package/dist/{Index-CAgPjQtC.js → Index-CKG-y86w.js} +6 -6
- package/dist/{Index-Ba4whr1w.js → Index-CLJS5uIx.js} +2 -2
- package/dist/{Index-B7LFM_9O.js → Index-CN7frBBf.js} +2 -2
- package/dist/{Index-SSS__jy7.js → Index-CPcPhA1k.js} +5 -5
- package/dist/{Index-CQ9351hs.js → Index-CRrUmXai.js} +8 -8
- package/dist/{Index-B6utGn5s.js → Index-CWeJqHrl.js} +1 -1
- package/dist/{Index-B8363PUi.js → Index-Cfw4pakU.js} +4 -4
- package/dist/{Index-CItHDT3v.js → Index-CpsMRxtq.js} +4 -4
- package/dist/{Index-CQvg6N5q.js → Index-D2ZkVyYi.js} +5 -5
- package/dist/{Index-BSDfmC22.js → Index-D4YkmlSS.js} +2 -2
- package/dist/{Index-ClIh2IW1.js → Index-DH_R4un3.js} +258 -240
- package/dist/{Index-Bns741YV.js → Index-DLQ_V1c5.js} +3 -3
- package/dist/{Index-D9NojrLE.js → Index-DPDipy5g.js} +4 -4
- package/dist/{Index-2rJaMFcL.js → Index-D_C0qEB3.js} +4 -4
- package/dist/{Index-EFThQNhh.js → Index-DgtEJqd_.js} +2 -2
- package/dist/{Index-CYbVMO20.js → Index-Dnn1-7F6.js} +4 -4
- package/dist/{Index-CrIL3HJg.js → Index-DsFK6Cph.js} +3 -3
- package/dist/{Index-Do4iuEM8.js → Index-DtSc0ZCn.js} +2 -2
- package/dist/{Index-Bcdw8XVA.js → Index-LQVro5oP.js} +5 -5
- package/dist/{Index-DCR65NzU.js → Index-XArklt7b.js} +7 -7
- package/dist/Index-flxUW9JI.js +4 -0
- package/dist/{Index-CzdPYWAZ.js → Index-kyXImimP.js} +4 -4
- package/dist/{Index-CoSRZBAe.js → Index-qVrrTuqd.js} +6 -6
- package/dist/{Index.vue_vue_type_script_lang-cUDsYudO.js → Index.vue_vue_type_script_lang-CkFt4EE-.js} +2 -2
- package/dist/{InputToggleRow-BFnFE9Oc.js → InputToggleRow-CIJ2tdb5.js} +1 -1
- package/dist/{ManualPopover-DmAP6B_Y.js → ManualPopover-Cm4X4puK.js} +1 -1
- package/dist/{MediaWrapper-C4JfFbde.js → MediaWrapper-_QoV0Yp3.js} +3 -3
- package/dist/{NotBindingText-7Rr1u9v1.js → NotBindingText-DXOuTuRU.js} +2 -2
- package/dist/{PackageGroup-DkdCS2oR.js → PackageGroup-CK5XKMRW.js} +5 -5
- package/dist/{PdfTerms-BdymoJyT.js → PdfTerms-4-xS7sSr.js} +2 -2
- package/dist/{PdfViewer-CXkBa0_g.js → PdfViewer-Kl_mnvI8.js} +2 -2
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-lB3eiXpl.js → PlainHtml.vue_vue_type_script_setup_true_lang-BpWlRPKs.js} +1 -1
- package/dist/{PriceHeader-DXustcav.js → PriceHeader-BntNqVVQ.js} +7 -7
- package/dist/{SearchApi-DuZeNjkY.js → SearchApi-BEUkPklX.js} +1 -1
- package/dist/{SendForm-BrSZ5UeL.js → SendForm-BS73k4AT.js} +8 -8
- package/dist/{Setup-CNSgF7b0.js → Setup-CS03IRqK.js} +1 -1
- package/dist/{SmartList-Rb2o-PbW.js → SmartList-DRocSsgI.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-r7QF2LJS.js → Sortable.vue_vue_type_script_setup_true_lang-Dv_klLzu.js} +1 -1
- package/dist/{TermsSettings-yBfUx-7b.js → TermsSettings-DUJ9LO60.js} +5 -5
- package/dist/{ThemeColorRow-DYUR7TXj.js → ThemeColorRow-Dd_GSct6.js} +3 -3
- package/dist/{ToggleBinding-BEjzG2Xh.js → ToggleBinding-CfQWg9lu.js} +4 -4
- package/dist/{UploadModal-s3ML8quJ.js → UploadModal-CbFASSdJ.js} +2 -2
- package/dist/{VideoPlayerInput-Brw0_mfP.js → VideoPlayerInput-DTlqRKfe.js} +4 -4
- package/dist/{VideoPlayerSettings-aNVhnuCo.js → VideoPlayerSettings-Dzjf2pR-.js} +2 -2
- package/dist/{VideoSelectModal-BzIXa-FM.js → VideoSelectModal-l13Jzs11.js} +3 -3
- package/dist/{focusDrawerMixin-DHsxgKiI.js → focusDrawerMixin-D3TS6r2P.js} +1 -1
- package/dist/{formDrawerState-BRzcOCYZ.js → formDrawerState-C4a0CyyW.js} +1 -1
- package/dist/fortnoxTheme-BZNI3z8T.js +8 -0
- package/dist/{helpers-5o9UkEF4.js → helpers-z8_6IC7O.js} +1 -1
- package/dist/{index-BTf-KF-1.js → index-4cF-Byrh.js} +6 -8
- package/dist/{index-TdIPOc2f.js → index-BNLATTGI.js} +1 -1
- package/dist/{index-DKJal8iX.js → index-BahcePwR.js} +8 -8
- package/dist/{index-DxQodQ2P.js → index-C3pwuPoh.js} +1 -1
- package/dist/{index-B02B2of8.js → index-DKdgpzG1.js} +3 -3
- package/dist/{index-BXGeWlwY.js → index-GBvEp_9M.js} +1 -1
- package/dist/{index-CE5j0xPs.js → index-bVINFrWw.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.umd.js +151 -151
- package/dist/{main-DKpj1mxJ.js → main-D8veaMd1.js} +9728 -9649
- package/dist/{mapFormMixin-D2ME1W30.js → mapFormMixin-CFpAen9Y.js} +2 -2
- package/dist/{omit-BlWnRm5y.js → omit-D0GRsmN6.js} +1 -1
- package/dist/{publicSenderState-CXApLC0x.js → publicSenderState-eqZv8nqt.js} +1 -1
- package/dist/{splitpanes-CxR9KAOD.js → splitpanes-CMv_BjEq.js} +1 -1
- package/dist/{template-B2jjOkEF.js → template-DZJeLTWP.js} +1 -1
- package/dist/{tippy.esm-C_ureXvQ.js → tippy.esm-DfMqnQub.js} +11 -7
- package/dist/{useTermsModal-DctGKo-3.js → useTermsModal-DcYDBUN3.js} +4 -4
- package/dist/{utils-mwks91R5.js → utils-CuhF9735.js} +1 -1
- package/dist/{validation-HJ33ekhX.js → validation-DSHT8mZg.js} +2 -2
- package/dist/widget.css +1 -1
- package/package.json +2 -2
- package/dist/Index-CvYoh9UK.js +0 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a7 as Xr, A as Qr, a3 as wd, G as na, ak as Zr,
|
|
1
|
+
import { a7 as Xr, A as Qr, a3 as wd, G as na, ak as Zr, cD as Cd, b$ as ra, p as cs, r as Sd, db as ds, dc as Md, M as vd, I as Td, z as Ad, _ as kt, b as Z, c as we, o as D, w as De, j as A, d as z, an as V, f as Ve, F as _e, n as en, R as ia, e as ce, x as G, t as Tt, a4 as oa, u as ji, ai as Ed, c4 as Od, l as sa, al as Nd, aD as us, W as Rd, af as bi, am as Dd, T as hs, $ as Ld } from "./main-D8veaMd1.js";
|
|
2
2
|
import { g as ir } from "./dom-DOcGU3-g.js";
|
|
3
|
-
import { t as la, F as Id, s as Pd, d as fs } from "./tippy.esm-
|
|
4
|
-
import { d as aa } from "./helpers-
|
|
5
|
-
import { C as Bd } from "./ColorPicker-
|
|
6
|
-
import { _ as ca } from "./ManualPopover-
|
|
3
|
+
import { t as la, F as Id, s as Pd, d as fs } from "./tippy.esm-DfMqnQub.js";
|
|
4
|
+
import { d as aa } from "./helpers-z8_6IC7O.js";
|
|
5
|
+
import { C as Bd } from "./ColorPicker-Ba0bViV-.js";
|
|
6
|
+
import { _ as ca } from "./ManualPopover-Cm4X4puK.js";
|
|
7
7
|
import { h as zd } from "./color-HetJPhlA.js";
|
|
8
|
-
import { w as Hd } from "./CDropdownItem-
|
|
8
|
+
import { w as Hd } from "./CDropdownItem-D2_kvXa_.js";
|
|
9
9
|
function re(n) {
|
|
10
10
|
this.content = n;
|
|
11
11
|
}
|
|
@@ -3065,7 +3065,7 @@ class Xt {
|
|
|
3065
3065
|
}
|
|
3066
3066
|
}
|
|
3067
3067
|
const wi = /* @__PURE__ */ Object.create(null);
|
|
3068
|
-
class
|
|
3068
|
+
class he {
|
|
3069
3069
|
/**
|
|
3070
3070
|
Get the step map that represents the changes made by this step,
|
|
3071
3071
|
and which can be used to transform between positions in the old
|
|
@@ -3148,7 +3148,7 @@ function vo(n, e, t) {
|
|
|
3148
3148
|
}
|
|
3149
3149
|
return b.fromArray(r);
|
|
3150
3150
|
}
|
|
3151
|
-
class ct extends
|
|
3151
|
+
class ct extends he {
|
|
3152
3152
|
/**
|
|
3153
3153
|
Create a mark step.
|
|
3154
3154
|
*/
|
|
@@ -3186,8 +3186,8 @@ class ct extends ue {
|
|
|
3186
3186
|
return new ct(t.from, t.to, e.markFromJSON(t.mark));
|
|
3187
3187
|
}
|
|
3188
3188
|
}
|
|
3189
|
-
|
|
3190
|
-
class Fe extends
|
|
3189
|
+
he.jsonID("addMark", ct);
|
|
3190
|
+
class Fe extends he {
|
|
3191
3191
|
/**
|
|
3192
3192
|
Create a mark-removing step.
|
|
3193
3193
|
*/
|
|
@@ -3225,8 +3225,8 @@ class Fe extends ue {
|
|
|
3225
3225
|
return new Fe(t.from, t.to, e.markFromJSON(t.mark));
|
|
3226
3226
|
}
|
|
3227
3227
|
}
|
|
3228
|
-
|
|
3229
|
-
class dt extends
|
|
3228
|
+
he.jsonID("removeMark", Fe);
|
|
3229
|
+
class dt extends he {
|
|
3230
3230
|
/**
|
|
3231
3231
|
Create a node mark step.
|
|
3232
3232
|
*/
|
|
@@ -3269,8 +3269,8 @@ class dt extends ue {
|
|
|
3269
3269
|
return new dt(t.pos, e.markFromJSON(t.mark));
|
|
3270
3270
|
}
|
|
3271
3271
|
}
|
|
3272
|
-
|
|
3273
|
-
class tn extends
|
|
3272
|
+
he.jsonID("addNodeMark", dt);
|
|
3273
|
+
class tn extends he {
|
|
3274
3274
|
/**
|
|
3275
3275
|
Create a mark-removing step.
|
|
3276
3276
|
*/
|
|
@@ -3304,8 +3304,8 @@ class tn extends ue {
|
|
|
3304
3304
|
return new tn(t.pos, e.markFromJSON(t.mark));
|
|
3305
3305
|
}
|
|
3306
3306
|
}
|
|
3307
|
-
|
|
3308
|
-
class ee extends
|
|
3307
|
+
he.jsonID("removeNodeMark", tn);
|
|
3308
|
+
class ee extends he {
|
|
3309
3309
|
/**
|
|
3310
3310
|
The given `slice` should fit the 'gap' between `from` and
|
|
3311
3311
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -3356,8 +3356,8 @@ class ee extends ue {
|
|
|
3356
3356
|
return new ee(t.from, t.to, w.fromJSON(e, t.slice), !!t.structure);
|
|
3357
3357
|
}
|
|
3358
3358
|
}
|
|
3359
|
-
|
|
3360
|
-
class te extends
|
|
3359
|
+
he.jsonID("replace", ee);
|
|
3360
|
+
class te extends he {
|
|
3361
3361
|
/**
|
|
3362
3362
|
Create a replace-around step with the given range and gap.
|
|
3363
3363
|
`insert` should be the point in the slice into which the content
|
|
@@ -3414,7 +3414,7 @@ class te extends ue {
|
|
|
3414
3414
|
return new te(t.from, t.to, t.gapFrom, t.gapTo, w.fromJSON(e, t.slice), t.insert, !!t.structure);
|
|
3415
3415
|
}
|
|
3416
3416
|
}
|
|
3417
|
-
|
|
3417
|
+
he.jsonID("replaceAround", te);
|
|
3418
3418
|
function Gi(n, e, t) {
|
|
3419
3419
|
let r = n.resolve(e), i = t - e, o = r.depth;
|
|
3420
3420
|
for (; i > 0 && o > 0 && r.indexAfter(o) == r.node(o).childCount; )
|
|
@@ -4000,7 +4000,7 @@ function Fa(n, e) {
|
|
|
4000
4000
|
}
|
|
4001
4001
|
return t;
|
|
4002
4002
|
}
|
|
4003
|
-
class Qt extends
|
|
4003
|
+
class Qt extends he {
|
|
4004
4004
|
/**
|
|
4005
4005
|
Construct an attribute step.
|
|
4006
4006
|
*/
|
|
@@ -4037,8 +4037,8 @@ class Qt extends ue {
|
|
|
4037
4037
|
return new Qt(t.pos, t.attr, t.value);
|
|
4038
4038
|
}
|
|
4039
4039
|
}
|
|
4040
|
-
|
|
4041
|
-
class Cn extends
|
|
4040
|
+
he.jsonID("attr", Qt);
|
|
4041
|
+
class Cn extends he {
|
|
4042
4042
|
/**
|
|
4043
4043
|
Construct an attribute step.
|
|
4044
4044
|
*/
|
|
@@ -4071,7 +4071,7 @@ class Cn extends ue {
|
|
|
4071
4071
|
return new Cn(t.attr, t.value);
|
|
4072
4072
|
}
|
|
4073
4073
|
}
|
|
4074
|
-
|
|
4074
|
+
he.jsonID("docAttr", Cn);
|
|
4075
4075
|
let nn = class extends Error {
|
|
4076
4076
|
};
|
|
4077
4077
|
nn = function n(e) {
|
|
@@ -5220,7 +5220,7 @@ function $u(n, e, t) {
|
|
|
5220
5220
|
}
|
|
5221
5221
|
const We = typeof navigator < "u" ? navigator : null, Ps = typeof document < "u" ? document : null, wt = We && We.userAgent || "", Xi = /Edge\/(\d+)/.exec(wt), ja = /MSIE \d/.exec(wt), Qi = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(wt), be = !!(ja || Qi || Xi), pt = ja ? document.documentMode : Qi ? +Qi[1] : Xi ? +Xi[1] : 0, Le = !be && /gecko\/(\d+)/i.test(wt);
|
|
5222
5222
|
Le && +(/Firefox\/(\d+)/.exec(wt) || [0, 0])[1];
|
|
5223
|
-
const Zi = !be && /Chrome\/(\d+)/.exec(wt),
|
|
5223
|
+
const Zi = !be && /Chrome\/(\d+)/.exec(wt), de = !!Zi, qa = Zi ? +Zi[1] : 0, fe = !be && !!We && /Apple Computer/.test(We.vendor), rn = fe && (/Mobile\/\w+/.test(wt) || !!We && We.maxTouchPoints > 2), ve = rn || (We ? /Mac/.test(We.platform) : !1), Fu = We ? /Win/.test(We.platform) : !1, Ne = /Android \d/.test(wt), Ln = !!Ps && "webkitFontSmoothing" in Ps.documentElement.style, Vu = Ln ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
5224
5224
|
function _u(n) {
|
|
5225
5225
|
let e = n.defaultView && n.defaultView.visualViewport;
|
|
5226
5226
|
return e ? {
|
|
@@ -6428,7 +6428,7 @@ class sh {
|
|
|
6428
6428
|
for (; e instanceof zt; )
|
|
6429
6429
|
t = e, e = t.children[t.children.length - 1];
|
|
6430
6430
|
(!e || // Empty textblock
|
|
6431
|
-
!(e instanceof oi) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((fe ||
|
|
6431
|
+
!(e instanceof oi) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((fe || de) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
|
|
6432
6432
|
}
|
|
6433
6433
|
addHackNode(e, t) {
|
|
6434
6434
|
if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
|
|
@@ -6604,7 +6604,7 @@ function rc(n) {
|
|
|
6604
6604
|
function et(n, e = !1) {
|
|
6605
6605
|
let t = n.state.selection;
|
|
6606
6606
|
if (ic(n, t), !!rc(n)) {
|
|
6607
|
-
if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault &&
|
|
6607
|
+
if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && de) {
|
|
6608
6608
|
let r = n.domSelectionRange(), i = n.domObserver.currentSelection;
|
|
6609
6609
|
if (r.anchorNode && i.anchorNode && Bt(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
|
|
6610
6610
|
n.input.mouseDown.delayedSelectionSync = !0, n.domObserver.setCurSelection();
|
|
@@ -6620,7 +6620,7 @@ function et(n, e = !1) {
|
|
|
6620
6620
|
n.domObserver.setCurSelection(), n.domObserver.connectSelection();
|
|
6621
6621
|
}
|
|
6622
6622
|
}
|
|
6623
|
-
const js = fe ||
|
|
6623
|
+
const js = fe || de && qa < 63;
|
|
6624
6624
|
function qs(n, e) {
|
|
6625
6625
|
let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, o = r ? t.childNodes[r - 1] : null;
|
|
6626
6626
|
if (fe && i && i.contentEditable == "false")
|
|
@@ -6848,7 +6848,7 @@ function ro(n, e, t) {
|
|
|
6848
6848
|
}
|
|
6849
6849
|
function Ys(n, e) {
|
|
6850
6850
|
let t = n.state.doc.resolve(e);
|
|
6851
|
-
if (!(
|
|
6851
|
+
if (!(de || Fu) && t.parent.inlineContent) {
|
|
6852
6852
|
let i = n.coordsAtPos(e);
|
|
6853
6853
|
if (e > t.start()) {
|
|
6854
6854
|
let o = n.coordsAtPos(e - 1), s = (o.top + o.bottom) / 2;
|
|
@@ -7101,7 +7101,7 @@ function vh(n) {
|
|
|
7101
7101
|
return t;
|
|
7102
7102
|
}
|
|
7103
7103
|
function Th(n) {
|
|
7104
|
-
let e = n.querySelectorAll(
|
|
7104
|
+
let e = n.querySelectorAll(de ? "span:not([class]):not([style])" : "span.Apple-converted-space");
|
|
7105
7105
|
for (let t = 0; t < e.length; t++) {
|
|
7106
7106
|
let r = e[t];
|
|
7107
7107
|
r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(n.ownerDocument.createTextNode(" "), r);
|
|
@@ -7176,7 +7176,7 @@ function Lh(n, e) {
|
|
|
7176
7176
|
}
|
|
7177
7177
|
me.keydown = (n, e) => {
|
|
7178
7178
|
let t = e;
|
|
7179
|
-
if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !mc(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(Ne &&
|
|
7179
|
+
if (n.input.shiftKey = t.keyCode == 16 || t.shiftKey, !mc(n, t) && (n.input.lastKeyCode = t.keyCode, n.input.lastKeyCodeTime = Date.now(), !(Ne && de && t.keyCode == 13)))
|
|
7180
7180
|
if (t.keyCode != 229 && n.domObserver.forceFlush(), rn && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
|
|
7181
7181
|
let r = Date.now();
|
|
7182
7182
|
n.input.lastIOSEnter = r, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
@@ -7320,7 +7320,7 @@ class Vh {
|
|
|
7320
7320
|
// (hidden) cursor is doesn't change the selection, and
|
|
7321
7321
|
// thus doesn't get a reaction from ProseMirror. This
|
|
7322
7322
|
// works around that.
|
|
7323
|
-
|
|
7323
|
+
de && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Zt(this.view, O.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : ut(this.view, "pointer");
|
|
7324
7324
|
}
|
|
7325
7325
|
move(e) {
|
|
7326
7326
|
this.updateAllowDefault(e), ut(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -7480,7 +7480,7 @@ pe.dragstart = (n, e) => {
|
|
|
7480
7480
|
}
|
|
7481
7481
|
}
|
|
7482
7482
|
let l = (s || n.state.selection).content(), { dom: a, text: c, slice: d } = lc(n, l);
|
|
7483
|
-
(!t.dataTransfer.files.length || !
|
|
7483
|
+
(!t.dataTransfer.files.length || !de || qa > 120) && t.dataTransfer.clearData(), t.dataTransfer.setData(Mn ? "Text" : "text/html", a.innerHTML), t.dataTransfer.effectAllowed = "copyMove", Mn || t.dataTransfer.setData("text/plain", c), n.dragging = new kc(d, !t[xc], s);
|
|
7484
7484
|
};
|
|
7485
7485
|
pe.dragend = (n) => {
|
|
7486
7486
|
let e = n.dragging;
|
|
@@ -7537,7 +7537,7 @@ pe.blur = (n, e) => {
|
|
|
7537
7537
|
n.focused && (n.domObserver.stop(), n.dom.classList.remove("ProseMirror-focused"), n.domObserver.start(), t.relatedTarget && n.dom.contains(t.relatedTarget) && n.domObserver.currentSelection.clear(), n.focused = !1);
|
|
7538
7538
|
};
|
|
7539
7539
|
pe.beforeinput = (n, e) => {
|
|
7540
|
-
if (
|
|
7540
|
+
if (de && Ne && e.inputType == "deleteContentBackward") {
|
|
7541
7541
|
n.domObserver.flushSoon();
|
|
7542
7542
|
let { domChangeCount: r } = n.input;
|
|
7543
7543
|
setTimeout(() => {
|
|
@@ -8256,7 +8256,7 @@ function nf(n, e) {
|
|
|
8256
8256
|
}
|
|
8257
8257
|
function rf(n, e, t) {
|
|
8258
8258
|
let { node: r, fromOffset: i, toOffset: o, from: s, to: l } = n.docView.parseRange(e, t), a = n.domSelectionRange(), c, d = a.anchorNode;
|
|
8259
|
-
if (d && n.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: a.anchorOffset }], ii(a) || c.push({ node: a.focusNode, offset: a.focusOffset })),
|
|
8259
|
+
if (d && n.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: a.anchorOffset }], ii(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), de && n.input.lastKeyCode === 8)
|
|
8260
8260
|
for (let g = o; g > i; g--) {
|
|
8261
8261
|
let y = r.childNodes[g - 1], k = y.pmViewDesc;
|
|
8262
8262
|
if (y.nodeName == "BR" && !k) {
|
|
@@ -8303,7 +8303,7 @@ function lf(n, e, t, r, i) {
|
|
|
8303
8303
|
if (n.input.compositionPendingChanges = 0, e < 0) {
|
|
8304
8304
|
let v = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, j = Ro(n, v);
|
|
8305
8305
|
if (j && !n.state.selection.eq(j)) {
|
|
8306
|
-
if (
|
|
8306
|
+
if (de && Ne && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (St) => St(n, Mt(13, "Enter"))))
|
|
8307
8307
|
return;
|
|
8308
8308
|
let ge = n.state.tr.setSelection(j);
|
|
8309
8309
|
v == "pointer" ? ge.setMeta("pointer", !0) : v == "key" && ge.scrollIntoView(), o && ge.setMeta("composition", o), n.dispatch(ge);
|
|
@@ -8339,10 +8339,10 @@ function lf(n, e, t, r, i) {
|
|
|
8339
8339
|
return;
|
|
8340
8340
|
}
|
|
8341
8341
|
if (n.state.selection.anchor > p.start && cf(d, p.start, p.endA, m, g) && n.someProp("handleKeyDown", (v) => v(n, Mt(8, "Backspace")))) {
|
|
8342
|
-
Ne &&
|
|
8342
|
+
Ne && de && n.domObserver.suppressSelectionUpdates();
|
|
8343
8343
|
return;
|
|
8344
8344
|
}
|
|
8345
|
-
|
|
8345
|
+
de && Ne && p.endB == p.start && (n.input.lastAndroidDelete = Date.now()), Ne && !k && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
|
|
8346
8346
|
n.someProp("handleKeyDown", function(v) {
|
|
8347
8347
|
return v(n, Mt(13, "Enter"));
|
|
8348
8348
|
});
|
|
@@ -8365,7 +8365,7 @@ function lf(n, e, t, r, i) {
|
|
|
8365
8365
|
}
|
|
8366
8366
|
if (S || (S = n.state.tr.replace(N, R, c.doc.slice(p.start - c.from, p.endB - c.from))), c.sel) {
|
|
8367
8367
|
let v = sl(n, S.doc, c.sel);
|
|
8368
|
-
v && !(
|
|
8368
|
+
v && !(de && Ne && n.composing && v.empty && (p.start != p.endB || n.input.lastAndroidDelete < Date.now() - 100) && (v.head == N || v.head == S.mapping.map(R) - 1) || be && v.empty && v.head == N) && S.setSelection(v);
|
|
8369
8369
|
}
|
|
8370
8370
|
P && S.ensureMarks(P), o && S.setMeta("composition", o), n.dispatch(S.scrollIntoView());
|
|
8371
8371
|
}
|
|
@@ -8519,9 +8519,9 @@ class uf {
|
|
|
8519
8519
|
let h = d == "preserve" && s && this.dom.style.overflowAnchor == null && ju(this);
|
|
8520
8520
|
if (s) {
|
|
8521
8521
|
this.domObserver.stop();
|
|
8522
|
-
let f = u && (be ||
|
|
8522
|
+
let f = u && (be || de) && !this.composing && !i.selection.empty && !e.selection.empty && hf(i.selection, e.selection);
|
|
8523
8523
|
if (u) {
|
|
8524
|
-
let p =
|
|
8524
|
+
let p = de ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
8525
8525
|
this.composing && (this.input.compositionNode = Wh(this)), (o || !this.docView.update(e.doc, c, a, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = _s(e.doc, c, a, this.dom, this)), p && !this.trackWrites && (f = !0);
|
|
8526
8526
|
}
|
|
8527
8527
|
f || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && ph(this)) ? et(this, f) : (ic(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
@@ -9582,7 +9582,7 @@ function ne(n, e) {
|
|
|
9582
9582
|
}
|
|
9583
9583
|
return n;
|
|
9584
9584
|
}
|
|
9585
|
-
function
|
|
9585
|
+
function H(...n) {
|
|
9586
9586
|
return n.filter((e) => !!e).reduce((e, t) => {
|
|
9587
9587
|
const r = { ...e };
|
|
9588
9588
|
return Object.entries(t).forEach(([i, o]) => {
|
|
@@ -9610,7 +9610,7 @@ function z(...n) {
|
|
|
9610
9610
|
function so(n, e) {
|
|
9611
9611
|
return e.filter((t) => t.type === n.type.name).filter((t) => t.attribute.rendered).map((t) => t.attribute.renderHTML ? t.attribute.renderHTML(n.attrs) || {} : {
|
|
9612
9612
|
[t.name]: n.attrs[t.name]
|
|
9613
|
-
}).reduce((t, r) =>
|
|
9613
|
+
}).reduce((t, r) => H(t, r), {});
|
|
9614
9614
|
}
|
|
9615
9615
|
function zc(n) {
|
|
9616
9616
|
return typeof n == "function";
|
|
@@ -12231,7 +12231,7 @@ const Pm = Oe.create({
|
|
|
12231
12231
|
];
|
|
12232
12232
|
},
|
|
12233
12233
|
renderHTML({ HTMLAttributes: n }) {
|
|
12234
|
-
return ["span",
|
|
12234
|
+
return ["span", H(this.options.HTMLAttributes, n), 0];
|
|
12235
12235
|
},
|
|
12236
12236
|
addCommands() {
|
|
12237
12237
|
return {
|
|
@@ -12301,7 +12301,7 @@ const Pm = Oe.create({
|
|
|
12301
12301
|
];
|
|
12302
12302
|
},
|
|
12303
12303
|
renderHTML({ HTMLAttributes: n }) {
|
|
12304
|
-
return ["mark",
|
|
12304
|
+
return ["mark", H(this.options.HTMLAttributes, n), 0];
|
|
12305
12305
|
},
|
|
12306
12306
|
addCommands() {
|
|
12307
12307
|
return {
|
|
@@ -13201,9 +13201,9 @@ const cg = Oe.create({
|
|
|
13201
13201
|
defaultValidate: (e) => !!un(e, this.options.protocols),
|
|
13202
13202
|
protocols: this.options.protocols,
|
|
13203
13203
|
defaultProtocol: this.options.defaultProtocol
|
|
13204
|
-
}) ? ["a",
|
|
13204
|
+
}) ? ["a", H(this.options.HTMLAttributes, n), 0] : [
|
|
13205
13205
|
"a",
|
|
13206
|
-
|
|
13206
|
+
H(this.options.HTMLAttributes, { ...n, href: "" }),
|
|
13207
13207
|
0
|
|
13208
13208
|
];
|
|
13209
13209
|
},
|
|
@@ -13280,7 +13280,7 @@ const cg = Oe.create({
|
|
|
13280
13280
|
];
|
|
13281
13281
|
},
|
|
13282
13282
|
renderHTML({ HTMLAttributes: n }) {
|
|
13283
|
-
return ["p",
|
|
13283
|
+
return ["p", H(this.options.HTMLAttributes, n), 0];
|
|
13284
13284
|
},
|
|
13285
13285
|
addCommands() {
|
|
13286
13286
|
return {
|
|
@@ -13370,7 +13370,7 @@ const cg = Oe.create({
|
|
|
13370
13370
|
];
|
|
13371
13371
|
},
|
|
13372
13372
|
renderHTML({ HTMLAttributes: n }) {
|
|
13373
|
-
return ["td",
|
|
13373
|
+
return ["td", H(this.options.HTMLAttributes, n), 0];
|
|
13374
13374
|
}
|
|
13375
13375
|
}), hg = Q.create({
|
|
13376
13376
|
name: "tableHeader",
|
|
@@ -13405,7 +13405,7 @@ const cg = Oe.create({
|
|
|
13405
13405
|
];
|
|
13406
13406
|
},
|
|
13407
13407
|
renderHTML({ HTMLAttributes: n }) {
|
|
13408
|
-
return ["th",
|
|
13408
|
+
return ["th", H(this.options.HTMLAttributes, n), 0];
|
|
13409
13409
|
}
|
|
13410
13410
|
}), fg = Q.create({
|
|
13411
13411
|
name: "tableRow",
|
|
@@ -13422,7 +13422,7 @@ const cg = Oe.create({
|
|
|
13422
13422
|
];
|
|
13423
13423
|
},
|
|
13424
13424
|
renderHTML({ HTMLAttributes: n }) {
|
|
13425
|
-
return ["tr",
|
|
13425
|
+
return ["tr", H(this.options.HTMLAttributes, n), 0];
|
|
13426
13426
|
}
|
|
13427
13427
|
}), pg = X.create({
|
|
13428
13428
|
name: "textAlign",
|
|
@@ -13484,7 +13484,7 @@ const cg = Oe.create({
|
|
|
13484
13484
|
];
|
|
13485
13485
|
},
|
|
13486
13486
|
renderHTML({ HTMLAttributes: n }) {
|
|
13487
|
-
return ["u",
|
|
13487
|
+
return ["u", H(this.options.HTMLAttributes, n), 0];
|
|
13488
13488
|
},
|
|
13489
13489
|
addCommands() {
|
|
13490
13490
|
return {
|
|
@@ -13515,7 +13515,7 @@ const cg = Oe.create({
|
|
|
13515
13515
|
];
|
|
13516
13516
|
},
|
|
13517
13517
|
renderHTML({ HTMLAttributes: n }) {
|
|
13518
|
-
return ["blockquote",
|
|
13518
|
+
return ["blockquote", H(this.options.HTMLAttributes, n), 0];
|
|
13519
13519
|
},
|
|
13520
13520
|
addCommands() {
|
|
13521
13521
|
return {
|
|
@@ -13564,7 +13564,7 @@ const cg = Oe.create({
|
|
|
13564
13564
|
];
|
|
13565
13565
|
},
|
|
13566
13566
|
renderHTML({ HTMLAttributes: n }) {
|
|
13567
|
-
return ["strong",
|
|
13567
|
+
return ["strong", H(this.options.HTMLAttributes, n), 0];
|
|
13568
13568
|
},
|
|
13569
13569
|
addCommands() {
|
|
13570
13570
|
return {
|
|
@@ -13623,7 +13623,7 @@ const cg = Oe.create({
|
|
|
13623
13623
|
];
|
|
13624
13624
|
},
|
|
13625
13625
|
renderHTML({ HTMLAttributes: n }) {
|
|
13626
|
-
return ["ul",
|
|
13626
|
+
return ["ul", H(this.options.HTMLAttributes, n), 0];
|
|
13627
13627
|
},
|
|
13628
13628
|
addCommands() {
|
|
13629
13629
|
return {
|
|
@@ -13667,7 +13667,7 @@ const cg = Oe.create({
|
|
|
13667
13667
|
];
|
|
13668
13668
|
},
|
|
13669
13669
|
renderHTML({ HTMLAttributes: n }) {
|
|
13670
|
-
return ["code",
|
|
13670
|
+
return ["code", H(this.options.HTMLAttributes, n), 0];
|
|
13671
13671
|
},
|
|
13672
13672
|
addCommands() {
|
|
13673
13673
|
return {
|
|
@@ -13737,7 +13737,7 @@ const cg = Oe.create({
|
|
|
13737
13737
|
renderHTML({ node: n, HTMLAttributes: e }) {
|
|
13738
13738
|
return [
|
|
13739
13739
|
"pre",
|
|
13740
|
-
|
|
13740
|
+
H(this.options.HTMLAttributes, e),
|
|
13741
13741
|
[
|
|
13742
13742
|
"code",
|
|
13743
13743
|
{
|
|
@@ -14152,7 +14152,7 @@ const _g = X.create({
|
|
|
14152
14152
|
];
|
|
14153
14153
|
},
|
|
14154
14154
|
renderHTML({ HTMLAttributes: n }) {
|
|
14155
|
-
return ["br",
|
|
14155
|
+
return ["br", H(this.options.HTMLAttributes, n)];
|
|
14156
14156
|
},
|
|
14157
14157
|
renderText() {
|
|
14158
14158
|
return `
|
|
@@ -14210,7 +14210,7 @@ const _g = X.create({
|
|
|
14210
14210
|
}));
|
|
14211
14211
|
},
|
|
14212
14212
|
renderHTML({ node: n, HTMLAttributes: e }) {
|
|
14213
|
-
return [`h${this.options.levels.includes(n.attrs.level) ? n.attrs.level : this.options.levels[0]}`,
|
|
14213
|
+
return [`h${this.options.levels.includes(n.attrs.level) ? n.attrs.level : this.options.levels[0]}`, H(this.options.HTMLAttributes, e), 0];
|
|
14214
14214
|
},
|
|
14215
14215
|
addCommands() {
|
|
14216
14216
|
return {
|
|
@@ -14611,7 +14611,7 @@ const od = id(!1, !0), sd = id(!0, !0), e0 = X.create({
|
|
|
14611
14611
|
return [{ tag: "hr" }];
|
|
14612
14612
|
},
|
|
14613
14613
|
renderHTML({ HTMLAttributes: n }) {
|
|
14614
|
-
return ["hr",
|
|
14614
|
+
return ["hr", H(this.options.HTMLAttributes, n)];
|
|
14615
14615
|
},
|
|
14616
14616
|
addCommands() {
|
|
14617
14617
|
return {
|
|
@@ -14675,7 +14675,7 @@ const od = id(!1, !0), sd = id(!0, !0), e0 = X.create({
|
|
|
14675
14675
|
];
|
|
14676
14676
|
},
|
|
14677
14677
|
renderHTML({ HTMLAttributes: n }) {
|
|
14678
|
-
return ["em",
|
|
14678
|
+
return ["em", H(this.options.HTMLAttributes, n), 0];
|
|
14679
14679
|
},
|
|
14680
14680
|
addCommands() {
|
|
14681
14681
|
return {
|
|
@@ -14733,7 +14733,7 @@ const od = id(!1, !0), sd = id(!0, !0), e0 = X.create({
|
|
|
14733
14733
|
];
|
|
14734
14734
|
},
|
|
14735
14735
|
renderHTML({ HTMLAttributes: n }) {
|
|
14736
|
-
return ["li",
|
|
14736
|
+
return ["li", H(this.options.HTMLAttributes, n), 0];
|
|
14737
14737
|
},
|
|
14738
14738
|
addKeyboardShortcuts() {
|
|
14739
14739
|
return {
|
|
@@ -14777,7 +14777,7 @@ const od = id(!1, !0), sd = id(!0, !0), e0 = X.create({
|
|
|
14777
14777
|
},
|
|
14778
14778
|
renderHTML({ HTMLAttributes: n }) {
|
|
14779
14779
|
const { start: e, ...t } = n;
|
|
14780
|
-
return e === 1 ? ["ol",
|
|
14780
|
+
return e === 1 ? ["ol", H(this.options.HTMLAttributes, t), 0] : ["ol", H(this.options.HTMLAttributes, n), 0];
|
|
14781
14781
|
},
|
|
14782
14782
|
addCommands() {
|
|
14783
14783
|
return {
|
|
@@ -14834,7 +14834,7 @@ const od = id(!1, !0), sd = id(!0, !0), e0 = X.create({
|
|
|
14834
14834
|
];
|
|
14835
14835
|
},
|
|
14836
14836
|
renderHTML({ HTMLAttributes: n }) {
|
|
14837
|
-
return ["s",
|
|
14837
|
+
return ["s", H(this.options.HTMLAttributes, n), 0];
|
|
14838
14838
|
},
|
|
14839
14839
|
addCommands() {
|
|
14840
14840
|
return {
|
|
@@ -15398,15 +15398,15 @@ function E0(n, e, t, r, i, o) {
|
|
|
15398
15398
|
onClick: e[4] || (e[4] = V(() => {
|
|
15399
15399
|
}, ["stop"]))
|
|
15400
15400
|
}, [
|
|
15401
|
-
t.showPicker ? (D(),
|
|
15401
|
+
t.showPicker ? (D(), z("div", T0, [
|
|
15402
15402
|
Ve(s, {
|
|
15403
15403
|
ref: "colorPicker",
|
|
15404
15404
|
"model-value": i.internalColor,
|
|
15405
15405
|
class: "!p-0 !shadow-none",
|
|
15406
15406
|
"onUpdate:modelValue": e[0] || (e[0] = (c) => o.setColor(c))
|
|
15407
15407
|
}, null, 8, ["model-value"])
|
|
15408
|
-
])) : (D(),
|
|
15409
|
-
(D(),
|
|
15408
|
+
])) : (D(), z(_e, { key: 1 }, [
|
|
15409
|
+
(D(), z(_e, null, en([
|
|
15410
15410
|
"auto",
|
|
15411
15411
|
"#0a5cff",
|
|
15412
15412
|
"#3022f1",
|
|
@@ -15438,7 +15438,7 @@ function E0(n, e, t, r, i, o) {
|
|
|
15438
15438
|
size: "14",
|
|
15439
15439
|
fill: "hsl(0, 0%, 30%)",
|
|
15440
15440
|
stroke: "hsl(0, 0%, 30%)"
|
|
15441
|
-
})) :
|
|
15441
|
+
})) : ce("", !0)
|
|
15442
15442
|
], 16, A0)), 64)),
|
|
15443
15443
|
A("div", {
|
|
15444
15444
|
class: "color-option-button",
|
|
@@ -15517,7 +15517,7 @@ function E0(n, e, t, r, i, o) {
|
|
|
15517
15517
|
"data-texteditor-tooltip": n.$t("_common:color").capitalize(),
|
|
15518
15518
|
class: "menu-button"
|
|
15519
15519
|
}, [
|
|
15520
|
-
(D(),
|
|
15520
|
+
(D(), z("svg", {
|
|
15521
15521
|
fill: t.editor.getAttributes("textStyle").color,
|
|
15522
15522
|
viewBox: "0 0 24 24",
|
|
15523
15523
|
width: "20",
|
|
@@ -15586,7 +15586,7 @@ function I0(n, e, t, r, i, o) {
|
|
|
15586
15586
|
}, "texteditor-tooltip-dropdown-item"]),
|
|
15587
15587
|
onClick: e[0] || (e[0] = (a) => t.editor.chain().focus().setParagraph({ typography: "title" }).run())
|
|
15588
15588
|
}, Tt(n.$t("title")), 3),
|
|
15589
|
-
(D(),
|
|
15589
|
+
(D(), z(_e, null, en([1, 2, 3], (a) => A("div", {
|
|
15590
15590
|
key: `h${a}`,
|
|
15591
15591
|
class: G([{ "is-active": t.editor.isActive("heading", { level: a }) }, "texteditor-tooltip-dropdown-item"]),
|
|
15592
15592
|
onClick: (c) => t.editor.chain().focus().setHeading({ level: a }).run()
|
|
@@ -15597,11 +15597,11 @@ function I0(n, e, t, r, i, o) {
|
|
|
15597
15597
|
}, "texteditor-tooltip-dropdown-item"]),
|
|
15598
15598
|
onClick: e[1] || (e[1] = (a) => t.editor.chain().focus().setParagraph({ typography: null }).run())
|
|
15599
15599
|
}, Tt(n.$t("paragraph")), 3),
|
|
15600
|
-
t.editor.commands.toggleBlockquote ? (D(),
|
|
15600
|
+
t.editor.commands.toggleBlockquote ? (D(), z("div", {
|
|
15601
15601
|
key: 0,
|
|
15602
15602
|
class: G([{ "is-active": t.editor.isActive("blockquote") }, "texteditor-tooltip-dropdown-item"]),
|
|
15603
15603
|
onClick: e[2] || (e[2] = (a) => t.editor.chain().focus().toggleBlockquote().run())
|
|
15604
|
-
}, Tt(n.$t("blockquote")), 3)) :
|
|
15604
|
+
}, Tt(n.$t("blockquote")), 3)) : ce("", !0)
|
|
15605
15605
|
], 8, D0)
|
|
15606
15606
|
]),
|
|
15607
15607
|
default: De(() => [
|
|
@@ -15708,7 +15708,7 @@ function K0(n, e, t, r, i, o) {
|
|
|
15708
15708
|
}
|
|
15709
15709
|
], "menu"])
|
|
15710
15710
|
}, [
|
|
15711
|
-
i.linkMenuIsActive ? ji((D(),
|
|
15711
|
+
i.linkMenuIsActive ? ji((D(), z("form", {
|
|
15712
15712
|
key: 0,
|
|
15713
15713
|
class: "menu-form",
|
|
15714
15714
|
onSubmit: e[3] || (e[3] = V((u) => o.setLink(i.linkUrl), ["prevent"]))
|
|
@@ -15734,9 +15734,9 @@ function K0(n, e, t, r, i, o) {
|
|
|
15734
15734
|
], 32)
|
|
15735
15735
|
], 32)), [
|
|
15736
15736
|
[d, () => i.linkMenuIsActive = !1]
|
|
15737
|
-
]) : (D(),
|
|
15737
|
+
]) : (D(), z("div", z0, [
|
|
15738
15738
|
Ve(l, { editor: t.editor }, null, 8, ["editor"]),
|
|
15739
|
-
t.editor.commands.toggleBold ? (D(),
|
|
15739
|
+
t.editor.commands.toggleBold ? (D(), z("button", {
|
|
15740
15740
|
key: 0,
|
|
15741
15741
|
"data-texteditor-tooltip": n.$t("bold"),
|
|
15742
15742
|
class: G([{ "is-active": t.editor.isActive("bold") }, "menu-button"]),
|
|
@@ -15753,8 +15753,8 @@ function K0(n, e, t, r, i, o) {
|
|
|
15753
15753
|
}, [
|
|
15754
15754
|
A("path", { d: "M 14 5 A 4.0004 4.0004 0 0 0 10 9 L 10 39 A 4.0004 4.0004 0 0 0 14 43 L 29 43 C 35.580064 43 41 37.580064 41 31 C 41 27.155249 39.030751 23.864926 36.179688 21.662109 C 37.230561 19.978585 38 18.110372 38 16 C 38 9.972248 33.027752 5 27 5 L 14 5 z M 18 13 L 27 13 C 28.704248 13 30 14.295752 30 16 C 30 17.704248 28.704248 19 27 19 L 18 19 L 18 13 z M 18 27 L 27 27 L 29 27 C 31.255936 27 33 28.744064 33 31 C 33 33.255936 31.255936 35 29 35 L 18 35 L 18 27 z" })
|
|
15755
15755
|
], -1)
|
|
15756
|
-
]), 42, H0)) :
|
|
15757
|
-
t.editor.commands.toggleItalic ? (D(),
|
|
15756
|
+
]), 42, H0)) : ce("", !0),
|
|
15757
|
+
t.editor.commands.toggleItalic ? (D(), z("button", {
|
|
15758
15758
|
key: 1,
|
|
15759
15759
|
"data-texteditor-tooltip": n.$t("italic"),
|
|
15760
15760
|
class: G([{ "is-active": t.editor.isActive("italic") }, "menu-button"]),
|
|
@@ -15766,7 +15766,7 @@ function K0(n, e, t, r, i, o) {
|
|
|
15766
15766
|
type: "editorItalic",
|
|
15767
15767
|
size: "20"
|
|
15768
15768
|
})
|
|
15769
|
-
], 42, $0)) :
|
|
15769
|
+
], 42, $0)) : ce("", !0),
|
|
15770
15770
|
A("button", {
|
|
15771
15771
|
"data-texteditor-tooltip": n.$t("underline"),
|
|
15772
15772
|
class: G([{ "is-active": t.editor.isActive("underline") }, "menu-button"]),
|
|
@@ -15802,7 +15802,7 @@ function K0(n, e, t, r, i, o) {
|
|
|
15802
15802
|
], -1)
|
|
15803
15803
|
]), 42, V0),
|
|
15804
15804
|
e[28] || (e[28] = A("div", { class: "menu-divider" }, null, -1)),
|
|
15805
|
-
t.editor.commands.toggleHighlight ? (D(),
|
|
15805
|
+
t.editor.commands.toggleHighlight ? (D(), z("button", {
|
|
15806
15806
|
key: 2,
|
|
15807
15807
|
class: G([{ "is-active": t.editor.isActive("highlight") }, "menu-button"]),
|
|
15808
15808
|
"data-texteditor-tooltip": n.$t("highlight"),
|
|
@@ -15819,15 +15819,15 @@ function K0(n, e, t, r, i, o) {
|
|
|
15819
15819
|
}, [
|
|
15820
15820
|
A("path", { d: "M 7.4765625 4.9785156 A 1.50015 1.50015 0 0 0 6 6.5 L 6 15.5 C 6 17.790682 7.7748091 19.635632 10 19.898438 L 10 24.5 C 10 26.967501 12.032499 29 14.5 29 L 15 29 L 15 43.5 C 15 44.013 15.261359 44.489625 15.693359 44.765625 C 15.938359 44.920625 16.219 45 16.5 45 C 16.716 45 16.933766 44.953375 17.134766 44.859375 L 30.402344 38.667969 C 31.980344 37.932969 33 36.330844 33 34.589844 L 33 29 L 33.5 29 C 35.967501 29 38 26.967501 38 24.5 L 38 19.898438 C 40.225191 19.635632 42 17.790682 42 15.5 L 42 6.5 A 1.50015 1.50015 0 1 0 39 6.5 L 39 15.5 C 39 16.346499 38.346499 17 37.5 17 L 36.746094 17 A 1.50015 1.50015 0 0 0 36.259766 17 L 11.746094 17 A 1.50015 1.50015 0 0 0 11.259766 17 L 10.5 17 C 9.6535009 17 9 16.346499 9 15.5 L 9 6.5 A 1.50015 1.50015 0 0 0 7.4765625 4.9785156 z M 13 20 L 35 20 L 35 24.5 C 35 25.346499 34.346499 26 33.5 26 L 14.5 26 C 13.653501 26 13 25.346499 13 24.5 L 13 20 z" })
|
|
15821
15821
|
], -1)
|
|
15822
|
-
]), 42, _0)) :
|
|
15822
|
+
]), 42, _0)) : ce("", !0),
|
|
15823
15823
|
t.editor.commands.setColor ? (D(), we(a, {
|
|
15824
15824
|
key: 3,
|
|
15825
15825
|
"show-picker": i.showColorPicker,
|
|
15826
15826
|
"onUpdate:showPicker": e[14] || (e[14] = (u) => i.showColorPicker = u),
|
|
15827
15827
|
editor: t.editor
|
|
15828
|
-
}, null, 8, ["show-picker", "editor"])) :
|
|
15828
|
+
}, null, 8, ["show-picker", "editor"])) : ce("", !0),
|
|
15829
15829
|
e[29] || (e[29] = A("div", { class: "menu-divider" }, null, -1)),
|
|
15830
|
-
t.editor.commands.setTextAlign ? (D(),
|
|
15830
|
+
t.editor.commands.setTextAlign ? (D(), z(_e, { key: 4 }, [
|
|
15831
15831
|
A("button", {
|
|
15832
15832
|
class: G([{ "is-active": o.textAlignActive("left") }, "menu-button"]),
|
|
15833
15833
|
"data-texteditor-tooltip": n.$t("_common:align", { thing: n.$t("_common:left") }),
|
|
@@ -15879,7 +15879,7 @@ function K0(n, e, t, r, i, o) {
|
|
|
15879
15879
|
A("path", { d: "M 14 9 A 2.0002 2.0002 0 1 0 14 13 L 42 13 A 2.0002 2.0002 0 1 0 42 9 L 14 9 z M 6 22 A 2.0002 2.0002 0 1 0 6 26 L 42 26 A 2.0002 2.0002 0 1 0 42 22 L 6 22 z M 22 35 A 2.0002 2.0002 0 1 0 22 39 L 42 39 A 2.0002 2.0002 0 1 0 42 35 L 22 35 z" })
|
|
15880
15880
|
], -1)
|
|
15881
15881
|
]), 42, q0)
|
|
15882
|
-
], 64)) :
|
|
15882
|
+
], 64)) : ce("", !0)
|
|
15883
15883
|
]))
|
|
15884
15884
|
], 2)
|
|
15885
15885
|
]),
|
|
@@ -15890,7 +15890,7 @@ const U0 = /* @__PURE__ */ kt(B0, [["render", K0], ["__scopeId", "data-v-e14ee88
|
|
|
15890
15890
|
components: {
|
|
15891
15891
|
FormInputRow: Id,
|
|
15892
15892
|
TextTemplates: sa(
|
|
15893
|
-
() => import("./index-
|
|
15893
|
+
() => import("./index-BahcePwR.js")
|
|
15894
15894
|
)
|
|
15895
15895
|
},
|
|
15896
15896
|
emits: ["upload-image"],
|
|
@@ -16233,15 +16233,15 @@ function Q0(n, e, t, r, i, o) {
|
|
|
16233
16233
|
mode: "out-in"
|
|
16234
16234
|
}, {
|
|
16235
16235
|
default: De(() => [
|
|
16236
|
-
o.shouldShow ? (D(),
|
|
16236
|
+
o.shouldShow ? (D(), z("div", {
|
|
16237
16237
|
key: o.menuActions[0].tooltip,
|
|
16238
16238
|
class: "menu"
|
|
16239
16239
|
}, [
|
|
16240
|
-
(D(!0),
|
|
16241
|
-
u.type === "divider" && !u.hide ? (D(),
|
|
16240
|
+
(D(!0), z(_e, null, en(o.menuActions, (u, h) => (D(), z(_e, { key: h }, [
|
|
16241
|
+
u.type === "divider" && !u.hide ? (D(), z("div", {
|
|
16242
16242
|
key: "divider-" + h,
|
|
16243
16243
|
class: "menu-divider"
|
|
16244
|
-
})) : u.hide ?
|
|
16244
|
+
})) : u.hide ? ce("", !0) : ji((D(), z("div", {
|
|
16245
16245
|
key: h,
|
|
16246
16246
|
"data-texteditor-tooltip": u.tooltip,
|
|
16247
16247
|
class: G([{
|
|
@@ -16256,13 +16256,13 @@ function Q0(n, e, t, r, i, o) {
|
|
|
16256
16256
|
type: u.icon || "info",
|
|
16257
16257
|
size: "22"
|
|
16258
16258
|
}, null, 8, ["type"]),
|
|
16259
|
-
u.popup && i.popupOpen ? (D(),
|
|
16260
|
-
(D(!0),
|
|
16259
|
+
u.popup && i.popupOpen ? (D(), z("div", Y0, [
|
|
16260
|
+
(D(!0), z(_e, null, en(u.popup(), (f, p) => (D(), we(l, {
|
|
16261
16261
|
key: p,
|
|
16262
16262
|
label: f.label,
|
|
16263
16263
|
inputs: f.inputs
|
|
16264
16264
|
}, null, 8, ["label", "inputs"]))), 128))
|
|
16265
|
-
])) :
|
|
16265
|
+
])) : ce("", !0)
|
|
16266
16266
|
], 42, G0)), [
|
|
16267
16267
|
[
|
|
16268
16268
|
d,
|
|
@@ -16293,7 +16293,7 @@ function Q0(n, e, t, r, i, o) {
|
|
|
16293
16293
|
], 8, X0)
|
|
16294
16294
|
]),
|
|
16295
16295
|
_: 1
|
|
16296
|
-
}, 8, ["onSelect"])) :
|
|
16296
|
+
}, 8, ["onSelect"])) : ce("", !0),
|
|
16297
16297
|
A("input", {
|
|
16298
16298
|
ref: "inputImgUpload",
|
|
16299
16299
|
type: "file",
|
|
@@ -16302,7 +16302,7 @@ function Q0(n, e, t, r, i, o) {
|
|
|
16302
16302
|
n.$emit("upload-image", { file: u }), i.popupOpen = !1;
|
|
16303
16303
|
})
|
|
16304
16304
|
}, null, 544)
|
|
16305
|
-
])) :
|
|
16305
|
+
])) : ce("", !0)
|
|
16306
16306
|
]),
|
|
16307
16307
|
_: 1
|
|
16308
16308
|
})
|
|
@@ -16450,7 +16450,7 @@ const ny = new K("mention"), ry = Q.create({
|
|
|
16450
16450
|
var t;
|
|
16451
16451
|
return [
|
|
16452
16452
|
"span",
|
|
16453
|
-
|
|
16453
|
+
H(this.HTMLAttributes, n.HTMLAttributes),
|
|
16454
16454
|
`${n.suggestion.char}${(t = e.attrs.label) !== null && t !== void 0 ? t : e.attrs.id}`
|
|
16455
16455
|
];
|
|
16456
16456
|
},
|
|
@@ -16511,21 +16511,21 @@ const ny = new K("mention"), ry = Q.create({
|
|
|
16511
16511
|
if (this.options.renderLabel !== void 0)
|
|
16512
16512
|
return console.warn("renderLabel is deprecated use renderText and renderHTML instead"), [
|
|
16513
16513
|
"span",
|
|
16514
|
-
|
|
16514
|
+
H({ "data-type": this.name }, this.options.HTMLAttributes, e),
|
|
16515
16515
|
this.options.renderLabel({
|
|
16516
16516
|
options: this.options,
|
|
16517
16517
|
node: n
|
|
16518
16518
|
})
|
|
16519
16519
|
];
|
|
16520
16520
|
const t = { ...this.options };
|
|
16521
|
-
t.HTMLAttributes =
|
|
16521
|
+
t.HTMLAttributes = H({ "data-type": this.name }, this.options.HTMLAttributes, e);
|
|
16522
16522
|
const r = this.options.renderHTML({
|
|
16523
16523
|
options: t,
|
|
16524
16524
|
node: n
|
|
16525
16525
|
});
|
|
16526
16526
|
return typeof r == "string" ? [
|
|
16527
16527
|
"span",
|
|
16528
|
-
|
|
16528
|
+
H({ "data-type": this.name }, this.options.HTMLAttributes, e),
|
|
16529
16529
|
r
|
|
16530
16530
|
] : r;
|
|
16531
16531
|
},
|
|
@@ -16622,11 +16622,11 @@ const ny = new K("mention"), ry = Q.create({
|
|
|
16622
16622
|
class: "px-4 py-2 opacity-50"
|
|
16623
16623
|
};
|
|
16624
16624
|
function dy(n, e, t, r, i, o) {
|
|
16625
|
-
return D(),
|
|
16626
|
-
t.items.length ? (D(),
|
|
16625
|
+
return D(), z("div", oy, [
|
|
16626
|
+
t.items.length ? (D(), z(_e, { key: 0 }, [
|
|
16627
16627
|
A("div", sy, Tt(n.$t("referenceTooltipTitle")), 1),
|
|
16628
16628
|
A("div", ly, [
|
|
16629
|
-
(D(!0),
|
|
16629
|
+
(D(!0), z(_e, null, en(t.items, (s, l) => (D(), z("div", {
|
|
16630
16630
|
ref_for: !0,
|
|
16631
16631
|
ref: "mentions",
|
|
16632
16632
|
key: s.id + l,
|
|
@@ -16639,7 +16639,7 @@ function dy(n, e, t, r, i, o) {
|
|
|
16639
16639
|
onClick: (a) => o.selectItem(s)
|
|
16640
16640
|
}, Tt(s.label), 43, ay))), 128))
|
|
16641
16641
|
])
|
|
16642
|
-
], 64)) : (D(),
|
|
16642
|
+
], 64)) : (D(), z("div", cy, Tt(n.$t("_common:noResults")), 1))
|
|
16643
16643
|
]);
|
|
16644
16644
|
}
|
|
16645
16645
|
const uy = /* @__PURE__ */ kt(iy, [["render", dy]]), Hl = "mention", $l = (n, e) => (e || []).filter(
|
|
@@ -16808,7 +16808,7 @@ const py = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, my = Q.cr
|
|
|
16808
16808
|
];
|
|
16809
16809
|
},
|
|
16810
16810
|
renderHTML({ HTMLAttributes: n }) {
|
|
16811
|
-
return ["img",
|
|
16811
|
+
return ["img", H(this.options.HTMLAttributes, n)];
|
|
16812
16812
|
},
|
|
16813
16813
|
addCommands() {
|
|
16814
16814
|
return {
|
|
@@ -16839,6 +16839,8 @@ const py = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, my = Q.cr
|
|
|
16839
16839
|
// https://tiptap.dev/guide/node-views/vue#all-available-props
|
|
16840
16840
|
data() {
|
|
16841
16841
|
return {
|
|
16842
|
+
hasError: !1,
|
|
16843
|
+
// Handle image load errors
|
|
16842
16844
|
displayOptions: [
|
|
16843
16845
|
{
|
|
16844
16846
|
value: "left",
|
|
@@ -16890,7 +16892,7 @@ const py = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, my = Q.cr
|
|
|
16890
16892
|
async openPreview() {
|
|
16891
16893
|
var t;
|
|
16892
16894
|
const n = sa(
|
|
16893
|
-
() => import("./FilePreviewModal-
|
|
16895
|
+
() => import("./FilePreviewModal-BAT5txhb.js")
|
|
16894
16896
|
), { title: e } = ((t = this.node) == null ? void 0 : t.attrs) || {};
|
|
16895
16897
|
this.$modal.show(
|
|
16896
16898
|
n,
|
|
@@ -16908,10 +16910,13 @@ const py = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, my = Q.cr
|
|
|
16908
16910
|
transition: ""
|
|
16909
16911
|
}
|
|
16910
16912
|
);
|
|
16913
|
+
},
|
|
16914
|
+
onError() {
|
|
16915
|
+
this.hasError = !0;
|
|
16911
16916
|
}
|
|
16912
16917
|
}
|
|
16913
16918
|
}, yy = ["src"], by = {
|
|
16914
|
-
key:
|
|
16919
|
+
key: 1,
|
|
16915
16920
|
class: "image-menu top-2 rounded-md bg-gray-800"
|
|
16916
16921
|
}, ky = ["innerHTML"];
|
|
16917
16922
|
function xy(n, e, t, r, i, o) {
|
|
@@ -16929,14 +16934,16 @@ function xy(n, e, t, r, i, o) {
|
|
|
16929
16934
|
"data-drag-handle": ""
|
|
16930
16935
|
}, {
|
|
16931
16936
|
default: De(() => [
|
|
16932
|
-
|
|
16937
|
+
i.hasError ? ce("", !0) : (D(), z("img", {
|
|
16938
|
+
key: 0,
|
|
16933
16939
|
src: o.src,
|
|
16934
16940
|
class: G({ selected: o.isSelected }),
|
|
16935
16941
|
style: Rd(o.style),
|
|
16936
|
-
onClick: e[0] || (e[0] = (...c) => o.selectImage && o.selectImage(...c))
|
|
16937
|
-
|
|
16938
|
-
|
|
16939
|
-
|
|
16942
|
+
onClick: e[0] || (e[0] = (...c) => o.selectImage && o.selectImage(...c)),
|
|
16943
|
+
onError: e[1] || (e[1] = (...c) => o.onError && o.onError(...c))
|
|
16944
|
+
}, null, 46, yy)),
|
|
16945
|
+
o.isSelected ? (D(), z("div", by, [
|
|
16946
|
+
(D(!0), z(_e, null, en(i.displayOptions, (c, d) => (D(), we(s, {
|
|
16940
16947
|
key: d,
|
|
16941
16948
|
class: G({ "!text-primary-300": o.display === c.value }),
|
|
16942
16949
|
"data-texteditor-tooltip": c.tooltip,
|
|
@@ -16945,7 +16952,7 @@ function xy(n, e, t, r, i, o) {
|
|
|
16945
16952
|
onClick: (u) => o.changeDisplay(c.value)
|
|
16946
16953
|
}, {
|
|
16947
16954
|
default: De(() => [
|
|
16948
|
-
(D(),
|
|
16955
|
+
(D(), z("svg", {
|
|
16949
16956
|
viewBox: "0 0 24 24",
|
|
16950
16957
|
width: "21",
|
|
16951
16958
|
height: "21",
|
|
@@ -16959,7 +16966,7 @@ function xy(n, e, t, r, i, o) {
|
|
|
16959
16966
|
]),
|
|
16960
16967
|
_: 2
|
|
16961
16968
|
}, 1032, ["class", "data-texteditor-tooltip", "onClick"]))), 128)),
|
|
16962
|
-
e[
|
|
16969
|
+
e[2] || (e[2] = A("div", {
|
|
16963
16970
|
class: "bg-gray-500",
|
|
16964
16971
|
style: { width: "1px", height: "1.5em", margin: "0 2px" }
|
|
16965
16972
|
}, null, -1)),
|
|
@@ -16977,12 +16984,12 @@ function xy(n, e, t, r, i, o) {
|
|
|
16977
16984
|
]),
|
|
16978
16985
|
_: 1
|
|
16979
16986
|
}, 8, ["data-texteditor-tooltip", "onClick"])
|
|
16980
|
-
])) :
|
|
16987
|
+
])) : ce("", !0)
|
|
16981
16988
|
]),
|
|
16982
16989
|
_: 1
|
|
16983
16990
|
}, 8, ["class"]);
|
|
16984
16991
|
}
|
|
16985
|
-
const wy = /* @__PURE__ */ kt(gy, [["render", xy], ["__scopeId", "data-v-
|
|
16992
|
+
const wy = /* @__PURE__ */ kt(gy, [["render", xy], ["__scopeId", "data-v-7f9e7fe8"]]), Cy = (n, e = !1) => my.extend({
|
|
16986
16993
|
addOptions() {
|
|
16987
16994
|
return {
|
|
16988
16995
|
inline: !0,
|
|
@@ -17312,7 +17319,7 @@ function Ty(n) {
|
|
|
17312
17319
|
e.push(0);
|
|
17313
17320
|
return e;
|
|
17314
17321
|
}
|
|
17315
|
-
function
|
|
17322
|
+
function ue(n) {
|
|
17316
17323
|
let e = n.cached.tableNodeTypes;
|
|
17317
17324
|
if (!e) {
|
|
17318
17325
|
e = n.cached.tableNodeTypes = {};
|
|
@@ -17395,7 +17402,7 @@ function ud(n, e, t = 1) {
|
|
|
17395
17402
|
return r;
|
|
17396
17403
|
}
|
|
17397
17404
|
function Ny(n, e, t) {
|
|
17398
|
-
const r =
|
|
17405
|
+
const r = ue(e.type.schema).header_cell;
|
|
17399
17406
|
for (let i = 0; i < n.height; i++)
|
|
17400
17407
|
if (e.nodeAt(n.map[t + i * n.width]).type != r)
|
|
17401
17408
|
return !1;
|
|
@@ -17709,7 +17716,7 @@ function zy(n, e, t, r) {
|
|
|
17709
17716
|
d.firstChild && (f = d.firstChild.type.spec.tableRole);
|
|
17710
17717
|
const p = [];
|
|
17711
17718
|
for (let g = 0; g < h; g++) {
|
|
17712
|
-
const y =
|
|
17719
|
+
const y = ue(n.schema)[f].createAndFill();
|
|
17713
17720
|
y && p.push(y);
|
|
17714
17721
|
}
|
|
17715
17722
|
const m = (a == 0 || s == a - 1) && l == a ? c + 1 : u - 1;
|
|
@@ -17739,7 +17746,7 @@ function md(n, { map: e, tableStart: t, table: r }, i) {
|
|
|
17739
17746
|
ud(c.attrs, i - e.colCount(a))
|
|
17740
17747
|
), s += c.attrs.rowspan - 1;
|
|
17741
17748
|
} else {
|
|
17742
|
-
const a = o == null ?
|
|
17749
|
+
const a = o == null ? ue(r.type.schema).cell : r.nodeAt(e.map[l + o]).type, c = e.positionAt(s, i, r);
|
|
17743
17750
|
n.insert(n.mapping.map(t + c), a.createAndFill());
|
|
17744
17751
|
}
|
|
17745
17752
|
}
|
|
@@ -17799,7 +17806,7 @@ function Vy(n, e) {
|
|
|
17799
17806
|
}
|
|
17800
17807
|
function _y(n, e, t) {
|
|
17801
17808
|
var r;
|
|
17802
|
-
const i =
|
|
17809
|
+
const i = ue(e.type.schema).header_cell;
|
|
17803
17810
|
for (let o = 0; o < n.width; o++)
|
|
17804
17811
|
if (((r = e.nodeAt(n.map[o + t * n.width])) == null ? void 0 : r.type) != i)
|
|
17805
17812
|
return !1;
|
|
@@ -17821,10 +17828,10 @@ function gd(n, { map: e, tableStart: t, table: r }, i) {
|
|
|
17821
17828
|
rowspan: h.rowspan + 1
|
|
17822
17829
|
}), c += h.colspan - 1;
|
|
17823
17830
|
} else {
|
|
17824
|
-
const u = a == null ?
|
|
17831
|
+
const u = a == null ? ue(r.type.schema).cell : (o = r.nodeAt(e.map[d + a * e.width])) == null ? void 0 : o.type, h = u == null ? void 0 : u.createAndFill();
|
|
17825
17832
|
h && l.push(h);
|
|
17826
17833
|
}
|
|
17827
|
-
return n.insert(s,
|
|
17834
|
+
return n.insert(s, ue(r.type.schema).row.create(null, l)), n;
|
|
17828
17835
|
}
|
|
17829
17836
|
function Wy(n, e) {
|
|
17830
17837
|
if (!Ie(n))
|
|
@@ -17947,7 +17954,7 @@ function Vl(n, e) {
|
|
|
17947
17954
|
return !0;
|
|
17948
17955
|
}
|
|
17949
17956
|
function _l(n, e) {
|
|
17950
|
-
const t =
|
|
17957
|
+
const t = ue(n.schema);
|
|
17951
17958
|
return Jy(({ node: r }) => t[r.type.spec.tableRole])(n, e);
|
|
17952
17959
|
}
|
|
17953
17960
|
function Jy(n) {
|
|
@@ -18029,7 +18036,7 @@ function Yy(n) {
|
|
|
18029
18036
|
if (!Ie(e))
|
|
18030
18037
|
return !1;
|
|
18031
18038
|
if (t) {
|
|
18032
|
-
const r =
|
|
18039
|
+
const r = ue(e.schema), i = qe(e), o = e.tr, s = i.map.cellsInRect(
|
|
18033
18040
|
n == "column" ? {
|
|
18034
18041
|
left: i.left,
|
|
18035
18042
|
top: 0,
|
|
@@ -18079,7 +18086,7 @@ function Rn(n, e) {
|
|
|
18079
18086
|
if (!Ie(t))
|
|
18080
18087
|
return !1;
|
|
18081
18088
|
if (r) {
|
|
18082
|
-
const i =
|
|
18089
|
+
const i = ue(t.schema), o = qe(t), s = t.tr, l = Wl("row", o, i), a = Wl(
|
|
18083
18090
|
"column",
|
|
18084
18091
|
o,
|
|
18085
18092
|
i
|
|
@@ -18165,7 +18172,7 @@ function qn(n, e) {
|
|
|
18165
18172
|
if (!(t instanceof F))
|
|
18166
18173
|
return !1;
|
|
18167
18174
|
if (e) {
|
|
18168
|
-
const r = n.tr, i =
|
|
18175
|
+
const r = n.tr, i = ue(n.schema).cell.createAndFill().content;
|
|
18169
18176
|
t.forEachCell((o, s) => {
|
|
18170
18177
|
o.content.eq(i) || r.replace(
|
|
18171
18178
|
r.mapping.map(s + 1),
|
|
@@ -18188,14 +18195,14 @@ function e1(n) {
|
|
|
18188
18195
|
let c = e.child(a).content;
|
|
18189
18196
|
const d = a ? 0 : Math.max(0, t - 1), u = a < e.childCount - 1 ? 0 : Math.max(0, r - 1);
|
|
18190
18197
|
(d || u) && (c = wo(
|
|
18191
|
-
|
|
18198
|
+
ue(s).row,
|
|
18192
18199
|
new w(c, d, u)
|
|
18193
18200
|
).content), l.push(c);
|
|
18194
18201
|
}
|
|
18195
18202
|
else if (o == "cell" || o == "header_cell")
|
|
18196
18203
|
l.push(
|
|
18197
18204
|
t || r ? wo(
|
|
18198
|
-
|
|
18205
|
+
ue(s).row,
|
|
18199
18206
|
new w(e, t, r)
|
|
18200
18207
|
).content : e
|
|
18201
18208
|
);
|
|
@@ -18218,7 +18225,7 @@ function t1(n, e) {
|
|
|
18218
18225
|
r = Math.max(r, t[i]);
|
|
18219
18226
|
for (let i = 0; i < t.length; i++)
|
|
18220
18227
|
if (i >= e.length && e.push(b.empty), t[i] < r) {
|
|
18221
|
-
const o =
|
|
18228
|
+
const o = ue(n).cell.createAndFill(), s = [];
|
|
18222
18229
|
for (let l = t[i]; l < r; l++)
|
|
18223
18230
|
s.push(o);
|
|
18224
18231
|
e[i] = e[i].append(b.from(s));
|
|
@@ -18272,7 +18279,7 @@ function n1({ width: n, height: e, rows: t }, r, i) {
|
|
|
18272
18279
|
return { width: n, height: e, rows: t };
|
|
18273
18280
|
}
|
|
18274
18281
|
function r1(n, e, t, r, i, o, s) {
|
|
18275
|
-
const l = n.doc.type.schema, a =
|
|
18282
|
+
const l = n.doc.type.schema, a = ue(l);
|
|
18276
18283
|
let c, d;
|
|
18277
18284
|
if (i > e.width)
|
|
18278
18285
|
for (let u = 0, h = 0; u < e.height; u++) {
|
|
@@ -18461,7 +18468,7 @@ function s1(n, e, t) {
|
|
|
18461
18468
|
height: 1,
|
|
18462
18469
|
rows: [
|
|
18463
18470
|
b.from(
|
|
18464
|
-
wo(
|
|
18471
|
+
wo(ue(n.state.schema).cell, t)
|
|
18465
18472
|
)
|
|
18466
18473
|
]
|
|
18467
18474
|
});
|
|
@@ -18608,7 +18615,7 @@ function c1({
|
|
|
18608
18615
|
state: {
|
|
18609
18616
|
init(s, l) {
|
|
18610
18617
|
var a, c;
|
|
18611
|
-
const d = (c = (a = o.spec) == null ? void 0 : a.props) == null ? void 0 : c.nodeViews, u =
|
|
18618
|
+
const d = (c = (a = o.spec) == null ? void 0 : a.props) == null ? void 0 : c.nodeViews, u = ue(l.schema).table.name;
|
|
18612
18619
|
return r && d && (d[u] = (h, f) => new r(h, t, f)), new d1(-1, !1);
|
|
18613
18620
|
},
|
|
18614
18621
|
apply(s, l) {
|
|
@@ -18988,7 +18995,7 @@ const Jn = ({ editor: n }) => {
|
|
|
18988
18995
|
const { colgroup: t, tableWidth: r, tableMinWidth: i } = w1(n, this.options.cellMinWidth);
|
|
18989
18996
|
return [
|
|
18990
18997
|
"table",
|
|
18991
|
-
|
|
18998
|
+
H(this.options.HTMLAttributes, e, {
|
|
18992
18999
|
style: r ? `width: ${r}` : `min-width: ${i}`
|
|
18993
19000
|
}),
|
|
18994
19001
|
t,
|
|
@@ -19492,7 +19499,7 @@ const E1 = X.create({
|
|
|
19492
19499
|
};
|
|
19493
19500
|
function R1(n, e, t, r, i, o) {
|
|
19494
19501
|
const s = Z("BubbleMenu"), l = Z("EditorContent"), a = Z("EditorFixedMenu");
|
|
19495
|
-
return i.editor ? (D(),
|
|
19502
|
+
return i.editor ? (D(), z("div", {
|
|
19496
19503
|
key: 0,
|
|
19497
19504
|
class: G([
|
|
19498
19505
|
{
|
|
@@ -19507,7 +19514,7 @@ function R1(n, e, t, r, i, o) {
|
|
|
19507
19514
|
editor: i.editor,
|
|
19508
19515
|
"is-focused": i.isFocused,
|
|
19509
19516
|
extensions: o.enabledExtensions
|
|
19510
|
-
}, null, 8, ["editor", "is-focused", "extensions"])) :
|
|
19517
|
+
}, null, 8, ["editor", "is-focused", "extensions"])) : ce("", !0),
|
|
19511
19518
|
hs(n.$slots, "label"),
|
|
19512
19519
|
Ve(l, {
|
|
19513
19520
|
editor: i.editor,
|
|
@@ -19536,8 +19543,8 @@ function R1(n, e, t, r, i, o) {
|
|
|
19536
19543
|
"is-focused": i.isFocused,
|
|
19537
19544
|
extensions: o.enabledExtensions,
|
|
19538
19545
|
onUploadImage: o.onUploadImage
|
|
19539
|
-
}, null, 8, ["editor", "is-focused", "extensions", "onUploadImage"])) :
|
|
19540
|
-
], 2)) :
|
|
19546
|
+
}, null, 8, ["editor", "is-focused", "extensions", "onUploadImage"])) : ce("", !0)
|
|
19547
|
+
], 2)) : ce("", !0);
|
|
19541
19548
|
}
|
|
19542
19549
|
const D1 = /* @__PURE__ */ kt(N1, [["render", R1]]), L1 = {
|
|
19543
19550
|
name: "TextEditor",
|