@aswin.dev/editor 0.7.0 → 0.7.1
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/README.md +3 -3
- package/dist/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-COL6Wm7p.js} +37 -37
- package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-DWGPVtvC.js} +68 -68
- package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-duUFSfDf.js} +22 -22
- package/dist/{BlockA11yBadge-CXDLqkcJ.js → BlockA11yBadge-Qs6HtXid.js} +12 -12
- package/dist/CloudEditor-CFldoCOb.js +1207 -0
- package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-Bw-lbt61.js} +21 -21
- package/dist/CommentsSidebar-BaD5F53-.js +436 -0
- package/dist/CountdownBlock-DaYGxKqo.js +92 -0
- package/dist/CountdownToolbar-Dg4F8MTk.js +210 -0
- package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-BSH7uNP_.js} +58 -58
- package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-Ba2pfF57.js} +2 -2
- package/dist/{ModuleBrowserModal-DrUFMTDx.js → ModuleBrowserModal-6phxZSKI.js} +80 -80
- package/dist/ModulePreviewCanvas-BW8L3eQX.js +108 -0
- package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-BpUzQOJt.js} +87 -87
- package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-DNSzAB-I.js} +182 -182
- package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-CrqPQdnk.js} +38 -38
- package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-zMQTpez7.js} +28 -28
- package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-Do-A5rYU.js} +45 -50
- package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-CS7o62zS.js} +75 -75
- package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-DGj_9V1u.js} +28 -28
- package/dist/{TitleEditor-fStSADI-.js → TitleEditor-C7IDnAoS.js} +68 -68
- package/dist/{TplModal-BwSfxIHf.js → TplModal-BAsVzcTb.js} +14 -14
- package/dist/{accessibility-e8JYu_zd.js → accessibility-BU09xZrQ.js} +1 -1
- package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-C6LDKvmd.js} +19 -5
- package/dist/bundle-stats.json +7 -7
- package/dist/{check-Da05j8yl.js → check-DJrpDKO_.js} +1 -1
- package/dist/{chevron-down-R2uY34iD.js → chevron-down-C5oBUhT8.js} +1 -1
- package/dist/chevron-right-BqCptpdp.js +10 -0
- package/dist/{circle-alert-DZuGWPX-.js → circle-alert-ZQQc98HC.js} +1 -1
- package/dist/{clock-CRp2sIub.js → clock-ik2pRJKG.js} +1 -1
- package/dist/{cloud-DEk_b4CR.js → cloud-6ZmAvF0j.js} +485 -427
- package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-ClREiSx3.js} +6 -6
- package/dist/{de-Brqvgr43.js → de-DWcgp-7T.js} +209 -1
- package/dist/{dist-BaQIYPsn.js → dist-BUzw1buG.js} +1 -1
- package/dist/{dist-DjviJBCi.js → dist-BZyY-SS4.js} +1 -1
- package/dist/{dist-D6uC2xhi.js → dist-BadNx4qo.js} +1 -1
- package/dist/{dist-aRzjfSRN.js → dist-BesOh2mk.js} +1 -1
- package/dist/{dist-D90y8dvT.js → dist-Bz3M4RXG.js} +3 -3
- package/dist/dist-C04s_fLA.js +563 -0
- package/dist/{dist-DDJIWTRY.js → dist-C3T2AKtB.js} +1 -1
- package/dist/{dist-BFawx6IS.js → dist-C9ckKEZL.js} +51 -51
- package/dist/{dist-us-RpCWN.js → dist-CBItRG-Z.js} +1 -1
- package/dist/{dist-wzMIGj-D.js → dist-COSzWQUs.js} +1 -1
- package/dist/dist-CivF9P8b.js +382 -0
- package/dist/{dist-Cp0zXPAD.js → dist-DtiDUrX-.js} +1 -1
- package/dist/{dist-KoBJjK1G.js → dist-Dzt5foyL.js} +1 -1
- package/dist/{en-WDVp87TE.js → en-Cxd4fhNm.js} +209 -1
- package/dist/{extensions-CUcl9Ok4.js → extensions-D__hOlV1.js} +106 -106
- package/dist/{image-up-MBZKKg9p.js → image-up-DT7gcJLN.js} +1 -1
- package/dist/index.d.ts +88 -11
- package/dist/{info-CJEC7piy.js → info-BSPGcsSM.js} +1 -1
- package/dist/keys-CvX8D-8C.js +10 -0
- package/dist/{loader-circle-DsY5Yg33.js → loader-circle-Balo8p3d.js} +1 -1
- package/dist/{message-circle-yElBbR2C.js → message-circle-B39qAHxs.js} +1 -1
- package/dist/pencil-BZJPNYWR.js +10 -0
- package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-DwDqGUM0.js} +1 -1
- package/dist/{scan-line-D0vcUekt.js → scan-line-CzfFJO1o.js} +1 -1
- package/dist/{send-DH4oDQqC.js → send-D2eSo4GH.js} +1 -1
- package/dist/{shield-check-CfJgs2Hd.js → shield-check-jkpgcC0-.js} +1 -1
- package/dist/{sparkles-CvRXGqFs.js → sparkles-Chm5CZfb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styleConstants-34eUKPOZ.js +55 -0
- package/dist/styles-B4tjX5SP.js +5224 -0
- package/dist/templatical-editor.js +189 -126
- package/dist/{text-align-start-BT9VUDxK.js → text-align-start-CzBnJsW8.js} +1 -1
- package/dist/{trash-2-DbP2Y6t2.js → trash-2-CtK2apEH.js} +1 -1
- package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-KpDVNbpn.js} +1 -1
- package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-DOKSZql1.js} +2 -2
- package/dist/{useEditorCore-C6ost42Q.js → useEditorCore-wslttMH-.js} +2425 -2250
- package/dist/{useI18n-lb2DHDiu.js → useI18n-C2xQZ6K9.js} +2 -2
- package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-DX0XG5V9.js} +5 -5
- package/dist/{vue.runtime.esm-bundler-DpvJL-nX.js → vue.runtime.esm-bundler-CjauPXjj.js} +1 -1
- package/dist/{x-u2oVmjN_.js → x-BkaOMosX.js} +1 -1
- package/package.json +10 -10
- package/dist/CloudEditor-BCz1ZTYC.js +0 -1172
- package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
- package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
- package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
- package/dist/ModulePreviewCanvas-CHdOwV_4.js +0 -106
- package/dist/cdn/chunks/AccessibilityPanel-B6DOjojm.js +0 -97
- package/dist/cdn/chunks/AccessibilityPanel-B6DOjojm.js.map +0 -1
- package/dist/cdn/chunks/AiFeatureMenu-qEdB2fZJ.js +0 -59
- package/dist/cdn/chunks/AiFeatureMenu-qEdB2fZJ.js.map +0 -1
- package/dist/cdn/chunks/BlockA11yBadge-DcEZftf6.js +0 -33
- package/dist/cdn/chunks/BlockA11yBadge-DcEZftf6.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js +0 -1143
- package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js.map +0 -1
- package/dist/cdn/chunks/CollaboratorBar--nO7TX6b.js +0 -51
- package/dist/cdn/chunks/CollaboratorBar--nO7TX6b.js.map +0 -1
- package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js +0 -93
- package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
- package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js.map +0 -1
- package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js +0 -195
- package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js.map +0 -1
- package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js +0 -107
- package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js.map +0 -1
- package/dist/cdn/chunks/NumberWithSuffix-CE3NrZhH.js +0 -423
- package/dist/cdn/chunks/NumberWithSuffix-CE3NrZhH.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-B6Ygu-Mq.js +0 -544
- package/dist/cdn/chunks/ParagraphEditor-B6Ygu-Mq.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-DL_y2SrR.js +0 -106
- package/dist/cdn/chunks/RichTextEditorContent-DL_y2SrR.js.map +0 -1
- package/dist/cdn/chunks/SaveModuleDialog-B0TnO_o9.js +0 -119
- package/dist/cdn/chunks/SaveModuleDialog-B0TnO_o9.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-BHpfxvwy.js +0 -171
- package/dist/cdn/chunks/TitleEditor-BHpfxvwy.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js +0 -22
- package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js.map +0 -1
- package/dist/cdn/chunks/de-Ce-LbJ2J.js +0 -89
- package/dist/cdn/chunks/de-Ce-LbJ2J.js.map +0 -1
- package/dist/cdn/chunks/de-D8CnZxV9.js +0 -523
- package/dist/cdn/chunks/de-D8CnZxV9.js.map +0 -1
- package/dist/cdn/chunks/de-RQrZR56a.js +0 -209
- package/dist/cdn/chunks/de-RQrZR56a.js.map +0 -1
- package/dist/cdn/chunks/draggable-Bcb86AsV.js +0 -11572
- package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +0 -1
- package/dist/cdn/chunks/emojiData-EMFlj6FJ.js +0 -19
- package/dist/cdn/chunks/emojiData-EMFlj6FJ.js.map +0 -1
- package/dist/cdn/chunks/en-8FHaQv4V.js +0 -523
- package/dist/cdn/chunks/en-8FHaQv4V.js.map +0 -1
- package/dist/cdn/chunks/en-Bl1ecfRF.js +0 -209
- package/dist/cdn/chunks/en-Bl1ecfRF.js.map +0 -1
- package/dist/cdn/chunks/en-DiCWK5fG.js +0 -89
- package/dist/cdn/chunks/en-DiCWK5fG.js.map +0 -1
- package/dist/cdn/chunks/extensions-DIxF31tA.js +0 -598
- package/dist/cdn/chunks/extensions-DIxF31tA.js.map +0 -1
- package/dist/cdn/chunks/features-DEMb13KS.js +0 -6814
- package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
- package/dist/cdn/chunks/icons-CsLTcirh.js +0 -700
- package/dist/cdn/chunks/icons-CsLTcirh.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-lQbkge2E.js +0 -3279
- package/dist/cdn/chunks/liquid.browser-lQbkge2E.js.map +0 -1
- package/dist/cdn/chunks/media-library-CVaNvhpM.js +0 -6014
- package/dist/cdn/chunks/media-library-CVaNvhpM.js.map +0 -1
- package/dist/cdn/chunks/pusher-CDbNlZBE.js +0 -2508
- package/dist/cdn/chunks/pusher-CDbNlZBE.js.map +0 -1
- package/dist/cdn/chunks/quality-BaBfc54_.js +0 -1456
- package/dist/cdn/chunks/quality-BaBfc54_.js.map +0 -1
- package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js +0 -32
- package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js.map +0 -1
- package/dist/cdn/chunks/renderer-CUxvx7ro.js +0 -548
- package/dist/cdn/chunks/renderer-CUxvx7ro.js.map +0 -1
- package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +0 -20
- package/dist/cdn/chunks/src-CRaqN-p8.js +0 -497
- package/dist/cdn/chunks/src-CRaqN-p8.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-DP1VOca8.js +0 -57
- package/dist/cdn/chunks/styleConstants-DP1VOca8.js.map +0 -1
- package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
- package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
- package/dist/cdn/chunks/tiptap-ZhwKyFp7.js +0 -14654
- package/dist/cdn/chunks/tiptap-ZhwKyFp7.js.map +0 -1
- package/dist/cdn/editor.css +0 -2
- package/dist/cdn/editor.js +0 -250
- package/dist/cdn/editor.js.map +0 -1
- package/dist/dist-B1IR0bpH.js +0 -326
- package/dist/dist-DJmnUmW9.js +0 -362
- package/dist/keys-ciNfSSGj.js +0 -10
- package/dist/styleConstants-fWzlIIwN.js +0 -55
- package/dist/styles-DEXEkBvg.js +0 -3176
- /package/dist/{_plugin-vue_export-helper-B0hnzhyu.js → _plugin-vue_export-helper-BVAJ4lgT.js} +0 -0
- /package/dist/{de-DCaaCE5s.js → de-GOtR9DwW.js} +0 -0
- /package/dist/{dist-iLBdeBDR.js → dist-DXa1uAMh.js} +0 -0
- /package/dist/{emojiData-PQyVa4bU.js → emojiData-DrBuvEoP.js} +0 -0
- /package/dist/{en-DXCyK4-X.js → en-dFFQVzNn.js} +0 -0
- /package/dist/{formatRelativeTime-BOEf47hq.js → formatRelativeTime-BhhO8yCl.js} +0 -0
- /package/dist/{liquid.browser-CdMv1BTn.js → liquid.browser-BvCyLQII.js} +0 -0
- /package/dist/{readableTextColor-CY3SiRnt.js → readableTextColor-DVuzNX1y.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as T } from "./dist-
|
|
4
|
-
import {
|
|
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-
|
|
11
|
-
import { t as L } from "./_plugin-vue_export-helper-
|
|
12
|
-
import { a as R, o as z, s as B } from "./styleConstants-
|
|
1
|
+
import { At as e, C as t, D as n, F as r, Ft as i, N as a, R as o, Y as s, _ as c, b as l, d as u, et as d, f, g as p, h as m, jt as h, m as g, p as _, st as v, u as y, v as b, x } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
+
import { T as S, w as C, x as w } from "./useEditorCore-wslttMH-.js";
|
|
3
|
+
import { t as T } from "./dist-CivF9P8b.js";
|
|
4
|
+
import { A as E, D, g as O, k } from "./keys-CvX8D-8C.js";
|
|
5
|
+
import { t as A } from "./useI18n-C2xQZ6K9.js";
|
|
6
|
+
import { t as j } from "./createLucideIcon-ClREiSx3.js";
|
|
7
|
+
import { a as ee, i as M, n as N, r as P, t as F } from "./RichTextEditorContent-CrqPQdnk.js";
|
|
8
|
+
import { t as te } from "./loader-circle-Balo8p3d.js";
|
|
9
|
+
import { t as ne } from "./scan-line-CzfFJO1o.js";
|
|
10
|
+
import { n as re, r as ie, t as I } from "./text-align-start-CzBnJsW8.js";
|
|
11
|
+
import { t as L } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
|
|
12
|
+
import { a as R, o as z, s as B } from "./styleConstants-34eUKPOZ.js";
|
|
13
13
|
var V = j("list-ordered", [
|
|
14
14
|
["path", {
|
|
15
15
|
d: "M11 5h10",
|
|
@@ -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__ */ t({
|
|
165
165
|
__name: "EmojiPickerDropdown",
|
|
166
166
|
emits: ["insert"],
|
|
167
167
|
setup(t, { emit: n }) {
|
|
168
|
-
let
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
let o = n, { categories: s, isOpen: l, toggle: p, close: h } = C(), { t: _, format: w } = A(), E = d(null), D = d(null);
|
|
169
|
+
S(E, g(() => l.value)), T(D, () => {
|
|
170
|
+
l.value && h();
|
|
171
171
|
});
|
|
172
172
|
function O(e) {
|
|
173
|
-
|
|
173
|
+
o("insert", e), h();
|
|
174
174
|
}
|
|
175
|
-
return (t, n) => (
|
|
175
|
+
return (t, n) => (a(), b("div", {
|
|
176
176
|
ref_key: "rootRef",
|
|
177
177
|
ref: D,
|
|
178
178
|
class: "tpl:relative"
|
|
179
|
-
}, [
|
|
179
|
+
}, [m("button", {
|
|
180
180
|
type: "button",
|
|
181
|
-
class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active":
|
|
182
|
-
"aria-label":
|
|
183
|
-
title:
|
|
184
|
-
"aria-expanded":
|
|
181
|
+
class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": v(l) }]),
|
|
182
|
+
"aria-label": v(_).paragraphEditor.insertEmoji,
|
|
183
|
+
title: v(_).paragraphEditor.insertEmoji,
|
|
184
|
+
"aria-expanded": v(l),
|
|
185
185
|
"aria-haspopup": "dialog",
|
|
186
186
|
"aria-controls": "tpl-emoji-picker",
|
|
187
|
-
onClick: n[0] ||= (...e) =>
|
|
188
|
-
}, [
|
|
187
|
+
onClick: n[0] ||= (...e) => v(p) && v(p)(...e)
|
|
188
|
+
}, [x(v(W), {
|
|
189
189
|
size: 16,
|
|
190
190
|
"stroke-width": 2
|
|
191
|
-
})], 10, Y),
|
|
191
|
+
})], 10, Y), v(l) ? (a(), b("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": v(_).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
|
-
}, [(
|
|
201
|
+
onKeydown: n[1] ||= y(u((...e) => v(h) && v(h)(...e), ["stop", "prevent"]), ["esc"])
|
|
202
|
+
}, [(a(!0), b(f, null, r(v(s), (e) => (a(), b("div", {
|
|
203
203
|
key: e.key,
|
|
204
204
|
class: "tpl:mb-2 tpl:last:mb-0"
|
|
205
|
-
}, [
|
|
205
|
+
}, [m("div", oe, i(v(_).emoji[e.key]), 1), m("div", se, [(a(!0), b(f, null, r(e.emojis, (e) => (a(), b("button", {
|
|
206
206
|
key: e,
|
|
207
207
|
type: "button",
|
|
208
|
-
"aria-label":
|
|
208
|
+
"aria-label": v(w)(v(_).paragraphEditor.emojiItemLabel, { emoji: e }),
|
|
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
210
|
onClick: (t) => O(e)
|
|
211
|
-
}, i(e), 9, ce))), 128))])]))), 128))], 40, ae)) :
|
|
211
|
+
}, i(e), 9, ce))), 128))])]))), 128))], 40, ae)) : c("", !0)], 512));
|
|
212
212
|
}
|
|
213
213
|
}), ue = [
|
|
214
214
|
"aria-label",
|
|
215
215
|
"title",
|
|
216
216
|
"aria-pressed"
|
|
217
|
-
], X = /* @__PURE__ */
|
|
217
|
+
], X = /* @__PURE__ */ t({
|
|
218
218
|
__name: "ToolbarIconButton",
|
|
219
219
|
props: {
|
|
220
220
|
icon: {},
|
|
@@ -224,13 +224,13 @@ var V = j("list-ordered", [
|
|
|
224
224
|
size: {}
|
|
225
225
|
},
|
|
226
226
|
setup(t) {
|
|
227
|
-
return (
|
|
227
|
+
return (n, r) => (a(), b("button", {
|
|
228
228
|
type: "button",
|
|
229
229
|
class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": t.active }]),
|
|
230
230
|
"aria-label": t.label,
|
|
231
231
|
title: t.label,
|
|
232
232
|
"aria-pressed": t.active ? "true" : "false"
|
|
233
|
-
}, [(
|
|
233
|
+
}, [(a(), p(o(t.icon), {
|
|
234
234
|
size: t.size ?? 16,
|
|
235
235
|
"stroke-width": t.strokeWidth ?? 2
|
|
236
236
|
}, null, 8, ["size", "stroke-width"]))], 10, ue));
|
|
@@ -240,13 +240,13 @@ var V = j("list-ordered", [
|
|
|
240
240
|
"aria-hidden": "true"
|
|
241
241
|
};
|
|
242
242
|
function pe(e, t) {
|
|
243
|
-
return
|
|
243
|
+
return a(), b("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__ */ t({
|
|
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
|
|
260
|
+
let o = n;
|
|
261
261
|
function s(e) {
|
|
262
|
-
|
|
262
|
+
o("update:modelValue", e.target.value);
|
|
263
263
|
}
|
|
264
264
|
function c(e) {
|
|
265
265
|
return typeof e == "string" ? e : e.value;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function l(e) {
|
|
268
268
|
return typeof e == "string" ? e : e.label;
|
|
269
269
|
}
|
|
270
|
-
return (n,
|
|
270
|
+
return (n, o) => (a(), b("select", {
|
|
271
271
|
class: e(["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
275
|
onChange: s
|
|
276
|
-
}, [
|
|
276
|
+
}, [m("option", he, i(t.placeholder ?? ""), 1), (a(!0), b(f, null, r(t.options, (e) => (a(), b("option", {
|
|
277
277
|
key: c(e),
|
|
278
278
|
value: c(e)
|
|
279
|
-
}, i(
|
|
279
|
+
}, i(l(e)), 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__ */ t({
|
|
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(e, { emit:
|
|
302
|
-
let
|
|
301
|
+
setup(e, { emit: t }) {
|
|
302
|
+
let r = e, o = t, s = n(D, null), u = n(k, null), d = E(O, "ParagraphToolbar"), { t: g } = A(), y = d.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 (t, n) => (
|
|
340
|
-
"data-tpl-theme":
|
|
339
|
+
return (t, n) => (a(), p(_, { to: "body" }, [m("div", {
|
|
340
|
+
"data-tpl-theme": v(u),
|
|
341
341
|
role: "toolbar",
|
|
342
|
-
"aria-label":
|
|
342
|
+
"aria-label": v(g).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
|
-
...
|
|
344
|
+
style: h({
|
|
345
|
+
...v(s),
|
|
346
346
|
top: `${e.toolbarPosition.top}px`,
|
|
347
347
|
left: `${e.toolbarPosition.left}px`,
|
|
348
348
|
transform: "translateY(-100%)",
|
|
349
349
|
flexDirection: "column"
|
|
350
350
|
})
|
|
351
|
-
}, [!e.isLoading && e.editor ? (
|
|
352
|
-
|
|
351
|
+
}, [!e.isLoading && e.editor ? (a(), b(f, { key: 0 }, [m("div", ve, [
|
|
352
|
+
x(Q, {
|
|
353
353
|
"model-value": C("fontFamily"),
|
|
354
|
-
options:
|
|
355
|
-
label:
|
|
356
|
-
placeholder:
|
|
354
|
+
options: v(y),
|
|
355
|
+
label: v(g).paragraphEditor.fontFamily,
|
|
356
|
+
placeholder: v(g).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
|
+
x(Q, {
|
|
366
366
|
"model-value": C("fontSize"),
|
|
367
|
-
options:
|
|
368
|
-
label:
|
|
369
|
-
placeholder:
|
|
367
|
+
options: v(R),
|
|
368
|
+
label: v(g).paragraphEditor.fontSize,
|
|
369
|
+
placeholder: v(g).paragraphEditor.defaultSize,
|
|
370
370
|
"width-class": "tpl:w-20",
|
|
371
371
|
"onUpdate:modelValue": T
|
|
372
372
|
}, null, 8, [
|
|
@@ -375,28 +375,28 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
375
375
|
"label",
|
|
376
376
|
"placeholder"
|
|
377
377
|
]),
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
x(Z),
|
|
379
|
+
m("div", ye, [m("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:
|
|
382
|
+
value: C("color") || v("#000000"),
|
|
383
|
+
"aria-label": v(g).paragraphEditor.textColor,
|
|
384
|
+
title: v(g).paragraphEditor.textColor,
|
|
385
385
|
onInput: n[0] ||= (e) => j(e.target.value)
|
|
386
386
|
}, null, 40, be)]),
|
|
387
|
-
|
|
387
|
+
m("div", $, [m("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:
|
|
390
|
+
style: h({ backgroundColor: W() || "var(--tpl-bg)" }),
|
|
391
|
+
value: W() || v("#ffff00"),
|
|
392
|
+
"aria-label": v(g).paragraphEditor.highlightColor,
|
|
393
|
+
title: v(g).paragraphEditor.highlightColor,
|
|
394
394
|
onInput: n[1] ||= (e) => Y(e.target.value)
|
|
395
395
|
}, null, 44, xe)]),
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
icon:
|
|
399
|
-
label:
|
|
396
|
+
x(Z),
|
|
397
|
+
x(X, {
|
|
398
|
+
icon: v(ee),
|
|
399
|
+
label: v(g).paragraphEditor.bold,
|
|
400
400
|
active: e.editor.isActive("bold"),
|
|
401
401
|
"stroke-width": 2.5,
|
|
402
402
|
onClick: n[2] ||= (t) => e.editor.chain().focus().toggleBold().run()
|
|
@@ -405,9 +405,9 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
405
405
|
"label",
|
|
406
406
|
"active"
|
|
407
407
|
]),
|
|
408
|
-
|
|
409
|
-
icon:
|
|
410
|
-
label:
|
|
408
|
+
x(X, {
|
|
409
|
+
icon: v(M),
|
|
410
|
+
label: v(g).paragraphEditor.italic,
|
|
411
411
|
active: e.editor.isActive("italic"),
|
|
412
412
|
onClick: n[3] ||= (t) => e.editor.chain().focus().toggleItalic().run()
|
|
413
413
|
}, null, 8, [
|
|
@@ -415,9 +415,9 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
415
415
|
"label",
|
|
416
416
|
"active"
|
|
417
417
|
]),
|
|
418
|
-
|
|
419
|
-
icon:
|
|
420
|
-
label:
|
|
418
|
+
x(X, {
|
|
419
|
+
icon: v(J),
|
|
420
|
+
label: v(g).paragraphEditor.underline,
|
|
421
421
|
active: e.editor.isActive("underline"),
|
|
422
422
|
onClick: n[4] ||= (t) => e.editor.chain().focus().toggleUnderline().run()
|
|
423
423
|
}, null, 8, [
|
|
@@ -425,9 +425,9 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
425
425
|
"label",
|
|
426
426
|
"active"
|
|
427
427
|
]),
|
|
428
|
-
|
|
429
|
-
icon:
|
|
430
|
-
label:
|
|
428
|
+
x(X, {
|
|
429
|
+
icon: v(G),
|
|
430
|
+
label: v(g).paragraphEditor.strikethrough,
|
|
431
431
|
active: e.editor.isActive("strike"),
|
|
432
432
|
onClick: n[5] ||= (t) => e.editor.chain().focus().toggleStrike().run()
|
|
433
433
|
}, null, 8, [
|
|
@@ -435,10 +435,10 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
435
435
|
"label",
|
|
436
436
|
"active"
|
|
437
437
|
]),
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
icon:
|
|
441
|
-
label:
|
|
438
|
+
x(Z),
|
|
439
|
+
x(X, {
|
|
440
|
+
icon: v(K),
|
|
441
|
+
label: v(g).paragraphEditor.subscript,
|
|
442
442
|
active: e.editor.isActive("subscript"),
|
|
443
443
|
onClick: n[6] ||= (t) => e.editor.chain().focus().toggleSubscript().run()
|
|
444
444
|
}, null, 8, [
|
|
@@ -446,9 +446,9 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
446
446
|
"label",
|
|
447
447
|
"active"
|
|
448
448
|
]),
|
|
449
|
-
|
|
450
|
-
icon:
|
|
451
|
-
label:
|
|
449
|
+
x(X, {
|
|
450
|
+
icon: v(q),
|
|
451
|
+
label: v(g).paragraphEditor.superscript,
|
|
452
452
|
active: e.editor.isActive("superscript"),
|
|
453
453
|
onClick: n[7] ||= (t) => e.editor.chain().focus().toggleSuperscript().run()
|
|
454
454
|
}, null, 8, [
|
|
@@ -456,21 +456,21 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
456
456
|
"label",
|
|
457
457
|
"active"
|
|
458
458
|
]),
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
icon:
|
|
462
|
-
label:
|
|
459
|
+
x(Z),
|
|
460
|
+
x(X, {
|
|
461
|
+
icon: v(P),
|
|
462
|
+
label: v(g).paragraphEditor.addLink,
|
|
463
463
|
active: e.editor.isActive("link"),
|
|
464
|
-
onClick: n[8] ||= (e) =>
|
|
464
|
+
onClick: n[8] ||= (e) => o("open-link-dialog")
|
|
465
465
|
}, null, 8, [
|
|
466
466
|
"icon",
|
|
467
467
|
"label",
|
|
468
468
|
"active"
|
|
469
469
|
])
|
|
470
|
-
]),
|
|
471
|
-
|
|
472
|
-
icon:
|
|
473
|
-
label:
|
|
470
|
+
]), m("div", Se, [
|
|
471
|
+
x(X, {
|
|
472
|
+
icon: v(H),
|
|
473
|
+
label: v(g).paragraphEditor.bulletList,
|
|
474
474
|
active: e.editor.isActive("bulletList"),
|
|
475
475
|
onClick: n[9] ||= (t) => e.editor.chain().focus().toggleBulletList().run()
|
|
476
476
|
}, null, 8, [
|
|
@@ -478,9 +478,9 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
478
478
|
"label",
|
|
479
479
|
"active"
|
|
480
480
|
]),
|
|
481
|
-
|
|
482
|
-
icon:
|
|
483
|
-
label:
|
|
481
|
+
x(X, {
|
|
482
|
+
icon: v(V),
|
|
483
|
+
label: v(g).paragraphEditor.numberedList,
|
|
484
484
|
active: e.editor.isActive("orderedList"),
|
|
485
485
|
onClick: n[10] ||= (t) => e.editor.chain().focus().toggleOrderedList().run()
|
|
486
486
|
}, null, 8, [
|
|
@@ -488,10 +488,10 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
488
488
|
"label",
|
|
489
489
|
"active"
|
|
490
490
|
]),
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
icon:
|
|
494
|
-
label:
|
|
491
|
+
x(Z),
|
|
492
|
+
x(X, {
|
|
493
|
+
icon: v(I),
|
|
494
|
+
label: v(g).paragraphEditor.alignLeft,
|
|
495
495
|
active: e.editor.isActive({ textAlign: "left" }),
|
|
496
496
|
onClick: n[11] ||= (t) => e.editor.chain().focus().setTextAlign("left").run()
|
|
497
497
|
}, null, 8, [
|
|
@@ -499,9 +499,9 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
499
499
|
"label",
|
|
500
500
|
"active"
|
|
501
501
|
]),
|
|
502
|
-
|
|
503
|
-
icon:
|
|
504
|
-
label:
|
|
502
|
+
x(X, {
|
|
503
|
+
icon: v(ie),
|
|
504
|
+
label: v(g).paragraphEditor.alignCenter,
|
|
505
505
|
active: e.editor.isActive({ textAlign: "center" }),
|
|
506
506
|
onClick: n[12] ||= (t) => e.editor.chain().focus().setTextAlign("center").run()
|
|
507
507
|
}, null, 8, [
|
|
@@ -509,9 +509,9 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
509
509
|
"label",
|
|
510
510
|
"active"
|
|
511
511
|
]),
|
|
512
|
-
|
|
513
|
-
icon:
|
|
514
|
-
label:
|
|
512
|
+
x(X, {
|
|
513
|
+
icon: v(re),
|
|
514
|
+
label: v(g).paragraphEditor.alignRight,
|
|
515
515
|
active: e.editor.isActive({ textAlign: "right" }),
|
|
516
516
|
onClick: n[13] ||= (t) => e.editor.chain().focus().setTextAlign("right").run()
|
|
517
517
|
}, null, 8, [
|
|
@@ -519,11 +519,11 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
519
519
|
"label",
|
|
520
520
|
"active"
|
|
521
521
|
]),
|
|
522
|
-
|
|
523
|
-
|
|
522
|
+
x(Z),
|
|
523
|
+
x(Q, {
|
|
524
524
|
"model-value": N(),
|
|
525
|
-
options:
|
|
526
|
-
label:
|
|
525
|
+
options: v(B),
|
|
526
|
+
label: v(g).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
|
+
x(Q, {
|
|
536
536
|
"model-value": C("letterSpacing"),
|
|
537
|
-
options:
|
|
538
|
-
label:
|
|
537
|
+
options: v(z),
|
|
538
|
+
label: v(g).paragraphEditor.letterSpacing,
|
|
539
539
|
placeholder: "LS",
|
|
540
540
|
"width-class": "tpl:w-20",
|
|
541
541
|
"onUpdate:modelValue": L
|
|
@@ -544,31 +544,31 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
544
544
|
"options",
|
|
545
545
|
"label"
|
|
546
546
|
]),
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
icon:
|
|
550
|
-
label:
|
|
547
|
+
x(Z),
|
|
548
|
+
x(X, {
|
|
549
|
+
icon: v(U),
|
|
550
|
+
label: v(g).paragraphEditor.clearFormatting,
|
|
551
551
|
onClick: n[14] ||= (t) => e.editor.chain().focus().clearNodes().unsetAllMarks().run()
|
|
552
552
|
}, null, 8, ["icon", "label"]),
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
e.canRequestMergeTag ? (
|
|
553
|
+
x(Z),
|
|
554
|
+
x(le, { onInsert: S }),
|
|
555
|
+
e.canRequestMergeTag ? (a(), b(f, { key: 0 }, [x(Z), m("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: n[15] ||= (e) =>
|
|
561
|
-
}, [
|
|
558
|
+
"aria-label": v(g).mergeTag.add,
|
|
559
|
+
title: v(g).mergeTag.add,
|
|
560
|
+
onClick: n[15] ||= (e) => o("add-merge-tag")
|
|
561
|
+
}, [x(v(ne), {
|
|
562
562
|
size: 16,
|
|
563
563
|
"stroke-width": 2
|
|
564
|
-
}),
|
|
565
|
-
])], 64)) : (
|
|
564
|
+
}), l(" " + i(v(g).mergeTag.add), 1)], 8, Ce)], 64)) : c("", !0)
|
|
565
|
+
])], 64)) : (a(), b("div", we, [x(v(te), {
|
|
566
566
|
class: "tpl-spinner",
|
|
567
567
|
size: 14,
|
|
568
568
|
"stroke-width": 2
|
|
569
|
-
}),
|
|
569
|
+
}), l(" " + i(v(g).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__ */ t({
|
|
572
572
|
__name: "ParagraphEditor",
|
|
573
573
|
props: {
|
|
574
574
|
block: {},
|
|
@@ -576,25 +576,25 @@ var Z = /* @__PURE__ */ L(de, [["render", pe]]), me = [
|
|
|
576
576
|
},
|
|
577
577
|
emits: ["done"],
|
|
578
578
|
setup(e, { emit: t }) {
|
|
579
|
-
let n = e,
|
|
579
|
+
let n = e, r = t, { editor: i, EditorContent: o, isLoading: c, initError: l, retry: u, showLinkDialog: d, linkUrl: f, linkDialogRef: p, canRequestMergeTag: m, openLinkDialog: h, insertLink: g, removeLink: _, closeLinkDialog: y, handleLinkKeydown: S, handleAddMergeTag: C } = w({
|
|
580
580
|
blockId: () => n.block.id,
|
|
581
581
|
blockContent: () => n.block.content,
|
|
582
|
-
onDone: () =>
|
|
582
|
+
onDone: () => r("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-
|
|
587
|
-
import("./dist-
|
|
588
|
-
import("./dist-
|
|
589
|
-
import("./dist-
|
|
590
|
-
import("./dist-
|
|
591
|
-
import("./dist-
|
|
592
|
-
import("./dist-
|
|
593
|
-
import("./dist-
|
|
594
|
-
import("./dist-
|
|
595
|
-
import("./dist-
|
|
596
|
-
import("./dist-
|
|
597
|
-
import("./extensions-
|
|
586
|
+
import("./dist-C9ckKEZL.js").then((e) => e.r),
|
|
587
|
+
import("./dist-Bz3M4RXG.js"),
|
|
588
|
+
import("./dist-C3T2AKtB.js"),
|
|
589
|
+
import("./dist-Dzt5foyL.js"),
|
|
590
|
+
import("./dist-BUzw1buG.js"),
|
|
591
|
+
import("./dist-BesOh2mk.js"),
|
|
592
|
+
import("./dist-CBItRG-Z.js"),
|
|
593
|
+
import("./dist-DtiDUrX-.js"),
|
|
594
|
+
import("./dist-BadNx4qo.js"),
|
|
595
|
+
import("./dist-COSzWQUs.js"),
|
|
596
|
+
import("./dist-BZyY-SS4.js"),
|
|
597
|
+
import("./extensions-D__hOlV1.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 (t, n) => (
|
|
642
|
-
|
|
643
|
-
editor:
|
|
641
|
+
return (t, n) => (a(), b("div", Ee, [
|
|
642
|
+
x(Te, {
|
|
643
|
+
editor: v(i),
|
|
644
644
|
"toolbar-position": e.toolbarPosition,
|
|
645
|
-
"is-loading":
|
|
646
|
-
"can-request-merge-tag":
|
|
647
|
-
onOpenLinkDialog: h
|
|
648
|
-
onAddMergeTag:
|
|
645
|
+
"is-loading": v(c),
|
|
646
|
+
"can-request-merge-tag": v(m),
|
|
647
|
+
onOpenLinkDialog: v(h),
|
|
648
|
+
onAddMergeTag: v(C)
|
|
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
|
+
x(F, {
|
|
658
|
+
editor: v(i),
|
|
659
|
+
"editor-content": v(o),
|
|
660
|
+
"is-loading": v(c),
|
|
661
|
+
"init-error": v(l),
|
|
662
|
+
onRetry: v(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": n[0] ||= (e) =>
|
|
675
|
-
"link-url":
|
|
676
|
-
"onUpdate:linkUrl": n[1] ||= (e) =>
|
|
677
|
-
onClose:
|
|
678
|
-
onInsert:
|
|
679
|
-
onRemove:
|
|
680
|
-
onKeydown:
|
|
670
|
+
x(N, {
|
|
671
|
+
visible: v(d),
|
|
672
|
+
"is-editing-link": v(i)?.isActive("link") ?? !1,
|
|
673
|
+
"dialog-ref": v(p),
|
|
674
|
+
"onUpdate:dialogRef": n[0] ||= (e) => s(p) ? p.value = e : null,
|
|
675
|
+
"link-url": v(f),
|
|
676
|
+
"onUpdate:linkUrl": n[1] ||= (e) => s(f) ? f.value = e : null,
|
|
677
|
+
onClose: v(y),
|
|
678
|
+
onInsert: v(g),
|
|
679
|
+
onRemove: v(_),
|
|
680
|
+
onKeydown: v(S)
|
|
681
681
|
}, null, 8, [
|
|
682
682
|
"visible",
|
|
683
683
|
"is-editing-link",
|