@templatical/editor 0.6.3 → 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-BCz1ZTYC.js → CloudEditor-_GaYluN7.js} +446 -440
- 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-D2GsEC_n.js → CloudEditor-D2G2nNpQ.js} +429 -423
- package/dist/cdn/chunks/{CloudEditor-D2GsEC_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 +11 -11
- 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,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as _, m as re, v as ie, w as v } from "./keys-
|
|
3
|
-
import { t as y } from "./createLucideIcon-
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { n as
|
|
1
|
+
import { A as e, F as t, L as n, M as r, X as i, _ as a, at as ee, b as o, f as s, h as c, l, m as u, ot as d, p as f, rt as p, st as m, t as h, v as g, w as te, z as ne } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
+
import { O as _, m as re, v as ie, w as v } from "./keys-Bqs_0du9.js";
|
|
3
|
+
import { t as y } from "./createLucideIcon-Di4mqmGn.js";
|
|
4
|
+
import { t as ae } from "./chevron-down-tee-ghFi.js";
|
|
5
|
+
import { t as b } from "./circle-alert-C0L9pUQ4.js";
|
|
6
|
+
import { n as x, t as S } from "./refresh-cw-BNAhAmtL.js";
|
|
7
|
+
import { t as oe } from "./info-DTGrc0Bx.js";
|
|
8
|
+
import { t as C } from "./loader-circle-_9bP23op.js";
|
|
9
|
+
import { t as w } from "./shield-check-C5Gv2cM1.js";
|
|
10
|
+
import { t as T } from "./sparkles-D1IGi_cC.js";
|
|
11
|
+
import { t as se } from "./triangle-alert-DWQySIE2.js";
|
|
12
|
+
import { t as ce } from "./x-Dlaenqta.js";
|
|
13
|
+
import { t as le } from "./LoadingTrack-CFkDkjBb.js";
|
|
14
|
+
import { t as E } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
15
|
+
import { n as D } from "./useCloudI18n-CL_AwWwi.js";
|
|
16
16
|
var O = y("shield-x", [
|
|
17
17
|
["path", {
|
|
18
18
|
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
@@ -85,12 +85,12 @@ var P = {
|
|
|
85
85
|
}, Ee = {
|
|
86
86
|
key: 3,
|
|
87
87
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
88
|
-
}, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /* @__PURE__ */
|
|
88
|
+
}, De = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Oe = { class: "tpl:m-0 tpl:px-4 tpl:pb-2 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, G = /* @__PURE__ */ E(/* @__PURE__ */ o({
|
|
89
89
|
__name: "TemplateScoringPanel",
|
|
90
90
|
props: { visible: { type: Boolean } },
|
|
91
91
|
emits: ["close"],
|
|
92
|
-
setup(
|
|
93
|
-
let
|
|
92
|
+
setup(o, { emit: y }) {
|
|
93
|
+
let E = o, G = y, { t: K } = D(), q = _(re, "TemplateScoringPanel"), J = _(v, "TemplateScoringPanel"), Y = te(ie, []), X = i({
|
|
94
94
|
spam: !0,
|
|
95
95
|
readability: !0,
|
|
96
96
|
accessibility: !0,
|
|
@@ -106,14 +106,14 @@ var P = {
|
|
|
106
106
|
"bestPractices"
|
|
107
107
|
], Ae = {
|
|
108
108
|
spam: O,
|
|
109
|
-
readability:
|
|
110
|
-
accessibility:
|
|
109
|
+
readability: x,
|
|
110
|
+
accessibility: T,
|
|
111
111
|
bestPractices: k
|
|
112
112
|
};
|
|
113
113
|
function Q() {
|
|
114
114
|
J.score(q.content.value, Y);
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
n(() => E.visible, (e) => {
|
|
117
117
|
e && !J.scoringResult.value && !J.isScoring.value && Q();
|
|
118
118
|
});
|
|
119
119
|
async function je(e) {
|
|
@@ -128,7 +128,7 @@ var P = {
|
|
|
128
128
|
function $() {
|
|
129
129
|
return J.scoringResult.value ? Z.reduce((e, t) => e + (J.scoringResult.value?.categories[t]?.findings.length ?? 0), 0) : 0;
|
|
130
130
|
}
|
|
131
|
-
return (
|
|
131
|
+
return (n, i) => (e(), f(h, {
|
|
132
132
|
"enter-active-class": "tpl-scoring-slide-enter-active",
|
|
133
133
|
"enter-from-class": "tpl:translate-x-full",
|
|
134
134
|
"enter-to-class": "tpl:translate-x-0",
|
|
@@ -136,118 +136,118 @@ var P = {
|
|
|
136
136
|
"leave-from-class": "tpl:translate-x-0",
|
|
137
137
|
"leave-to-class": "tpl:translate-x-full"
|
|
138
138
|
}, {
|
|
139
|
-
default:
|
|
139
|
+
default: ne(() => [o.visible ? (e(), c("div", P, [s("div", F, [s("div", I, [g(p(w), {
|
|
140
140
|
size: 13,
|
|
141
141
|
"stroke-width": 2
|
|
142
|
-
}),
|
|
142
|
+
}), s("span", null, m(p(K).scoring.title), 1)]), s("div", L, [p(J).scoringResult.value && !p(J).isScoring.value ? (e(), c("button", {
|
|
143
143
|
key: 0,
|
|
144
144
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
145
|
-
title:
|
|
146
|
-
onClick:
|
|
147
|
-
}, [
|
|
145
|
+
title: p(K).scoring.rescore,
|
|
146
|
+
onClick: i[0] ||= (e) => Q()
|
|
147
|
+
}, [g(p(S), {
|
|
148
148
|
size: 14,
|
|
149
149
|
"stroke-width": 2
|
|
150
|
-
})], 8, R)) :
|
|
150
|
+
})], 8, R)) : u("", !0), s("button", {
|
|
151
151
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
152
|
-
onClick:
|
|
153
|
-
}, [
|
|
152
|
+
onClick: i[1] ||= (e) => G("close")
|
|
153
|
+
}, [g(p(ce), {
|
|
154
154
|
size: 14,
|
|
155
155
|
"stroke-width": 2
|
|
156
|
-
})])])]),
|
|
157
|
-
|
|
156
|
+
})])])]), s("div", z, [p(J).isScoring.value ? (e(), c("div", B, [s("p", V, m(p(K).scoring.scoring), 1), g(le, { class: "tpl:w-3/4" })])) : p(J).error.value && !p(J).scoringResult.value ? (e(), c("div", H, [
|
|
157
|
+
g(p(b), {
|
|
158
158
|
size: 32,
|
|
159
159
|
"stroke-width": 1.5,
|
|
160
160
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
161
161
|
}),
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
s("p", U, m(p(K).scoring.error), 1),
|
|
163
|
+
s("button", {
|
|
164
164
|
class: "tpl:mt-2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-muted)]",
|
|
165
|
-
onClick:
|
|
166
|
-
}, [
|
|
165
|
+
onClick: i[2] ||= (e) => Q()
|
|
166
|
+
}, [g(p(S), {
|
|
167
167
|
size: 12,
|
|
168
168
|
"stroke-width": 2
|
|
169
|
-
}),
|
|
170
|
-
])) :
|
|
171
|
-
|
|
169
|
+
}), a(" " + m(p(K).scoring.rescore), 1)])
|
|
170
|
+
])) : p(J).scoringResult.value ? (e(), c("div", W, [
|
|
171
|
+
s("div", {
|
|
172
172
|
class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
|
|
173
|
-
style:
|
|
173
|
+
style: d({ backgroundColor: p(j)(p(J).scoringResult.value.score) })
|
|
174
174
|
}, [
|
|
175
|
-
|
|
175
|
+
s("span", {
|
|
176
176
|
class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
|
|
177
|
-
style:
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
$() > 0 ? (
|
|
177
|
+
style: d({ color: p(A)(p(J).scoringResult.value.score) })
|
|
178
|
+
}, m(p(J).scoringResult.value.score), 5),
|
|
179
|
+
s("span", ue, m(p(K).scoring.overallScore), 1),
|
|
180
|
+
$() > 0 ? (e(), c("span", de, m($()) + " " + m(p(K).scoring.findings), 1)) : u("", !0)
|
|
181
181
|
], 4),
|
|
182
|
-
|
|
182
|
+
p(J).fixError.value ? (e(), c("div", fe, [g(p(b), {
|
|
183
183
|
size: 14,
|
|
184
184
|
"stroke-width": 2,
|
|
185
185
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
186
|
-
}),
|
|
187
|
-
(
|
|
188
|
-
key:
|
|
186
|
+
}), s("span", null, m(p(K).scoring.fixError), 1)])) : u("", !0),
|
|
187
|
+
(e(), c(l, null, r(Z, (n) => s("div", {
|
|
188
|
+
key: n,
|
|
189
189
|
class: "tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)]"
|
|
190
|
-
}, [
|
|
190
|
+
}, [s("button", {
|
|
191
191
|
class: "tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:gap-2.5 tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100 tpl:bg-[var(--tpl-bg)]",
|
|
192
|
-
onClick: (e) => ke(
|
|
192
|
+
onClick: (e) => ke(n)
|
|
193
193
|
}, [
|
|
194
|
-
(
|
|
194
|
+
(e(), f(t(Ae[n]), {
|
|
195
195
|
size: 14,
|
|
196
196
|
"stroke-width": 2,
|
|
197
|
-
style:
|
|
197
|
+
style: d({ color: p(A)(p(J).scoringResult.value.categories[n].score) })
|
|
198
198
|
}, null, 8, ["style"])),
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
s("span", me, m(p(K).scoring.categories[n]), 1),
|
|
200
|
+
s("span", {
|
|
201
201
|
class: "tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-semibold tpl:tabular-nums",
|
|
202
|
-
style:
|
|
203
|
-
color:
|
|
204
|
-
backgroundColor:
|
|
202
|
+
style: d({
|
|
203
|
+
color: p(A)(p(J).scoringResult.value.categories[n].score),
|
|
204
|
+
backgroundColor: p(j)(p(J).scoringResult.value.categories[n].score)
|
|
205
205
|
})
|
|
206
|
-
},
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
}, m(p(J).scoringResult.value.categories[n].score), 5),
|
|
207
|
+
p(J).scoringResult.value.categories[n].findings.length > 0 ? (e(), c("span", he, m(p(J).scoringResult.value.categories[n].findings.length), 1)) : u("", !0),
|
|
208
|
+
g(p(ae), {
|
|
209
209
|
size: 12,
|
|
210
210
|
"stroke-width": 2,
|
|
211
|
-
class:
|
|
211
|
+
class: ee(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[n] ? "tpl:rotate-0" : "tpl:-rotate-90"])
|
|
212
212
|
}, null, 8, ["class"])
|
|
213
|
-
], 8, pe), X.value[
|
|
214
|
-
key:
|
|
213
|
+
], 8, pe), X.value[n] ? (e(), c("div", ge, [p(J).scoringResult.value.categories[n].findings.length === 0 ? (e(), c("div", _e, m(p(K).scoring.noFindings), 1)) : u("", !0), (e(!0), c(l, null, r(p(J).scoringResult.value.categories[n].findings, (n) => (e(), c("div", {
|
|
214
|
+
key: n.id,
|
|
215
215
|
class: "tpl:border-t tpl:px-3 tpl:py-2.5 first:tpl:border-t-0 tpl:border-[var(--tpl-border-light)]"
|
|
216
|
-
}, [
|
|
216
|
+
}, [s("div", ve, [(e(), f(t(n.severity === "high" ? p(b) : n.severity === "medium" ? p(se) : p(oe)), {
|
|
217
217
|
size: 13,
|
|
218
218
|
"stroke-width": 2,
|
|
219
219
|
class: "tpl:mt-0.5 tpl:shrink-0",
|
|
220
|
-
style:
|
|
221
|
-
}, null, 8, ["style"])),
|
|
222
|
-
|
|
220
|
+
style: d({ color: p(M)(n.severity) })
|
|
221
|
+
}, null, 8, ["style"])), s("div", ye, [
|
|
222
|
+
s("div", be, [s("span", {
|
|
223
223
|
class: "tpl:mt-0.5 tpl:shrink-0 tpl:rounded tpl:px-1 tpl:py-px tpl:text-[10px] tpl:font-medium tpl:leading-tight",
|
|
224
|
-
style:
|
|
225
|
-
color:
|
|
226
|
-
backgroundColor:
|
|
224
|
+
style: d({
|
|
225
|
+
color: p(M)(n.severity),
|
|
226
|
+
backgroundColor: p(N)(n.severity)
|
|
227
227
|
})
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
}, m(p(K).scoring.severity[n.severity]), 5), s("span", xe, m(n.message), 1)]),
|
|
229
|
+
n.suggestion ? (e(), c("p", Se, m(n.suggestion), 1)) : u("", !0),
|
|
230
|
+
n.blockId ? (e(), c("div", Ce, [s("button", {
|
|
231
231
|
class: "tpl-scoring-fix-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded tpl:border tpl:px-3 tpl:py-1.5 tpl:text-[11px] tpl:font-medium tpl:transition-all tpl:duration-150 tpl:disabled:opacity-50 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)]",
|
|
232
232
|
style: { "background-color": "transparent" },
|
|
233
|
-
disabled:
|
|
234
|
-
onClick: (
|
|
235
|
-
}, [
|
|
233
|
+
disabled: p(J).fixingFindingId.value !== null,
|
|
234
|
+
onClick: (e) => je(n)
|
|
235
|
+
}, [p(J).fixingFindingId.value === n.id ? (e(), f(p(C), {
|
|
236
236
|
key: 0,
|
|
237
237
|
class: "tpl-spinner",
|
|
238
238
|
size: 11,
|
|
239
239
|
"stroke-width": 2
|
|
240
|
-
})) : (
|
|
240
|
+
})) : (e(), f(p(T), {
|
|
241
241
|
key: 1,
|
|
242
242
|
size: 11,
|
|
243
243
|
"stroke-width": 2
|
|
244
|
-
})),
|
|
245
|
-
])])]))), 128))])) :
|
|
246
|
-
])) : (
|
|
244
|
+
})), a(" " + m(p(J).fixingFindingId.value === n.id ? p(K).scoring.fixing : p(K).scoring.fix), 1)], 8, we), p(J).fixError.value ? (e(), c("p", Te, m(p(J).fixError.value), 1)) : u("", !0)])) : u("", !0)
|
|
245
|
+
])])]))), 128))])) : u("", !0)])), 64))
|
|
246
|
+
])) : (e(), c("div", Ee, [g(p(w), {
|
|
247
247
|
size: 32,
|
|
248
248
|
"stroke-width": 1.5,
|
|
249
249
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
250
|
-
}),
|
|
250
|
+
}), s("p", De, m(p(K).scoring.emptyState), 1)])), s("p", Oe, m(p(K).aiMenu.disclaimer), 1)])])) : u("", !0)]),
|
|
251
251
|
_: 1
|
|
252
252
|
}));
|
|
253
253
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import { t as v } from "./loader-circle-
|
|
4
|
-
import { n as y } from "./useCloudI18n-
|
|
5
|
-
import { t as b } from "./TplModal-
|
|
1
|
+
import { A as e, B as t, L as n, M as r, X as i, _ as a, at as o, b as s, f as c, h as l, i as u, l as d, m as f, p, rt as m, st as h, v as g, z as _ } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
+
import "./useEditorCore-DLd-5qMg.js";
|
|
3
|
+
import { t as v } from "./loader-circle-_9bP23op.js";
|
|
4
|
+
import { n as y } from "./useCloudI18n-CL_AwWwi.js";
|
|
5
|
+
import { t as b } from "./TplModal-CINtyB6Y.js";
|
|
6
6
|
//#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var x = ["aria-busy"], S = {
|
|
8
8
|
id: "tpl-test-email-title",
|
|
@@ -14,7 +14,7 @@ var x = ["aria-busy"], S = {
|
|
|
14
14
|
}, k = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, A = ["disabled"], j = ["disabled"], M = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "tpl:flex tpl:items-center tpl:gap-1.5"
|
|
17
|
-
}, N = { key: 1 }, P = /* @__PURE__ */
|
|
17
|
+
}, N = { key: 1 }, P = /* @__PURE__ */ s({
|
|
18
18
|
__name: "TestEmailModal",
|
|
19
19
|
props: {
|
|
20
20
|
visible: { type: Boolean },
|
|
@@ -23,9 +23,9 @@ var x = ["aria-busy"], S = {
|
|
|
23
23
|
error: {}
|
|
24
24
|
},
|
|
25
25
|
emits: ["send", "close"],
|
|
26
|
-
setup(
|
|
27
|
-
let F =
|
|
28
|
-
|
|
26
|
+
setup(s, { emit: P }) {
|
|
27
|
+
let F = s, I = P, { t: L } = y(), R = i("");
|
|
28
|
+
n(() => F.visible, (e) => {
|
|
29
29
|
e && (R.value = F.allowedEmails[0] ?? "");
|
|
30
30
|
});
|
|
31
31
|
function z() {
|
|
@@ -37,15 +37,15 @@ var x = ["aria-busy"], S = {
|
|
|
37
37
|
function V(e) {
|
|
38
38
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), z()), e.key === "Escape" && B();
|
|
39
39
|
}
|
|
40
|
-
return (
|
|
41
|
-
visible:
|
|
40
|
+
return (n, i) => (e(), p(b, {
|
|
41
|
+
visible: s.visible,
|
|
42
42
|
onClose: B,
|
|
43
43
|
onKeydown: V
|
|
44
44
|
}, {
|
|
45
|
-
default:
|
|
45
|
+
default: _(() => [c("div", {
|
|
46
46
|
role: "dialog",
|
|
47
47
|
"aria-modal": "true",
|
|
48
|
-
"aria-busy":
|
|
48
|
+
"aria-busy": s.isSending,
|
|
49
49
|
"aria-labelledby": "tpl-test-email-title",
|
|
50
50
|
class: "tpl-scale-in tpl:mx-4 tpl:w-full tpl:max-w-sm tpl:rounded-[var(--tpl-radius-lg)] tpl:p-5",
|
|
51
51
|
style: {
|
|
@@ -53,38 +53,38 @@ var x = ["aria-busy"], S = {
|
|
|
53
53
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
54
54
|
}
|
|
55
55
|
}, [
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
c("h3", S, h(m(L).testEmail.title), 1),
|
|
57
|
+
c("div", C, [c("label", w, h(m(L).testEmail.recipientLabel), 1), s.allowedEmails.length === 1 ? (e(), l("input", {
|
|
58
58
|
key: 0,
|
|
59
59
|
type: "text",
|
|
60
60
|
value: R.value,
|
|
61
61
|
disabled: "",
|
|
62
62
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:opacity-70 tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
63
|
-
}, null, 8, T)) : t((
|
|
63
|
+
}, null, 8, T)) : t((e(), l("select", {
|
|
64
64
|
key: 1,
|
|
65
|
-
"onUpdate:modelValue":
|
|
65
|
+
"onUpdate:modelValue": i[0] ||= (e) => R.value = e,
|
|
66
66
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
67
|
-
disabled:
|
|
68
|
-
}, [(
|
|
69
|
-
key:
|
|
70
|
-
value:
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
disabled: s.isSending
|
|
68
|
+
}, [(e(!0), l(d, null, r(s.allowedEmails, (t) => (e(), l("option", {
|
|
69
|
+
key: t,
|
|
70
|
+
value: t
|
|
71
|
+
}, h(t), 9, D))), 128))], 8, E)), [[u, R.value]])]),
|
|
72
|
+
s.error ? (e(), l("p", O, h(s.error), 1)) : f("", !0),
|
|
73
|
+
c("div", k, [c("button", {
|
|
74
74
|
type: "button",
|
|
75
|
-
class:
|
|
76
|
-
disabled:
|
|
75
|
+
class: o(["tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]", { "tpl:cursor-not-allowed tpl:opacity-50": s.isSending }]),
|
|
76
|
+
disabled: s.isSending,
|
|
77
77
|
onClick: B
|
|
78
|
-
},
|
|
78
|
+
}, h(m(L).testEmail.cancel), 11, A), c("button", {
|
|
79
79
|
type: "button",
|
|
80
80
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
81
|
-
disabled: !R.value ||
|
|
81
|
+
disabled: !R.value || s.isSending,
|
|
82
82
|
onClick: z
|
|
83
|
-
}, [
|
|
83
|
+
}, [s.isSending ? (e(), l("span", M, [g(m(v), {
|
|
84
84
|
class: "tpl:animate-spin",
|
|
85
85
|
size: 12,
|
|
86
86
|
"stroke-width": 2
|
|
87
|
-
}),
|
|
87
|
+
}), a(" " + h(m(L).testEmail.sending), 1)])) : (e(), l("span", N, h(m(L).testEmail.send), 1))], 8, j)])
|
|
88
88
|
], 8, x)]),
|
|
89
89
|
_: 1
|
|
90
90
|
}, 8, ["visible"]));
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { b as g } from "./useEditorCore-
|
|
3
|
-
import { D as _, T as v } from "./keys-
|
|
4
|
-
import { t as y } from "./useI18n-
|
|
5
|
-
import { a as b, i as x, n as S, r as C, t as w } from "./RichTextEditorContent-
|
|
6
|
-
import { t as T } from "./loader-circle-
|
|
7
|
-
import { t as
|
|
1
|
+
import { A as e, G as t, _ as n, at as r, b as i, f as a, h as o, l as s, m as c, ot as l, p as u, rt as d, st as f, u as p, v as m, w as h } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
+
import { b as g } from "./useEditorCore-DLd-5qMg.js";
|
|
3
|
+
import { D as _, T as v } from "./keys-Bqs_0du9.js";
|
|
4
|
+
import { t as y } from "./useI18n-CgmQftNf.js";
|
|
5
|
+
import { a as b, i as x, n as S, r as C, t as w } from "./RichTextEditorContent-CK3Om7ES.js";
|
|
6
|
+
import { t as T } from "./loader-circle-_9bP23op.js";
|
|
7
|
+
import { t as ee } from "./scan-line-DUEg6DoT.js";
|
|
8
8
|
//#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
9
|
+
var E = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme", "aria-label"], O = ["aria-label", "title"], k = ["aria-label", "title"], A = ["aria-label", "title"], j = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]"
|
|
12
12
|
}, M = ["aria-label", "title"], N = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
15
|
-
}, P = /* @__PURE__ */
|
|
15
|
+
}, P = /* @__PURE__ */ i({
|
|
16
16
|
__name: "TitleEditor",
|
|
17
17
|
props: {
|
|
18
18
|
block: {},
|
|
19
19
|
toolbarPosition: {}
|
|
20
20
|
},
|
|
21
21
|
emits: ["done"],
|
|
22
|
-
setup(
|
|
23
|
-
let F =
|
|
22
|
+
setup(i, { emit: P }) {
|
|
23
|
+
let F = i, I = P, L = h(v, null), R = h(_, null), { t: z } = y(), { editor: B, EditorContent: V, isLoading: H, initError: U, retry: W, showLinkDialog: G, linkUrl: K, linkDialogRef: q, canRequestMergeTag: J, openLinkDialog: Y, insertLink: X, removeLink: Z, closeLinkDialog: Q, handleLinkKeydown: te, handleAddMergeTag: $ } = g({
|
|
24
24
|
blockId: () => F.block.id,
|
|
25
25
|
blockContent: () => F.block.content,
|
|
26
26
|
onDone: () => I("done"),
|
|
27
27
|
editorName: "TitleEditor",
|
|
28
28
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
29
29
|
let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d }] = await Promise.all([
|
|
30
|
-
import("./dist-
|
|
30
|
+
import("./dist-Pk4MhWMP.js").then((e) => e.r),
|
|
31
31
|
import("./dist-D90y8dvT.js"),
|
|
32
32
|
import("./dist-DDJIWTRY.js"),
|
|
33
|
-
import("./extensions-
|
|
33
|
+
import("./extensions-BF39Siqk.js")
|
|
34
34
|
]);
|
|
35
35
|
return {
|
|
36
36
|
TiptapEditor: a,
|
|
@@ -67,76 +67,76 @@ var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme
|
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
|
-
return (
|
|
71
|
-
(
|
|
72
|
-
"data-tpl-theme":
|
|
70
|
+
return (h, g) => (e(), o("div", E, [
|
|
71
|
+
(e(), u(p, { to: "body" }, [a("div", {
|
|
72
|
+
"data-tpl-theme": d(R),
|
|
73
73
|
role: "toolbar",
|
|
74
|
-
"aria-label":
|
|
74
|
+
"aria-label": d(z).titleEditor.toolbar,
|
|
75
75
|
class: "tpl tpl-text-toolbar tpl:fixed tpl:z-popover tpl:flex tpl:items-center 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",
|
|
76
|
-
style:
|
|
77
|
-
...
|
|
78
|
-
top: `${
|
|
79
|
-
left: `${
|
|
76
|
+
style: l({
|
|
77
|
+
...d(L),
|
|
78
|
+
top: `${i.toolbarPosition.top}px`,
|
|
79
|
+
left: `${i.toolbarPosition.left}px`,
|
|
80
80
|
transform: "translateY(-100%)"
|
|
81
81
|
})
|
|
82
|
-
}, [!
|
|
83
|
-
|
|
82
|
+
}, [!d(H) && d(B) ? (e(), o(s, { key: 0 }, [
|
|
83
|
+
a("button", {
|
|
84
84
|
type: "button",
|
|
85
|
-
class:
|
|
86
|
-
"aria-label":
|
|
87
|
-
title:
|
|
88
|
-
onClick: g[0] ||= (e) =>
|
|
89
|
-
}, [
|
|
85
|
+
class: r(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": d(B)?.isActive("bold") }]),
|
|
86
|
+
"aria-label": d(z).titleEditor.bold,
|
|
87
|
+
title: d(z).titleEditor.bold,
|
|
88
|
+
onClick: g[0] ||= (e) => d(B)?.chain().focus().toggleBold().run()
|
|
89
|
+
}, [m(d(b), {
|
|
90
90
|
size: 16,
|
|
91
91
|
"stroke-width": 2.5
|
|
92
92
|
})], 10, O),
|
|
93
|
-
|
|
93
|
+
a("button", {
|
|
94
94
|
type: "button",
|
|
95
|
-
class:
|
|
96
|
-
"aria-label":
|
|
97
|
-
title:
|
|
98
|
-
onClick: g[1] ||= (e) =>
|
|
99
|
-
}, [
|
|
95
|
+
class: r(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": d(B)?.isActive("italic") }]),
|
|
96
|
+
"aria-label": d(z).titleEditor.italic,
|
|
97
|
+
title: d(z).titleEditor.italic,
|
|
98
|
+
onClick: g[1] ||= (e) => d(B)?.chain().focus().toggleItalic().run()
|
|
99
|
+
}, [m(d(x), {
|
|
100
100
|
size: 16,
|
|
101
101
|
"stroke-width": 2
|
|
102
102
|
})], 10, k),
|
|
103
|
-
g[6] ||=
|
|
103
|
+
g[6] ||= a("span", {
|
|
104
104
|
class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
105
105
|
"aria-hidden": "true"
|
|
106
106
|
}, null, -1),
|
|
107
|
-
|
|
107
|
+
a("button", {
|
|
108
108
|
type: "button",
|
|
109
|
-
class:
|
|
110
|
-
"aria-label":
|
|
111
|
-
title:
|
|
112
|
-
onClick: g[2] ||= (...e) =>
|
|
113
|
-
}, [
|
|
109
|
+
class: r(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": d(B)?.isActive("link") }]),
|
|
110
|
+
"aria-label": d(z).titleEditor.addLink,
|
|
111
|
+
title: d(z).titleEditor.addLink,
|
|
112
|
+
onClick: g[2] ||= (...e) => d(Y) && d(Y)(...e)
|
|
113
|
+
}, [m(d(C), {
|
|
114
114
|
size: 16,
|
|
115
115
|
"stroke-width": 2
|
|
116
116
|
})], 10, A),
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
d(J) ? (e(), o("span", j)) : c("", !0),
|
|
118
|
+
d(J) ? (e(), o("button", {
|
|
119
119
|
key: 1,
|
|
120
120
|
type: "button",
|
|
121
121
|
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)]",
|
|
122
|
-
"aria-label":
|
|
123
|
-
title:
|
|
124
|
-
onClick: g[3] ||= (...e) =>
|
|
125
|
-
}, [
|
|
122
|
+
"aria-label": d(z).mergeTag.add,
|
|
123
|
+
title: d(z).mergeTag.add,
|
|
124
|
+
onClick: g[3] ||= (...e) => d($) && d($)(...e)
|
|
125
|
+
}, [m(d(ee), {
|
|
126
126
|
size: 16,
|
|
127
127
|
"stroke-width": 2
|
|
128
|
-
}),
|
|
129
|
-
], 64)) : (
|
|
128
|
+
}), n(" " + f(d(z).mergeTag.add), 1)], 8, M)) : c("", !0)
|
|
129
|
+
], 64)) : (e(), o("div", N, [m(d(T), {
|
|
130
130
|
class: "tpl-spinner",
|
|
131
131
|
size: 14,
|
|
132
132
|
"stroke-width": 2
|
|
133
|
-
}),
|
|
134
|
-
|
|
135
|
-
editor:
|
|
136
|
-
"editor-content":
|
|
137
|
-
"is-loading":
|
|
138
|
-
"init-error":
|
|
139
|
-
onRetry:
|
|
133
|
+
}), n(" " + f(d(z).errors.editorLoading), 1)]))], 12, D)])),
|
|
134
|
+
m(w, {
|
|
135
|
+
editor: d(B),
|
|
136
|
+
"editor-content": d(V),
|
|
137
|
+
"is-loading": d(H),
|
|
138
|
+
"init-error": d(U),
|
|
139
|
+
onRetry: d(W)
|
|
140
140
|
}, null, 8, [
|
|
141
141
|
"editor",
|
|
142
142
|
"editor-content",
|
|
@@ -144,17 +144,17 @@ var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme
|
|
|
144
144
|
"init-error",
|
|
145
145
|
"onRetry"
|
|
146
146
|
]),
|
|
147
|
-
|
|
148
|
-
visible:
|
|
149
|
-
"is-editing-link":
|
|
150
|
-
"dialog-ref":
|
|
151
|
-
"onUpdate:dialogRef": g[4] ||= (e) =>
|
|
152
|
-
"link-url":
|
|
153
|
-
"onUpdate:linkUrl": g[5] ||= (e) =>
|
|
154
|
-
onClose:
|
|
155
|
-
onInsert:
|
|
156
|
-
onRemove:
|
|
157
|
-
onKeydown:
|
|
147
|
+
m(S, {
|
|
148
|
+
visible: d(G),
|
|
149
|
+
"is-editing-link": d(B)?.isActive("link") ?? !1,
|
|
150
|
+
"dialog-ref": d(q),
|
|
151
|
+
"onUpdate:dialogRef": g[4] ||= (e) => t(q) ? q.value = e : null,
|
|
152
|
+
"link-url": d(K),
|
|
153
|
+
"onUpdate:linkUrl": g[5] ||= (e) => t(K) ? K.value = e : null,
|
|
154
|
+
onClose: d(Q),
|
|
155
|
+
onInsert: d(X),
|
|
156
|
+
onRemove: d(Z),
|
|
157
|
+
onKeydown: d(te)
|
|
158
158
|
}, null, 8, [
|
|
159
159
|
"visible",
|
|
160
160
|
"is-editing-link",
|