@templatical/editor 0.16.3 → 0.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-EaPCeDXr.js → AiChatSidebar-CYAbVB2G.js} +7 -7
- package/dist/{AiFeatureMenu-CcGRd1xE.js → AiFeatureMenu-B1oEJebq.js} +4 -4
- package/dist/{BlockIssueBadge-CZYgn-qg.js → BlockIssueBadge-BLytBabN.js} +2 -2
- package/dist/{CloudEditor-CUIWUMp5.js → CloudEditor-D6KNL6VU.js} +15 -15
- package/dist/{CollaboratorBar-DmxqeBYZ.js → CollaboratorBar-C_EhXQ5R.js} +2 -2
- package/dist/{ColorPicker-Gs4BMVog.js → ColorPicker-CppJgX_T.js} +58 -59
- package/dist/{CommentsSidebar-DDKiFsSq.js → CommentsSidebar-C_XLBbo3.js} +8 -8
- package/dist/{CountdownToolbar-92w1YySJ.js → CountdownToolbar-D5GaA_lt.js} +53 -67
- package/dist/{DesignReferenceSidebar-D6TfC176.js → DesignReferenceSidebar-Bh9uAZ4B.js} +5 -5
- package/dist/{IssuesPanel-CQQipLQP.js → IssuesPanel-DltSuU6H.js} +5 -5
- package/dist/{MergeTagSuggestion-DrT3LiZ4.js → MergeTagSuggestion-jIpT_jmz.js} +7 -5
- package/dist/{ModuleBrowserModal-DsehjLvh.js → ModuleBrowserModal-CXy8Bbv9.js} +6 -6
- package/dist/{ModulePreviewCanvas-BBfuS8VW.js → ModulePreviewCanvas-CJC9kyZN.js} +1 -1
- package/dist/{NumberWithSuffix-BxSRfI8b.js → NumberWithSuffix-DNi-v4l1.js} +1 -1
- package/dist/{ParagraphEditor-vgvQxicC.js → ParagraphEditor-nk5Vvr7M.js} +57 -58
- package/dist/{RichTextEditorContent-Dza2oPvh.js → RichTextEditorContent-DBaCrvH0.js} +13 -13
- package/dist/{SaveModuleDialog-DNWGCHlS.js → SaveModuleDialog-CYu5PhBz.js} +24 -23
- package/dist/{SnapshotHistory-BLmnNLg1.js → SnapshotHistory-B38ImqMO.js} +6 -6
- package/dist/{TemplateScoringPanel-C8VOC6gn.js → TemplateScoringPanel-ZhObHWeb.js} +10 -10
- package/dist/{TestEmailModal-D6v1hgY2.js → TestEmailModal-DbstIzEf.js} +3 -3
- package/dist/{TitleEditor-DPdzOQpq.js → TitleEditor-CmfkOHJT.js} +18 -18
- package/dist/ToggleSwitch-DUNuUPsZ.js +37 -0
- package/dist/{TplModal-DObT0uxf.js → TplModal-BXnx3sLr.js} +4 -4
- package/dist/{blockTypeIcons-B9f5fH_5.js → blockTypeIcons-BVIEw0XJ.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-B3eR47lE.js → ca-DI1ViqMa.js} +2 -1
- package/dist/cdn/chunks/{AiFeatureMenu-CyUCHd9I.js → AiFeatureMenu-CuIg4yrB.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-CyUCHd9I.js.map → AiFeatureMenu-CuIg4yrB.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BAa_dI-c.js → BlockIssueBadge-BHEl_Hs7.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-BAa_dI-c.js.map → BlockIssueBadge-BHEl_Hs7.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-ClfgLU48.js → CloudEditor-1Ms0w691.js} +130 -130
- package/dist/cdn/chunks/{CloudEditor-ClfgLU48.js.map → CloudEditor-1Ms0w691.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DCc5SL0P.js → CollaboratorBar-C0a5P64z.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-DCc5SL0P.js.map → CollaboratorBar-C0a5P64z.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-Pi-1fR8c.js → ColorPicker-bsMmT-_B.js} +144 -144
- package/dist/cdn/chunks/ColorPicker-bsMmT-_B.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Bj7aoBUU.js → CountdownBlock-8053oz4k.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-Bj7aoBUU.js.map → CountdownBlock-8053oz4k.js.map} +1 -1
- package/dist/cdn/chunks/CountdownToolbar-DQ_zrorh.js +198 -0
- package/dist/cdn/chunks/CountdownToolbar-DQ_zrorh.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-BXLVRo-c.js → IssuesPanel-CwQ376nf.js} +7 -7
- package/dist/cdn/chunks/{IssuesPanel-BXLVRo-c.js.map → IssuesPanel-CwQ376nf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-jesxS7An.js → MergeTagSuggestion-rpZ6Ol-i.js} +8 -6
- package/dist/cdn/chunks/MergeTagSuggestion-rpZ6Ol-i.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-C7BkJvzf.js → ModuleBrowserModal-DUegB2Jk.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-C7BkJvzf.js.map → ModuleBrowserModal-DUegB2Jk.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-BJn-ZHlC.js → ModulePreviewCanvas-f4h8r9Lh.js} +32 -32
- package/dist/cdn/chunks/{ModulePreviewCanvas-BJn-ZHlC.js.map → ModulePreviewCanvas-f4h8r9Lh.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-CkOxH3F7.js → NumberWithSuffix-Bu_nHJuD.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-CkOxH3F7.js.map → NumberWithSuffix-Bu_nHJuD.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-4cMKKC-V.js → ParagraphEditor-IpZsg8qo.js} +75 -75
- package/dist/cdn/chunks/ParagraphEditor-IpZsg8qo.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-7RZe4tbj.js → RichTextEditorContent-DDnqZ9cB.js} +6 -6
- package/dist/cdn/chunks/{RichTextEditorContent-7RZe4tbj.js.map → RichTextEditorContent-DDnqZ9cB.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-mr9A4j6G.js → SaveModuleDialog-CVA5HPCi.js} +31 -30
- package/dist/cdn/chunks/SaveModuleDialog-CVA5HPCi.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-Cqw2jvuc.js → TitleEditor-DU8wm0Rh.js} +9 -9
- package/dist/cdn/chunks/TitleEditor-DU8wm0Rh.js.map +1 -0
- package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js +39 -0
- package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-B_xRBxSU.js → blockTypeIcons-Dm5Oosjp.js} +7 -7
- package/dist/cdn/chunks/{blockTypeIcons-B_xRBxSU.js.map → blockTypeIcons-Dm5Oosjp.js.map} +1 -1
- package/dist/cdn/chunks/{ca-B3eR47lE.js → ca-DI1ViqMa.js} +3 -2
- package/dist/cdn/chunks/ca-DI1ViqMa.js.map +1 -0
- package/dist/cdn/chunks/{de-Cy8FB-Ii.js → de-q9lTCMre.js} +3 -2
- package/dist/cdn/chunks/de-q9lTCMre.js.map +1 -0
- package/dist/cdn/chunks/{en-Bu-zS_5o.js → en-CR4LItrX.js} +3 -2
- package/dist/cdn/chunks/en-CR4LItrX.js.map +1 -0
- package/dist/cdn/chunks/{es-CD3ZD6hK.js → es-CEt-lrGd.js} +3 -2
- package/dist/cdn/chunks/es-CEt-lrGd.js.map +1 -0
- package/dist/cdn/chunks/{extensions-Btyx_IMf.js → extensions-BGUoo2a5.js} +29 -29
- package/dist/cdn/chunks/{extensions-Btyx_IMf.js.map → extensions-BGUoo2a5.js.map} +1 -1
- package/dist/cdn/chunks/{features-Dwb5aTLg.js → features-BSpDuFFR.js} +145 -126
- package/dist/cdn/chunks/features-BSpDuFFR.js.map +1 -0
- package/dist/cdn/chunks/{icons-Dhqh5lYQ.js → icons-k3XVoRvc.js} +26 -26
- package/dist/cdn/chunks/{icons-Dhqh5lYQ.js.map → icons-k3XVoRvc.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-DRodsf2D.js → media-library-iDq3otm6.js} +451 -451
- package/dist/cdn/chunks/{media-library-DRodsf2D.js.map → media-library-iDq3otm6.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-CgICL-CQ.js → pt-BR-DvBHY0AA.js} +3 -2
- package/dist/cdn/chunks/pt-BR-DvBHY0AA.js.map +1 -0
- package/dist/cdn/chunks/{quality-A_V2Iqu_.js → quality-Bb7vN32U.js} +512 -512
- package/dist/cdn/chunks/{quality-A_V2Iqu_.js.map → quality-Bb7vN32U.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-BM_-zceB.js → renderer-cOvtk8HM.js} +20 -17
- package/dist/cdn/chunks/{renderer-BM_-zceB.js.map → renderer-cOvtk8HM.js.map} +1 -1
- package/dist/cdn/chunks/{src-DSomxPI-.js → src-Ddp969zE.js} +6 -6
- package/dist/cdn/chunks/{src-DSomxPI-.js.map → src-Ddp969zE.js.map} +1 -1
- package/dist/cdn/chunks/{styles--UXn88wH.js → styles-CW_gRVVR.js} +893 -891
- package/dist/cdn/chunks/styles-CW_gRVVR.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +51 -51
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-D1zYtCPK.js → check-Cg6Mc2pP.js} +1 -1
- package/dist/{chevron-down-ByXpufZD.js → chevron-down-dClfxKrJ.js} +1 -1
- package/dist/{circle-alert-CjcAORUw.js → circle-alert-Bhzm-fNA.js} +1 -1
- package/dist/{clock-5lWLadUn.js → clock-m7TwQw4b.js} +1 -1
- package/dist/{createLucideIcon-Bh9xOmlW.js → createLucideIcon-FSF4peHQ.js} +2 -2
- package/dist/{de-Cy8FB-Ii.js → de-q9lTCMre.js} +2 -1
- package/dist/{en-Bu-zS_5o.js → en-CR4LItrX.js} +2 -1
- package/dist/{es-CD3ZD6hK.js → es-CEt-lrGd.js} +2 -1
- package/dist/{extensions-B2poxDIo.js → extensions-Cjd-VAII.js} +1 -1
- package/dist/{image-up-Bj_nes3f.js → image-up-CDEgJqwA.js} +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/{info-BhSQCxBV.js → info-BNP8yGsK.js} +1 -1
- package/dist/{list-checks-CgxyUg7i.js → list-checks-jepi4iYr.js} +1 -1
- package/dist/{loader-circle-DFU0HPAa.js → loader-circle-BT38qSm3.js} +1 -1
- package/dist/{message-circle-BEBsCHnk.js → message-circle-BAHcL9S-.js} +1 -1
- package/dist/{pt-BR-CgICL-CQ.js → pt-BR-DvBHY0AA.js} +2 -1
- package/dist/{refresh-cw--lvWGy0_.js → refresh-cw-as5Bmg4X.js} +1 -1
- package/dist/{scan-line-QgyDIgn_.js → scan-line-IAMjPtRw.js} +1 -1
- package/dist/{send-BMyisUim.js → send-DvMay6bt.js} +1 -1
- package/dist/{shield-check-C49M20le.js → shield-check-YYDhGroE.js} +1 -1
- package/dist/{sparkles-DV7Dman6.js → sparkles-CCwQMMMZ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-CPt6RYEc.js → styles-DJfTblY7.js} +764 -762
- package/dist/templatical-editor.js +9 -9
- package/dist/{text-align-start-BMU70uAm.js → text-align-start-BwsA6QzC.js} +11 -11
- package/dist/{trash-2-B6M659Ey.js → trash-2-CRBDolnR.js} +1 -1
- package/dist/{triangle-alert-D1lzx6ds.js → triangle-alert-B2g0ALvq.js} +1 -1
- package/dist/{upload-3A1oZtOR.js → upload-BKg6hDRW.js} +1 -1
- package/dist/{useEditorCore-CSfeEwCj.js → useEditorCore-DnOG2a_b.js} +656 -656
- package/dist/usePopoverPosition-B3Byo68F.js +281 -0
- package/dist/{x-CG_NV3nP.js → x-Ctg_250T.js} +1 -1
- package/package.json +8 -8
- package/dist/cdn/chunks/ColorPicker-Pi-1fR8c.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-B1oniVq1.js +0 -212
- package/dist/cdn/chunks/CountdownToolbar-B1oniVq1.js.map +0 -1
- package/dist/cdn/chunks/MergeTagSuggestion-jesxS7An.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-4cMKKC-V.js.map +0 -1
- package/dist/cdn/chunks/SaveModuleDialog-mr9A4j6G.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-Cqw2jvuc.js.map +0 -1
- package/dist/cdn/chunks/ca-B3eR47lE.js.map +0 -1
- package/dist/cdn/chunks/de-Cy8FB-Ii.js.map +0 -1
- package/dist/cdn/chunks/en-Bu-zS_5o.js.map +0 -1
- package/dist/cdn/chunks/es-CD3ZD6hK.js.map +0 -1
- package/dist/cdn/chunks/features-Dwb5aTLg.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-CgICL-CQ.js.map +0 -1
- package/dist/cdn/chunks/styles--UXn88wH.js.map +0 -1
- package/dist/color-DhoxCSMv.js +0 -259
- package/dist/usePopoverRoot-C1j0D7cc.js +0 -8
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { C as e, Dt as t, N as n, O as r, Ot as i, P as a, _ as o, c as s, d as c, h as l, i as u, l as d, m as f, nt as p, s as m, u as h, x as g, z as _ } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { a as v, c as y } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as w } from "./
|
|
6
|
-
import { t as T } from "./
|
|
7
|
-
import { t as E } from "./
|
|
8
|
-
import { t as D } from "./ColorPicker-
|
|
9
|
-
var O =
|
|
3
|
+
import { n as b } from "./usePopoverPosition-B3Byo68F.js";
|
|
4
|
+
import { I as x, P as S, m as C } from "./keys-BbDgCU6K.js";
|
|
5
|
+
import { t as w } from "./useI18n-eR1yVW0v.js";
|
|
6
|
+
import { t as T } from "./createLucideIcon-FSF4peHQ.js";
|
|
7
|
+
import { t as E } from "./x-Ctg_250T.js";
|
|
8
|
+
import { t as D } from "./ColorPicker-CppJgX_T.js";
|
|
9
|
+
var O = T("bold", [["path", {
|
|
10
10
|
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",
|
|
11
11
|
key: "mg9rjx"
|
|
12
|
-
}]]), k =
|
|
12
|
+
}]]), k = T("italic", [
|
|
13
13
|
["line", {
|
|
14
14
|
x1: "19",
|
|
15
15
|
x2: "10",
|
|
@@ -31,7 +31,7 @@ var O = w("bold", [["path", {
|
|
|
31
31
|
y2: "20",
|
|
32
32
|
key: "uljnxc"
|
|
33
33
|
}]
|
|
34
|
-
]), A =
|
|
34
|
+
]), A = T("link", [["path", {
|
|
35
35
|
d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",
|
|
36
36
|
key: "1cjeqo"
|
|
37
37
|
}], ["path", {
|
|
@@ -67,7 +67,7 @@ var O = w("bold", [["path", {
|
|
|
67
67
|
"update:dialogRef"
|
|
68
68
|
]),
|
|
69
69
|
setup(e, { emit: n }) {
|
|
70
|
-
let o = a(e, "linkUrl"), f = a(e, "linkColor"),
|
|
70
|
+
let o = a(e, "linkUrl"), f = a(e, "linkColor"), T = a(e, "dialogRef"), O = n, k = g(S, null), A = g(x, null), U = b(), W = g(C, null), G = m(() => W?.content.value.settings.linkColor || "#2c85de"), { t: K } = w();
|
|
71
71
|
return (n, a) => p(U) ? (r(), d(u, {
|
|
72
72
|
key: 0,
|
|
73
73
|
to: p(U)
|
|
@@ -78,7 +78,7 @@ var O = w("bold", [["path", {
|
|
|
78
78
|
style: t(p(k)),
|
|
79
79
|
onClick: a[7] ||= y((e) => O("close"), ["self"])
|
|
80
80
|
}, [s("div", {
|
|
81
|
-
ref: (e) =>
|
|
81
|
+
ref: (e) => T.value = e,
|
|
82
82
|
role: "dialog",
|
|
83
83
|
"aria-modal": "true",
|
|
84
84
|
"aria-labelledby": "tpl-link-dialog-title",
|
|
@@ -89,7 +89,7 @@ var O = w("bold", [["path", {
|
|
|
89
89
|
"aria-label": p(K).linkDialog.cancel,
|
|
90
90
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:border-none tpl:bg-transparent tpl:p-0 tpl:text-[var(--tpl-text-muted)] tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
91
91
|
onClick: a[0] ||= (e) => O("close")
|
|
92
|
-
}, [l(p(
|
|
92
|
+
}, [l(p(E), {
|
|
93
93
|
size: 16,
|
|
94
94
|
"stroke-width": 2
|
|
95
95
|
})], 8, P)]),
|
|
@@ -138,7 +138,7 @@ var O = w("bold", [["path", {
|
|
|
138
138
|
},
|
|
139
139
|
emits: ["retry"],
|
|
140
140
|
setup(e, { emit: t }) {
|
|
141
|
-
let a = t, { t: o } =
|
|
141
|
+
let a = t, { t: o } = w();
|
|
142
142
|
return (t, l) => e.isLoading ? (r(), c("div", W, [s("div", G, i(p(o).errors.editorLoading), 1)])) : e.initError ? (r(), c("div", K, [f(i(p(o).errors.editorLoadFailed) + " ", 1), s("button", {
|
|
143
143
|
class: "tpl:ml-1 tpl:cursor-pointer tpl:border-none tpl:bg-transparent tpl:p-0 tpl:underline tpl:text-[var(--tpl-primary)]",
|
|
144
144
|
onClick: l[0] ||= (e) => a("retry")
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, I as r, O as i, Ot as a, R as o, 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, s as g, u as ee, z as _ } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { a as v } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import "./useEditorCore-
|
|
3
|
+
import "./useEditorCore-DnOG2a_b.js";
|
|
4
4
|
import { L as y, j as b, m as x } from "./keys-BbDgCU6K.js";
|
|
5
5
|
import { t as S } from "./useI18n-eR1yVW0v.js";
|
|
6
|
-
import { t as te } from "./loader-circle-
|
|
6
|
+
import { t as te } from "./loader-circle-BT38qSm3.js";
|
|
7
7
|
import { n as ne } from "./useCloudI18n-WbfVWq5k.js";
|
|
8
|
-
import { t as re } from "./
|
|
8
|
+
import { t as re } from "./ToggleSwitch-DUNuUPsZ.js";
|
|
9
|
+
import { t as C } from "./TplModal-BXnx3sLr.js";
|
|
9
10
|
//#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
11
|
+
var w = ["aria-busy"], T = {
|
|
11
12
|
id: "tpl-save-module-title",
|
|
12
13
|
class: "tpl:mb-4 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
13
|
-
},
|
|
14
|
-
"checked",
|
|
15
|
-
"disabled",
|
|
16
|
-
"onChange"
|
|
17
|
-
], M = {
|
|
14
|
+
}, E = { class: "tpl:mb-3" }, D = { class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, O = ["placeholder", "disabled"], k = { class: "tpl:mb-3" }, A = { class: "tpl:mb-1.5 tpl:block tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]" }, j = { class: "tpl:max-h-40 tpl:space-y-1 tpl:overflow-y-auto tpl:rounded-md tpl:border tpl:p-2 tpl:border-[var(--tpl-border)]" }, M = {
|
|
18
15
|
key: 0,
|
|
19
16
|
role: "alert",
|
|
20
17
|
class: "tpl:mb-3 tpl:text-xs tpl:text-[var(--tpl-danger)]"
|
|
@@ -61,7 +58,7 @@ var C = ["aria-busy"], w = {
|
|
|
61
58
|
function ae(e) {
|
|
62
59
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q()), e.key === "Escape" && $();
|
|
63
60
|
}
|
|
64
|
-
return (r, s) => (i(), f(
|
|
61
|
+
return (r, s) => (i(), f(C, {
|
|
65
62
|
visible: c.visible,
|
|
66
63
|
onClose: $,
|
|
67
64
|
onKeydown: ae
|
|
@@ -77,28 +74,32 @@ var C = ["aria-busy"], w = {
|
|
|
77
74
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
78
75
|
}
|
|
79
76
|
}, [
|
|
80
|
-
l("h3",
|
|
81
|
-
l("div",
|
|
77
|
+
l("h3", T, a(m(H).modules.saveAsModule), 1),
|
|
78
|
+
l("div", E, [l("label", D, a(m(H).modules.moduleName), 1), _(l("input", {
|
|
82
79
|
"onUpdate:modelValue": s[0] ||= (e) => G.value = e,
|
|
83
80
|
type: "text",
|
|
84
81
|
placeholder: m(H).modules.moduleNamePlaceholder,
|
|
85
82
|
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:px-3 tpl:py-1 tpl:text-sm tpl:shadow-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]",
|
|
86
83
|
disabled: q.value
|
|
87
|
-
}, null, 8,
|
|
88
|
-
l("div",
|
|
84
|
+
}, null, 8, O), [[v, G.value]])]),
|
|
85
|
+
l("div", k, [l("label", A, a(m(H).modules.selectBlocks), 1), l("div", j, [(i(!0), u(h, null, e(Y.value, (e, n) => (i(), f(re, {
|
|
89
86
|
key: e.id,
|
|
90
|
-
class: "tpl:
|
|
87
|
+
class: "tpl:rounded-sm tpl:px-2 tpl:py-1.5 tpl:text-sm tpl:transition-colors tpl:duration-100",
|
|
91
88
|
style: t({
|
|
92
89
|
color: "var(--tpl-text)",
|
|
93
90
|
backgroundColor: K.value.has(e.id) ? "var(--tpl-primary-light)" : "transparent"
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
checked: K.value.has(e.id),
|
|
98
|
-
class: "tpl:accent-[var(--tpl-primary)]",
|
|
91
|
+
}),
|
|
92
|
+
"model-value": K.value.has(e.id),
|
|
93
|
+
label: X(e, n),
|
|
99
94
|
disabled: q.value,
|
|
100
|
-
|
|
101
|
-
}, null,
|
|
95
|
+
"onUpdate:modelValue": (t) => ie(e.id)
|
|
96
|
+
}, null, 8, [
|
|
97
|
+
"style",
|
|
98
|
+
"model-value",
|
|
99
|
+
"label",
|
|
100
|
+
"disabled",
|
|
101
|
+
"onUpdate:modelValue"
|
|
102
|
+
]))), 128))])]),
|
|
102
103
|
J.value ? (i(), u("p", M, a(J.value), 1)) : ee("", !0),
|
|
103
104
|
l("div", N, [l("button", {
|
|
104
105
|
type: "button",
|
|
@@ -115,7 +116,7 @@ var C = ["aria-busy"], w = {
|
|
|
115
116
|
size: 12,
|
|
116
117
|
"stroke-width": 2
|
|
117
118
|
}), p(" " + a(m(H).modules.saving), 1)])) : (i(), u("span", L, a(m(H).modules.save), 1))], 8, F)])
|
|
118
|
-
], 8,
|
|
119
|
+
], 8, w)]),
|
|
119
120
|
_: 1
|
|
120
121
|
}, 8, ["visible"]));
|
|
121
122
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
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, nt as d, r as f, s as p, u as m } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { c as h, t as g } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import "./useEditorCore-
|
|
4
|
-
import {
|
|
3
|
+
import "./useEditorCore-DnOG2a_b.js";
|
|
4
|
+
import { i as _ } from "./usePopoverPosition-B3Byo68F.js";
|
|
5
5
|
import { t as v } from "./useI18n-eR1yVW0v.js";
|
|
6
|
-
import { t as y } from "./createLucideIcon-
|
|
7
|
-
import { t as b } from "./chevron-down-
|
|
8
|
-
import { t as x } from "./clock-
|
|
9
|
-
import { t as S } from "./loader-circle-
|
|
6
|
+
import { t as y } from "./createLucideIcon-FSF4peHQ.js";
|
|
7
|
+
import { t as b } from "./chevron-down-dClfxKrJ.js";
|
|
8
|
+
import { t as x } from "./clock-m7TwQw4b.js";
|
|
9
|
+
import { t as S } from "./loader-circle-BT38qSm3.js";
|
|
10
10
|
import { n as C } from "./useCloudI18n-WbfVWq5k.js";
|
|
11
11
|
import { t as w } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
12
12
|
var T = y("chevron-left", [["path", {
|
|
@@ -1,16 +1,16 @@
|
|
|
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
3
|
import { L as _, M as re, S as ie, m as v } from "./keys-BbDgCU6K.js";
|
|
4
|
-
import { t as y } from "./createLucideIcon-
|
|
5
|
-
import { t as b } from "./chevron-down-
|
|
6
|
-
import { t as x } from "./circle-alert-
|
|
7
|
-
import { n as S, t as C } from "./refresh-cw
|
|
8
|
-
import { t as ae } from "./info-
|
|
9
|
-
import { t as w } from "./loader-circle-
|
|
10
|
-
import { t as T } from "./shield-check-
|
|
11
|
-
import { t as E } from "./sparkles-
|
|
12
|
-
import { t as oe } from "./triangle-alert-
|
|
13
|
-
import { t as se } from "./x-
|
|
4
|
+
import { t as y } from "./createLucideIcon-FSF4peHQ.js";
|
|
5
|
+
import { t as b } from "./chevron-down-dClfxKrJ.js";
|
|
6
|
+
import { t as x } from "./circle-alert-Bhzm-fNA.js";
|
|
7
|
+
import { n as S, t as C } from "./refresh-cw-as5Bmg4X.js";
|
|
8
|
+
import { t as ae } from "./info-BNP8yGsK.js";
|
|
9
|
+
import { t as w } from "./loader-circle-BT38qSm3.js";
|
|
10
|
+
import { t as T } from "./shield-check-YYDhGroE.js";
|
|
11
|
+
import { t as E } from "./sparkles-CCwQMMMZ.js";
|
|
12
|
+
import { t as oe } from "./triangle-alert-B2g0ALvq.js";
|
|
13
|
+
import { t as se } from "./x-Ctg_250T.js";
|
|
14
14
|
import { t as ce } from "./LoadingTrack-KIcREPlS.js";
|
|
15
15
|
import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
16
|
import { n as le } from "./useCloudI18n-WbfVWq5k.js";
|
|
@@ -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-
|
|
4
|
-
import { t as v } from "./loader-circle-
|
|
3
|
+
import "./useEditorCore-DnOG2a_b.js";
|
|
4
|
+
import { t as v } from "./loader-circle-BT38qSm3.js";
|
|
5
5
|
import { n as y } from "./useCloudI18n-WbfVWq5k.js";
|
|
6
|
-
import { t as b } from "./TplModal-
|
|
6
|
+
import { t as b } from "./TplModal-BXnx3sLr.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,11 +1,11 @@
|
|
|
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 {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as S } from "./
|
|
8
|
-
import { t as C } from "./
|
|
2
|
+
import { S as ee, x as te } from "./useEditorCore-DnOG2a_b.js";
|
|
3
|
+
import { n as ne } from "./usePopoverPosition-B3Byo68F.js";
|
|
4
|
+
import { I as _, P as v, w as y, x as b } from "./keys-BbDgCU6K.js";
|
|
5
|
+
import { t as re } from "./useI18n-eR1yVW0v.js";
|
|
6
|
+
import { a as ie, i as ae, n as oe, r as se, t as ce } from "./RichTextEditorContent-DBaCrvH0.js";
|
|
7
|
+
import { n as x, t as S } from "./scan-line-IAMjPtRw.js";
|
|
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
|
|
10
10
|
var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme", "aria-label"], E = ["aria-label", "title"], D = ["aria-label", "title"], O = ["aria-label", "title"], k = {
|
|
11
11
|
key: 0,
|
|
@@ -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(v, null), R = g(_, null), z = ne(), B = g(y, null), le = g(b, 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-BReUTadj.js").then((e) => e.r),
|
|
35
35
|
import("./dist-i_Z7t67A.js"),
|
|
36
36
|
import("./dist-CHLoeloJ.js"),
|
|
37
|
-
import("./extensions-
|
|
37
|
+
import("./extensions-Cjd-VAII.js")
|
|
38
38
|
]);
|
|
39
39
|
return {
|
|
40
40
|
TiptapEditor: a,
|
|
@@ -81,7 +81,7 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
81
81
|
"data-tpl-theme": f(R),
|
|
82
82
|
role: "toolbar",
|
|
83
83
|
"aria-label": f(H).titleEditor.toolbar,
|
|
84
|
-
class: "tpl tpl-text-toolbar tpl:
|
|
84
|
+
class: "tpl tpl-text-toolbar tpl:absolute tpl:z-popover tpl:flex tpl:items-center tpl:gap-1 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:shadow-lg",
|
|
85
85
|
style: e({
|
|
86
86
|
...f(L),
|
|
87
87
|
top: `${a.toolbarPosition.top}px`,
|
|
@@ -95,7 +95,7 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
95
95
|
"aria-label": f(H).titleEditor.bold,
|
|
96
96
|
title: f(H).titleEditor.bold,
|
|
97
97
|
onClick: g[0] ||= (e) => f(U)?.chain().focus().toggleBold().run()
|
|
98
|
-
}, [c(f(
|
|
98
|
+
}, [c(f(ie), {
|
|
99
99
|
size: 16,
|
|
100
100
|
"stroke-width": 2.5
|
|
101
101
|
})], 10, E),
|
|
@@ -105,7 +105,7 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
105
105
|
"aria-label": f(H).titleEditor.italic,
|
|
106
106
|
title: f(H).titleEditor.italic,
|
|
107
107
|
onClick: g[1] ||= (e) => f(U)?.chain().focus().toggleItalic().run()
|
|
108
|
-
}, [c(f(
|
|
108
|
+
}, [c(f(ae), {
|
|
109
109
|
size: 16,
|
|
110
110
|
"stroke-width": 2
|
|
111
111
|
})], 10, D),
|
|
@@ -119,7 +119,7 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
119
119
|
"aria-label": f(H).titleEditor.addLink,
|
|
120
120
|
title: f(H).titleEditor.addLink,
|
|
121
121
|
onClick: g[2] ||= (...e) => f(Z) && f(Z)(...e)
|
|
122
|
-
}, [c(f(
|
|
122
|
+
}, [c(f(se), {
|
|
123
123
|
size: 16,
|
|
124
124
|
"stroke-width": 2
|
|
125
125
|
})], 10, O),
|
|
@@ -131,7 +131,7 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
131
131
|
"aria-label": f(H).mergeTag.insert,
|
|
132
132
|
title: f(H).mergeTag.insert,
|
|
133
133
|
onClick: g[3] ||= (...e) => f(Q) && f(Q)(...e)
|
|
134
|
-
}, [c(f(
|
|
134
|
+
}, [c(f(S), {
|
|
135
135
|
size: 16,
|
|
136
136
|
"stroke-width": 2
|
|
137
137
|
}), d(" " + r(f(H).mergeTag.insertShort), 1)], 8, A)) : h("", !0),
|
|
@@ -144,16 +144,16 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
144
144
|
title: f(H).logicTag.insert,
|
|
145
145
|
"data-testid": "insert-logic-button",
|
|
146
146
|
onClick: g[4] ||= (...e) => f($) && f($)(...e)
|
|
147
|
-
}, [c(f(
|
|
147
|
+
}, [c(f(x), {
|
|
148
148
|
size: 16,
|
|
149
149
|
"stroke-width": 2
|
|
150
150
|
}), d(" " + r(f(H).logicTag.insertShort), 1)], 8, M)) : h("", !0)
|
|
151
|
-
], 64)) : (n(), s("div", N, [c(f(
|
|
151
|
+
], 64)) : (n(), s("div", N, [c(f(C), {
|
|
152
152
|
class: "tpl-spinner",
|
|
153
153
|
size: 14,
|
|
154
154
|
"stroke-width": 2
|
|
155
155
|
}), d(" " + r(f(H).errors.editorLoading), 1)]))], 12, T)], 8, ["to"])) : h("", !0),
|
|
156
|
-
c(
|
|
156
|
+
c(ce, {
|
|
157
157
|
editor: f(U),
|
|
158
158
|
"editor-content": f(W),
|
|
159
159
|
"is-loading": f(G),
|
|
@@ -166,7 +166,7 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
166
166
|
"init-error",
|
|
167
167
|
"onRetry"
|
|
168
168
|
]),
|
|
169
|
-
c(
|
|
169
|
+
c(oe, {
|
|
170
170
|
visible: f(fe),
|
|
171
171
|
"is-editing-link": f(U)?.isActive("link") ?? !1,
|
|
172
172
|
"dialog-ref": f(J),
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Et as e, O as t, Ot as n, _ as r, c as i, d as a, j as o, m as s, u as c } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
+
//#region src/components/ToggleSwitch.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var l = { key: 0 }, u = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "tpl:text-[var(--tpl-danger)]"
|
|
6
|
+
}, d = [
|
|
7
|
+
"aria-checked",
|
|
8
|
+
"aria-label",
|
|
9
|
+
"disabled"
|
|
10
|
+
], f = /* @__PURE__ */ r({
|
|
11
|
+
__name: "ToggleSwitch",
|
|
12
|
+
props: {
|
|
13
|
+
modelValue: { type: Boolean },
|
|
14
|
+
label: {},
|
|
15
|
+
disabled: { type: Boolean },
|
|
16
|
+
required: { type: Boolean }
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(r, { emit: f }) {
|
|
20
|
+
let p = f;
|
|
21
|
+
return (f, m) => (t(), a("label", { class: e(["tpl:flex tpl:items-center tpl:justify-between tpl:gap-2", r.disabled ? "tpl:cursor-not-allowed" : "tpl:cursor-pointer"]) }, [f.$slots.default || r.label || r.required ? (t(), a("span", l, [o(f.$slots, "default", {}, () => [s(n(r.label), 1)]), r.required ? (t(), a("span", u, " *")) : c("", !0)])) : c("", !0), i("button", {
|
|
22
|
+
type: "button",
|
|
23
|
+
role: "switch",
|
|
24
|
+
"aria-checked": r.modelValue,
|
|
25
|
+
"aria-label": r.label,
|
|
26
|
+
disabled: r.disabled,
|
|
27
|
+
class: e([
|
|
28
|
+
"tpl:relative tpl:inline-flex tpl:h-5 tpl:w-9 tpl:shrink-0 tpl:rounded-full tpl:border-2 tpl:border-transparent tpl:transition-colors tpl:duration-200",
|
|
29
|
+
r.modelValue ? "tpl:bg-[var(--tpl-primary)]" : "tpl:bg-[var(--tpl-border)]",
|
|
30
|
+
r.disabled ? "tpl:cursor-not-allowed tpl:opacity-60" : "tpl:cursor-pointer"
|
|
31
|
+
]),
|
|
32
|
+
onClick: m[0] ||= (e) => !r.disabled && p("update:modelValue", !r.modelValue)
|
|
33
|
+
}, [i("span", { class: e(["tpl:pointer-events-none tpl:inline-block tpl:size-4 tpl:rounded-full tpl:bg-[var(--tpl-bg)] tpl:shadow tpl:transition-transform tpl:duration-200", r.modelValue ? "tpl:translate-x-4" : "tpl:translate-x-0"]) }, null, 2)], 10, d)], 2));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { f as t };
|
|
@@ -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 {
|
|
5
|
-
import {
|
|
3
|
+
import { D as g } from "./useEditorCore-DnOG2a_b.js";
|
|
4
|
+
import { n as _ } from "./usePopoverPosition-B3Byo68F.js";
|
|
5
|
+
import { I as v } from "./keys-BbDgCU6K.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",
|
|
@@ -11,7 +11,7 @@ var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
|
|
|
11
11
|
setup(r, { emit: b }) {
|
|
12
12
|
let x = r, S = b, C = n(null);
|
|
13
13
|
g(C, d(() => x.visible));
|
|
14
|
-
let w = p(
|
|
14
|
+
let w = p(v), T = _();
|
|
15
15
|
function E(e) {
|
|
16
16
|
e.key === "Escape" && S("close"), S("keydown", e);
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-
|
|
2
|
-
import { t as a } from "./createLucideIcon-
|
|
1
|
+
import { A as e, F as t, M as n, j as r, k as i } from "./useEditorCore-DnOG2a_b.js";
|
|
2
|
+
import { t as a } from "./createLucideIcon-FSF4peHQ.js";
|
|
3
3
|
var o = a("columns-3", [
|
|
4
4
|
["rect", {
|
|
5
5
|
width: "18",
|
package/dist/bundle-stats.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.16.
|
|
3
|
-
"initialGzipBytes":
|
|
4
|
-
"initialRawBytes":
|
|
2
|
+
"version": "0.16.5",
|
|
3
|
+
"initialGzipBytes": 282785,
|
|
4
|
+
"initialRawBytes": 1015111,
|
|
5
5
|
"initialFileCount": 42,
|
|
6
|
-
"lazyGzipBytes":
|
|
7
|
-
"lazyRawBytes":
|
|
6
|
+
"lazyGzipBytes": 181398,
|
|
7
|
+
"lazyRawBytes": 595924,
|
|
8
8
|
"lazyFileCount": 46,
|
|
9
|
-
"generatedAt": "2026-07-
|
|
9
|
+
"generatedAt": "2026-07-20T20:11:17.315Z"
|
|
10
10
|
}
|
|
@@ -103,7 +103,8 @@ var e = {
|
|
|
103
103
|
ratio12: "Proporció 1:2",
|
|
104
104
|
ratio21: "Proporció 2:1",
|
|
105
105
|
borderRadius: "Radi de la vora",
|
|
106
|
-
wrapperEnable: "Afegeix un contenidor"
|
|
106
|
+
wrapperEnable: "Afegeix un contenidor",
|
|
107
|
+
stackOnMobile: "Apila en mòbil"
|
|
107
108
|
},
|
|
108
109
|
linkDialog: {
|
|
109
110
|
editLink: "Edita l'enllaç",
|
|
@@ -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 {
|
|
2
|
+
import { Et as d, Vt as f, ct as p, fn as m, gt as h, ht as g, ot as _ } from "./features-BSpDuFFR.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,12 +7,12 @@ 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__*/ p(/* @__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: p }) {
|
|
15
|
+
let C = p, { t: w } = _(), T = m(f, "AiFeatureMenu"), E = {
|
|
16
16
|
"ai-chat": "chat",
|
|
17
17
|
"design-reference": "designToTemplate",
|
|
18
18
|
scoring: "scoring"
|
|
@@ -23,7 +23,7 @@ var v = {
|
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
key: "design-reference",
|
|
26
|
-
icon:
|
|
26
|
+
icon: d
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
key: "scoring",
|
|
@@ -56,4 +56,4 @@ var v = {
|
|
|
56
56
|
//#endregion
|
|
57
57
|
export { C as default };
|
|
58
58
|
|
|
59
|
-
//# sourceMappingURL=AiFeatureMenu-
|
|
59
|
+
//# sourceMappingURL=AiFeatureMenu-CuIg4yrB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiFeatureMenu-
|
|
1
|
+
{"version":3,"file":"AiFeatureMenu-CuIg4yrB.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,11 +1,11 @@
|
|
|
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 {
|
|
2
|
+
import { Bt as l, Mt as u, cn as d, ft as f } from "./features-BSpDuFFR.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",
|
|
6
6
|
props: { blockId: {} },
|
|
7
7
|
setup(c) {
|
|
8
|
-
let m = c, { t: h } =
|
|
8
|
+
let m = c, { t: h } = l(), g = t(d, 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)]"]),
|
|
@@ -18,7 +18,7 @@ var p = ["title", "aria-label"], m = /* @__PURE__ */ c({
|
|
|
18
18
|
"stroke-width": 2.25,
|
|
19
19
|
fill: "currentColor",
|
|
20
20
|
stroke: "var(--tpl-bg)"
|
|
21
|
-
})) : (e(), o(a(
|
|
21
|
+
})) : (e(), o(a(f), {
|
|
22
22
|
key: 1,
|
|
23
23
|
size: 14,
|
|
24
24
|
"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=BlockIssueBadge-
|
|
33
|
+
//# sourceMappingURL=BlockIssueBadge-BHEl_Hs7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockIssueBadge-
|
|
1
|
+
{"version":3,"file":"BlockIssueBadge-BHEl_Hs7.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"}
|