@templatical/editor 0.14.0 → 0.15.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/dist/{AiChatSidebar-J8iO_sX7.js → AiChatSidebar-BIKvYREk.js} +57 -56
- package/dist/{AiFeatureMenu-F2diEDgV.js → AiFeatureMenu-CU6kTMTf.js} +20 -20
- package/dist/{BlockIssueBadge-a-qlByxF.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
- package/dist/{CloudEditor-CDjtwb4i.js → CloudEditor-DRPxvUEj.js} +470 -468
- package/dist/{CollaboratorBar-B_EnJLtW.js → CollaboratorBar-DMSjd3HZ.js} +20 -20
- package/dist/{CommentsSidebar-DaP9BA_r.js → CommentsSidebar-D_tSGvTX.js} +154 -153
- package/dist/CountdownBlock-apiYUhkQ.js +92 -0
- package/dist/CountdownToolbar-CS0axcjz.js +210 -0
- package/dist/{DesignReferenceSidebar-BHRlTqlT.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
- package/dist/{IssuesPanel-u7ee3Wrl.js → IssuesPanel-CR1MPaDE.js} +40 -40
- package/dist/{LoadingTrack-CV3ID80N.js → LoadingTrack-DsecR8Rw.js} +1 -1
- package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
- package/dist/{ModuleBrowserModal-DOsdaS6s.js → ModuleBrowserModal-BOzleijA.js} +60 -59
- package/dist/{ModulePreviewCanvas-Cx4MOJ0X.js → ModulePreviewCanvas-Cg99Pbde.js} +29 -29
- package/dist/{NumberWithSuffix-D2mW_DhT.js → NumberWithSuffix-CrA6quxx.js} +143 -142
- package/dist/{ParagraphEditor-DMzkVnST.js → ParagraphEditor-8jnzoL0A.js} +250 -247
- package/dist/{RichTextEditorContent-CRCxCwKf.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
- package/dist/{SaveModuleDialog-DuEKgumL.js → SaveModuleDialog-Cy2XyjYT.js} +38 -37
- package/dist/{SnapshotHistory-CVgiNJtE.js → SnapshotHistory-cfxmOsJu.js} +34 -33
- package/dist/{TemplateScoringPanel-lm0_9nYi.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
- package/dist/{TestEmailModal-WBMdiW5S.js → TestEmailModal-sr1MaMVX.js} +22 -21
- package/dist/{TitleEditor-eyT0h-Sa.js → TitleEditor-CvGTprIg.js} +46 -45
- package/dist/{TplModal-tjQ7OB0g.js → TplModal-BtKB-0Bx.js} +14 -13
- package/dist/{blockTypeIcons-DdB3uTKD.js → blockTypeIcons-BxEbbev5.js} +2 -2
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js → AiFeatureMenu-fDUpv_-s.js} +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js.map → AiFeatureMenu-fDUpv_-s.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js → BlockIssueBadge-Byce0j0W.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js.map → BlockIssueBadge-Byce0j0W.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js → CloudEditor-B4m8ldiE.js} +89 -89
- package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js.map → CloudEditor-B4m8ldiE.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js → CollaboratorBar-LnLmjxw_.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js.map → CollaboratorBar-LnLmjxw_.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js → CountdownBlock-DxTuMRBM.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js.map → CountdownBlock-DxTuMRBM.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js → CountdownToolbar-DUrVfQZH.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js.map → CountdownToolbar-DUrVfQZH.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.js → IssuesPanel-CHl90k4h.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.js.map → IssuesPanel-CHl90k4h.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js +213 -0
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-DCh88-rr.js → ModuleBrowserModal-DW0iQW0J.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-DCh88-rr.js.map → ModuleBrowserModal-DW0iQW0J.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js → ModulePreviewCanvas-Cxo8v8t1.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js.map → ModulePreviewCanvas-Cxo8v8t1.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js → NumberWithSuffix-CnSRmUMK.js} +6 -6
- package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js.map → NumberWithSuffix-CnSRmUMK.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js → ParagraphEditor-iG5cDjH0.js} +25 -23
- package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js.map → ParagraphEditor-iG5cDjH0.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js → RichTextEditorContent-DQpgeGMj.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js.map → RichTextEditorContent-DQpgeGMj.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js → SaveModuleDialog-sJQXg2Mh.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js.map → SaveModuleDialog-sJQXg2Mh.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DO1-h3RY.js → TitleEditor-C8qIn9Oi.js} +12 -11
- package/dist/cdn/chunks/TitleEditor-C8qIn9Oi.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js → blockTypeIcons-DySnOpPo.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js.map → blockTypeIcons-DySnOpPo.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-kPCz_3zM.js → draggable-kG-D5Xsm.js} +6 -6
- package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +1 -0
- package/dist/cdn/chunks/extensions-C2pTX899.js +421 -0
- package/dist/cdn/chunks/extensions-C2pTX899.js.map +1 -0
- package/dist/cdn/chunks/{features-CkTMVylx.js → features-CHE3YjQE.js} +886 -837
- package/dist/cdn/chunks/features-CHE3YjQE.js.map +1 -0
- package/dist/cdn/chunks/{icons-9zjCuoJx.js → icons-M4uqBV-_.js} +26 -26
- package/dist/cdn/chunks/{icons-9zjCuoJx.js.map → icons-M4uqBV-_.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DKKBzRQu.js → liquid.browser-BJOEu6Cg.js} +693 -678
- package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +1 -0
- package/dist/cdn/chunks/{media-library-DMRIPx4g.js → media-library-Bqr15VN2.js} +33 -33
- package/dist/cdn/chunks/{media-library-DMRIPx4g.js.map → media-library-Bqr15VN2.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-CdEqyLwF.js → pusher-CIwiKF8H.js} +4 -4
- package/dist/cdn/chunks/{pusher-CdEqyLwF.js.map → pusher-CIwiKF8H.js.map} +1 -1
- package/dist/cdn/chunks/{quality-CyeUgs_c.js → quality-DJZ_fqc2.js} +112 -112
- package/dist/cdn/chunks/{quality-CyeUgs_c.js.map → quality-DJZ_fqc2.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-BIKUEKDD.js → renderer-CyzTR1Vq.js} +20 -20
- package/dist/cdn/chunks/renderer-CyzTR1Vq.js.map +1 -0
- package/dist/cdn/chunks/{src-pDy_imWG.js → src-q-SBgWx7.js} +5 -5
- package/dist/cdn/chunks/{src-pDy_imWG.js.map → src-q-SBgWx7.js.map} +1 -1
- package/dist/cdn/chunks/{styles-D4Bd3SCx.js → styles-PWISdaws.js} +1484 -1344
- package/dist/cdn/chunks/styles-PWISdaws.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BlLFFU3M.js → tiptap-DF9PEiqH.js} +6859 -6823
- package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +35 -35
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CYJwFmjy.js → check-rl7ok6uJ.js} +1 -1
- package/dist/{chevron-down-C5l-DzAA.js → chevron-down-BKe__NOD.js} +1 -1
- package/dist/{circle-alert-wf5HUFZY.js → circle-alert-C8xmpMsK.js} +1 -1
- package/dist/{clock-Bj0bQw-K.js → clock-BW4JuDCN.js} +1 -1
- package/dist/{cloud-CoFDm9YA.js → cloud-BQusL53H.js} +208 -208
- package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
- package/dist/{dist-CLpPNKy9.js → dist-B5Sov3sS.js} +7 -7
- package/dist/dist-BEWiuOMi.js +251 -0
- package/dist/{dist-CrQZ_af9.js → dist-BFmE-7hB.js} +2 -2
- package/dist/{dist-U5vfDdYI.js → dist-BMoa33wT.js} +2 -2
- package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
- package/dist/{dist-Dd3ibRZm.js → dist-BsCGIDSt.js} +103 -102
- package/dist/dist-CNLKj9wa.js +5 -0
- package/dist/{dist-BX3gGwL8.js → dist-CNXDNYQn.js} +728 -694
- package/dist/{dist-Bn703mnA.js → dist-COG3IdPK.js} +3 -3
- package/dist/{dist-B7w6xTU6.js → dist-CQZxDvFw.js} +3 -3
- package/dist/{dist-34OcyoK1.js → dist-CRsjOQM-.js} +2 -2
- package/dist/dist-CTT6WYJ6.js +134 -0
- package/dist/dist-Cqa6aeAJ.js +5 -0
- package/dist/{dist-ChMninLH.js → dist-SXJJ2v41.js} +2 -2
- package/dist/{dist-CyjyYg52.js → dist-itdjZraK.js} +28 -23
- package/dist/extensions-DwaZAqm6.js +423 -0
- package/dist/{image-up-x8-WXfsx.js → image-up-BwBCmQ4P.js} +1 -1
- package/dist/{info-RS_fGcGi.js → info-TCn7uWR5.js} +1 -1
- package/dist/{keys-DgYXDafq.js → keys-Cv8-8GsD.js} +1 -1
- package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
- package/dist/{list-checks-Bf7XdDyv.js → list-checks-CSrOWNgq.js} +1 -1
- package/dist/{loader-circle-CLZ0_FvW.js → loader-circle-BLmicnPG.js} +1 -1
- package/dist/{message-circle-B-1bN9ab.js → message-circle-C9hHMQCI.js} +1 -1
- package/dist/{refresh-cw-CWKWqJYG.js → refresh-cw-D1JQ1LNa.js} +1 -1
- package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
- package/dist/{scan-line-BtK5dEai.js → scan-line-DgijVq9y.js} +1 -1
- package/dist/{send-Cn1IUdzh.js → send-DjPdq69F.js} +1 -1
- package/dist/{shield-check-CrvMk4Ea.js → shield-check-Bqluu8FS.js} +1 -1
- package/dist/{sparkles-CgfjwvnG.js → sparkles-M4azPVSP.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styles-B2OrgEnn.js +4164 -0
- package/dist/templatical-editor.js +127 -126
- package/dist/{text-align-start-C3r_Rnvy.js → text-align-start-CMya5pCQ.js} +11 -11
- package/dist/{trash-2-CjERg4x9.js → trash-2-C-81rkLS.js} +1 -1
- package/dist/{triangle-alert-Chkny574.js → triangle-alert-BuRWnynk.js} +1 -1
- package/dist/{upload-e5kDRkPb.js → upload-CWBIoLd4.js} +1 -1
- package/dist/{useAliveFlag-cUQj9rmB.js → useAliveFlag-CECL_OUb.js} +1 -1
- package/dist/{useCloudI18n-CYJKqXtI.js → useCloudI18n-AKCy98qD.js} +2 -2
- package/dist/{useEditorCore-8JxXDOA4.js → useEditorCore-DJeOXVxQ.js} +1407 -1365
- package/dist/{useI18n-BWqM8i78.js → useI18n-C-TDeJBt.js} +2 -2
- package/dist/{useMergeTag-NHC4ylza.js → useMergeTag-DSrBY0-2.js} +5 -5
- package/dist/usePopoverRoot-DKUDnr55.js +8 -0
- package/dist/{vue.runtime.esm-bundler-BPa483TZ.js → vue.runtime.esm-bundler-l0XAqiyv.js} +626 -1147
- package/dist/{x-DiPIbccg.js → x-CQSvXnGR.js} +1 -1
- package/package.json +26 -26
- package/dist/CountdownBlock-DtAokAVw.js +0 -92
- package/dist/CountdownToolbar-Dtqgwy0g.js +0 -210
- package/dist/cdn/chunks/TitleEditor-DO1-h3RY.js.map +0 -1
- package/dist/cdn/chunks/draggable-kPCz_3zM.js.map +0 -1
- package/dist/cdn/chunks/extensions-iwBXnEwq.js +0 -605
- package/dist/cdn/chunks/extensions-iwBXnEwq.js.map +0 -1
- package/dist/cdn/chunks/features-CkTMVylx.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
- package/dist/cdn/chunks/renderer-BIKUEKDD.js.map +0 -1
- package/dist/cdn/chunks/styles-D4Bd3SCx.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BlLFFU3M.js.map +0 -1
- package/dist/createLucideIcon-Bad2kKE0.js +0 -43
- package/dist/dist-CADDCv0o.js +0 -5
- package/dist/dist-CGvz7vkq.js +0 -5
- package/dist/dist-DuCzdgDA.js +0 -382
- package/dist/extensions-J439b7y7.js +0 -1720
- package/dist/styles-BUwDOWd3.js +0 -4022
- package/dist/usePopoverRoot-B1sdY4es.js +0 -8
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as b } from "./
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as w } from "./
|
|
10
|
-
import { t as T } from "./
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
1
|
+
import { A as e, Dt as t, Et as n, I as r, N as i, O as a, Ot as o, R as ee, Y as s, _ as c, c as l, d as u, h as d, l as f, m as p, nt as m, r as h, u as g, x as te } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
import { t as ne } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
|
|
3
|
+
import { L as _, M as re, S as ie, m as v } from "./keys-Cv8-8GsD.js";
|
|
4
|
+
import { t as y } from "./createLucideIcon-Dx-EjR9r.js";
|
|
5
|
+
import { t as b } from "./chevron-down-BKe__NOD.js";
|
|
6
|
+
import { t as x } from "./circle-alert-C8xmpMsK.js";
|
|
7
|
+
import { n as S, t as C } from "./refresh-cw-D1JQ1LNa.js";
|
|
8
|
+
import { t as ae } from "./info-TCn7uWR5.js";
|
|
9
|
+
import { t as w } from "./loader-circle-BLmicnPG.js";
|
|
10
|
+
import { t as T } from "./shield-check-Bqluu8FS.js";
|
|
11
|
+
import { t as E } from "./sparkles-M4azPVSP.js";
|
|
12
|
+
import { t as oe } from "./triangle-alert-BuRWnynk.js";
|
|
13
|
+
import { t as se } from "./x-CQSvXnGR.js";
|
|
14
|
+
import { t as ce } from "./LoadingTrack-DsecR8Rw.js";
|
|
15
|
+
import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { n as le } from "./useCloudI18n-AKCy98qD.js";
|
|
16
17
|
var O = y("shield-x", [
|
|
17
18
|
["path", {
|
|
18
19
|
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 +86,12 @@ var P = {
|
|
|
85
86
|
}, Ee = {
|
|
86
87
|
key: 3,
|
|
87
88
|
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__*/
|
|
89
|
+
}, 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__*/ D(/* @__PURE__ */ c({
|
|
89
90
|
__name: "TemplateScoringPanel",
|
|
90
91
|
props: { visible: { type: Boolean } },
|
|
91
92
|
emits: ["close"],
|
|
92
|
-
setup(
|
|
93
|
-
let
|
|
93
|
+
setup(c, { emit: y }) {
|
|
94
|
+
let D = c, G = y, { t: K } = le(), q = _(v, "TemplateScoringPanel"), J = _(re, "TemplateScoringPanel"), Y = te(ie, []), X = s({
|
|
94
95
|
spam: !0,
|
|
95
96
|
readability: !0,
|
|
96
97
|
accessibility: !0,
|
|
@@ -106,14 +107,14 @@ var P = {
|
|
|
106
107
|
"bestPractices"
|
|
107
108
|
], Ae = {
|
|
108
109
|
spam: O,
|
|
109
|
-
readability:
|
|
110
|
-
accessibility:
|
|
110
|
+
readability: S,
|
|
111
|
+
accessibility: E,
|
|
111
112
|
bestPractices: k
|
|
112
113
|
};
|
|
113
114
|
function Q() {
|
|
114
115
|
J.score(q.content.value, Y);
|
|
115
116
|
}
|
|
116
|
-
|
|
117
|
+
r(() => D.visible, (e) => {
|
|
117
118
|
e && !J.scoringResult.value && !J.isScoring.value && Q();
|
|
118
119
|
});
|
|
119
120
|
async function je(e) {
|
|
@@ -128,7 +129,7 @@ var P = {
|
|
|
128
129
|
function $() {
|
|
129
130
|
return J.scoringResult.value ? Z.reduce((e, t) => e + (J.scoringResult.value?.categories[t]?.findings.length ?? 0), 0) : 0;
|
|
130
131
|
}
|
|
131
|
-
return (
|
|
132
|
+
return (r, s) => (a(), f(ne, {
|
|
132
133
|
"enter-active-class": "tpl-scoring-slide-enter-active",
|
|
133
134
|
"enter-from-class": "tpl:translate-x-full",
|
|
134
135
|
"enter-to-class": "tpl:translate-x-0",
|
|
@@ -136,118 +137,118 @@ var P = {
|
|
|
136
137
|
"leave-from-class": "tpl:translate-x-0",
|
|
137
138
|
"leave-to-class": "tpl:translate-x-full"
|
|
138
139
|
}, {
|
|
139
|
-
default:
|
|
140
|
+
default: ee(() => [c.visible ? (a(), u("div", P, [l("div", F, [l("div", I, [d(m(T), {
|
|
140
141
|
size: 13,
|
|
141
142
|
"stroke-width": 2
|
|
142
|
-
}),
|
|
143
|
+
}), l("span", null, o(m(K).scoring.title), 1)]), l("div", L, [m(J).scoringResult.value && !m(J).isScoring.value ? (a(), u("button", {
|
|
143
144
|
key: 0,
|
|
144
145
|
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
|
-
}, [
|
|
146
|
+
title: m(K).scoring.rescore,
|
|
147
|
+
onClick: s[0] ||= (e) => Q()
|
|
148
|
+
}, [d(m(C), {
|
|
148
149
|
size: 14,
|
|
149
150
|
"stroke-width": 2
|
|
150
|
-
})], 8, R)) :
|
|
151
|
+
})], 8, R)) : g("", !0), l("button", {
|
|
151
152
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
152
|
-
onClick:
|
|
153
|
-
}, [
|
|
153
|
+
onClick: s[1] ||= (e) => G("close")
|
|
154
|
+
}, [d(m(se), {
|
|
154
155
|
size: 14,
|
|
155
156
|
"stroke-width": 2
|
|
156
|
-
})])])]),
|
|
157
|
-
|
|
157
|
+
})])])]), l("div", z, [m(J).isScoring.value ? (a(), u("div", B, [l("p", V, o(m(K).scoring.scoring), 1), d(ce, { class: "tpl:w-3/4" })])) : m(J).error.value && !m(J).scoringResult.value ? (a(), u("div", H, [
|
|
158
|
+
d(m(x), {
|
|
158
159
|
size: 32,
|
|
159
160
|
"stroke-width": 1.5,
|
|
160
161
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
161
162
|
}),
|
|
162
|
-
|
|
163
|
-
|
|
163
|
+
l("p", U, o(m(K).scoring.error), 1),
|
|
164
|
+
l("button", {
|
|
164
165
|
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
|
-
}, [
|
|
166
|
+
onClick: s[2] ||= (e) => Q()
|
|
167
|
+
}, [d(m(C), {
|
|
167
168
|
size: 12,
|
|
168
169
|
"stroke-width": 2
|
|
169
|
-
}),
|
|
170
|
-
])) :
|
|
171
|
-
|
|
170
|
+
}), p(" " + o(m(K).scoring.rescore), 1)])
|
|
171
|
+
])) : m(J).scoringResult.value ? (a(), u("div", W, [
|
|
172
|
+
l("div", {
|
|
172
173
|
class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
|
|
173
|
-
style:
|
|
174
|
+
style: t({ backgroundColor: m(j)(m(J).scoringResult.value.score) })
|
|
174
175
|
}, [
|
|
175
|
-
|
|
176
|
+
l("span", {
|
|
176
177
|
class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
|
|
177
|
-
style:
|
|
178
|
-
}, m(
|
|
179
|
-
|
|
180
|
-
$() > 0 ? (
|
|
178
|
+
style: t({ color: m(A)(m(J).scoringResult.value.score) })
|
|
179
|
+
}, o(m(J).scoringResult.value.score), 5),
|
|
180
|
+
l("span", ue, o(m(K).scoring.overallScore), 1),
|
|
181
|
+
$() > 0 ? (a(), u("span", de, o($()) + " " + o(m(K).scoring.findings), 1)) : g("", !0)
|
|
181
182
|
], 4),
|
|
182
|
-
|
|
183
|
+
m(J).fixError.value ? (a(), u("div", fe, [d(m(x), {
|
|
183
184
|
size: 14,
|
|
184
185
|
"stroke-width": 2,
|
|
185
186
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
186
|
-
}),
|
|
187
|
-
(
|
|
188
|
-
key:
|
|
187
|
+
}), l("span", null, o(m(K).scoring.fixError), 1)])) : g("", !0),
|
|
188
|
+
(a(), u(h, null, e(Z, (r) => l("div", {
|
|
189
|
+
key: r,
|
|
189
190
|
class: "tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)]"
|
|
190
|
-
}, [
|
|
191
|
+
}, [l("button", {
|
|
191
192
|
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(
|
|
193
|
+
onClick: (e) => ke(r)
|
|
193
194
|
}, [
|
|
194
|
-
(
|
|
195
|
+
(a(), f(i(Ae[r]), {
|
|
195
196
|
size: 14,
|
|
196
197
|
"stroke-width": 2,
|
|
197
|
-
style:
|
|
198
|
+
style: t({ color: m(A)(m(J).scoringResult.value.categories[r].score) })
|
|
198
199
|
}, null, 8, ["style"])),
|
|
199
|
-
|
|
200
|
-
|
|
200
|
+
l("span", me, o(m(K).scoring.categories[r]), 1),
|
|
201
|
+
l("span", {
|
|
201
202
|
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:
|
|
203
|
+
style: t({
|
|
204
|
+
color: m(A)(m(J).scoringResult.value.categories[r].score),
|
|
205
|
+
backgroundColor: m(j)(m(J).scoringResult.value.categories[r].score)
|
|
205
206
|
})
|
|
206
|
-
}, m(
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
}, o(m(J).scoringResult.value.categories[r].score), 5),
|
|
208
|
+
m(J).scoringResult.value.categories[r].findings.length > 0 ? (a(), u("span", he, o(m(J).scoringResult.value.categories[r].findings.length), 1)) : g("", !0),
|
|
209
|
+
d(m(b), {
|
|
209
210
|
size: 12,
|
|
210
211
|
"stroke-width": 2,
|
|
211
|
-
class:
|
|
212
|
+
class: n(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[r] ? "tpl:rotate-0" : "tpl:-rotate-90"])
|
|
212
213
|
}, null, 8, ["class"])
|
|
213
|
-
], 8, pe), X.value[
|
|
214
|
-
key:
|
|
214
|
+
], 8, pe), X.value[r] ? (a(), u("div", ge, [m(J).scoringResult.value.categories[r].findings.length === 0 ? (a(), u("div", _e, o(m(K).scoring.noFindings), 1)) : g("", !0), (a(!0), u(h, null, e(m(J).scoringResult.value.categories[r].findings, (e) => (a(), u("div", {
|
|
215
|
+
key: e.id,
|
|
215
216
|
class: "tpl:border-t tpl:px-3 tpl:py-2.5 first:tpl:border-t-0 tpl:border-[var(--tpl-border-light)]"
|
|
216
|
-
}, [
|
|
217
|
+
}, [l("div", ve, [(a(), f(i(e.severity === "high" ? m(x) : e.severity === "medium" ? m(oe) : m(ae)), {
|
|
217
218
|
size: 13,
|
|
218
219
|
"stroke-width": 2,
|
|
219
220
|
class: "tpl:mt-0.5 tpl:shrink-0",
|
|
220
|
-
style:
|
|
221
|
-
}, null, 8, ["style"])),
|
|
222
|
-
|
|
221
|
+
style: t({ color: m(M)(e.severity) })
|
|
222
|
+
}, null, 8, ["style"])), l("div", ye, [
|
|
223
|
+
l("div", be, [l("span", {
|
|
223
224
|
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:
|
|
225
|
+
style: t({
|
|
226
|
+
color: m(M)(e.severity),
|
|
227
|
+
backgroundColor: m(N)(e.severity)
|
|
227
228
|
})
|
|
228
|
-
}, m(
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
}, o(m(K).scoring.severity[e.severity]), 5), l("span", xe, o(e.message), 1)]),
|
|
230
|
+
e.suggestion ? (a(), u("p", Se, o(e.suggestion), 1)) : g("", !0),
|
|
231
|
+
e.blockId ? (a(), u("div", Ce, [l("button", {
|
|
231
232
|
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
233
|
style: { "background-color": "transparent" },
|
|
233
|
-
disabled:
|
|
234
|
-
onClick: (
|
|
235
|
-
}, [
|
|
234
|
+
disabled: m(J).fixingFindingId.value !== null,
|
|
235
|
+
onClick: (t) => je(e)
|
|
236
|
+
}, [m(J).fixingFindingId.value === e.id ? (a(), f(m(w), {
|
|
236
237
|
key: 0,
|
|
237
238
|
class: "tpl-spinner",
|
|
238
239
|
size: 11,
|
|
239
240
|
"stroke-width": 2
|
|
240
|
-
})) : (
|
|
241
|
+
})) : (a(), f(m(E), {
|
|
241
242
|
key: 1,
|
|
242
243
|
size: 11,
|
|
243
244
|
"stroke-width": 2
|
|
244
|
-
})),
|
|
245
|
-
])])]))), 128))])) :
|
|
246
|
-
])) : (
|
|
245
|
+
})), p(" " + o(m(J).fixingFindingId.value === e.id ? m(K).scoring.fixing : m(K).scoring.fix), 1)], 8, we), m(J).fixError.value ? (a(), u("p", Te, o(m(J).fixError.value), 1)) : g("", !0)])) : g("", !0)
|
|
246
|
+
])])]))), 128))])) : g("", !0)])), 64))
|
|
247
|
+
])) : (a(), u("div", Ee, [d(m(T), {
|
|
247
248
|
size: 32,
|
|
248
249
|
"stroke-width": 1.5,
|
|
249
250
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
250
|
-
}),
|
|
251
|
+
}), l("p", De, o(m(K).scoring.emptyState), 1)])), l("p", Oe, o(m(K).aiMenu.disclaimer), 1)])])) : g("", !0)]),
|
|
251
252
|
_: 1
|
|
252
253
|
}));
|
|
253
254
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { A as e, Et as t, I as n, O as r, Ot as i, R as a, Y as o, _ as s, c, d as l, h as u, l as d, m as f, nt as p, r as m, u as h, z as g } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
import { i as _ } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
|
|
3
|
+
import "./useEditorCore-DJeOXVxQ.js";
|
|
4
|
+
import { t as v } from "./loader-circle-BLmicnPG.js";
|
|
5
|
+
import { n as y } from "./useCloudI18n-AKCy98qD.js";
|
|
6
|
+
import { t as b } from "./TplModal-BtKB-0Bx.js";
|
|
6
7
|
//#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
|
|
7
8
|
var x = ["aria-busy"], S = {
|
|
8
9
|
id: "tpl-test-email-title",
|
|
@@ -24,7 +25,7 @@ var x = ["aria-busy"], S = {
|
|
|
24
25
|
},
|
|
25
26
|
emits: ["send", "close"],
|
|
26
27
|
setup(s, { emit: P }) {
|
|
27
|
-
let F = s, I = P, { t: L } = y(), R =
|
|
28
|
+
let F = s, I = P, { t: L } = y(), R = o("");
|
|
28
29
|
n(() => F.visible, (e) => {
|
|
29
30
|
e && (R.value = F.allowedEmails[0] ?? "");
|
|
30
31
|
});
|
|
@@ -37,12 +38,12 @@ var x = ["aria-busy"], S = {
|
|
|
37
38
|
function V(e) {
|
|
38
39
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), z()), e.key === "Escape" && B();
|
|
39
40
|
}
|
|
40
|
-
return (n,
|
|
41
|
+
return (n, o) => (r(), d(b, {
|
|
41
42
|
visible: s.visible,
|
|
42
43
|
onClose: B,
|
|
43
44
|
onKeydown: V
|
|
44
45
|
}, {
|
|
45
|
-
default:
|
|
46
|
+
default: a(() => [c("div", {
|
|
46
47
|
role: "dialog",
|
|
47
48
|
"aria-modal": "true",
|
|
48
49
|
"aria-busy": s.isSending,
|
|
@@ -53,38 +54,38 @@ var x = ["aria-busy"], S = {
|
|
|
53
54
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
54
55
|
}
|
|
55
56
|
}, [
|
|
56
|
-
c("h3", S,
|
|
57
|
-
c("div", C, [c("label", w,
|
|
57
|
+
c("h3", S, i(p(L).testEmail.title), 1),
|
|
58
|
+
c("div", C, [c("label", w, i(p(L).testEmail.recipientLabel), 1), s.allowedEmails.length === 1 ? (r(), l("input", {
|
|
58
59
|
key: 0,
|
|
59
60
|
type: "text",
|
|
60
61
|
value: R.value,
|
|
61
62
|
disabled: "",
|
|
62
63
|
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)) :
|
|
64
|
+
}, null, 8, T)) : g((r(), l("select", {
|
|
64
65
|
key: 1,
|
|
65
|
-
"onUpdate:modelValue":
|
|
66
|
+
"onUpdate:modelValue": o[0] ||= (e) => R.value = e,
|
|
66
67
|
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
68
|
disabled: s.isSending
|
|
68
|
-
}, [(
|
|
69
|
-
key:
|
|
70
|
-
value:
|
|
71
|
-
},
|
|
72
|
-
s.error ? (
|
|
69
|
+
}, [(r(!0), l(m, null, e(s.allowedEmails, (e) => (r(), l("option", {
|
|
70
|
+
key: e,
|
|
71
|
+
value: e
|
|
72
|
+
}, i(e), 9, D))), 128))], 8, E)), [[_, R.value]])]),
|
|
73
|
+
s.error ? (r(), l("p", O, i(s.error), 1)) : h("", !0),
|
|
73
74
|
c("div", k, [c("button", {
|
|
74
75
|
type: "button",
|
|
75
|
-
class:
|
|
76
|
+
class: t(["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
77
|
disabled: s.isSending,
|
|
77
78
|
onClick: B
|
|
78
|
-
},
|
|
79
|
+
}, i(p(L).testEmail.cancel), 11, A), c("button", {
|
|
79
80
|
type: "button",
|
|
80
81
|
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
82
|
disabled: !R.value || s.isSending,
|
|
82
83
|
onClick: z
|
|
83
|
-
}, [s.isSending ? (
|
|
84
|
+
}, [s.isSending ? (r(), l("span", M, [u(p(v), {
|
|
84
85
|
class: "tpl:animate-spin",
|
|
85
86
|
size: 12,
|
|
86
87
|
"stroke-width": 2
|
|
87
|
-
}),
|
|
88
|
+
}), f(" " + i(p(L).testEmail.sending), 1)])) : (r(), l("span", N, i(p(L).testEmail.send), 1))], 8, j)])
|
|
88
89
|
], 8, x)]),
|
|
89
90
|
_: 1
|
|
90
91
|
}, 8, ["visible"]));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { x as _ } from "./useEditorCore-
|
|
3
|
-
import { I as v, P as y, w as b, x } from "./keys-
|
|
4
|
-
import { t as
|
|
5
|
-
import { a as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as S } from "./loader-circle-
|
|
8
|
-
import { t as C } from "./usePopoverRoot-
|
|
1
|
+
import { Dt as e, Et as t, O as n, Ot as r, W as i, _ as a, c as o, d as s, h as c, i as l, l as u, m as d, nt as f, r as p, s as m, u as h, x as g } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
import { x as _ } from "./useEditorCore-DJeOXVxQ.js";
|
|
3
|
+
import { I as v, P as y, w as b, x as ee } from "./keys-Cv8-8GsD.js";
|
|
4
|
+
import { t as te } from "./useI18n-C-TDeJBt.js";
|
|
5
|
+
import { a as ne, i as re, n as ie, r as ae, t as oe } from "./RichTextEditorContent-BqLHIZY7.js";
|
|
6
|
+
import { n as se, t as x } from "./scan-line-DgijVq9y.js";
|
|
7
|
+
import { t as S } from "./loader-circle-BLmicnPG.js";
|
|
8
|
+
import { t as C } from "./usePopoverRoot-DKUDnr55.js";
|
|
9
9
|
//#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme", "aria-label"], E = ["aria-label", "title"], D = ["aria-label", "title"], O = ["aria-label", "title"], k = {
|
|
11
11
|
key: 0,
|
|
@@ -16,25 +16,25 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
16
16
|
}, M = ["aria-label", "title"], N = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "tpl:flex tpl:items-center tpl:gap-2 tpl:px-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
19
|
-
}, P = /* @__PURE__ */
|
|
19
|
+
}, P = /* @__PURE__ */ a({
|
|
20
20
|
__name: "TitleEditor",
|
|
21
21
|
props: {
|
|
22
22
|
block: {},
|
|
23
23
|
toolbarPosition: {}
|
|
24
24
|
},
|
|
25
25
|
emits: ["done"],
|
|
26
|
-
setup(
|
|
27
|
-
let F =
|
|
26
|
+
setup(a, { emit: P }) {
|
|
27
|
+
let F = a, I = P, L = g(y, null), R = g(v, null), z = C(), B = g(b, null), ce = g(ee, null), V = m(() => (B?.isOpen.value ?? !1) || (ce?.isOpen.value ?? !1)), { t: H } = te(), { editor: U, EditorContent: W, isLoading: G, initError: le, retry: ue, showLinkDialog: de, linkUrl: K, linkDialogRef: q, canRequestMergeTag: J, canInsertLogicTag: Y, openLinkDialog: X, insertLink: Z, removeLink: fe, closeLinkDialog: pe, handleLinkKeydown: me, handleAddMergeTag: Q, handleAddLogicTag: $ } = _({
|
|
28
28
|
blockId: () => F.block.id,
|
|
29
29
|
blockContent: () => F.block.content,
|
|
30
30
|
onDone: () => I("done"),
|
|
31
31
|
editorName: "TitleEditor",
|
|
32
32
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
33
33
|
let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d }] = await Promise.all([
|
|
34
|
-
import("./dist-
|
|
35
|
-
import("./dist-
|
|
36
|
-
import("./dist-
|
|
37
|
-
import("./extensions-
|
|
34
|
+
import("./dist-BsCGIDSt.js").then((e) => e.r),
|
|
35
|
+
import("./dist-CNXDNYQn.js"),
|
|
36
|
+
import("./dist-B5Sov3sS.js"),
|
|
37
|
+
import("./extensions-DwaZAqm6.js")
|
|
38
38
|
]);
|
|
39
39
|
return {
|
|
40
40
|
TiptapEditor: a,
|
|
@@ -48,7 +48,8 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
48
48
|
bulletList: !1,
|
|
49
49
|
orderedList: !1,
|
|
50
50
|
listItem: !1,
|
|
51
|
-
strike: !1
|
|
51
|
+
strike: !1,
|
|
52
|
+
link: !1
|
|
52
53
|
}),
|
|
53
54
|
c.configure({
|
|
54
55
|
openOnClick: !1,
|
|
@@ -66,45 +67,45 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
66
67
|
mergeTags: e,
|
|
67
68
|
char: n,
|
|
68
69
|
emptyText: i,
|
|
69
|
-
popoverRoot:
|
|
70
|
+
popoverRoot: z
|
|
70
71
|
})] : []
|
|
71
72
|
]
|
|
72
73
|
};
|
|
73
74
|
}
|
|
74
75
|
});
|
|
75
|
-
return (
|
|
76
|
-
f(
|
|
76
|
+
return (m, g) => (n(), s("div", w, [
|
|
77
|
+
f(z) && !V.value ? (n(), u(l, {
|
|
77
78
|
key: 0,
|
|
78
|
-
to: f(
|
|
79
|
+
to: f(z)
|
|
79
80
|
}, [o("div", {
|
|
80
|
-
"data-tpl-theme": f(
|
|
81
|
+
"data-tpl-theme": f(R),
|
|
81
82
|
role: "toolbar",
|
|
82
83
|
"aria-label": f(H).titleEditor.toolbar,
|
|
83
84
|
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",
|
|
84
|
-
style:
|
|
85
|
+
style: e({
|
|
85
86
|
...f(L),
|
|
86
|
-
top: `${
|
|
87
|
-
left: `${
|
|
87
|
+
top: `${a.toolbarPosition.top}px`,
|
|
88
|
+
left: `${a.toolbarPosition.left}px`,
|
|
88
89
|
transform: "translateY(-100%)"
|
|
89
90
|
})
|
|
90
|
-
}, [!f(G) && f(U) ? (
|
|
91
|
+
}, [!f(G) && f(U) ? (n(), s(p, { key: 0 }, [
|
|
91
92
|
o("button", {
|
|
92
93
|
type: "button",
|
|
93
|
-
class:
|
|
94
|
+
class: t(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("bold") }]),
|
|
94
95
|
"aria-label": f(H).titleEditor.bold,
|
|
95
96
|
title: f(H).titleEditor.bold,
|
|
96
97
|
onClick: g[0] ||= (e) => f(U)?.chain().focus().toggleBold().run()
|
|
97
|
-
}, [
|
|
98
|
+
}, [c(f(ne), {
|
|
98
99
|
size: 16,
|
|
99
100
|
"stroke-width": 2.5
|
|
100
101
|
})], 10, E),
|
|
101
102
|
o("button", {
|
|
102
103
|
type: "button",
|
|
103
|
-
class:
|
|
104
|
+
class: t(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("italic") }]),
|
|
104
105
|
"aria-label": f(H).titleEditor.italic,
|
|
105
106
|
title: f(H).titleEditor.italic,
|
|
106
107
|
onClick: g[1] ||= (e) => f(U)?.chain().focus().toggleItalic().run()
|
|
107
|
-
}, [
|
|
108
|
+
}, [c(f(re), {
|
|
108
109
|
size: 16,
|
|
109
110
|
"stroke-width": 2
|
|
110
111
|
})], 10, D),
|
|
@@ -114,28 +115,28 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
114
115
|
}, null, -1),
|
|
115
116
|
o("button", {
|
|
116
117
|
type: "button",
|
|
117
|
-
class:
|
|
118
|
+
class: t(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("link") }]),
|
|
118
119
|
"aria-label": f(H).titleEditor.addLink,
|
|
119
120
|
title: f(H).titleEditor.addLink,
|
|
120
121
|
onClick: g[2] ||= (...e) => f(X) && f(X)(...e)
|
|
121
|
-
}, [
|
|
122
|
+
}, [c(f(ae), {
|
|
122
123
|
size: 16,
|
|
123
124
|
"stroke-width": 2
|
|
124
125
|
})], 10, O),
|
|
125
|
-
f(J) ? (
|
|
126
|
-
f(J) ? (
|
|
126
|
+
f(J) ? (n(), s("span", k)) : h("", !0),
|
|
127
|
+
f(J) ? (n(), s("button", {
|
|
127
128
|
key: 1,
|
|
128
129
|
type: "button",
|
|
129
130
|
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)]",
|
|
130
131
|
"aria-label": f(H).mergeTag.insert,
|
|
131
132
|
title: f(H).mergeTag.insert,
|
|
132
133
|
onClick: g[3] ||= (...e) => f(Q) && f(Q)(...e)
|
|
133
|
-
}, [
|
|
134
|
+
}, [c(f(x), {
|
|
134
135
|
size: 16,
|
|
135
136
|
"stroke-width": 2
|
|
136
|
-
}),
|
|
137
|
-
f(Y) ? (
|
|
138
|
-
f(Y) ? (
|
|
137
|
+
}), d(" " + r(f(H).mergeTag.insertShort), 1)], 8, A)) : h("", !0),
|
|
138
|
+
f(Y) ? (n(), s("span", j)) : h("", !0),
|
|
139
|
+
f(Y) ? (n(), s("button", {
|
|
139
140
|
key: 3,
|
|
140
141
|
type: "button",
|
|
141
142
|
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)]",
|
|
@@ -143,16 +144,16 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
143
144
|
title: f(H).logicTag.insert,
|
|
144
145
|
"data-testid": "insert-logic-button",
|
|
145
146
|
onClick: g[4] ||= (...e) => f($) && f($)(...e)
|
|
146
|
-
}, [
|
|
147
|
+
}, [c(f(se), {
|
|
147
148
|
size: 16,
|
|
148
149
|
"stroke-width": 2
|
|
149
|
-
}),
|
|
150
|
-
], 64)) : (
|
|
150
|
+
}), d(" " + r(f(H).logicTag.insertShort), 1)], 8, M)) : h("", !0)
|
|
151
|
+
], 64)) : (n(), s("div", N, [c(f(S), {
|
|
151
152
|
class: "tpl-spinner",
|
|
152
153
|
size: 14,
|
|
153
154
|
"stroke-width": 2
|
|
154
|
-
}),
|
|
155
|
-
|
|
155
|
+
}), d(" " + r(f(H).errors.editorLoading), 1)]))], 12, T)], 8, ["to"])) : h("", !0),
|
|
156
|
+
c(oe, {
|
|
156
157
|
editor: f(U),
|
|
157
158
|
"editor-content": f(W),
|
|
158
159
|
"is-loading": f(G),
|
|
@@ -165,13 +166,13 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
165
166
|
"init-error",
|
|
166
167
|
"onRetry"
|
|
167
168
|
]),
|
|
168
|
-
|
|
169
|
+
c(ie, {
|
|
169
170
|
visible: f(de),
|
|
170
171
|
"is-editing-link": f(U)?.isActive("link") ?? !1,
|
|
171
172
|
"dialog-ref": f(q),
|
|
172
|
-
"onUpdate:dialogRef": g[5] ||= (e) =>
|
|
173
|
+
"onUpdate:dialogRef": g[5] ||= (e) => i(q) ? q.value = e : null,
|
|
173
174
|
"link-url": f(K),
|
|
174
|
-
"onUpdate:linkUrl": g[6] ||= (e) =>
|
|
175
|
+
"onUpdate:linkUrl": g[6] ||= (e) => i(K) ? K.value = e : null,
|
|
175
176
|
onClose: f(pe),
|
|
176
177
|
onInsert: f(Z),
|
|
177
178
|
onRemove: f(fe),
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { O as e, R as t, Y as n, _ as r, c as i, d as a, h as o, i as s, j as c, l, nt as u, s as d, u as f, x as p } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
import { c as m, t as h } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
|
|
3
|
+
import { E as g } from "./useEditorCore-DJeOXVxQ.js";
|
|
4
|
+
import { I as _ } from "./keys-Cv8-8GsD.js";
|
|
5
|
+
import { t as v } from "./usePopoverRoot-DKUDnr55.js";
|
|
5
6
|
//#region src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
|
|
6
7
|
var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
|
|
7
8
|
__name: "TplModal",
|
|
@@ -9,15 +10,15 @@ var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
|
|
|
9
10
|
emits: ["close", "keydown"],
|
|
10
11
|
setup(r, { emit: b }) {
|
|
11
12
|
let x = r, S = b, C = n(null);
|
|
12
|
-
g(C,
|
|
13
|
-
let w =
|
|
13
|
+
g(C, d(() => x.visible));
|
|
14
|
+
let w = p(_), T = v();
|
|
14
15
|
function E(e) {
|
|
15
16
|
e.key === "Escape" && S("close"), S("keydown", e);
|
|
16
17
|
}
|
|
17
|
-
return (n,
|
|
18
|
+
return (n, d) => u(T) ? (e(), l(s, {
|
|
18
19
|
key: 0,
|
|
19
20
|
to: u(T)
|
|
20
|
-
}, [
|
|
21
|
+
}, [o(h, {
|
|
21
22
|
"enter-active-class": "tpl:transition tpl:duration-150",
|
|
22
23
|
"enter-from-class": "tpl:opacity-0",
|
|
23
24
|
"enter-to-class": "tpl:opacity-100",
|
|
@@ -25,7 +26,7 @@ var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
|
|
|
25
26
|
"leave-from-class": "tpl:opacity-100",
|
|
26
27
|
"leave-to-class": "tpl:opacity-0"
|
|
27
28
|
}, {
|
|
28
|
-
default:
|
|
29
|
+
default: t(() => [r.visible ? (e(), a("div", {
|
|
29
30
|
key: 0,
|
|
30
31
|
"data-tpl-theme": u(w),
|
|
31
32
|
class: "tpl tpl:fixed tpl:inset-0 tpl:z-modal tpl:flex tpl:items-center tpl:justify-center",
|
|
@@ -34,14 +35,14 @@ var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
|
|
|
34
35
|
"backdrop-filter": "blur(8px)",
|
|
35
36
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
36
37
|
},
|
|
37
|
-
onClick:
|
|
38
|
+
onClick: d[0] ||= m((e) => S("close"), ["self"]),
|
|
38
39
|
onKeydown: E
|
|
39
|
-
}, [
|
|
40
|
+
}, [i("div", {
|
|
40
41
|
ref_key: "dialogRef",
|
|
41
42
|
ref: C
|
|
42
|
-
}, [
|
|
43
|
+
}, [c(n.$slots, "default")], 512)], 40, y)) : f("", !0)]),
|
|
43
44
|
_: 3
|
|
44
|
-
})], 8, ["to"])) :
|
|
45
|
+
})], 8, ["to"])) : f("", !0);
|
|
45
46
|
}
|
|
46
47
|
});
|
|
47
48
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, O as t, P as n, j as r, k as i } from "./useEditorCore-
|
|
2
|
-
import { t as a } from "./createLucideIcon-
|
|
1
|
+
import { A as e, O as t, P as n, j as r, k as i } from "./useEditorCore-DJeOXVxQ.js";
|
|
2
|
+
import { t as a } from "./createLucideIcon-Dx-EjR9r.js";
|
|
3
3
|
var o = a("columns-3", [
|
|
4
4
|
["rect", {
|
|
5
5
|
width: "18",
|