@templatical/editor 0.17.1 → 0.18.0
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-LxCHMdcj.js → AiChatSidebar-BWIzNePR.js} +2 -2
- package/dist/{AiFeatureMenu-Cr8pLXMj.js → AiFeatureMenu-IoLW8c6m.js} +4 -4
- package/dist/{BlockIssueBadge-BQ1yB1me.js → BlockIssueBadge-FbyZBJlf.js} +2 -2
- package/dist/{CloudEditor-qzoNS8K4.js → CloudEditor-txLsdvcR.js} +10 -10
- package/dist/{CollaboratorBar-BkfR0CyD.js → CollaboratorBar-CpLOFt43.js} +2 -2
- package/dist/{ColorPicker-DfzDyNKe.js → ColorPicker-BXCcUYsZ.js} +3 -3
- package/dist/{CommentsSidebar-Cl93TN96.js → CommentsSidebar-C8xFu9qy.js} +3 -3
- package/dist/{CountdownBlock-DbXfzwae.js → CountdownBlock-CaU40Htk.js} +1 -1
- package/dist/{CountdownToolbar-BqaMWRyB.js → CountdownToolbar-CBbGAxmF.js} +3 -3
- package/dist/{DesignReferenceSidebar-jVrdS8wW.js → DesignReferenceSidebar-BWZgqmT-.js} +13 -14
- package/dist/{IssuesPanel-Bq3yXg6M.js → IssuesPanel-CBzfmzRM.js} +2 -2
- package/dist/{ModuleBrowserModal-XEHfEO0O.js → ModuleBrowserModal-C9qHpjaS.js} +7 -7
- package/dist/{ModulePreviewCanvas-BM8XUgbc.js → ModulePreviewCanvas-xEMWMJwf.js} +2 -2
- package/dist/{NumberWithSuffix-9FG7mNnn.js → NumberWithSuffix-BreqtON_.js} +1 -1
- package/dist/{ParagraphEditor-Cs47wU1V.js → ParagraphEditor-iRJI_YbA.js} +8 -8
- package/dist/{RichTextEditorContent-DCzmVeyb.js → RichTextEditorContent-DkXai9qP.js} +4 -4
- package/dist/{SaveModuleDialog-BgOS9vCQ.js → SaveModuleDialog-DqDmk0rO.js} +6 -6
- package/dist/{SnapshotHistory-CLfYzwv9.js → SnapshotHistory-BVe5aCHi.js} +4 -4
- package/dist/{TemplateScoringPanel-CMrfa9Rd.js → TemplateScoringPanel-CRqt9-T5.js} +77 -77
- package/dist/{TestEmailModal-DTLfATNt.js → TestEmailModal-jpy4hnYZ.js} +3 -3
- package/dist/{TitleEditor-Bq9S0C8Z.js → TitleEditor-Bf6Jv2qI.js} +7 -7
- package/dist/{TplModal-BW0FAtYe.js → TplModal-DAtccv6o.js} +3 -3
- package/dist/{blockTypeIcons-CvSfLeyV.js → blockTypeIcons-CnlwyvkL.js} +1 -1
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AiFeatureMenu-B0zH66nO.js → AiFeatureMenu-B4oJlFQI.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-B0zH66nO.js.map → AiFeatureMenu-B4oJlFQI.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-yD4pKsU9.js → BlockIssueBadge-C7Ts7bT7.js} +2 -2
- package/dist/cdn/chunks/{BlockIssueBadge-yD4pKsU9.js.map → BlockIssueBadge-C7Ts7bT7.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-Da-aSmw5.js → CloudEditor-BRO-2CcF.js} +9 -9
- package/dist/cdn/chunks/{CloudEditor-Da-aSmw5.js.map → CloudEditor-BRO-2CcF.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DixaFis-.js → CollaboratorBar-BsWOjOCS.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-DixaFis-.js.map → CollaboratorBar-BsWOjOCS.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-O6xXCPEg.js → ColorPicker-DEtVX4gN.js} +2 -2
- package/dist/cdn/chunks/{ColorPicker-O6xXCPEg.js.map → ColorPicker-DEtVX4gN.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-jgBPbI1p.js → CountdownBlock-BUGxk8GI.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-jgBPbI1p.js.map → CountdownBlock-BUGxk8GI.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DrmZwvIH.js → CountdownToolbar-C8tWWfGw.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-DrmZwvIH.js.map → CountdownToolbar-C8tWWfGw.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CpyhXg9M.js → IssuesPanel-C5izyrbm.js} +3 -3
- package/dist/cdn/chunks/{IssuesPanel-CpyhXg9M.js.map → IssuesPanel-C5izyrbm.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DPQLFTti.js → ModuleBrowserModal-DySKXKFF.js} +5 -5
- package/dist/cdn/chunks/{ModuleBrowserModal-DPQLFTti.js.map → ModuleBrowserModal-DySKXKFF.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Csc6M0RA.js → ModulePreviewCanvas-qqEvLBp2.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-Csc6M0RA.js.map → ModulePreviewCanvas-qqEvLBp2.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-YmcsBmCd.js → NumberWithSuffix-DttdbXsh.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-YmcsBmCd.js.map → NumberWithSuffix-DttdbXsh.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DR5AcHB0.js → ParagraphEditor-CQJ23PXU.js} +6 -6
- package/dist/cdn/chunks/{ParagraphEditor-DR5AcHB0.js.map → ParagraphEditor-CQJ23PXU.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-52c2EuCT.js → RichTextEditorContent-C4vxiXng.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-52c2EuCT.js.map → RichTextEditorContent-C4vxiXng.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-dpRlVrrQ.js → SaveModuleDialog-D5eddgzd.js} +2 -2
- package/dist/cdn/chunks/{SaveModuleDialog-dpRlVrrQ.js.map → SaveModuleDialog-D5eddgzd.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DtQTPAg3.js → TitleEditor-5TkwDrPL.js} +5 -5
- package/dist/cdn/chunks/{TitleEditor-DtQTPAg3.js.map → TitleEditor-5TkwDrPL.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-B0ktHdUG.js → blockTypeIcons-CbmN4aSw.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-B0ktHdUG.js.map → blockTypeIcons-CbmN4aSw.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-CiewgCtw.js → extensions-B3M4IqhZ.js} +2 -2
- package/dist/cdn/chunks/{extensions-CiewgCtw.js.map → extensions-B3M4IqhZ.js.map} +1 -1
- package/dist/cdn/chunks/{features-DLu_D-6j.js → features-HBwOEo4D.js} +748 -685
- package/dist/cdn/chunks/features-HBwOEo4D.js.map +1 -0
- package/dist/cdn/chunks/{icons-B03IY-pm.js → icons-D4vTsN4p.js} +2 -2
- package/dist/cdn/chunks/{icons-B03IY-pm.js.map → icons-D4vTsN4p.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-CYF18RNk.js → media-library-CfExuiSG.js} +3 -3
- package/dist/cdn/chunks/{media-library-CYF18RNk.js.map → media-library-CfExuiSG.js.map} +1 -1
- package/dist/cdn/chunks/{quality-LmsngN2B.js → quality-nh1R42eb.js} +2 -2
- package/dist/cdn/chunks/{quality-LmsngN2B.js.map → quality-nh1R42eb.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-DAeNIQqa.js → renderer-BLvlUayY.js} +3 -3
- package/dist/cdn/chunks/{renderer-DAeNIQqa.js.map → renderer-BLvlUayY.js.map} +1 -1
- package/dist/cdn/chunks/{src-CModhUDN.js → src-Cks4RrLL.js} +4 -4
- package/dist/cdn/chunks/{src-CModhUDN.js.map → src-Cks4RrLL.js.map} +1 -1
- package/dist/cdn/chunks/{styles-hd_LBGaF.js → styles-CPCN13az.js} +9 -9
- package/dist/cdn/chunks/{styles-hd_LBGaF.js.map → styles-CPCN13az.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +8 -7
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{extensions-DhgbhfBX.js → extensions-gpFdCinj.js} +2 -2
- package/dist/index.d.ts +37 -0
- package/dist/{keys-WVNarXg8.js → keys-DAxnnmXs.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{styles-BWC0jc5-.js → styles-CJ6WmkYL.js} +137 -137
- package/dist/templatical-editor.js +7 -6
- package/dist/{upload-BKg6hDRW.js → upload-y4gxiFp5.js} +3 -2
- package/dist/{useCloudI18n-CIKI0hCd.js → useCloudI18n-DIn74fK2.js} +1 -1
- package/dist/{useEditorCore-FLMIhtv1.js → useEditorCore-LJJNXXqC.js} +794 -731
- package/dist/{useI18n-0EU_JVe7.js → useI18n-OaMLWqhY.js} +1 -1
- package/dist/{useMergeTag-C7v6MVah.js → useMergeTag-CZMgwVvr.js} +2 -2
- package/dist/{usePopoverPosition-BDqqnMeo.js → usePopoverPosition-QDY09q9H.js} +1 -1
- package/package.json +7 -7
- package/dist/cdn/chunks/features-DLu_D-6j.js.map +0 -1
- package/dist/timeouts-Bmi_yePw.js +0 -4
|
@@ -1,20 +1,20 @@
|
|
|
1
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-B0xoGkDv.js";
|
|
2
2
|
import { t as ne } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n 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 { t as
|
|
16
|
-
import { n as
|
|
17
|
-
var
|
|
3
|
+
import { P as re, m as ie, w as ae, z as _ } from "./keys-DAxnnmXs.js";
|
|
4
|
+
import { t as v } from "./createLucideIcon-FSF4peHQ.js";
|
|
5
|
+
import { t as y } from "./chevron-down-dClfxKrJ.js";
|
|
6
|
+
import { t as b } from "./circle-alert-Bhzm-fNA.js";
|
|
7
|
+
import { n as x, t as S } from "./refresh-cw-as5Bmg4X.js";
|
|
8
|
+
import { t as oe } from "./info-BNP8yGsK.js";
|
|
9
|
+
import { t as C } from "./loader-circle-BT38qSm3.js";
|
|
10
|
+
import { t as w } from "./shield-check-YYDhGroE.js";
|
|
11
|
+
import { t as T } from "./sparkles-CCwQMMMZ.js";
|
|
12
|
+
import { t as se } from "./triangle-alert-B2g0ALvq.js";
|
|
13
|
+
import { t as ce } from "./x-Ctg_250T.js";
|
|
14
|
+
import { t as le } from "./LoadingTrack-KIcREPlS.js";
|
|
15
|
+
import { t as E } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
+
import { n as ue } from "./useCloudI18n-DIn74fK2.js";
|
|
17
|
+
var D = v("shield-x", [
|
|
18
18
|
["path", {
|
|
19
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",
|
|
20
20
|
key: "oel41y"
|
|
@@ -27,71 +27,71 @@ var O = y("shield-x", [
|
|
|
27
27
|
d: "m9.5 9.5 5 5",
|
|
28
28
|
key: "18nt4w"
|
|
29
29
|
}]
|
|
30
|
-
]),
|
|
30
|
+
]), O = v("zap", [["path", {
|
|
31
31
|
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",
|
|
32
32
|
key: "1xq2db"
|
|
33
33
|
}]]);
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/cloud/utils/scoringStyles.ts
|
|
36
|
-
function
|
|
36
|
+
function k(e) {
|
|
37
37
|
return e >= 80 ? "var(--tpl-success)" : e >= 60 ? "var(--tpl-warning)" : "var(--tpl-danger)";
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function A(e) {
|
|
40
40
|
return e >= 80 ? "var(--tpl-success-light)" : e >= 60 ? "var(--tpl-warning-light)" : "var(--tpl-danger-light)";
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function j(e) {
|
|
43
43
|
return e === "high" ? "var(--tpl-danger)" : e === "medium" ? "var(--tpl-warning)" : "var(--tpl-text-muted)";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function M(e) {
|
|
46
46
|
return e === "high" ? "var(--tpl-danger-light)" : e === "medium" ? "var(--tpl-warning-light)" : "var(--tpl-bg-hover)";
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region src/cloud/components/TemplateScoringPanel.vue?vue&type=script&setup=true&lang.ts
|
|
50
|
-
var
|
|
50
|
+
var N = {
|
|
51
51
|
key: 0,
|
|
52
52
|
class: "tpl-scoring-panel tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
53
|
-
},
|
|
53
|
+
}, P = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-3" }, F = { class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-primary)]" }, I = { class: "tpl:flex tpl:items-center tpl:gap-1" }, L = ["title"], R = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, z = {
|
|
54
54
|
key: 0,
|
|
55
55
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
56
|
-
},
|
|
56
|
+
}, B = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, V = {
|
|
57
57
|
key: 1,
|
|
58
58
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
59
|
-
},
|
|
59
|
+
}, H = { class: "tpl:max-w-[240px] tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, U = {
|
|
60
60
|
key: 2,
|
|
61
61
|
class: "tpl:flex tpl:flex-col tpl:gap-4"
|
|
62
|
-
},
|
|
62
|
+
}, de = { class: "tpl:text-xs tpl:font-medium tpl:uppercase tpl:tracking-wider tpl:text-[var(--tpl-text-muted)]" }, fe = {
|
|
63
63
|
key: 0,
|
|
64
64
|
class: "tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
65
|
-
},
|
|
65
|
+
}, pe = {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "tpl:flex tpl:items-start tpl:gap-2 tpl:rounded-lg tpl:px-3 tpl:py-2 tpl:text-xs tpl:bg-[var(--tpl-danger-light)] tpl:text-[var(--tpl-danger)]"
|
|
68
|
-
},
|
|
68
|
+
}, me = ["onClick"], he = { class: "tpl:flex-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]" }, ge = {
|
|
69
69
|
key: 0,
|
|
70
70
|
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
|
|
71
|
-
},
|
|
71
|
+
}, _e = {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: "tpl:border-t tpl:border-[var(--tpl-border)]"
|
|
74
|
-
},
|
|
74
|
+
}, ve = {
|
|
75
75
|
key: 0,
|
|
76
76
|
class: "tpl:px-3 tpl:py-3 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
77
|
-
},
|
|
77
|
+
}, ye = { class: "tpl:flex tpl:items-start tpl:gap-2" }, be = { class: "tpl:flex-1 tpl:min-w-0" }, xe = { class: "tpl:flex tpl:items-start tpl:gap-1.5" }, Se = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text)]" }, Ce = {
|
|
78
78
|
key: 0,
|
|
79
79
|
class: "tpl:mt-1 tpl:text-[11px] tpl:leading-snug tpl:text-[var(--tpl-text-dim)]"
|
|
80
|
-
},
|
|
80
|
+
}, we = {
|
|
81
81
|
key: 1,
|
|
82
82
|
class: "tpl:mt-2 tpl:flex tpl:justify-center"
|
|
83
|
-
},
|
|
83
|
+
}, Te = ["disabled", "onClick"], Ee = {
|
|
84
84
|
key: 0,
|
|
85
85
|
class: "tpl:mt-1.5 tpl:text-[11px] tpl:text-[var(--tpl-danger)]"
|
|
86
|
-
},
|
|
86
|
+
}, De = {
|
|
87
87
|
key: 3,
|
|
88
88
|
class: "tpl:flex tpl:h-full tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:text-center"
|
|
89
|
-
},
|
|
89
|
+
}, W = { 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__ */ c({
|
|
90
90
|
__name: "TemplateScoringPanel",
|
|
91
91
|
props: { visible: { type: Boolean } },
|
|
92
92
|
emits: ["close"],
|
|
93
|
-
setup(c, { emit:
|
|
94
|
-
let
|
|
93
|
+
setup(c, { emit: v }) {
|
|
94
|
+
let E = c, G = v, { t: K } = ue(), q = _(ie, "TemplateScoringPanel"), J = _(re, "TemplateScoringPanel"), Y = te(ae, []), X = s({
|
|
95
95
|
spam: !0,
|
|
96
96
|
readability: !0,
|
|
97
97
|
accessibility: !0,
|
|
@@ -106,15 +106,15 @@ var P = {
|
|
|
106
106
|
"accessibility",
|
|
107
107
|
"bestPractices"
|
|
108
108
|
], Ae = {
|
|
109
|
-
spam:
|
|
110
|
-
readability:
|
|
111
|
-
accessibility:
|
|
112
|
-
bestPractices:
|
|
109
|
+
spam: D,
|
|
110
|
+
readability: x,
|
|
111
|
+
accessibility: T,
|
|
112
|
+
bestPractices: O
|
|
113
113
|
};
|
|
114
114
|
function Q() {
|
|
115
115
|
J.score(q.content.value, Y);
|
|
116
116
|
}
|
|
117
|
-
r(() =>
|
|
117
|
+
r(() => E.visible, (e) => {
|
|
118
118
|
e && !J.scoringResult.value && !J.isScoring.value && Q();
|
|
119
119
|
});
|
|
120
120
|
async function je(e) {
|
|
@@ -137,50 +137,50 @@ var P = {
|
|
|
137
137
|
"leave-from-class": "tpl:translate-x-0",
|
|
138
138
|
"leave-to-class": "tpl:translate-x-full"
|
|
139
139
|
}, {
|
|
140
|
-
default: ee(() => [c.visible ? (a(), u("div",
|
|
140
|
+
default: ee(() => [c.visible ? (a(), u("div", N, [l("div", P, [l("div", F, [d(m(w), {
|
|
141
141
|
size: 13,
|
|
142
142
|
"stroke-width": 2
|
|
143
|
-
}), l("span", null, o(m(K).scoring.title), 1)]), l("div",
|
|
143
|
+
}), l("span", null, o(m(K).scoring.title), 1)]), l("div", I, [m(J).scoringResult.value && !m(J).isScoring.value ? (a(), u("button", {
|
|
144
144
|
key: 0,
|
|
145
145
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
146
146
|
title: m(K).scoring.rescore,
|
|
147
147
|
onClick: s[0] ||= (e) => Q()
|
|
148
|
-
}, [d(m(
|
|
148
|
+
}, [d(m(S), {
|
|
149
149
|
size: 14,
|
|
150
150
|
"stroke-width": 2
|
|
151
|
-
})], 8,
|
|
151
|
+
})], 8, L)) : g("", !0), l("button", {
|
|
152
152
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
153
153
|
onClick: s[1] ||= (e) => G("close")
|
|
154
|
-
}, [d(m(
|
|
154
|
+
}, [d(m(ce), {
|
|
155
155
|
size: 14,
|
|
156
156
|
"stroke-width": 2
|
|
157
|
-
})])])]), l("div",
|
|
158
|
-
d(m(
|
|
157
|
+
})])])]), l("div", R, [m(J).isScoring.value ? (a(), u("div", z, [l("p", B, o(m(K).scoring.scoring), 1), d(le, { class: "tpl:w-3/4" })])) : m(J).error.value && !m(J).scoringResult.value ? (a(), u("div", V, [
|
|
158
|
+
d(m(b), {
|
|
159
159
|
size: 32,
|
|
160
160
|
"stroke-width": 1.5,
|
|
161
161
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
162
162
|
}),
|
|
163
|
-
l("p",
|
|
163
|
+
l("p", H, o(m(K).scoring.error), 1),
|
|
164
164
|
l("button", {
|
|
165
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)]",
|
|
166
166
|
onClick: s[2] ||= (e) => Q()
|
|
167
|
-
}, [d(m(
|
|
167
|
+
}, [d(m(S), {
|
|
168
168
|
size: 12,
|
|
169
169
|
"stroke-width": 2
|
|
170
170
|
}), p(" " + o(m(K).scoring.rescore), 1)])
|
|
171
|
-
])) : m(J).scoringResult.value ? (a(), u("div",
|
|
171
|
+
])) : m(J).scoringResult.value ? (a(), u("div", U, [
|
|
172
172
|
l("div", {
|
|
173
173
|
class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:p-5",
|
|
174
|
-
style: t({ backgroundColor: m(
|
|
174
|
+
style: t({ backgroundColor: m(A)(m(J).scoringResult.value.score) })
|
|
175
175
|
}, [
|
|
176
176
|
l("span", {
|
|
177
177
|
class: "tpl:text-4xl tpl:font-bold tpl:tabular-nums",
|
|
178
|
-
style: t({ color: m(
|
|
178
|
+
style: t({ color: m(k)(m(J).scoringResult.value.score) })
|
|
179
179
|
}, o(m(J).scoringResult.value.score), 5),
|
|
180
|
-
l("span",
|
|
181
|
-
$() > 0 ? (a(), u("span",
|
|
180
|
+
l("span", de, o(m(K).scoring.overallScore), 1),
|
|
181
|
+
$() > 0 ? (a(), u("span", fe, o($()) + " " + o(m(K).scoring.findings), 1)) : g("", !0)
|
|
182
182
|
], 4),
|
|
183
|
-
m(J).fixError.value ? (a(), u("div",
|
|
183
|
+
m(J).fixError.value ? (a(), u("div", pe, [d(m(b), {
|
|
184
184
|
size: 14,
|
|
185
185
|
"stroke-width": 2,
|
|
186
186
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
@@ -195,60 +195,60 @@ var P = {
|
|
|
195
195
|
(a(), f(i(Ae[r]), {
|
|
196
196
|
size: 14,
|
|
197
197
|
"stroke-width": 2,
|
|
198
|
-
style: t({ color: m(
|
|
198
|
+
style: t({ color: m(k)(m(J).scoringResult.value.categories[r].score) })
|
|
199
199
|
}, null, 8, ["style"])),
|
|
200
|
-
l("span",
|
|
200
|
+
l("span", he, o(m(K).scoring.categories[r]), 1),
|
|
201
201
|
l("span", {
|
|
202
202
|
class: "tpl:rounded-full tpl:px-2 tpl:py-0.5 tpl:text-xs tpl:font-semibold tpl:tabular-nums",
|
|
203
203
|
style: t({
|
|
204
|
-
color: m(
|
|
205
|
-
backgroundColor: m(
|
|
204
|
+
color: m(k)(m(J).scoringResult.value.categories[r].score),
|
|
205
|
+
backgroundColor: m(A)(m(J).scoringResult.value.categories[r].score)
|
|
206
206
|
})
|
|
207
207
|
}, o(m(J).scoringResult.value.categories[r].score), 5),
|
|
208
|
-
m(J).scoringResult.value.categories[r].findings.length > 0 ? (a(), u("span",
|
|
209
|
-
d(m(
|
|
208
|
+
m(J).scoringResult.value.categories[r].findings.length > 0 ? (a(), u("span", ge, o(m(J).scoringResult.value.categories[r].findings.length), 1)) : g("", !0),
|
|
209
|
+
d(m(y), {
|
|
210
210
|
size: 12,
|
|
211
211
|
"stroke-width": 2,
|
|
212
212
|
class: n(["tpl:transition-transform tpl:duration-200 tpl:text-[var(--tpl-text-dim)]", X.value[r] ? "tpl:rotate-0" : "tpl:-rotate-90"])
|
|
213
213
|
}, null, 8, ["class"])
|
|
214
|
-
], 8,
|
|
214
|
+
], 8, me), X.value[r] ? (a(), u("div", _e, [m(J).scoringResult.value.categories[r].findings.length === 0 ? (a(), u("div", ve, 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
215
|
key: e.id,
|
|
216
216
|
class: "tpl:border-t tpl:px-3 tpl:py-2.5 first:tpl:border-t-0 tpl:border-[var(--tpl-border-light)]"
|
|
217
|
-
}, [l("div",
|
|
217
|
+
}, [l("div", ye, [(a(), f(i(e.severity === "high" ? m(b) : e.severity === "medium" ? m(se) : m(oe)), {
|
|
218
218
|
size: 13,
|
|
219
219
|
"stroke-width": 2,
|
|
220
220
|
class: "tpl:mt-0.5 tpl:shrink-0",
|
|
221
|
-
style: t({ color: m(
|
|
222
|
-
}, null, 8, ["style"])), l("div",
|
|
223
|
-
l("div",
|
|
221
|
+
style: t({ color: m(j)(e.severity) })
|
|
222
|
+
}, null, 8, ["style"])), l("div", be, [
|
|
223
|
+
l("div", xe, [l("span", {
|
|
224
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",
|
|
225
225
|
style: t({
|
|
226
|
-
color: m(
|
|
227
|
-
backgroundColor: m(
|
|
226
|
+
color: m(j)(e.severity),
|
|
227
|
+
backgroundColor: m(M)(e.severity)
|
|
228
228
|
})
|
|
229
|
-
}, o(m(K).scoring.severity[e.severity]), 5), l("span",
|
|
230
|
-
e.suggestion ? (a(), u("p",
|
|
231
|
-
e.blockId ? (a(), u("div",
|
|
229
|
+
}, o(m(K).scoring.severity[e.severity]), 5), l("span", Se, o(e.message), 1)]),
|
|
230
|
+
e.suggestion ? (a(), u("p", Ce, o(e.suggestion), 1)) : g("", !0),
|
|
231
|
+
e.blockId ? (a(), u("div", we, [l("button", {
|
|
232
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)]",
|
|
233
233
|
style: { "background-color": "transparent" },
|
|
234
234
|
disabled: m(J).fixingFindingId.value !== null,
|
|
235
235
|
onClick: (t) => je(e)
|
|
236
|
-
}, [m(J).fixingFindingId.value === e.id ? (a(), f(m(
|
|
236
|
+
}, [m(J).fixingFindingId.value === e.id ? (a(), f(m(C), {
|
|
237
237
|
key: 0,
|
|
238
238
|
class: "tpl-spinner",
|
|
239
239
|
size: 11,
|
|
240
240
|
"stroke-width": 2
|
|
241
|
-
})) : (a(), f(m(
|
|
241
|
+
})) : (a(), f(m(T), {
|
|
242
242
|
key: 1,
|
|
243
243
|
size: 11,
|
|
244
244
|
"stroke-width": 2
|
|
245
|
-
})), p(" " + o(m(J).fixingFindingId.value === e.id ? m(K).scoring.fixing : m(K).scoring.fix), 1)], 8,
|
|
245
|
+
})), p(" " + o(m(J).fixingFindingId.value === e.id ? m(K).scoring.fixing : m(K).scoring.fix), 1)], 8, Te), m(J).fixError.value ? (a(), u("p", Ee, o(m(J).fixError.value), 1)) : g("", !0)])) : g("", !0)
|
|
246
246
|
])])]))), 128))])) : g("", !0)])), 64))
|
|
247
|
-
])) : (a(), u("div",
|
|
247
|
+
])) : (a(), u("div", De, [d(m(w), {
|
|
248
248
|
size: 32,
|
|
249
249
|
"stroke-width": 1.5,
|
|
250
250
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
251
|
-
}), l("p",
|
|
251
|
+
}), l("p", W, o(m(K).scoring.emptyState), 1)])), l("p", Oe, o(m(K).aiMenu.disclaimer), 1)])])) : g("", !0)]),
|
|
252
252
|
_: 1
|
|
253
253
|
}));
|
|
254
254
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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-B0xoGkDv.js";
|
|
2
2
|
import { i as _ } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import "./useEditorCore-
|
|
3
|
+
import "./useEditorCore-LJJNXXqC.js";
|
|
4
4
|
import { t as v } from "./loader-circle-BT38qSm3.js";
|
|
5
|
-
import { n as y } from "./useCloudI18n-
|
|
6
|
-
import { t as b } from "./TplModal-
|
|
5
|
+
import { n as y } from "./useCloudI18n-DIn74fK2.js";
|
|
6
|
+
import { t as b } from "./TplModal-DAtccv6o.js";
|
|
7
7
|
//#region src/cloud/components/TestEmailModal.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var x = ["aria-busy"], S = {
|
|
9
9
|
id: "tpl-test-email-title",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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-B0xoGkDv.js";
|
|
2
|
-
import { S as ee, x as te } from "./useEditorCore-
|
|
3
|
-
import { n as ne } from "./usePopoverPosition-
|
|
4
|
-
import {
|
|
5
|
-
import { t as re } from "./useI18n-
|
|
6
|
-
import { a as ie, i as ae, n as oe, r as se, t as ce } from "./RichTextEditorContent-
|
|
2
|
+
import { S as ee, x as te } from "./useEditorCore-LJJNXXqC.js";
|
|
3
|
+
import { n as ne } from "./usePopoverPosition-QDY09q9H.js";
|
|
4
|
+
import { C as _, E as v, I as y, R as b } from "./keys-DAxnnmXs.js";
|
|
5
|
+
import { t as re } from "./useI18n-OaMLWqhY.js";
|
|
6
|
+
import { a as ie, i as ae, n as oe, r as se, t as ce } from "./RichTextEditorContent-DkXai9qP.js";
|
|
7
7
|
import { n as x, t as S } from "./scan-line-IAMjPtRw.js";
|
|
8
8
|
import { t as C } from "./loader-circle-BT38qSm3.js";
|
|
9
9
|
//#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -24,7 +24,7 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
24
24
|
},
|
|
25
25
|
emits: ["done"],
|
|
26
26
|
setup(a, { emit: P }) {
|
|
27
|
-
let F = a, I = P, L = g(
|
|
27
|
+
let F = a, I = P, L = g(y, null), R = g(b, null), z = ne(), B = g(v, null), le = g(_, null), V = m(() => (B?.isOpen.value ?? !1) || (le?.isOpen.value ?? !1)), { t: H } = re(), { editor: U, EditorContent: W, isLoading: G, initError: ue, retry: de, showLinkDialog: fe, linkUrl: K, linkColor: q, linkDialogRef: J, canRequestMergeTag: Y, canInsertLogicTag: X, openLinkDialog: Z, insertLink: pe, removeLink: me, closeLinkDialog: he, handleLinkKeydown: ge, handleAddMergeTag: Q, handleAddLogicTag: $ } = te({
|
|
28
28
|
blockId: () => F.block.id,
|
|
29
29
|
blockContent: () => F.block.content,
|
|
30
30
|
onDone: () => I("done"),
|
|
@@ -34,7 +34,7 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
34
34
|
import("./dist-8TKf-Jpg.js").then((e) => e.r),
|
|
35
35
|
import("./dist-Cx7IUM7J.js"),
|
|
36
36
|
import("./dist-CcX5sLpz.js"),
|
|
37
|
-
import("./extensions-
|
|
37
|
+
import("./extensions-gpFdCinj.js")
|
|
38
38
|
]);
|
|
39
39
|
return {
|
|
40
40
|
TiptapEditor: a,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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-B0xoGkDv.js";
|
|
2
2
|
import { c as m, t as h } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import { D as g } from "./useEditorCore-
|
|
4
|
-
import { n as _ } from "./usePopoverPosition-
|
|
5
|
-
import {
|
|
3
|
+
import { D as g } from "./useEditorCore-LJJNXXqC.js";
|
|
4
|
+
import { n as _ } from "./usePopoverPosition-QDY09q9H.js";
|
|
5
|
+
import { R as v } from "./keys-DAxnnmXs.js";
|
|
6
6
|
//#region src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
|
|
8
8
|
__name: "TplModal",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-
|
|
1
|
+
import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-LJJNXXqC.js";
|
|
2
2
|
import { t as a } from "./createLucideIcon-FSF4peHQ.js";
|
|
3
3
|
var o = a("columns-3", [
|
|
4
4
|
["rect", {
|
package/dist/bundle-stats.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
3
|
-
"initialGzipBytes":
|
|
4
|
-
"initialRawBytes":
|
|
5
|
-
"initialFileCount":
|
|
6
|
-
"lazyGzipBytes":
|
|
7
|
-
"lazyRawBytes":
|
|
2
|
+
"version": "0.18.0",
|
|
3
|
+
"initialGzipBytes": 283514,
|
|
4
|
+
"initialRawBytes": 1017713,
|
|
5
|
+
"initialFileCount": 41,
|
|
6
|
+
"lazyGzipBytes": 181543,
|
|
7
|
+
"lazyRawBytes": 596308,
|
|
8
8
|
"lazyFileCount": 46,
|
|
9
|
-
"generatedAt": "2026-07-
|
|
9
|
+
"generatedAt": "2026-07-23T20:58:55.516Z"
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as e, M as t, P as n, ct as r, f as i, g as a, m as o, p as s, st as c, u as l, x as u } from "./draggable-D840DIZB.js";
|
|
2
|
-
import { Et as d, Vt as f, ct as p, fn as m, gt as h, ht as g, ot as _ } from "./features-
|
|
2
|
+
import { Et as d, Vt as f, ct as p, fn as m, gt as h, ht as g, ot as _ } from "./features-HBwOEo4D.js";
|
|
3
3
|
//#region src/cloud/components/AiFeatureMenu.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var v = {
|
|
5
5
|
class: "tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]",
|
|
@@ -56,4 +56,4 @@ var v = {
|
|
|
56
56
|
//#endregion
|
|
57
57
|
export { C as default };
|
|
58
58
|
|
|
59
|
-
//# sourceMappingURL=AiFeatureMenu-
|
|
59
|
+
//# sourceMappingURL=AiFeatureMenu-B4oJlFQI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiFeatureMenu-
|
|
1
|
+
{"version":3,"file":"AiFeatureMenu-B4oJlFQI.js","names":[],"sources":["../../../src/cloud/components/AiFeatureMenu.vue","../../../src/cloud/components/AiFeatureMenu.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n","<script setup lang=\"ts\">\nimport { useCloudI18nStrict } from \"../../composables\";\nimport { AI_CONFIG_KEY, requireInject } from \"../../keys\";\nimport type { AiConfig } from \"@templatical/types\";\nimport { ImageUp, ShieldCheck, Sparkles } from \"@lucide/vue\";\nimport { computed } from \"vue\";\n\nexport type AiFeature = \"ai-chat\" | \"design-reference\" | \"scoring\";\n\ndefineProps<{\n activeFeature: AiFeature | null;\n}>();\n\nconst emit = defineEmits<{\n (e: \"select\", feature: AiFeature): void;\n}>();\n\nconst { t: cloudT } = useCloudI18nStrict();\n\nconst aiConfig = requireInject(AI_CONFIG_KEY, \"AiFeatureMenu\");\n\nconst configKeyMap: Record<AiFeature, keyof AiConfig> = {\n \"ai-chat\": \"chat\",\n \"design-reference\": \"designToTemplate\",\n scoring: \"scoring\",\n};\n\nconst allFeatures: { key: AiFeature; icon: typeof Sparkles }[] = [\n { key: \"ai-chat\", icon: Sparkles },\n { key: \"design-reference\", icon: ImageUp },\n { key: \"scoring\", icon: ShieldCheck },\n];\n\nconst features = computed(() =>\n allFeatures.filter((f) => aiConfig.isFeatureEnabled(configKeyMap[f.key])),\n);\n\nfunction getTitle(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistant;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplate;\n return cloudT.aiMenu.templateScore;\n}\n\nfunction getDescription(key: AiFeature): string {\n if (key === \"ai-chat\") return cloudT.aiMenu.aiAssistantDesc;\n if (key === \"design-reference\") return cloudT.aiMenu.designToTemplateDesc;\n return cloudT.aiMenu.templateScoreDesc;\n}\n</script>\n\n<template>\n <div\n class=\"tpl-ai-feature-menu tpl:w-[280px] tpl:overflow-hidden tpl:rounded-[var(--tpl-radius)] tpl:py-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:border tpl:border-[var(--tpl-border)] tpl:shadow-[var(--tpl-shadow-lg)]\"\n style=\"backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px)\"\n >\n <button\n v-for=\"feature in features\"\n :key=\"feature.key\"\n class=\"tpl-ai-feature-menu-item tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-start tpl:gap-3 tpl:border-none tpl:px-3 tpl:py-2.5 tpl:text-left tpl:transition-colors tpl:duration-100\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary-light)'\n : 'transparent',\n }\"\n @click=\"emit('select', feature.key)\"\n >\n <div\n class=\"tpl:mt-0.5 tpl:flex tpl:size-7 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-sm)]\"\n :style=\"{\n backgroundColor:\n activeFeature === feature.key\n ? 'var(--tpl-primary)'\n : 'var(--tpl-bg-active)',\n color:\n activeFeature === feature.key\n ? 'var(--tpl-bg)'\n : 'var(--tpl-text-muted)',\n }\"\n >\n <component :is=\"feature.icon\" :size=\"15\" :stroke-width=\"2\" />\n </div>\n <div class=\"tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5\">\n <span class=\"tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]\">\n {{ getTitle(feature.key) }}\n </span>\n <span\n class=\"tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]\"\n >\n {{ getDescription(feature.key) }}\n </span>\n </div>\n </button>\n </div>\n</template>\n\n<style scoped>\n.tpl-ai-feature-menu-item:hover {\n background-color: var(--tpl-bg-hover) !important;\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;EAaA,IAAM,IAAO,GAIP,EAAE,GAAG,MAAW,EAAmB,GAEnC,IAAW,EAAc,GAAe,eAAe,GAEvD,IAAkD;GACtD,WAAW;GACX,oBAAoB;GACpB,SAAS;EACX,GAEM,IAA2D;GAC/D;IAAE,KAAK;IAAW,MAAM;GAAS;GACjC;IAAE,KAAK;IAAoB,MAAM;GAAQ;GACzC;IAAE,KAAK;IAAW,MAAM;GAAY;EACtC,GAEM,IAAW,QACf,EAAY,QAAQ,MAAM,EAAS,iBAAiB,EAAa,EAAE,IAAI,CAAC,CAC1E;EAEA,SAAS,EAAS,GAAwB;GAGxC,OAFI,MAAQ,YAAkB,EAAO,OAAO,cACxC,MAAQ,qBAA2B,EAAO,OAAO,mBAC9C,EAAO,OAAO;EACvB;EAEA,SAAS,EAAe,GAAwB;GAG9C,OAFI,MAAQ,YAAkB,EAAO,OAAO,kBACxC,MAAQ,qBAA2B,EAAO,OAAO,uBAC9C,EAAO,OAAO;EACvB;yBAIE,EA0CM,OA1CN,GA0CM,EAAA,EAAA,EAAA,GAtCJ,EAqCS,GAAA,MAAA,EApCW,EAAA,QAAX,YADT,EAqCS,UAAA;GAnCN,KAAK,EAAQ;GACd,OAAM;GACL,OAAK,EAAA,EAAA,iBAAuC,EAAA,kBAAkB,EAAQ,MAAA,6BAAA,cAAA,CAAA;GAMtE,UAAK,MAAE,EAAI,UAAW,EAAQ,GAAG;MAElC,EAcM,OAAA;GAbJ,OAAM;GACL,OAAK,EAAA;qBAA2C,EAAA,kBAAkB,EAAQ,MAAA,uBAAA;WAA8G,EAAA,kBAAkB,EAAQ,MAAA,kBAAA;;YAWnN,EAA6D,EAA7C,EAAQ,IAAI,GAAA;GAAG,MAAM;GAAK,gBAAc;YAE1D,EASM,OATN,GASM,CARJ,EAEO,QAFP,GAEO,EADF,EAAS,EAAQ,GAAG,CAAA,GAAA,CAAA,GAEzB,EAIO,QAJP,GAIO,EADF,EAAe,EAAQ,GAAG,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,GAAA,IAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { M as e, T as t, f as n, g as r, h as i, it as a, m as o, ot as s, x as c } from "./draggable-D840DIZB.js";
|
|
2
|
-
import { Bt as l, Mt as u, cn as d, ft as f } from "./features-
|
|
2
|
+
import { Bt as l, Mt as u, cn as d, ft as f } from "./features-HBwOEo4D.js";
|
|
3
3
|
//#region src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var p = ["title", "aria-label"], m = /* @__PURE__ */ c({
|
|
5
5
|
__name: "BlockIssueBadge",
|
|
@@ -30,4 +30,4 @@ var p = ["title", "aria-label"], m = /* @__PURE__ */ c({
|
|
|
30
30
|
//#endregion
|
|
31
31
|
export { m as default };
|
|
32
32
|
|
|
33
|
-
//# sourceMappingURL=BlockIssueBadge-
|
|
33
|
+
//# sourceMappingURL=BlockIssueBadge-C7Ts7bT7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockIssueBadge-
|
|
1
|
+
{"version":3,"file":"BlockIssueBadge-C7Ts7bT7.js","names":[],"sources":["../../../src/components/canvas/BlockIssueBadge.vue","../../../src/components/canvas/BlockIssueBadge.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport { CircleAlert, TriangleAlert } from \"@lucide/vue\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { TEMPLATE_LINT_KEY } from \"../../keys\";\n\nconst props = defineProps<{ blockId: string }>();\nconst { t } = useI18n();\nconst lint = inject(TEMPLATE_LINT_KEY, null);\n\nconst blockIssues = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.blockId === props.blockId),\n);\n\nconst severity = computed<\"error\" | \"warning\" | null>(() => {\n if (blockIssues.value.some((i) => i.severity === \"error\")) return \"error\";\n if (blockIssues.value.some((i) => i.severity === \"warning\")) return \"warning\";\n return null;\n});\n\nconst tooltip = computed(() =>\n severity.value === \"error\" ? t.issues.badgeError : t.issues.badgeWarning,\n);\n</script>\n\n<template>\n <span\n v-if=\"severity\"\n class=\"tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]\"\n :class=\"\n severity === 'error'\n ? 'tpl:text-[var(--tpl-danger)]'\n : 'tpl:text-[var(--tpl-warning)]'\n \"\n :title=\"tooltip\"\n :aria-label=\"tooltip\"\n role=\"img\"\n >\n <CircleAlert\n v-if=\"severity === 'error'\"\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n <TriangleAlert\n v-else\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n </span>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, inject } from \"vue\";\nimport { CircleAlert, TriangleAlert } from \"@lucide/vue\";\nimport { useI18n } from \"../../composables/useI18n\";\nimport { TEMPLATE_LINT_KEY } from \"../../keys\";\n\nconst props = defineProps<{ blockId: string }>();\nconst { t } = useI18n();\nconst lint = inject(TEMPLATE_LINT_KEY, null);\n\nconst blockIssues = computed(() =>\n (lint?.issues.value ?? []).filter((i) => i.blockId === props.blockId),\n);\n\nconst severity = computed<\"error\" | \"warning\" | null>(() => {\n if (blockIssues.value.some((i) => i.severity === \"error\")) return \"error\";\n if (blockIssues.value.some((i) => i.severity === \"warning\")) return \"warning\";\n return null;\n});\n\nconst tooltip = computed(() =>\n severity.value === \"error\" ? t.issues.badgeError : t.issues.badgeWarning,\n);\n</script>\n\n<template>\n <span\n v-if=\"severity\"\n class=\"tpl:absolute tpl:top-1 tpl:right-1 tpl:z-10 tpl:flex tpl:size-5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)] tpl:ring-1 tpl:ring-[var(--tpl-border)]\"\n :class=\"\n severity === 'error'\n ? 'tpl:text-[var(--tpl-danger)]'\n : 'tpl:text-[var(--tpl-warning)]'\n \"\n :title=\"tooltip\"\n :aria-label=\"tooltip\"\n role=\"img\"\n >\n <CircleAlert\n v-if=\"severity === 'error'\"\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n <TriangleAlert\n v-else\n :size=\"14\"\n :stroke-width=\"2.25\"\n fill=\"currentColor\"\n stroke=\"var(--tpl-bg)\"\n />\n </span>\n</template>\n"],"mappings":";;;;;;;EAMA,IAAM,IAAQ,GACR,EAAE,SAAM,EAAQ,GAChB,IAAO,EAAO,GAAmB,IAAI,GAErC,IAAc,SACjB,GAAM,OAAO,SAAS,CAAC,EAAA,CAAG,QAAQ,MAAM,EAAE,YAAY,EAAM,OAAO,CACtE,GAEM,IAAW,QACX,EAAY,MAAM,MAAM,MAAM,EAAE,aAAa,OAAO,IAAU,UAC9D,EAAY,MAAM,MAAM,MAAM,EAAE,aAAa,SAAS,IAAU,YAC7D,IACR,GAEK,IAAU,QACd,EAAS,UAAU,UAAU,EAAE,OAAO,aAAa,EAAE,OAAO,YAC9D;mBAKU,EAAA,SAAA,EAAA,GADR,EA0BO,QAAA;;GAxBL,OAAK,EAAA,CAAC,yNACS,EAAA,UAAQ,UAAA,iCAAA,+BAAA,CAAA;GAKtB,OAAO,EAAA;GACP,cAAY,EAAA;GACb,MAAK;MAGG,EAAA,UAAQ,WAAA,EAAA,GADhB,EAME,EAAA,CAAA,GAAA;;GAJC,MAAM;GACN,gBAAc;GACf,MAAK;GACL,QAAO;cAET,EAME,EAAA,CAAA,GAAA;;GAJC,MAAM;GACN,gBAAc;GACf,MAAK;GACL,QAAO"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { $ as e, A as t, H as n, J as r, M as i, N as a, P as o, V as s, Z as c, _ as l, b as u, ct as d, f, g as p, h as m, it as h, j as g, l as _, m as v, n as y, ot as b, p as x, s as S, st as C, u as w, v as T, x as E, y as D, z as O } from "./draggable-D840DIZB.js";
|
|
2
|
-
import { Bt as k, Ct as A, E as j, Ft as M, Jt as N, Kt as ee, Mt as P, Nn as F, Qn as I, Rt as L, S as R, Sn as z, St as B, Ut as te, Vt as ne, X as V, _ as H, b as U, c as re, ct as W, d as G, f as K, ft as q, g as ie, h as ae, ht as J, in as oe, jt as Y, k as X, l as Z, m as Q, nt as se, on as ce, ot as $, p as le, pn as ue, qt as de, s as fe, sn as pe, u as me, v as he, vt as ge, x as _e, y as ve, zn as ye } from "./features-
|
|
3
|
-
import { S as be, x as xe } from "./icons-
|
|
4
|
-
import { a as Se, c as Ce, d as we, f as Te, i as Ee, l as De, n as Oe, o as ke, r as Ae, s as je, t as Me, u as Ne } from "./styles-
|
|
5
|
-
import { d as Pe } from "./ColorPicker-
|
|
2
|
+
import { Bt as k, Ct as A, E as j, Ft as M, Jt as N, Kt as ee, Mt as P, Nn as F, Qn as I, Rt as L, S as R, Sn as z, St as B, Ut as te, Vt as ne, X as V, _ as H, b as U, c as re, ct as W, d as G, f as K, ft as q, g as ie, h as ae, ht as J, in as oe, jt as Y, k as X, l as Z, m as Q, nt as se, on as ce, ot as $, p as le, pn as ue, qt as de, s as fe, sn as pe, u as me, v as he, vt as ge, x as _e, y as ve, zn as ye } from "./features-HBwOEo4D.js";
|
|
3
|
+
import { S as be, x as xe } from "./icons-D4vTsN4p.js";
|
|
4
|
+
import { a as Se, c as Ce, d as we, f as Te, i as Ee, l as De, n as Oe, o as ke, r as Ae, s as je, t as Me, u as Ne } from "./styles-CPCN13az.js";
|
|
5
|
+
import { d as Pe } from "./ColorPicker-DEtVX4gN.js";
|
|
6
6
|
//#region src/cloud/composables/useSnapshotPreview.ts
|
|
7
7
|
function Fe(t) {
|
|
8
8
|
let { authManager: n, editor: i, history: a, conditionPreview: o, autoSave: s, onError: l } = t, u = e(null), d = c(null), p = c(null), m = !1;
|
|
@@ -175,7 +175,7 @@ function ze(e) {
|
|
|
175
175
|
let t = f(e);
|
|
176
176
|
if (t) return s?.(t), null;
|
|
177
177
|
try {
|
|
178
|
-
let { MediaApiClient: t } = await import("./src-
|
|
178
|
+
let { MediaApiClient: t } = await import("./src-Cks4RrLL.js");
|
|
179
179
|
return l(await new t(a).uploadMedia(e));
|
|
180
180
|
} catch (e) {
|
|
181
181
|
return s?.(e), null;
|
|
@@ -596,7 +596,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
596
596
|
},
|
|
597
597
|
emits: ["save"],
|
|
598
598
|
setup(e) {
|
|
599
|
-
let t = u(() => import("./CollaboratorBar-
|
|
599
|
+
let t = u(() => import("./CollaboratorBar-BsWOjOCS.js")), n = u(() => import("./features-HBwOEo4D.js").then((e) => e.r)), r = u(() => import("./AiFeatureMenu-B4oJlFQI.js")), { t: a, format: o } = $();
|
|
600
600
|
return (c, l) => (i(), p("header", et, [
|
|
601
601
|
x("div", tt, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", nt, d(h(o)(h(a).header.templatesUsed, {
|
|
602
602
|
used: e.featureFlags.templateCount.value,
|
|
@@ -758,9 +758,9 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
758
758
|
"module-insert"
|
|
759
759
|
],
|
|
760
760
|
setup(e, { expose: t, emit: n }) {
|
|
761
|
-
let r = u(() => import("./features-
|
|
761
|
+
let r = u(() => import("./features-HBwOEo4D.js").then((e) => e.o)), a = u(() => import("./features-HBwOEo4D.js").then((e) => e.a)), o = u(() => import("./features-HBwOEo4D.js").then((e) => e.i)), s = u(() => import("./features-HBwOEo4D.js").then((e) => e.n)), l = u(() => import("./features-HBwOEo4D.js").then((e) => e.t)), d = u(() => import("./SaveModuleDialog-D5eddgzd.js")), f = u(() => import("./ModuleBrowserModal-DySKXKFF.js")), g = u(async () => {
|
|
762
762
|
try {
|
|
763
|
-
return (await import("./src-
|
|
763
|
+
return (await import("./src-Cks4RrLL.js")).MediaLibraryModal;
|
|
764
764
|
} catch {
|
|
765
765
|
throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
|
|
766
766
|
}
|
|
@@ -1201,4 +1201,4 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1201
1201
|
//#endregion
|
|
1202
1202
|
export { It as default };
|
|
1203
1203
|
|
|
1204
|
-
//# sourceMappingURL=CloudEditor-
|
|
1204
|
+
//# sourceMappingURL=CloudEditor-BRO-2CcF.js.map
|