@templatical/editor 0.20.0 → 0.21.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/README.md +1 -0
- package/dist/{AiChatSidebar-ChrE6pUq.js → AiChatSidebar-K_AehWc-.js} +9 -9
- package/dist/{AiFeatureMenu-DkQ9HhQ6.js → AiFeatureMenu-CPdNpHpZ.js} +6 -6
- package/dist/{BlockIssueBadge-B4QjePax.js → BlockIssueBadge-Dmj9rVra.js} +4 -4
- package/dist/{CloudEditor-CfX-aMiV.js → CloudEditor-3a7mqMhe.js} +263 -315
- package/dist/{CollaboratorBar-DTibhQ1j.js → CollaboratorBar-Ds0YZWzV.js} +3 -3
- package/dist/{ColorPicker-4vDYhdGe.js → ColorPicker-s9GHXjZs.js} +4 -4
- package/dist/CommentsSidebar-DvNEdugN.js +435 -0
- package/dist/{CountdownBlock-Bn5w7C-p.js → CountdownBlock-BUHYIAe9.js} +1 -1
- package/dist/{CountdownToolbar-D7yQqnA2.js → CountdownToolbar-DPRcv3Fu.js} +3 -4
- package/dist/{DesignReferenceSidebar-DnO6ZdwS.js → DesignReferenceSidebar-DNmK3dxp.js} +8 -8
- package/dist/{IssuesPanel-X_vkNGrs.js → IssuesPanel-CEnEGFtd.js} +7 -7
- package/dist/{MergeTagSuggestion-DCuaSOPQ.js → MergeTagSuggestion-DMe4rqn0.js} +2 -2
- package/dist/NumberWithSuffix-CCPN_oCh.js +121 -0
- package/dist/{ParagraphEditor-C5ixOIYb.js → ParagraphEditor-CkwBirNl.js} +47 -47
- package/dist/{RichTextEditorContent-DwhDnMsG.js → RichTextEditorContent-FbnWsh46.js} +6 -6
- package/dist/SaveBlockDialog-Cc5BSUBx.js +264 -0
- package/dist/SavedBlockPreviewCanvas-ubttfmKr.js +109 -0
- package/dist/SavedBlocksBrowserModal-LkY_U3lY.js +323 -0
- package/dist/SavedBlocksPanels-CET0zvH6.js +36 -0
- package/dist/SavedBlocksPickBar-poGS4PoI.js +52 -0
- package/dist/{SnapshotHistory-DaVueFv6.js → SnapshotHistory-BvF5IXn1.js} +8 -8
- package/dist/{TemplateScoringPanel-B0UHoTLx.js → TemplateScoringPanel-ifGGGWs5.js} +14 -14
- package/dist/{TestEmailModal-BkauxF7j.js → TestEmailModal-BRaM_eko.js} +4 -4
- package/dist/{TitleEditor-n6WDVDjW.js → TitleEditor-Bhgzh-iQ.js} +11 -11
- package/dist/{TplModal-BDDyvT-C.js → TplModal-BA-Zsg0O.js} +3 -3
- package/dist/{blockTypeIcons-4D0aFXNg.js → blockTypeIcons-B1-Yzp-a.js} +6 -6
- package/dist/bundle-stats.json +8 -8
- package/dist/{cdn/chunks/ca-DbWoy4rG.js → ca-BBgad6y5.js} +50 -5
- package/dist/cdn/chunks/{AiFeatureMenu-CIBHAGSz.js → AiFeatureMenu--PdArSnv.js} +7 -7
- package/dist/cdn/chunks/{AiFeatureMenu-CIBHAGSz.js.map → AiFeatureMenu--PdArSnv.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-CxMiLo3p.js → BlockIssueBadge-DMSd0SIl.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-CxMiLo3p.js.map → BlockIssueBadge-DMSd0SIl.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-CEa3Xgqh.js → CloudEditor-DnTfI5GU.js} +270 -322
- package/dist/cdn/chunks/CloudEditor-DnTfI5GU.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-Bk1gD02G.js → CollaboratorBar-CBqd7ldq.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-Bk1gD02G.js.map → CollaboratorBar-CBqd7ldq.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-ll8pynws.js → ColorPicker-DCdWP8YB.js} +161 -161
- package/dist/cdn/chunks/{ColorPicker-ll8pynws.js.map → ColorPicker-DCdWP8YB.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-eGUE7hhw.js → CountdownBlock-BDnWMAME.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-eGUE7hhw.js.map → CountdownBlock-BDnWMAME.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C1bkSjUR.js → CountdownToolbar-BbLoo22S.js} +4 -5
- package/dist/cdn/chunks/{CountdownToolbar-C1bkSjUR.js.map → CountdownToolbar-BbLoo22S.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-Csasylf_.js → IssuesPanel-CfudrI3T.js} +7 -7
- package/dist/cdn/chunks/{IssuesPanel-Csasylf_.js.map → IssuesPanel-CfudrI3T.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-BmMmdcRg.js → MergeTagSuggestion-D7TsECll.js} +2 -2
- package/dist/cdn/chunks/{MergeTagSuggestion-BmMmdcRg.js.map → MergeTagSuggestion-D7TsECll.js.map} +1 -1
- package/dist/cdn/chunks/NumberWithSuffix-BmMx9_n_.js +123 -0
- package/dist/cdn/chunks/NumberWithSuffix-BmMx9_n_.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-v0_XEL-v.js → ParagraphEditor-DPCUSXpx.js} +86 -86
- package/dist/cdn/chunks/{ParagraphEditor-v0_XEL-v.js.map → ParagraphEditor-DPCUSXpx.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-NQExNsaV.js → RichTextEditorContent-B8dOiv_D.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-NQExNsaV.js.map → RichTextEditorContent-B8dOiv_D.js.map} +1 -1
- package/dist/cdn/chunks/SaveBlockDialog-BY3SMnNV.js +259 -0
- package/dist/cdn/chunks/SaveBlockDialog-BY3SMnNV.js.map +1 -0
- package/dist/cdn/chunks/SavedBlockPreviewCanvas-LpaOcusq.js +110 -0
- package/dist/cdn/chunks/SavedBlockPreviewCanvas-LpaOcusq.js.map +1 -0
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CfIcmyzF.js +318 -0
- package/dist/cdn/chunks/SavedBlocksBrowserModal-CfIcmyzF.js.map +1 -0
- package/dist/cdn/chunks/SavedBlocksPanels-kIowCfh_.js +38 -0
- package/dist/cdn/chunks/SavedBlocksPanels-kIowCfh_.js.map +1 -0
- package/dist/cdn/chunks/SavedBlocksPickBar-WSGe1GiZ.js +52 -0
- package/dist/cdn/chunks/SavedBlocksPickBar-WSGe1GiZ.js.map +1 -0
- package/dist/cdn/chunks/{TitleEditor-CS-_MzYs.js → TitleEditor-iwd-O9sO.js} +11 -11
- package/dist/cdn/chunks/{TitleEditor-CS-_MzYs.js.map → TitleEditor-iwd-O9sO.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-B0Hjh42a.js → blockTypeIcons-BYz0fgLz.js} +7 -7
- package/dist/cdn/chunks/{blockTypeIcons-B0Hjh42a.js.map → blockTypeIcons-BYz0fgLz.js.map} +1 -1
- package/dist/{ca-DbWoy4rG.js → cdn/chunks/ca-BBgad6y5.js} +52 -3
- package/dist/cdn/chunks/ca-BBgad6y5.js.map +1 -0
- package/dist/{de-CTYXVU9v.js → cdn/chunks/de-Bw6fB5JU.js} +2 -24
- package/dist/cdn/chunks/{de-CTYXVU9v.js.map → de-Bw6fB5JU.js.map} +1 -1
- package/dist/cdn/chunks/{de-CgGOnerg.js → de-D7WbpFBR.js} +50 -3
- package/dist/cdn/chunks/de-D7WbpFBR.js.map +1 -0
- package/dist/{en-DrUV9xth.js → cdn/chunks/en-BrZ0uGK2.js} +51 -2
- package/dist/cdn/chunks/en-BrZ0uGK2.js.map +1 -0
- package/dist/{en-BtmIaJeb.js → cdn/chunks/en-DAdHJz7h.js} +2 -24
- package/dist/cdn/chunks/{en-BtmIaJeb.js.map → en-DAdHJz7h.js.map} +1 -1
- package/dist/{es-DwbKjU7q.js → cdn/chunks/es-tLSLysPs.js} +51 -2
- package/dist/cdn/chunks/es-tLSLysPs.js.map +1 -0
- package/dist/cdn/chunks/{extensions-Di3hdIRT.js → extensions-DeJh3E9b.js} +26 -26
- package/dist/cdn/chunks/{extensions-Di3hdIRT.js.map → extensions-DeJh3E9b.js.map} +1 -1
- package/dist/cdn/chunks/{features-CLIZ7Q-Y.js → features-pLfGJWIB.js} +1118 -962
- package/dist/cdn/chunks/features-pLfGJWIB.js.map +1 -0
- package/dist/cdn/chunks/{icons-GX40Qm2W.js → icons-FLemooQz.js} +16 -16
- package/dist/cdn/chunks/{icons-GX40Qm2W.js.map → icons-FLemooQz.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-yYAkAagU.js → media-library-mCCZieYO.js} +176 -176
- package/dist/cdn/chunks/{media-library-yYAkAagU.js.map → media-library-mCCZieYO.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-Bcc5Tjed.js → pt-BR-BWFokdTU.js} +50 -3
- package/dist/cdn/chunks/pt-BR-BWFokdTU.js.map +1 -0
- package/dist/{pt-BR-B2ZvFlRL.js → cdn/chunks/pt-BR-w2sGzHNX.js} +2 -24
- package/dist/cdn/chunks/{pt-BR-B2ZvFlRL.js.map → pt-BR-w2sGzHNX.js.map} +1 -1
- package/dist/cdn/chunks/quality-BRbHtAk1.js +2180 -0
- package/dist/cdn/chunks/{quality-DffYv9j5.js.map → quality-BRbHtAk1.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-DpBGiXOg.js → renderer-Yg1XhsBN.js} +17 -17
- package/dist/cdn/chunks/{renderer-DpBGiXOg.js.map → renderer-Yg1XhsBN.js.map} +1 -1
- package/dist/cdn/chunks/{src-9K6uFiuK.js → src-BDJeYiVE.js} +33 -33
- package/dist/cdn/chunks/{src-9K6uFiuK.js.map → src-BDJeYiVE.js.map} +1 -1
- package/dist/cdn/chunks/{styles-DHSmjlpX.js → styles-Bp5Jsu9J.js} +1380 -1294
- package/dist/cdn/chunks/styles-Bp5Jsu9J.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-C2indasq.js → tiptap-BMZ-OENR.js} +2012 -1863
- package/dist/cdn/chunks/tiptap-BMZ-OENR.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +123 -114
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Bl4J_tYV.js → check-BpQDKiPz.js} +1 -1
- package/dist/{chevron-down-COEcl2iP.js → chevron-down-j8GrdTyz.js} +1 -1
- package/dist/chevron-up-BACyVhyC.js +7 -0
- package/dist/{circle-alert-CvHi5etc.js → circle-alert-CgtE46ND.js} +1 -1
- package/dist/{clock-CZZw62e8.js → clock-BzKLLW5L.js} +1 -1
- package/dist/{cloud-B-RebwxI.js → cloud-Du7mnkz2.js} +19 -47
- package/dist/{createLucideIcon-_peTZQtY.js → createLucideIcon-JWHwTI6N.js} +2 -2
- package/dist/{cdn/chunks/de-CTYXVU9v.js → de-Bw6fB5JU.js} +0 -26
- package/dist/{de-CgGOnerg.js → de-D7WbpFBR.js} +49 -2
- package/dist/{dist-CgTKuIUN.js → dist-BEpCh2mG.js} +1158 -1125
- package/dist/{dist-Cx7IUM7J.js → dist-BgPYC_8-.js} +14 -6
- package/dist/{dist-BKKo5wPC.js → dist-BkM8A17N.js} +2 -2
- package/dist/{dist-CcX5sLpz.js → dist-BuNDAAVp.js} +361 -256
- package/dist/{dist-COSN3oDJ.js → dist-CBzCU-a-.js} +2 -2
- package/dist/{dist-YSCPD13F.js → dist-CDO52Rxy.js} +2 -2
- package/dist/{dist-Dk5AdwoQ.js → dist-CrjzhIxB.js} +2 -2
- package/dist/{dist-DXAZUjj3.js → dist-CtcgoC_R.js} +2 -2
- package/dist/{dist-D6M5FAY7.js → dist-CuXha2_7.js} +2 -2
- package/dist/dist-CweLDZrs.js +5 -0
- package/dist/dist-DOsdqAEZ.js +5 -0
- package/dist/{dist-8TKf-Jpg.js → dist-DYClLqy8.js} +6 -3
- package/dist/{cdn/chunks/en-DrUV9xth.js → en-BrZ0uGK2.js} +49 -4
- package/dist/{cdn/chunks/en-BtmIaJeb.js → en-DAdHJz7h.js} +0 -26
- package/dist/{cdn/chunks/es-DwbKjU7q.js → es-tLSLysPs.js} +49 -4
- package/dist/{extensions-BCA9pyer.js → extensions-ClY5Sh7S.js} +5 -5
- package/dist/{image-up-D26rNdfX.js → image-up-CQdtq8ge.js} +1 -1
- package/dist/index.d.ts +81 -4
- package/dist/{info-CE3JSTqk.js → info-BUJBXoE6.js} +1 -1
- package/dist/{keys-DFaIbGR8.js → keys-CHPcp-Nz.js} +2 -2
- package/dist/{list-checks-BQsLrtBB.js → list-checks-BGHaCSD5.js} +1 -1
- package/dist/{loader-circle-s9Rh5lLd.js → loader-circle-C-Z6kgI6.js} +1 -1
- package/dist/{message-circle-CI62d690.js → message-circle-CEm5qckV.js} +1 -1
- package/dist/pencil-DdwmkKLb.js +10 -0
- package/dist/{pt-BR-Bcc5Tjed.js → pt-BR-BWFokdTU.js} +49 -2
- package/dist/{cdn/chunks/pt-BR-B2ZvFlRL.js → pt-BR-w2sGzHNX.js} +0 -26
- package/dist/{refresh-cw-DlYfl65Y.js → refresh-cw-maKlg0dl.js} +1 -1
- package/dist/{scan-line-CHadrYVb.js → scan-line-BFgesTOY.js} +1 -1
- package/dist/{send-CbP40otC.js → send-B70aQDrA.js} +1 -1
- package/dist/{shield-check-Bnj9aRoJ.js → shield-check-B7x5OKt5.js} +1 -1
- package/dist/{sparkles-CncWT57a.js → sparkles-DVlm1Ipp.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-DkF_-uX8.js → styles-DIDAJdkj.js} +1237 -1151
- package/dist/templatical-editor.js +134 -125
- package/dist/{text-align-start-B458vzYw.js → text-align-start-Vay3Kvo2.js} +1 -1
- package/dist/{trash-2-DO0yjSU1.js → trash-2-DE8CmxAG.js} +1 -1
- package/dist/{triangle-alert-C18_ima6.js → triangle-alert-Djg6IG8N.js} +1 -1
- package/dist/{upload-DsCd2zTR.js → upload-BwwE0U6G.js} +1 -1
- package/dist/{useCloudI18n-PCDOC2kz.js → useCloudI18n-BmiygEM4.js} +1 -1
- package/dist/{useEditorCore-kKUemYY6.js → useEditorCore-Bd9CA4L_.js} +997 -817
- package/dist/{useI18n-BNMzZTM5.js → useI18n-D2L9Mkik.js} +1 -1
- package/dist/{useMergeTag-DfEY0eK5.js → useMergeTag-BTdDq5DC.js} +1 -1
- package/dist/{usePopoverPosition-F9STHRIr.js → usePopoverPosition-BO2LNy5n.js} +1 -1
- package/dist/{x-BCFQuE_q.js → x-CkD6A1iB.js} +1 -1
- package/package.json +21 -21
- package/dist/CommentsSidebar-D-o5Stlg.js +0 -442
- package/dist/ModuleBrowserModal-AJt--JPh.js +0 -202
- package/dist/ModulePreviewCanvas-BKYOcVCh.js +0 -106
- package/dist/NumberWithSuffix-Bf3rNxza.js +0 -89
- package/dist/SaveModuleDialog-B4QX9eiv.js +0 -125
- package/dist/ToggleSwitch-DUNuUPsZ.js +0 -37
- package/dist/cdn/chunks/CloudEditor-CEa3Xgqh.js.map +0 -1
- package/dist/cdn/chunks/ModuleBrowserModal-DznWWtBI.js +0 -198
- package/dist/cdn/chunks/ModuleBrowserModal-DznWWtBI.js.map +0 -1
- package/dist/cdn/chunks/ModulePreviewCanvas-D-h7fr87.js +0 -107
- package/dist/cdn/chunks/ModulePreviewCanvas-D-h7fr87.js.map +0 -1
- package/dist/cdn/chunks/NumberWithSuffix-Dt-0odUN.js +0 -91
- package/dist/cdn/chunks/NumberWithSuffix-Dt-0odUN.js.map +0 -1
- package/dist/cdn/chunks/SaveModuleDialog-BpFhTi-k.js +0 -120
- package/dist/cdn/chunks/SaveModuleDialog-BpFhTi-k.js.map +0 -1
- package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js +0 -39
- package/dist/cdn/chunks/ToggleSwitch-OrmX_w18.js.map +0 -1
- package/dist/cdn/chunks/ca-DbWoy4rG.js.map +0 -1
- package/dist/cdn/chunks/de-CgGOnerg.js.map +0 -1
- package/dist/cdn/chunks/en-DrUV9xth.js.map +0 -1
- package/dist/cdn/chunks/es-DwbKjU7q.js.map +0 -1
- package/dist/cdn/chunks/features-CLIZ7Q-Y.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-Bcc5Tjed.js.map +0 -1
- package/dist/cdn/chunks/quality-DffYv9j5.js +0 -2180
- package/dist/cdn/chunks/styles-DHSmjlpX.js.map +0 -1
- package/dist/cdn/chunks/tiptap-C2indasq.js.map +0 -1
- package/dist/dist-BDVm2MrW.js +0 -5
- package/dist/dist-DbekZDmJ.js +0 -5
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { A as e, D as t, Dt as n, E as r, Et as i, I as a, K as o, O as s, Ot as c, R as l, Y as u, Z as d, _ as f, c as p, d as m, g as h, h as g, k as _, l as v, m as y, nt as b, p as x, r as S, s as C, u as w, z as T } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { c as E, o as D, t as O } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import { n as k } from "./upload-
|
|
4
|
-
import { A
|
|
5
|
-
import {
|
|
3
|
+
import { n as k } from "./upload-BwwE0U6G.js";
|
|
4
|
+
import { A } from "./dist-BJbqgyPn.js";
|
|
5
|
+
import { E as j, V as M, t as N, x as P } from "./useEditorCore-Bd9CA4L_.js";
|
|
6
6
|
import { m as F } from "./dist-DYv_Pttj.js";
|
|
7
|
-
import { s as I } from "./usePopoverPosition-
|
|
8
|
-
import { A as L, F as R,
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { a as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as J } from "./loader-circle-
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { n as Q } from "./useCloudI18n-
|
|
22
|
-
import { d as $ } from "./ColorPicker-
|
|
23
|
-
import { _ as ve,
|
|
24
|
-
var
|
|
7
|
+
import { s as I } from "./usePopoverPosition-BO2LNy5n.js";
|
|
8
|
+
import { A as L, F as R, c as z, r as B, s as V, t as H, u as ee } from "./keys-CHPcp-Nz.js";
|
|
9
|
+
import { t as U } from "./useI18n-D2L9Mkik.js";
|
|
10
|
+
import { t as W } from "./createLucideIcon-JWHwTI6N.js";
|
|
11
|
+
import { t as G } from "./check-BpQDKiPz.js";
|
|
12
|
+
import { t as K } from "./circle-alert-CgtE46ND.js";
|
|
13
|
+
import { a as q, c as te, d as ne, f as re, i as ie, l as ae, m as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, u as pe } from "./styles-DIDAJdkj.js";
|
|
14
|
+
import { t as me } from "./clock-BzKLLW5L.js";
|
|
15
|
+
import { t as J } from "./loader-circle-C-Z6kgI6.js";
|
|
16
|
+
import { t as Y } from "./message-circle-CEm5qckV.js";
|
|
17
|
+
import { t as X } from "./send-B70aQDrA.js";
|
|
18
|
+
import { t as Z } from "./sparkles-DVlm1Ipp.js";
|
|
19
|
+
import { t as he } from "./triangle-alert-Djg6IG8N.js";
|
|
20
|
+
import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
21
|
+
import { n as Q } from "./useCloudI18n-BmiygEM4.js";
|
|
22
|
+
import { d as $ } from "./ColorPicker-s9GHXjZs.js";
|
|
23
|
+
import { _ as _e, c as ve, f as ye, g as be, h as xe, i as Se, l as Ce, m as we, n as Te, o as Ee, p as De, r as Oe, s as ke, t as Ae, u as je, v as Me, y as Ne } from "./cloud-Du7mnkz2.js";
|
|
24
|
+
var Pe = W("save", [
|
|
25
25
|
["path", {
|
|
26
26
|
d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",
|
|
27
27
|
key: "1c8476"
|
|
@@ -37,14 +37,14 @@ var Fe = H("save", [
|
|
|
37
37
|
]);
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/cloud/composables/useSnapshotPreview.ts
|
|
40
|
-
function
|
|
40
|
+
function Fe(e) {
|
|
41
41
|
let { authManager: t, editor: n, history: r, conditionPreview: i, autoSave: a, onError: s } = e, c = d(null), l = u(null), f = u(null), p = !1;
|
|
42
42
|
o(() => {
|
|
43
43
|
p = !0;
|
|
44
44
|
});
|
|
45
45
|
let m = C(() => l.value !== null), h = C(() => c.value?.snapshots.value ?? []), g = C(() => c.value?.isLoading.value ?? !1), _ = C(() => c.value?.isRestoring.value ?? !1);
|
|
46
46
|
function v() {
|
|
47
|
-
n.state.template?.id && !c.value && (c.value =
|
|
47
|
+
n.state.template?.id && !c.value && (c.value = be({
|
|
48
48
|
authManager: t,
|
|
49
49
|
templateId: n.state.template.id,
|
|
50
50
|
onRestore: y,
|
|
@@ -96,7 +96,7 @@ function Ie(e) {
|
|
|
96
96
|
}
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/cloud/composables/useCloudPanelState.ts
|
|
99
|
-
function
|
|
99
|
+
function Ie() {
|
|
100
100
|
let e = u(null), t = C({
|
|
101
101
|
get: () => e.value === "ai-chat",
|
|
102
102
|
set: (t) => e.value = t ? "ai-chat" : null
|
|
@@ -141,7 +141,7 @@ function Le() {
|
|
|
141
141
|
}
|
|
142
142
|
//#endregion
|
|
143
143
|
//#region src/cloud/composables/useCollabUndoWarning.ts
|
|
144
|
-
function
|
|
144
|
+
function Le(e) {
|
|
145
145
|
let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = u(!1), a = u(!1), { start: o } = F(() => {
|
|
146
146
|
a.value = !1;
|
|
147
147
|
}, k, { immediate: !1 });
|
|
@@ -155,7 +155,7 @@ function Re(e) {
|
|
|
155
155
|
}
|
|
156
156
|
//#endregion
|
|
157
157
|
//#region src/cloud/composables/useCloudFeatureFlags.ts
|
|
158
|
-
function
|
|
158
|
+
function Re(e) {
|
|
159
159
|
let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = C(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = C(() => t.hasFeature("test_email")), o = C(() => !!r.state.template?.id), s = C(() => t.hasFeature("white_label")), c = C(() => t.config.value?.limits.max_templates ?? null), l = C(() => t.config.value?.template_count ?? 0), d = u(!1), f = u("idle"), p = u(""), { start: m } = F(() => {
|
|
160
160
|
f.value = "idle";
|
|
161
161
|
}, 3e3, { immediate: !1 });
|
|
@@ -174,7 +174,7 @@ function ze(e) {
|
|
|
174
174
|
}
|
|
175
175
|
//#endregion
|
|
176
176
|
//#region src/cloud/composables/useCloudMediaLibrary.ts
|
|
177
|
-
function
|
|
177
|
+
function ze(e) {
|
|
178
178
|
let { onRequestMedia: t, mediaLibraryOpen: n, mediaLibraryAccept: r, authManager: i, getMediaConfig: a, onError: s } = e, c = null;
|
|
179
179
|
function l(e) {
|
|
180
180
|
return {
|
|
@@ -236,30 +236,30 @@ function Be(e) {
|
|
|
236
236
|
}
|
|
237
237
|
//#endregion
|
|
238
238
|
//#region src/cloud/composables/useCloudInitialization.ts
|
|
239
|
-
function
|
|
240
|
-
let { config: t, translations: n, fontsManager: r, emit: i, getCommentsSidebar: o } = e, s = u(!0), c = u(!1), l = u(null), d = !1, f = { value: null }, p = null, m = null, h = new
|
|
239
|
+
function Be(e) {
|
|
240
|
+
let { config: t, translations: n, fontsManager: r, emit: i, getCommentsSidebar: o } = e, s = u(!0), c = u(!1), l = u(null), d = !1, f = { value: null }, p = null, m = null, h = new Ae({
|
|
241
241
|
...t.auth,
|
|
242
242
|
onError: t.onError
|
|
243
|
-
}), g =
|
|
243
|
+
}), g = xe({
|
|
244
244
|
authManager: h,
|
|
245
245
|
onError: t.onError
|
|
246
|
-
}), v = u(/* @__PURE__ */ new Map()), y =
|
|
246
|
+
}), v = u(/* @__PURE__ */ new Map()), y = ye({
|
|
247
247
|
authManager: h,
|
|
248
248
|
defaultFontFamily: t.fonts?.defaultFont,
|
|
249
249
|
templateDefaults: t.templateDefaults,
|
|
250
250
|
onError: t.onError,
|
|
251
251
|
lockedBlocks: v
|
|
252
|
-
}), b =
|
|
252
|
+
}), b = Ne({
|
|
253
253
|
authManager: h,
|
|
254
254
|
onError: t.onError
|
|
255
255
|
});
|
|
256
|
-
t.mcp?.enabled &&
|
|
256
|
+
t.mcp?.enabled && we({
|
|
257
257
|
editor: y,
|
|
258
258
|
channel: b.channel,
|
|
259
259
|
onOperation: t.mcp.onOperation
|
|
260
260
|
});
|
|
261
261
|
let x = null;
|
|
262
|
-
t.collaboration?.enabled && (x =
|
|
262
|
+
t.collaboration?.enabled && (x = ke({
|
|
263
263
|
authManager: h,
|
|
264
264
|
editor: y,
|
|
265
265
|
channel: b.channel,
|
|
@@ -270,8 +270,8 @@ function Ve(e) {
|
|
|
270
270
|
onBlockUnlocked: t.collaboration.onBlockUnlocked
|
|
271
271
|
}), a(() => x.lockedBlocks.value, (e) => {
|
|
272
272
|
v.value = e;
|
|
273
|
-
}, { immediate: !0 }),
|
|
274
|
-
let S = C(() => !!t.collaboration?.enabled && g.hasFeature("collaboration")), w =
|
|
273
|
+
}, { immediate: !0 }), ve(y, x));
|
|
274
|
+
let S = C(() => !!t.collaboration?.enabled && g.hasFeature("collaboration")), w = N({
|
|
275
275
|
editor: y,
|
|
276
276
|
config: {
|
|
277
277
|
uiTheme: t.uiTheme,
|
|
@@ -286,7 +286,7 @@ function Ve(e) {
|
|
|
286
286
|
logicTags: t.logicTags,
|
|
287
287
|
displayConditions: t.displayConditions,
|
|
288
288
|
onRequestMedia: null,
|
|
289
|
-
lint:
|
|
289
|
+
lint: re(t),
|
|
290
290
|
onSave: () => {
|
|
291
291
|
f.value?.().catch((e) => {
|
|
292
292
|
t.onError?.(e);
|
|
@@ -307,13 +307,13 @@ function Ve(e) {
|
|
|
307
307
|
keyboardOptions: { onBeforeUndo: () => m?.showCollabUndoWarning() },
|
|
308
308
|
editorRoot: e.editorRoot,
|
|
309
309
|
containerEl: e.containerEl
|
|
310
|
-
}), T =
|
|
310
|
+
}), T = Le({
|
|
311
311
|
isCollaborationEnabled: S,
|
|
312
312
|
getCollaboratorCount: () => x?.collaborators.value.length ?? 0,
|
|
313
313
|
canUndo: w.history.canUndo
|
|
314
314
|
});
|
|
315
315
|
m = T;
|
|
316
|
-
let E =
|
|
316
|
+
let E = Fe({
|
|
317
317
|
authManager: h,
|
|
318
318
|
editor: y,
|
|
319
319
|
history: w.history,
|
|
@@ -322,11 +322,11 @@ function Ve(e) {
|
|
|
322
322
|
onError: t.onError
|
|
323
323
|
});
|
|
324
324
|
p = E;
|
|
325
|
-
let D =
|
|
325
|
+
let D = Ie(), O = Ee(t.ai), k = Re({
|
|
326
326
|
planConfigInstance: g,
|
|
327
327
|
aiConfig: O,
|
|
328
328
|
editor: y
|
|
329
|
-
}), A =
|
|
329
|
+
}), A = ze({
|
|
330
330
|
onRequestMedia: t.onRequestMedia,
|
|
331
331
|
mediaLibraryOpen: D.mediaLibraryOpen,
|
|
332
332
|
mediaLibraryAccept: D.mediaLibraryAccept,
|
|
@@ -334,23 +334,23 @@ function Ve(e) {
|
|
|
334
334
|
getMediaConfig: () => g.config.value?.media ?? null,
|
|
335
335
|
onError: t.onError
|
|
336
336
|
});
|
|
337
|
-
|
|
337
|
+
j({
|
|
338
338
|
onBlockMove: y.moveBlock,
|
|
339
339
|
onBlockAdd: y.addBlock
|
|
340
340
|
});
|
|
341
|
-
let
|
|
341
|
+
let P = De({
|
|
342
342
|
authManager: h,
|
|
343
343
|
getFontsConfig: () => t.fonts,
|
|
344
344
|
canUseCustomFonts: () => g.hasFeature("custom_fonts")
|
|
345
|
-
}),
|
|
345
|
+
}), F = Me({
|
|
346
346
|
authManager: h,
|
|
347
347
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
348
348
|
save: () => y.save(),
|
|
349
|
-
exportHtml: (e) =>
|
|
349
|
+
exportHtml: (e) => P.exportHtml(e),
|
|
350
350
|
onError: t.onError,
|
|
351
351
|
isAuthReady: c,
|
|
352
352
|
onBeforeTestEmail: t.onBeforeTestEmail
|
|
353
|
-
}),
|
|
353
|
+
}), I = je({
|
|
354
354
|
authManager: h,
|
|
355
355
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
356
356
|
getSocketId: () => b.getSocketId(),
|
|
@@ -359,14 +359,16 @@ function Ve(e) {
|
|
|
359
359
|
isAuthReady: c,
|
|
360
360
|
hasCommentingFeature: () => t.commenting !== !1 && g.hasFeature("commenting")
|
|
361
361
|
});
|
|
362
|
-
|
|
363
|
-
comments:
|
|
362
|
+
Ce({
|
|
363
|
+
comments: I,
|
|
364
364
|
channel: b.channel
|
|
365
365
|
});
|
|
366
|
-
let
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
366
|
+
let z = le({
|
|
367
|
+
provider: Te(h),
|
|
368
|
+
editor: y,
|
|
369
|
+
onError: t.onError,
|
|
370
|
+
isAvailable: () => t.savedBlocks !== !1 && g.hasFeature("saved_modules")
|
|
371
|
+
}), U = _e({
|
|
370
372
|
authManager: h,
|
|
371
373
|
getTemplateId: () => y.state.template?.id ?? null
|
|
372
374
|
});
|
|
@@ -375,40 +377,32 @@ function Ve(e) {
|
|
|
375
377
|
o()?.filterByBlock(e);
|
|
376
378
|
});
|
|
377
379
|
}
|
|
378
|
-
_(L, A.handleRequestMedia), _(
|
|
380
|
+
_(L, A.handleRequestMedia), _(B, h), _(H, O), _(ee, I), _(R, U), _(V, {
|
|
379
381
|
plan: g,
|
|
380
382
|
ai: O,
|
|
381
383
|
comments: {
|
|
382
|
-
getBlockCount: (e) =>
|
|
384
|
+
getBlockCount: (e) => I.commentCountByBlock.value.get(e) ?? 0,
|
|
383
385
|
openForBlock: W
|
|
384
386
|
},
|
|
385
|
-
|
|
386
|
-
openSaveDialog: (e) => {
|
|
387
|
-
V.value = e ?? null, z.value = !0;
|
|
388
|
-
},
|
|
389
|
-
openBrowser: () => {
|
|
390
|
-
H.value = !0;
|
|
391
|
-
},
|
|
392
|
-
moduleCount: C(() => I.modules.value.length)
|
|
393
|
-
}
|
|
387
|
+
savedBlocks: z.capability
|
|
394
388
|
});
|
|
395
389
|
function G(e) {
|
|
396
390
|
g.hasFeature("theme_customization") && (w.themeOverrides.value = e);
|
|
397
391
|
}
|
|
398
|
-
function
|
|
392
|
+
function K(e) {
|
|
399
393
|
y.setUiTheme(e);
|
|
400
394
|
}
|
|
401
|
-
async function
|
|
395
|
+
async function q() {
|
|
402
396
|
s.value = !0, l.value = null;
|
|
403
397
|
try {
|
|
404
398
|
if (await h.initialize(), d) return;
|
|
405
399
|
c.value = !0;
|
|
406
|
-
let e = await
|
|
400
|
+
let e = await Oe({ authManager: h });
|
|
407
401
|
if (d) return;
|
|
408
402
|
if (!e.api.ok) throw Error("Health check failed: API is not reachable");
|
|
409
403
|
if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
|
|
410
404
|
if (e.websocket.ok || M.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await g.fetchConfig(), d) return;
|
|
411
|
-
r.setCustomFontsEnabled(g.hasFeature("custom_fonts")), t.customBlocks?.length && g.hasFeature("custom_blocks") && w.registerCustomBlocks(t.customBlocks), t.theme && g.hasFeature("theme_customization") && (w.themeOverrides.value = t.theme),
|
|
405
|
+
r.setCustomFontsEnabled(g.hasFeature("custom_fonts")), t.customBlocks?.length && g.hasFeature("custom_blocks") && w.registerCustomBlocks(t.customBlocks), t.theme && g.hasFeature("theme_customization") && (w.themeOverrides.value = t.theme), i("ready");
|
|
412
406
|
} catch (e) {
|
|
413
407
|
if (d) return;
|
|
414
408
|
let n = e instanceof Error ? e : Error("Initialization failed", { cause: e });
|
|
@@ -417,7 +411,7 @@ function Ve(e) {
|
|
|
417
411
|
d || (s.value = !1);
|
|
418
412
|
}
|
|
419
413
|
}
|
|
420
|
-
function
|
|
414
|
+
function te() {
|
|
421
415
|
d = !0, r.cleanupFontLinks(), b.disconnect(), w.destroy(), t.onUnmount?.();
|
|
422
416
|
}
|
|
423
417
|
return {
|
|
@@ -435,28 +429,25 @@ function Ve(e) {
|
|
|
435
429
|
aiConfig: O,
|
|
436
430
|
featureFlags: k,
|
|
437
431
|
mediaLib: A,
|
|
438
|
-
exporter:
|
|
439
|
-
testEmail:
|
|
440
|
-
commentsInstance:
|
|
441
|
-
|
|
432
|
+
exporter: P,
|
|
433
|
+
testEmail: F,
|
|
434
|
+
commentsInstance: I,
|
|
435
|
+
savedBlocks: z,
|
|
442
436
|
scoringInstance: U,
|
|
443
437
|
panelState: D,
|
|
444
438
|
snapshotPreview: E,
|
|
445
439
|
collabWarning: T,
|
|
446
|
-
showSaveModuleDialog: z,
|
|
447
|
-
showModuleBrowserModal: H,
|
|
448
|
-
saveModulePreSelectedBlockId: V,
|
|
449
440
|
onSaveHook: f,
|
|
450
|
-
initialize:
|
|
451
|
-
destroy:
|
|
441
|
+
initialize: q,
|
|
442
|
+
destroy: te,
|
|
452
443
|
setThemeOverrides: G,
|
|
453
|
-
setUiTheme:
|
|
444
|
+
setUiTheme: K,
|
|
454
445
|
openCommentsForBlock: W
|
|
455
446
|
};
|
|
456
447
|
}
|
|
457
448
|
//#endregion
|
|
458
449
|
//#region src/utils/preRenderCustomBlocks.ts
|
|
459
|
-
async function
|
|
450
|
+
async function Ve(e, t) {
|
|
460
451
|
let n = async (e) => {
|
|
461
452
|
if (A(e)) {
|
|
462
453
|
let n = e;
|
|
@@ -475,10 +466,10 @@ async function He(e, t) {
|
|
|
475
466
|
}
|
|
476
467
|
//#endregion
|
|
477
468
|
//#region src/cloud/composables/useCloudLifecycle.ts
|
|
478
|
-
function
|
|
469
|
+
function He(e) {
|
|
479
470
|
let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
|
|
480
471
|
function u() {
|
|
481
|
-
return
|
|
472
|
+
return Se(i.config.value.websocket);
|
|
482
473
|
}
|
|
483
474
|
async function d(e) {
|
|
484
475
|
let i = await n.create(e);
|
|
@@ -491,7 +482,7 @@ function Ue(e) {
|
|
|
491
482
|
async function p() {
|
|
492
483
|
c.isSaveExporting.value = !0, c.saveStatus.value = "idle";
|
|
493
484
|
try {
|
|
494
|
-
if (await
|
|
485
|
+
if (await Ve(n.content.value, o.registry), l()) throw Error("Component unmounted during save");
|
|
495
486
|
let e = await n.save();
|
|
496
487
|
if (l()) throw Error("Component unmounted during save");
|
|
497
488
|
a.initSnapshotHistory(), a.snapshotHistoryInstance.value?.loadSnapshots();
|
|
@@ -518,7 +509,7 @@ function Ue(e) {
|
|
|
518
509
|
}
|
|
519
510
|
//#endregion
|
|
520
511
|
//#region src/cloud/composables/useCloudSaveGate.ts
|
|
521
|
-
function
|
|
512
|
+
function Ue(e) {
|
|
522
513
|
let t = u(!1), n = null, r = C(() => e.planConfig.value?.accessibility?.blockOnError === !0), i = C(() => r.value ? e.issues.value.filter((e) => e.severity === "error") : []), a = C(() => i.value.length > 0);
|
|
523
514
|
async function o(e) {
|
|
524
515
|
return a.value ? (n = e, t.value = !0, !1) : (await e(), !0);
|
|
@@ -541,7 +532,7 @@ function We(e) {
|
|
|
541
532
|
}
|
|
542
533
|
//#endregion
|
|
543
534
|
//#region src/cloud/components/CloudSaveGateModal.vue?vue&type=script&setup=true&lang.ts
|
|
544
|
-
var
|
|
535
|
+
var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl:max-w-md tpl:flex-col tpl:gap-4 tpl:rounded-lg tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-5 tpl:shadow-[var(--tpl-shadow-md)]" }, Ke = { class: "tpl:flex tpl:items-center tpl:gap-2" }, qe = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, Je = { class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Ye = { class: "tpl:m-0 tpl:flex tpl:max-h-64 tpl:list-none tpl:flex-col tpl:gap-1.5 tpl:overflow-y-auto tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:p-2" }, Xe = { class: "tpl:text-xs tpl:text-[var(--tpl-text)]" }, Ze = { class: "tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, Qe = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, $e = /* @__PURE__ */ f({
|
|
545
536
|
__name: "CloudSaveGateModal",
|
|
546
537
|
props: {
|
|
547
538
|
open: { type: Boolean },
|
|
@@ -563,18 +554,18 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
563
554
|
"aria-label": b(i).saveGate.title,
|
|
564
555
|
class: "tpl:fixed tpl:inset-0 tpl:z-50 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/40 tpl:p-6",
|
|
565
556
|
onClick: a[2] ||= E((e) => r("cancel"), ["self"])
|
|
566
|
-
}, [p("div",
|
|
567
|
-
p("header",
|
|
557
|
+
}, [p("div", Ge, [
|
|
558
|
+
p("header", Ke, [g(b(he), {
|
|
568
559
|
size: 18,
|
|
569
560
|
"stroke-width": 2,
|
|
570
561
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
571
|
-
}), p("h2",
|
|
572
|
-
p("p",
|
|
573
|
-
p("ul",
|
|
562
|
+
}), p("h2", qe, c(b(i).saveGate.title), 1)]),
|
|
563
|
+
p("p", Je, c(b(i).saveGate.body), 1),
|
|
564
|
+
p("ul", Ye, [(s(!0), m(S, null, e(t.issues, (e) => (s(), m("li", {
|
|
574
565
|
key: `${e.ruleId}-${e.blockId ?? "template"}`,
|
|
575
566
|
class: "tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5"
|
|
576
|
-
}, [p("span",
|
|
577
|
-
p("footer",
|
|
567
|
+
}, [p("span", Xe, c(e.message), 1), p("span", Ze, c(e.ruleId), 1)]))), 128))]),
|
|
568
|
+
p("footer", Qe, [p("button", {
|
|
578
569
|
type: "button",
|
|
579
570
|
class: "tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text)]",
|
|
580
571
|
onClick: a[0] ||= (e) => r("cancel")
|
|
@@ -583,11 +574,11 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
583
574
|
class: "tpl:rounded-md tpl:bg-[var(--tpl-danger)] tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-white",
|
|
584
575
|
onClick: a[1] ||= (e) => r("confirm")
|
|
585
576
|
}, c(b(i).saveGate.confirm), 1)])
|
|
586
|
-
])], 8,
|
|
577
|
+
])], 8, We)) : w("", !0)]),
|
|
587
578
|
_: 1
|
|
588
579
|
}));
|
|
589
580
|
}
|
|
590
|
-
}),
|
|
581
|
+
}), et = {
|
|
591
582
|
class: "tpl-header tpl:absolute tpl:top-0 tpl:right-0 tpl:left-0 tpl:z-50 tpl:grid tpl:h-14 tpl:grid-cols-[1fr_auto_1fr] tpl:items-center tpl:px-4",
|
|
592
583
|
style: {
|
|
593
584
|
"background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)",
|
|
@@ -596,24 +587,24 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
596
587
|
"box-shadow": "var(--tpl-shadow-md)",
|
|
597
588
|
"border-bottom": "1px solid var(--tpl-border)"
|
|
598
589
|
}
|
|
599
|
-
},
|
|
590
|
+
}, tt = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, nt = {
|
|
600
591
|
key: 0,
|
|
601
592
|
class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
|
|
602
|
-
},
|
|
593
|
+
}, rt = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, it = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, at = ["data-tooltip"], ot = {
|
|
603
594
|
key: 1,
|
|
604
595
|
"aria-live": "polite",
|
|
605
596
|
class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success)]"
|
|
606
|
-
},
|
|
597
|
+
}, st = {
|
|
607
598
|
key: 2,
|
|
608
599
|
"aria-live": "polite",
|
|
609
600
|
class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
610
|
-
},
|
|
601
|
+
}, ct = ["aria-label", "aria-expanded"], lt = {
|
|
611
602
|
key: 0,
|
|
612
603
|
class: "tpl:inline-flex tpl:size-4.5 tpl:items-center tpl:justify-center tpl:rounded-full tpl:text-[10px] tpl:font-semibold tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]"
|
|
613
|
-
},
|
|
604
|
+
}, ut = ["aria-expanded"], dt = {
|
|
614
605
|
key: 0,
|
|
615
606
|
class: "tpl:absolute tpl:right-0 tpl:top-full tpl:z-50 tpl:mt-1 tpl:origin-top-right"
|
|
616
|
-
},
|
|
607
|
+
}, ft = ["disabled"], pt = ["disabled"], mt = /* @__PURE__ */ f({
|
|
617
608
|
__name: "CloudHeader",
|
|
618
609
|
props: {
|
|
619
610
|
editor: {},
|
|
@@ -631,22 +622,22 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
631
622
|
},
|
|
632
623
|
emits: ["save"],
|
|
633
624
|
setup(e) {
|
|
634
|
-
let t = h(() => import("./CollaboratorBar-
|
|
635
|
-
return (d, f) => (s(), m("header",
|
|
636
|
-
p("div",
|
|
625
|
+
let t = h(() => import("./CollaboratorBar-Ds0YZWzV.js")), r = h(() => import("./SnapshotHistory-BvF5IXn1.js")), a = h(() => import("./AiFeatureMenu-CPdNpHpZ.js")), { t: o, format: u } = Q();
|
|
626
|
+
return (d, f) => (s(), m("header", et, [
|
|
627
|
+
p("div", tt, [e.featureFlags.templateLimit.value === null ? w("", !0) : (s(), m("span", nt, c(b(u)(b(o).header.templatesUsed, {
|
|
637
628
|
used: e.featureFlags.templateCount.value,
|
|
638
629
|
max: e.featureFlags.templateLimit.value
|
|
639
630
|
})), 1))]),
|
|
640
|
-
p("div",
|
|
641
|
-
g(
|
|
631
|
+
p("div", rt, [
|
|
632
|
+
g(ce, {
|
|
642
633
|
viewport: e.editor.state.viewport,
|
|
643
634
|
onChange: e.editor.setViewport
|
|
644
635
|
}, null, 8, ["viewport", "onChange"]),
|
|
645
|
-
g(
|
|
636
|
+
g(ie, {
|
|
646
637
|
"dark-mode": e.editor.state.darkMode,
|
|
647
638
|
onChange: e.editor.setDarkMode
|
|
648
639
|
}, null, 8, ["dark-mode", "onChange"]),
|
|
649
|
-
g(
|
|
640
|
+
g(q, {
|
|
650
641
|
"preview-mode": e.editor.state.previewMode,
|
|
651
642
|
onChange: e.editor.setPreviewMode
|
|
652
643
|
}, null, 8, ["preview-mode", "onChange"]),
|
|
@@ -670,19 +661,19 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
670
661
|
"onNavigate"
|
|
671
662
|
])) : w("", !0)
|
|
672
663
|
]),
|
|
673
|
-
p("div",
|
|
664
|
+
p("div", it, [
|
|
674
665
|
e.featureFlags.saveStatus.value === "error" ? (s(), m("div", {
|
|
675
666
|
key: 0,
|
|
676
667
|
"aria-live": "assertive",
|
|
677
668
|
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
678
669
|
"data-tooltip": e.featureFlags.saveErrorMessage.value
|
|
679
|
-
}, [g(b(
|
|
670
|
+
}, [g(b(K), {
|
|
680
671
|
size: 12,
|
|
681
672
|
"stroke-width": 2.5
|
|
682
|
-
}), y(" " + c(b(o).header.saveFailed), 1)], 8,
|
|
673
|
+
}), y(" " + c(b(o).header.saveFailed), 1)], 8, at)) : e.featureFlags.saveStatus.value === "saved" ? (s(), m("div", ot, [g(b(G), {
|
|
683
674
|
size: 12,
|
|
684
675
|
"stroke-width": 2.5
|
|
685
|
-
}), y(" " + c(b(o).header.saved), 1)])) : e.editor.state.isDirty ? (s(), m("div",
|
|
676
|
+
}), y(" " + c(b(o).header.saved), 1)])) : e.editor.state.isDirty ? (s(), m("div", st, [f[4] ||= p("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), y(" " + c(b(o).header.unsaved), 1)])) : w("", !0),
|
|
686
677
|
e.commentsInstance.isEnabled.value && e.featureFlags.hasTemplateSaved.value ? (s(), m("button", {
|
|
687
678
|
key: 3,
|
|
688
679
|
"aria-label": e.commentsInstance.unresolvedCount.value > 0 ? `${b(o).comments.button} (${e.commentsInstance.unresolvedCount.value})` : b(o).comments.button,
|
|
@@ -695,13 +686,13 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
695
686
|
}),
|
|
696
687
|
onClick: f[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
|
|
697
688
|
}, [
|
|
698
|
-
g(b(
|
|
689
|
+
g(b(Y), {
|
|
699
690
|
size: 16,
|
|
700
691
|
"stroke-width": 2
|
|
701
692
|
}),
|
|
702
693
|
y(" " + c(b(o).comments.button) + " ", 1),
|
|
703
|
-
e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (s(), m("span",
|
|
704
|
-
], 14,
|
|
694
|
+
e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (s(), m("span", lt, c(e.commentsInstance.unresolvedCount.value), 1)) : w("", !0)
|
|
695
|
+
], 14, ct)) : w("", !0),
|
|
705
696
|
e.featureFlags.canUseAiGeneration.value && e.featureFlags.hasTemplateSaved.value ? (s(), m("div", {
|
|
706
697
|
key: 4,
|
|
707
698
|
ref: (t) => e.panelState.aiMenuRef.value = t,
|
|
@@ -710,11 +701,11 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
710
701
|
"aria-expanded": e.panelState.aiMenuOpen.value,
|
|
711
702
|
class: i(["tpl-ai-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:whitespace-nowrap tpl:transition-all tpl:duration-200", e.panelState.aiButtonActive.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
|
|
712
703
|
onClick: f[1] ||= E((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
|
|
713
|
-
}, [g(b(
|
|
704
|
+
}, [g(b(Z), {
|
|
714
705
|
size: 16,
|
|
715
706
|
"stroke-width": 2,
|
|
716
707
|
class: "tpl-ai-btn-icon"
|
|
717
|
-
}), y(" " + c(b(o).aiChat.button), 1)], 10,
|
|
708
|
+
}), y(" " + c(b(o).aiChat.button), 1)], 10, ut), g(O, {
|
|
718
709
|
"enter-active-class": "tpl:transition-all tpl:duration-150 tpl:ease-out",
|
|
719
710
|
"enter-from-class": "tpl:scale-95 tpl:opacity-0",
|
|
720
711
|
"enter-to-class": "tpl:scale-100 tpl:opacity-100",
|
|
@@ -722,7 +713,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
722
713
|
"leave-from-class": "tpl:scale-100 tpl:opacity-100",
|
|
723
714
|
"leave-to-class": "tpl:scale-95 tpl:opacity-0"
|
|
724
715
|
}, {
|
|
725
|
-
default: l(() => [e.panelState.aiMenuOpen.value ? (s(), m("div",
|
|
716
|
+
default: l(() => [e.panelState.aiMenuOpen.value ? (s(), m("div", dt, [g(b(a), {
|
|
726
717
|
"active-feature": e.panelState.activeAiFeature.value,
|
|
727
718
|
onSelect: e.panelState.handleAiFeatureSelect
|
|
728
719
|
}, null, 8, ["active-feature", "onSelect"])])) : w("", !0)]),
|
|
@@ -743,11 +734,11 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
743
734
|
class: "tpl-spinner",
|
|
744
735
|
size: 16,
|
|
745
736
|
"stroke-width": 2
|
|
746
|
-
})) : (s(), v(b(
|
|
737
|
+
})) : (s(), v(b(X), {
|
|
747
738
|
key: 0,
|
|
748
739
|
size: 16,
|
|
749
740
|
"stroke-width": 2
|
|
750
|
-
})), y(" " + c(b(o).testEmail.button), 1)], 10,
|
|
741
|
+
})), y(" " + c(b(o).testEmail.button), 1)], 10, ft)) : w("", !0),
|
|
751
742
|
p("button", {
|
|
752
743
|
class: i(b($)),
|
|
753
744
|
style: {
|
|
@@ -762,15 +753,15 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
762
753
|
class: "tpl-spinner",
|
|
763
754
|
size: 16,
|
|
764
755
|
"stroke-width": 2
|
|
765
|
-
})) : (s(), v(b(
|
|
756
|
+
})) : (s(), v(b(Pe), {
|
|
766
757
|
key: 0,
|
|
767
758
|
size: 16,
|
|
768
759
|
"stroke-width": 2
|
|
769
|
-
})), y(" " + c(e.isSaving ? b(o).header.saving : b(o).header.save), 1)], 10,
|
|
760
|
+
})), y(" " + c(e.isSaving ? b(o).header.saving : b(o).header.save), 1)], 10, pt)
|
|
770
761
|
])
|
|
771
762
|
]));
|
|
772
763
|
}
|
|
773
|
-
}),
|
|
764
|
+
}), ht = /* @__PURE__ */ f({
|
|
774
765
|
__name: "CloudPanels",
|
|
775
766
|
props: {
|
|
776
767
|
config: {},
|
|
@@ -779,41 +770,28 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
779
770
|
panelState: {},
|
|
780
771
|
planConfigInstance: {},
|
|
781
772
|
testEmail: {},
|
|
782
|
-
mediaLib: {}
|
|
783
|
-
savedModulesHeadless: {},
|
|
784
|
-
showSaveModuleDialog: { type: Boolean },
|
|
785
|
-
saveModulePreSelectedBlockId: {},
|
|
786
|
-
showModuleBrowserModal: { type: Boolean }
|
|
773
|
+
mediaLib: {}
|
|
787
774
|
},
|
|
788
|
-
emits: [
|
|
789
|
-
"update:showSaveModuleDialog",
|
|
790
|
-
"update:saveModulePreSelectedBlockId",
|
|
791
|
-
"update:showModuleBrowserModal",
|
|
792
|
-
"send-test-email",
|
|
793
|
-
"module-insert"
|
|
794
|
-
],
|
|
775
|
+
emits: ["send-test-email"],
|
|
795
776
|
setup(e, { expose: t, emit: n }) {
|
|
796
|
-
let r = h(() => import("./AiChatSidebar-
|
|
777
|
+
let r = h(() => import("./AiChatSidebar-K_AehWc-.js")), i = h(() => import("./CommentsSidebar-DvNEdugN.js")), a = h(() => import("./DesignReferenceSidebar-DNmK3dxp.js")), o = h(() => import("./TemplateScoringPanel-ifGGGWs5.js")), c = h(() => import("./TestEmailModal-BRaM_eko.js")), l = h(async () => {
|
|
797
778
|
try {
|
|
798
779
|
return (await import("@templatical/media-library")).MediaLibraryModal;
|
|
799
780
|
} catch {
|
|
800
781
|
throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
|
|
801
782
|
}
|
|
802
|
-
}),
|
|
803
|
-
function
|
|
783
|
+
}), d = n;
|
|
784
|
+
function f(e, t, n) {
|
|
804
785
|
t.history.record(), n.setContent(e), t.conditionPreview.reset();
|
|
805
786
|
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
let x = u(null);
|
|
810
|
-
function C(e) {
|
|
811
|
-
x.value?.filterByBlock(e);
|
|
787
|
+
let p = u(null);
|
|
788
|
+
function _(e) {
|
|
789
|
+
p.value?.filterByBlock(e);
|
|
812
790
|
}
|
|
813
|
-
return t({ filterCommentsByBlock:
|
|
791
|
+
return t({ filterCommentsByBlock: _ }), (t, n) => (s(), m(S, null, [
|
|
814
792
|
g(b(r), {
|
|
815
793
|
visible: e.panelState.aiChatOpen.value,
|
|
816
|
-
"on-apply": (t) =>
|
|
794
|
+
"on-apply": (t) => f(t, e.core, e.editor),
|
|
817
795
|
onClose: n[0] ||= (t) => e.panelState.aiChatOpen.value = !1
|
|
818
796
|
}, null, 8, ["visible", "on-apply"]),
|
|
819
797
|
g(b(o), {
|
|
@@ -824,11 +802,11 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
824
802
|
visible: e.panelState.designReferenceOpen.value,
|
|
825
803
|
"has-existing-blocks": e.editor.content.value.blocks.length > 0,
|
|
826
804
|
onClose: n[2] ||= (t) => e.panelState.designReferenceOpen.value = !1,
|
|
827
|
-
onApply: n[3] ||= (t) =>
|
|
805
|
+
onApply: n[3] ||= (t) => f(t, e.core, e.editor)
|
|
828
806
|
}, null, 8, ["visible", "has-existing-blocks"]),
|
|
829
807
|
g(b(i), {
|
|
830
808
|
ref_key: "commentsSidebar",
|
|
831
|
-
ref:
|
|
809
|
+
ref: p,
|
|
832
810
|
visible: e.panelState.commentsOpen.value,
|
|
833
811
|
onClose: n[4] ||= (t) => e.panelState.commentsOpen.value = !1
|
|
834
812
|
}, null, 8, ["visible"]),
|
|
@@ -837,7 +815,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
837
815
|
"allowed-emails": e.testEmail.allowedEmails.value,
|
|
838
816
|
"is-sending": e.testEmail.isSending.value,
|
|
839
817
|
error: e.testEmail.error.value,
|
|
840
|
-
onSend: n[5] ||= (e) =>
|
|
818
|
+
onSend: n[5] ||= (e) => d("send-test-email", e),
|
|
841
819
|
onClose: n[6] ||= (t) => e.panelState.testEmailModalOpen.value = !1
|
|
842
820
|
}, null, 8, [
|
|
843
821
|
"visible",
|
|
@@ -845,22 +823,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
845
823
|
"is-sending",
|
|
846
824
|
"error"
|
|
847
825
|
]),
|
|
848
|
-
|
|
849
|
-
key: 0,
|
|
850
|
-
visible: e.showSaveModuleDialog,
|
|
851
|
-
"pre-selected-block-id": e.saveModulePreSelectedBlockId,
|
|
852
|
-
onClose: n[7] ||= (e) => {
|
|
853
|
-
p("update:showSaveModuleDialog", !1), p("update:saveModulePreSelectedBlockId", null);
|
|
854
|
-
},
|
|
855
|
-
onSaved: n[8] ||= (t) => e.savedModulesHeadless.loadModules()
|
|
856
|
-
}, null, 8, ["visible", "pre-selected-block-id"])) : w("", !0),
|
|
857
|
-
e.planConfigInstance.hasFeature("saved_modules") && e.config.modules !== !1 ? (s(), v(b(d), {
|
|
858
|
-
key: 1,
|
|
859
|
-
visible: e.showModuleBrowserModal,
|
|
860
|
-
onClose: n[9] ||= (e) => p("update:showModuleBrowserModal", !1),
|
|
861
|
-
onInsert: y
|
|
862
|
-
}, null, 8, ["visible"])) : w("", !0),
|
|
863
|
-
g(b(f), {
|
|
826
|
+
g(b(l), {
|
|
864
827
|
visible: e.panelState.mediaLibraryOpen.value,
|
|
865
828
|
accept: e.panelState.mediaLibraryAccept.value,
|
|
866
829
|
"popover-target": e.core.popoverRoot.value,
|
|
@@ -875,23 +838,23 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
875
838
|
])
|
|
876
839
|
], 64));
|
|
877
840
|
}
|
|
878
|
-
}),
|
|
841
|
+
}), gt = {
|
|
879
842
|
key: 0,
|
|
880
843
|
class: "tpl-loading tpl:absolute tpl:inset-0 tpl:z-overlay tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]"
|
|
881
|
-
},
|
|
844
|
+
}, _t = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, vt = { class: "tpl:flex tpl:w-12 tpl:shrink-0 tpl:flex-col tpl:items-center tpl:gap-4 tpl:py-5 tpl:border-r tpl:border-[var(--tpl-border)]" }, yt = /* @__PURE__ */ f({
|
|
882
845
|
__name: "CloudLoadingOverlay",
|
|
883
846
|
props: { visible: { type: Boolean } },
|
|
884
847
|
setup(t) {
|
|
885
|
-
return (n, r) => t.visible ? (s(), m("div",
|
|
848
|
+
return (n, r) => t.visible ? (s(), m("div", gt, [r[1] ||= x("<div class=\"tpl:flex tpl:h-14 tpl:shrink-0 tpl:items-center tpl:justify-between tpl:px-4 tpl:border-b tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-5 tpl:w-28 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl:flex tpl:gap-3\"><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-8 tpl:w-20 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div></div>", 1), p("div", _t, [p("div", vt, [(s(), m(S, null, e(5, (e) => p("div", {
|
|
886
849
|
key: e,
|
|
887
850
|
class: "tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]"
|
|
888
851
|
})), 64))]), r[0] ||= x("<div class=\"tpl:flex tpl:flex-1 tpl:items-start tpl:justify-center tpl:overflow-auto tpl:p-8 tpl:bg-[var(--tpl-canvas-bg)]\"><div class=\"tpl:w-full tpl:max-w-[600px] tpl:rounded-[var(--tpl-radius)] tpl:p-6 tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-sm)]\"><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:h-3 tpl:w-3/4 tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-5/6 tpl:rounded\"></div></div><div class=\"tpl:py-4\"><div class=\"tpl-shimmer tpl:h-44 tpl:w-full tpl:rounded-[var(--tpl-radius-sm)]\"></div></div><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:h-3 tpl:w-full tpl:rounded\"></div><div class=\"tpl-shimmer tpl:h-3 tpl:w-2/3 tpl:rounded\"></div></div><div class=\"tpl:flex tpl:justify-center tpl:py-4\"><div class=\"tpl-shimmer tpl:h-10 tpl:w-36 tpl:rounded-[var(--tpl-radius-sm)]\"></div></div><div class=\"tpl:space-y-2 tpl:py-4\"><div class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/2 tpl:rounded\"></div><div class=\"tpl-shimmer tpl:mx-auto tpl:h-2.5 tpl:w-1/3 tpl:rounded\"></div></div></div></div><div class=\"tpl:flex tpl:w-[320px] tpl:shrink-0 tpl:flex-col tpl:gap-4 tpl:p-4 tpl:border-l tpl:border-[var(--tpl-border)]\"><div class=\"tpl-shimmer tpl:h-8 tpl:rounded-[var(--tpl-radius-sm)]\"></div><div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div><div class=\"tpl-shimmer tpl:h-32 tpl:rounded-[var(--tpl-radius)]\"></div></div>", 2)])])) : w("", !0);
|
|
889
852
|
}
|
|
890
|
-
}),
|
|
853
|
+
}), bt = {
|
|
891
854
|
key: 0,
|
|
892
855
|
role: "alert",
|
|
893
856
|
class: "tpl-error tpl:absolute tpl:inset-0 tpl:z-overlay tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-6 tpl:px-8 tpl:bg-[var(--tpl-bg)]"
|
|
894
|
-
},
|
|
857
|
+
}, xt = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, St = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, Ct = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, wt = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Tt = /* @__PURE__ */ f({
|
|
895
858
|
__name: "CloudErrorOverlay",
|
|
896
859
|
props: {
|
|
897
860
|
error: {},
|
|
@@ -906,13 +869,13 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
906
869
|
function a(e) {
|
|
907
870
|
return "isNotFound" in e && !!e.isNotFound;
|
|
908
871
|
}
|
|
909
|
-
return (t, o) => e.visible && e.error ? (s(), m("div",
|
|
910
|
-
p("div",
|
|
872
|
+
return (t, o) => e.visible && e.error ? (s(), m("div", bt, [
|
|
873
|
+
p("div", xt, [g(b(K), {
|
|
911
874
|
size: 32,
|
|
912
875
|
"stroke-width": 1.5,
|
|
913
876
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
914
877
|
})]),
|
|
915
|
-
p("div",
|
|
878
|
+
p("div", St, [p("h2", Ct, c(b(r).error.title), 1), p("p", wt, c(i(e.error)), 1)]),
|
|
916
879
|
a(e.error) ? w("", !0) : (s(), m("button", {
|
|
917
880
|
key: 0,
|
|
918
881
|
class: "tpl-btn tpl-btn-primary tpl:inline-flex tpl:items-center tpl:gap-2 tpl:rounded-md tpl:px-4 tpl:py-2.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:bg-[var(--tpl-primary)] tpl:text-[var(--tpl-bg)]",
|
|
@@ -920,20 +883,20 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
920
883
|
}, c(b(r).error.retry), 1))
|
|
921
884
|
])) : w("", !0);
|
|
922
885
|
}
|
|
923
|
-
}),
|
|
886
|
+
}), Et = {
|
|
924
887
|
key: 0,
|
|
925
888
|
class: "tpl-preview-banner tpl:absolute tpl:top-14 tpl:right-0 tpl:left-0 tpl:z-40 tpl:flex tpl:items-center tpl:justify-center tpl:gap-4 tpl:px-4 tpl:py-3 tpl:bg-[var(--tpl-primary-light)] tpl:border-b tpl:border-[var(--tpl-primary)]"
|
|
926
|
-
},
|
|
889
|
+
}, Dt = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, Ot = { class: "tpl:flex tpl:items-center tpl:gap-2" }, kt = /* @__PURE__ */ f({
|
|
927
890
|
__name: "SnapshotPreviewBanner",
|
|
928
891
|
props: { visible: { type: Boolean } },
|
|
929
892
|
emits: ["cancel", "confirm"],
|
|
930
893
|
setup(e, { emit: t }) {
|
|
931
894
|
let n = t, { t: r } = Q();
|
|
932
|
-
return (t, i) => e.visible ? (s(), m("div",
|
|
895
|
+
return (t, i) => e.visible ? (s(), m("div", Et, [p("div", Dt, [g(b(me), {
|
|
933
896
|
size: 18,
|
|
934
897
|
"stroke-width": 2,
|
|
935
898
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
936
|
-
}), p("span", null, c(b(r).snapshotPreview.message), 1)]), p("div",
|
|
899
|
+
}), p("span", null, c(b(r).snapshotPreview.message), 1)]), p("div", Ot, [p("button", {
|
|
937
900
|
class: "tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:transition-all tpl:duration-150 tpl:text-[var(--tpl-text-muted)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
938
901
|
style: { "background-color": "transparent" },
|
|
939
902
|
onClick: i[0] ||= (e) => n("cancel")
|
|
@@ -942,7 +905,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
942
905
|
onClick: i[1] ||= (e) => n("confirm")
|
|
943
906
|
}, c(b(r).snapshotPreview.restore), 1)])])) : w("", !0);
|
|
944
907
|
}
|
|
945
|
-
}),
|
|
908
|
+
}), At = {
|
|
946
909
|
key: 0,
|
|
947
910
|
role: "status",
|
|
948
911
|
"aria-live": "polite",
|
|
@@ -952,14 +915,14 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
952
915
|
color: "var(--tpl-text)",
|
|
953
916
|
border: "1px solid var(--tpl-warning)"
|
|
954
917
|
}
|
|
955
|
-
},
|
|
918
|
+
}, jt = /* @__PURE__ */ f({
|
|
956
919
|
__name: "CollabUndoToast",
|
|
957
920
|
props: { visible: { type: Boolean } },
|
|
958
921
|
setup(e) {
|
|
959
|
-
let { t } =
|
|
960
|
-
return (n, r) => e.visible ? (s(), m("div",
|
|
922
|
+
let { t } = U();
|
|
923
|
+
return (n, r) => e.visible ? (s(), m("div", At, c(b(t).history.collabWarning), 1)) : w("", !0);
|
|
961
924
|
}
|
|
962
|
-
}),
|
|
925
|
+
}), Mt = ["data-tpl-theme"], Nt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Pt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Ft = ["aria-label"], It = /*#__PURE__*/ ge(/* @__PURE__ */ f({
|
|
963
926
|
__name: "CloudEditor",
|
|
964
927
|
props: {
|
|
965
928
|
config: {},
|
|
@@ -970,74 +933,67 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
970
933
|
},
|
|
971
934
|
emits: ["ready"],
|
|
972
935
|
setup(e, { expose: a, emit: o }) {
|
|
973
|
-
let d = e;
|
|
974
|
-
_(z,
|
|
975
|
-
let
|
|
976
|
-
config:
|
|
977
|
-
translations:
|
|
978
|
-
fontsManager:
|
|
979
|
-
emit:
|
|
980
|
-
getCommentsSidebar: () =>
|
|
981
|
-
editorRoot:
|
|
982
|
-
containerEl:
|
|
983
|
-
}), { isInitializing:
|
|
984
|
-
async function
|
|
936
|
+
let d = h(() => import("./SavedBlocksPanels-CET0zvH6.js")), f = e;
|
|
937
|
+
_(z, f.cloudTranslations);
|
|
938
|
+
let x = o, S = u(null), C = u(null), k = Be({
|
|
939
|
+
config: f.config,
|
|
940
|
+
translations: f.translations,
|
|
941
|
+
fontsManager: f.fontsManager,
|
|
942
|
+
emit: x,
|
|
943
|
+
getCommentsSidebar: () => S.value ? { filterByBlock: S.value.filterCommentsByBlock } : null,
|
|
944
|
+
editorRoot: f.shadowRoot,
|
|
945
|
+
containerEl: C
|
|
946
|
+
}), { isInitializing: A, isAuthReady: j, initError: M, planConfigInstance: N, websocket: F, collaboration: I, isCollaborationEnabled: L, editor: R, core: B, featureFlags: V, mediaLib: H, exporter: ee, testEmail: U, commentsInstance: W, savedBlocks: G, panelState: K, snapshotPreview: q, collabWarning: re, setThemeOverrides: ie, setUiTheme: ce } = k, { showNotice: le } = P(() => f.config.smallScreenNotice);
|
|
947
|
+
async function me(e) {
|
|
985
948
|
try {
|
|
986
|
-
await
|
|
949
|
+
await U.sendTestEmail(e), K.testEmailModalOpen.value = !1;
|
|
987
950
|
} catch {}
|
|
988
951
|
}
|
|
989
|
-
async function
|
|
952
|
+
async function J() {
|
|
990
953
|
try {
|
|
991
|
-
await
|
|
954
|
+
await q.confirmRestoreSnapshot();
|
|
992
955
|
} catch {}
|
|
993
956
|
}
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
core: L,
|
|
1008
|
-
exporter: ne,
|
|
1009
|
-
featureFlags: R,
|
|
1010
|
-
isDestroyed: S.isDestroyed
|
|
1011
|
-
}), X = We({
|
|
1012
|
-
issues: L.templateLint ? L.templateLint.issues : u([]),
|
|
1013
|
-
planConfig: M.config
|
|
957
|
+
let Y = He({
|
|
958
|
+
config: f.config,
|
|
959
|
+
editor: R,
|
|
960
|
+
websocket: F,
|
|
961
|
+
planConfigInstance: N,
|
|
962
|
+
snapshotPreview: q,
|
|
963
|
+
core: B,
|
|
964
|
+
exporter: ee,
|
|
965
|
+
featureFlags: V,
|
|
966
|
+
isDestroyed: k.isDestroyed
|
|
967
|
+
}), X = Ue({
|
|
968
|
+
issues: B.templateLint ? B.templateLint.issues : u([]),
|
|
969
|
+
planConfig: N.config
|
|
1014
970
|
});
|
|
1015
971
|
async function Z() {
|
|
1016
|
-
await X.tryRunSave(() => Y.saveTemplate().catch((e) =>
|
|
972
|
+
await X.tryRunSave(() => Y.saveTemplate().catch((e) => f.config.onError?.(e)));
|
|
1017
973
|
}
|
|
1018
|
-
return
|
|
1019
|
-
|
|
974
|
+
return k.onSaveHook.value = Z, r(() => {
|
|
975
|
+
k.initialize();
|
|
1020
976
|
}), t(() => {
|
|
1021
|
-
|
|
977
|
+
k.destroy();
|
|
1022
978
|
}), a({
|
|
1023
|
-
getContent: () =>
|
|
1024
|
-
setContent: (e) =>
|
|
1025
|
-
setTheme:
|
|
1026
|
-
setThemeOverrides:
|
|
979
|
+
getContent: () => R.content.value,
|
|
980
|
+
setContent: (e) => R.setContent(e),
|
|
981
|
+
setTheme: ce,
|
|
982
|
+
setThemeOverrides: ie,
|
|
1027
983
|
create: Y.createTemplate,
|
|
1028
984
|
load: Y.loadTemplate,
|
|
1029
985
|
save: Y.saveTemplate,
|
|
1030
|
-
sendTestEmail:
|
|
986
|
+
sendTestEmail: U.sendTestEmail
|
|
1031
987
|
}), (t, r) => (s(), m("div", {
|
|
1032
988
|
ref_key: "rootEl",
|
|
1033
|
-
ref:
|
|
1034
|
-
class: i(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": b(
|
|
1035
|
-
"data-tpl-theme": b(
|
|
1036
|
-
style: n(b(
|
|
1037
|
-
onDragover: r[
|
|
1038
|
-
onDrop: r[
|
|
989
|
+
ref: C,
|
|
990
|
+
class: i(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": b(R).state.darkMode }]),
|
|
991
|
+
"data-tpl-theme": b(B).resolvedTheme.value,
|
|
992
|
+
style: n(b(B).themeStyles.value),
|
|
993
|
+
onDragover: r[6] ||= E(() => {}, ["prevent"]),
|
|
994
|
+
onDrop: r[7] ||= E(() => {}, ["prevent"])
|
|
1039
995
|
}, [
|
|
1040
|
-
g(
|
|
996
|
+
g(pe),
|
|
1041
997
|
g(O, {
|
|
1042
998
|
"enter-active-class": "tpl:transition-opacity tpl:duration-200",
|
|
1043
999
|
"enter-from-class": "tpl:opacity-100",
|
|
@@ -1046,7 +1002,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1046
1002
|
"leave-from-class": "tpl:opacity-100",
|
|
1047
1003
|
"leave-to-class": "tpl:opacity-0"
|
|
1048
1004
|
}, {
|
|
1049
|
-
default: l(() => [g(
|
|
1005
|
+
default: l(() => [g(yt, { visible: b(A) || b(R).state.isLoading }, null, 8, ["visible"])]),
|
|
1050
1006
|
_: 1
|
|
1051
1007
|
}),
|
|
1052
1008
|
g(O, {
|
|
@@ -1057,10 +1013,10 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1057
1013
|
"leave-from-class": "tpl:opacity-100",
|
|
1058
1014
|
"leave-to-class": "tpl:opacity-0"
|
|
1059
1015
|
}, {
|
|
1060
|
-
default: l(() => [g(
|
|
1061
|
-
error: b(
|
|
1062
|
-
visible: !!b(
|
|
1063
|
-
onRetry: b(
|
|
1016
|
+
default: l(() => [g(Tt, {
|
|
1017
|
+
error: b(M),
|
|
1018
|
+
visible: !!b(M) && !b(A),
|
|
1019
|
+
onRetry: b(k).initialize
|
|
1064
1020
|
}, null, 8, [
|
|
1065
1021
|
"error",
|
|
1066
1022
|
"visible",
|
|
@@ -1068,19 +1024,19 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1068
1024
|
])]),
|
|
1069
1025
|
_: 1
|
|
1070
1026
|
}),
|
|
1071
|
-
g(
|
|
1072
|
-
editor: b(
|
|
1073
|
-
core: b(
|
|
1074
|
-
"feature-flags": b(
|
|
1075
|
-
"panel-state": b(
|
|
1076
|
-
"snapshot-preview": b(
|
|
1077
|
-
"comments-instance": b(
|
|
1078
|
-
"test-email": b(
|
|
1079
|
-
websocket: b(
|
|
1080
|
-
collaboration: b(
|
|
1081
|
-
"is-collaboration-enabled": b(
|
|
1082
|
-
"is-saving": b(
|
|
1083
|
-
"is-save-disabled": b(
|
|
1027
|
+
g(mt, {
|
|
1028
|
+
editor: b(R),
|
|
1029
|
+
core: b(B),
|
|
1030
|
+
"feature-flags": b(V),
|
|
1031
|
+
"panel-state": b(K),
|
|
1032
|
+
"snapshot-preview": b(q),
|
|
1033
|
+
"comments-instance": b(W),
|
|
1034
|
+
"test-email": b(U),
|
|
1035
|
+
websocket: b(F),
|
|
1036
|
+
collaboration: b(I),
|
|
1037
|
+
"is-collaboration-enabled": b(L),
|
|
1038
|
+
"is-saving": b(R).state.isSaving || b(V).isSaveExporting.value,
|
|
1039
|
+
"is-save-disabled": b(R).state.isSaving || b(V).isSaveExporting.value || !b(R).state.isDirty,
|
|
1084
1040
|
onSave: Z
|
|
1085
1041
|
}, null, 8, [
|
|
1086
1042
|
"editor",
|
|
@@ -1096,7 +1052,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1096
1052
|
"is-saving",
|
|
1097
1053
|
"is-save-disabled"
|
|
1098
1054
|
]),
|
|
1099
|
-
g(
|
|
1055
|
+
g($e, {
|
|
1100
1056
|
open: b(X).modalOpen.value,
|
|
1101
1057
|
issues: b(X).blockingIssues.value,
|
|
1102
1058
|
onCancel: b(X).cancel,
|
|
@@ -1107,10 +1063,10 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1107
1063
|
"onCancel",
|
|
1108
1064
|
"onConfirm"
|
|
1109
1065
|
]),
|
|
1110
|
-
g(
|
|
1111
|
-
visible: b(
|
|
1112
|
-
onCancel: b(
|
|
1113
|
-
onConfirm:
|
|
1066
|
+
g(kt, {
|
|
1067
|
+
visible: b(q).isPreviewingSnapshot.value,
|
|
1068
|
+
onCancel: b(q).cancelPreview,
|
|
1069
|
+
onConfirm: J
|
|
1114
1070
|
}, null, 8, ["visible", "onCancel"]),
|
|
1115
1071
|
g(O, {
|
|
1116
1072
|
"enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
|
|
@@ -1120,18 +1076,18 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1120
1076
|
"leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
|
|
1121
1077
|
"leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
|
|
1122
1078
|
}, {
|
|
1123
|
-
default: l(() => [g(
|
|
1079
|
+
default: l(() => [g(jt, { visible: b(re).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
|
|
1124
1080
|
_: 1
|
|
1125
1081
|
}),
|
|
1126
|
-
T(g(
|
|
1082
|
+
T(g(ae, null, null, 512), [[D, !b(R).state.previewMode]]),
|
|
1127
1083
|
p("div", {
|
|
1128
|
-
class: i(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [b(
|
|
1084
|
+
class: i(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [b(R).state.previewMode ? "tpl:left-0 tpl:right-0" : b(K).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", b(q).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
1129
1085
|
style: {
|
|
1130
1086
|
transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1131
1087
|
"background-color": "var(--tpl-canvas-bg)"
|
|
1132
1088
|
}
|
|
1133
|
-
}, [p("div",
|
|
1134
|
-
default: l(() => [b(
|
|
1089
|
+
}, [p("div", Nt, [g(O, { name: "tpl-restore-btn" }, {
|
|
1090
|
+
default: l(() => [b(B).conditionPreview.hasHiddenBlocks.value ? (s(), m("button", {
|
|
1135
1091
|
key: 0,
|
|
1136
1092
|
class: "tpl:absolute tpl:left-1/2 tpl:top-2 tpl:-translate-x-1/2 tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-full tpl:border tpl:px-3.5 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:whitespace-nowrap tpl:shadow-md tpl:hover:opacity-80",
|
|
1137
1093
|
style: {
|
|
@@ -1140,22 +1096,22 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1140
1096
|
"border-color": "var(--tpl-warning)",
|
|
1141
1097
|
"backdrop-filter": "blur(8px)"
|
|
1142
1098
|
},
|
|
1143
|
-
onClick: r[0] ||= (e) => b(
|
|
1144
|
-
}, [g(b(
|
|
1099
|
+
onClick: r[0] ||= (e) => b(B).conditionPreview.reset()
|
|
1100
|
+
}, [g(b(oe), {
|
|
1145
1101
|
size: 13,
|
|
1146
1102
|
"stroke-width": 2
|
|
1147
|
-
}), y(" " + c(b(
|
|
1103
|
+
}), y(" " + c(b(B).t.blockSettings.restoreHiddenBlocks), 1)])) : w("", !0)]),
|
|
1148
1104
|
_: 1
|
|
1149
|
-
})]), p("main",
|
|
1150
|
-
viewport: b(
|
|
1151
|
-
content: b(
|
|
1152
|
-
"selected-block-id": b(
|
|
1153
|
-
"dark-mode": b(
|
|
1154
|
-
"preview-mode": b(
|
|
1155
|
-
"locked-blocks": b(
|
|
1156
|
-
onSelectBlock: b(
|
|
1157
|
-
onOpenAiChat: r[1] ||= (e) => b(
|
|
1158
|
-
onOpenDesignReference: r[2] ||= (e) => b(
|
|
1105
|
+
})]), p("main", Pt, [g(ne, {
|
|
1106
|
+
viewport: b(R).state.viewport,
|
|
1107
|
+
content: b(R).content.value,
|
|
1108
|
+
"selected-block-id": b(R).state.selectedBlockId,
|
|
1109
|
+
"dark-mode": b(R).state.darkMode,
|
|
1110
|
+
"preview-mode": b(R).state.previewMode,
|
|
1111
|
+
"locked-blocks": b(I)?.lockedBlocks.value ?? void 0,
|
|
1112
|
+
onSelectBlock: b(R).selectBlock,
|
|
1113
|
+
onOpenAiChat: r[1] ||= (e) => b(K).aiChatOpen.value = !0,
|
|
1114
|
+
onOpenDesignReference: r[2] ||= (e) => b(K).designReferenceOpen.value = !0
|
|
1159
1115
|
}, null, 8, [
|
|
1160
1116
|
"viewport",
|
|
1161
1117
|
"content",
|
|
@@ -1165,51 +1121,43 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1165
1121
|
"locked-blocks",
|
|
1166
1122
|
"onSelectBlock"
|
|
1167
1123
|
])])], 2),
|
|
1168
|
-
e.config.branding !== !1 && !b(
|
|
1124
|
+
e.config.branding !== !1 && !b(V).isWhiteLabeled.value ? (s(), v(ue, {
|
|
1169
1125
|
key: 0,
|
|
1170
|
-
"position-class": [b(
|
|
1126
|
+
"position-class": [b(R).state.previewMode ? "tpl:left-0 tpl:right-0" : b(K).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
|
|
1171
1127
|
}, null, 8, ["position-class"])) : w("", !0),
|
|
1172
1128
|
p("div", {
|
|
1173
1129
|
class: "tpl-sr-only",
|
|
1174
1130
|
role: "status",
|
|
1175
1131
|
"aria-live": "polite",
|
|
1176
1132
|
"aria-atomic": "true",
|
|
1177
|
-
"aria-label": b(
|
|
1178
|
-
}, c(b(
|
|
1179
|
-
T(g(
|
|
1180
|
-
"selected-block": b(
|
|
1181
|
-
settings: b(
|
|
1182
|
-
"shifted-left": b(
|
|
1183
|
-
onUpdateBlock: r[3] ||= (e) => b(
|
|
1184
|
-
onDeleteBlock: r[4] ||= (e) => b(
|
|
1185
|
-
onDuplicateBlock: r[5] ||= (e) => b(
|
|
1186
|
-
onUpdateSettings: b(
|
|
1133
|
+
"aria-label": b(B).t.landmarks.reorderAnnouncements
|
|
1134
|
+
}, c(b(B).keyboardReorder.announcement.value), 9, Ft),
|
|
1135
|
+
T(g(te, {
|
|
1136
|
+
"selected-block": b(R).selectedBlock.value,
|
|
1137
|
+
settings: b(R).content.value.settings,
|
|
1138
|
+
"shifted-left": b(K).rightPanelOpen.value,
|
|
1139
|
+
onUpdateBlock: r[3] ||= (e) => b(R).updateBlock(b(R).selectedBlock.value.id, e),
|
|
1140
|
+
onDeleteBlock: r[4] ||= (e) => b(B).blockActions.deleteBlock(b(R).selectedBlock.value.id),
|
|
1141
|
+
onDuplicateBlock: r[5] ||= (e) => b(B).blockActions.duplicateBlock(b(R).selectedBlock.value),
|
|
1142
|
+
onUpdateSettings: b(R).updateSettings
|
|
1187
1143
|
}, null, 8, [
|
|
1188
1144
|
"selected-block",
|
|
1189
1145
|
"settings",
|
|
1190
1146
|
"shifted-left",
|
|
1191
1147
|
"onUpdateSettings"
|
|
1192
|
-
]), [[D, !b(
|
|
1193
|
-
!b(
|
|
1148
|
+
]), [[D, !b(R).state.previewMode]]),
|
|
1149
|
+
!b(A) && b(j) ? (s(), v(ht, {
|
|
1194
1150
|
key: 1,
|
|
1195
1151
|
ref_key: "cloudPanelsRef",
|
|
1196
|
-
ref:
|
|
1197
|
-
config:
|
|
1198
|
-
editor: b(
|
|
1199
|
-
core: b(
|
|
1200
|
-
"panel-state": b(
|
|
1201
|
-
"plan-config-instance": b(
|
|
1202
|
-
"test-email": b(
|
|
1203
|
-
"media-lib": b(
|
|
1204
|
-
|
|
1205
|
-
"show-save-module-dialog": b(W),
|
|
1206
|
-
"save-module-pre-selected-block-id": b(K),
|
|
1207
|
-
"show-module-browser-modal": b(G),
|
|
1208
|
-
"onUpdate:showSaveModuleDialog": r[6] ||= (e) => W.value = e,
|
|
1209
|
-
"onUpdate:saveModulePreSelectedBlockId": r[7] ||= (e) => K.value = e,
|
|
1210
|
-
"onUpdate:showModuleBrowserModal": r[8] ||= (e) => G.value = e,
|
|
1211
|
-
onSendTestEmail: J,
|
|
1212
|
-
onModuleInsert: _e
|
|
1152
|
+
ref: S,
|
|
1153
|
+
config: f.config,
|
|
1154
|
+
editor: b(R),
|
|
1155
|
+
core: b(B),
|
|
1156
|
+
"panel-state": b(K),
|
|
1157
|
+
"plan-config-instance": b(N),
|
|
1158
|
+
"test-email": b(U),
|
|
1159
|
+
"media-lib": b(H),
|
|
1160
|
+
onSendTestEmail: me
|
|
1213
1161
|
}, null, 8, [
|
|
1214
1162
|
"config",
|
|
1215
1163
|
"editor",
|
|
@@ -1217,21 +1165,21 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1217
1165
|
"panel-state",
|
|
1218
1166
|
"plan-config-instance",
|
|
1219
1167
|
"test-email",
|
|
1220
|
-
"media-lib"
|
|
1221
|
-
"saved-modules-headless",
|
|
1222
|
-
"show-save-module-dialog",
|
|
1223
|
-
"save-module-pre-selected-block-id",
|
|
1224
|
-
"show-module-browser-modal"
|
|
1168
|
+
"media-lib"
|
|
1225
1169
|
])) : w("", !0),
|
|
1170
|
+
b(G).isAvailable.value ? (s(), v(b(d), {
|
|
1171
|
+
key: 2,
|
|
1172
|
+
feature: b(G)
|
|
1173
|
+
}, null, 8, ["feature"])) : w("", !0),
|
|
1226
1174
|
p("div", {
|
|
1227
|
-
ref: (e) => b(
|
|
1175
|
+
ref: (e) => b(B).popoverRoot.value = e,
|
|
1228
1176
|
class: "tpl-popover-root"
|
|
1229
1177
|
}, null, 512),
|
|
1230
|
-
g(
|
|
1231
|
-
g(
|
|
1232
|
-
b(
|
|
1233
|
-
], 46,
|
|
1178
|
+
g(se),
|
|
1179
|
+
g(fe),
|
|
1180
|
+
b(le) ? (s(), v(de, { key: 3 })) : w("", !0)
|
|
1181
|
+
], 46, Mt));
|
|
1234
1182
|
}
|
|
1235
|
-
}), [["__scopeId", "data-v-
|
|
1183
|
+
}), [["__scopeId", "data-v-04940787"]]);
|
|
1236
1184
|
//#endregion
|
|
1237
|
-
export {
|
|
1185
|
+
export { It as default };
|