@templatical/editor 0.7.2 → 0.8.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-DWRONNm6.js → AiChatSidebar-B74X6tIx.js} +49 -59
- package/dist/{AiFeatureMenu-U7b4Z8OV.js → AiFeatureMenu-BOxQqkn9.js} +4 -4
- package/dist/{BlockA11yBadge-BFIw0h1m.js → BlockIssueBadge-DJTiT1eF.js} +6 -6
- package/dist/{CloudEditor-DgiUCNMn.js → CloudEditor-BzCVDD6e.js} +125 -121
- package/dist/{CollaboratorBar-BgeaMhrV.js → CollaboratorBar-Cb-c1IkS.js} +3 -3
- package/dist/{CommentsSidebar-BiRtaXYD.js → CommentsSidebar-Qvppl-DR.js} +7 -7
- package/dist/{CountdownBlock-Cq8A8WrM.js → CountdownBlock-D0IiMliC.js} +1 -1
- package/dist/{CountdownToolbar-CojjlZet.js → CountdownToolbar-BVVT8U5C.js} +3 -3
- package/dist/{DesignReferenceSidebar-C1W02bYt.js → DesignReferenceSidebar-ucgtoDll.js} +7 -7
- package/dist/{AccessibilityPanel-D-PqmHdH.js → IssuesPanel-XVdvrgmq.js} +18 -18
- package/dist/{ModuleBrowserModal-Bjh99_5c.js → ModuleBrowserModal-BotDsZ0R.js} +7 -7
- package/dist/{ModulePreviewCanvas-DDDQmUI_.js → ModulePreviewCanvas-CDg4MnJP.js} +2 -2
- package/dist/{NumberWithSuffix-CLTBb2Rj.js → NumberWithSuffix-n-cr7lpU.js} +2 -2
- package/dist/{ParagraphEditor-BSaEdasm.js → ParagraphEditor-CfzIUFQ_.js} +18 -18
- package/dist/{RichTextEditorContent-C3QSg7gd.js → RichTextEditorContent-Cu9NEkKd.js} +3 -3
- package/dist/{SaveModuleDialog-9fX6oSxf.js → SaveModuleDialog-DuzfCamG.js} +6 -6
- package/dist/{SnapshotHistory-gYW-IXkE.js → SnapshotHistory-DiAPOSDM.js} +6 -6
- package/dist/{TemplateScoringPanel-V79yrEPC.js → TemplateScoringPanel-BzDVdfOx.js} +6 -6
- package/dist/{TestEmailModal-B_Rmnngq.js → TestEmailModal-D5I5Mgtb.js} +3 -3
- package/dist/{TitleEditor-XbFuw1Vy.js → TitleEditor-CZUkhtDo.js} +9 -9
- package/dist/{TplModal-LY9rkDph.js → TplModal-CVq2BAIW.js} +3 -3
- package/dist/{blockTypeIcons-CLT2H0yU.js → blockTypeIcons-CJNuGjLX.js} +1 -1
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AiFeatureMenu-WhZ7G-Wr.js → AiFeatureMenu-DtrT-aFR.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-WhZ7G-Wr.js.map → AiFeatureMenu-DtrT-aFR.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-BLKyO0lH.js → BlockIssueBadge-w7n4orSd.js} +6 -6
- package/dist/cdn/chunks/BlockIssueBadge-w7n4orSd.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-BKEXPt3g.js → CloudEditor-CwG0DhG1.js} +166 -162
- package/dist/cdn/chunks/CloudEditor-CwG0DhG1.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-ASDiTitQ.js → CollaboratorBar-DYjZaz7H.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-ASDiTitQ.js.map → CollaboratorBar-DYjZaz7H.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-LAlYJYWL.js → CountdownBlock-CFR8VJCU.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-LAlYJYWL.js.map → CountdownBlock-CFR8VJCU.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CbIKGP7u.js → CountdownToolbar-DOrQCH57.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-CbIKGP7u.js.map → CountdownToolbar-DOrQCH57.js.map} +1 -1
- package/dist/cdn/chunks/{AccessibilityPanel-DaqF4Xzy.js → IssuesPanel-C54PhBgc.js} +16 -16
- package/dist/cdn/chunks/IssuesPanel-C54PhBgc.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-BjmdleNq.js → ModuleBrowserModal-4V6um-AC.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-BjmdleNq.js.map → ModuleBrowserModal-4V6um-AC.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DsmACAdb.js → ModulePreviewCanvas-DL8zI6VX.js} +26 -26
- package/dist/cdn/chunks/{ModulePreviewCanvas-DsmACAdb.js.map → ModulePreviewCanvas-DL8zI6VX.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-EEDNj1my.js → NumberWithSuffix-avXrYDo6.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-EEDNj1my.js.map → NumberWithSuffix-avXrYDo6.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-D6Dw5RtX.js → ParagraphEditor-Cpmy85zL.js} +39 -39
- package/dist/cdn/chunks/{ParagraphEditor-D6Dw5RtX.js.map → ParagraphEditor-Cpmy85zL.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-C2yj_yPM.js → RichTextEditorContent-CFL-Lrv5.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-C2yj_yPM.js.map → RichTextEditorContent-CFL-Lrv5.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DCcvwYat.js → SaveModuleDialog-D6szy5vX.js} +14 -14
- package/dist/cdn/chunks/{SaveModuleDialog-DCcvwYat.js.map → SaveModuleDialog-D6szy5vX.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-isN_t0MJ.js → TitleEditor-CSDdss38.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-isN_t0MJ.js.map → TitleEditor-CSDdss38.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-BEdpG8xl.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-Bgn69Q1-.js.map → blockTypeIcons-BEdpG8xl.js.map} +1 -1
- package/dist/{de-BhIWu_bO.js → cdn/chunks/de-BBEGQDsd.js} +9 -7
- package/dist/cdn/chunks/{de-B_6zGPbx.js.map → de-BBEGQDsd.js.map} +1 -1
- package/dist/{en-D7HRbYah.js → cdn/chunks/en-CHha-_ta.js} +9 -7
- package/dist/cdn/chunks/{en-pYt1-lm4.js.map → en-CHha-_ta.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-BPsjY5N8.js → extensions-DgvvgeJU.js} +50 -48
- package/dist/cdn/chunks/{extensions-BPsjY5N8.js.map → extensions-DgvvgeJU.js.map} +1 -1
- package/dist/cdn/chunks/{features-BouLRfOO.js → features-CgTy87Ni.js} +1276 -1119
- package/dist/cdn/chunks/features-CgTy87Ni.js.map +1 -0
- package/dist/cdn/chunks/{icons-BBuZkqC3.js → icons-DxJ--AJb.js} +36 -38
- package/dist/cdn/chunks/icons-DxJ--AJb.js.map +1 -0
- package/dist/cdn/chunks/{media-library-C-DcHE6w.js → media-library-Byh_BbTm.js} +113 -113
- package/dist/cdn/chunks/{media-library-C-DcHE6w.js.map → media-library-Byh_BbTm.js.map} +1 -1
- package/dist/{pt-BR-K32lt6YP.js → cdn/chunks/pt-BR-CFomv2R8.js} +9 -7
- package/dist/cdn/chunks/{pt-BR-CtDwVsN-.js.map → pt-BR-CFomv2R8.js.map} +1 -1
- package/dist/cdn/chunks/quality-CHCEMG8e.js +1846 -0
- package/dist/cdn/chunks/quality-CHCEMG8e.js.map +1 -0
- package/dist/cdn/chunks/{renderer-F8cxEe3t.js → renderer-DttVILgu.js} +50 -50
- package/dist/cdn/chunks/{renderer-F8cxEe3t.js.map → renderer-DttVILgu.js.map} +1 -1
- package/dist/cdn/chunks/{src-C9rMok-R.js → src-a8fYhBi5.js} +8 -8
- package/dist/cdn/chunks/{src-C9rMok-R.js.map → src-a8fYhBi5.js.map} +1 -1
- package/dist/cdn/chunks/styles-8qDRQ-6n.js +3001 -0
- package/dist/cdn/chunks/styles-8qDRQ-6n.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +112 -109
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cdn/chunks/de-B_6zGPbx.js → de-KFqjrxG3.js} +7 -9
- package/dist/{dist-DDJIWTRY.js → dist-B2jcQhv8.js} +1 -1
- package/dist/{dist-wzMIGj-D.js → dist-BYt3jdCR.js} +1 -1
- package/dist/{dist-aRzjfSRN.js → dist-CISFttkF.js} +1 -1
- package/dist/{dist-D6uC2xhi.js → dist-CfQPBf15.js} +1 -1
- package/dist/{dist-DjviJBCi.js → dist-DD-9hatO.js} +1 -1
- package/dist/{dist-KoBJjK1G.js → dist-DUvhjQ2-.js} +1 -1
- package/dist/{dist-BaQIYPsn.js → dist-DVwOAodp.js} +1 -1
- package/dist/{dist-Cp0zXPAD.js → dist-DxD1kSdH.js} +1 -1
- package/dist/{dist-Pk4MhWMP.js → dist-U5guDm2w.js} +1 -1
- package/dist/{dist-D90y8dvT.js → dist-hfu7I2rO.js} +3 -3
- package/dist/{dist-us-RpCWN.js → dist-v8h02hhE.js} +1 -1
- package/dist/{cdn/chunks/en-pYt1-lm4.js → en-CNm94YYD.js} +7 -9
- package/dist/{extensions-D-J02CiP.js → extensions-C-FpnfJn.js} +32 -30
- package/dist/index.d.ts +13 -11
- package/dist/{keys-B5SJtPWf.js → keys-CY3tkCsv.js} +2 -2
- package/dist/list-checks-CMtEXe9l.js +25 -0
- package/dist/{cdn/chunks/pt-BR-CtDwVsN-.js → pt-BR-gxZZAUWp.js} +7 -9
- package/dist/style.css +1 -1
- package/dist/{styles-j_3bu0Bo.js → styles-Ci7RdimQ.js} +1096 -1065
- package/dist/templatical-editor.js +108 -105
- package/dist/useAliveFlag-D8GoB4VE.js +10 -0
- package/dist/{useCloudI18n-ByEMykjO.js → useCloudI18n-BPUHj2CZ.js} +1 -1
- package/dist/{useEditorCore-B1XrI6fY.js → useEditorCore-DT3VrvZS.js} +940 -785
- package/dist/{useI18n-PEB8ioi_.js → useI18n-CWX9ZTCW.js} +1 -1
- package/dist/{useMergeTag-C47xwU7X.js → useMergeTag-B3F9VR04.js} +2 -2
- package/dist/{usePopoverRoot-BxJrqnMD.js → usePopoverRoot-BKJcxsst.js} +1 -1
- package/package.json +7 -7
- package/dist/accessibility-BgUEA-Ai.js +0 -27
- package/dist/cdn/chunks/AccessibilityPanel-DaqF4Xzy.js.map +0 -1
- package/dist/cdn/chunks/BlockA11yBadge-BLKyO0lH.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-BKEXPt3g.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-Bgn69Q1-.js +0 -22
- package/dist/cdn/chunks/features-BouLRfOO.js.map +0 -1
- package/dist/cdn/chunks/icons-BBuZkqC3.js.map +0 -1
- package/dist/cdn/chunks/quality-ConWSEB6.js +0 -1456
- package/dist/cdn/chunks/quality-ConWSEB6.js.map +0 -1
- package/dist/cdn/chunks/styles-BRN0i_zg.js +0 -2971
- package/dist/cdn/chunks/styles-BRN0i_zg.js.map +0 -1
- /package/dist/{check-Bg5yrRmX.js → check-BF4bEbCU.js} +0 -0
- /package/dist/{chevron-down-tee-ghFi.js → chevron-down-4NzWtv6Y.js} +0 -0
- /package/dist/{circle-alert-C0L9pUQ4.js → circle-alert-CPIth9bC.js} +0 -0
- /package/dist/{clock-CDlEdqiP.js → clock-B9-ct9r_.js} +0 -0
- /package/dist/{cloud-CTmfCSqf.js → cloud-k0DgeCo2.js} +0 -0
- /package/dist/{de-Di4MEjjx.js → de-GOtR9DwW.js} +0 -0
- /package/dist/{dist-iLBdeBDR.js → dist-CQQS9SRN.js} +0 -0
- /package/dist/{emojiData-DX3E0XT-.js → emojiData-DrBuvEoP.js} +0 -0
- /package/dist/{en-BSuzi-Pd.js → en-dFFQVzNn.js} +0 -0
- /package/dist/{formatRelativeTime-BOEf47hq.js → formatRelativeTime-bvx5sFh5.js} +0 -0
- /package/dist/{image-up-1D_3XDdO.js → image-up-CubAveUO.js} +0 -0
- /package/dist/{info-DTGrc0Bx.js → info-DiINxXfZ.js} +0 -0
- /package/dist/{liquid.browser-CdMv1BTn.js → liquid.browser-DX8ZHRdq.js} +0 -0
- /package/dist/{pt-BR-CCVBRais.js → pt-BR-iOr79aDg.js} +0 -0
- /package/dist/{readableTextColor-CY3SiRnt.js → readableTextColor-CXzrEnNb.js} +0 -0
- /package/dist/{refresh-cw-BNAhAmtL.js → refresh-cw-C9_M6yB3.js} +0 -0
- /package/dist/{styleConstants-fWzlIIwN.js → styleConstants-DkfOPzGu.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { A as e, F as t, M as n, _ as r, at as i, b as a, d as o, f as s, h as c, l, m as u, p as d, rt as f, st as p, v as m, w as h } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as v } from "./useI18n-
|
|
2
|
+
import { E as g, p as _ } from "./keys-CY3tkCsv.js";
|
|
3
|
+
import { t as v } from "./useI18n-CWX9ZTCW.js";
|
|
4
4
|
import { t as y } from "./createLucideIcon-Di4mqmGn.js";
|
|
5
|
-
import { t as b } from "./
|
|
6
|
-
import { t as x } from "./
|
|
7
|
-
import { t as S } from "./
|
|
5
|
+
import { t as b } from "./circle-alert-CPIth9bC.js";
|
|
6
|
+
import { t as x } from "./info-DiINxXfZ.js";
|
|
7
|
+
import { t as S } from "./list-checks-CMtEXe9l.js";
|
|
8
8
|
import { t as C } from "./triangle-alert-DWQySIE2.js";
|
|
9
9
|
var w = y("arrow-right", [["path", {
|
|
10
10
|
d: "M5 12h14",
|
|
@@ -25,9 +25,9 @@ var w = y("arrow-right", [["path", {
|
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "tpl:m-0 tpl:mb-3 tpl:flex tpl:list-none tpl:flex-col tpl:gap-2 tpl:p-0"
|
|
27
27
|
}, P = { class: "tpl:m-0 tpl:mb-2 tpl:text-xs tpl:text-[var(--tpl-text)]" }, F = { class: "tpl:m-0 tpl:mb-2 tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, I = { class: "tpl:flex tpl:gap-1.5" }, L = ["onClick"], R = ["title", "onClick"], z = /* @__PURE__ */ a({
|
|
28
|
-
__name: "
|
|
28
|
+
__name: "IssuesPanel",
|
|
29
29
|
setup(a) {
|
|
30
|
-
let { t: y, format: z } = v(), B = h(
|
|
30
|
+
let { t: y, format: z } = v(), B = h(g, null), V = h(_, null), H = o(() => (B?.issues.value ?? []).filter((e) => e.severity === "error")), U = o(() => (B?.issues.value ?? []).filter((e) => e.severity === "warning")), W = o(() => (B?.issues.value ?? []).filter((e) => e.severity === "info")), G = o(() => H.value.length + U.value.length + W.value.length);
|
|
31
31
|
function K(e) {
|
|
32
32
|
V && e.blockId && V.selectBlock(e.blockId);
|
|
33
33
|
}
|
|
@@ -35,35 +35,35 @@ var w = y("arrow-right", [["path", {
|
|
|
35
35
|
B?.applyFix(e);
|
|
36
36
|
}
|
|
37
37
|
return (a, o) => (e(), c("div", E, [s("header", D, [
|
|
38
|
-
m(f(
|
|
38
|
+
m(f(S), {
|
|
39
39
|
size: 16,
|
|
40
40
|
"stroke-width": 1.5
|
|
41
41
|
}),
|
|
42
|
-
s("h3", O, p(f(y).
|
|
42
|
+
s("h3", O, p(f(y).issues.panelTitle), 1),
|
|
43
43
|
G.value > 0 ? (e(), c("span", {
|
|
44
44
|
key: 0,
|
|
45
45
|
class: "tpl:ml-auto tpl:rounded-full tpl:bg-[var(--tpl-bg-hover)] tpl:px-2 tpl:py-0.5 tpl:text-[11px] tpl:text-[var(--tpl-text-muted)]",
|
|
46
|
-
title: f(z)(f(y).
|
|
46
|
+
title: f(z)(f(y).issues.issueCountTooltip, { count: G.value })
|
|
47
47
|
}, p(G.value), 9, k)) : u("", !0)
|
|
48
|
-
]), !f(B) || f(B).unavailable.value ? (e(), c("div", A)) : G.value === 0 ? (e(), c("div", j, p(f(y).
|
|
48
|
+
]), !f(B) || f(B).unavailable.value ? (e(), c("div", A)) : G.value === 0 ? (e(), c("div", j, p(f(y).issues.emptyState), 1)) : (e(!0), c(l, { key: 2 }, n([
|
|
49
49
|
{
|
|
50
50
|
key: "errors",
|
|
51
|
-
title: f(y).
|
|
52
|
-
icon: f(
|
|
51
|
+
title: f(y).issues.groupErrors,
|
|
52
|
+
icon: f(b),
|
|
53
53
|
items: H.value,
|
|
54
54
|
tone: "tpl:text-[var(--tpl-danger)]"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
key: "warnings",
|
|
58
|
-
title: f(y).
|
|
58
|
+
title: f(y).issues.groupWarnings,
|
|
59
59
|
icon: f(C),
|
|
60
60
|
items: U.value,
|
|
61
61
|
tone: "tpl:text-[var(--tpl-warning)]"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
key: "info",
|
|
65
|
-
title: f(y).
|
|
66
|
-
icon: f(
|
|
65
|
+
title: f(y).issues.groupInfo,
|
|
66
|
+
icon: f(x),
|
|
67
67
|
items: W.value,
|
|
68
68
|
tone: "tpl:text-[var(--tpl-text-muted)]"
|
|
69
69
|
}
|
|
@@ -91,7 +91,7 @@ var w = y("arrow-right", [["path", {
|
|
|
91
91
|
}, [m(f(w), {
|
|
92
92
|
size: 10,
|
|
93
93
|
"stroke-width": 2
|
|
94
|
-
}), r(" " + p(f(y).
|
|
94
|
+
}), r(" " + p(f(y).issues.jump), 1)], 8, L)) : u("", !0), t.fix ? (e(), c("button", {
|
|
95
95
|
key: 1,
|
|
96
96
|
type: "button",
|
|
97
97
|
class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-md tpl:bg-[var(--tpl-primary)] tpl:px-2 tpl:py-1 tpl:text-[11px] tpl:font-medium tpl:text-white",
|
|
@@ -100,7 +100,7 @@ var w = y("arrow-right", [["path", {
|
|
|
100
100
|
}, [m(f(T), {
|
|
101
101
|
size: 10,
|
|
102
102
|
"stroke-width": 2
|
|
103
|
-
}), r(" " + p(f(y).
|
|
103
|
+
}), r(" " + p(f(y).issues.fix), 1)], 8, R)) : u("", !0)])
|
|
104
104
|
]))), 128))])) : u("", !0)]))), 128))]));
|
|
105
105
|
}
|
|
106
106
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { A as e, B as t, F as n, L as r, M as i, X as a, a as ee, b as o, c as s, d as c, f as l, h as u, i as te, l as d, m as ne, ot as re, p as f, rt as p, st as m, v as h, y as ie, z as ae } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import { A as g,
|
|
4
|
-
import { t as se } from "./useI18n-
|
|
2
|
+
import "./useEditorCore-DT3VrvZS.js";
|
|
3
|
+
import { A as g, p as _, w as oe } from "./keys-CY3tkCsv.js";
|
|
4
|
+
import { t as se } from "./useI18n-CWX9ZTCW.js";
|
|
5
5
|
import { t as v } from "./createLucideIcon-Di4mqmGn.js";
|
|
6
|
-
import { n as y, t as b } from "./blockTypeIcons-
|
|
6
|
+
import { n as y, t as b } from "./blockTypeIcons-CJNuGjLX.js";
|
|
7
7
|
import { t as ce } from "./trash-2-424iqbpN.js";
|
|
8
8
|
import { t as le } from "./x-Dlaenqta.js";
|
|
9
|
-
import { n as ue } from "./useCloudI18n-
|
|
10
|
-
import { t as de } from "./TplModal-
|
|
9
|
+
import { n as ue } from "./useCloudI18n-BPUHj2CZ.js";
|
|
10
|
+
import { t as de } from "./TplModal-CVq2BAIW.js";
|
|
11
11
|
var fe = v("search", [["path", {
|
|
12
12
|
d: "m21 21-4.34-4.34",
|
|
13
13
|
key: "14j7rj"
|
|
@@ -53,7 +53,7 @@ var fe = v("search", [["path", {
|
|
|
53
53
|
props: { visible: { type: Boolean } },
|
|
54
54
|
emits: ["close", "insert"],
|
|
55
55
|
setup(o, { emit: v }) {
|
|
56
|
-
let B = o, V = v, Ee = ie(() => import("./ModulePreviewCanvas-
|
|
56
|
+
let B = o, V = v, Ee = ie(() => import("./ModulePreviewCanvas-CDg4MnJP.js")), { t: De } = se(), { t: H } = ue(), U = g(oe, "ModuleBrowserModal"), W = g(_, "ModuleBrowserModal"), G = a(""), K = a(null), q = a(null), J = a("end"), Y = c(() => {
|
|
57
57
|
let e = U.modules.value;
|
|
58
58
|
if (!G.value) return e;
|
|
59
59
|
let t = G.value.toLowerCase();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as e, F as t, M as n, P as r, b as i, d as a, f as o, h as s, l as c, ot as l, p as u, rt as d, w as f } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import { N as p, _ as m, a as h, f as g, g as _, h as v, i as y, m as b, n as x, p as S, r as C, u as w, v as T, y as E } from "./useEditorCore-
|
|
3
|
-
import {
|
|
2
|
+
import { N as p, _ as m, a as h, f as g, g as _, h as v, i as y, m as b, n as x, p as S, r as C, u as w, v as T, y as E } from "./useEditorCore-DT3VrvZS.js";
|
|
3
|
+
import { o as D } from "./keys-CY3tkCsv.js";
|
|
4
4
|
//#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__PURE__ */ i({
|
|
6
6
|
name: "PreviewSectionBlock",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as e, F as t, M as n, N as r, X as i, at as a, b as o, d as s, f as c, h as l, l as u, m as d, ot as f, p, rt as m, s as h, st as g, t as ee, v as _, z as te } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
2
|
import { t as v } from "./dist-BzRLLpfq.js";
|
|
3
|
-
import { t as ne } from "./useI18n-
|
|
4
|
-
import { h as y, i as b, m as x, p as S, u as C } from "./styleConstants-
|
|
3
|
+
import { t as ne } from "./useI18n-CWX9ZTCW.js";
|
|
4
|
+
import { h as y, i as b, m as x, p as S, u as C } from "./styleConstants-DkfOPzGu.js";
|
|
5
5
|
//#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
|
|
6
6
|
var w = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, T = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
|
|
7
7
|
360 / (Math.PI * 2);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { A as e, F as t, G as n, M as r, X as i, _ as a, at as o, b as s, c, d as l, f as u, h as d, l as f, m as p, ot as m, p as h, rt as g, s as _, st as v, u as y, v as b, w as x } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import { C as S, b as C, w } from "./useEditorCore-
|
|
2
|
+
import { C as S, b as C, w } from "./useEditorCore-DT3VrvZS.js";
|
|
3
3
|
import { t as T } from "./dist-BzRLLpfq.js";
|
|
4
|
-
import { A as E, D,
|
|
5
|
-
import { t as A } from "./useI18n-
|
|
4
|
+
import { A as E, D, h as O, k } from "./keys-CY3tkCsv.js";
|
|
5
|
+
import { t as A } from "./useI18n-CWX9ZTCW.js";
|
|
6
6
|
import { t as j } from "./createLucideIcon-Di4mqmGn.js";
|
|
7
|
-
import { a as ee, i as te, n as M, r as N, t as P } from "./RichTextEditorContent-
|
|
7
|
+
import { a as ee, i as te, n as M, r as N, t as P } from "./RichTextEditorContent-Cu9NEkKd.js";
|
|
8
8
|
import { t as ne } from "./loader-circle-_9bP23op.js";
|
|
9
9
|
import { t as re } from "./scan-line-DUEg6DoT.js";
|
|
10
10
|
import { n as ie, r as ae, t as oe } from "./text-align-start-DG3aAH7Y.js";
|
|
11
11
|
import { t as F } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
12
|
-
import { a as I, o as L, s as R } from "./styleConstants-
|
|
13
|
-
import { t as z } from "./usePopoverRoot-
|
|
12
|
+
import { a as I, o as L, s as R } from "./styleConstants-DkfOPzGu.js";
|
|
13
|
+
import { t as z } from "./usePopoverRoot-BKJcxsst.js";
|
|
14
14
|
var B = j("list-ordered", [
|
|
15
15
|
["path", {
|
|
16
16
|
d: "M11 5h10",
|
|
@@ -587,18 +587,18 @@ var Z = /* @__PURE__ */ F(fe, [["render", me]]), he = [
|
|
|
587
587
|
editorName: "ParagraphEditor",
|
|
588
588
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
589
589
|
let [{ Editor: a, EditorContent: s }, { default: c }, { default: l }, { default: u }, { default: d }, { default: f }, { default: p }, { TextStyle: m }, { default: h }, { default: g }, { default: _ }, { MergeTagNode: v, MergeTagSuggestion: y, LogicMergeTagNode: b, FontSize: x, LineHeight: S, LetterSpacing: C }] = await Promise.all([
|
|
590
|
-
import("./dist-
|
|
591
|
-
import("./dist-
|
|
592
|
-
import("./dist-
|
|
593
|
-
import("./dist-
|
|
594
|
-
import("./dist-
|
|
595
|
-
import("./dist-
|
|
596
|
-
import("./dist-
|
|
597
|
-
import("./dist-
|
|
598
|
-
import("./dist-
|
|
599
|
-
import("./dist-
|
|
600
|
-
import("./dist-
|
|
601
|
-
import("./extensions-
|
|
590
|
+
import("./dist-U5guDm2w.js").then((e) => e.r),
|
|
591
|
+
import("./dist-hfu7I2rO.js"),
|
|
592
|
+
import("./dist-B2jcQhv8.js"),
|
|
593
|
+
import("./dist-DUvhjQ2-.js"),
|
|
594
|
+
import("./dist-DVwOAodp.js"),
|
|
595
|
+
import("./dist-CISFttkF.js"),
|
|
596
|
+
import("./dist-v8h02hhE.js"),
|
|
597
|
+
import("./dist-DxD1kSdH.js"),
|
|
598
|
+
import("./dist-CfQPBf15.js"),
|
|
599
|
+
import("./dist-BYt3jdCR.js"),
|
|
600
|
+
import("./dist-DD-9hatO.js"),
|
|
601
|
+
import("./extensions-C-FpnfJn.js")
|
|
602
602
|
]);
|
|
603
603
|
return {
|
|
604
604
|
TiptapEditor: a,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as e, B as t, F as n, I as r, T as i, _ as a, a as o, b as s, c, f as l, h as u, m as d, ot as f, p, rt as m, st as h, u as g, v as _, w as v } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import { D as y, k as b } from "./keys-
|
|
3
|
-
import { t as x } from "./useI18n-
|
|
2
|
+
import { D as y, k as b } from "./keys-CY3tkCsv.js";
|
|
3
|
+
import { t as x } from "./useI18n-CWX9ZTCW.js";
|
|
4
4
|
import { t as S } from "./createLucideIcon-Di4mqmGn.js";
|
|
5
5
|
import { t as C } from "./x-Dlaenqta.js";
|
|
6
|
-
import { t as w } from "./usePopoverRoot-
|
|
6
|
+
import { t as w } from "./usePopoverRoot-BKJcxsst.js";
|
|
7
7
|
var T = S("bold", [["path", {
|
|
8
8
|
d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",
|
|
9
9
|
key: "mg9rjx"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { A as e, B as t, L as n, M as r, X as i, _ as a, a as o, at as s, b as c, d as l, f as u, h as d, l as ee, m as f, ot as p, p as m, rt as h, st as g, v as _, z as v } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import { A as y,
|
|
4
|
-
import { t as S } from "./useI18n-
|
|
2
|
+
import "./useEditorCore-DT3VrvZS.js";
|
|
3
|
+
import { A as y, p as b, w as x } from "./keys-CY3tkCsv.js";
|
|
4
|
+
import { t as S } from "./useI18n-CWX9ZTCW.js";
|
|
5
5
|
import { t as te } from "./loader-circle-_9bP23op.js";
|
|
6
|
-
import { n as ne } from "./useCloudI18n-
|
|
7
|
-
import { t as C } from "./TplModal-
|
|
6
|
+
import { n as ne } from "./useCloudI18n-BPUHj2CZ.js";
|
|
7
|
+
import { t as C } from "./TplModal-CVq2BAIW.js";
|
|
8
8
|
//#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var w = ["aria-busy"], T = {
|
|
10
10
|
id: "tpl-save-module-title",
|
|
@@ -28,7 +28,7 @@ var w = ["aria-busy"], T = {
|
|
|
28
28
|
},
|
|
29
29
|
emits: ["close", "saved"],
|
|
30
30
|
setup(c, { emit: R }) {
|
|
31
|
-
let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = y(
|
|
31
|
+
let z = c, B = R, { t: V } = S(), { t: H } = ne(), U = y(b, "SaveModuleDialog"), W = y(x, "SaveModuleDialog"), G = i(""), K = i(/* @__PURE__ */ new Set()), q = i(!1), J = i(null), Y = l(() => U.content.value.blocks);
|
|
32
32
|
function X(e, t) {
|
|
33
33
|
let n = e.type;
|
|
34
34
|
return `${V.blocks[n] ?? e.type} ${t + 1}`;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { A as e, L as t, M as n, X as r, at as i, b as a, c as o, d as s, f as c, h as l, l as u, m as d, rt as f, st as p, t as m, v as h, z as g } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-DT3VrvZS.js";
|
|
3
3
|
import { t as _ } from "./dist-BzRLLpfq.js";
|
|
4
|
-
import { t as v } from "./useI18n-
|
|
4
|
+
import { t as v } from "./useI18n-CWX9ZTCW.js";
|
|
5
5
|
import { t as y } from "./createLucideIcon-Di4mqmGn.js";
|
|
6
|
-
import { t as b } from "./chevron-down-
|
|
7
|
-
import { t as x } from "./clock-
|
|
6
|
+
import { t as b } from "./chevron-down-4NzWtv6Y.js";
|
|
7
|
+
import { t as x } from "./clock-B9-ct9r_.js";
|
|
8
8
|
import { t as S } from "./loader-circle-_9bP23op.js";
|
|
9
|
-
import { n as C } from "./useCloudI18n-
|
|
10
|
-
import { t as w } from "./formatRelativeTime-
|
|
9
|
+
import { n as C } from "./useCloudI18n-BPUHj2CZ.js";
|
|
10
|
+
import { t as w } from "./formatRelativeTime-bvx5sFh5.js";
|
|
11
11
|
var T = y("chevron-left", [["path", {
|
|
12
12
|
d: "m15 18-6-6 6-6",
|
|
13
13
|
key: "1wnfg3"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { A as e, F as t, L as n, M as r, X as i, _ as a, at as ee, b as o, f as s, h as c, l, m as u, ot as d, p as f, rt as p, st as m, t as h, v as g, w as te, z as ne } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import { A as _,
|
|
2
|
+
import { A as _, T as re, p as ie, v } from "./keys-CY3tkCsv.js";
|
|
3
3
|
import { t as y } from "./createLucideIcon-Di4mqmGn.js";
|
|
4
|
-
import { t as ae } from "./chevron-down-
|
|
5
|
-
import { t as b } from "./circle-alert-
|
|
6
|
-
import { n as x, t as S } from "./refresh-cw-
|
|
7
|
-
import { t as oe } from "./info-
|
|
4
|
+
import { t as ae } from "./chevron-down-4NzWtv6Y.js";
|
|
5
|
+
import { t as b } from "./circle-alert-CPIth9bC.js";
|
|
6
|
+
import { n as x, t as S } from "./refresh-cw-C9_M6yB3.js";
|
|
7
|
+
import { t as oe } from "./info-DiINxXfZ.js";
|
|
8
8
|
import { t as C } from "./loader-circle-_9bP23op.js";
|
|
9
9
|
import { t as w } from "./shield-check-C5Gv2cM1.js";
|
|
10
10
|
import { t as T } from "./sparkles-D1IGi_cC.js";
|
|
@@ -12,7 +12,7 @@ import { t as se } from "./triangle-alert-DWQySIE2.js";
|
|
|
12
12
|
import { t as ce } from "./x-Dlaenqta.js";
|
|
13
13
|
import { t as le } from "./LoadingTrack-CFkDkjBb.js";
|
|
14
14
|
import { t as E } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
15
|
-
import { n as D } from "./useCloudI18n-
|
|
15
|
+
import { n as D } from "./useCloudI18n-BPUHj2CZ.js";
|
|
16
16
|
var O = y("shield-x", [
|
|
17
17
|
["path", {
|
|
18
18
|
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as e, B as t, L as n, M as r, X as i, _ as a, at as o, b as s, f as c, h as l, i as u, l as d, m as f, p, rt as m, st as h, v as g, z as _ } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-DT3VrvZS.js";
|
|
3
3
|
import { t as v } from "./loader-circle-_9bP23op.js";
|
|
4
|
-
import { n as y } from "./useCloudI18n-
|
|
5
|
-
import { t as b } from "./TplModal-
|
|
4
|
+
import { n as y } from "./useCloudI18n-BPUHj2CZ.js";
|
|
5
|
+
import { t as b } from "./TplModal-CVq2BAIW.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",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { A as e, G as t, _ as n, at as r, b as i, f as a, h as o, l as s, m as c, ot as l, p as u, rt as d, st as f, u as p, v as m, w as h } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import { b as g } from "./useEditorCore-
|
|
3
|
-
import { D as _, k as v } from "./keys-
|
|
4
|
-
import { t as y } from "./useI18n-
|
|
5
|
-
import { a as b, i as x, n as S, r as C, t as w } from "./RichTextEditorContent-
|
|
2
|
+
import { b as g } from "./useEditorCore-DT3VrvZS.js";
|
|
3
|
+
import { D as _, k as v } from "./keys-CY3tkCsv.js";
|
|
4
|
+
import { t as y } from "./useI18n-CWX9ZTCW.js";
|
|
5
|
+
import { a as b, i as x, n as S, r as C, t as w } from "./RichTextEditorContent-Cu9NEkKd.js";
|
|
6
6
|
import { t as T } from "./loader-circle-_9bP23op.js";
|
|
7
7
|
import { t as E } from "./scan-line-DUEg6DoT.js";
|
|
8
|
-
import { t as ee } from "./usePopoverRoot-
|
|
8
|
+
import { t as ee } from "./usePopoverRoot-BKJcxsst.js";
|
|
9
9
|
//#region src/components/blocks/TitleEditor.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var D = { class: "tpl-text-editor-wrapper tpl:relative" }, O = ["data-tpl-theme", "aria-label"], k = ["aria-label", "title"], A = ["aria-label", "title"], j = ["aria-label", "title"], M = {
|
|
11
11
|
key: 0,
|
|
@@ -28,10 +28,10 @@ var D = { class: "tpl-text-editor-wrapper tpl:relative" }, O = ["data-tpl-theme"
|
|
|
28
28
|
editorName: "TitleEditor",
|
|
29
29
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
30
30
|
let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d }] = await Promise.all([
|
|
31
|
-
import("./dist-
|
|
32
|
-
import("./dist-
|
|
33
|
-
import("./dist-
|
|
34
|
-
import("./extensions-
|
|
31
|
+
import("./dist-U5guDm2w.js").then((e) => e.r),
|
|
32
|
+
import("./dist-hfu7I2rO.js"),
|
|
33
|
+
import("./dist-B2jcQhv8.js"),
|
|
34
|
+
import("./extensions-C-FpnfJn.js")
|
|
35
35
|
]);
|
|
36
36
|
return {
|
|
37
37
|
TiptapEditor: a,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as e, N as t, X as n, b as r, c as i, d as a, f as o, h as s, m as c, p as l, rt as u, t as d, u as f, v as p, w as m, z as h } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import { w as g } from "./useEditorCore-
|
|
3
|
-
import { k as _ } from "./keys-
|
|
4
|
-
import { t as v } from "./usePopoverRoot-
|
|
2
|
+
import { w as g } from "./useEditorCore-DT3VrvZS.js";
|
|
3
|
+
import { k as _ } from "./keys-CY3tkCsv.js";
|
|
4
|
+
import { t as v } from "./usePopoverRoot-BKJcxsst.js";
|
|
5
5
|
//#region src/cloud/components/TplModal.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
|
|
7
7
|
__name: "TplModal",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as e, E as t, M as n, O as r, k as i } from "./useEditorCore-
|
|
1
|
+
import { D as e, E as t, M as n, O as r, k as i } from "./useEditorCore-DT3VrvZS.js";
|
|
2
2
|
import { t as a } from "./createLucideIcon-Di4mqmGn.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.8.0",
|
|
3
|
+
"initialGzipBytes": 153127,
|
|
4
|
+
"initialRawBytes": 536472,
|
|
5
|
+
"initialFileCount": 34,
|
|
6
|
+
"lazyGzipBytes": 264943,
|
|
7
|
+
"lazyRawBytes": 916661,
|
|
8
8
|
"lazyFileCount": 48,
|
|
9
|
-
"generatedAt": "2026-05-
|
|
9
|
+
"generatedAt": "2026-05-16T09:08:25.374Z"
|
|
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-P6QWzy4g.js";
|
|
2
|
-
import { It as d,
|
|
2
|
+
import { It as d, dt as f, nn as p, rt as m, tt as h, ut as g, xt as _ } from "./features-CgTy87Ni.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)]",
|
|
@@ -7,27 +7,27 @@ var v = {
|
|
|
7
7
|
"backdrop-filter": "blur(8px)",
|
|
8
8
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
9
9
|
}
|
|
10
|
-
}, y = ["onClick"], b = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, x = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, S = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]" }, C = /* @__PURE__ */
|
|
10
|
+
}, y = ["onClick"], b = { class: "tpl:flex tpl:min-w-0 tpl:flex-col tpl:gap-0.5" }, x = { class: "tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text)]" }, S = { class: "tpl:text-xs tpl:leading-snug tpl:text-[var(--tpl-text-muted)]" }, C = /* @__PURE__ */ m(/* @__PURE__ */ u({
|
|
11
11
|
__name: "AiFeatureMenu",
|
|
12
12
|
props: { activeFeature: {} },
|
|
13
13
|
emits: ["select"],
|
|
14
|
-
setup(u, { emit:
|
|
15
|
-
let C =
|
|
14
|
+
setup(u, { emit: m }) {
|
|
15
|
+
let C = m, { t: w } = h(), T = p(d, "AiFeatureMenu"), E = {
|
|
16
16
|
"ai-chat": "chat",
|
|
17
17
|
"design-reference": "designToTemplate",
|
|
18
18
|
scoring: "scoring"
|
|
19
19
|
}, D = [
|
|
20
20
|
{
|
|
21
21
|
key: "ai-chat",
|
|
22
|
-
icon:
|
|
22
|
+
icon: g
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
key: "design-reference",
|
|
26
|
-
icon:
|
|
26
|
+
icon: _
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
key: "scoring",
|
|
30
|
-
icon:
|
|
30
|
+
icon: f
|
|
31
31
|
}
|
|
32
32
|
], O = i(() => D.filter((e) => T.isFeatureEnabled(E[e.key])));
|
|
33
33
|
function k(e) {
|
|
@@ -56,4 +56,4 @@ var v = {
|
|
|
56
56
|
//#endregion
|
|
57
57
|
export { C as default };
|
|
58
58
|
|
|
59
|
-
//# sourceMappingURL=AiFeatureMenu-
|
|
59
|
+
//# sourceMappingURL=AiFeatureMenu-DtrT-aFR.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiFeatureMenu-
|
|
1
|
+
{"version":3,"file":"AiFeatureMenu-DtrT-aFR.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,GAAoB,EAEpC,IAAW,EAAc,GAAe,gBAAgB,EAExD,IAAkD;GACtD,WAAW;GACX,oBAAoB;GACpB,SAAS;GACV,EAEK,IAA2D;GAC/D;IAAE,KAAK;IAAW,MAAM;IAAU;GAClC;IAAE,KAAK;IAAoB,MAAM;IAAS;GAC1C;IAAE,KAAK;IAAW,MAAM;IAAa;GACtC,EAEK,IAAW,QACf,EAAY,QAAQ,MAAM,EAAS,iBAAiB,EAAa,EAAE,KAAK,CAAC,CAC1E;EAED,SAAS,EAAS,GAAwB;AAGxC,UAFI,MAAQ,YAAkB,EAAO,OAAO,cACxC,MAAQ,qBAA2B,EAAO,OAAO,mBAC9C,EAAO,OAAO;;EAGvB,SAAS,EAAe,GAAwB;AAG9C,UAFI,MAAQ,YAAkB,EAAO,OAAO,kBACxC,MAAQ,qBAA2B,EAAO,OAAO,uBAC9C,EAAO,OAAO;;yBAKrB,EA0CM,OA1CN,GA0CM,EAAA,EAAA,GAAA,EAtCJ,EAqCS,GAAA,MAAA,EApCW,EAAA,QAAX,YADT,EAqCS,UAAA;GAnCN,KAAK,EAAQ;GACd,OAAM;GACL,OAAK,EAAA,EAAA,iBAAuC,EAAA,kBAAkB,EAAQ,MAAA,6BAAA,eAAA,CAAA;GAMtE,UAAK,MAAE,EAAI,UAAW,EAAQ,IAAG;MAElC,EAcM,OAAA;GAbJ,OAAM;GACL,OAAK,EAAA;qBAA2C,EAAA,kBAAkB,EAAQ,MAAA,uBAAA;WAA8G,EAAA,kBAAkB,EAAQ,MAAA,kBAAA;;YAWnN,EAA6D,EAA7C,EAAQ,KAAI,EAAA;GAAG,MAAM;GAAK,gBAAc;YAE1D,EASM,OATN,GASM,CARJ,EAEO,QAFP,GAEO,EADF,EAAS,EAAQ,IAAG,CAAA,EAAA,EAAA,EAEzB,EAIO,QAJP,GAIO,EADF,EAAe,EAAQ,IAAG,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAAA,IAAA,EAAA"}
|
|
@@ -1,18 +1,18 @@
|
|
|
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-P6QWzy4g.js";
|
|
2
|
-
import {
|
|
3
|
-
//#region src/components/canvas/
|
|
2
|
+
import { $t as l, Dt as u, Ft as d, st as f } from "./features-CgTy87Ni.js";
|
|
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
|
-
__name: "
|
|
5
|
+
__name: "BlockIssueBadge",
|
|
6
6
|
props: { blockId: {} },
|
|
7
7
|
setup(c) {
|
|
8
|
-
let m = c, { t: h } = d(), g = t(
|
|
8
|
+
let m = c, { t: h } = d(), g = t(l, null), _ = n(() => (g?.issues.value ?? []).filter((e) => e.blockId === m.blockId)), v = n(() => _.value.some((e) => e.severity === "error") ? "error" : _.value.some((e) => e.severity === "warning") ? "warning" : null), y = n(() => v.value === "error" ? h.issues.badgeError : h.issues.badgeWarning);
|
|
9
9
|
return (t, n) => v.value ? (e(), r("span", {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: s(["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)]", v.value === "error" ? "tpl:text-[var(--tpl-danger)]" : "tpl:text-[var(--tpl-warning)]"]),
|
|
12
12
|
title: y.value,
|
|
13
13
|
"aria-label": y.value,
|
|
14
14
|
role: "img"
|
|
15
|
-
}, [v.value === "error" ? (e(), o(a(
|
|
15
|
+
}, [v.value === "error" ? (e(), o(a(u), {
|
|
16
16
|
key: 0,
|
|
17
17
|
size: 14,
|
|
18
18
|
"stroke-width": 2.25,
|
|
@@ -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=
|
|
33
|
+
//# sourceMappingURL=BlockIssueBadge-w7n4orSd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockIssueBadge-w7n4orSd.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,GAAS,EACjB,IAAO,EAAO,GAAmB,KAAK,EAEtC,IAAc,SACjB,GAAM,OAAO,SAAS,EAAE,EAAE,QAAQ,MAAM,EAAE,YAAY,EAAM,QAAQ,CACtE,EAEK,IAAW,QACX,EAAY,MAAM,MAAM,MAAM,EAAE,aAAa,QAAQ,GAAS,UAC9D,EAAY,MAAM,MAAM,MAAM,EAAE,aAAa,UAAU,GAAS,YAC7D,KACP,EAEI,IAAU,QACd,EAAS,UAAU,UAAU,EAAE,OAAO,aAAa,EAAE,OAAO,aAC7D;mBAKS,EAAA,SAAA,GAAA,EADR,EA0BO,QAAA;;GAxBL,OAAK,EAAA,CAAC,yNACS,EAAA,UAAQ,UAAA,iCAAA,gCAAA,CAAA;GAKtB,OAAO,EAAA;GACP,cAAY,EAAA;GACb,MAAK;MAGG,EAAA,UAAQ,WAAA,GAAA,EADhB,EAME,EAAA,EAAA,EAAA;;GAJC,MAAM;GACN,gBAAc;GACf,MAAK;GACL,QAAO;cAET,EAME,EAAA,EAAA,EAAA;;GAJC,MAAM;GACN,gBAAc;GACf,MAAK;GACL,QAAO"}
|