@templatical/editor 0.12.1 → 0.14.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-CXH7l1Ar.js → AiChatSidebar-J8iO_sX7.js} +16 -16
- package/dist/{AiFeatureMenu-BKbUUc1D.js → AiFeatureMenu-F2diEDgV.js} +10 -10
- package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-a-qlByxF.js} +5 -5
- package/dist/{CloudEditor-CB16QzKM.js → CloudEditor-CDjtwb4i.js} +284 -250
- package/dist/{CollaboratorBar-ACUA7lBJ.js → CollaboratorBar-B_EnJLtW.js} +4 -4
- package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-DaP9BA_r.js} +18 -18
- package/dist/{CountdownBlock-C-6o19qS.js → CountdownBlock-DtAokAVw.js} +3 -3
- package/dist/{CountdownToolbar-Dol7Q0Pv.js → CountdownToolbar-Dtqgwy0g.js} +3 -3
- package/dist/{DesignReferenceSidebar-0dTsBW08.js → DesignReferenceSidebar-BHRlTqlT.js} +21 -33
- package/dist/{IssuesPanel-I0z6k6-H.js → IssuesPanel-u7ee3Wrl.js} +11 -11
- package/dist/{LoadingTrack-C7mGWPHS.js → LoadingTrack-CV3ID80N.js} +1 -1
- package/dist/ModuleBrowserModal-DOsdaS6s.js +201 -0
- package/dist/{ModulePreviewCanvas-CpaumPMS.js → ModulePreviewCanvas-Cx4MOJ0X.js} +21 -21
- package/dist/{NumberWithSuffix-Bp40ik4l.js → NumberWithSuffix-D2mW_DhT.js} +4 -4
- package/dist/{ParagraphEditor-BqRFV_Y-.js → ParagraphEditor-DMzkVnST.js} +156 -136
- package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-CRCxCwKf.js} +7 -7
- package/dist/{SaveModuleDialog-DmfvH5D0.js → SaveModuleDialog-DuEKgumL.js} +8 -8
- package/dist/{SnapshotHistory-C052o-8U.js → SnapshotHistory-CVgiNJtE.js} +12 -12
- package/dist/{TemplateScoringPanel-CUs8XmIi.js → TemplateScoringPanel-lm0_9nYi.js} +26 -26
- package/dist/{TestEmailModal-BIIxRWUt.js → TestEmailModal-WBMdiW5S.js} +5 -5
- package/dist/{TitleEditor-FMh54Cx5.js → TitleEditor-eyT0h-Sa.js} +71 -55
- package/dist/{TplModal-utMtXzSO.js → TplModal-tjQ7OB0g.js} +4 -4
- package/dist/{blockTypeIcons-C6UGDmrC.js → blockTypeIcons-DdB3uTKD.js} +5 -5
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-4NhCFeTh.js → AiFeatureMenu-D7rB2SBs.js} +9 -9
- package/dist/cdn/chunks/{AiFeatureMenu-4NhCFeTh.js.map → AiFeatureMenu-D7rB2SBs.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-BYKThwhE.js → BlockIssueBadge-DHOe0pgx.js} +6 -6
- package/dist/cdn/chunks/{BlockIssueBadge-BYKThwhE.js.map → BlockIssueBadge-DHOe0pgx.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-DSeihOan.js → CloudEditor-DNed_Ym0.js} +273 -239
- package/dist/cdn/chunks/CloudEditor-DNed_Ym0.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-Dn5gXNDt.js → CollaboratorBar-sj_9Lee3.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-Dn5gXNDt.js.map → CollaboratorBar-sj_9Lee3.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-hYoJdVOt.js → CountdownBlock-C1Ikjpn4.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-hYoJdVOt.js.map → CountdownBlock-C1Ikjpn4.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BQn0Kj0X.js → CountdownToolbar-j1G_X8rB.js} +4 -4
- package/dist/cdn/chunks/CountdownToolbar-j1G_X8rB.js.map +1 -0
- package/dist/cdn/chunks/{IssuesPanel-_5fEnivU.js → IssuesPanel-CTOf3PsH.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-_5fEnivU.js.map → IssuesPanel-CTOf3PsH.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DtCksAeW.js → ModuleBrowserModal-DCh88-rr.js} +13 -10
- package/dist/cdn/chunks/{ModuleBrowserModal-DtCksAeW.js.map → ModuleBrowserModal-DCh88-rr.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-CCOvabZd.js → ModulePreviewCanvas-DJqvTKmg.js} +19 -19
- package/dist/cdn/chunks/{ModulePreviewCanvas-CCOvabZd.js.map → ModulePreviewCanvas-DJqvTKmg.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-cdWjAK6y.js → NumberWithSuffix-Bu45XWSl.js} +5 -5
- package/dist/cdn/chunks/{NumberWithSuffix-cdWjAK6y.js.map → NumberWithSuffix-Bu45XWSl.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BnhnFOW1.js → ParagraphEditor-DwZqLJp2.js} +131 -111
- package/dist/cdn/chunks/ParagraphEditor-DwZqLJp2.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-DV2yknp8.js → RichTextEditorContent-CIuZ-2DV.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-DV2yknp8.js.map → RichTextEditorContent-CIuZ-2DV.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-CCX5U7VA.js → SaveModuleDialog-Bep0X2s_.js} +6 -6
- package/dist/cdn/chunks/{SaveModuleDialog-CCX5U7VA.js.map → SaveModuleDialog-Bep0X2s_.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CQqklX0D.js → TitleEditor-DO1-h3RY.js} +62 -46
- package/dist/cdn/chunks/TitleEditor-DO1-h3RY.js.map +1 -0
- package/dist/cdn/chunks/blockTypeIcons-8o24HVJu.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-CpGPHppB.js.map → blockTypeIcons-8o24HVJu.js.map} +1 -1
- package/dist/cdn/chunks/{de-BpseTWOA.js → de-LsV0u1tP.js} +20 -2
- package/dist/cdn/chunks/de-LsV0u1tP.js.map +1 -0
- package/dist/cdn/chunks/{draggable-Bci-fq8y.js → draggable-kPCz_3zM.js} +14 -5
- package/dist/cdn/chunks/{draggable-Bci-fq8y.js.map → draggable-kPCz_3zM.js.map} +1 -1
- package/dist/cdn/chunks/{en-VGIQ0WNq.js → en-Bb8X1bOs.js} +20 -2
- package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
- package/dist/cdn/chunks/{extensions-Ds9GnMcd.js → extensions-iwBXnEwq.js} +21 -21
- package/dist/cdn/chunks/{extensions-Ds9GnMcd.js.map → extensions-iwBXnEwq.js.map} +1 -1
- package/dist/cdn/chunks/{features-DxWz_Enw.js → features-CkTMVylx.js} +996 -817
- package/dist/cdn/chunks/features-CkTMVylx.js.map +1 -0
- package/dist/cdn/chunks/{icons-BflGUmFY.js → icons-9zjCuoJx.js} +158 -152
- package/dist/cdn/chunks/icons-9zjCuoJx.js.map +1 -0
- package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +1 -1
- package/dist/cdn/chunks/{media-library-C479-QcE.js → media-library-DMRIPx4g.js} +373 -371
- package/dist/cdn/chunks/media-library-DMRIPx4g.js.map +1 -0
- package/dist/cdn/chunks/{pt-BR-zAqpLQbW.js → pt-BR-BwJY_cvb.js} +20 -2
- package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +1 -0
- package/dist/cdn/chunks/{pusher-BICWUP2j.js → pusher-CdEqyLwF.js} +6 -3
- package/dist/cdn/chunks/{pusher-BICWUP2j.js.map → pusher-CdEqyLwF.js.map} +1 -1
- package/dist/cdn/chunks/quality-CyeUgs_c.js +2176 -0
- package/dist/cdn/chunks/{quality-BL_pEvFP.js.map → quality-CyeUgs_c.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-C0vdAODQ.js → renderer-BIKUEKDD.js} +38 -29
- package/dist/cdn/chunks/{renderer-C0vdAODQ.js.map → renderer-BIKUEKDD.js.map} +1 -1
- package/dist/cdn/chunks/{src-DzvOWQ9S.js → src-pDy_imWG.js} +56 -56
- package/dist/cdn/chunks/{src-DzvOWQ9S.js.map → src-pDy_imWG.js.map} +1 -1
- package/dist/cdn/chunks/{styles-LfeoSNRA.js → styles-D4Bd3SCx.js} +1356 -905
- package/dist/cdn/chunks/styles-D4Bd3SCx.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CwScfbsM.js → tiptap-BlLFFU3M.js} +2233 -2213
- package/dist/cdn/chunks/tiptap-BlLFFU3M.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +101 -97
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BRzXxFHr.js → check-CYJwFmjy.js} +1 -1
- package/dist/{chevron-down-DmEgzmYT.js → chevron-down-C5l-DzAA.js} +1 -1
- package/dist/{circle-alert-BStvZr3O.js → circle-alert-wf5HUFZY.js} +1 -1
- package/dist/{clock-Blwp_1R6.js → clock-Bj0bQw-K.js} +1 -1
- package/dist/{cloud-_olro76D.js → cloud-CoFDm9YA.js} +1 -1
- package/dist/{createLucideIcon-CmPAC-gt.js → createLucideIcon-Bad2kKE0.js} +4 -4
- package/dist/{de-BpseTWOA.js → de-LsV0u1tP.js} +19 -1
- package/dist/{dist-BwgjpLfr.js → dist-34OcyoK1.js} +1 -1
- package/dist/{dist-Cz79qrLL.js → dist-B7w6xTU6.js} +1 -1
- package/dist/{dist-DULfKmTh.js → dist-BX3gGwL8.js} +5 -5
- package/dist/{dist-412xXefB.js → dist-Bn703mnA.js} +1 -1
- package/dist/{dist-u0iIJH3V.js → dist-CADDCv0o.js} +1 -1
- package/dist/{dist-BNEdeWub.js → dist-CGvz7vkq.js} +1 -1
- package/dist/{dist-BlG7k25W.js → dist-CLpPNKy9.js} +1 -1
- package/dist/{dist-BCQZZUE9.js → dist-ChMninLH.js} +1 -1
- package/dist/{dist-b7Ak-CuM.js → dist-CrQZ_af9.js} +1 -1
- package/dist/{dist-DhKTdU52.js → dist-CyjyYg52.js} +1426 -1406
- package/dist/{dist-D6x1cQeh.js → dist-Dd3ibRZm.js} +2 -2
- package/dist/{dist-DJ9aD8yA.js → dist-DuCzdgDA.js} +54 -5
- package/dist/{dist-o73iaGqy.js → dist-U5vfDdYI.js} +1 -1
- package/dist/{en-VGIQ0WNq.js → en-Bb8X1bOs.js} +19 -1
- package/dist/{extensions-XPlNAKIL.js → extensions-J439b7y7.js} +5 -5
- package/dist/{image-up-BFPbw_Zq.js → image-up-x8-WXfsx.js} +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/{info-B_qLEBN2.js → info-RS_fGcGi.js} +1 -1
- package/dist/keys-DgYXDafq.js +10 -0
- package/dist/{list-checks-CGg7JxPm.js → list-checks-Bf7XdDyv.js} +1 -1
- package/dist/{loader-circle-CDF8eR_Q.js → loader-circle-CLZ0_FvW.js} +1 -1
- package/dist/{message-circle-C3cHsCJl.js → message-circle-B-1bN9ab.js} +1 -1
- package/dist/{pt-BR-zAqpLQbW.js → pt-BR-BwJY_cvb.js} +19 -1
- package/dist/{refresh-cw-Butml7Q4.js → refresh-cw-CWKWqJYG.js} +1 -1
- package/dist/scan-line-BtK5dEai.js +31 -0
- package/dist/{send-k7npFJNO.js → send-Cn1IUdzh.js} +1 -1
- package/dist/{shield-check-CV6GbmCu.js → shield-check-CrvMk4Ea.js} +1 -1
- package/dist/{sparkles-C965Xop4.js → sparkles-CgfjwvnG.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-DSm9Ijxt.js → styles-BUwDOWd3.js} +1335 -882
- package/dist/templatical-editor.js +143 -139
- package/dist/{text-align-start-Bxnps8fH.js → text-align-start-C3r_Rnvy.js} +1 -1
- package/dist/{trash-2-DpGb7fIt.js → trash-2-CjERg4x9.js} +1 -1
- package/dist/{triangle-alert-BKYElAwz.js → triangle-alert-Chkny574.js} +1 -1
- package/dist/upload-e5kDRkPb.js +17 -0
- package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-cUQj9rmB.js} +1 -1
- package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-CYJKqXtI.js} +2 -2
- package/dist/{useEditorCore-D7dQFRkw.js → useEditorCore-8JxXDOA4.js} +1075 -894
- package/dist/{useI18n-CTs_bP9d.js → useI18n-BWqM8i78.js} +2 -2
- package/dist/{useMergeTag-e3RSY-s3.js → useMergeTag-NHC4ylza.js} +3 -3
- package/dist/usePopoverRoot-B1sdY4es.js +8 -0
- package/dist/{vue.runtime.esm-bundler-B2k01iQh.js → vue.runtime.esm-bundler-BPa483TZ.js} +13 -4
- package/dist/{x-CGjkjdKK.js → x-DiPIbccg.js} +1 -1
- package/package.json +12 -12
- package/dist/ModuleBrowserModal-Bz9hSjMS.js +0 -198
- package/dist/cdn/chunks/CloudEditor-DSeihOan.js.map +0 -1
- package/dist/cdn/chunks/CountdownToolbar-BQn0Kj0X.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-BnhnFOW1.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-CQqklX0D.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-CpGPHppB.js +0 -22
- package/dist/cdn/chunks/de-BpseTWOA.js.map +0 -1
- package/dist/cdn/chunks/en-VGIQ0WNq.js.map +0 -1
- package/dist/cdn/chunks/features-DxWz_Enw.js.map +0 -1
- package/dist/cdn/chunks/icons-BflGUmFY.js.map +0 -1
- package/dist/cdn/chunks/media-library-C479-QcE.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-zAqpLQbW.js.map +0 -1
- package/dist/cdn/chunks/quality-BL_pEvFP.js +0 -2176
- package/dist/cdn/chunks/styles-LfeoSNRA.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +0 -1
- package/dist/keys-mFiJ5N0_.js +0 -10
- package/dist/scan-line-XYEqim_E.js +0 -25
- package/dist/usePopoverRoot-DVh7NY1q.js +0 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as e, M as t, b as n, d as r, f as i, h as a, l as o, m as s, ot as c, p as l, rt as u, st as d } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import { t as f } from "./createLucideIcon-
|
|
4
|
-
import { n as p } from "./useCloudI18n-
|
|
1
|
+
import { A as e, M as t, b as n, d as r, f as i, h as a, l as o, m as s, ot as c, p as l, rt as u, st as d } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
2
|
+
import "./useEditorCore-8JxXDOA4.js";
|
|
3
|
+
import { t as f } from "./createLucideIcon-Bad2kKE0.js";
|
|
4
|
+
import { n as p } from "./useCloudI18n-CYJKqXtI.js";
|
|
5
5
|
import { t as m } from "./readableTextColor-f8Kykfnh.js";
|
|
6
6
|
var h = f("wifi-off", [
|
|
7
7
|
["path", {
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { A as e, B as t, E as n, L as r, M as i, X as a, _ as ee, a as o, at as s, b as c, d as l, f as u, h as d, l as f, m as p, ot as te, p as m, rt as h, st as g, t as _, v, z as y } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import {
|
|
3
|
-
import { t as ae } from "./useI18n-
|
|
4
|
-
import { t as x } from "./createLucideIcon-
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as C } from "./message-circle-
|
|
9
|
-
import { t as w } from "./send-
|
|
10
|
-
import { t as T } from "./trash-2-
|
|
11
|
-
import { t as E } from "./x-
|
|
1
|
+
import { A as e, B as t, E as n, L as r, M as i, X as a, _ as ee, a as o, at as s, b as c, d as l, f as u, h as d, l as f, m as p, ot as te, p as m, rt as h, st as g, t as _, v, z as y } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
2
|
+
import { L as b, l as ne, m as re, r as ie } from "./keys-DgYXDafq.js";
|
|
3
|
+
import { t as ae } from "./useI18n-BWqM8i78.js";
|
|
4
|
+
import { t as x } from "./createLucideIcon-Bad2kKE0.js";
|
|
5
|
+
import { t as oe } from "./check-CYJwFmjy.js";
|
|
6
|
+
import { t as se } from "./chevron-down-C5l-DzAA.js";
|
|
7
|
+
import { t as S } from "./loader-circle-CLZ0_FvW.js";
|
|
8
|
+
import { t as C } from "./message-circle-B-1bN9ab.js";
|
|
9
|
+
import { t as w } from "./send-Cn1IUdzh.js";
|
|
10
|
+
import { t as T } from "./trash-2-CjERg4x9.js";
|
|
11
|
+
import { t as E } from "./x-DiPIbccg.js";
|
|
12
12
|
import { t as D } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { n as ce } from "./useCloudI18n-
|
|
13
|
+
import { n as ce } from "./useCloudI18n-CYJKqXtI.js";
|
|
14
14
|
import { t as le } from "./formatRelativeTime-CtUU-QZ8.js";
|
|
15
|
-
var ue = x("
|
|
15
|
+
var ue = x("chevron-up", [["path", {
|
|
16
|
+
d: "m18 15-6-6-6 6",
|
|
17
|
+
key: "153udz"
|
|
18
|
+
}]]), de = x("circle-check", [["circle", {
|
|
16
19
|
cx: "12",
|
|
17
20
|
cy: "12",
|
|
18
21
|
r: "10",
|
|
@@ -20,9 +23,6 @@ var ue = x("circle-check", [["circle", {
|
|
|
20
23
|
}], ["path", {
|
|
21
24
|
d: "m9 12 2 2 4-4",
|
|
22
25
|
key: "dzmm74"
|
|
23
|
-
}]]), de = x("chevron-up", [["path", {
|
|
24
|
-
d: "m18 15-6-6-6 6",
|
|
25
|
-
key: "153udz"
|
|
26
26
|
}]]), O = x("pencil", [["path", {
|
|
27
27
|
d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",
|
|
28
28
|
key: "1a8usu"
|
|
@@ -249,7 +249,7 @@ var ue = x("circle-check", [["circle", {
|
|
|
249
249
|
class: "tpl-comment-action tpl:rounded tpl:p-1 tpl:transition-colors tpl:duration-150",
|
|
250
250
|
title: n.resolved_at ? h(M).comments.unresolve : h(M).comments.resolve,
|
|
251
251
|
onClick: (e) => jt(n.id)
|
|
252
|
-
}, [v(h(
|
|
252
|
+
}, [v(h(de), {
|
|
253
253
|
size: 13,
|
|
254
254
|
"stroke-width": 2,
|
|
255
255
|
class: "tpl-resolve-icon",
|
|
@@ -322,7 +322,7 @@ var ue = x("circle-check", [["circle", {
|
|
|
322
322
|
key: 0,
|
|
323
323
|
class: "tpl:flex tpl:items-center tpl:gap-0.5 tpl:text-[11px] tpl:font-medium tpl:transition-colors tpl:duration-150 tpl:text-[var(--tpl-text-muted)]",
|
|
324
324
|
onClick: (e) => Et(n.id)
|
|
325
|
-
}, [H.value.has(n.id) ? (e(), m(h(
|
|
325
|
+
}, [H.value.has(n.id) ? (e(), m(h(ue), {
|
|
326
326
|
key: 0,
|
|
327
327
|
size: 11,
|
|
328
328
|
"stroke-width": 2
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { A as t, M as n, X as r, b as i, d as a, f as o, h as s, l as c, m as l, ot as u, rt as d, st as f } from "./vue.runtime.esm-bundler-
|
|
3
|
-
import {
|
|
4
|
-
import { t as m } from "./useI18n-
|
|
2
|
+
import { A as t, M as n, X as r, b as i, d as a, f as o, h as s, l as c, m as l, ot as u, rt as d, st as f } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
3
|
+
import { c as p } from "./dist-DuCzdgDA.js";
|
|
4
|
+
import { t as m } from "./useI18n-BWqM8i78.js";
|
|
5
5
|
//#region src/components/blocks/CountdownBlock.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var h = {
|
|
7
7
|
key: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as e, M as t, _ as n, at as r, b as i, d as a, f as o, h as s, l as c, p as l, rt as u, st as d, v as f, z as p } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { t as m } from "./useI18n-
|
|
1
|
+
import { A as e, M as t, _ as n, at as r, b as i, d as a, f as o, h as s, l as c, p as l, rt as u, st as d, v as f, z as p } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
2
|
+
import { t as m } from "./useI18n-BWqM8i78.js";
|
|
3
3
|
import { f as h } from "./styleConstants-lGobwiLH.js";
|
|
4
|
-
import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-
|
|
4
|
+
import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-D2mW_DhT.js";
|
|
5
5
|
//#region src/components/toolbar/CheckboxItem.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var b = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, x = ["checked"], S = /* @__PURE__ */ i({
|
|
7
7
|
__name: "CheckboxItem",
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { A as e, B as t, D as n, L as r, X as i, _ as a, a as ee, at as te, b as o, d as ne, f as s, h as c, m as l, ot as u, p as re, rt as d, st as f, t as ie, v as p, z as ae } from "./vue.runtime.esm-bundler-
|
|
1
|
+
import { A as e, B as t, D as n, L as r, X as i, _ as a, a as ee, at as te, b as o, d as ne, f as s, h as c, m as l, ot as u, p as re, rt as d, st as f, t as ie, v as p, z as ae } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
2
2
|
import "./timeouts-Bmi_yePw.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
3
|
+
import { L as m, m as oe, r as se } from "./keys-DgYXDafq.js";
|
|
4
|
+
import { t as h } from "./createLucideIcon-Bad2kKE0.js";
|
|
5
|
+
import { t as ce } from "./circle-alert-wf5HUFZY.js";
|
|
6
|
+
import { t as g } from "./image-up-x8-WXfsx.js";
|
|
7
|
+
import { t as _ } from "./upload-e5kDRkPb.js";
|
|
8
|
+
import { t as v } from "./x-DiPIbccg.js";
|
|
9
|
+
import { t as le } from "./LoadingTrack-CV3ID80N.js";
|
|
9
10
|
import { t as y } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
10
|
-
import { n as
|
|
11
|
-
import { u as
|
|
12
|
-
var
|
|
11
|
+
import { n as ue } from "./useCloudI18n-CYJKqXtI.js";
|
|
12
|
+
import { u as de } from "./cloud-CoFDm9YA.js";
|
|
13
|
+
var fe = h("file-image", [
|
|
13
14
|
["path", {
|
|
14
15
|
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
15
16
|
key: "1oefj6"
|
|
@@ -28,7 +29,7 @@ var de = g("file-image", [
|
|
|
28
29
|
d: "m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",
|
|
29
30
|
key: "wt3hpn"
|
|
30
31
|
}]
|
|
31
|
-
]), b =
|
|
32
|
+
]), b = h("file-text", [
|
|
32
33
|
["path", {
|
|
33
34
|
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
34
35
|
key: "1oefj6"
|
|
@@ -49,19 +50,6 @@ var de = g("file-image", [
|
|
|
49
50
|
d: "M16 17H8",
|
|
50
51
|
key: "z1uh3a"
|
|
51
52
|
}]
|
|
52
|
-
]), fe = g("upload", [
|
|
53
|
-
["path", {
|
|
54
|
-
d: "M12 3v12",
|
|
55
|
-
key: "1x0j5s"
|
|
56
|
-
}],
|
|
57
|
-
["path", {
|
|
58
|
-
d: "m17 8-5-5-5 5",
|
|
59
|
-
key: "7q97r8"
|
|
60
|
-
}],
|
|
61
|
-
["path", {
|
|
62
|
-
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
|
|
63
|
-
key: "ih7n3h"
|
|
64
|
-
}]
|
|
65
53
|
]), pe = {
|
|
66
54
|
key: 0,
|
|
67
55
|
class: "tpl-design-sidebar tpl:absolute tpl:top-14 tpl:right-0 tpl:bottom-0 tpl:z-panel tpl:flex tpl:w-[360px] tpl:flex-col tpl:border-l tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)]"
|
|
@@ -90,9 +78,9 @@ var de = g("file-image", [
|
|
|
90
78
|
hasExistingBlocks: { type: Boolean }
|
|
91
79
|
},
|
|
92
80
|
emits: ["close", "apply"],
|
|
93
|
-
setup(o, { emit:
|
|
94
|
-
let y = o, z =
|
|
95
|
-
authManager: m(
|
|
81
|
+
setup(o, { emit: h }) {
|
|
82
|
+
let y = o, z = h, { t: B } = ue(), xe = m(oe, "DesignReferenceSidebar"), V = de({
|
|
83
|
+
authManager: m(se, "DesignReferenceSidebar"),
|
|
96
84
|
getTemplateId: () => xe.state.template?.id ?? null,
|
|
97
85
|
onApply: (e) => z("apply", e)
|
|
98
86
|
}), H = i(null), U = i("image"), W = i(null), G = i(""), K = i(null), q = i(!1), J = i(!1), Y = ne(() => V.isGenerating.value ? !1 : W.value !== null);
|
|
@@ -163,7 +151,7 @@ var de = g("file-image", [
|
|
|
163
151
|
"leave-from-class": "tpl:translate-x-0",
|
|
164
152
|
"leave-to-class": "tpl:translate-x-full"
|
|
165
153
|
}, {
|
|
166
|
-
default: ae(() => [o.visible ? (e(), c("div", pe, [s("div", me, [s("div", he, [p(d(
|
|
154
|
+
default: ae(() => [o.visible ? (e(), c("div", pe, [s("div", me, [s("div", he, [p(d(g), {
|
|
167
155
|
size: 13,
|
|
168
156
|
"stroke-width": 2
|
|
169
157
|
}), s("span", null, f(d(B).designReference.title), 1)]), s("button", {
|
|
@@ -172,7 +160,7 @@ var de = g("file-image", [
|
|
|
172
160
|
}, [p(d(v), {
|
|
173
161
|
size: 14,
|
|
174
162
|
"stroke-width": 2
|
|
175
|
-
})])]), s("div", x, [d(V).isGenerating.value ? (e(), c("div", S, [s("div", C, [p(
|
|
163
|
+
})])]), s("div", x, [d(V).isGenerating.value ? (e(), c("div", S, [s("div", C, [p(le), s("p", w, f(d(B).designReference.generating), 1)])])) : (e(), c("div", T, [
|
|
176
164
|
s("div", E, [s("button", {
|
|
177
165
|
class: "tpl:flex tpl:flex-1 tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-2 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
178
166
|
style: u({
|
|
@@ -181,7 +169,7 @@ var de = g("file-image", [
|
|
|
181
169
|
boxShadow: U.value === "image" ? "var(--tpl-shadow)" : "none"
|
|
182
170
|
}),
|
|
183
171
|
onClick: r[1] ||= (e) => X("image")
|
|
184
|
-
}, [p(d(
|
|
172
|
+
}, [p(d(fe), {
|
|
185
173
|
size: 12,
|
|
186
174
|
"stroke-width": 2
|
|
187
175
|
}), a(" " + f(d(B).designReference.uploadImage), 1)], 4), s("button", {
|
|
@@ -223,7 +211,7 @@ var de = g("file-image", [
|
|
|
223
211
|
onDragleave: we,
|
|
224
212
|
onDrop: Te
|
|
225
213
|
}, [
|
|
226
|
-
p(d(
|
|
214
|
+
p(d(_), {
|
|
227
215
|
size: 24,
|
|
228
216
|
"stroke-width": 1.5,
|
|
229
217
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
@@ -252,7 +240,7 @@ var de = g("file-image", [
|
|
|
252
240
|
class: "tpl:flex-1 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
253
241
|
onClick: $
|
|
254
242
|
}, f(d(B).designReference.replaceConfirm), 1)])])) : l("", !0),
|
|
255
|
-
d(V).error.value ? (e(), c("div", ve, [p(d(
|
|
243
|
+
d(V).error.value ? (e(), c("div", ve, [p(d(ce), {
|
|
256
244
|
size: 14,
|
|
257
245
|
"stroke-width": 2,
|
|
258
246
|
class: "tpl:mt-0.5 tpl:shrink-0"
|
|
@@ -262,7 +250,7 @@ var de = g("file-image", [
|
|
|
262
250
|
class: "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
263
251
|
disabled: !Y.value,
|
|
264
252
|
onClick: $
|
|
265
|
-
}, [p(d(
|
|
253
|
+
}, [p(d(g), {
|
|
266
254
|
size: 16,
|
|
267
255
|
"stroke-width": 2
|
|
268
256
|
}), a(" " + f(d(B).designReference.generate), 1)], 8, ye)),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as e, F as t, M as n, _ as r, at as i, b as a, d as o, f as s, h as c, l, m as u, p as d, rt as f, st as p, v as m, w as h } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import {
|
|
3
|
-
import { t as v } from "./useI18n-
|
|
4
|
-
import { t as y } from "./createLucideIcon-
|
|
5
|
-
import { t as b } from "./circle-alert-
|
|
6
|
-
import { t as x } from "./
|
|
7
|
-
import { t as S } from "./
|
|
8
|
-
import { t as C } from "./
|
|
1
|
+
import { A as e, F as t, M as n, _ as r, at as i, b as a, d as o, f as s, h as c, l, m as u, p as d, rt as f, st as p, v as m, w as h } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
2
|
+
import { N as g, m as _ } from "./keys-DgYXDafq.js";
|
|
3
|
+
import { t as v } from "./useI18n-BWqM8i78.js";
|
|
4
|
+
import { t as y } from "./createLucideIcon-Bad2kKE0.js";
|
|
5
|
+
import { t as b } from "./circle-alert-wf5HUFZY.js";
|
|
6
|
+
import { t as x } from "./info-RS_fGcGi.js";
|
|
7
|
+
import { t as S } from "./list-checks-Bf7XdDyv.js";
|
|
8
|
+
import { t as C } from "./triangle-alert-Chkny574.js";
|
|
9
9
|
var w = y("arrow-right", [["path", {
|
|
10
10
|
d: "M5 12h14",
|
|
11
11
|
key: "1ays0h"
|
|
@@ -35,7 +35,7 @@ var w = y("arrow-right", [["path", {
|
|
|
35
35
|
B?.applyFix(e);
|
|
36
36
|
}
|
|
37
37
|
return (a, o) => (e(), c("div", E, [s("header", D, [
|
|
38
|
-
m(f(
|
|
38
|
+
m(f(S), {
|
|
39
39
|
size: 16,
|
|
40
40
|
"stroke-width": 1.5
|
|
41
41
|
}),
|
|
@@ -56,14 +56,14 @@ var w = y("arrow-right", [["path", {
|
|
|
56
56
|
{
|
|
57
57
|
key: "warnings",
|
|
58
58
|
title: f(y).issues.groupWarnings,
|
|
59
|
-
icon: f(
|
|
59
|
+
icon: f(C),
|
|
60
60
|
items: U.value,
|
|
61
61
|
tone: "tpl:text-[var(--tpl-warning)]"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
key: "info",
|
|
65
65
|
title: f(y).issues.groupInfo,
|
|
66
|
-
icon: f(
|
|
66
|
+
icon: f(x),
|
|
67
67
|
items: W.value,
|
|
68
68
|
tone: "tpl:text-[var(--tpl-text-muted)]"
|
|
69
69
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, h as t } from "./vue.runtime.esm-bundler-
|
|
1
|
+
import { A as e, h as t } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
//#region src/components/LoadingTrack.vue
|
|
4
4
|
var r = {}, i = { class: "tpl-loading-track" };
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { A as e, B as t, F as n, L as r, M as i, X as a, a as o, b as s, c, d as l, f as u, h as d, i as ee, l as f, m as te, ot as ne, p, rt as m, st as h, v as g, y as re, z as ie } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
2
|
+
import "./useEditorCore-8JxXDOA4.js";
|
|
3
|
+
import { L as _, j as ae, m as oe } from "./keys-DgYXDafq.js";
|
|
4
|
+
import { t as se } from "./useI18n-BWqM8i78.js";
|
|
5
|
+
import { n as ce, r as v, t as y } from "./blockTypeIcons-DdB3uTKD.js";
|
|
6
|
+
import { t as le } from "./trash-2-CjERg4x9.js";
|
|
7
|
+
import { t as ue } from "./x-DiPIbccg.js";
|
|
8
|
+
import { n as de } from "./useCloudI18n-CYJKqXtI.js";
|
|
9
|
+
import { t as fe } from "./TplModal-tjQ7OB0g.js";
|
|
10
|
+
//#region src/cloud/components/ModuleBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
+
var pe = {
|
|
12
|
+
role: "dialog",
|
|
13
|
+
"aria-modal": "true",
|
|
14
|
+
"aria-labelledby": "tpl-module-browser-title",
|
|
15
|
+
class: "tpl-scale-in tpl:mx-4 tpl:flex tpl:w-full tpl:max-w-[1000px] tpl:flex-col tpl:rounded-[var(--tpl-radius-lg)]",
|
|
16
|
+
style: {
|
|
17
|
+
"background-color": "var(--tpl-bg-elevated)",
|
|
18
|
+
"box-shadow": "var(--tpl-shadow-xl)",
|
|
19
|
+
"max-height": "90vh"
|
|
20
|
+
}
|
|
21
|
+
}, me = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-b tpl:px-5 tpl:py-4 tpl:border-[var(--tpl-border)]" }, b = {
|
|
22
|
+
id: "tpl-module-browser-title",
|
|
23
|
+
class: "tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
24
|
+
}, x = ["aria-label"], S = { class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:overflow-hidden" }, C = { class: "tpl:flex tpl:w-[300px] tpl:shrink-0 tpl:flex-col tpl:overflow-hidden" }, w = { class: "tpl:px-4 tpl:pt-4 tpl:pb-3" }, T = { class: "tpl:relative" }, E = ["placeholder"], D = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:px-4 tpl:pb-4" }, O = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "tpl:flex tpl:flex-col tpl:gap-1"
|
|
27
|
+
}, k = ["aria-pressed", "onClick"], A = { class: "tpl:flex tpl:items-center tpl:gap-2" }, j = { class: "tpl:flex-1 tpl:truncate tpl:text-xs tpl:font-semibold tpl:text-[var(--tpl-text)]" }, M = { class: "tpl:shrink-0 tpl:rounded-full tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-muted)]" }, N = { class: "tpl:mt-1 tpl:flex tpl:items-center tpl:gap-1" }, P = {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: "tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]"
|
|
30
|
+
}, F = ["aria-label", "onClick"], I = [
|
|
31
|
+
"aria-label",
|
|
32
|
+
"title",
|
|
33
|
+
"onClick"
|
|
34
|
+
], L = {
|
|
35
|
+
key: 1,
|
|
36
|
+
class: "tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:py-12"
|
|
37
|
+
}, R = { class: "tpl:mt-2 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, z = { class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden tpl:border-l tpl:border-[var(--tpl-border)]" }, he = {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:overflow-hidden"
|
|
40
|
+
}, ge = { class: "tpl:flex-1 tpl:overflow-y-auto tpl:p-4" }, _e = {
|
|
41
|
+
key: 1,
|
|
42
|
+
class: "tpl:flex tpl:flex-1 tpl:flex-col tpl:items-center tpl:justify-center tpl:px-4"
|
|
43
|
+
}, ve = { class: "tpl:mt-2 tpl:text-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, ye = { class: "tpl:flex tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3 tpl:border-[var(--tpl-border)]" }, be = { class: "tpl:flex tpl:items-center tpl:gap-2" }, xe = { class: "tpl:shrink-0 tpl:text-xs tpl:text-[var(--tpl-text-dim)]" }, Se = ["value"], Ce = { class: "tpl:flex tpl:gap-2" }, we = ["disabled"], B = /* @__PURE__ */ s({
|
|
44
|
+
__name: "ModuleBrowserModal",
|
|
45
|
+
props: { visible: { type: Boolean } },
|
|
46
|
+
emits: ["close", "insert"],
|
|
47
|
+
setup(s, { emit: B }) {
|
|
48
|
+
let Te = s, V = B, Ee = re(() => import("./ModulePreviewCanvas-Cx4MOJ0X.js")), { t: De } = se(), { t: H } = de(), U = _(ae, "ModuleBrowserModal"), W = _(oe, "ModuleBrowserModal"), G = a(""), K = a(null), q = a(null), J = a("end"), Y = l(() => {
|
|
49
|
+
let e = U.modules.value;
|
|
50
|
+
if (!G.value) return e;
|
|
51
|
+
let t = G.value.toLowerCase();
|
|
52
|
+
return e.filter((e) => e.name.toLowerCase().includes(t));
|
|
53
|
+
}), X = l(() => K.value ? U.modules.value.find((e) => e.id === K.value) ?? null : null), Oe = l(() => {
|
|
54
|
+
let e = [{
|
|
55
|
+
value: "beginning",
|
|
56
|
+
label: H.modules.insertAtBeginning
|
|
57
|
+
}], t = W.content.value.blocks;
|
|
58
|
+
for (let n = 0; n < t.length; n++) {
|
|
59
|
+
let r = t[n], i = r.type, a = De.blocks[i] ?? r.type;
|
|
60
|
+
e.push({
|
|
61
|
+
value: r.id,
|
|
62
|
+
label: H.modules.insertAfterBlock.replace("{block}", `${a} ${n + 1}`)
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
return e.push({
|
|
66
|
+
value: "end",
|
|
67
|
+
label: H.modules.insertAtEnd
|
|
68
|
+
}), e;
|
|
69
|
+
}), ke = l(() => {
|
|
70
|
+
if (J.value === "end") return;
|
|
71
|
+
if (J.value === "beginning") return 0;
|
|
72
|
+
let e = W.content.value.blocks.findIndex((e) => e.id === J.value);
|
|
73
|
+
if (e !== -1) return e + 1;
|
|
74
|
+
});
|
|
75
|
+
r(() => Te.visible, (e) => {
|
|
76
|
+
if (e) {
|
|
77
|
+
G.value = "", K.value = null, q.value = null;
|
|
78
|
+
let e = W.state.selectedBlockId;
|
|
79
|
+
if (e) {
|
|
80
|
+
let t = W.content.value.blocks.findIndex((t) => t.id === e);
|
|
81
|
+
J.value = t === -1 ? "end" : e;
|
|
82
|
+
} else J.value = "end";
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
function Ae(e) {
|
|
86
|
+
let t = [], n = /* @__PURE__ */ new Set();
|
|
87
|
+
for (let r of e.content) if (!n.has(r.type) && y[r.type] && (n.add(r.type), t.push({
|
|
88
|
+
type: r.type,
|
|
89
|
+
icon: y[r.type]
|
|
90
|
+
})), t.length >= 5) break;
|
|
91
|
+
return t;
|
|
92
|
+
}
|
|
93
|
+
function Z(e) {
|
|
94
|
+
let t = new Set(e.content.map((e) => e.type));
|
|
95
|
+
return Math.max(0, t.size - 5);
|
|
96
|
+
}
|
|
97
|
+
async function je(e) {
|
|
98
|
+
try {
|
|
99
|
+
await U.deleteModule(e), K.value === e && (K.value = null);
|
|
100
|
+
} finally {
|
|
101
|
+
q.value = null;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function Q() {
|
|
105
|
+
X.value && V("insert", X.value, ke.value);
|
|
106
|
+
}
|
|
107
|
+
function $() {
|
|
108
|
+
V("close");
|
|
109
|
+
}
|
|
110
|
+
function Me(e) {
|
|
111
|
+
e.key === "Escape" && $(), e.key === "Enter" && X.value && (e.preventDefault(), Q());
|
|
112
|
+
}
|
|
113
|
+
return (r, a) => (e(), p(fe, {
|
|
114
|
+
visible: s.visible,
|
|
115
|
+
onClose: $,
|
|
116
|
+
onKeydown: Me
|
|
117
|
+
}, {
|
|
118
|
+
default: ie(() => [u("div", pe, [
|
|
119
|
+
u("div", me, [u("h3", b, h(m(H).modules.browse), 1), u("button", {
|
|
120
|
+
"aria-label": m(H).modules.close,
|
|
121
|
+
class: "tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-1 tpl:transition-colors tpl:duration-100 tpl:text-[var(--tpl-text-dim)]",
|
|
122
|
+
onClick: $
|
|
123
|
+
}, [g(m(ue), {
|
|
124
|
+
size: 16,
|
|
125
|
+
"stroke-width": 2
|
|
126
|
+
})], 8, x)]),
|
|
127
|
+
u("div", S, [u("div", C, [u("div", w, [u("div", T, [g(m(ce), {
|
|
128
|
+
size: 14,
|
|
129
|
+
"stroke-width": 2,
|
|
130
|
+
class: "tpl:pointer-events-none tpl:absolute tpl:left-3 tpl:top-1/2 tpl:-translate-y-1/2 tpl:text-[var(--tpl-text-dim)]"
|
|
131
|
+
}), t(u("input", {
|
|
132
|
+
"onUpdate:modelValue": a[0] ||= (e) => G.value = e,
|
|
133
|
+
type: "text",
|
|
134
|
+
placeholder: m(H).modules.search,
|
|
135
|
+
class: "tpl:h-9 tpl:w-full tpl:rounded-md tpl:border tpl:pl-9 tpl:pr-3 tpl:text-sm tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
136
|
+
}, null, 8, E), [[o, G.value]])])]), u("div", D, [Y.value.length > 0 ? (e(), d("div", O, [(e(!0), d(f, null, i(Y.value, (t) => (e(), d("button", {
|
|
137
|
+
key: t.id,
|
|
138
|
+
type: "button",
|
|
139
|
+
"aria-pressed": K.value === t.id,
|
|
140
|
+
class: "tpl:group/card tpl:w-full tpl:cursor-pointer tpl:rounded-[var(--tpl-radius-md)] tpl:border tpl:bg-transparent tpl:px-3 tpl:py-2 tpl:text-left tpl:transition-all tpl:duration-[120ms]",
|
|
141
|
+
style: ne({
|
|
142
|
+
borderColor: K.value === t.id ? "var(--tpl-primary)" : "var(--tpl-border)",
|
|
143
|
+
backgroundColor: K.value === t.id ? "var(--tpl-primary-light)" : "transparent"
|
|
144
|
+
}),
|
|
145
|
+
onClick: (e) => K.value = t.id
|
|
146
|
+
}, [u("div", A, [u("span", j, h(t.name), 1), u("span", M, h(m(H).modules.blockCount.replace("{count}", String(t.content.length))), 1)]), u("div", N, [
|
|
147
|
+
(e(!0), d(f, null, i(Ae(t), (t) => (e(), p(n(t.icon), {
|
|
148
|
+
key: t.type,
|
|
149
|
+
size: 14,
|
|
150
|
+
"stroke-width": 1.5,
|
|
151
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
152
|
+
}))), 128)),
|
|
153
|
+
Z(t) > 0 ? (e(), d("span", P, " +" + h(Z(t)), 1)) : te("", !0),
|
|
154
|
+
q.value === t.id ? (e(), d("button", {
|
|
155
|
+
key: 1,
|
|
156
|
+
"aria-label": m(H).modules.deleteConfirm,
|
|
157
|
+
class: "tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium tpl:transition-colors tpl:duration-100 tpl:border-[var(--tpl-danger)] tpl:text-[var(--tpl-danger)]",
|
|
158
|
+
style: { "background-color": "transparent" },
|
|
159
|
+
onClick: c((e) => je(t.id), ["stop"])
|
|
160
|
+
}, h(m(H).modules.deleteConfirm), 9, F)) : (e(), d("button", {
|
|
161
|
+
key: 2,
|
|
162
|
+
class: "tpl-module-delete-btn tpl:ml-auto tpl:cursor-pointer tpl:rounded-md tpl:border-none tpl:bg-transparent tpl:p-0.5 tpl:transition-colors tpl:duration-100 tpl:text-[var(--tpl-text-dim)]",
|
|
163
|
+
"aria-label": m(H).modules.delete,
|
|
164
|
+
title: m(H).modules.delete,
|
|
165
|
+
onClick: c((e) => q.value = t.id, ["stop"])
|
|
166
|
+
}, [g(m(le), {
|
|
167
|
+
size: 12,
|
|
168
|
+
"stroke-width": 1.5
|
|
169
|
+
})], 8, I))
|
|
170
|
+
])], 12, k))), 128))])) : (e(), d("div", L, [g(m(v), {
|
|
171
|
+
size: 32,
|
|
172
|
+
"stroke-width": 1,
|
|
173
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
174
|
+
}), u("p", R, h(G.value ? m(H).modules.noModules : m(H).modules.noModulesHint), 1)]))])]), u("div", z, [X.value ? (e(), d("div", he, [u("div", ge, [g(m(Ee), { blocks: X.value.content }, null, 8, ["blocks"])])])) : (e(), d("div", _e, [g(m(v), {
|
|
175
|
+
size: 32,
|
|
176
|
+
"stroke-width": 1,
|
|
177
|
+
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
178
|
+
}), u("p", ve, h(m(H).modules.selectToPreview), 1)]))])]),
|
|
179
|
+
u("div", ye, [u("div", be, [u("label", xe, h(m(H).modules.insertPosition), 1), t(u("select", {
|
|
180
|
+
"onUpdate:modelValue": a[1] ||= (e) => J.value = e,
|
|
181
|
+
class: "tpl:h-7 tpl:max-w-[220px] tpl:rounded-md tpl:border tpl:px-2 tpl:text-xs tpl:outline-none tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text)]"
|
|
182
|
+
}, [(e(!0), d(f, null, i(Oe.value, (t) => (e(), d("option", {
|
|
183
|
+
key: t.value,
|
|
184
|
+
value: t.value
|
|
185
|
+
}, h(t.label), 9, Se))), 128))], 512), [[ee, J.value]])]), u("div", Ce, [u("button", {
|
|
186
|
+
type: "button",
|
|
187
|
+
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)]",
|
|
188
|
+
onClick: $
|
|
189
|
+
}, h(m(H).modules.close), 1), u("button", {
|
|
190
|
+
type: "button",
|
|
191
|
+
class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
192
|
+
disabled: !X.value,
|
|
193
|
+
onClick: Q
|
|
194
|
+
}, h(m(H).modules.insert), 9, we)])])
|
|
195
|
+
])]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["visible"]));
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
//#endregion
|
|
201
|
+
export { B as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as e, F as t, M as n, P as r, b as i, d as a, f as o, h as s, l as c, ot as l, p as u, rt as d, w as f } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import {
|
|
3
|
-
import { o as D } from "./keys-
|
|
1
|
+
import { A as e, F as t, M as n, P as r, b as i, d as a, f as o, h as s, l as c, ot as l, p as u, rt as d, w as f } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
2
|
+
import { F as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-8JxXDOA4.js";
|
|
3
|
+
import { o as D } from "./keys-DgYXDafq.js";
|
|
4
4
|
//#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__PURE__ */ i({
|
|
6
6
|
name: "PreviewSectionBlock",
|
|
@@ -11,17 +11,17 @@ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__
|
|
|
11
11
|
},
|
|
12
12
|
setup(i) {
|
|
13
13
|
let A = {
|
|
14
|
-
title:
|
|
15
|
-
paragraph:
|
|
16
|
-
image:
|
|
17
|
-
video:
|
|
14
|
+
title: b,
|
|
15
|
+
paragraph: C,
|
|
16
|
+
image: v,
|
|
17
|
+
video: S,
|
|
18
18
|
button: p,
|
|
19
|
-
divider:
|
|
19
|
+
divider: T,
|
|
20
20
|
social: h,
|
|
21
|
-
menu:
|
|
22
|
-
table:
|
|
23
|
-
spacer:
|
|
24
|
-
html:
|
|
21
|
+
menu: x,
|
|
22
|
+
table: w,
|
|
23
|
+
spacer: y,
|
|
24
|
+
html: m,
|
|
25
25
|
custom: E
|
|
26
26
|
}, j = i, M = f(D, null), N = a(() => {
|
|
27
27
|
switch (j.block.columns) {
|
|
@@ -77,17 +77,17 @@ var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__
|
|
|
77
77
|
setup(r) {
|
|
78
78
|
let i = f(D), a = {
|
|
79
79
|
section: A,
|
|
80
|
-
title:
|
|
81
|
-
paragraph:
|
|
82
|
-
image:
|
|
83
|
-
video:
|
|
80
|
+
title: b,
|
|
81
|
+
paragraph: C,
|
|
82
|
+
image: v,
|
|
83
|
+
video: S,
|
|
84
84
|
button: p,
|
|
85
|
-
divider:
|
|
85
|
+
divider: T,
|
|
86
86
|
social: h,
|
|
87
|
-
menu:
|
|
88
|
-
table:
|
|
89
|
-
spacer:
|
|
90
|
-
html:
|
|
87
|
+
menu: x,
|
|
88
|
+
table: w,
|
|
89
|
+
spacer: y,
|
|
90
|
+
html: m,
|
|
91
91
|
custom: E
|
|
92
92
|
};
|
|
93
93
|
function o(e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as e, F as t, M as n, N as r, X as i, at as a, b as o, d as s, f as c, h as l, l as u, m as d, ot as f, p, rt as m, s as ee, st as h, t as te, v as g, z as ne } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import { t as _ } from "./dist-
|
|
3
|
-
import { t as re } from "./useI18n-
|
|
4
|
-
import { t as ie } from "./x-
|
|
1
|
+
import { A as e, F as t, M as n, N as r, X as i, at as a, b as o, d as s, f as c, h as l, l as u, m as d, ot as f, p, rt as m, s as ee, st as h, t as te, v as g, z as ne } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
2
|
+
import { t as _ } from "./dist-DuCzdgDA.js";
|
|
3
|
+
import { t as re } from "./useI18n-BWqM8i78.js";
|
|
4
|
+
import { t as ie } from "./x-DiPIbccg.js";
|
|
5
5
|
import { h as v, m as y, p as b, u as ae } from "./styleConstants-lGobwiLH.js";
|
|
6
6
|
//#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
|
|
7
7
|
var x = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, S = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
|