@templatical/editor 0.6.4 → 0.6.5
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/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-B2MT0M58.js} +34 -34
- package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-w5ek3Z76.js} +62 -62
- package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-uXTxJh06.js} +20 -20
- package/dist/{cdn/chunks/BlockA11yBadge-DcEZftf6.js → BlockA11yBadge-C0S6kPC4.js} +10 -9
- package/dist/{CloudEditor-nzrRhHIi.js → CloudEditor-_GaYluN7.js} +441 -441
- package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-C4eXJkXW.js} +20 -20
- package/dist/CommentsSidebar-BQROg36f.js +441 -0
- package/dist/{cdn/chunks/CountdownBlock-5YdT1uUu.js → CountdownBlock-Bxqe7zwL.js} +21 -22
- package/dist/CountdownToolbar-CpFAnjSo.js +210 -0
- package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-CfqpcWX6.js} +52 -52
- package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-CFkDkjBb.js} +1 -1
- package/dist/{ModuleBrowserModal-DrUFMTDx.js → ModuleBrowserModal-EDKHLJtb.js} +79 -79
- package/dist/{ModulePreviewCanvas-CHdOwV_4.js → ModulePreviewCanvas-MQxat34K.js} +29 -29
- package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-Dw8dN1Pt.js} +88 -88
- package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-C8IP9HOZ.js} +218 -218
- package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-CK3Om7ES.js} +38 -38
- package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-Bgu0FVr6.js} +34 -34
- package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-aSULEKUJ.js} +33 -33
- package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-BIAeCAEP.js} +82 -82
- package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-wcbmmWCs.js} +30 -30
- package/dist/{TitleEditor-fStSADI-.js → TitleEditor-21D8_OUQ.js} +67 -67
- package/dist/{TplModal-BwSfxIHf.js → TplModal-CINtyB6Y.js} +14 -14
- package/dist/{accessibility-e8JYu_zd.js → accessibility-BgUEA-Ai.js} +1 -1
- package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-DKetBdJx.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js → AccessibilityPanel-BMSGhaNU.js} +34 -34
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js.map → AccessibilityPanel-BMSGhaNU.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js → AiFeatureMenu-hNba-JqQ.js} +16 -16
- package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js.map → AiFeatureMenu-hNba-JqQ.js.map} +1 -1
- package/dist/{BlockA11yBadge-CXDLqkcJ.js → cdn/chunks/BlockA11yBadge-BIR88CvN.js} +11 -12
- package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js.map → BlockA11yBadge-BIR88CvN.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-dwzWDF_n.js → CloudEditor-D2G2nNpQ.js} +425 -425
- package/dist/cdn/chunks/{CloudEditor-dwzWDF_n.js.map → CloudEditor-D2G2nNpQ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js → CollaboratorBar-Btzom8dY.js} +20 -20
- package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js.map → CollaboratorBar-Btzom8dY.js.map} +1 -1
- package/dist/cdn/chunks/CountdownBlock-BJSAJlJ1.js +93 -0
- package/dist/cdn/chunks/{CountdownBlock-5YdT1uUu.js.map → CountdownBlock-BJSAJlJ1.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DbknNrIi.js +212 -0
- package/dist/cdn/chunks/{CountdownToolbar-DXPXrbAA.js.map → CountdownToolbar-DbknNrIi.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js → ModuleBrowserModal-BvAuW8O5.js} +43 -43
- package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js.map → ModuleBrowserModal-BvAuW8O5.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js → ModulePreviewCanvas-CYtt0boo.js} +23 -23
- package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js.map → ModulePreviewCanvas-CYtt0boo.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js → NumberWithSuffix-CVfo9ztG.js} +108 -108
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js.map → NumberWithSuffix-CVfo9ztG.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js → ParagraphEditor-DCo58JP8.js} +187 -187
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js.map → ParagraphEditor-DCo58JP8.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js → RichTextEditorContent-BzCThv84.js} +33 -33
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js.map → RichTextEditorContent-BzCThv84.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js → SaveModuleDialog-S2Lix1LD.js} +27 -27
- package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js.map → SaveModuleDialog-S2Lix1LD.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js → TitleEditor-CYzAMuUW.js} +66 -66
- package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js.map → TitleEditor-CYzAMuUW.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js → blockTypeIcons-DOzUHoor.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js.map → blockTypeIcons-DOzUHoor.js.map} +1 -1
- package/dist/cdn/chunks/draggable-CNhyCGIO.js +4804 -0
- package/dist/cdn/chunks/draggable-CNhyCGIO.js.map +1 -0
- package/dist/cdn/chunks/{extensions-DIxF31tA.js → extensions-wafZZ0-_.js} +95 -95
- package/dist/cdn/chunks/{extensions-DIxF31tA.js.map → extensions-wafZZ0-_.js.map} +1 -1
- package/dist/cdn/chunks/{features-DEMb13KS.js → features-B4tNvoi4.js} +2260 -2267
- package/dist/cdn/chunks/features-B4tNvoi4.js.map +1 -0
- package/dist/cdn/chunks/{icons-CsLTcirh.js → icons-B5nBFtvb.js} +2 -2
- package/dist/cdn/chunks/{icons-CsLTcirh.js.map → icons-B5nBFtvb.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-CVaNvhpM.js → media-library-BLaoBxHe.js} +1397 -1397
- package/dist/cdn/chunks/{media-library-CVaNvhpM.js.map → media-library-BLaoBxHe.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-CDbNlZBE.js → pusher-bjpcqCZG.js} +2 -2
- package/dist/cdn/chunks/{pusher-CDbNlZBE.js.map → pusher-bjpcqCZG.js.map} +1 -1
- package/dist/cdn/chunks/{quality-BaBfc54_.js → quality-D920ZxXf.js} +3 -3
- package/dist/cdn/chunks/{quality-BaBfc54_.js.map → quality-D920ZxXf.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CUxvx7ro.js → renderer-Yk30CckU.js} +3 -3
- package/dist/cdn/chunks/{renderer-CUxvx7ro.js.map → renderer-Yk30CckU.js.map} +1 -1
- package/dist/{rolldown-runtime-BZGGJVDF.js → cdn/chunks/rolldown-runtime-C266TIVP.js} +5 -5
- package/dist/cdn/chunks/{src-CRaqN-p8.js → src-kLJg7Y0m.js} +171 -171
- package/dist/cdn/chunks/{src-CRaqN-p8.js.map → src-kLJg7Y0m.js.map} +1 -1
- package/dist/cdn/chunks/styles-DrVLif14.js +2944 -0
- package/dist/cdn/chunks/styles-DrVLif14.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js → tiptap-IyIsncxY.js} +45 -46
- package/dist/cdn/chunks/{tiptap-ZhwKyFp7.js.map → tiptap-IyIsncxY.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +122 -122
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Da05j8yl.js → check-Bg5yrRmX.js} +1 -1
- package/dist/{chevron-down-R2uY34iD.js → chevron-down-tee-ghFi.js} +1 -1
- package/dist/{circle-alert-DZuGWPX-.js → circle-alert-C0L9pUQ4.js} +1 -1
- package/dist/{clock-CRp2sIub.js → clock-CDlEdqiP.js} +1 -1
- package/dist/{cloud-DEk_b4CR.js → cloud-a3VovHva.js} +145 -145
- package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-Di4mqmGn.js} +9 -9
- package/dist/{dist-B1IR0bpH.js → dist-BzRLLpfq.js} +107 -107
- package/dist/{dist-BFawx6IS.js → dist-Pk4MhWMP.js} +35 -35
- package/dist/{extensions-CUcl9Ok4.js → extensions-BF39Siqk.js} +103 -103
- package/dist/{image-up-MBZKKg9p.js → image-up-1D_3XDdO.js} +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/{info-CJEC7piy.js → info-DTGrc0Bx.js} +1 -1
- package/dist/{keys-ciNfSSGj.js → keys-Bqs_0du9.js} +1 -1
- package/dist/{loader-circle-DsY5Yg33.js → loader-circle-_9bP23op.js} +1 -1
- package/dist/{message-circle-yElBbR2C.js → message-circle-gzy2ZGJ3.js} +1 -1
- package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-BNAhAmtL.js} +1 -1
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/{scan-line-D0vcUekt.js → scan-line-DUEg6DoT.js} +1 -1
- package/dist/{send-DH4oDQqC.js → send-BatIZC9a.js} +1 -1
- package/dist/{shield-check-CfJgs2Hd.js → shield-check-C5Gv2cM1.js} +1 -1
- package/dist/{sparkles-CvRXGqFs.js → sparkles-D1IGi_cC.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styles-CwJQsnSp.js +3173 -0
- package/dist/templatical-editor.js +99 -99
- package/dist/{text-align-start-BT9VUDxK.js → text-align-start-DG3aAH7Y.js} +1 -1
- package/dist/{trash-2-DbP2Y6t2.js → trash-2-424iqbpN.js} +1 -1
- package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-DWQySIE2.js} +1 -1
- package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-CL_AwWwi.js} +4 -4
- package/dist/useEditorCore-DLd-5qMg.js +3784 -0
- package/dist/{useI18n-lb2DHDiu.js → useI18n-CgmQftNf.js} +4 -4
- package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-vpwrZ9eQ.js} +3 -3
- package/dist/vue.runtime.esm-bundler-Bxqkjqhc.js +4300 -0
- package/dist/{x-u2oVmjN_.js → x-Dlaenqta.js} +1 -1
- package/package.json +8 -8
- package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
- package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
- package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
- package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
- package/dist/cdn/chunks/draggable-Bcb86AsV.js +0 -11572
- package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +0 -1
- package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
- package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +0 -20
- package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
- package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
- package/dist/styles-DEXEkBvg.js +0 -3176
- package/dist/useEditorCore-C6ost42Q.js +0 -9342
- package/dist/vue.runtime.esm-bundler-DpvJL-nX.js +0 -5775
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $t as S, Nt as C, Qt as w, X as T, en as E, et as D, gt as O, q as k, qt as ee, tn as A, tt as j } from "./features-
|
|
3
|
-
import { B as M, H as N, R as P, X as F, _ as I, c as te, f as ne, i as re, o as ie, p as L, s as R, u as z, w as B, x as V, z as H } from "./icons-
|
|
1
|
+
import { K as e, L as t, M as n, P as r, T as i, Z as a, at as o, c as s, d as c, f as l, g as u, h as d, l as f, m as p, ot as m, p as h, rt as g, st as _, u as v, v as y, x as b, y as x } from "./draggable-CNhyCGIO.js";
|
|
2
|
+
import { $t as S, Nt as C, Qt as w, X as T, en as E, et as D, gt as O, q as k, qt as ee, tn as A, tt as j } from "./features-B4tNvoi4.js";
|
|
3
|
+
import { B as M, H as N, R as P, X as F, _ as I, c as te, f as ne, i as re, o as ie, p as L, s as R, u as z, w as B, x as V, z as H } from "./icons-B5nBFtvb.js";
|
|
4
4
|
import { a as U, o as W, s as G } from "./styleConstants-DP1VOca8.js";
|
|
5
|
-
import { n as K, t as q } from "./RichTextEditorContent-
|
|
5
|
+
import { n as K, t as q } from "./RichTextEditorContent-BzCThv84.js";
|
|
6
6
|
//#region src/components/blocks/EmojiPickerDropdown.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var J = [
|
|
8
8
|
"aria-label",
|
|
9
9
|
"title",
|
|
10
10
|
"aria-expanded"
|
|
11
|
-
], Y = ["aria-label"], ae = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, oe = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, se = ["aria-label", "onClick"], ce = /* @__PURE__ */
|
|
11
|
+
], Y = ["aria-label"], ae = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, oe = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, se = ["aria-label", "onClick"], ce = /* @__PURE__ */ b({
|
|
12
12
|
__name: "EmojiPickerDropdown",
|
|
13
13
|
emits: ["insert"],
|
|
14
|
-
setup(
|
|
15
|
-
let
|
|
16
|
-
D(w,
|
|
17
|
-
|
|
14
|
+
setup(e, { emit: t }) {
|
|
15
|
+
let i = t, { categories: c, isOpen: p, toggle: m, close: y } = T(), { t: b, format: S } = C(), w = a(null), E = a(null);
|
|
16
|
+
D(w, l(() => p.value)), A(E, () => {
|
|
17
|
+
p.value && y();
|
|
18
18
|
});
|
|
19
19
|
function O(e) {
|
|
20
|
-
|
|
20
|
+
i("insert", e), y();
|
|
21
21
|
}
|
|
22
|
-
return (e, t) => (
|
|
22
|
+
return (e, t) => (n(), u("div", {
|
|
23
23
|
ref_key: "rootRef",
|
|
24
24
|
ref: E,
|
|
25
25
|
class: "tpl:relative"
|
|
26
|
-
}, [
|
|
26
|
+
}, [h("button", {
|
|
27
27
|
type: "button",
|
|
28
|
-
class:
|
|
29
|
-
"aria-label":
|
|
30
|
-
title:
|
|
31
|
-
"aria-expanded":
|
|
28
|
+
class: o(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": g(p) }]),
|
|
29
|
+
"aria-label": g(b).paragraphEditor.insertEmoji,
|
|
30
|
+
title: g(b).paragraphEditor.insertEmoji,
|
|
31
|
+
"aria-expanded": g(p),
|
|
32
32
|
"aria-haspopup": "dialog",
|
|
33
33
|
"aria-controls": "tpl-emoji-picker",
|
|
34
|
-
onClick: t[0] ||= (...e) =>
|
|
35
|
-
}, [
|
|
34
|
+
onClick: t[0] ||= (...e) => g(m) && g(m)(...e)
|
|
35
|
+
}, [x(g(I), {
|
|
36
36
|
size: 16,
|
|
37
37
|
"stroke-width": 2
|
|
38
|
-
})], 10, J),
|
|
38
|
+
})], 10, J), g(p) ? (n(), u("div", {
|
|
39
39
|
key: 0,
|
|
40
40
|
id: "tpl-emoji-picker",
|
|
41
41
|
ref_key: "pickerRef",
|
|
42
42
|
ref: w,
|
|
43
43
|
role: "dialog",
|
|
44
44
|
"aria-modal": "false",
|
|
45
|
-
"aria-label":
|
|
45
|
+
"aria-label": g(b).paragraphEditor.insertEmoji,
|
|
46
46
|
tabindex: "-1",
|
|
47
47
|
class: "tpl-emoji-picker tpl:absolute tpl:top-full tpl:left-0 tpl:z-10 tpl:mt-2 tpl:w-72 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2 tpl:shadow-lg",
|
|
48
|
-
onKeydown: t[1] ||=
|
|
49
|
-
}, [(
|
|
48
|
+
onKeydown: t[1] ||= s(f((...e) => g(y) && g(y)(...e), ["stop", "prevent"]), ["esc"])
|
|
49
|
+
}, [(n(!0), u(v, null, r(g(c), (e) => (n(), u("div", {
|
|
50
50
|
key: e.key,
|
|
51
51
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
52
|
-
}, [
|
|
52
|
+
}, [h("div", ae, _(g(b).emoji[e.key]), 1), h("div", oe, [(n(!0), u(v, null, r(e.emojis, (e) => (n(), u("button", {
|
|
53
53
|
key: e,
|
|
54
54
|
type: "button",
|
|
55
|
-
"aria-label":
|
|
55
|
+
"aria-label": g(S)(g(b).paragraphEditor.emojiItemLabel, { emoji: e }),
|
|
56
56
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:text-base tpl:transition-all tpl:duration-100 tpl:hover:scale-125 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
57
57
|
onClick: (t) => O(e)
|
|
58
|
-
},
|
|
58
|
+
}, _(e), 9, se))), 128))])]))), 128))], 40, Y)) : d("", !0)], 512));
|
|
59
59
|
}
|
|
60
60
|
}), le = [
|
|
61
61
|
"aria-label",
|
|
62
62
|
"title",
|
|
63
63
|
"aria-pressed"
|
|
64
|
-
], X = /* @__PURE__ */
|
|
64
|
+
], X = /* @__PURE__ */ b({
|
|
65
65
|
__name: "ToolbarIconButton",
|
|
66
66
|
props: {
|
|
67
67
|
icon: {},
|
|
@@ -71,13 +71,13 @@ var J = [
|
|
|
71
71
|
size: {}
|
|
72
72
|
},
|
|
73
73
|
setup(e) {
|
|
74
|
-
return (
|
|
74
|
+
return (r, i) => (n(), u("button", {
|
|
75
75
|
type: "button",
|
|
76
|
-
class:
|
|
76
|
+
class: o(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": e.active }]),
|
|
77
77
|
"aria-label": e.label,
|
|
78
78
|
title: e.label,
|
|
79
79
|
"aria-pressed": e.active ? "true" : "false"
|
|
80
|
-
}, [(
|
|
80
|
+
}, [(n(), p(t(e.icon), {
|
|
81
81
|
size: e.size ?? 16,
|
|
82
82
|
"stroke-width": e.strokeWidth ?? 2
|
|
83
83
|
}, null, 8, ["size", "stroke-width"]))], 10, le));
|
|
@@ -87,13 +87,13 @@ var J = [
|
|
|
87
87
|
"aria-hidden": "true"
|
|
88
88
|
};
|
|
89
89
|
function fe(e, t) {
|
|
90
|
-
return
|
|
90
|
+
return n(), u("span", de);
|
|
91
91
|
}
|
|
92
92
|
var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
93
93
|
"value",
|
|
94
94
|
"aria-label",
|
|
95
95
|
"title"
|
|
96
|
-
], me = { value: "" }, he = ["value"], Q = /* @__PURE__ */
|
|
96
|
+
], me = { value: "" }, he = ["value"], Q = /* @__PURE__ */ b({
|
|
97
97
|
__name: "ToolbarSelect",
|
|
98
98
|
props: {
|
|
99
99
|
modelValue: {},
|
|
@@ -104,26 +104,26 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
104
104
|
},
|
|
105
105
|
emits: ["update:modelValue"],
|
|
106
106
|
setup(e, { emit: t }) {
|
|
107
|
-
let
|
|
107
|
+
let i = t;
|
|
108
108
|
function a(e) {
|
|
109
|
-
|
|
109
|
+
i("update:modelValue", e.target.value);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function s(e) {
|
|
112
112
|
return typeof e == "string" ? e : e.value;
|
|
113
113
|
}
|
|
114
114
|
function c(e) {
|
|
115
115
|
return typeof e == "string" ? e : e.label;
|
|
116
116
|
}
|
|
117
|
-
return (t,
|
|
118
|
-
class:
|
|
117
|
+
return (t, i) => (n(), u("select", {
|
|
118
|
+
class: o(["tpl:h-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none", e.widthClass ?? "tpl:w-20"]),
|
|
119
119
|
value: e.modelValue,
|
|
120
120
|
"aria-label": e.label,
|
|
121
121
|
title: e.label,
|
|
122
122
|
onChange: a
|
|
123
|
-
}, [
|
|
124
|
-
key:
|
|
125
|
-
value:
|
|
126
|
-
},
|
|
123
|
+
}, [h("option", me, _(e.placeholder ?? ""), 1), (n(!0), u(v, null, r(e.options, (e) => (n(), u("option", {
|
|
124
|
+
key: s(e),
|
|
125
|
+
value: s(e)
|
|
126
|
+
}, _(c(e)), 9, he))), 128))], 42, pe));
|
|
127
127
|
}
|
|
128
128
|
}), ge = ["data-tpl-theme", "aria-label"], _e = { class: "tpl:flex tpl:items-center tpl:gap-1" }, ve = { class: "tpl:relative" }, ye = [
|
|
129
129
|
"value",
|
|
@@ -136,7 +136,7 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
136
136
|
], xe = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Se = ["aria-label", "title"], Ce = {
|
|
137
137
|
key: 1,
|
|
138
138
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
139
|
-
}, we = /* @__PURE__ */
|
|
139
|
+
}, we = /* @__PURE__ */ b({
|
|
140
140
|
__name: "ParagraphToolbar",
|
|
141
141
|
props: {
|
|
142
142
|
editor: {},
|
|
@@ -145,8 +145,8 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
145
145
|
canRequestMergeTag: { type: Boolean }
|
|
146
146
|
},
|
|
147
147
|
emits: ["open-link-dialog", "add-merge-tag"],
|
|
148
|
-
setup(e, { emit:
|
|
149
|
-
let r = e, a =
|
|
148
|
+
setup(e, { emit: t }) {
|
|
149
|
+
let r = e, a = t, o = i(w, null), s = i(S, null), l = E(ee, "ParagraphToolbar"), { t: f } = C(), b = l.fonts;
|
|
150
150
|
function T(e) {
|
|
151
151
|
r.editor?.chain().focus().insertContent(e).run();
|
|
152
152
|
}
|
|
@@ -183,24 +183,24 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
183
183
|
let t = r.editor?.chain().focus();
|
|
184
184
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
185
185
|
}
|
|
186
|
-
return (t,
|
|
187
|
-
"data-tpl-theme":
|
|
186
|
+
return (t, r) => (n(), p(c, { to: "body" }, [h("div", {
|
|
187
|
+
"data-tpl-theme": g(s),
|
|
188
188
|
role: "toolbar",
|
|
189
|
-
"aria-label":
|
|
189
|
+
"aria-label": g(f).paragraphEditor.toolbar,
|
|
190
190
|
class: "tpl tpl-text-toolbar tpl:fixed tpl:z-popover tpl:flex tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-lg",
|
|
191
|
-
style:
|
|
192
|
-
...
|
|
191
|
+
style: m({
|
|
192
|
+
...g(o),
|
|
193
193
|
top: `${e.toolbarPosition.top}px`,
|
|
194
194
|
left: `${e.toolbarPosition.left}px`,
|
|
195
195
|
transform: "translateY(-100%)",
|
|
196
196
|
flexDirection: "column"
|
|
197
197
|
})
|
|
198
|
-
}, [!e.isLoading && e.editor ? (
|
|
199
|
-
|
|
198
|
+
}, [!e.isLoading && e.editor ? (n(), u(v, { key: 0 }, [h("div", _e, [
|
|
199
|
+
x(Q, {
|
|
200
200
|
"model-value": D("fontFamily"),
|
|
201
|
-
options:
|
|
202
|
-
label:
|
|
203
|
-
placeholder:
|
|
201
|
+
options: g(b),
|
|
202
|
+
label: g(f).paragraphEditor.fontFamily,
|
|
203
|
+
placeholder: g(f).paragraphEditor.defaultFont,
|
|
204
204
|
"width-class": "tpl:w-32",
|
|
205
205
|
"onUpdate:modelValue": k
|
|
206
206
|
}, null, 8, [
|
|
@@ -209,11 +209,11 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
209
209
|
"label",
|
|
210
210
|
"placeholder"
|
|
211
211
|
]),
|
|
212
|
-
|
|
212
|
+
x(Q, {
|
|
213
213
|
"model-value": D("fontSize"),
|
|
214
|
-
options:
|
|
215
|
-
label:
|
|
216
|
-
placeholder:
|
|
214
|
+
options: g(U),
|
|
215
|
+
label: g(f).paragraphEditor.fontSize,
|
|
216
|
+
placeholder: g(f).paragraphEditor.defaultSize,
|
|
217
217
|
"width-class": "tpl:w-20",
|
|
218
218
|
"onUpdate:modelValue": A
|
|
219
219
|
}, null, 8, [
|
|
@@ -222,155 +222,155 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
222
222
|
"label",
|
|
223
223
|
"placeholder"
|
|
224
224
|
]),
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
x(Z),
|
|
226
|
+
h("div", ve, [h("input", {
|
|
227
227
|
type: "color",
|
|
228
228
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
|
|
229
|
-
value: D("color") ||
|
|
230
|
-
"aria-label":
|
|
231
|
-
title:
|
|
232
|
-
onInput:
|
|
229
|
+
value: D("color") || g("#000000"),
|
|
230
|
+
"aria-label": g(f).paragraphEditor.textColor,
|
|
231
|
+
title: g(f).paragraphEditor.textColor,
|
|
232
|
+
onInput: r[0] ||= (e) => j(e.target.value)
|
|
233
233
|
}, null, 40, ye)]),
|
|
234
|
-
|
|
234
|
+
h("div", be, [h("input", {
|
|
235
235
|
type: "color",
|
|
236
236
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
|
|
237
|
-
style:
|
|
238
|
-
value: J() ||
|
|
239
|
-
"aria-label":
|
|
240
|
-
title:
|
|
241
|
-
onInput:
|
|
237
|
+
style: m({ backgroundColor: J() || "var(--tpl-bg)" }),
|
|
238
|
+
value: J() || g("#ffff00"),
|
|
239
|
+
"aria-label": g(f).paragraphEditor.highlightColor,
|
|
240
|
+
title: g(f).paragraphEditor.highlightColor,
|
|
241
|
+
onInput: r[1] ||= (e) => Y(e.target.value)
|
|
242
242
|
}, null, 44, $)]),
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
icon:
|
|
246
|
-
label:
|
|
243
|
+
x(Z),
|
|
244
|
+
x(X, {
|
|
245
|
+
icon: g(F),
|
|
246
|
+
label: g(f).paragraphEditor.bold,
|
|
247
247
|
active: e.editor.isActive("bold"),
|
|
248
248
|
"stroke-width": 2.5,
|
|
249
|
-
onClick:
|
|
249
|
+
onClick: r[2] ||= (t) => e.editor.chain().focus().toggleBold().run()
|
|
250
250
|
}, null, 8, [
|
|
251
251
|
"icon",
|
|
252
252
|
"label",
|
|
253
253
|
"active"
|
|
254
254
|
]),
|
|
255
|
-
|
|
256
|
-
icon:
|
|
257
|
-
label:
|
|
255
|
+
x(X, {
|
|
256
|
+
icon: g(N),
|
|
257
|
+
label: g(f).paragraphEditor.italic,
|
|
258
258
|
active: e.editor.isActive("italic"),
|
|
259
|
-
onClick:
|
|
259
|
+
onClick: r[3] ||= (t) => e.editor.chain().focus().toggleItalic().run()
|
|
260
260
|
}, null, 8, [
|
|
261
261
|
"icon",
|
|
262
262
|
"label",
|
|
263
263
|
"active"
|
|
264
264
|
]),
|
|
265
|
-
|
|
266
|
-
icon:
|
|
267
|
-
label:
|
|
265
|
+
x(X, {
|
|
266
|
+
icon: g(re),
|
|
267
|
+
label: g(f).paragraphEditor.underline,
|
|
268
268
|
active: e.editor.isActive("underline"),
|
|
269
|
-
onClick:
|
|
269
|
+
onClick: r[4] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
|
|
270
270
|
}, null, 8, [
|
|
271
271
|
"icon",
|
|
272
272
|
"label",
|
|
273
273
|
"active"
|
|
274
274
|
]),
|
|
275
|
-
|
|
276
|
-
icon:
|
|
277
|
-
label:
|
|
275
|
+
x(X, {
|
|
276
|
+
icon: g(L),
|
|
277
|
+
label: g(f).paragraphEditor.strikethrough,
|
|
278
278
|
active: e.editor.isActive("strike"),
|
|
279
|
-
onClick:
|
|
279
|
+
onClick: r[5] ||= (t) => e.editor.chain().focus().toggleStrike().run()
|
|
280
280
|
}, null, 8, [
|
|
281
281
|
"icon",
|
|
282
282
|
"label",
|
|
283
283
|
"active"
|
|
284
284
|
]),
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
icon:
|
|
288
|
-
label:
|
|
285
|
+
x(Z),
|
|
286
|
+
x(X, {
|
|
287
|
+
icon: g(ne),
|
|
288
|
+
label: g(f).paragraphEditor.subscript,
|
|
289
289
|
active: e.editor.isActive("subscript"),
|
|
290
|
-
onClick:
|
|
290
|
+
onClick: r[6] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
|
|
291
291
|
}, null, 8, [
|
|
292
292
|
"icon",
|
|
293
293
|
"label",
|
|
294
294
|
"active"
|
|
295
295
|
]),
|
|
296
|
-
|
|
297
|
-
icon:
|
|
298
|
-
label:
|
|
296
|
+
x(X, {
|
|
297
|
+
icon: g(z),
|
|
298
|
+
label: g(f).paragraphEditor.superscript,
|
|
299
299
|
active: e.editor.isActive("superscript"),
|
|
300
|
-
onClick:
|
|
300
|
+
onClick: r[7] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
|
|
301
301
|
}, null, 8, [
|
|
302
302
|
"icon",
|
|
303
303
|
"label",
|
|
304
304
|
"active"
|
|
305
305
|
]),
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
icon:
|
|
309
|
-
label:
|
|
306
|
+
x(Z),
|
|
307
|
+
x(X, {
|
|
308
|
+
icon: g(M),
|
|
309
|
+
label: g(f).paragraphEditor.addLink,
|
|
310
310
|
active: e.editor.isActive("link"),
|
|
311
|
-
onClick:
|
|
311
|
+
onClick: r[8] ||= (e) => a("open-link-dialog")
|
|
312
312
|
}, null, 8, [
|
|
313
313
|
"icon",
|
|
314
314
|
"label",
|
|
315
315
|
"active"
|
|
316
316
|
])
|
|
317
|
-
]),
|
|
318
|
-
|
|
319
|
-
icon:
|
|
320
|
-
label:
|
|
317
|
+
]), h("div", xe, [
|
|
318
|
+
x(X, {
|
|
319
|
+
icon: g(P),
|
|
320
|
+
label: g(f).paragraphEditor.bulletList,
|
|
321
321
|
active: e.editor.isActive("bulletList"),
|
|
322
|
-
onClick:
|
|
322
|
+
onClick: r[9] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
|
|
323
323
|
}, null, 8, [
|
|
324
324
|
"icon",
|
|
325
325
|
"label",
|
|
326
326
|
"active"
|
|
327
327
|
]),
|
|
328
|
-
|
|
329
|
-
icon:
|
|
330
|
-
label:
|
|
328
|
+
x(X, {
|
|
329
|
+
icon: g(H),
|
|
330
|
+
label: g(f).paragraphEditor.numberedList,
|
|
331
331
|
active: e.editor.isActive("orderedList"),
|
|
332
|
-
onClick:
|
|
332
|
+
onClick: r[10] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
|
|
333
333
|
}, null, 8, [
|
|
334
334
|
"icon",
|
|
335
335
|
"label",
|
|
336
336
|
"active"
|
|
337
337
|
]),
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
icon:
|
|
341
|
-
label:
|
|
338
|
+
x(Z),
|
|
339
|
+
x(X, {
|
|
340
|
+
icon: g(ie),
|
|
341
|
+
label: g(f).paragraphEditor.alignLeft,
|
|
342
342
|
active: e.editor.isActive({ textAlign: "left" }),
|
|
343
|
-
onClick:
|
|
343
|
+
onClick: r[11] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
|
|
344
344
|
}, null, 8, [
|
|
345
345
|
"icon",
|
|
346
346
|
"label",
|
|
347
347
|
"active"
|
|
348
348
|
]),
|
|
349
|
-
|
|
350
|
-
icon:
|
|
351
|
-
label:
|
|
349
|
+
x(X, {
|
|
350
|
+
icon: g(te),
|
|
351
|
+
label: g(f).paragraphEditor.alignCenter,
|
|
352
352
|
active: e.editor.isActive({ textAlign: "center" }),
|
|
353
|
-
onClick:
|
|
353
|
+
onClick: r[12] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
|
|
354
354
|
}, null, 8, [
|
|
355
355
|
"icon",
|
|
356
356
|
"label",
|
|
357
357
|
"active"
|
|
358
358
|
]),
|
|
359
|
-
|
|
360
|
-
icon:
|
|
361
|
-
label:
|
|
359
|
+
x(X, {
|
|
360
|
+
icon: g(R),
|
|
361
|
+
label: g(f).paragraphEditor.alignRight,
|
|
362
362
|
active: e.editor.isActive({ textAlign: "right" }),
|
|
363
|
-
onClick:
|
|
363
|
+
onClick: r[13] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
|
|
364
364
|
}, null, 8, [
|
|
365
365
|
"icon",
|
|
366
366
|
"label",
|
|
367
367
|
"active"
|
|
368
368
|
]),
|
|
369
|
-
|
|
370
|
-
|
|
369
|
+
x(Z),
|
|
370
|
+
x(Q, {
|
|
371
371
|
"model-value": I(),
|
|
372
|
-
options:
|
|
373
|
-
label:
|
|
372
|
+
options: g(G),
|
|
373
|
+
label: g(f).paragraphEditor.lineHeight,
|
|
374
374
|
placeholder: "LH",
|
|
375
375
|
"width-class": "tpl:w-16",
|
|
376
376
|
"onUpdate:modelValue": K
|
|
@@ -379,10 +379,10 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
379
379
|
"options",
|
|
380
380
|
"label"
|
|
381
381
|
]),
|
|
382
|
-
|
|
382
|
+
x(Q, {
|
|
383
383
|
"model-value": D("letterSpacing"),
|
|
384
|
-
options:
|
|
385
|
-
label:
|
|
384
|
+
options: g(W),
|
|
385
|
+
label: g(f).paragraphEditor.letterSpacing,
|
|
386
386
|
placeholder: "LS",
|
|
387
387
|
"width-class": "tpl:w-20",
|
|
388
388
|
"onUpdate:modelValue": q
|
|
@@ -391,57 +391,57 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
391
391
|
"options",
|
|
392
392
|
"label"
|
|
393
393
|
]),
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
icon:
|
|
397
|
-
label:
|
|
398
|
-
onClick:
|
|
394
|
+
x(Z),
|
|
395
|
+
x(X, {
|
|
396
|
+
icon: g(B),
|
|
397
|
+
label: g(f).paragraphEditor.clearFormatting,
|
|
398
|
+
onClick: r[14] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
399
399
|
}, null, 8, ["icon", "label"]),
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
e.canRequestMergeTag ? (
|
|
400
|
+
x(Z),
|
|
401
|
+
x(ce, { onInsert: T }),
|
|
402
|
+
e.canRequestMergeTag ? (n(), u(v, { key: 0 }, [x(Z), h("button", {
|
|
403
403
|
type: "button",
|
|
404
404
|
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
405
|
-
"aria-label":
|
|
406
|
-
title:
|
|
407
|
-
onClick:
|
|
408
|
-
}, [
|
|
405
|
+
"aria-label": g(f).mergeTag.add,
|
|
406
|
+
title: g(f).mergeTag.add,
|
|
407
|
+
onClick: r[15] ||= (e) => a("add-merge-tag")
|
|
408
|
+
}, [x(g(V), {
|
|
409
409
|
size: 16,
|
|
410
410
|
"stroke-width": 2
|
|
411
|
-
}),
|
|
412
|
-
])], 64)) : (
|
|
411
|
+
}), y(" " + _(g(f).mergeTag.add), 1)], 8, Se)], 64)) : d("", !0)
|
|
412
|
+
])], 64)) : (n(), u("div", Ce, [x(g(O), {
|
|
413
413
|
class: "tpl-spinner",
|
|
414
414
|
size: 14,
|
|
415
415
|
"stroke-width": 2
|
|
416
|
-
}),
|
|
416
|
+
}), y(" " + _(g(f).errors.editorLoading), 1)]))], 12, ge)]));
|
|
417
417
|
}
|
|
418
|
-
}), Te = { class: "tpl-text-editor-wrapper tpl:relative" }, Ee = /* @__PURE__ */
|
|
418
|
+
}), Te = { class: "tpl-text-editor-wrapper tpl:relative" }, Ee = /* @__PURE__ */ b({
|
|
419
419
|
__name: "ParagraphEditor",
|
|
420
420
|
props: {
|
|
421
421
|
block: {},
|
|
422
422
|
toolbarPosition: {}
|
|
423
423
|
},
|
|
424
424
|
emits: ["done"],
|
|
425
|
-
setup(
|
|
426
|
-
let
|
|
427
|
-
blockId: () =>
|
|
428
|
-
blockContent: () =>
|
|
425
|
+
setup(t, { emit: r }) {
|
|
426
|
+
let i = t, a = r, { editor: o, EditorContent: s, isLoading: c, initError: l, retry: d, showLinkDialog: f, linkUrl: p, linkDialogRef: m, canRequestMergeTag: h, openLinkDialog: _, insertLink: v, removeLink: y, closeLinkDialog: b, handleLinkKeydown: S, handleAddMergeTag: C } = k({
|
|
427
|
+
blockId: () => i.block.id,
|
|
428
|
+
blockContent: () => i.block.content,
|
|
429
429
|
onDone: () => a("done"),
|
|
430
430
|
editorName: "ParagraphEditor",
|
|
431
431
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
432
432
|
let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { TextStyle: p }, { default: m }, { default: h }, { default: g }, { MergeTagNode: _, MergeTagSuggestion: v, LogicMergeTagNode: y, FontSize: b, LineHeight: x, LetterSpacing: S }] = await Promise.all([
|
|
433
|
-
import("./tiptap-
|
|
434
|
-
import("./tiptap-
|
|
435
|
-
import("./tiptap-
|
|
436
|
-
import("./tiptap-
|
|
437
|
-
import("./tiptap-
|
|
438
|
-
import("./tiptap-
|
|
439
|
-
import("./tiptap-
|
|
440
|
-
import("./tiptap-
|
|
441
|
-
import("./tiptap-
|
|
442
|
-
import("./tiptap-
|
|
443
|
-
import("./tiptap-
|
|
444
|
-
import("./extensions-
|
|
433
|
+
import("./tiptap-IyIsncxY.js").then((e) => e.i),
|
|
434
|
+
import("./tiptap-IyIsncxY.js").then((e) => e.a),
|
|
435
|
+
import("./tiptap-IyIsncxY.js").then((e) => e.u),
|
|
436
|
+
import("./tiptap-IyIsncxY.js").then((e) => e.o),
|
|
437
|
+
import("./tiptap-IyIsncxY.js").then((e) => e.l),
|
|
438
|
+
import("./tiptap-IyIsncxY.js").then((e) => e.c),
|
|
439
|
+
import("./tiptap-IyIsncxY.js").then((e) => e.s),
|
|
440
|
+
import("./tiptap-IyIsncxY.js").then((e) => e.m),
|
|
441
|
+
import("./tiptap-IyIsncxY.js").then((e) => e.p),
|
|
442
|
+
import("./tiptap-IyIsncxY.js").then((e) => e.f),
|
|
443
|
+
import("./tiptap-IyIsncxY.js").then((e) => e.d),
|
|
444
|
+
import("./extensions-wafZZ0-_.js")
|
|
445
445
|
]);
|
|
446
446
|
return {
|
|
447
447
|
TiptapEditor: a,
|
|
@@ -485,14 +485,14 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
487
|
});
|
|
488
|
-
return (
|
|
489
|
-
|
|
490
|
-
editor:
|
|
491
|
-
"toolbar-position":
|
|
492
|
-
"is-loading": c
|
|
493
|
-
"can-request-merge-tag":
|
|
494
|
-
onOpenLinkDialog:
|
|
495
|
-
onAddMergeTag:
|
|
488
|
+
return (r, i) => (n(), u("div", Te, [
|
|
489
|
+
x(we, {
|
|
490
|
+
editor: g(o),
|
|
491
|
+
"toolbar-position": t.toolbarPosition,
|
|
492
|
+
"is-loading": g(c),
|
|
493
|
+
"can-request-merge-tag": g(h),
|
|
494
|
+
onOpenLinkDialog: g(_),
|
|
495
|
+
onAddMergeTag: g(C)
|
|
496
496
|
}, null, 8, [
|
|
497
497
|
"editor",
|
|
498
498
|
"toolbar-position",
|
|
@@ -501,12 +501,12 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
501
501
|
"onOpenLinkDialog",
|
|
502
502
|
"onAddMergeTag"
|
|
503
503
|
]),
|
|
504
|
-
|
|
505
|
-
editor:
|
|
506
|
-
"editor-content":
|
|
507
|
-
"is-loading": c
|
|
508
|
-
"init-error":
|
|
509
|
-
onRetry:
|
|
504
|
+
x(q, {
|
|
505
|
+
editor: g(o),
|
|
506
|
+
"editor-content": g(s),
|
|
507
|
+
"is-loading": g(c),
|
|
508
|
+
"init-error": g(l),
|
|
509
|
+
onRetry: g(d)
|
|
510
510
|
}, null, 8, [
|
|
511
511
|
"editor",
|
|
512
512
|
"editor-content",
|
|
@@ -514,17 +514,17 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
514
514
|
"init-error",
|
|
515
515
|
"onRetry"
|
|
516
516
|
]),
|
|
517
|
-
|
|
518
|
-
visible:
|
|
519
|
-
"is-editing-link":
|
|
520
|
-
"dialog-ref":
|
|
521
|
-
"onUpdate:dialogRef":
|
|
522
|
-
"link-url":
|
|
523
|
-
"onUpdate:linkUrl":
|
|
524
|
-
onClose:
|
|
525
|
-
onInsert:
|
|
526
|
-
onRemove:
|
|
527
|
-
onKeydown:
|
|
517
|
+
x(K, {
|
|
518
|
+
visible: g(f),
|
|
519
|
+
"is-editing-link": g(o)?.isActive("link") ?? !1,
|
|
520
|
+
"dialog-ref": g(m),
|
|
521
|
+
"onUpdate:dialogRef": i[0] ||= (t) => e(m) ? m.value = t : null,
|
|
522
|
+
"link-url": g(p),
|
|
523
|
+
"onUpdate:linkUrl": i[1] ||= (t) => e(p) ? p.value = t : null,
|
|
524
|
+
onClose: g(b),
|
|
525
|
+
onInsert: g(v),
|
|
526
|
+
onRemove: g(y),
|
|
527
|
+
onKeydown: g(S)
|
|
528
528
|
}, null, 8, [
|
|
529
529
|
"visible",
|
|
530
530
|
"is-editing-link",
|
|
@@ -541,4 +541,4 @@ var Z = /* @__PURE__ */ j(ue, [["render", fe]]), pe = [
|
|
|
541
541
|
//#endregion
|
|
542
542
|
export { Ee as default };
|
|
543
543
|
|
|
544
|
-
//# sourceMappingURL=ParagraphEditor-
|
|
544
|
+
//# sourceMappingURL=ParagraphEditor-DCo58JP8.js.map
|