@templatical/editor 0.16.0 → 0.16.2
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-B-k_Sdas.js → AiChatSidebar-EaPCeDXr.js} +14 -14
- package/dist/{AiFeatureMenu-B5_IKOlI.js → AiFeatureMenu-DfTYyExg.js} +7 -7
- package/dist/{BlockIssueBadge-B3xVgMTh.js → BlockIssueBadge-CZYgn-qg.js} +5 -5
- package/dist/{CloudEditor-BUJk4vXS.js → CloudEditor-BQyZ_nFg.js} +24 -24
- package/dist/{CollaboratorBar-BAUQfXUk.js → CollaboratorBar-DeP7K-zk.js} +4 -4
- package/dist/ColorPicker-CXAbjTaG.js +446 -0
- package/dist/{CommentsSidebar-D_tSGvTX.js → CommentsSidebar-DDKiFsSq.js} +13 -13
- package/dist/{CountdownBlock-apiYUhkQ.js → CountdownBlock-173fiO5Z.js} +3 -3
- package/dist/{CountdownToolbar-CS0axcjz.js → CountdownToolbar-nY9H0BKd.js} +4 -4
- package/dist/{DesignReferenceSidebar-BYQcuaL4.js → DesignReferenceSidebar-D6TfC176.js} +11 -11
- package/dist/{IssuesPanel-CR1MPaDE.js → IssuesPanel-CQQipLQP.js} +8 -8
- package/dist/{LoadingTrack-DsecR8Rw.js → LoadingTrack-KIcREPlS.js} +1 -1
- package/dist/{MergeTagSuggestion-DLVykS0K.js → MergeTagSuggestion-DrT3LiZ4.js} +4 -4
- package/dist/{ModuleBrowserModal-BzDuagt5.js → ModuleBrowserModal-CkeYw1e3.js} +11 -11
- package/dist/{ModulePreviewCanvas-CK11BX4i.js → ModulePreviewCanvas-BIMFyYaa.js} +3 -3
- package/dist/NumberWithSuffix-BoZyUoNz.js +89 -0
- package/dist/{ParagraphEditor-fg9Ljy_Z.js → ParagraphEditor-DGsTFMxg.js} +232 -207
- package/dist/{RichTextEditorContent-BqLHIZY7.js → RichTextEditorContent-BB_n8vgB.js} +56 -45
- package/dist/{SaveModuleDialog-D27ufH5q.js → SaveModuleDialog-Cypt_qOB.js} +8 -8
- package/dist/{SnapshotHistory-Cymqkk9_.js → SnapshotHistory-DQTH8TCS.js} +10 -10
- package/dist/{TemplateScoringPanel-CZ62rGHz.js → TemplateScoringPanel-C8VOC6gn.js} +15 -15
- package/dist/{TestEmailModal-BIvdHidU.js → TestEmailModal-DqxrL-U9.js} +6 -6
- package/dist/{TitleEditor-D0a4NdOn.js → TitleEditor-DoGgnrcb.js} +38 -35
- package/dist/{TplModal-dYXt3vyd.js → TplModal-Ca-29YDD.js} +5 -5
- package/dist/{blockTypeIcons-JSBvsa0M.js → blockTypeIcons-DVJXg5si.js} +7 -7
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-C58VqAgo.js → ca-B3eR47lE.js} +2 -1
- package/dist/cdn/chunks/{AiFeatureMenu-B6V5CzCc.js → AiFeatureMenu-roPglhox.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-B6V5CzCc.js.map → AiFeatureMenu-roPglhox.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-C6Xpl1KK.js → BlockIssueBadge-DW_Tt7Wg.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-C6Xpl1KK.js.map → BlockIssueBadge-DW_Tt7Wg.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-C-npgK-l.js → CloudEditor-CX6y1k3C.js} +161 -161
- package/dist/cdn/chunks/{CloudEditor-C-npgK-l.js.map → CloudEditor-CX6y1k3C.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BSKXgw9D.js → CollaboratorBar-Dyrab63H.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-BSKXgw9D.js.map → CollaboratorBar-Dyrab63H.js.map} +1 -1
- package/dist/cdn/chunks/ColorPicker-BggAWrc9.js +443 -0
- package/dist/cdn/chunks/ColorPicker-BggAWrc9.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-Y-nycxv2.js → CountdownBlock-Bul4tczj.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-Y-nycxv2.js.map → CountdownBlock-Bul4tczj.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-9LqnhGyh.js → CountdownToolbar-DYvATR0J.js} +5 -5
- package/dist/cdn/chunks/{CountdownToolbar-9LqnhGyh.js.map → CountdownToolbar-DYvATR0J.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BYfGf1rC.js → IssuesPanel-BhHU-hq3.js} +8 -8
- package/dist/cdn/chunks/{IssuesPanel-BYfGf1rC.js.map → IssuesPanel-BhHU-hq3.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-DQzKlLH7.js → MergeTagSuggestion-jesxS7An.js} +3 -3
- package/dist/cdn/chunks/{MergeTagSuggestion-DQzKlLH7.js.map → MergeTagSuggestion-jesxS7An.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-EzKgW5TG.js → ModuleBrowserModal-BGd5Ryyx.js} +9 -9
- package/dist/cdn/chunks/{ModuleBrowserModal-EzKgW5TG.js.map → ModuleBrowserModal-BGd5Ryyx.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DxbSzXm8.js → ModulePreviewCanvas-Hx6SCCjB.js} +11 -11
- package/dist/cdn/chunks/{ModulePreviewCanvas-DxbSzXm8.js.map → ModulePreviewCanvas-Hx6SCCjB.js.map} +1 -1
- package/dist/cdn/chunks/NumberWithSuffix-BImuhc9K.js +91 -0
- package/dist/cdn/chunks/NumberWithSuffix-BImuhc9K.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-CJNgRMhw.js → ParagraphEditor-K2vENidm.js} +209 -184
- package/dist/cdn/chunks/ParagraphEditor-K2vENidm.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-Cebdzomd.js → RichTextEditorContent-B_w3u5lN.js} +53 -42
- package/dist/cdn/chunks/RichTextEditorContent-B_w3u5lN.js.map +1 -0
- package/dist/cdn/chunks/{SaveModuleDialog-Cufwqoln.js → SaveModuleDialog-Cw-182CB.js} +6 -6
- package/dist/cdn/chunks/{SaveModuleDialog-Cufwqoln.js.map → SaveModuleDialog-Cw-182CB.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-7BhmKL-_.js → TitleEditor-CUKlo_Zj.js} +46 -43
- package/dist/cdn/chunks/TitleEditor-CUKlo_Zj.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-d4Sb61H-.js → blockTypeIcons-Cx1FAqL6.js} +5 -5
- package/dist/cdn/chunks/{blockTypeIcons-d4Sb61H-.js.map → blockTypeIcons-Cx1FAqL6.js.map} +1 -1
- package/dist/cdn/chunks/{ca-C58VqAgo.js → ca-B3eR47lE.js} +3 -2
- package/dist/cdn/chunks/ca-B3eR47lE.js.map +1 -0
- package/dist/cdn/chunks/{de-C0sMmfic.js → de-Cy8FB-Ii.js} +3 -2
- package/dist/cdn/chunks/de-Cy8FB-Ii.js.map +1 -0
- package/dist/cdn/chunks/{draggable-kG-D5Xsm.js → draggable-D840DIZB.js} +52 -39
- package/dist/cdn/chunks/draggable-D840DIZB.js.map +1 -0
- package/dist/cdn/chunks/{en-CsGBTBOf.js → en-Bu-zS_5o.js} +3 -2
- package/dist/cdn/chunks/en-Bu-zS_5o.js.map +1 -0
- package/dist/cdn/chunks/{es-DgjbcPIu.js → es-CD3ZD6hK.js} +3 -2
- package/dist/cdn/chunks/es-CD3ZD6hK.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BeAsz_mp.js → extensions-DSxG2wYf.js} +28 -28
- package/dist/cdn/chunks/{extensions-BeAsz_mp.js.map → extensions-DSxG2wYf.js.map} +1 -1
- package/dist/cdn/chunks/{features-DO71hPJr.js → features-C-cjT_8L.js} +589 -553
- package/dist/cdn/chunks/features-C-cjT_8L.js.map +1 -0
- package/dist/cdn/chunks/{icons-BfP1cRNb.js → icons-ay0_fN-T.js} +2 -2
- package/dist/cdn/chunks/{icons-BfP1cRNb.js.map → icons-ay0_fN-T.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-0S3e0i8G.js → media-library-CkmqPdO4.js} +104 -104
- package/dist/cdn/chunks/{media-library-0S3e0i8G.js.map → media-library-CkmqPdO4.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-DXaP5lMJ.js → pt-BR-CgICL-CQ.js} +3 -2
- package/dist/cdn/chunks/pt-BR-CgICL-CQ.js.map +1 -0
- package/dist/cdn/chunks/quality-CDNrMw2A.js +2180 -0
- package/dist/cdn/chunks/{quality-B6V4R_df.js.map → quality-CDNrMw2A.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-Dhn1J4H4.js → renderer-JQ91A09w.js} +18 -18
- package/dist/cdn/chunks/renderer-JQ91A09w.js.map +1 -0
- package/dist/cdn/chunks/{src-DoKjbqU2.js → src-Cehu7Hqx.js} +5 -5
- package/dist/cdn/chunks/{src-DoKjbqU2.js.map → src-Cehu7Hqx.js.map} +1 -1
- package/dist/cdn/chunks/{styles-CSqligXJ.js → styles-DBjy3lz9.js} +820 -820
- package/dist/cdn/chunks/{styles-CSqligXJ.js.map → styles-DBjy3lz9.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-DVHUKGZf.js → tiptap-zpXk5mN4.js} +1131 -1134
- package/dist/cdn/chunks/{tiptap-DVHUKGZf.js.map → tiptap-zpXk5mN4.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +75 -75
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-rl7ok6uJ.js → check-D1zYtCPK.js} +1 -1
- package/dist/{chevron-down-BKe__NOD.js → chevron-down-ByXpufZD.js} +1 -1
- package/dist/{circle-alert-C8xmpMsK.js → circle-alert-CjcAORUw.js} +1 -1
- package/dist/{clock-BW4JuDCN.js → clock-5lWLadUn.js} +1 -1
- package/dist/{cloud-CFpaFRCV.js → cloud-BogxOeZu.js} +1 -1
- package/dist/{createLucideIcon-Dx-EjR9r.js → createLucideIcon-Bh9xOmlW.js} +3 -3
- package/dist/{de-C0sMmfic.js → de-Cy8FB-Ii.js} +2 -1
- package/dist/dist-BE9m_i60.js +5 -0
- package/dist/{dist-C5-0GG3g.js → dist-BPPeDw62.js} +2 -2
- package/dist/{dist-DEcNpSJi.js → dist-BReUTadj.js} +4 -4
- package/dist/dist-BXR1aBJV.js +5 -0
- package/dist/{dist-r_2rJCMg.js → dist-Bm07Z3Es.js} +2 -2
- package/dist/{dist-BEWiuOMi.js → dist-CFOQvhSC.js} +3 -3
- package/dist/{dist-Ci5GHd96.js → dist-CHLoeloJ.js} +2 -2
- package/dist/{dist-0VHbLR6h.js → dist-D1WmF8BF.js} +2 -2
- package/dist/{dist-DrlHbc8g.js → dist-D9g4CSnm.js} +1 -1
- package/dist/{dist-Drm7i-yw.js → dist-DGEaAAIb.js} +2 -2
- package/dist/{dist-CTT6WYJ6.js → dist-DYv_Pttj.js} +2 -2
- package/dist/{dist-Dsoq4knU.js → dist-DcKlLQ8d.js} +2 -2
- package/dist/{dist-D_-AsMP4.js → dist-DhY2di4U.js} +2 -2
- package/dist/{dist-FVawx7ou.js → dist-i_Z7t67A.js} +260 -263
- package/dist/{en-CsGBTBOf.js → en-Bu-zS_5o.js} +2 -1
- package/dist/{es-DgjbcPIu.js → es-CD3ZD6hK.js} +2 -1
- package/dist/{extensions-3jhgwhV-.js → extensions-B2poxDIo.js} +7 -7
- package/dist/{image-up-BwBCmQ4P.js → image-up-Bj_nes3f.js} +1 -1
- package/dist/{info-TCn7uWR5.js → info-BhSQCxBV.js} +1 -1
- package/dist/{keys-Cv8-8GsD.js → keys-BbDgCU6K.js} +1 -1
- package/dist/{list-checks-CSrOWNgq.js → list-checks-CgxyUg7i.js} +1 -1
- package/dist/{loader-circle-BLmicnPG.js → loader-circle-DFU0HPAa.js} +1 -1
- package/dist/{message-circle-C9hHMQCI.js → message-circle-BEBsCHnk.js} +1 -1
- package/dist/{pt-BR-DXaP5lMJ.js → pt-BR-CgICL-CQ.js} +2 -1
- package/dist/{refresh-cw-D1JQ1LNa.js → refresh-cw--lvWGy0_.js} +1 -1
- package/dist/{runtime-dom.esm-bundler-BzuoCyNp.js → runtime-dom.esm-bundler-GdMI8WqG.js} +6 -7
- package/dist/{scan-line-DgijVq9y.js → scan-line-QgyDIgn_.js} +1 -1
- package/dist/{send-DjPdq69F.js → send-BMyisUim.js} +1 -1
- package/dist/{shield-check-Bqluu8FS.js → shield-check-C49M20le.js} +1 -1
- package/dist/{sparkles-M4azPVSP.js → sparkles-DV7Dman6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-5sGbDIA2.js → styles-mvx3k1hf.js} +78 -78
- package/dist/templatical-editor.js +62 -62
- package/dist/{text-align-start-CMya5pCQ.js → text-align-start-BMU70uAm.js} +1 -1
- package/dist/{trash-2-C-81rkLS.js → trash-2-B6M659Ey.js} +1 -1
- package/dist/{triangle-alert-BuRWnynk.js → triangle-alert-D1lzx6ds.js} +1 -1
- package/dist/{upload-CWBIoLd4.js → upload-3A1oZtOR.js} +1 -1
- package/dist/{useAliveFlag-CECL_OUb.js → useAliveFlag-C43EhZFY.js} +1 -1
- package/dist/{useCloudI18n-AKCy98qD.js → useCloudI18n-WbfVWq5k.js} +2 -2
- package/dist/{useEditorCore-AQ0BN1ug.js → useEditorCore-DtZkR7Vk.js} +616 -580
- package/dist/{useI18n-C-TDeJBt.js → useI18n-eR1yVW0v.js} +2 -2
- package/dist/{useMergeTag-D0aZw7Q5.js → useMergeTag-C3GfSktg.js} +2 -2
- package/dist/usePopoverRoot-C1j0D7cc.js +8 -0
- package/dist/{vue.runtime.esm-bundler-l0XAqiyv.js → vue.runtime.esm-bundler-B0xoGkDv.js} +84 -70
- package/dist/{x-CQSvXnGR.js → x-CG_NV3nP.js} +1 -1
- package/package.json +23 -23
- package/dist/NumberWithSuffix-CrA6quxx.js +0 -445
- package/dist/cdn/chunks/NumberWithSuffix-Conp_Pki.js +0 -444
- package/dist/cdn/chunks/NumberWithSuffix-Conp_Pki.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-CJNgRMhw.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-Cebdzomd.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-7BhmKL-_.js.map +0 -1
- package/dist/cdn/chunks/ca-C58VqAgo.js.map +0 -1
- package/dist/cdn/chunks/de-C0sMmfic.js.map +0 -1
- package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +0 -1
- package/dist/cdn/chunks/en-CsGBTBOf.js.map +0 -1
- package/dist/cdn/chunks/es-DgjbcPIu.js.map +0 -1
- package/dist/cdn/chunks/features-DO71hPJr.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-DXaP5lMJ.js.map +0 -1
- package/dist/cdn/chunks/quality-B6V4R_df.js +0 -2180
- package/dist/cdn/chunks/renderer-Dhn1J4H4.js.map +0 -1
- package/dist/cdn/chunks/styleConstants-lGobwiLH.js +0 -57
- package/dist/cdn/chunks/styleConstants-lGobwiLH.js.map +0 -1
- package/dist/dist-DR-6IpV6.js +0 -5
- package/dist/dist-DW8b0TO6.js +0 -5
- package/dist/styleConstants-lGobwiLH.js +0 -55
- package/dist/usePopoverRoot-DKUDnr55.js +0 -8
|
@@ -1,14 +1,15 @@
|
|
|
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,
|
|
2
|
-
import { a as
|
|
3
|
-
import { I as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
|
|
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
|
+
import { a as v, c as y } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
+
import { I as b, P as x, m as S } from "./keys-BbDgCU6K.js";
|
|
4
|
+
import { t as C } from "./useI18n-eR1yVW0v.js";
|
|
5
|
+
import { t as w } from "./createLucideIcon-Bh9xOmlW.js";
|
|
6
|
+
import { t as T } from "./x-CG_NV3nP.js";
|
|
7
|
+
import { t as E } from "./usePopoverRoot-C1j0D7cc.js";
|
|
8
|
+
import { t as D } from "./ColorPicker-CXAbjTaG.js";
|
|
9
|
+
var O = w("bold", [["path", {
|
|
9
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",
|
|
10
11
|
key: "mg9rjx"
|
|
11
|
-
}]]),
|
|
12
|
+
}]]), k = w("italic", [
|
|
12
13
|
["line", {
|
|
13
14
|
x1: "19",
|
|
14
15
|
x2: "10",
|
|
@@ -30,19 +31,19 @@ var T = S("bold", [["path", {
|
|
|
30
31
|
y2: "20",
|
|
31
32
|
key: "uljnxc"
|
|
32
33
|
}]
|
|
33
|
-
]),
|
|
34
|
+
]), A = w("link", [["path", {
|
|
34
35
|
d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",
|
|
35
36
|
key: "1cjeqo"
|
|
36
37
|
}], ["path", {
|
|
37
38
|
d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",
|
|
38
39
|
key: "19qd67"
|
|
39
|
-
}]]),
|
|
40
|
+
}]]), j = ["data-tpl-theme"], M = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:border-[var(--tpl-border)] tpl:px-5 tpl:py-4" }, N = {
|
|
40
41
|
id: "tpl-link-dialog-title",
|
|
41
42
|
class: "tpl:m-0 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
42
|
-
},
|
|
43
|
+
}, P = ["aria-label"], F = { class: "tpl:p-5" }, I = { class: "tpl:mb-4 tpl:last:mb-0" }, L = {
|
|
43
44
|
for: "tpl-link-dialog-url",
|
|
44
45
|
class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase"
|
|
45
|
-
},
|
|
46
|
+
}, R = ["placeholder"], z = { class: "tpl:mb-4 tpl:last:mb-0" }, B = { class: "tpl:mb-1.5 tpl:block tpl:text-xs tpl:font-medium tpl:tracking-wide tpl:text-[var(--tpl-text-muted)] tpl:uppercase" }, V = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-5 tpl:py-4" }, H = { class: "tpl:ml-auto tpl:flex tpl:gap-2" }, U = /* @__PURE__ */ o({
|
|
46
47
|
__name: "RichTextLinkDialog",
|
|
47
48
|
props: /*@__PURE__*/ e({
|
|
48
49
|
visible: { type: Boolean },
|
|
@@ -50,6 +51,8 @@ var T = S("bold", [["path", {
|
|
|
50
51
|
}, {
|
|
51
52
|
linkUrl: { required: !0 },
|
|
52
53
|
linkUrlModifiers: {},
|
|
54
|
+
linkColor: { default: "" },
|
|
55
|
+
linkColorModifiers: {},
|
|
53
56
|
dialogRef: { required: !0 },
|
|
54
57
|
dialogRefModifiers: {}
|
|
55
58
|
}),
|
|
@@ -58,66 +61,74 @@ var T = S("bold", [["path", {
|
|
|
58
61
|
"insert",
|
|
59
62
|
"remove",
|
|
60
63
|
"keydown"
|
|
61
|
-
], [
|
|
64
|
+
], [
|
|
65
|
+
"update:linkUrl",
|
|
66
|
+
"update:linkColor",
|
|
67
|
+
"update:dialogRef"
|
|
68
|
+
]),
|
|
62
69
|
setup(e, { emit: n }) {
|
|
63
|
-
let o = a(e, "linkUrl"), f = a(e, "dialogRef"),
|
|
64
|
-
return (n, a) => p(
|
|
70
|
+
let o = a(e, "linkUrl"), f = a(e, "linkColor"), w = a(e, "dialogRef"), O = n, k = g(x, null), A = g(b, null), U = E(), W = g(S, null), G = m(() => W?.content.value.settings.linkColor || "#2c85de"), { t: K } = C();
|
|
71
|
+
return (n, a) => p(U) ? (r(), d(u, {
|
|
65
72
|
key: 0,
|
|
66
|
-
to: p(
|
|
73
|
+
to: p(U)
|
|
67
74
|
}, [e.visible ? (r(), c("div", {
|
|
68
75
|
key: 0,
|
|
69
|
-
"data-tpl-theme": p(
|
|
76
|
+
"data-tpl-theme": p(A),
|
|
70
77
|
class: "tpl tpl-link-dialog tpl:fixed tpl:inset-0 tpl:z-modal tpl:flex tpl:items-center tpl:justify-center",
|
|
71
|
-
style: t(p(
|
|
72
|
-
onClick: a[
|
|
78
|
+
style: t(p(k)),
|
|
79
|
+
onClick: a[7] ||= y((e) => O("close"), ["self"])
|
|
73
80
|
}, [s("div", {
|
|
74
|
-
ref: (e) =>
|
|
81
|
+
ref: (e) => w.value = e,
|
|
75
82
|
role: "dialog",
|
|
76
83
|
"aria-modal": "true",
|
|
77
84
|
"aria-labelledby": "tpl-link-dialog-title",
|
|
78
85
|
class: "tpl:w-[400px] tpl:overflow-hidden tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-lg"
|
|
79
86
|
}, [
|
|
80
|
-
s("div",
|
|
87
|
+
s("div", M, [s("h4", N, i(e.isEditingLink ? p(K).linkDialog.editLink : p(K).linkDialog.insertLink), 1), s("button", {
|
|
81
88
|
type: "button",
|
|
82
|
-
"aria-label": p(
|
|
89
|
+
"aria-label": p(K).linkDialog.cancel,
|
|
83
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)]",
|
|
84
|
-
onClick: a[0] ||= (e) =>
|
|
85
|
-
}, [l(p(
|
|
91
|
+
onClick: a[0] ||= (e) => O("close")
|
|
92
|
+
}, [l(p(T), {
|
|
86
93
|
size: 16,
|
|
87
94
|
"stroke-width": 2
|
|
88
|
-
})], 8,
|
|
89
|
-
s("div",
|
|
95
|
+
})], 8, P)]),
|
|
96
|
+
s("div", F, [s("div", I, [s("label", L, i(p(K).linkDialog.urlLabel), 1), _(s("input", {
|
|
90
97
|
id: "tpl-link-dialog-url",
|
|
91
98
|
"onUpdate:modelValue": a[1] ||= (e) => o.value = e,
|
|
92
99
|
type: "url",
|
|
93
100
|
class: "tpl:w-full tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2.5 tpl:text-sm tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:outline-none tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]",
|
|
94
|
-
placeholder: p(
|
|
101
|
+
placeholder: p(K).linkDialog.urlPlaceholder,
|
|
95
102
|
autofocus: "",
|
|
96
|
-
onKeydown: a[2] ||= (e) =>
|
|
97
|
-
}, null, 40,
|
|
98
|
-
|
|
103
|
+
onKeydown: a[2] ||= (e) => O("keydown", e)
|
|
104
|
+
}, null, 40, R), [[v, o.value]])]), s("div", z, [s("label", B, i(p(K).linkDialog.colorLabel), 1), l(D, {
|
|
105
|
+
"model-value": f.value,
|
|
106
|
+
"seed-color": G.value,
|
|
107
|
+
"onUpdate:modelValue": a[3] ||= (e) => f.value = e
|
|
108
|
+
}, null, 8, ["model-value", "seed-color"])])]),
|
|
109
|
+
s("div", V, [e.isEditingLink ? (r(), c("button", {
|
|
99
110
|
key: 0,
|
|
100
111
|
type: "button",
|
|
101
112
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-danger)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-danger)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-danger-light)]",
|
|
102
|
-
onClick: a[
|
|
103
|
-
}, i(p(
|
|
113
|
+
onClick: a[4] ||= (e) => O("remove")
|
|
114
|
+
}, i(p(K).linkDialog.removeLink), 1)) : h("", !0), s("div", H, [s("button", {
|
|
104
115
|
type: "button",
|
|
105
116
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-transparent tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-hover)] tpl:hover:text-[var(--tpl-text)]",
|
|
106
|
-
onClick: a[
|
|
107
|
-
}, i(p(
|
|
117
|
+
onClick: a[5] ||= (e) => O("close")
|
|
118
|
+
}, i(p(K).linkDialog.cancel), 1), s("button", {
|
|
108
119
|
type: "button",
|
|
109
120
|
class: "tpl:inline-flex tpl:cursor-pointer tpl:items-center tpl:rounded-md tpl:border-none tpl:bg-[var(--tpl-primary)] tpl:px-4 tpl:py-2 tpl:text-[13px] tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-primary-hover)] tpl:text-[var(--tpl-bg)]",
|
|
110
|
-
onClick: a[
|
|
111
|
-
}, i(e.isEditingLink ? p(
|
|
112
|
-
], 512)], 12,
|
|
121
|
+
onClick: a[6] ||= (e) => O("insert")
|
|
122
|
+
}, i(e.isEditingLink ? p(K).linkDialog.updateLink : p(K).linkDialog.insertLink), 1)])])
|
|
123
|
+
], 512)], 12, j)) : h("", !0)], 8, ["to"])) : h("", !0);
|
|
113
124
|
}
|
|
114
|
-
}),
|
|
125
|
+
}), W = {
|
|
115
126
|
key: 0,
|
|
116
127
|
class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:p-2"
|
|
117
|
-
},
|
|
128
|
+
}, G = { class: "tpl:animate-pulse tpl:text-[var(--tpl-text-dim)]" }, K = {
|
|
118
129
|
key: 1,
|
|
119
130
|
class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:p-2 tpl:text-center tpl:text-xs tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-text-muted)]"
|
|
120
|
-
},
|
|
131
|
+
}, q = /* @__PURE__ */ o({
|
|
121
132
|
__name: "RichTextEditorContent",
|
|
122
133
|
props: {
|
|
123
134
|
editor: {},
|
|
@@ -127,16 +138,16 @@ var T = S("bold", [["path", {
|
|
|
127
138
|
},
|
|
128
139
|
emits: ["retry"],
|
|
129
140
|
setup(e, { emit: t }) {
|
|
130
|
-
let a = t, { t: o } =
|
|
131
|
-
return (t, l) => e.isLoading ? (r(), c("div",
|
|
141
|
+
let a = t, { t: o } = C();
|
|
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", {
|
|
132
143
|
class: "tpl:ml-1 tpl:cursor-pointer tpl:border-none tpl:bg-transparent tpl:p-0 tpl:underline tpl:text-[var(--tpl-primary)]",
|
|
133
144
|
onClick: l[0] ||= (e) => a("retry")
|
|
134
145
|
}, i(p(o).errors.retry), 1)])) : e.editorContent && e.editor ? (r(), d(n(e.editorContent), {
|
|
135
146
|
key: 2,
|
|
136
147
|
editor: e.editor,
|
|
137
148
|
class: "tpl-text-editable tpl:min-h-[1.5em] tpl:rounded tpl:border tpl:border-dashed tpl:border-[var(--tpl-primary)] tpl:p-2"
|
|
138
|
-
}, null, 8, ["editor"])) :
|
|
149
|
+
}, null, 8, ["editor"])) : h("", !0);
|
|
139
150
|
}
|
|
140
151
|
});
|
|
141
152
|
//#endregion
|
|
142
|
-
export {
|
|
153
|
+
export { O as a, k as i, U as n, A as r, q as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
2
|
-
import { a as v } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import "./useEditorCore-
|
|
4
|
-
import { L as y, j as b, m as x } from "./keys-
|
|
5
|
-
import { t as S } from "./useI18n-
|
|
6
|
-
import { t as te } from "./loader-circle-
|
|
7
|
-
import { n as ne } from "./useCloudI18n-
|
|
8
|
-
import { t as re } from "./TplModal-
|
|
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
|
+
import { a as v } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
+
import "./useEditorCore-DtZkR7Vk.js";
|
|
4
|
+
import { L as y, j as b, m as x } from "./keys-BbDgCU6K.js";
|
|
5
|
+
import { t as S } from "./useI18n-eR1yVW0v.js";
|
|
6
|
+
import { t as te } from "./loader-circle-DFU0HPAa.js";
|
|
7
|
+
import { n as ne } from "./useCloudI18n-WbfVWq5k.js";
|
|
8
|
+
import { t as re } from "./TplModal-Ca-29YDD.js";
|
|
9
9
|
//#region src/cloud/components/SaveModuleDialog.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var C = ["aria-busy"], w = {
|
|
11
11
|
id: "tpl-save-module-title",
|
|
@@ -1,13 +1,13 @@
|
|
|
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-
|
|
2
|
-
import { c as h, t as g } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import "./useEditorCore-
|
|
4
|
-
import { t as _ } from "./dist-
|
|
5
|
-
import { t as v } from "./useI18n-
|
|
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-
|
|
10
|
-
import { n as C } from "./useCloudI18n-
|
|
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
|
+
import { c as h, t as g } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
+
import "./useEditorCore-DtZkR7Vk.js";
|
|
4
|
+
import { t as _ } from "./dist-CFOQvhSC.js";
|
|
5
|
+
import { t as v } from "./useI18n-eR1yVW0v.js";
|
|
6
|
+
import { t as y } from "./createLucideIcon-Bh9xOmlW.js";
|
|
7
|
+
import { t as b } from "./chevron-down-ByXpufZD.js";
|
|
8
|
+
import { t as x } from "./clock-5lWLadUn.js";
|
|
9
|
+
import { t as S } from "./loader-circle-DFU0HPAa.js";
|
|
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", {
|
|
13
13
|
d: "m15 18-6-6 6-6",
|
|
@@ -1,19 +1,19 @@
|
|
|
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-
|
|
2
|
-
import { t as ne } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import { L as _, M as re, S as ie, m as v } from "./keys-
|
|
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-
|
|
14
|
-
import { t as ce } from "./LoadingTrack-
|
|
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
|
+
import { t as ne } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
+
import { L as _, M as re, S as ie, m as v } from "./keys-BbDgCU6K.js";
|
|
4
|
+
import { t as y } from "./createLucideIcon-Bh9xOmlW.js";
|
|
5
|
+
import { t as b } from "./chevron-down-ByXpufZD.js";
|
|
6
|
+
import { t as x } from "./circle-alert-CjcAORUw.js";
|
|
7
|
+
import { n as S, t as C } from "./refresh-cw--lvWGy0_.js";
|
|
8
|
+
import { t as ae } from "./info-BhSQCxBV.js";
|
|
9
|
+
import { t as w } from "./loader-circle-DFU0HPAa.js";
|
|
10
|
+
import { t as T } from "./shield-check-C49M20le.js";
|
|
11
|
+
import { t as E } from "./sparkles-DV7Dman6.js";
|
|
12
|
+
import { t as oe } from "./triangle-alert-D1lzx6ds.js";
|
|
13
|
+
import { t as se } from "./x-CG_NV3nP.js";
|
|
14
|
+
import { t as ce } from "./LoadingTrack-KIcREPlS.js";
|
|
15
15
|
import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
16
|
-
import { n as le } from "./useCloudI18n-
|
|
16
|
+
import { n as le } from "./useCloudI18n-WbfVWq5k.js";
|
|
17
17
|
var O = y("shield-x", [
|
|
18
18
|
["path", {
|
|
19
19
|
d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
2
|
-
import { i as _ } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import "./useEditorCore-
|
|
4
|
-
import { t as v } from "./loader-circle-
|
|
5
|
-
import { n as y } from "./useCloudI18n-
|
|
6
|
-
import { t as b } from "./TplModal-
|
|
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
|
+
import { i as _ } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
+
import "./useEditorCore-DtZkR7Vk.js";
|
|
4
|
+
import { t as v } from "./loader-circle-DFU0HPAa.js";
|
|
5
|
+
import { n as y } from "./useCloudI18n-WbfVWq5k.js";
|
|
6
|
+
import { t as b } from "./TplModal-Ca-29YDD.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
|
-
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-
|
|
2
|
-
import { x as
|
|
3
|
-
import { I as
|
|
4
|
-
import { t as
|
|
5
|
-
import { a as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as S } from "./loader-circle-
|
|
8
|
-
import { t as C } from "./usePopoverRoot-
|
|
1
|
+
import { Dt as e, Et as t, O as n, Ot as r, W as i, _ as a, c as o, d as s, h as c, i as l, l as u, m as d, nt as f, r as p, s as m, u as h, x as g } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
+
import { S as ee, x as te } from "./useEditorCore-DtZkR7Vk.js";
|
|
3
|
+
import { I as ne, P as _, w as v, x as y } from "./keys-BbDgCU6K.js";
|
|
4
|
+
import { t as b } from "./useI18n-eR1yVW0v.js";
|
|
5
|
+
import { a as re, i as ie, n as ae, r as oe, t as se } from "./RichTextEditorContent-BB_n8vgB.js";
|
|
6
|
+
import { n as ce, t as x } from "./scan-line-QgyDIgn_.js";
|
|
7
|
+
import { t as S } from "./loader-circle-DFU0HPAa.js";
|
|
8
|
+
import { t as C } from "./usePopoverRoot-C1j0D7cc.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,17 +24,17 @@ 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(_, null), R = g(ne, null), z = C(), B = g(v, null), le = g(y, null), V = m(() => (B?.isOpen.value ?? !1) || (le?.isOpen.value ?? !1)), { t: H } = b(), { 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"),
|
|
31
31
|
editorName: "TitleEditor",
|
|
32
32
|
async loadExtensions({ mergeTags: e, syntax: t, triggerChar: n, autocompleteEnabled: r, suggestionEmptyText: i }) {
|
|
33
33
|
let [{ Editor: a, EditorContent: o }, { default: s }, { default: c }, { MergeTagNode: l, MergeTagSuggestion: u, LogicMergeTagNode: d }] = await Promise.all([
|
|
34
|
-
import("./dist-
|
|
35
|
-
import("./dist-
|
|
36
|
-
import("./dist-
|
|
37
|
-
import("./extensions-
|
|
34
|
+
import("./dist-BReUTadj.js").then((e) => e.r),
|
|
35
|
+
import("./dist-i_Z7t67A.js"),
|
|
36
|
+
import("./dist-CHLoeloJ.js"),
|
|
37
|
+
import("./extensions-B2poxDIo.js")
|
|
38
38
|
]);
|
|
39
39
|
return {
|
|
40
40
|
TiptapEditor: a,
|
|
@@ -51,7 +51,7 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
51
51
|
strike: !1,
|
|
52
52
|
link: !1
|
|
53
53
|
}),
|
|
54
|
-
c.configure({
|
|
54
|
+
ee(c).configure({
|
|
55
55
|
openOnClick: !1,
|
|
56
56
|
HTMLAttributes: {
|
|
57
57
|
target: "_blank",
|
|
@@ -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(re), {
|
|
99
99
|
size: 16,
|
|
100
100
|
"stroke-width": 2.5
|
|
101
101
|
})], 10, E),
|
|
@@ -105,11 +105,11 @@ 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(ie), {
|
|
109
109
|
size: 16,
|
|
110
110
|
"stroke-width": 2
|
|
111
111
|
})], 10, D),
|
|
112
|
-
g[
|
|
112
|
+
g[8] ||= o("span", {
|
|
113
113
|
class: "tpl:mx-1.5 tpl:h-6 tpl:w-px tpl:bg-[var(--tpl-border)]",
|
|
114
114
|
"aria-hidden": "true"
|
|
115
115
|
}, null, -1),
|
|
@@ -118,13 +118,13 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
118
118
|
class: t(["tpl-text-toolbar-btn", { "tpl-text-toolbar-btn--active": f(U)?.isActive("link") }]),
|
|
119
119
|
"aria-label": f(H).titleEditor.addLink,
|
|
120
120
|
title: f(H).titleEditor.addLink,
|
|
121
|
-
onClick: g[2] ||= (...e) => f(
|
|
122
|
-
}, [c(f(
|
|
121
|
+
onClick: g[2] ||= (...e) => f(Z) && f(Z)(...e)
|
|
122
|
+
}, [c(f(oe), {
|
|
123
123
|
size: 16,
|
|
124
124
|
"stroke-width": 2
|
|
125
125
|
})], 10, O),
|
|
126
|
-
f(
|
|
127
|
-
f(
|
|
126
|
+
f(Y) ? (n(), s("span", k)) : h("", !0),
|
|
127
|
+
f(Y) ? (n(), s("button", {
|
|
128
128
|
key: 1,
|
|
129
129
|
type: "button",
|
|
130
130
|
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
@@ -135,8 +135,8 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
135
135
|
size: 16,
|
|
136
136
|
"stroke-width": 2
|
|
137
137
|
}), d(" " + r(f(H).mergeTag.insertShort), 1)], 8, A)) : h("", !0),
|
|
138
|
-
f(
|
|
139
|
-
f(
|
|
138
|
+
f(X) ? (n(), s("span", j)) : h("", !0),
|
|
139
|
+
f(X) ? (n(), s("button", {
|
|
140
140
|
key: 3,
|
|
141
141
|
type: "button",
|
|
142
142
|
class: "tpl:flex tpl:h-8 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded tpl:border-none tpl:bg-transparent tpl:px-2.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)] tpl:transition-all tpl:duration-150 tpl:hover:bg-[var(--tpl-bg-active)]",
|
|
@@ -144,7 +144,7 @@ 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(ce), {
|
|
148
148
|
size: 16,
|
|
149
149
|
"stroke-width": 2
|
|
150
150
|
}), d(" " + r(f(H).logicTag.insertShort), 1)], 8, M)) : h("", !0)
|
|
@@ -153,12 +153,12 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
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(se, {
|
|
157
157
|
editor: f(U),
|
|
158
158
|
"editor-content": f(W),
|
|
159
159
|
"is-loading": f(G),
|
|
160
|
-
"init-error": f(
|
|
161
|
-
onRetry: f(
|
|
160
|
+
"init-error": f(ue),
|
|
161
|
+
onRetry: f(de)
|
|
162
162
|
}, null, 8, [
|
|
163
163
|
"editor",
|
|
164
164
|
"editor-content",
|
|
@@ -166,22 +166,25 @@ var w = { class: "tpl-text-editor-wrapper tpl:relative" }, T = ["data-tpl-theme"
|
|
|
166
166
|
"init-error",
|
|
167
167
|
"onRetry"
|
|
168
168
|
]),
|
|
169
|
-
c(
|
|
170
|
-
visible: f(
|
|
169
|
+
c(ae, {
|
|
170
|
+
visible: f(fe),
|
|
171
171
|
"is-editing-link": f(U)?.isActive("link") ?? !1,
|
|
172
|
-
"dialog-ref": f(
|
|
173
|
-
"onUpdate:dialogRef": g[5] ||= (e) => i(
|
|
172
|
+
"dialog-ref": f(J),
|
|
173
|
+
"onUpdate:dialogRef": g[5] ||= (e) => i(J) ? J.value = e : null,
|
|
174
174
|
"link-url": f(K),
|
|
175
175
|
"onUpdate:linkUrl": g[6] ||= (e) => i(K) ? K.value = e : null,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
"link-color": f(q),
|
|
177
|
+
"onUpdate:linkColor": g[7] ||= (e) => i(q) ? q.value = e : null,
|
|
178
|
+
onClose: f(he),
|
|
179
|
+
onInsert: f(pe),
|
|
180
|
+
onRemove: f(me),
|
|
181
|
+
onKeydown: f(ge)
|
|
180
182
|
}, null, 8, [
|
|
181
183
|
"visible",
|
|
182
184
|
"is-editing-link",
|
|
183
185
|
"dialog-ref",
|
|
184
186
|
"link-url",
|
|
187
|
+
"link-color",
|
|
185
188
|
"onClose",
|
|
186
189
|
"onInsert",
|
|
187
190
|
"onRemove",
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
2
|
-
import { c as m, t as h } from "./runtime-dom.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import { I as _ } from "./keys-
|
|
5
|
-
import { t as v } from "./usePopoverRoot-
|
|
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
|
+
import { c as m, t as h } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
+
import { D as g } from "./useEditorCore-DtZkR7Vk.js";
|
|
4
|
+
import { I as _ } from "./keys-BbDgCU6K.js";
|
|
5
|
+
import { t as v } from "./usePopoverRoot-C1j0D7cc.js";
|
|
6
6
|
//#region src/components/TplModal.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var y = ["data-tpl-theme"], b = /* @__PURE__ */ r({
|
|
8
8
|
__name: "TplModal",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e,
|
|
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-DtZkR7Vk.js";
|
|
2
|
+
import { t as a } from "./createLucideIcon-Bh9xOmlW.js";
|
|
3
3
|
var o = a("columns-3", [
|
|
4
4
|
["rect", {
|
|
5
5
|
width: "18",
|
|
@@ -98,13 +98,13 @@ var o = a("columns-3", [
|
|
|
98
98
|
section: o,
|
|
99
99
|
title: s,
|
|
100
100
|
paragraph: d,
|
|
101
|
-
image:
|
|
101
|
+
image: n,
|
|
102
102
|
button: p,
|
|
103
103
|
divider: c,
|
|
104
104
|
video: f,
|
|
105
|
-
social:
|
|
106
|
-
menu:
|
|
107
|
-
table:
|
|
105
|
+
social: e,
|
|
106
|
+
menu: r,
|
|
107
|
+
table: i,
|
|
108
108
|
spacer: l,
|
|
109
109
|
countdown: a("timer", [
|
|
110
110
|
["line", {
|
|
@@ -128,7 +128,7 @@ var o = a("columns-3", [
|
|
|
128
128
|
key: "1e1u0o"
|
|
129
129
|
}]
|
|
130
130
|
]),
|
|
131
|
-
html:
|
|
131
|
+
html: t
|
|
132
132
|
};
|
|
133
133
|
//#endregion
|
|
134
134
|
export { c as i, m as n, u as r, h as t };
|
package/dist/bundle-stats.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.16.
|
|
3
|
-
"initialGzipBytes":
|
|
4
|
-
"initialRawBytes":
|
|
2
|
+
"version": "0.16.2",
|
|
3
|
+
"initialGzipBytes": 281884,
|
|
4
|
+
"initialRawBytes": 1013672,
|
|
5
5
|
"initialFileCount": 42,
|
|
6
|
-
"lazyGzipBytes":
|
|
7
|
-
"lazyRawBytes":
|
|
6
|
+
"lazyGzipBytes": 181483,
|
|
7
|
+
"lazyRawBytes": 596216,
|
|
8
8
|
"lazyFileCount": 46,
|
|
9
|
-
"generatedAt": "2026-07-
|
|
9
|
+
"generatedAt": "2026-07-19T13:54:26.248Z"
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import {
|
|
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 { it as d, mt as f, ot as p, pt as m, un as h, wt as g, zt as _ } from "./features-C-cjT_8L.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)]",
|
|
@@ -12,7 +12,7 @@ var v = {
|
|
|
12
12
|
props: { activeFeature: {} },
|
|
13
13
|
emits: ["select"],
|
|
14
14
|
setup(u, { emit: p }) {
|
|
15
|
-
let C = p, { t: w } =
|
|
15
|
+
let C = p, { t: w } = d(), T = h(_, "AiFeatureMenu"), E = {
|
|
16
16
|
"ai-chat": "chat",
|
|
17
17
|
"design-reference": "designToTemplate",
|
|
18
18
|
scoring: "scoring"
|
|
@@ -23,11 +23,11 @@ var v = {
|
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
key: "design-reference",
|
|
26
|
-
icon:
|
|
26
|
+
icon: g
|
|
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-roPglhox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiFeatureMenu-
|
|
1
|
+
{"version":3,"file":"AiFeatureMenu-roPglhox.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"}
|