@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,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as x } from "./circle-alert-
|
|
6
|
-
import { n as S, t as C } from "./refresh-cw-
|
|
7
|
-
import { t as ae } from "./info-
|
|
8
|
-
import { t as w } from "./loader-circle-
|
|
9
|
-
import { t as T } from "./shield-check-
|
|
10
|
-
import { t as E } from "./sparkles-
|
|
11
|
-
import { t as oe } from "./triangle-alert-
|
|
12
|
-
import { t as se } from "./x-
|
|
13
|
-
import { t as ce } from "./LoadingTrack-
|
|
14
|
-
import { t as D } from "./_plugin-vue_export-helper-
|
|
15
|
-
import { n as le } from "./useCloudI18n-
|
|
16
|
-
var O =
|
|
1
|
+
import { At as e, C as t, D as n, F as r, Ft as i, N as a, R as o, U as ee, V as s, _ as c, b as l, et as u, f as d, g as f, h as p, jt as m, st as h, t as te, v as g, x as _ } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
+
import { A as v, E as ne, m as re, y } from "./keys-CvX8D-8C.js";
|
|
3
|
+
import { t as b } from "./createLucideIcon-ClREiSx3.js";
|
|
4
|
+
import { t as ie } from "./chevron-down-C5oBUhT8.js";
|
|
5
|
+
import { t as x } from "./circle-alert-ZQQc98HC.js";
|
|
6
|
+
import { n as S, t as C } from "./refresh-cw-DwDqGUM0.js";
|
|
7
|
+
import { t as ae } from "./info-BSPGcsSM.js";
|
|
8
|
+
import { t as w } from "./loader-circle-Balo8p3d.js";
|
|
9
|
+
import { t as T } from "./shield-check-jkpgcC0-.js";
|
|
10
|
+
import { t as E } from "./sparkles-Chm5CZfb.js";
|
|
11
|
+
import { t as oe } from "./triangle-alert-KpDVNbpn.js";
|
|
12
|
+
import { t as se } from "./x-BkaOMosX.js";
|
|
13
|
+
import { t as ce } from "./LoadingTrack-Ba2pfF57.js";
|
|
14
|
+
import { t as D } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
|
|
15
|
+
import { n as le } from "./useCloudI18n-DOKSZql1.js";
|
|
16
|
+
var O = b("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",
|
|
19
19
|
key: "oel41y"
|
|
@@ -26,7 +26,7 @@ var O = y("shield-x", [
|
|
|
26
26
|
d: "m9.5 9.5 5 5",
|
|
27
27
|
key: "18nt4w"
|
|
28
28
|
}]
|
|
29
|
-
]), k =
|
|
29
|
+
]), k = b("zap", [["path", {
|
|
30
30
|
d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
|
|
31
31
|
key: "1xq2db"
|
|
32
32
|
}]]);
|
|
@@ -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__ */ D(/* @__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__ */ D(/* @__PURE__ */ t({
|
|
89
89
|
__name: "TemplateScoringPanel",
|
|
90
90
|
props: { visible: { type: Boolean } },
|
|
91
91
|
emits: ["close"],
|
|
92
|
-
setup(
|
|
93
|
-
let D =
|
|
92
|
+
setup(t, { emit: b }) {
|
|
93
|
+
let D = t, G = b, { t: K } = le(), q = v(re, "TemplateScoringPanel"), J = v(ne, "TemplateScoringPanel"), Y = n(y, []), X = u({
|
|
94
94
|
spam: !0,
|
|
95
95
|
readability: !0,
|
|
96
96
|
accessibility: !0,
|
|
@@ -113,7 +113,7 @@ var P = {
|
|
|
113
113
|
function Q() {
|
|
114
114
|
J.score(q.content.value, Y);
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
s(() => D.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, s) => (a(), f(te, {
|
|
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,121 +136,121 @@ var P = {
|
|
|
136
136
|
"leave-from-class": "tpl:translate-x-0",
|
|
137
137
|
"leave-to-class": "tpl:translate-x-full"
|
|
138
138
|
}, {
|
|
139
|
-
default: ee(() => [
|
|
139
|
+
default: ee(() => [t.visible ? (a(), g("div", P, [p("div", F, [p("div", I, [_(h(T), {
|
|
140
140
|
size: 13,
|
|
141
141
|
"stroke-width": 2
|
|
142
|
-
}),
|
|
142
|
+
}), p("span", null, i(h(K).scoring.title), 1)]), p("div", L, [h(J).scoringResult.value && !h(J).isScoring.value ? (a(), g("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:
|
|
145
|
+
title: h(K).scoring.rescore,
|
|
146
146
|
onClick: s[0] ||= (e) => Q()
|
|
147
|
-
}, [
|
|
147
|
+
}, [_(h(C), {
|
|
148
148
|
size: 14,
|
|
149
149
|
"stroke-width": 2
|
|
150
|
-
})], 8, R)) :
|
|
150
|
+
})], 8, R)) : c("", !0), p("button", {
|
|
151
151
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
152
152
|
onClick: s[1] ||= (e) => G("close")
|
|
153
|
-
}, [
|
|
153
|
+
}, [_(h(se), {
|
|
154
154
|
size: 14,
|
|
155
155
|
"stroke-width": 2
|
|
156
|
-
})])])]),
|
|
157
|
-
|
|
156
|
+
})])])]), p("div", z, [h(J).isScoring.value ? (a(), g("div", B, [p("p", V, i(h(K).scoring.scoring), 1), _(ce, { class: "tpl:w-3/4" })])) : h(J).error.value && !h(J).scoringResult.value ? (a(), g("div", H, [
|
|
157
|
+
_(h(x), {
|
|
158
158
|
size: 32,
|
|
159
159
|
"stroke-width": 1.5,
|
|
160
160
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
161
161
|
}),
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
p("p", U, i(h(K).scoring.error), 1),
|
|
163
|
+
p("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
165
|
onClick: s[2] ||= (e) => Q()
|
|
166
|
-
}, [
|
|
166
|
+
}, [_(h(C), {
|
|
167
167
|
size: 12,
|
|
168
168
|
"stroke-width": 2
|
|
169
|
-
}),
|
|
170
|
-
])) :
|
|
171
|
-
|
|
169
|
+
}), l(" " + i(h(K).scoring.rescore), 1)])
|
|
170
|
+
])) : h(J).scoringResult.value ? (a(), g("div", W, [
|
|
171
|
+
p("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: m({ backgroundColor: h(j)(h(J).scoringResult.value.score) })
|
|
174
174
|
}, [
|
|
175
|
-
|
|
175
|
+
p("span", {
|
|
176
176
|
class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
|
|
177
|
-
style:
|
|
178
|
-
}, i(
|
|
179
|
-
|
|
180
|
-
$() > 0 ? (
|
|
177
|
+
style: m({ color: h(A)(h(J).scoringResult.value.score) })
|
|
178
|
+
}, i(h(J).scoringResult.value.score), 5),
|
|
179
|
+
p("span", ue, i(h(K).scoring.overallScore), 1),
|
|
180
|
+
$() > 0 ? (a(), g("span", de, i($()) + " " + i(h(K).scoring.findings), 1)) : c("", !0)
|
|
181
181
|
], 4),
|
|
182
|
-
|
|
182
|
+
h(J).fixError.value ? (a(), g("div", fe, [_(h(x), {
|
|
183
183
|
size: 14,
|
|
184
184
|
"stroke-width": 2,
|
|
185
185
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
186
|
-
}),
|
|
187
|
-
(
|
|
186
|
+
}), p("span", null, i(h(K).scoring.fixError), 1)])) : c("", !0),
|
|
187
|
+
(a(), g(d, null, r(Z, (t) => p("div", {
|
|
188
188
|
key: t,
|
|
189
189
|
class: "tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)]"
|
|
190
|
-
}, [
|
|
190
|
+
}, [p("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
192
|
onClick: (e) => ke(t)
|
|
193
193
|
}, [
|
|
194
|
-
(
|
|
194
|
+
(a(), f(o(Ae[t]), {
|
|
195
195
|
size: 14,
|
|
196
196
|
"stroke-width": 2,
|
|
197
|
-
style:
|
|
197
|
+
style: m({ color: h(A)(h(J).scoringResult.value.categories[t].score) })
|
|
198
198
|
}, null, 8, ["style"])),
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
p("span", me, i(h(K).scoring.categories[t]), 1),
|
|
200
|
+
p("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: m({
|
|
203
|
+
color: h(A)(h(J).scoringResult.value.categories[t].score),
|
|
204
|
+
backgroundColor: h(j)(h(J).scoringResult.value.categories[t].score)
|
|
205
205
|
})
|
|
206
|
-
}, i(
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
}, i(h(J).scoringResult.value.categories[t].score), 5),
|
|
207
|
+
h(J).scoringResult.value.categories[t].findings.length > 0 ? (a(), g("span", he, i(h(J).scoringResult.value.categories[t].findings.length), 1)) : c("", !0),
|
|
208
|
+
_(h(ie), {
|
|
209
209
|
size: 12,
|
|
210
210
|
"stroke-width": 2,
|
|
211
211
|
class: e(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[t] ? "tpl:rotate-0" : "tpl:-rotate-90"])
|
|
212
212
|
}, null, 8, ["class"])
|
|
213
|
-
], 8, pe), X.value[t] ? (
|
|
213
|
+
], 8, pe), X.value[t] ? (a(), g("div", ge, [h(J).scoringResult.value.categories[t].findings.length === 0 ? (a(), g("div", _e, i(h(K).scoring.noFindings), 1)) : c("", !0), (a(!0), g(d, null, r(h(J).scoringResult.value.categories[t].findings, (e) => (a(), g("div", {
|
|
214
214
|
key: e.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
|
+
}, [p("div", ve, [(a(), f(o(e.severity === "high" ? h(x) : e.severity === "medium" ? h(oe) : h(ae)), {
|
|
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: m({ color: h(M)(e.severity) })
|
|
221
|
+
}, null, 8, ["style"])), p("div", ye, [
|
|
222
|
+
p("div", be, [p("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: m({
|
|
225
|
+
color: h(M)(e.severity),
|
|
226
|
+
backgroundColor: h(N)(e.severity)
|
|
227
227
|
})
|
|
228
|
-
}, i(
|
|
229
|
-
e.suggestion ? (
|
|
230
|
-
e.blockId ? (
|
|
228
|
+
}, i(h(K).scoring.severity[e.severity]), 5), p("span", xe, i(e.message), 1)]),
|
|
229
|
+
e.suggestion ? (a(), g("p", Se, i(e.suggestion), 1)) : c("", !0),
|
|
230
|
+
e.blockId ? (a(), g("div", Ce, [p("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:
|
|
233
|
+
disabled: h(J).fixingFindingId.value !== null,
|
|
234
234
|
onClick: (t) => je(e)
|
|
235
|
-
}, [
|
|
235
|
+
}, [h(J).fixingFindingId.value === e.id ? (a(), f(h(w), {
|
|
236
236
|
key: 0,
|
|
237
237
|
class: "tpl-spinner",
|
|
238
238
|
size: 11,
|
|
239
239
|
"stroke-width": 2
|
|
240
|
-
})) : (
|
|
240
|
+
})) : (a(), f(h(E), {
|
|
241
241
|
key: 1,
|
|
242
242
|
size: 11,
|
|
243
243
|
"stroke-width": 2
|
|
244
|
-
})),
|
|
245
|
-
])])]))), 128))])) :
|
|
246
|
-
])) : (
|
|
244
|
+
})), l(" " + i(h(J).fixingFindingId.value === e.id ? h(K).scoring.fixing : h(K).scoring.fix), 1)], 8, we), h(J).fixError.value ? (a(), g("p", Te, i(h(J).fixError.value), 1)) : c("", !0)])) : c("", !0)
|
|
245
|
+
])])]))), 128))])) : c("", !0)])), 64))
|
|
246
|
+
])) : (a(), g("div", Ee, [_(h(T), {
|
|
247
247
|
size: 32,
|
|
248
248
|
"stroke-width": 1.5,
|
|
249
249
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
250
|
-
}),
|
|
250
|
+
}), p("p", De, i(h(K).scoring.emptyState), 1)])), p("p", Oe, i(h(K).aiMenu.disclaimer), 1)])])) : c("", !0)]),
|
|
251
251
|
_: 1
|
|
252
252
|
}));
|
|
253
253
|
}
|
|
254
|
-
}), [["__scopeId", "data-v-
|
|
254
|
+
}), [["__scopeId", "data-v-79e79258"]]);
|
|
255
255
|
//#endregion
|
|
256
256
|
export { G as default };
|
|
@@ -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 { At as e, C as t, F as n, Ft as r, N as i, U as a, V as o, W as s, _ as c, b as l, et as u, f as d, g as f, h as p, s as m, st as h, v as g, x as _ } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
+
import "./useEditorCore-wslttMH-.js";
|
|
3
|
+
import { t as v } from "./loader-circle-Balo8p3d.js";
|
|
4
|
+
import { n as y } from "./useCloudI18n-DOKSZql1.js";
|
|
5
|
+
import { t as b } from "./TplModal-BAsVzcTb.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__ */ t({
|
|
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(t, { emit: P }) {
|
|
27
|
+
let F = t, I = P, { t: L } = y(), R = u("");
|
|
28
|
+
o(() => 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 (o, u) => (i(), f(b, {
|
|
41
|
+
visible: t.visible,
|
|
42
42
|
onClose: B,
|
|
43
43
|
onKeydown: V
|
|
44
44
|
}, {
|
|
45
|
-
default:
|
|
45
|
+
default: a(() => [p("div", {
|
|
46
46
|
role: "dialog",
|
|
47
47
|
"aria-modal": "true",
|
|
48
|
-
"aria-busy":
|
|
48
|
+
"aria-busy": t.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
|
+
p("h3", S, r(h(L).testEmail.title), 1),
|
|
57
|
+
p("div", C, [p("label", w, r(h(L).testEmail.recipientLabel), 1), t.allowedEmails.length === 1 ? (i(), g("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)) :
|
|
63
|
+
}, null, 8, T)) : s((i(), g("select", {
|
|
64
64
|
key: 1,
|
|
65
|
-
"onUpdate:modelValue":
|
|
65
|
+
"onUpdate:modelValue": u[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
|
-
}, [(
|
|
67
|
+
disabled: t.isSending
|
|
68
|
+
}, [(i(!0), g(d, null, n(t.allowedEmails, (e) => (i(), g("option", {
|
|
69
69
|
key: e,
|
|
70
70
|
value: e
|
|
71
|
-
}, r(e), 9, D))), 128))], 8, E)), [[
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
}, r(e), 9, D))), 128))], 8, E)), [[m, R.value]])]),
|
|
72
|
+
t.error ? (i(), g("p", O, r(t.error), 1)) : c("", !0),
|
|
73
|
+
p("div", k, [p("button", {
|
|
74
74
|
type: "button",
|
|
75
|
-
class: e(["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":
|
|
76
|
-
disabled:
|
|
75
|
+
class: e(["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": t.isSending }]),
|
|
76
|
+
disabled: t.isSending,
|
|
77
77
|
onClick: B
|
|
78
|
-
}, r(
|
|
78
|
+
}, r(h(L).testEmail.cancel), 11, A), p("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 || t.isSending,
|
|
82
82
|
onClick: z
|
|
83
|
-
}, [
|
|
83
|
+
}, [t.isSending ? (i(), g("span", M, [_(h(v), {
|
|
84
84
|
class: "tpl:animate-spin",
|
|
85
85
|
size: 12,
|
|
86
86
|
"stroke-width": 2
|
|
87
|
-
}),
|
|
87
|
+
}), l(" " + r(h(L).testEmail.sending), 1)])) : (i(), g("span", N, r(h(L).testEmail.send), 1))], 8, j)])
|
|
88
88
|
], 8, x)]),
|
|
89
89
|
_: 1
|
|
90
90
|
}, 8, ["visible"]));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { D as _,
|
|
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 E } from "./scan-line-
|
|
1
|
+
import { At as e, C as t, D as n, Ft as r, N as i, Y as a, _ as o, b as s, f as c, g as l, h as u, jt as d, p as f, st as p, v as m, x as h } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
+
import { x as g } from "./useEditorCore-wslttMH-.js";
|
|
3
|
+
import { D as _, k as v } from "./keys-CvX8D-8C.js";
|
|
4
|
+
import { t as y } from "./useI18n-C2xQZ6K9.js";
|
|
5
|
+
import { a as b, i as x, n as S, r as C, t as w } from "./RichTextEditorContent-CrqPQdnk.js";
|
|
6
|
+
import { t as T } from "./loader-circle-Balo8p3d.js";
|
|
7
|
+
import { t as E } from "./scan-line-CzfFJO1o.js";
|
|
8
8
|
//#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var ee = { 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,
|
|
@@ -12,25 +12,25 @@ var ee = { class: "tpl-text-editor-wrapper tpl:relative" }, D = ["data-tpl-theme
|
|
|
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__ */ t({
|
|
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(t, { emit: P }) {
|
|
23
|
+
let F = t, I = P, L = n(_, null), R = n(v, 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-
|
|
31
|
-
import("./dist-
|
|
32
|
-
import("./dist-
|
|
33
|
-
import("./extensions-
|
|
30
|
+
import("./dist-C9ckKEZL.js").then((e) => e.r),
|
|
31
|
+
import("./dist-Bz3M4RXG.js"),
|
|
32
|
+
import("./dist-C3T2AKtB.js"),
|
|
33
|
+
import("./extensions-D__hOlV1.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 (n, g) => (i(), m("div", ee, [
|
|
71
|
+
(i(), l(f, { to: "body" }, [u("div", {
|
|
72
|
+
"data-tpl-theme": p(R),
|
|
73
73
|
role: "toolbar",
|
|
74
|
-
"aria-label":
|
|
74
|
+
"aria-label": p(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: d({
|
|
77
|
+
...p(L),
|
|
78
|
+
top: `${t.toolbarPosition.top}px`,
|
|
79
|
+
left: `${t.toolbarPosition.left}px`,
|
|
80
80
|
transform: "translateY(-100%)"
|
|
81
81
|
})
|
|
82
|
-
}, [!
|
|
83
|
-
|
|
82
|
+
}, [!p(H) && p(B) ? (i(), m(c, { key: 0 }, [
|
|
83
|
+
u("button", {
|
|
84
84
|
type: "button",
|
|
85
|
-
class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active":
|
|
86
|
-
"aria-label":
|
|
87
|
-
title:
|
|
88
|
-
onClick: g[0] ||= (e) =>
|
|
89
|
-
}, [
|
|
85
|
+
class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": p(B)?.isActive("bold") }]),
|
|
86
|
+
"aria-label": p(z).titleEditor.bold,
|
|
87
|
+
title: p(z).titleEditor.bold,
|
|
88
|
+
onClick: g[0] ||= (e) => p(B)?.chain().focus().toggleBold().run()
|
|
89
|
+
}, [h(p(b), {
|
|
90
90
|
size: 16,
|
|
91
91
|
"stroke-width": 2.5
|
|
92
92
|
})], 10, O),
|
|
93
|
-
|
|
93
|
+
u("button", {
|
|
94
94
|
type: "button",
|
|
95
|
-
class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active":
|
|
96
|
-
"aria-label":
|
|
97
|
-
title:
|
|
98
|
-
onClick: g[1] ||= (e) =>
|
|
99
|
-
}, [
|
|
95
|
+
class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": p(B)?.isActive("italic") }]),
|
|
96
|
+
"aria-label": p(z).titleEditor.italic,
|
|
97
|
+
title: p(z).titleEditor.italic,
|
|
98
|
+
onClick: g[1] ||= (e) => p(B)?.chain().focus().toggleItalic().run()
|
|
99
|
+
}, [h(p(x), {
|
|
100
100
|
size: 16,
|
|
101
101
|
"stroke-width": 2
|
|
102
102
|
})], 10, k),
|
|
103
|
-
g[6] ||=
|
|
103
|
+
g[6] ||= u("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
|
+
u("button", {
|
|
108
108
|
type: "button",
|
|
109
|
-
class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active":
|
|
110
|
-
"aria-label":
|
|
111
|
-
title:
|
|
112
|
-
onClick: g[2] ||= (...e) =>
|
|
113
|
-
}, [
|
|
109
|
+
class: e(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": p(B)?.isActive("link") }]),
|
|
110
|
+
"aria-label": p(z).titleEditor.addLink,
|
|
111
|
+
title: p(z).titleEditor.addLink,
|
|
112
|
+
onClick: g[2] ||= (...e) => p(Y) && p(Y)(...e)
|
|
113
|
+
}, [h(p(C), {
|
|
114
114
|
size: 16,
|
|
115
115
|
"stroke-width": 2
|
|
116
116
|
})], 10, A),
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
p(J) ? (i(), m("span", j)) : o("", !0),
|
|
118
|
+
p(J) ? (i(), m("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": p(z).mergeTag.add,
|
|
123
|
+
title: p(z).mergeTag.add,
|
|
124
|
+
onClick: g[3] ||= (...e) => p($) && p($)(...e)
|
|
125
|
+
}, [h(p(E), {
|
|
126
126
|
size: 16,
|
|
127
127
|
"stroke-width": 2
|
|
128
|
-
}),
|
|
129
|
-
], 64)) : (
|
|
128
|
+
}), s(" " + r(p(z).mergeTag.add), 1)], 8, M)) : o("", !0)
|
|
129
|
+
], 64)) : (i(), m("div", N, [h(p(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
|
+
}), s(" " + r(p(z).errors.editorLoading), 1)]))], 12, D)])),
|
|
134
|
+
h(w, {
|
|
135
|
+
editor: p(B),
|
|
136
|
+
"editor-content": p(V),
|
|
137
|
+
"is-loading": p(H),
|
|
138
|
+
"init-error": p(U),
|
|
139
|
+
onRetry: p(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
|
+
h(S, {
|
|
148
|
+
visible: p(G),
|
|
149
|
+
"is-editing-link": p(B)?.isActive("link") ?? !1,
|
|
150
|
+
"dialog-ref": p(q),
|
|
151
|
+
"onUpdate:dialogRef": g[4] ||= (e) => a(q) ? q.value = e : null,
|
|
152
|
+
"link-url": p(K),
|
|
153
|
+
"onUpdate:linkUrl": g[5] ||= (e) => a(K) ? K.value = e : null,
|
|
154
|
+
onClose: p(Q),
|
|
155
|
+
onInsert: p(X),
|
|
156
|
+
onRemove: p(Z),
|
|
157
|
+
onKeydown: p(te)
|
|
158
158
|
}, null, 8, [
|
|
159
159
|
"visible",
|
|
160
160
|
"is-editing-link",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { C as e, D as t, I as n, N as r, U as i, _ as a, d as o, et as s, g as c, h as l, m as u, p as d, st as f, t as p, v as m, x as h } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
|
+
import { T as g } from "./useEditorCore-wslttMH-.js";
|
|
3
|
+
import { k as _ } from "./keys-CvX8D-8C.js";
|
|
4
4
|
//#region src/cloud/components/TplModal.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var v = ["data-tpl-theme"], y = /* @__PURE__ */
|
|
5
|
+
var v = ["data-tpl-theme"], y = /* @__PURE__ */ e({
|
|
6
6
|
__name: "TplModal",
|
|
7
7
|
props: { visible: { type: Boolean } },
|
|
8
8
|
emits: ["close", "keydown"],
|
|
9
|
-
setup(
|
|
10
|
-
let b =
|
|
11
|
-
g(S,
|
|
12
|
-
let C =
|
|
9
|
+
setup(e, { emit: y }) {
|
|
10
|
+
let b = e, x = y, S = s(null);
|
|
11
|
+
g(S, u(() => b.visible));
|
|
12
|
+
let C = t(_);
|
|
13
13
|
function w(e) {
|
|
14
14
|
e.key === "Escape" && x("close"), x("keydown", e);
|
|
15
15
|
}
|
|
16
|
-
return (
|
|
16
|
+
return (t, s) => (r(), c(d, { to: "body" }, [h(p, {
|
|
17
17
|
"enter-active-class": "tpl:transition tpl:duration-150",
|
|
18
18
|
"enter-from-class": "tpl:opacity-0",
|
|
19
19
|
"enter-to-class": "tpl:opacity-100",
|
|
@@ -21,21 +21,21 @@ var v = ["data-tpl-theme"], y = /* @__PURE__ */ i({
|
|
|
21
21
|
"leave-from-class": "tpl:opacity-100",
|
|
22
22
|
"leave-to-class": "tpl:opacity-0"
|
|
23
23
|
}, {
|
|
24
|
-
default:
|
|
24
|
+
default: i(() => [e.visible ? (r(), m("div", {
|
|
25
25
|
key: 0,
|
|
26
|
-
"data-tpl-theme":
|
|
26
|
+
"data-tpl-theme": f(C),
|
|
27
27
|
class: "tpl tpl:fixed tpl:inset-0 tpl:z-modal tpl:flex tpl:items-center tpl:justify-center",
|
|
28
28
|
style: {
|
|
29
29
|
"background-color": "var(--tpl-overlay)",
|
|
30
30
|
"backdrop-filter": "blur(8px)",
|
|
31
31
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
32
32
|
},
|
|
33
|
-
onClick:
|
|
33
|
+
onClick: s[0] ||= o((e) => x("close"), ["self"]),
|
|
34
34
|
onKeydown: w
|
|
35
|
-
}, [
|
|
35
|
+
}, [l("div", {
|
|
36
36
|
ref_key: "dialogRef",
|
|
37
37
|
ref: S
|
|
38
|
-
}, [t
|
|
38
|
+
}, [n(t.$slots, "default")], 512)], 40, v)) : a("", !0)]),
|
|
39
39
|
_: 3
|
|
40
40
|
})]));
|
|
41
41
|
}
|