@templatical/editor 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-B0-U5-sb.js → AiChatSidebar-BIKvYREk.js} +57 -56
- package/dist/{AiFeatureMenu-DxDwLS8B.js → AiFeatureMenu-QbD82crt.js} +23 -23
- package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
- package/dist/CloudEditor-DptuSf7A.js +1234 -0
- package/dist/{CollaboratorBar-DgwjisX2.js → CollaboratorBar-DrA_K69w.js} +20 -20
- package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-D_tSGvTX.js} +158 -157
- package/dist/CountdownBlock-apiYUhkQ.js +92 -0
- package/dist/CountdownToolbar-CS0axcjz.js +210 -0
- package/dist/{DesignReferenceSidebar-BgPDbOsl.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
- package/dist/{IssuesPanel-I0z6k6-H.js → IssuesPanel-CR1MPaDE.js} +40 -40
- package/dist/{LoadingTrack-C7mGWPHS.js → LoadingTrack-DsecR8Rw.js} +1 -1
- package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
- package/dist/ModuleBrowserModal-D45rBj5C.js +202 -0
- package/dist/{ModulePreviewCanvas-Dni9kK4j.js → ModulePreviewCanvas-BiQ6B2-l.js} +29 -29
- package/dist/{NumberWithSuffix-D3fdj0iO.js → NumberWithSuffix-CrA6quxx.js} +143 -142
- package/dist/ParagraphEditor-1NaUJpZO.js +721 -0
- package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
- package/dist/{SaveModuleDialog-C38VqN2T.js → SaveModuleDialog-B0sPOTgO.js} +38 -37
- package/dist/{SnapshotHistory-ByloTpwh.js → SnapshotHistory-DslVzmSb.js} +34 -33
- package/dist/{TemplateScoringPanel-CUxiPtEf.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
- package/dist/{TestEmailModal-BvZBMBad.js → TestEmailModal-DWGniJVu.js} +22 -21
- package/dist/TitleEditor-D4t_gZZJ.js +193 -0
- package/dist/{TplModal-BYb-X5Bj.js → TplModal-Br2VG6cn.js} +14 -13
- package/dist/{blockTypeIcons-CyAom3iI.js → blockTypeIcons-CXhCS5WV.js} +5 -5
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js → AiFeatureMenu-3Slo_LGA.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js.map → AiFeatureMenu-3Slo_LGA.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js → BlockIssueBadge-BxwEiiF3.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js.map → BlockIssueBadge-BxwEiiF3.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BZuzsQOZ.js → CloudEditor-DFIFWD9G.js} +163 -161
- package/dist/cdn/chunks/CloudEditor-DFIFWD9G.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js → CollaboratorBar-Cu3vuN66.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js.map → CollaboratorBar-Cu3vuN66.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js → CountdownBlock-BEVAJQtQ.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js.map → CountdownBlock-BEVAJQtQ.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js → CountdownToolbar-CI2sQZv5.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js.map → CountdownToolbar-CI2sQZv5.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js → IssuesPanel-BdeDoTcn.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js.map → IssuesPanel-BdeDoTcn.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js +213 -0
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js → ModuleBrowserModal-Dz-I5zfj.js} +11 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js.map → ModuleBrowserModal-Dz-I5zfj.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js → ModulePreviewCanvas-BfinyuAN.js} +21 -21
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js.map → ModulePreviewCanvas-BfinyuAN.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js → NumberWithSuffix-CDjEa08X.js} +4 -4
- package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js.map → NumberWithSuffix-CDjEa08X.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-pGrfSccu.js → ParagraphEditor-B3fG0vge.js} +130 -110
- package/dist/cdn/chunks/ParagraphEditor-B3fG0vge.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js → RichTextEditorContent-C6YPCp9j.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js.map → RichTextEditorContent-C6YPCp9j.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js → SaveModuleDialog-C6UIIVAM.js} +6 -6
- package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js.map → SaveModuleDialog-C6UIIVAM.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BvFbL16O.js → TitleEditor-BiZbLYF1.js} +62 -46
- package/dist/cdn/chunks/TitleEditor-BiZbLYF1.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-BernVG06.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-Kd1MT0u8.js.map → blockTypeIcons-BernVG06.js.map} +1 -1
- package/dist/{de-C2wOXoxs.js → cdn/chunks/de-LsV0u1tP.js} +19 -1
- package/dist/cdn/chunks/de-LsV0u1tP.js.map +1 -0
- package/dist/cdn/chunks/{draggable-Bci-fq8y.js → draggable-kG-D5Xsm.js} +19 -10
- package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +1 -0
- package/dist/cdn/chunks/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +18 -2
- package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
- package/dist/cdn/chunks/extensions-Drp8UDc6.js +421 -0
- package/dist/cdn/chunks/extensions-Drp8UDc6.js.map +1 -0
- package/dist/cdn/chunks/{features-DU6lA8l1.js → features-Dpczf9Su.js} +1171 -994
- package/dist/cdn/chunks/features-Dpczf9Su.js.map +1 -0
- package/dist/cdn/chunks/{icons-BjHUZZyJ.js → icons-CuxnJiGQ.js} +170 -164
- package/dist/cdn/chunks/icons-CuxnJiGQ.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-DKKBzRQu.js → liquid.browser-BJOEu6Cg.js} +693 -678
- package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +1 -0
- package/dist/cdn/chunks/{media-library-Byelliig.js → media-library-CiYl_BO7.js} +556 -554
- package/dist/cdn/chunks/{media-library-Byelliig.js.map → media-library-CiYl_BO7.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +18 -2
- package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +1 -0
- package/dist/cdn/chunks/{pusher-BICWUP2j.js → pusher-CIwiKF8H.js} +9 -6
- package/dist/cdn/chunks/{pusher-BICWUP2j.js.map → pusher-CIwiKF8H.js.map} +1 -1
- package/dist/cdn/chunks/quality-CNjGxBG0.js +2176 -0
- package/dist/cdn/chunks/{quality-DNnYAntR.js.map → quality-CNjGxBG0.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CZKO-Tav.js → renderer-CFkg8h-K.js} +40 -31
- package/dist/cdn/chunks/renderer-CFkg8h-K.js.map +1 -0
- package/dist/cdn/chunks/{src-DsqSXXjk.js → src-DRpKu4Dy.js} +11 -11
- package/dist/cdn/chunks/{src-DsqSXXjk.js.map → src-DRpKu4Dy.js.map} +1 -1
- package/dist/cdn/chunks/styles-B7wryV0l.js +3943 -0
- package/dist/cdn/chunks/styles-B7wryV0l.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CwScfbsM.js → tiptap-DF9PEiqH.js} +5429 -5373
- package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +117 -115
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BRzXxFHr.js → check-rl7ok6uJ.js} +1 -1
- package/dist/{chevron-down-DmEgzmYT.js → chevron-down-BKe__NOD.js} +1 -1
- package/dist/{circle-alert-BStvZr3O.js → circle-alert-C8xmpMsK.js} +1 -1
- package/dist/{clock-Blwp_1R6.js → clock-BW4JuDCN.js} +1 -1
- package/dist/{cloud-_olro76D.js → cloud-BQusL53H.js} +208 -208
- package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
- package/dist/{cdn/chunks/de-C2wOXoxs.js → de-LsV0u1tP.js} +17 -3
- package/dist/{dist-BlG7k25W.js → dist-B5Sov3sS.js} +7 -7
- package/dist/dist-BEWiuOMi.js +251 -0
- package/dist/{dist-b7Ak-CuM.js → dist-BFmE-7hB.js} +2 -2
- package/dist/{dist-o73iaGqy.js → dist-BMoa33wT.js} +2 -2
- package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
- package/dist/{dist-D6x1cQeh.js → dist-BsCGIDSt.js} +103 -102
- package/dist/dist-CNLKj9wa.js +5 -0
- package/dist/{dist-DULfKmTh.js → dist-CNXDNYQn.js} +729 -695
- package/dist/{dist-412xXefB.js → dist-COG3IdPK.js} +3 -3
- package/dist/{dist-Cz79qrLL.js → dist-CQZxDvFw.js} +3 -3
- package/dist/{dist-BwgjpLfr.js → dist-CRsjOQM-.js} +2 -2
- package/dist/dist-CTT6WYJ6.js +134 -0
- package/dist/dist-Cqa6aeAJ.js +5 -0
- package/dist/{dist-BCQZZUE9.js → dist-SXJJ2v41.js} +2 -2
- package/dist/{dist-DhKTdU52.js → dist-itdjZraK.js} +1445 -1420
- package/dist/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +17 -1
- package/dist/extensions-DwaZAqm6.js +423 -0
- package/dist/{image-up-BFPbw_Zq.js → image-up-BwBCmQ4P.js} +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/{info-B_qLEBN2.js → info-TCn7uWR5.js} +1 -1
- package/dist/keys-Cv8-8GsD.js +10 -0
- package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
- package/dist/{list-checks-CGg7JxPm.js → list-checks-CSrOWNgq.js} +1 -1
- package/dist/{loader-circle-CDF8eR_Q.js → loader-circle-BLmicnPG.js} +1 -1
- package/dist/{message-circle-C3cHsCJl.js → message-circle-C9hHMQCI.js} +1 -1
- package/dist/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +17 -1
- package/dist/{refresh-cw-Butml7Q4.js → refresh-cw-D1JQ1LNa.js} +1 -1
- package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
- package/dist/scan-line-DgijVq9y.js +31 -0
- package/dist/{send-k7npFJNO.js → send-DjPdq69F.js} +1 -1
- package/dist/{shield-check-CV6GbmCu.js → shield-check-Bqluu8FS.js} +1 -1
- package/dist/{sparkles-C965Xop4.js → sparkles-M4azPVSP.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styles-D7fQ7f_1.js +4164 -0
- package/dist/templatical-editor.js +155 -152
- package/dist/{text-align-start-Bxnps8fH.js → text-align-start-CMya5pCQ.js} +11 -11
- package/dist/{trash-2-DpGb7fIt.js → trash-2-C-81rkLS.js} +1 -1
- package/dist/{triangle-alert-BKYElAwz.js → triangle-alert-BuRWnynk.js} +1 -1
- package/dist/{upload-BF7sxd1_.js → upload-CWBIoLd4.js} +1 -1
- package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-CECL_OUb.js} +1 -1
- package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-AKCy98qD.js} +2 -2
- package/dist/{useEditorCore-DKYZ7aKk.js → useEditorCore-vcWLdnjN.js} +1480 -1310
- package/dist/{useI18n-CTs_bP9d.js → useI18n-C-TDeJBt.js} +2 -2
- package/dist/{useMergeTag-e3RSY-s3.js → useMergeTag-DSrBY0-2.js} +6 -6
- package/dist/usePopoverRoot-DKUDnr55.js +8 -0
- package/dist/{vue.runtime.esm-bundler-B2k01iQh.js → vue.runtime.esm-bundler-l0XAqiyv.js} +639 -1151
- package/dist/{x-CGjkjdKK.js → x-CQSvXnGR.js} +1 -1
- package/package.json +27 -27
- package/dist/CloudEditor-DaEfipBn.js +0 -1230
- package/dist/CountdownBlock-DO9fziwf.js +0 -92
- package/dist/CountdownToolbar-BeII06yJ.js +0 -210
- package/dist/ModuleBrowserModal-DsZRr87F.js +0 -198
- package/dist/ParagraphEditor-CZ-cmhX3.js +0 -700
- package/dist/TitleEditor-DbNOcvhR.js +0 -177
- package/dist/cdn/chunks/CloudEditor-BZuzsQOZ.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-pGrfSccu.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-BvFbL16O.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-Kd1MT0u8.js +0 -22
- package/dist/cdn/chunks/de-C2wOXoxs.js.map +0 -1
- package/dist/cdn/chunks/draggable-Bci-fq8y.js.map +0 -1
- package/dist/cdn/chunks/en-dR7zfNC3.js.map +0 -1
- package/dist/cdn/chunks/extensions-CuUjSmuA.js +0 -605
- package/dist/cdn/chunks/extensions-CuUjSmuA.js.map +0 -1
- package/dist/cdn/chunks/features-DU6lA8l1.js.map +0 -1
- package/dist/cdn/chunks/icons-BjHUZZyJ.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-BZ86xqK6.js.map +0 -1
- package/dist/cdn/chunks/quality-DNnYAntR.js +0 -2176
- package/dist/cdn/chunks/renderer-CZKO-Tav.js.map +0 -1
- package/dist/cdn/chunks/styles-DiAdtiz9.js +0 -3428
- package/dist/cdn/chunks/styles-DiAdtiz9.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +0 -1
- package/dist/createLucideIcon-CmPAC-gt.js +0 -43
- package/dist/dist-BNEdeWub.js +0 -5
- package/dist/dist-Cgry6fNv.js +0 -382
- package/dist/dist-u0iIJH3V.js +0 -5
- package/dist/extensions-XPlNAKIL.js +0 -1720
- package/dist/keys-mFiJ5N0_.js +0 -10
- package/dist/scan-line-XYEqim_E.js +0 -25
- package/dist/styles-D0RCAWhB.js +0 -3647
- package/dist/usePopoverRoot-DVh7NY1q.js +0 -8
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as ue } from "./
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as pe } from "./
|
|
11
|
-
import { t as me } from "./
|
|
1
|
+
import { A as e, Et as t, I as n, O as r, Ot as i, R as ee, Y as a, _ as o, c as s, d as c, h as l, l as u, m as d, nt as f, r as p, u as m, w as te, x as ne, z as re } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
import { a as h, t as g } from "./runtime-dom.esm-bundler-BzuoCyNp.js";
|
|
3
|
+
import { m as ie, p as ae } from "./dist-CTT6WYJ6.js";
|
|
4
|
+
import { L as _, S as oe, c as se, m as ce, r as le } from "./keys-Cv8-8GsD.js";
|
|
5
|
+
import { t as v } from "./createLucideIcon-Dx-EjR9r.js";
|
|
6
|
+
import { t as ue } from "./circle-alert-C8xmpMsK.js";
|
|
7
|
+
import { t as de } from "./loader-circle-BLmicnPG.js";
|
|
8
|
+
import { t as fe } from "./send-DjPdq69F.js";
|
|
9
|
+
import { t as y } from "./sparkles-M4azPVSP.js";
|
|
10
|
+
import { t as pe } from "./trash-2-C-81rkLS.js";
|
|
11
|
+
import { t as me } from "./x-CQSvXnGR.js";
|
|
12
|
+
import { t as b } from "./LoadingTrack-DsecR8Rw.js";
|
|
12
13
|
import { t as x } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { t as S } from "./useAliveFlag-
|
|
14
|
-
import { i as C } from "./cloud-
|
|
14
|
+
import { t as S } from "./useAliveFlag-CECL_OUb.js";
|
|
15
|
+
import { i as C } from "./cloud-BQusL53H.js";
|
|
15
16
|
var w = v("redo-2", [["path", {
|
|
16
17
|
d: "m15 14 5-5-5-5",
|
|
17
18
|
key: "12vg1m"
|
|
@@ -71,15 +72,15 @@ var w = v("redo-2", [["path", {
|
|
|
71
72
|
"background-color": "color-mix(\n in srgb,\n var(--tpl-bg) 50%,\n transparent\n )",
|
|
72
73
|
"backdrop-filter": "blur(2px)"
|
|
73
74
|
}
|
|
74
|
-
}, _e = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, ve = ["onClick"], ye = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, be = { class: "tpl-ai-input-wrapper tpl:flex tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, xe = ["placeholder", "disabled"], Se = ["disabled"], Ce = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, B = /*#__PURE__*/ x(/* @__PURE__ */
|
|
75
|
+
}, _e = { class: "tpl:flex tpl:flex-col tpl:gap-1.5" }, ve = ["onClick"], ye = { class: "tpl:border-t tpl:p-3 tpl:border-[var(--tpl-border)]" }, be = { class: "tpl-ai-input-wrapper tpl:flex tpl:items-end tpl:gap-2 tpl:rounded-[var(--tpl-radius)] tpl:border tpl:px-3 tpl:py-2 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)]" }, xe = ["placeholder", "disabled"], Se = ["disabled"], Ce = { class: "tpl:m-0 tpl:px-1 tpl:pt-2 tpl:text-center tpl:text-[11px] tpl:text-[var(--tpl-text-dim)]" }, B = /*#__PURE__*/ x(/* @__PURE__ */ o({
|
|
75
76
|
__name: "AiChatSidebar",
|
|
76
77
|
props: {
|
|
77
78
|
visible: { type: Boolean },
|
|
78
79
|
onApply: { type: Function }
|
|
79
80
|
},
|
|
80
81
|
emits: ["close"],
|
|
81
|
-
setup(
|
|
82
|
-
let x =
|
|
82
|
+
setup(o, { emit: v }) {
|
|
83
|
+
let x = o, B = v, V = _(se, "AiChatSidebar"), H = _(ce, "AiChatSidebar"), we = _(le, "AiChatSidebar"), U = ne(oe, []), W = S(), G = C({
|
|
83
84
|
authManager: we,
|
|
84
85
|
getTemplateId: () => H.state.template?.id ?? null,
|
|
85
86
|
onApply: x.onApply,
|
|
@@ -87,8 +88,8 @@ var w = v("redo-2", [["path", {
|
|
|
87
88
|
}), K = a(""), q = a(null), J = a(!1), Y = a(0), { pause: X, resume: Te } = ae(() => {
|
|
88
89
|
let e = G.suggestions.value?.length ?? 0;
|
|
89
90
|
Y.value < e ? Y.value++ : X();
|
|
90
|
-
}, 150, { immediate: !1 }), { start: Ee } =
|
|
91
|
-
|
|
91
|
+
}, 150, { immediate: !1 }), { start: Ee } = ie(() => Te(), 100, { immediate: !1 });
|
|
92
|
+
n(() => G.suggestions.value?.length ?? 0, (e) => {
|
|
92
93
|
if (X(), e === 0) {
|
|
93
94
|
Y.value = 0;
|
|
94
95
|
return;
|
|
@@ -96,11 +97,11 @@ var w = v("redo-2", [["path", {
|
|
|
96
97
|
Y.value = 0, Ee();
|
|
97
98
|
});
|
|
98
99
|
function Z() {
|
|
99
|
-
|
|
100
|
+
te(() => {
|
|
100
101
|
q.value && (q.value.scrollTop = q.value.scrollHeight);
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
|
-
|
|
104
|
+
n(() => G.messages.value?.length ?? 0, () => Z()), n(() => x.visible, async (e) => {
|
|
104
105
|
if (e && !J.value) {
|
|
105
106
|
if (J.value = !0, await G.loadConversation(), !W.alive) return;
|
|
106
107
|
(G.messages.value?.length ?? 0) === 0 && H.content.value.blocks.length === 0 && G.loadSuggestions(H.content.value, U);
|
|
@@ -119,7 +120,7 @@ var w = v("redo-2", [["path", {
|
|
|
119
120
|
function Oe(e) {
|
|
120
121
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Q());
|
|
121
122
|
}
|
|
122
|
-
return (n,
|
|
123
|
+
return (n, a) => (r(), u(g, {
|
|
123
124
|
"enter-active-class": "tpl-ai-slide-enter-active",
|
|
124
125
|
"enter-from-class": "tpl:translate-x-full",
|
|
125
126
|
"enter-to-class": "tpl:translate-x-0",
|
|
@@ -127,42 +128,42 @@ var w = v("redo-2", [["path", {
|
|
|
127
128
|
"leave-from-class": "tpl:translate-x-0",
|
|
128
129
|
"leave-to-class": "tpl:translate-x-full"
|
|
129
130
|
}, {
|
|
130
|
-
default:
|
|
131
|
-
|
|
131
|
+
default: ee(() => [o.visible ? (r(), c("div", E, [
|
|
132
|
+
s("div", D, [s("div", O, [l(f(y), {
|
|
132
133
|
size: 13,
|
|
133
134
|
"stroke-width": 2
|
|
134
|
-
}),
|
|
135
|
+
}), s("span", null, i(f(V).aiChat.title), 1)]), s("div", k, [(f(G).messages.value?.length ?? 0) > 0 ? (r(), c("button", {
|
|
135
136
|
key: 0,
|
|
136
137
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
137
|
-
title:
|
|
138
|
-
onClick:
|
|
139
|
-
}, [
|
|
138
|
+
title: f(V).aiChat.clear,
|
|
139
|
+
onClick: a[0] ||= (e) => f(G).clearChat()
|
|
140
|
+
}, [l(f(pe), {
|
|
140
141
|
size: 14,
|
|
141
142
|
"stroke-width": 2
|
|
142
|
-
})], 8, A)) :
|
|
143
|
+
})], 8, A)) : m("", !0), s("button", {
|
|
143
144
|
class: "tpl:rounded-md tpl:p-0.5 tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
144
|
-
onClick:
|
|
145
|
-
}, [
|
|
145
|
+
onClick: a[1] ||= (e) => B("close")
|
|
146
|
+
}, [l(f(me), {
|
|
146
147
|
size: 14,
|
|
147
148
|
"stroke-width": 2
|
|
148
149
|
})])])]),
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
s("div", j, [
|
|
151
|
+
s("div", {
|
|
151
152
|
ref_key: "messagesContainer",
|
|
152
153
|
ref: q,
|
|
153
154
|
class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4"
|
|
154
|
-
}, [
|
|
155
|
+
}, [f(G).isLoadingHistory.value ? (r(), c("div", M, [l(f(de), {
|
|
155
156
|
class: "tpl-spinner tpl:text-[var(--tpl-text-muted)]",
|
|
156
157
|
size: 24,
|
|
157
158
|
"stroke-width": 2
|
|
158
|
-
}),
|
|
159
|
+
}), s("p", N, i(f(V).aiChat.loadingHistory), 1)])) : (f(G).messages.value?.length ?? 0) === 0 ? (r(), c("div", P, [l(f(y), {
|
|
159
160
|
size: 32,
|
|
160
161
|
"stroke-width": 1.5,
|
|
161
162
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
162
|
-
}),
|
|
163
|
-
key:
|
|
163
|
+
}), s("p", F, i(f(V).aiChat.placeholder), 1)])) : (r(), c("div", I, [(r(!0), c(p, null, e(f(G).messages.value, (e, t) => (r(), c("div", {
|
|
164
|
+
key: e.id,
|
|
164
165
|
class: "tpl:flex tpl:flex-col tpl:gap-2"
|
|
165
|
-
}, [
|
|
166
|
+
}, [e.role === "user" ? (r(), c("div", L, i(e.content), 1)) : (r(), c("div", R, [!$(e.content) && f(G).isGenerating.value && t === (f(G).messages.value?.length ?? 0) - 1 ? (r(), u(b, { key: 0 })) : (r(), c("div", z, i($(e.content) || f(V).aiChat.applied), 1)), e.id === f(G).lastApplyMessageId.value && !f(G).isGenerating.value ? (r(), c("button", {
|
|
166
167
|
key: 2,
|
|
167
168
|
class: "tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:self-start tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
168
169
|
style: {
|
|
@@ -170,47 +171,47 @@ var w = v("redo-2", [["path", {
|
|
|
170
171
|
color: "var(--tpl-text-muted)",
|
|
171
172
|
"background-color": "transparent"
|
|
172
173
|
},
|
|
173
|
-
onClick:
|
|
174
|
-
}, [
|
|
174
|
+
onClick: a[2] ||= (e) => f(G).toggleLastRevert()
|
|
175
|
+
}, [f(G).isLastChangeReverted.value ? (r(), c(p, { key: 0 }, [l(f(w), {
|
|
175
176
|
size: 12,
|
|
176
177
|
"stroke-width": 2
|
|
177
|
-
}),
|
|
178
|
+
}), d(" " + i(f(V).aiChat.reapply), 1)], 64)) : (r(), c(p, { key: 1 }, [l(f(T), {
|
|
178
179
|
size: 12,
|
|
179
180
|
"stroke-width": 2
|
|
180
|
-
}),
|
|
181
|
-
|
|
181
|
+
}), d(" " + i(f(V).aiChat.revert), 1)], 64))])) : m("", !0)]))]))), 128))]))], 512),
|
|
182
|
+
f(G).error.value ? (r(), c("div", he, [l(f(ue), {
|
|
182
183
|
size: 14,
|
|
183
184
|
"stroke-width": 2,
|
|
184
185
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
185
|
-
}),
|
|
186
|
-
(
|
|
186
|
+
}), s("span", null, i(f(G).error.value === "ai_apply_failed" ? f(V).aiChat.applyFailed : f(V).aiChat.error), 1)])) : m("", !0),
|
|
187
|
+
(f(G).suggestions.value?.length ?? 0) > 0 ? (r(), c("div", ge, [s("div", _e, [(r(!0), c(p, null, e(f(G).suggestions.value ?? [], (e, n) => (r(), c("button", {
|
|
187
188
|
key: n,
|
|
188
|
-
class:
|
|
189
|
+
class: t(["tpl-suggestion-btn tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:leading-snug tpl:transition-all tpl:duration-300 tpl:ease-out", (f(G).suggestions.value?.length ?? 0) - 1 - n < Y.value ? "tpl:translate-y-0 tpl:opacity-100" : "tpl:pointer-events-none tpl:-translate-y-2 tpl:opacity-0"]),
|
|
189
190
|
style: {
|
|
190
191
|
"border-color": "var(--tpl-border)",
|
|
191
192
|
color: "var(--tpl-primary)",
|
|
192
193
|
"background-color": "var(--tpl-bg)",
|
|
193
194
|
"box-shadow": "var(--tpl-shadow)"
|
|
194
195
|
},
|
|
195
|
-
onClick: (
|
|
196
|
-
},
|
|
196
|
+
onClick: (t) => De(e)
|
|
197
|
+
}, i(e), 11, ve))), 128))])])) : m("", !0)
|
|
197
198
|
]),
|
|
198
|
-
|
|
199
|
-
"onUpdate:modelValue":
|
|
199
|
+
s("div", ye, [s("div", be, [re(s("textarea", {
|
|
200
|
+
"onUpdate:modelValue": a[3] ||= (e) => K.value = e,
|
|
200
201
|
class: "tpl:max-h-32 tpl:min-h-[64px] tpl:flex-1 tpl:resize-none tpl:border-none tpl:bg-transparent tpl:font-sans tpl:text-sm tpl:outline-none tpl:text-[var(--tpl-text)]",
|
|
201
|
-
placeholder:
|
|
202
|
-
disabled:
|
|
202
|
+
placeholder: f(V).aiChat.inputPlaceholder,
|
|
203
|
+
disabled: f(G).isGenerating.value,
|
|
203
204
|
rows: "3",
|
|
204
205
|
onKeydown: Oe
|
|
205
|
-
}, null, 40, xe), [[
|
|
206
|
+
}, null, 40, xe), [[h, K.value]]), s("button", {
|
|
206
207
|
class: "tpl-ai-send-btn tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1.5 tpl:transition-all tpl:duration-150 tpl:disabled:opacity-40 tpl:text-[var(--tpl-primary)]",
|
|
207
|
-
disabled: !K.value.trim() ||
|
|
208
|
+
disabled: !K.value.trim() || f(G).isGenerating.value,
|
|
208
209
|
onClick: Q
|
|
209
|
-
}, [
|
|
210
|
+
}, [l(f(fe), {
|
|
210
211
|
size: 16,
|
|
211
212
|
"stroke-width": 2
|
|
212
|
-
})], 8, Se)]),
|
|
213
|
-
])) :
|
|
213
|
+
})], 8, Se)]), s("p", Ce, i(f(V).aiMenu.disclaimer), 1)])
|
|
214
|
+
])) : m("", !0)]),
|
|
214
215
|
_: 1
|
|
215
216
|
}));
|
|
216
217
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import {
|
|
4
|
-
import { t as p } from "./
|
|
5
|
-
import { t as m } from "./
|
|
6
|
-
import { t as h } from "./
|
|
1
|
+
import { A as e, Dt as t, N as n, O as r, Ot as i, _ as a, c as o, d as s, l as c, r as l, s as u } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
import "./useEditorCore-vcWLdnjN.js";
|
|
3
|
+
import { L as d, t as f } from "./keys-Cv8-8GsD.js";
|
|
4
|
+
import { t as p } from "./image-up-BwBCmQ4P.js";
|
|
5
|
+
import { t as m } from "./shield-check-Bqluu8FS.js";
|
|
6
|
+
import { t as h } from "./sparkles-M4azPVSP.js";
|
|
7
7
|
import { t as g } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
-
import { n as _ } from "./useCloudI18n-
|
|
8
|
+
import { n as _ } from "./useCloudI18n-AKCy98qD.js";
|
|
9
9
|
//#region src/cloud/components/AiFeatureMenu.vue?vue&type=script&setup=true&lang.ts
|
|
10
10
|
var v = {
|
|
11
11
|
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)]",
|
|
@@ -13,11 +13,11 @@ var v = {
|
|
|
13
13
|
"backdrop-filter": "blur(8px)",
|
|
14
14
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
15
15
|
}
|
|
16
|
-
}, 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__*/ g(/* @__PURE__ */
|
|
16
|
+
}, 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__*/ g(/* @__PURE__ */ a({
|
|
17
17
|
__name: "AiFeatureMenu",
|
|
18
18
|
props: { activeFeature: {} },
|
|
19
19
|
emits: ["select"],
|
|
20
|
-
setup(
|
|
20
|
+
setup(a, { emit: g }) {
|
|
21
21
|
let C = g, { t: w } = _(), T = d(f, "AiFeatureMenu"), E = {
|
|
22
22
|
"ai-chat": "chat",
|
|
23
23
|
"design-reference": "designToTemplate",
|
|
@@ -25,38 +25,38 @@ var v = {
|
|
|
25
25
|
}, D = [
|
|
26
26
|
{
|
|
27
27
|
key: "ai-chat",
|
|
28
|
-
icon:
|
|
28
|
+
icon: h
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
key: "design-reference",
|
|
32
|
-
icon:
|
|
32
|
+
icon: p
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
key: "scoring",
|
|
36
|
-
icon:
|
|
36
|
+
icon: m
|
|
37
37
|
}
|
|
38
|
-
], O =
|
|
38
|
+
], O = u(() => D.filter((e) => T.isFeatureEnabled(E[e.key])));
|
|
39
39
|
function k(e) {
|
|
40
40
|
return e === "ai-chat" ? w.aiMenu.aiAssistant : e === "design-reference" ? w.aiMenu.designToTemplate : w.aiMenu.templateScore;
|
|
41
41
|
}
|
|
42
42
|
function A(e) {
|
|
43
43
|
return e === "ai-chat" ? w.aiMenu.aiAssistantDesc : e === "design-reference" ? w.aiMenu.designToTemplateDesc : w.aiMenu.templateScoreDesc;
|
|
44
44
|
}
|
|
45
|
-
return (
|
|
46
|
-
key:
|
|
45
|
+
return (u, d) => (r(), s("div", v, [(r(!0), s(l, null, e(O.value, (e) => (r(), s("button", {
|
|
46
|
+
key: e.key,
|
|
47
47
|
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",
|
|
48
|
-
style:
|
|
49
|
-
onClick: (
|
|
50
|
-
}, [
|
|
48
|
+
style: t({ backgroundColor: a.activeFeature === e.key ? "var(--tpl-primary-light)" : "transparent" }),
|
|
49
|
+
onClick: (t) => C("select", e.key)
|
|
50
|
+
}, [o("div", {
|
|
51
51
|
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)]",
|
|
52
|
-
style:
|
|
53
|
-
backgroundColor:
|
|
54
|
-
color:
|
|
52
|
+
style: t({
|
|
53
|
+
backgroundColor: a.activeFeature === e.key ? "var(--tpl-primary)" : "var(--tpl-bg-active)",
|
|
54
|
+
color: a.activeFeature === e.key ? "var(--tpl-bg)" : "var(--tpl-text-muted)"
|
|
55
55
|
})
|
|
56
|
-
}, [(
|
|
56
|
+
}, [(r(), c(n(e.icon), {
|
|
57
57
|
size: 15,
|
|
58
58
|
"stroke-width": 2
|
|
59
|
-
}))], 4),
|
|
59
|
+
}))], 4), o("div", b, [o("span", x, i(k(e.key)), 1), o("span", S, i(A(e.key)), 1)])], 12, y))), 128))]));
|
|
60
60
|
}
|
|
61
61
|
}), [["__scopeId", "data-v-07839fa3"]]);
|
|
62
62
|
//#endregion
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as u } from "./useI18n-
|
|
4
|
-
import { t as d } from "./circle-alert-
|
|
5
|
-
import { t as f } from "./triangle-alert-
|
|
1
|
+
import { Et as e, O as t, _ as n, d as r, l as i, nt as a, s as o, u as s, x as c } from "./vue.runtime.esm-bundler-l0XAqiyv.js";
|
|
2
|
+
import { N as l } from "./keys-Cv8-8GsD.js";
|
|
3
|
+
import { t as u } from "./useI18n-C-TDeJBt.js";
|
|
4
|
+
import { t as d } from "./circle-alert-C8xmpMsK.js";
|
|
5
|
+
import { t as f } from "./triangle-alert-BuRWnynk.js";
|
|
6
6
|
//#region src/components/canvas/BlockIssueBadge.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var p = ["title", "aria-label"], m = /* @__PURE__ */ n({
|
|
8
8
|
__name: "BlockIssueBadge",
|
|
9
9
|
props: { blockId: {} },
|
|
10
10
|
setup(n) {
|
|
11
|
-
let m = n, { t: h } = u(), g = c(l, null), _ =
|
|
12
|
-
return (n,
|
|
11
|
+
let m = n, { t: h } = u(), g = c(l, null), _ = o(() => (g?.issues.value ?? []).filter((e) => e.blockId === m.blockId)), v = o(() => _.value.some((e) => e.severity === "error") ? "error" : _.value.some((e) => e.severity === "warning") ? "warning" : null), y = o(() => v.value === "error" ? h.issues.badgeError : h.issues.badgeWarning);
|
|
12
|
+
return (n, o) => v.value ? (t(), r("span", {
|
|
13
13
|
key: 0,
|
|
14
|
-
class:
|
|
14
|
+
class: e(["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)]"]),
|
|
15
15
|
title: y.value,
|
|
16
16
|
"aria-label": y.value,
|
|
17
17
|
role: "img"
|
|
18
|
-
}, [v.value === "error" ? (
|
|
18
|
+
}, [v.value === "error" ? (t(), i(a(d), {
|
|
19
19
|
key: 0,
|
|
20
20
|
size: 14,
|
|
21
21
|
"stroke-width": 2.25,
|
|
22
22
|
fill: "currentColor",
|
|
23
23
|
stroke: "var(--tpl-bg)"
|
|
24
|
-
})) : (
|
|
24
|
+
})) : (t(), i(a(f), {
|
|
25
25
|
key: 1,
|
|
26
26
|
size: 14,
|
|
27
27
|
"stroke-width": 2.25,
|
|
28
28
|
fill: "currentColor",
|
|
29
29
|
stroke: "var(--tpl-bg)"
|
|
30
|
-
}))], 10, p)) :
|
|
30
|
+
}))], 10, p)) : s("", !0);
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|