@templatical/editor 0.6.4 → 0.6.6
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-ChlAWywJ.js} +20 -20
- package/dist/{BlockA11yBadge-CXDLqkcJ.js → BlockA11yBadge-C0S6kPC4.js} +12 -12
- package/dist/{CloudEditor-nzrRhHIi.js → CloudEditor-DYYaScFe.js} +441 -441
- package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-Bo8vtPId.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-CKhsaPnA.js} +79 -79
- package/dist/{ModulePreviewCanvas-CHdOwV_4.js → ModulePreviewCanvas-Cw9GeGus.js} +29 -29
- package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-Dw8dN1Pt.js} +88 -88
- package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-DjDiUzmv.js} +218 -218
- package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-CK3Om7ES.js} +38 -38
- package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-CSUPmfRP.js} +34 -34
- package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-DwX2fj6N.js} +33 -33
- package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-BIAeCAEP.js} +82 -82
- package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-CIlBvWWn.js} +30 -30
- package/dist/{TitleEditor-fStSADI-.js → TitleEditor-BCV5k6wj.js} +67 -67
- package/dist/{TplModal-BwSfxIHf.js → TplModal-C3Hq9b58.js} +14 -14
- package/dist/{accessibility-e8JYu_zd.js → accessibility-BgUEA-Ai.js} +1 -1
- package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-iUurP50H.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js → AccessibilityPanel-AQD2ygU6.js} +34 -34
- package/dist/cdn/chunks/{AccessibilityPanel-B6DOjojm.js.map → AccessibilityPanel-AQD2ygU6.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js → AiFeatureMenu-CDh9ifC8.js} +16 -16
- package/dist/cdn/chunks/{AiFeatureMenu-qEdB2fZJ.js.map → AiFeatureMenu-CDh9ifC8.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js → BlockA11yBadge-BxZr3s7T.js} +10 -10
- package/dist/cdn/chunks/{BlockA11yBadge-DcEZftf6.js.map → BlockA11yBadge-BxZr3s7T.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-dwzWDF_n.js → CloudEditor-Fg7pQ9IQ.js} +425 -425
- package/dist/cdn/chunks/{CloudEditor-dwzWDF_n.js.map → CloudEditor-Fg7pQ9IQ.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js → CollaboratorBar-B5a8eBXN.js} +20 -20
- package/dist/cdn/chunks/{CollaboratorBar--nO7TX6b.js.map → CollaboratorBar-B5a8eBXN.js.map} +1 -1
- package/dist/cdn/chunks/CountdownBlock-BeHkO19t.js +93 -0
- package/dist/cdn/chunks/{CountdownBlock-5YdT1uUu.js.map → CountdownBlock-BeHkO19t.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-8UfW0jb1.js +212 -0
- package/dist/cdn/chunks/{CountdownToolbar-DXPXrbAA.js.map → CountdownToolbar-8UfW0jb1.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js → ModuleBrowserModal-BMUyAmmj.js} +43 -43
- package/dist/cdn/chunks/{ModuleBrowserModal-DxoPp81s.js.map → ModuleBrowserModal-BMUyAmmj.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js → ModulePreviewCanvas-CxSc7Pvd.js} +23 -23
- package/dist/cdn/chunks/{ModulePreviewCanvas-CoLdb4ar.js.map → ModulePreviewCanvas-CxSc7Pvd.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js → NumberWithSuffix-BSOUOUCL.js} +108 -108
- package/dist/cdn/chunks/{NumberWithSuffix-CE3NrZhH.js.map → NumberWithSuffix-BSOUOUCL.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js → ParagraphEditor-S1bpgxe5.js} +187 -187
- package/dist/cdn/chunks/{ParagraphEditor-B6Ygu-Mq.js.map → ParagraphEditor-S1bpgxe5.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js → RichTextEditorContent-ByehRfEA.js} +33 -33
- package/dist/cdn/chunks/{RichTextEditorContent-DL_y2SrR.js.map → RichTextEditorContent-ByehRfEA.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js → SaveModuleDialog-5CNMvgYL.js} +27 -27
- package/dist/cdn/chunks/{SaveModuleDialog-B0TnO_o9.js.map → SaveModuleDialog-5CNMvgYL.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js → TitleEditor-BASWPsCM.js} +66 -66
- package/dist/cdn/chunks/{TitleEditor-BHpfxvwy.js.map → TitleEditor-BASWPsCM.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js → blockTypeIcons-DfOffaYP.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-BzzY9_kA.js.map → blockTypeIcons-DfOffaYP.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-BJOV1jre.js} +95 -95
- package/dist/cdn/chunks/{extensions-DIxF31tA.js.map → extensions-BJOV1jre.js.map} +1 -1
- package/dist/cdn/chunks/{features-DEMb13KS.js → features-D6FoOm8v.js} +2272 -2269
- package/dist/cdn/chunks/features-D6FoOm8v.js.map +1 -0
- package/dist/cdn/chunks/{icons-CsLTcirh.js → icons-CpsjWPU-.js} +2 -2
- package/dist/cdn/chunks/{icons-CsLTcirh.js.map → icons-CpsjWPU-.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-CVaNvhpM.js → media-library-CEd7Lqxk.js} +1397 -1397
- package/dist/cdn/chunks/{media-library-CVaNvhpM.js.map → media-library-CEd7Lqxk.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-Bx1oORXQ.js} +3 -3
- package/dist/cdn/chunks/{quality-BaBfc54_.js.map → quality-Bx1oORXQ.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CUxvx7ro.js → renderer-CwxCisa-.js} +3 -3
- package/dist/cdn/chunks/{renderer-CUxvx7ro.js.map → renderer-CwxCisa-.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-DDSInEkE.js} +171 -171
- package/dist/cdn/chunks/{src-CRaqN-p8.js.map → src-DDSInEkE.js.map} +1 -1
- package/dist/cdn/chunks/styles-B1uu-Cc9.js +2944 -0
- package/dist/cdn/chunks/styles-B1uu-Cc9.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 +8 -8
- 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-BgmKdc2x.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-CnXrv71D.js +3794 -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,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as S, b as C, w } from "./useEditorCore-
|
|
3
|
-
import { t as T } from "./dist-
|
|
4
|
-
import { D as E, O as D, T as O, h as k } from "./keys-
|
|
5
|
-
import { t as A } from "./useI18n-
|
|
6
|
-
import { t as j } from "./createLucideIcon-
|
|
7
|
-
import { a as ee, i as M, n as N, r as P, t as F } from "./RichTextEditorContent-
|
|
8
|
-
import { t as te } from "./loader-circle-
|
|
9
|
-
import { t as ne } from "./scan-line-
|
|
10
|
-
import { n as re, r as ie, t as I } from "./text-align-start-
|
|
1
|
+
import { A as e, F as t, G as n, M as r, X as i, _ as a, at as o, b as s, c, d as l, f as u, h as d, l as f, m as p, ot as m, p as h, rt as g, s as _, st as v, u as y, v as b, w as x } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
+
import { C as S, b as C, w } from "./useEditorCore-CnXrv71D.js";
|
|
3
|
+
import { t as T } from "./dist-BzRLLpfq.js";
|
|
4
|
+
import { D as E, O as D, T as O, h as k } from "./keys-Bqs_0du9.js";
|
|
5
|
+
import { t as A } from "./useI18n-CgmQftNf.js";
|
|
6
|
+
import { t as j } from "./createLucideIcon-Di4mqmGn.js";
|
|
7
|
+
import { a as ee, i as M, n as N, r as P, t as F } from "./RichTextEditorContent-CK3Om7ES.js";
|
|
8
|
+
import { t as te } from "./loader-circle-_9bP23op.js";
|
|
9
|
+
import { t as ne } from "./scan-line-DUEg6DoT.js";
|
|
10
|
+
import { n as re, r as ie, t as I } from "./text-align-start-DG3aAH7Y.js";
|
|
11
11
|
import { t as L } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
12
12
|
import { a as R, o as z, s as B } from "./styleConstants-fWzlIIwN.js";
|
|
13
13
|
var V = j("list-ordered", [
|
|
@@ -161,60 +161,60 @@ var V = j("list-ordered", [
|
|
|
161
161
|
"aria-label",
|
|
162
162
|
"title",
|
|
163
163
|
"aria-expanded"
|
|
164
|
-
], ae = ["aria-label"], oe = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, se = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, ce = ["aria-label", "onClick"], le = /* @__PURE__ */
|
|
164
|
+
], ae = ["aria-label"], oe = { class: "tpl:mb-1.5 tpl:text-[10px] tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, se = { class: "tpl:grid tpl:grid-cols-10 tpl:gap-0.5" }, ce = ["aria-label", "onClick"], le = /* @__PURE__ */ s({
|
|
165
165
|
__name: "EmojiPickerDropdown",
|
|
166
166
|
emits: ["insert"],
|
|
167
167
|
setup(t, { emit: n }) {
|
|
168
|
-
let a = n, { categories:
|
|
169
|
-
w(E,
|
|
170
|
-
|
|
168
|
+
let a = n, { categories: s, isOpen: m, toggle: h, close: y } = S(), { t: x, format: C } = A(), E = i(null), D = i(null);
|
|
169
|
+
w(E, l(() => m.value)), T(D, () => {
|
|
170
|
+
m.value && y();
|
|
171
171
|
});
|
|
172
172
|
function O(e) {
|
|
173
173
|
a("insert", e), y();
|
|
174
174
|
}
|
|
175
|
-
return (t, n) => (
|
|
175
|
+
return (t, n) => (e(), d("div", {
|
|
176
176
|
ref_key: "rootRef",
|
|
177
177
|
ref: D,
|
|
178
178
|
class: "tpl:relative"
|
|
179
|
-
}, [
|
|
179
|
+
}, [u("button", {
|
|
180
180
|
type: "button",
|
|
181
|
-
class:
|
|
182
|
-
"aria-label":
|
|
183
|
-
title:
|
|
184
|
-
"aria-expanded":
|
|
181
|
+
class: o(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": g(m) }]),
|
|
182
|
+
"aria-label": g(x).paragraphEditor.insertEmoji,
|
|
183
|
+
title: g(x).paragraphEditor.insertEmoji,
|
|
184
|
+
"aria-expanded": g(m),
|
|
185
185
|
"aria-haspopup": "dialog",
|
|
186
186
|
"aria-controls": "tpl-emoji-picker",
|
|
187
|
-
onClick: n[0] ||= (...e) => h
|
|
188
|
-
}, [
|
|
187
|
+
onClick: n[0] ||= (...e) => g(h) && g(h)(...e)
|
|
188
|
+
}, [b(g(W), {
|
|
189
189
|
size: 16,
|
|
190
190
|
"stroke-width": 2
|
|
191
|
-
})], 10, Y),
|
|
191
|
+
})], 10, Y), g(m) ? (e(), d("div", {
|
|
192
192
|
key: 0,
|
|
193
193
|
id: "tpl-emoji-picker",
|
|
194
194
|
ref_key: "pickerRef",
|
|
195
195
|
ref: E,
|
|
196
196
|
role: "dialog",
|
|
197
197
|
"aria-modal": "false",
|
|
198
|
-
"aria-label":
|
|
198
|
+
"aria-label": g(x).paragraphEditor.insertEmoji,
|
|
199
199
|
tabindex: "-1",
|
|
200
200
|
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",
|
|
201
|
-
onKeydown: n[1] ||=
|
|
202
|
-
}, [(
|
|
203
|
-
key:
|
|
201
|
+
onKeydown: n[1] ||= _(c((...e) => g(y) && g(y)(...e), ["stop", "prevent"]), ["esc"])
|
|
202
|
+
}, [(e(!0), d(f, null, r(g(s), (t) => (e(), d("div", {
|
|
203
|
+
key: t.key,
|
|
204
204
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
205
|
-
}, [
|
|
206
|
-
key:
|
|
205
|
+
}, [u("div", oe, v(g(x).emoji[t.key]), 1), u("div", se, [(e(!0), d(f, null, r(t.emojis, (t) => (e(), d("button", {
|
|
206
|
+
key: t,
|
|
207
207
|
type: "button",
|
|
208
|
-
"aria-label":
|
|
208
|
+
"aria-label": g(C)(g(x).paragraphEditor.emojiItemLabel, { emoji: t }),
|
|
209
209
|
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)]",
|
|
210
|
-
onClick: (
|
|
211
|
-
},
|
|
210
|
+
onClick: (e) => O(t)
|
|
211
|
+
}, v(t), 9, ce))), 128))])]))), 128))], 40, ae)) : p("", !0)], 512));
|
|
212
212
|
}
|
|
213
213
|
}), ue = [
|
|
214
214
|
"aria-label",
|
|
215
215
|
"title",
|
|
216
216
|
"aria-pressed"
|
|
217
|
-
], X = /* @__PURE__ */
|
|
217
|
+
], X = /* @__PURE__ */ s({
|
|
218
218
|
__name: "ToolbarIconButton",
|
|
219
219
|
props: {
|
|
220
220
|
icon: {},
|
|
@@ -223,30 +223,30 @@ var V = j("list-ordered", [
|
|
|
223
223
|
strokeWidth: {},
|
|
224
224
|
size: {}
|
|
225
225
|
},
|
|
226
|
-
setup(
|
|
227
|
-
return (
|
|
226
|
+
setup(n) {
|
|
227
|
+
return (r, i) => (e(), d("button", {
|
|
228
228
|
type: "button",
|
|
229
|
-
class:
|
|
230
|
-
"aria-label":
|
|
231
|
-
title:
|
|
232
|
-
"aria-pressed":
|
|
233
|
-
}, [(
|
|
234
|
-
size:
|
|
235
|
-
"stroke-width":
|
|
229
|
+
class: o(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": n.active }]),
|
|
230
|
+
"aria-label": n.label,
|
|
231
|
+
title: n.label,
|
|
232
|
+
"aria-pressed": n.active ? "true" : "false"
|
|
233
|
+
}, [(e(), h(t(n.icon), {
|
|
234
|
+
size: n.size ?? 16,
|
|
235
|
+
"stroke-width": n.strokeWidth ?? 2
|
|
236
236
|
}, null, 8, ["size", "stroke-width"]))], 10, ue));
|
|
237
237
|
}
|
|
238
238
|
}), de = {}, fe = {
|
|
239
239
|
class: "tpl:mx-1 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
240
240
|
"aria-hidden": "true"
|
|
241
241
|
};
|
|
242
|
-
function pe(
|
|
243
|
-
return
|
|
242
|
+
function pe(t, n) {
|
|
243
|
+
return e(), d("span", fe);
|
|
244
244
|
}
|
|
245
245
|
var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
246
246
|
"value",
|
|
247
247
|
"aria-label",
|
|
248
248
|
"title"
|
|
249
|
-
], he = { value: "" }, ge = ["value"], Q = /* @__PURE__ */
|
|
249
|
+
], he = { value: "" }, ge = ["value"], Q = /* @__PURE__ */ s({
|
|
250
250
|
__name: "ToolbarSelect",
|
|
251
251
|
props: {
|
|
252
252
|
modelValue: {},
|
|
@@ -257,26 +257,26 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
257
257
|
},
|
|
258
258
|
emits: ["update:modelValue"],
|
|
259
259
|
setup(t, { emit: n }) {
|
|
260
|
-
let
|
|
261
|
-
function
|
|
262
|
-
|
|
260
|
+
let i = n;
|
|
261
|
+
function a(e) {
|
|
262
|
+
i("update:modelValue", e.target.value);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function s(e) {
|
|
265
265
|
return typeof e == "string" ? e : e.value;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function c(e) {
|
|
268
268
|
return typeof e == "string" ? e : e.label;
|
|
269
269
|
}
|
|
270
|
-
return (n,
|
|
271
|
-
class:
|
|
270
|
+
return (n, i) => (e(), d("select", {
|
|
271
|
+
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", t.widthClass ?? "tpl:w-20"]),
|
|
272
272
|
value: t.modelValue,
|
|
273
273
|
"aria-label": t.label,
|
|
274
274
|
title: t.label,
|
|
275
|
-
onChange:
|
|
276
|
-
}, [
|
|
277
|
-
key:
|
|
278
|
-
value:
|
|
279
|
-
},
|
|
275
|
+
onChange: a
|
|
276
|
+
}, [u("option", he, v(t.placeholder ?? ""), 1), (e(!0), d(f, null, r(t.options, (t) => (e(), d("option", {
|
|
277
|
+
key: s(t),
|
|
278
|
+
value: s(t)
|
|
279
|
+
}, v(c(t)), 9, ge))), 128))], 42, me));
|
|
280
280
|
}
|
|
281
281
|
}), _e = ["data-tpl-theme", "aria-label"], ve = { class: "tpl:flex tpl:items-center tpl:gap-1" }, ye = { class: "tpl:relative" }, be = [
|
|
282
282
|
"value",
|
|
@@ -289,7 +289,7 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
289
289
|
], Se = { class: "tpl:flex tpl:items-center tpl:gap-1" }, Ce = ["aria-label", "title"], we = {
|
|
290
290
|
key: 1,
|
|
291
291
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
292
|
-
}, Te = /* @__PURE__ */
|
|
292
|
+
}, Te = /* @__PURE__ */ s({
|
|
293
293
|
__name: "ParagraphToolbar",
|
|
294
294
|
props: {
|
|
295
295
|
editor: {},
|
|
@@ -298,62 +298,62 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
298
298
|
canRequestMergeTag: { type: Boolean }
|
|
299
299
|
},
|
|
300
300
|
emits: ["open-link-dialog", "add-merge-tag"],
|
|
301
|
-
setup(
|
|
302
|
-
let
|
|
301
|
+
setup(t, { emit: n }) {
|
|
302
|
+
let r = t, i = n, o = x(O, null), s = x(E, null), c = D(k, "ParagraphToolbar"), { t: l } = A(), _ = c.fonts;
|
|
303
303
|
function S(e) {
|
|
304
|
-
|
|
304
|
+
r.editor?.chain().focus().insertContent(e).run();
|
|
305
305
|
}
|
|
306
306
|
function C(e) {
|
|
307
|
-
return
|
|
307
|
+
return r.editor?.getAttributes("textStyle")[e] || "";
|
|
308
308
|
}
|
|
309
309
|
function w(e) {
|
|
310
|
-
let t =
|
|
310
|
+
let t = r.editor?.chain().focus();
|
|
311
311
|
e ? t?.setFontFamily(e).run() : t?.unsetFontFamily().run();
|
|
312
312
|
}
|
|
313
313
|
function T(e) {
|
|
314
|
-
let t =
|
|
314
|
+
let t = r.editor?.chain().focus();
|
|
315
315
|
e ? t?.setFontSize(e).run() : t?.unsetFontSize().run();
|
|
316
316
|
}
|
|
317
317
|
function j(e) {
|
|
318
|
-
let t =
|
|
318
|
+
let t = r.editor?.chain().focus();
|
|
319
319
|
e ? t?.setColor(e).run() : t?.unsetColor().run();
|
|
320
320
|
}
|
|
321
321
|
function N() {
|
|
322
|
-
return
|
|
322
|
+
return r.editor?.getAttributes("paragraph").lineHeight || "";
|
|
323
323
|
}
|
|
324
324
|
function F(e) {
|
|
325
|
-
let t =
|
|
325
|
+
let t = r.editor?.chain().focus();
|
|
326
326
|
e ? t?.setLineHeight(e).run() : t?.unsetLineHeight().run();
|
|
327
327
|
}
|
|
328
328
|
function L(e) {
|
|
329
|
-
let t =
|
|
329
|
+
let t = r.editor?.chain().focus();
|
|
330
330
|
e && e !== "normal" ? t?.setLetterSpacing(e).run() : t?.unsetLetterSpacing().run();
|
|
331
331
|
}
|
|
332
332
|
function W() {
|
|
333
|
-
return
|
|
333
|
+
return r.editor?.getAttributes("highlight").color || "";
|
|
334
334
|
}
|
|
335
335
|
function Y(e) {
|
|
336
|
-
let t =
|
|
336
|
+
let t = r.editor?.chain().focus();
|
|
337
337
|
e ? t?.setHighlight({ color: e }).run() : t?.unsetHighlight().run();
|
|
338
338
|
}
|
|
339
|
-
return (
|
|
340
|
-
"data-tpl-theme":
|
|
339
|
+
return (n, r) => (e(), h(y, { to: "body" }, [u("div", {
|
|
340
|
+
"data-tpl-theme": g(s),
|
|
341
341
|
role: "toolbar",
|
|
342
|
-
"aria-label":
|
|
342
|
+
"aria-label": g(l).paragraphEditor.toolbar,
|
|
343
343
|
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",
|
|
344
|
-
style:
|
|
345
|
-
...
|
|
346
|
-
top: `${
|
|
347
|
-
left: `${
|
|
344
|
+
style: m({
|
|
345
|
+
...g(o),
|
|
346
|
+
top: `${t.toolbarPosition.top}px`,
|
|
347
|
+
left: `${t.toolbarPosition.left}px`,
|
|
348
348
|
transform: "translateY(-100%)",
|
|
349
349
|
flexDirection: "column"
|
|
350
350
|
})
|
|
351
|
-
}, [!
|
|
352
|
-
|
|
351
|
+
}, [!t.isLoading && t.editor ? (e(), d(f, { key: 0 }, [u("div", ve, [
|
|
352
|
+
b(Q, {
|
|
353
353
|
"model-value": C("fontFamily"),
|
|
354
|
-
options:
|
|
355
|
-
label:
|
|
356
|
-
placeholder:
|
|
354
|
+
options: g(_),
|
|
355
|
+
label: g(l).paragraphEditor.fontFamily,
|
|
356
|
+
placeholder: g(l).paragraphEditor.defaultFont,
|
|
357
357
|
"width-class": "tpl:w-32",
|
|
358
358
|
"onUpdate:modelValue": w
|
|
359
359
|
}, null, 8, [
|
|
@@ -362,11 +362,11 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
362
362
|
"label",
|
|
363
363
|
"placeholder"
|
|
364
364
|
]),
|
|
365
|
-
|
|
365
|
+
b(Q, {
|
|
366
366
|
"model-value": C("fontSize"),
|
|
367
|
-
options:
|
|
368
|
-
label:
|
|
369
|
-
placeholder:
|
|
367
|
+
options: g(R),
|
|
368
|
+
label: g(l).paragraphEditor.fontSize,
|
|
369
|
+
placeholder: g(l).paragraphEditor.defaultSize,
|
|
370
370
|
"width-class": "tpl:w-20",
|
|
371
371
|
"onUpdate:modelValue": T
|
|
372
372
|
}, null, 8, [
|
|
@@ -375,155 +375,155 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
375
375
|
"label",
|
|
376
376
|
"placeholder"
|
|
377
377
|
]),
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
b(Z),
|
|
379
|
+
u("div", ye, [u("input", {
|
|
380
380
|
type: "color",
|
|
381
381
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-1",
|
|
382
|
-
value: C("color") ||
|
|
383
|
-
"aria-label":
|
|
384
|
-
title:
|
|
385
|
-
onInput:
|
|
382
|
+
value: C("color") || g("#000000"),
|
|
383
|
+
"aria-label": g(l).paragraphEditor.textColor,
|
|
384
|
+
title: g(l).paragraphEditor.textColor,
|
|
385
|
+
onInput: r[0] ||= (e) => j(e.target.value)
|
|
386
386
|
}, null, 40, be)]),
|
|
387
|
-
|
|
387
|
+
u("div", $, [u("input", {
|
|
388
388
|
type: "color",
|
|
389
389
|
class: "tpl:size-8 tpl:cursor-pointer tpl:rounded tpl:border tpl:border-[var(--tpl-border)] tpl:p-1",
|
|
390
|
-
style:
|
|
391
|
-
value: W() ||
|
|
392
|
-
"aria-label":
|
|
393
|
-
title:
|
|
394
|
-
onInput:
|
|
390
|
+
style: m({ backgroundColor: W() || "var(--tpl-bg)" }),
|
|
391
|
+
value: W() || g("#ffff00"),
|
|
392
|
+
"aria-label": g(l).paragraphEditor.highlightColor,
|
|
393
|
+
title: g(l).paragraphEditor.highlightColor,
|
|
394
|
+
onInput: r[1] ||= (e) => Y(e.target.value)
|
|
395
395
|
}, null, 44, xe)]),
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
icon:
|
|
399
|
-
label:
|
|
400
|
-
active:
|
|
396
|
+
b(Z),
|
|
397
|
+
b(X, {
|
|
398
|
+
icon: g(ee),
|
|
399
|
+
label: g(l).paragraphEditor.bold,
|
|
400
|
+
active: t.editor.isActive("bold"),
|
|
401
401
|
"stroke-width": 2.5,
|
|
402
|
-
onClick:
|
|
402
|
+
onClick: r[2] ||= (e) => t.editor.chain().focus().toggleBold().run()
|
|
403
403
|
}, null, 8, [
|
|
404
404
|
"icon",
|
|
405
405
|
"label",
|
|
406
406
|
"active"
|
|
407
407
|
]),
|
|
408
|
-
|
|
409
|
-
icon:
|
|
410
|
-
label:
|
|
411
|
-
active:
|
|
412
|
-
onClick:
|
|
408
|
+
b(X, {
|
|
409
|
+
icon: g(M),
|
|
410
|
+
label: g(l).paragraphEditor.italic,
|
|
411
|
+
active: t.editor.isActive("italic"),
|
|
412
|
+
onClick: r[3] ||= (e) => t.editor.chain().focus().toggleItalic().run()
|
|
413
413
|
}, null, 8, [
|
|
414
414
|
"icon",
|
|
415
415
|
"label",
|
|
416
416
|
"active"
|
|
417
417
|
]),
|
|
418
|
-
|
|
419
|
-
icon:
|
|
420
|
-
label:
|
|
421
|
-
active:
|
|
422
|
-
onClick:
|
|
418
|
+
b(X, {
|
|
419
|
+
icon: g(J),
|
|
420
|
+
label: g(l).paragraphEditor.underline,
|
|
421
|
+
active: t.editor.isActive("underline"),
|
|
422
|
+
onClick: r[4] ||= (e) => t.editor.chain().focus().toggleUnderline().run()
|
|
423
423
|
}, null, 8, [
|
|
424
424
|
"icon",
|
|
425
425
|
"label",
|
|
426
426
|
"active"
|
|
427
427
|
]),
|
|
428
|
-
|
|
429
|
-
icon:
|
|
430
|
-
label:
|
|
431
|
-
active:
|
|
432
|
-
onClick:
|
|
428
|
+
b(X, {
|
|
429
|
+
icon: g(G),
|
|
430
|
+
label: g(l).paragraphEditor.strikethrough,
|
|
431
|
+
active: t.editor.isActive("strike"),
|
|
432
|
+
onClick: r[5] ||= (e) => t.editor.chain().focus().toggleStrike().run()
|
|
433
433
|
}, null, 8, [
|
|
434
434
|
"icon",
|
|
435
435
|
"label",
|
|
436
436
|
"active"
|
|
437
437
|
]),
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
icon:
|
|
441
|
-
label:
|
|
442
|
-
active:
|
|
443
|
-
onClick:
|
|
438
|
+
b(Z),
|
|
439
|
+
b(X, {
|
|
440
|
+
icon: g(K),
|
|
441
|
+
label: g(l).paragraphEditor.subscript,
|
|
442
|
+
active: t.editor.isActive("subscript"),
|
|
443
|
+
onClick: r[6] ||= (e) => t.editor.chain().focus().toggleSubscript().run()
|
|
444
444
|
}, null, 8, [
|
|
445
445
|
"icon",
|
|
446
446
|
"label",
|
|
447
447
|
"active"
|
|
448
448
|
]),
|
|
449
|
-
|
|
450
|
-
icon:
|
|
451
|
-
label:
|
|
452
|
-
active:
|
|
453
|
-
onClick:
|
|
449
|
+
b(X, {
|
|
450
|
+
icon: g(q),
|
|
451
|
+
label: g(l).paragraphEditor.superscript,
|
|
452
|
+
active: t.editor.isActive("superscript"),
|
|
453
|
+
onClick: r[7] ||= (e) => t.editor.chain().focus().toggleSuperscript().run()
|
|
454
454
|
}, null, 8, [
|
|
455
455
|
"icon",
|
|
456
456
|
"label",
|
|
457
457
|
"active"
|
|
458
458
|
]),
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
icon:
|
|
462
|
-
label:
|
|
463
|
-
active:
|
|
464
|
-
onClick:
|
|
459
|
+
b(Z),
|
|
460
|
+
b(X, {
|
|
461
|
+
icon: g(P),
|
|
462
|
+
label: g(l).paragraphEditor.addLink,
|
|
463
|
+
active: t.editor.isActive("link"),
|
|
464
|
+
onClick: r[8] ||= (e) => i("open-link-dialog")
|
|
465
465
|
}, null, 8, [
|
|
466
466
|
"icon",
|
|
467
467
|
"label",
|
|
468
468
|
"active"
|
|
469
469
|
])
|
|
470
|
-
]),
|
|
471
|
-
|
|
472
|
-
icon:
|
|
473
|
-
label:
|
|
474
|
-
active:
|
|
475
|
-
onClick:
|
|
470
|
+
]), u("div", Se, [
|
|
471
|
+
b(X, {
|
|
472
|
+
icon: g(H),
|
|
473
|
+
label: g(l).paragraphEditor.bulletList,
|
|
474
|
+
active: t.editor.isActive("bulletList"),
|
|
475
|
+
onClick: r[9] ||= (e) => t.editor.chain().focus().toggleBulletList().run()
|
|
476
476
|
}, null, 8, [
|
|
477
477
|
"icon",
|
|
478
478
|
"label",
|
|
479
479
|
"active"
|
|
480
480
|
]),
|
|
481
|
-
|
|
482
|
-
icon:
|
|
483
|
-
label:
|
|
484
|
-
active:
|
|
485
|
-
onClick:
|
|
481
|
+
b(X, {
|
|
482
|
+
icon: g(V),
|
|
483
|
+
label: g(l).paragraphEditor.numberedList,
|
|
484
|
+
active: t.editor.isActive("orderedList"),
|
|
485
|
+
onClick: r[10] ||= (e) => t.editor.chain().focus().toggleOrderedList().run()
|
|
486
486
|
}, null, 8, [
|
|
487
487
|
"icon",
|
|
488
488
|
"label",
|
|
489
489
|
"active"
|
|
490
490
|
]),
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
icon:
|
|
494
|
-
label:
|
|
495
|
-
active:
|
|
496
|
-
onClick:
|
|
491
|
+
b(Z),
|
|
492
|
+
b(X, {
|
|
493
|
+
icon: g(I),
|
|
494
|
+
label: g(l).paragraphEditor.alignLeft,
|
|
495
|
+
active: t.editor.isActive({ textAlign: "left" }),
|
|
496
|
+
onClick: r[11] ||= (e) => t.editor.chain().focus().setTextAlign("left").run()
|
|
497
497
|
}, null, 8, [
|
|
498
498
|
"icon",
|
|
499
499
|
"label",
|
|
500
500
|
"active"
|
|
501
501
|
]),
|
|
502
|
-
|
|
503
|
-
icon:
|
|
504
|
-
label:
|
|
505
|
-
active:
|
|
506
|
-
onClick:
|
|
502
|
+
b(X, {
|
|
503
|
+
icon: g(ie),
|
|
504
|
+
label: g(l).paragraphEditor.alignCenter,
|
|
505
|
+
active: t.editor.isActive({ textAlign: "center" }),
|
|
506
|
+
onClick: r[12] ||= (e) => t.editor.chain().focus().setTextAlign("center").run()
|
|
507
507
|
}, null, 8, [
|
|
508
508
|
"icon",
|
|
509
509
|
"label",
|
|
510
510
|
"active"
|
|
511
511
|
]),
|
|
512
|
-
|
|
513
|
-
icon:
|
|
514
|
-
label:
|
|
515
|
-
active:
|
|
516
|
-
onClick:
|
|
512
|
+
b(X, {
|
|
513
|
+
icon: g(re),
|
|
514
|
+
label: g(l).paragraphEditor.alignRight,
|
|
515
|
+
active: t.editor.isActive({ textAlign: "right" }),
|
|
516
|
+
onClick: r[13] ||= (e) => t.editor.chain().focus().setTextAlign("right").run()
|
|
517
517
|
}, null, 8, [
|
|
518
518
|
"icon",
|
|
519
519
|
"label",
|
|
520
520
|
"active"
|
|
521
521
|
]),
|
|
522
|
-
|
|
523
|
-
|
|
522
|
+
b(Z),
|
|
523
|
+
b(Q, {
|
|
524
524
|
"model-value": N(),
|
|
525
|
-
options:
|
|
526
|
-
label:
|
|
525
|
+
options: g(B),
|
|
526
|
+
label: g(l).paragraphEditor.lineHeight,
|
|
527
527
|
placeholder: "LH",
|
|
528
528
|
"width-class": "tpl:w-16",
|
|
529
529
|
"onUpdate:modelValue": F
|
|
@@ -532,10 +532,10 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
532
532
|
"options",
|
|
533
533
|
"label"
|
|
534
534
|
]),
|
|
535
|
-
|
|
535
|
+
b(Q, {
|
|
536
536
|
"model-value": C("letterSpacing"),
|
|
537
|
-
options:
|
|
538
|
-
label:
|
|
537
|
+
options: g(z),
|
|
538
|
+
label: g(l).paragraphEditor.letterSpacing,
|
|
539
539
|
placeholder: "LS",
|
|
540
540
|
"width-class": "tpl:w-20",
|
|
541
541
|
"onUpdate:modelValue": L
|
|
@@ -544,46 +544,46 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
544
544
|
"options",
|
|
545
545
|
"label"
|
|
546
546
|
]),
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
icon:
|
|
550
|
-
label:
|
|
551
|
-
onClick:
|
|
547
|
+
b(Z),
|
|
548
|
+
b(X, {
|
|
549
|
+
icon: g(U),
|
|
550
|
+
label: g(l).paragraphEditor.clearFormatting,
|
|
551
|
+
onClick: r[14] ||= (e) => t.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
552
552
|
}, null, 8, ["icon", "label"]),
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
553
|
+
b(Z),
|
|
554
|
+
b(le, { onInsert: S }),
|
|
555
|
+
t.canRequestMergeTag ? (e(), d(f, { key: 0 }, [b(Z), u("button", {
|
|
556
556
|
type: "button",
|
|
557
557
|
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)]",
|
|
558
|
-
"aria-label":
|
|
559
|
-
title:
|
|
560
|
-
onClick:
|
|
561
|
-
}, [
|
|
558
|
+
"aria-label": g(l).mergeTag.add,
|
|
559
|
+
title: g(l).mergeTag.add,
|
|
560
|
+
onClick: r[15] ||= (e) => i("add-merge-tag")
|
|
561
|
+
}, [b(g(ne), {
|
|
562
562
|
size: 16,
|
|
563
563
|
"stroke-width": 2
|
|
564
|
-
}),
|
|
565
|
-
])], 64)) : (
|
|
564
|
+
}), a(" " + v(g(l).mergeTag.add), 1)], 8, Ce)], 64)) : p("", !0)
|
|
565
|
+
])], 64)) : (e(), d("div", we, [b(g(te), {
|
|
566
566
|
class: "tpl-spinner",
|
|
567
567
|
size: 14,
|
|
568
568
|
"stroke-width": 2
|
|
569
|
-
}),
|
|
569
|
+
}), a(" " + v(g(l).errors.editorLoading), 1)]))], 12, _e)]));
|
|
570
570
|
}
|
|
571
|
-
}), Ee = { class: "tpl-text-editor-wrapper tpl:relative" }, De = /* @__PURE__ */
|
|
571
|
+
}), Ee = { class: "tpl-text-editor-wrapper tpl:relative" }, De = /* @__PURE__ */ s({
|
|
572
572
|
__name: "ParagraphEditor",
|
|
573
573
|
props: {
|
|
574
574
|
block: {},
|
|
575
575
|
toolbarPosition: {}
|
|
576
576
|
},
|
|
577
577
|
emits: ["done"],
|
|
578
|
-
setup(
|
|
579
|
-
let
|
|
580
|
-
blockId: () =>
|
|
581
|
-
blockContent: () =>
|
|
582
|
-
onDone: () =>
|
|
578
|
+
setup(t, { emit: r }) {
|
|
579
|
+
let i = t, a = r, { editor: o, EditorContent: s, isLoading: c, initError: l, retry: u, showLinkDialog: f, linkUrl: p, linkDialogRef: m, canRequestMergeTag: h, openLinkDialog: _, insertLink: v, removeLink: y, closeLinkDialog: x, handleLinkKeydown: S, handleAddMergeTag: w } = C({
|
|
580
|
+
blockId: () => i.block.id,
|
|
581
|
+
blockContent: () => i.block.content,
|
|
582
|
+
onDone: () => a("done"),
|
|
583
583
|
editorName: "ParagraphEditor",
|
|
584
584
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
585
585
|
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([
|
|
586
|
-
import("./dist-
|
|
586
|
+
import("./dist-Pk4MhWMP.js").then((e) => e.r),
|
|
587
587
|
import("./dist-D90y8dvT.js"),
|
|
588
588
|
import("./dist-DDJIWTRY.js"),
|
|
589
589
|
import("./dist-KoBJjK1G.js"),
|
|
@@ -594,7 +594,7 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
594
594
|
import("./dist-D6uC2xhi.js"),
|
|
595
595
|
import("./dist-wzMIGj-D.js"),
|
|
596
596
|
import("./dist-DjviJBCi.js"),
|
|
597
|
-
import("./extensions-
|
|
597
|
+
import("./extensions-BF39Siqk.js")
|
|
598
598
|
]);
|
|
599
599
|
return {
|
|
600
600
|
TiptapEditor: a,
|
|
@@ -638,14 +638,14 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
640
|
});
|
|
641
|
-
return (
|
|
642
|
-
|
|
643
|
-
editor:
|
|
644
|
-
"toolbar-position":
|
|
645
|
-
"is-loading":
|
|
646
|
-
"can-request-merge-tag": h
|
|
647
|
-
onOpenLinkDialog:
|
|
648
|
-
onAddMergeTag:
|
|
641
|
+
return (r, i) => (e(), d("div", Ee, [
|
|
642
|
+
b(Te, {
|
|
643
|
+
editor: g(o),
|
|
644
|
+
"toolbar-position": t.toolbarPosition,
|
|
645
|
+
"is-loading": g(c),
|
|
646
|
+
"can-request-merge-tag": g(h),
|
|
647
|
+
onOpenLinkDialog: g(_),
|
|
648
|
+
onAddMergeTag: g(w)
|
|
649
649
|
}, null, 8, [
|
|
650
650
|
"editor",
|
|
651
651
|
"toolbar-position",
|
|
@@ -654,12 +654,12 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
654
654
|
"onOpenLinkDialog",
|
|
655
655
|
"onAddMergeTag"
|
|
656
656
|
]),
|
|
657
|
-
|
|
658
|
-
editor:
|
|
659
|
-
"editor-content":
|
|
660
|
-
"is-loading":
|
|
661
|
-
"init-error":
|
|
662
|
-
onRetry:
|
|
657
|
+
b(F, {
|
|
658
|
+
editor: g(o),
|
|
659
|
+
"editor-content": g(s),
|
|
660
|
+
"is-loading": g(c),
|
|
661
|
+
"init-error": g(l),
|
|
662
|
+
onRetry: g(u)
|
|
663
663
|
}, null, 8, [
|
|
664
664
|
"editor",
|
|
665
665
|
"editor-content",
|
|
@@ -667,17 +667,17 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
667
667
|
"init-error",
|
|
668
668
|
"onRetry"
|
|
669
669
|
]),
|
|
670
|
-
|
|
671
|
-
visible:
|
|
672
|
-
"is-editing-link":
|
|
673
|
-
"dialog-ref":
|
|
674
|
-
"onUpdate:dialogRef":
|
|
675
|
-
"link-url":
|
|
676
|
-
"onUpdate:linkUrl":
|
|
677
|
-
onClose:
|
|
678
|
-
onInsert:
|
|
679
|
-
onRemove:
|
|
680
|
-
onKeydown:
|
|
670
|
+
b(N, {
|
|
671
|
+
visible: g(f),
|
|
672
|
+
"is-editing-link": g(o)?.isActive("link") ?? !1,
|
|
673
|
+
"dialog-ref": g(m),
|
|
674
|
+
"onUpdate:dialogRef": i[0] ||= (e) => n(m) ? m.value = e : null,
|
|
675
|
+
"link-url": g(p),
|
|
676
|
+
"onUpdate:linkUrl": i[1] ||= (e) => n(p) ? p.value = e : null,
|
|
677
|
+
onClose: g(x),
|
|
678
|
+
onInsert: g(v),
|
|
679
|
+
onRemove: g(y),
|
|
680
|
+
onKeydown: g(S)
|
|
681
681
|
}, null, 8, [
|
|
682
682
|
"visible",
|
|
683
683
|
"is-editing-link",
|