@templatical/editor 0.0.5 → 0.1.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/LICENSE +56 -0
- package/README.md +69 -0
- package/dist/{AiChatSidebar-DwME3f-a.js → AiChatSidebar-DSbBLDkW.js} +9 -9
- package/dist/{AiFeatureMenu-DJvWL1GZ.js → AiFeatureMenu-d04gmgud.js} +5 -5
- package/dist/{CloudEditor-Fe0ssRgi.js → CloudEditor-CjO4tzbV.js} +218 -227
- package/dist/{CollaboratorBar-DTT0EkZn.js → CollaboratorBar-DYBSTuMW.js} +3 -3
- package/dist/{CommentsSidebar-DrJhQRXK.js → CommentsSidebar-CQvUh5xt.js} +9 -9
- package/dist/CountdownBlock-D3olfssJ.js +92 -0
- package/dist/CountdownToolbar-ClpBwFoX.js +210 -0
- package/dist/{DesignReferenceSidebar-DdOht5zn.js → DesignReferenceSidebar-BOfeETis.js} +5 -5
- package/dist/{LoadingTrack-vK8W2PJf.js → LoadingTrack-CdqDYVR-.js} +1 -1
- package/dist/{ModuleBrowserModal-CiV_jOEM.js → ModuleBrowserModal-DKSSQonv.js} +7 -7
- package/dist/{ModulePreviewCanvas-Bmy6Y1WE.js → ModulePreviewCanvas-CoLNuu1o.js} +32 -32
- package/dist/NumberWithSuffix-_0l3Q4jq.js +424 -0
- package/dist/{ParagraphEditor-CoQ3NlS7.js → ParagraphEditor-C9R2ou7x.js} +57 -56
- package/dist/{RichTextEditorContent-CHJlh7HJ.js → RichTextEditorContent-BcY3Rcp4.js} +2 -2
- package/dist/{SaveModuleDialog-CD2ZYq1o.js → SaveModuleDialog-DmFe4VUc.js} +3 -3
- package/dist/{SnapshotHistory-DltsKvhP.js → SnapshotHistory-CAhikAOr.js} +7 -7
- package/dist/{TemplateScoringPanel-DmnmUE3y.js → TemplateScoringPanel-b5DnyIll.js} +10 -10
- package/dist/{TestEmailModal-Dl633j9o.js → TestEmailModal-BmDIzGYz.js} +3 -3
- package/dist/{TitleEditor-C7fds2Nc.js → TitleEditor-DtRYx-LS.js} +11 -11
- package/dist/{TplModal-C5_CF-qn.js → TplModal-BLbMDMd6.js} +4 -4
- package/dist/{_plugin-vue_export-helper-B1-bu7yR.js → _plugin-vue_export-helper-BHUPLLh1.js} +2 -2
- package/dist/{blockTypeIcons-BrKZB10B.js → blockTypeIcons-CEU2dMe1.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-C5UQmEgV.js → AiFeatureMenu-DWMSYD2J.js} +4 -4
- package/dist/cdn/chunks/{AiFeatureMenu-C5UQmEgV.js.map → AiFeatureMenu-DWMSYD2J.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-DeTolKnf.js → CloudEditor-HrfSfr3G.js} +179 -188
- package/dist/cdn/chunks/CloudEditor-HrfSfr3G.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-DO1nxSrr.js → CollaboratorBar-Cfok52TZ.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-DO1nxSrr.js.map → CollaboratorBar-Cfok52TZ.js.map} +1 -1
- package/dist/cdn/chunks/CountdownBlock-CkV21NEM.js +93 -0
- package/dist/cdn/chunks/CountdownBlock-CkV21NEM.js.map +1 -0
- package/dist/cdn/chunks/CountdownToolbar-CEmbR7kt.js +212 -0
- package/dist/cdn/chunks/CountdownToolbar-CEmbR7kt.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-ChBr3aXj.js → ModuleBrowserModal-sASaPRot.js} +7 -7
- package/dist/cdn/chunks/{ModuleBrowserModal-ChBr3aXj.js.map → ModuleBrowserModal-sASaPRot.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DkSvri9H.js → ModulePreviewCanvas-D8zsajMf.js} +19 -19
- package/dist/cdn/chunks/{ModulePreviewCanvas-DkSvri9H.js.map → ModulePreviewCanvas-D8zsajMf.js.map} +1 -1
- package/dist/cdn/chunks/NumberWithSuffix-k5Te7Tuw.js +425 -0
- package/dist/cdn/chunks/NumberWithSuffix-k5Te7Tuw.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-DU3oUKA7.js → ParagraphEditor-C1vQWGzW.js} +37 -37
- package/dist/cdn/chunks/ParagraphEditor-C1vQWGzW.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-BrsW1p9s.js → RichTextEditorContent-CT8dBB0R.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-BrsW1p9s.js.map → RichTextEditorContent-CT8dBB0R.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-CjqKkTEc.js → SaveModuleDialog-BkwKrB0N.js} +5 -5
- package/dist/cdn/chunks/{SaveModuleDialog-CjqKkTEc.js.map → SaveModuleDialog-BkwKrB0N.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-C8FYbadT.js → TitleEditor-BXqt42Px.js} +11 -11
- package/dist/cdn/chunks/{TitleEditor-C8FYbadT.js.map → TitleEditor-BXqt42Px.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-5QwYklNq.js → blockTypeIcons-BS6pWyGO.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-5QwYklNq.js.map → blockTypeIcons-BS6pWyGO.js.map} +1 -1
- package/dist/cdn/chunks/{de-BvYD17KT.js → de-3exf7MYE.js} +1 -1
- package/dist/cdn/chunks/{de-BvYD17KT.js.map → de-3exf7MYE.js.map} +1 -1
- package/dist/cdn/chunks/{de-BB3dgVOc.js → de-C8LxVUsb.js} +1 -1
- package/dist/cdn/chunks/de-C8LxVUsb.js.map +1 -0
- package/dist/cdn/chunks/{dist-KYv9v_1z2.js → dist-BpOx-ugr.js} +10 -3
- package/dist/cdn/chunks/dist-BpOx-ugr.js.map +1 -0
- package/dist/cdn/chunks/{draggable-BQNU47zu.js → draggable-Bcb86AsV.js} +1591 -1563
- package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +1 -0
- package/dist/cdn/chunks/{emojiData-BVEJHcNH.js → emojiData-DUHzsh4j.js} +1 -1
- package/dist/cdn/chunks/{emojiData-BVEJHcNH.js.map → emojiData-DUHzsh4j.js.map} +1 -1
- package/dist/cdn/chunks/{en-DeDcpnoS.js → en-BoEycuqw.js} +1 -1
- package/dist/cdn/chunks/en-BoEycuqw.js.map +1 -0
- package/dist/cdn/chunks/{en-CpotcOPr.js → en-KNPUKxYp.js} +1 -1
- package/dist/cdn/chunks/{en-CpotcOPr.js.map → en-KNPUKxYp.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-Bj7USRLr.js → extensions-DBxH6pz0.js} +21 -21
- package/dist/cdn/chunks/{extensions-Bj7USRLr.js.map → extensions-DBxH6pz0.js.map} +1 -1
- package/dist/cdn/chunks/{features-Ds0XUfte.js → features-C3n7AeUc.js} +1338 -1422
- package/dist/cdn/chunks/features-C3n7AeUc.js.map +1 -0
- package/dist/cdn/chunks/{icons-fWsuSvgd.js → icons-Hmpb0_8s.js} +2 -2
- package/dist/cdn/chunks/icons-Hmpb0_8s.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-C1VIYISn.js → liquid.browser-CEMn-ZqL.js} +24 -17
- package/dist/cdn/chunks/liquid.browser-CEMn-ZqL.js.map +1 -0
- package/dist/cdn/chunks/{media-library-BGQm_OyC.js → media-library-C1wCpRY1.js} +114 -110
- package/dist/cdn/chunks/media-library-C1wCpRY1.js.map +1 -0
- package/dist/cdn/chunks/{pusher-DJPhQnE8.js → pusher-DwSQn6BA.js} +11 -8
- package/dist/cdn/chunks/pusher-DwSQn6BA.js.map +1 -0
- package/dist/cdn/chunks/readableTextColor-Cd_cgWO_.js.map +1 -1
- package/dist/cdn/chunks/{rolldown-runtime-DPITmOBR.js → rolldown-runtime-BNuo_Jkg.js} +1 -1
- package/dist/cdn/chunks/{src-3i8rPuqd.js → src-BUszJqfd.js} +8 -8
- package/dist/cdn/chunks/{src-3i8rPuqd.js.map → src-BUszJqfd.js.map} +1 -1
- package/dist/cdn/chunks/{styleConstants-DFe3I4Op.js → styleConstants-DP1VOca8.js} +1 -1
- package/dist/cdn/chunks/{styleConstants-DFe3I4Op.js.map → styleConstants-DP1VOca8.js.map} +1 -1
- package/dist/cdn/chunks/{styles-Dgijy53u.js → styles-U2VFFgxC.js} +623 -1239
- package/dist/cdn/chunks/styles-U2VFFgxC.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BhxaWR8R.js → tiptap-w5IqC8oW.js} +1610 -1364
- package/dist/cdn/chunks/tiptap-w5IqC8oW.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +92 -97
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-B7kDuZmP.js → check-BDE2uFIC.js} +1 -1
- package/dist/{chevron-down-DJLW2Q9Z.js → chevron-down-BL1DcOiT.js} +1 -1
- package/dist/{circle-alert-E2vYPs5r.js → circle-alert-1tetIFJU.js} +1 -1
- package/dist/{clock-lWIIQA3C.js → clock-CNc3isoG.js} +1 -1
- package/dist/{dist-DysAFIPy.js → dist-7SaUYnxo.js} +385 -357
- package/dist/{dist-DmOE-Ubp.js → dist-BKZ5gvJf.js} +5 -5
- package/dist/{dist-CG-vEqSU.js → dist-CLg2qE0p.js} +2 -2
- package/dist/dist-CdzaZZSx.js +5 -0
- package/dist/dist-Cl9giA3B.js +5 -0
- package/dist/{dist-C_ymrGFi.js → dist-CpHKN3mI.js} +541 -508
- package/dist/{dist-4LiM9FDd.js → dist-DMuaebdo.js} +2 -2
- package/dist/{dist-ChAGLpWo.js → dist-DW_4_uv3.js} +2 -2
- package/dist/{dist-C1BIRHCQ.js → dist-DYG6FL7b.js} +2 -2
- package/dist/{dist-DrvKRSU6.js → dist-DbFMBx8E.js} +2 -2
- package/dist/{dist-D_HQYSY-.js → dist-Dn9cOicG.js} +2 -2
- package/dist/{dist-Ci5lFuUy.js → dist-ENKQZrNg.js} +138 -132
- package/dist/{dist-Bu7veieH.js → dist-fEtcLxee.js} +15 -15
- package/dist/{extensions-DWx_jj8v.js → extensions-Y880c0sP.js} +3 -3
- package/dist/{image-up-X4xIq4ea.js → image-up-4ZmaHFga.js} +1 -1
- package/dist/index.d.ts +234 -0
- package/dist/{liquid.browser-BemTg3sZ.js → liquid.browser-DZ62L7up.js} +20 -15
- package/dist/{loader-circle-BTQQxC3l.js → loader-circle-C7YEH4do.js} +1 -1
- package/dist/{message-circle-Blgm6V_h.js → message-circle-B_lxRh4z.js} +1 -1
- package/dist/{refresh-cw-Bb4PEeW1.js → refresh-cw-DmZNoimV.js} +1 -1
- package/dist/rolldown-runtime-gEudmnaM.js +23 -0
- package/dist/{scan-line-7lZPfOdm.js → scan-line-Cc9KlXo5.js} +1 -1
- package/dist/{send-C0ltAQrv.js → send-CMwNWTPX.js} +1 -1
- package/dist/{shield-check-f-qv4RKs.js → shield-check-DZFf4LTh.js} +1 -1
- package/dist/{sparkles-KhBCGlqB.js → sparkles-D80W88H8.js} +1 -1
- package/dist/{styleConstants-Cxw88naD.js → styleConstants-Codo7aUT.js} +6 -45
- package/dist/styles-unyYKihg.js +2942 -0
- package/dist/templatical-editor.css +1 -1
- package/dist/templatical-editor.js +85 -90
- package/dist/text-align-start-Cje6pwo4.js +43 -0
- package/dist/{trash-2-OwjZ-guZ.js → trash-2-BWvxOB4Q.js} +1 -1
- package/dist/{triangle-alert-DOSRIUYZ.js → triangle-alert-C6y94qVX.js} +1 -1
- package/dist/{useEditorCore-DUGD6pq_.js → useEditorCore-CQwWl2js.js} +1143 -1247
- package/dist/{x-CGlq2XQe.js → x-IyhJ6V90.js} +1 -1
- package/package.json +70 -52
- package/dist/cdn/chunks/AiChatSidebar-X_Bv3Qys.js +0 -2
- package/dist/cdn/chunks/CloudEditor-DeTolKnf.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-4MTw_hue.js +0 -2
- package/dist/cdn/chunks/DesignReferenceSidebar-Bswh4Yx4.js +0 -2
- package/dist/cdn/chunks/ParagraphEditor-DU3oUKA7.js.map +0 -1
- package/dist/cdn/chunks/SnapshotHistory-KME4xmn_.js +0 -2
- package/dist/cdn/chunks/TemplateScoringPanel-DgB3xDN6.js +0 -2
- package/dist/cdn/chunks/TestEmailModal-DdpvRbYf.js +0 -2
- package/dist/cdn/chunks/de-BB3dgVOc.js.map +0 -1
- package/dist/cdn/chunks/dist-BF5c3Dr-.js +0 -2
- package/dist/cdn/chunks/dist-BGzvIxcJ.js +0 -2
- package/dist/cdn/chunks/dist-CFemF8rI.js +0 -2
- package/dist/cdn/chunks/dist-Co6uFhFK.js +0 -2
- package/dist/cdn/chunks/dist-DCikBY9K.js +0 -2
- package/dist/cdn/chunks/dist-DUILafAC.js +0 -2
- package/dist/cdn/chunks/dist-DghiKH0A.js +0 -2
- package/dist/cdn/chunks/dist-Dw8ckvfK.js +0 -2
- package/dist/cdn/chunks/dist-H07p0KAw.js +0 -2
- package/dist/cdn/chunks/dist-KYv9v_1z2.js.map +0 -1
- package/dist/cdn/chunks/dist-MjnKIc0W.js +0 -2
- package/dist/cdn/chunks/dist-odp0vGRv.js +0 -2
- package/dist/cdn/chunks/draggable-BQNU47zu.js.map +0 -1
- package/dist/cdn/chunks/en-DeDcpnoS.js.map +0 -1
- package/dist/cdn/chunks/features-Ds0XUfte.js.map +0 -1
- package/dist/cdn/chunks/icons-fWsuSvgd.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-C1VIYISn.js.map +0 -1
- package/dist/cdn/chunks/media-library-BGQm_OyC.js.map +0 -1
- package/dist/cdn/chunks/pusher-DJPhQnE8.js.map +0 -1
- package/dist/cdn/chunks/styles-Dgijy53u.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BhxaWR8R.js.map +0 -1
- package/dist/dist-DkypH7qG.js +0 -5
- package/dist/dist-Dxnd0GRf.js +0 -5
- package/dist/styles-fdXNRqI3.js +0 -3556
- package/dist/templatical-editor.umd.cjs +0 -179
- /package/dist/cdn/chunks/{_rolldown_dynamic_import_helper-DMEI4TQ3.js → _rolldown_dynamic_import_helper-BRcA6nWq.js} +0 -0
- /package/dist/{de-D7TLGIPA.js → de-DCRASLfd.js} +0 -0
- /package/dist/{emojiData-BfWQS72m.js → emojiData-CyACq8qV.js} +0 -0
- /package/dist/{en-DvtiEMwP.js → en-BC0igPeg.js} +0 -0
- /package/dist/{formatRelativeTime-DX3FgqN9.js → formatRelativeTime-mRxw8HK8.js} +0 -0
- /package/dist/{readableTextColor-LDlmVEUv.js → readableTextColor-B809bF5J.js} +0 -0
- /package/dist/{useMergeTag-BZ3X0bNr.js → useMergeTag-CSXcnFBc.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { $ as e, B as t, F as n, H as r, M as i, N as a, P as o, S as s, U as c, X as l, _ as u, at as d, b as f, c as p, ct as m, d as h, g, h as _, j as v, lt as y, m as b, n as x, p as S, st as C, tt as w, u as T, v as E, x as D, y as O } from "./draggable-
|
|
2
|
-
import { $ as k, An as A,
|
|
3
|
-
import { S as _e, x as ve } from "./icons-
|
|
4
|
-
import { a as ye, i as be, n as xe, o as Se, r as Ce, s as we, t as Te } from "./styles-
|
|
5
|
-
import { d as $ } from "./styleConstants-
|
|
1
|
+
import { $ as e, B as t, F as n, H as r, M as i, N as a, P as o, S as s, U as c, X as l, _ as u, at as d, b as f, c as p, ct as m, d as h, g, h as _, j as v, lt as y, m as b, n as x, p as S, st as C, tt as w, u as T, v as E, x as D, y as O } from "./draggable-Bcb86AsV.js";
|
|
2
|
+
import { $ as k, An as A, At as j, C as M, D as N, Gt as P, It as F, Kt as I, Lt as L, Nt as R, Ot as z, S as B, St as V, Tt as H, Wt as U, Xt as W, Y as G, _ as ee, _n as K, at as q, b as te, c as J, ct as Y, d as ne, f as re, fn as X, ft as ie, g as ae, h as oe, in as Z, jt as se, k as ce, l as le, m as ue, p as de, pt as Q, u as fe, v as pe, x as me, xt as he, y as ge } from "./features-C3n7AeUc.js";
|
|
3
|
+
import { S as _e, x as ve } from "./icons-Hmpb0_8s.js";
|
|
4
|
+
import { a as ye, i as be, n as xe, o as Se, r as Ce, s as we, t as Te } from "./styles-U2VFFgxC.js";
|
|
5
|
+
import { d as $ } from "./styleConstants-DP1VOca8.js";
|
|
6
6
|
//#region src/cloud/composables/useSnapshotPreview.ts
|
|
7
7
|
function Ee(t) {
|
|
8
8
|
let { authManager: n, editor: r, history: i, conditionPreview: a, autoSave: o, onError: s } = t, c = w(null), l = e(null), u = e(null), d = S(() => l.value !== null), f = S(() => c.value?.snapshots.value ?? []), p = S(() => c.value?.isLoading.value ?? !1), m = S(() => c.value?.isRestoring.value ?? !1);
|
|
9
9
|
function h() {
|
|
10
|
-
r.state.template?.id && !c.value && (c.value =
|
|
10
|
+
r.state.template?.id && !c.value && (c.value = de({
|
|
11
11
|
authManager: n,
|
|
12
12
|
templateId: r.state.template.id,
|
|
13
13
|
onRestore: g,
|
|
@@ -78,7 +78,7 @@ function De() {
|
|
|
78
78
|
function h(e) {
|
|
79
79
|
l.value = !1, t.value = t.value === e ? null : e;
|
|
80
80
|
}
|
|
81
|
-
return
|
|
81
|
+
return W(u, () => {
|
|
82
82
|
l.value = !1;
|
|
83
83
|
}), {
|
|
84
84
|
activePanel: t,
|
|
@@ -101,7 +101,7 @@ function De() {
|
|
|
101
101
|
//#endregion
|
|
102
102
|
//#region src/cloud/composables/useCollabUndoWarning.ts
|
|
103
103
|
function Oe(t) {
|
|
104
|
-
let { isCollaborationEnabled: n, getCollaboratorCount: r, canUndo: i } = t, a = e(!1), o = e(!1), { start: s } =
|
|
104
|
+
let { isCollaborationEnabled: n, getCollaboratorCount: r, canUndo: i } = t, a = e(!1), o = e(!1), { start: s } = Z(() => {
|
|
105
105
|
o.value = !1;
|
|
106
106
|
}, A, { immediate: !1 });
|
|
107
107
|
function c() {
|
|
@@ -115,7 +115,7 @@ function Oe(t) {
|
|
|
115
115
|
//#endregion
|
|
116
116
|
//#region src/cloud/composables/useCloudFeatureFlags.ts
|
|
117
117
|
function ke(t) {
|
|
118
|
-
let { planConfigInstance: n, aiConfig: r, editor: i } = t, a = S(() => n.hasFeature("ai_generation") && r.hasAnyMenuFeature.value), o = S(() => n.hasFeature("test_email")), s = S(() => !!i.state.template?.id), c = S(() => n.hasFeature("white_label")), l = S(() => n.config.value?.limits.max_templates ?? null), u = S(() => n.config.value?.template_count ?? 0), d = e(!1), f = e("idle"), p = e(""), { start: m } =
|
|
118
|
+
let { planConfigInstance: n, aiConfig: r, editor: i } = t, a = S(() => n.hasFeature("ai_generation") && r.hasAnyMenuFeature.value), o = S(() => n.hasFeature("test_email")), s = S(() => !!i.state.template?.id), c = S(() => n.hasFeature("white_label")), l = S(() => n.config.value?.limits.max_templates ?? null), u = S(() => n.config.value?.template_count ?? 0), d = e(!1), f = e("idle"), p = e(""), { start: m } = Z(() => {
|
|
119
119
|
f.value = "idle";
|
|
120
120
|
}, 3e3, { immediate: !1 });
|
|
121
121
|
return {
|
|
@@ -169,29 +169,29 @@ function Ae(e) {
|
|
|
169
169
|
//#endregion
|
|
170
170
|
//#region src/cloud/composables/useCloudInitialization.ts
|
|
171
171
|
function je(n) {
|
|
172
|
-
let { config: r, translations: i, fontsManager: a, emit: s, getCommentsSidebar: c } = n, l = e(!0), u = e(!1), d = e(null), f = !1, p = { value: null }, m = null, h = null, g = new
|
|
172
|
+
let { config: r, translations: i, fontsManager: a, emit: s, getCommentsSidebar: c } = n, l = e(!0), u = e(!1), d = e(null), f = !1, p = { value: null }, m = null, h = null, g = new N({
|
|
173
173
|
...r.auth,
|
|
174
174
|
onError: r.onError
|
|
175
175
|
}), _ = fe({
|
|
176
176
|
authManager: g,
|
|
177
177
|
onError: r.onError
|
|
178
|
-
}), v = e(/* @__PURE__ */ new Map()), y =
|
|
178
|
+
}), v = e(/* @__PURE__ */ new Map()), y = B({
|
|
179
179
|
authManager: g,
|
|
180
180
|
defaultFontFamily: r.fonts?.defaultFont,
|
|
181
181
|
templateDefaults: r.templateDefaults,
|
|
182
182
|
onError: r.onError,
|
|
183
183
|
lockedBlocks: v
|
|
184
|
-
}), b =
|
|
184
|
+
}), b = oe({
|
|
185
185
|
authManager: g,
|
|
186
186
|
onError: r.onError
|
|
187
187
|
});
|
|
188
|
-
r.mcp?.enabled &&
|
|
188
|
+
r.mcp?.enabled && J({
|
|
189
189
|
editor: y,
|
|
190
190
|
channel: b.channel,
|
|
191
191
|
onOperation: r.mcp.onOperation
|
|
192
192
|
});
|
|
193
193
|
let x = null;
|
|
194
|
-
r.collaboration?.enabled && (x =
|
|
194
|
+
r.collaboration?.enabled && (x = ee({
|
|
195
195
|
authManager: g,
|
|
196
196
|
editor: y,
|
|
197
197
|
channel: b.channel,
|
|
@@ -202,8 +202,8 @@ function je(n) {
|
|
|
202
202
|
onBlockUnlocked: r.collaboration.onBlockUnlocked
|
|
203
203
|
}), t(() => x.lockedBlocks.value, (e) => {
|
|
204
204
|
v.value = e;
|
|
205
|
-
}, { immediate: !0 }),
|
|
206
|
-
let C = S(() => !!r.collaboration?.enabled && _.hasFeature("collaboration")), w =
|
|
205
|
+
}, { immediate: !0 }), ae(y, x));
|
|
206
|
+
let C = S(() => !!r.collaboration?.enabled && _.hasFeature("collaboration")), w = ce({
|
|
207
207
|
editor: y,
|
|
208
208
|
config: {
|
|
209
209
|
uiTheme: r.uiTheme,
|
|
@@ -255,15 +255,15 @@ function je(n) {
|
|
|
255
255
|
mediaLibraryOpen: D.mediaLibraryOpen,
|
|
256
256
|
mediaLibraryAccept: D.mediaLibraryAccept
|
|
257
257
|
});
|
|
258
|
-
|
|
258
|
+
G({
|
|
259
259
|
onBlockMove: y.moveBlock,
|
|
260
260
|
onBlockAdd: y.addBlock
|
|
261
261
|
});
|
|
262
|
-
let j =
|
|
262
|
+
let j = ne({
|
|
263
263
|
authManager: g,
|
|
264
264
|
getFontsConfig: () => r.fonts,
|
|
265
265
|
canUseCustomFonts: () => _.hasFeature("custom_fonts")
|
|
266
|
-
}),
|
|
266
|
+
}), M = re({
|
|
267
267
|
authManager: g,
|
|
268
268
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
269
269
|
save: () => y.save(),
|
|
@@ -271,7 +271,7 @@ function je(n) {
|
|
|
271
271
|
onError: r.onError,
|
|
272
272
|
isAuthReady: u,
|
|
273
273
|
onBeforeTestEmail: r.onBeforeTestEmail
|
|
274
|
-
}),
|
|
274
|
+
}), V = ge({
|
|
275
275
|
authManager: g,
|
|
276
276
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
277
277
|
getSocketId: () => b.getSocketId(),
|
|
@@ -281,54 +281,54 @@ function je(n) {
|
|
|
281
281
|
hasCommentingFeature: () => r.commenting !== !1 && _.hasFeature("commenting")
|
|
282
282
|
});
|
|
283
283
|
pe({
|
|
284
|
-
comments:
|
|
284
|
+
comments: V,
|
|
285
285
|
channel: b.channel
|
|
286
286
|
});
|
|
287
|
-
let H =
|
|
287
|
+
let H = ue({
|
|
288
288
|
authManager: g,
|
|
289
289
|
onError: r.onError
|
|
290
|
-
}), W = e(!1),
|
|
290
|
+
}), W = e(!1), K = e(null), q = e(!1), Y = te({
|
|
291
291
|
authManager: g,
|
|
292
292
|
getTemplateId: () => y.state.template?.id ?? null
|
|
293
293
|
});
|
|
294
|
-
function
|
|
294
|
+
function X(e) {
|
|
295
295
|
D.commentsOpen.value = !0, queueMicrotask(() => {
|
|
296
296
|
c()?.filterByBlock(e);
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
|
-
o(
|
|
299
|
+
o(U, A.handleRequestMedia), o(R, g), o(se, O), o(L, V), o(P, H), o(I, Y), o(F, {
|
|
300
300
|
plan: _,
|
|
301
301
|
ai: O,
|
|
302
302
|
comments: {
|
|
303
|
-
getBlockCount: (e) =>
|
|
304
|
-
openForBlock:
|
|
303
|
+
getBlockCount: (e) => V.commentCountByBlock.value.get(e) ?? 0,
|
|
304
|
+
openForBlock: X
|
|
305
305
|
},
|
|
306
306
|
savedModules: {
|
|
307
307
|
openSaveDialog: (e) => {
|
|
308
|
-
|
|
308
|
+
K.value = e ?? null, W.value = !0;
|
|
309
309
|
},
|
|
310
310
|
openBrowser: () => {
|
|
311
|
-
|
|
311
|
+
q.value = !0;
|
|
312
312
|
},
|
|
313
313
|
moduleCount: S(() => H.modules.value.length)
|
|
314
314
|
}
|
|
315
315
|
});
|
|
316
|
-
function
|
|
316
|
+
function ie(e) {
|
|
317
317
|
_.hasFeature("theme_customization") && (w.themeOverrides.value = e);
|
|
318
318
|
}
|
|
319
319
|
function Z(e) {
|
|
320
320
|
y.setUiTheme(e);
|
|
321
321
|
}
|
|
322
|
-
async function
|
|
322
|
+
async function de() {
|
|
323
323
|
l.value = !0, d.value = null;
|
|
324
324
|
try {
|
|
325
325
|
if (await g.initialize(), f) return;
|
|
326
326
|
u.value = !0;
|
|
327
|
-
let e = await
|
|
327
|
+
let e = await le({ authManager: g });
|
|
328
328
|
if (f) return;
|
|
329
329
|
if (!e.api.ok) throw Error("Health check failed: API is not reachable");
|
|
330
330
|
if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
|
|
331
|
-
if (e.websocket.ok ||
|
|
331
|
+
if (e.websocket.ok || z.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await _.fetchConfig(), f) return;
|
|
332
332
|
a.setCustomFontsEnabled(_.hasFeature("custom_fonts")), r.customBlocks?.length && _.hasFeature("custom_blocks") && w.registerCustomBlocks(r.customBlocks), r.theme && _.hasFeature("theme_customization") && (w.themeOverrides.value = r.theme), r.modules !== !1 && _.hasFeature("saved_modules") && H.loadModules(), s("ready");
|
|
333
333
|
} catch (e) {
|
|
334
334
|
if (f) return;
|
|
@@ -357,29 +357,29 @@ function je(n) {
|
|
|
357
357
|
featureFlags: k,
|
|
358
358
|
mediaLib: A,
|
|
359
359
|
exporter: j,
|
|
360
|
-
testEmail:
|
|
361
|
-
commentsInstance:
|
|
360
|
+
testEmail: M,
|
|
361
|
+
commentsInstance: V,
|
|
362
362
|
savedModulesHeadless: H,
|
|
363
|
-
scoringInstance:
|
|
363
|
+
scoringInstance: Y,
|
|
364
364
|
panelState: D,
|
|
365
365
|
snapshotPreview: E,
|
|
366
366
|
collabWarning: T,
|
|
367
367
|
showSaveModuleDialog: W,
|
|
368
|
-
showModuleBrowserModal:
|
|
369
|
-
saveModulePreSelectedBlockId:
|
|
368
|
+
showModuleBrowserModal: q,
|
|
369
|
+
saveModulePreSelectedBlockId: K,
|
|
370
370
|
onSaveHook: p,
|
|
371
|
-
initialize:
|
|
371
|
+
initialize: de,
|
|
372
372
|
destroy: Q,
|
|
373
|
-
setThemeOverrides:
|
|
373
|
+
setThemeOverrides: ie,
|
|
374
374
|
setUiTheme: Z,
|
|
375
|
-
openCommentsForBlock:
|
|
375
|
+
openCommentsForBlock: X
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
378
|
//#endregion
|
|
379
379
|
//#region src/utils/preRenderCustomBlocks.ts
|
|
380
380
|
async function Me(e, t) {
|
|
381
381
|
let n = async (e) => {
|
|
382
|
-
if (
|
|
382
|
+
if (K(e)) {
|
|
383
383
|
let n = e;
|
|
384
384
|
try {
|
|
385
385
|
n.renderedHtml = await t.renderCustomBlock(n);
|
|
@@ -399,7 +399,7 @@ async function Me(e, t) {
|
|
|
399
399
|
function Ne(e) {
|
|
400
400
|
let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
|
|
401
401
|
function u() {
|
|
402
|
-
return
|
|
402
|
+
return M(i.config.value.websocket);
|
|
403
403
|
}
|
|
404
404
|
async function d(e) {
|
|
405
405
|
let i = await n.create(e);
|
|
@@ -450,30 +450,26 @@ var Pe = {
|
|
|
450
450
|
}
|
|
451
451
|
}, Fe = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, Ie = {
|
|
452
452
|
key: 0,
|
|
453
|
-
class: "tpl-logo tpl:flex tpl:items-center tpl:gap-2.5 tpl:text-sm tpl:font-semibold tpl:text-[var(--tpl-text)]"
|
|
454
|
-
}, Le = ["src"], Re = { style: { "letter-spacing": "-0.01em" } }, ze = {
|
|
455
|
-
key: 1,
|
|
456
453
|
class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
|
|
457
|
-
},
|
|
454
|
+
}, Le = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, Re = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, ze = ["data-tooltip"], Be = {
|
|
458
455
|
key: 1,
|
|
459
456
|
"aria-live": "polite",
|
|
460
457
|
class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success)]"
|
|
461
|
-
},
|
|
458
|
+
}, Ve = {
|
|
462
459
|
key: 2,
|
|
463
460
|
"aria-live": "polite",
|
|
464
461
|
class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
465
|
-
},
|
|
462
|
+
}, He = ["aria-label", "aria-expanded"], Ue = {
|
|
466
463
|
key: 0,
|
|
467
464
|
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)]"
|
|
468
|
-
},
|
|
465
|
+
}, We = ["aria-expanded"], Ge = {
|
|
469
466
|
key: 0,
|
|
470
467
|
class: "tpl:absolute tpl:right-0 tpl:top-full tpl:z-50 tpl:mt-1 tpl:origin-top-right"
|
|
471
|
-
},
|
|
468
|
+
}, Ke = ["disabled"], qe = ["disabled"], Je = /* @__PURE__ */ s({
|
|
472
469
|
__name: "CloudHeader",
|
|
473
470
|
props: {
|
|
474
471
|
editor: {},
|
|
475
472
|
core: {},
|
|
476
|
-
authManager: {},
|
|
477
473
|
featureFlags: {},
|
|
478
474
|
panelState: {},
|
|
479
475
|
snapshotPreview: {},
|
|
@@ -487,19 +483,13 @@ var Pe = {
|
|
|
487
483
|
},
|
|
488
484
|
emits: ["save"],
|
|
489
485
|
setup(e) {
|
|
490
|
-
let t = D(() => import("./CollaboratorBar-
|
|
486
|
+
let t = D(() => import("./CollaboratorBar-Cfok52TZ.js")), n = D(() => import("./features-C3n7AeUc.js").then((e) => e.r)), i = D(() => import("./AiFeatureMenu-DWMSYD2J.js"));
|
|
491
487
|
return (o, s) => (a(), u("header", Pe, [
|
|
492
|
-
b("div", Fe, [e.featureFlags.
|
|
493
|
-
src: e.authManager.resolveUrl("/logo.svg"),
|
|
494
|
-
alt: "Templatical",
|
|
495
|
-
width: "24",
|
|
496
|
-
height: "24",
|
|
497
|
-
class: "tpl:shrink-0"
|
|
498
|
-
}, null, 8, Le), b("span", Re, y(e.core.t.header.title), 1)])), e.featureFlags.templateLimit.value === null ? g("", !0) : (a(), u("span", ze, y(e.core.format(e.core.t.header.templatesUsed, {
|
|
488
|
+
b("div", Fe, [e.featureFlags.templateLimit.value === null ? g("", !0) : (a(), u("span", Ie, y(e.core.format(e.core.t.header.templatesUsed, {
|
|
499
489
|
used: e.featureFlags.templateCount.value,
|
|
500
490
|
max: e.featureFlags.templateLimit.value
|
|
501
491
|
})), 1))]),
|
|
502
|
-
b("div",
|
|
492
|
+
b("div", Le, [
|
|
503
493
|
f(be, {
|
|
504
494
|
viewport: e.editor.state.viewport,
|
|
505
495
|
onChange: e.editor.setViewport
|
|
@@ -532,19 +522,19 @@ var Pe = {
|
|
|
532
522
|
"onNavigate"
|
|
533
523
|
])) : g("", !0)
|
|
534
524
|
]),
|
|
535
|
-
b("div",
|
|
525
|
+
b("div", Re, [
|
|
536
526
|
e.featureFlags.saveStatus.value === "error" ? (a(), u("div", {
|
|
537
527
|
key: 0,
|
|
538
528
|
"aria-live": "assertive",
|
|
539
529
|
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
540
530
|
"data-tooltip": e.featureFlags.saveErrorMessage.value
|
|
541
|
-
}, [f(d(
|
|
531
|
+
}, [f(d(V), {
|
|
542
532
|
size: 12,
|
|
543
533
|
"stroke-width": 2.5
|
|
544
|
-
}), O(" " + y(e.core.t.header.saveFailed), 1)], 8,
|
|
534
|
+
}), O(" " + y(e.core.t.header.saveFailed), 1)], 8, ze)) : e.featureFlags.saveStatus.value === "saved" ? (a(), u("div", Be, [f(d(H), {
|
|
545
535
|
size: 12,
|
|
546
536
|
"stroke-width": 2.5
|
|
547
|
-
}), O(" " + y(e.core.t.header.saved), 1)])) : e.editor.state.isDirty ? (a(), u("div",
|
|
537
|
+
}), O(" " + y(e.core.t.header.saved), 1)])) : e.editor.state.isDirty ? (a(), u("div", Ve, [s[4] ||= b("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), O(" " + y(e.core.t.header.unsaved), 1)])) : g("", !0),
|
|
548
538
|
e.commentsInstance.isEnabled.value && e.featureFlags.hasTemplateSaved.value ? (a(), u("button", {
|
|
549
539
|
key: 3,
|
|
550
540
|
"aria-label": e.commentsInstance.unresolvedCount.value > 0 ? `${e.core.t.comments.button} (${e.commentsInstance.unresolvedCount.value})` : e.core.t.comments.button,
|
|
@@ -557,13 +547,13 @@ var Pe = {
|
|
|
557
547
|
}),
|
|
558
548
|
onClick: s[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
|
|
559
549
|
}, [
|
|
560
|
-
f(d(
|
|
550
|
+
f(d(ie), {
|
|
561
551
|
size: 16,
|
|
562
552
|
"stroke-width": 2
|
|
563
553
|
}),
|
|
564
554
|
O(" " + y(e.core.t.comments.button) + " ", 1),
|
|
565
|
-
e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (a(), u("span",
|
|
566
|
-
], 14,
|
|
555
|
+
e.commentsInstance.unresolvedCount.value > 0 && !e.panelState.commentsOpen.value ? (a(), u("span", Ue, y(e.commentsInstance.unresolvedCount.value), 1)) : g("", !0)
|
|
556
|
+
], 14, He)) : g("", !0),
|
|
567
557
|
e.featureFlags.canUseAiGeneration.value && e.featureFlags.hasTemplateSaved.value ? (a(), u("div", {
|
|
568
558
|
key: 4,
|
|
569
559
|
ref: (t) => e.panelState.aiMenuRef.value = t,
|
|
@@ -572,11 +562,11 @@ var Pe = {
|
|
|
572
562
|
"aria-expanded": e.panelState.aiMenuOpen.value,
|
|
573
563
|
class: C(["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"]),
|
|
574
564
|
onClick: s[1] ||= T((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
|
|
575
|
-
}, [f(d(
|
|
565
|
+
}, [f(d(q), {
|
|
576
566
|
size: 16,
|
|
577
567
|
"stroke-width": 2,
|
|
578
568
|
class: "tpl-ai-btn-icon"
|
|
579
|
-
}), O(" " + y(e.core.t.aiChat.button), 1)], 10,
|
|
569
|
+
}), O(" " + y(e.core.t.aiChat.button), 1)], 10, We), f(x, {
|
|
580
570
|
"enter-active-class": "tpl:transition-all tpl:duration-150 tpl:ease-out",
|
|
581
571
|
"enter-from-class": "tpl:scale-95 tpl:opacity-0",
|
|
582
572
|
"enter-to-class": "tpl:scale-100 tpl:opacity-100",
|
|
@@ -584,7 +574,7 @@ var Pe = {
|
|
|
584
574
|
"leave-from-class": "tpl:scale-100 tpl:opacity-100",
|
|
585
575
|
"leave-to-class": "tpl:scale-95 tpl:opacity-0"
|
|
586
576
|
}, {
|
|
587
|
-
default: r(() => [e.panelState.aiMenuOpen.value ? (a(), u("div",
|
|
577
|
+
default: r(() => [e.panelState.aiMenuOpen.value ? (a(), u("div", Ge, [f(d(i), {
|
|
588
578
|
"active-feature": e.panelState.activeAiFeature.value,
|
|
589
579
|
onSelect: e.panelState.handleAiFeatureSelect
|
|
590
580
|
}, null, 8, ["active-feature", "onSelect"])])) : g("", !0)]),
|
|
@@ -605,11 +595,11 @@ var Pe = {
|
|
|
605
595
|
class: "tpl-spinner",
|
|
606
596
|
size: 16,
|
|
607
597
|
"stroke-width": 2
|
|
608
|
-
})) : (a(), _(d(
|
|
598
|
+
})) : (a(), _(d(Y), {
|
|
609
599
|
key: 0,
|
|
610
600
|
size: 16,
|
|
611
601
|
"stroke-width": 2
|
|
612
|
-
})), O(" " + y(e.core.t.testEmail.button), 1)], 10,
|
|
602
|
+
})), O(" " + y(e.core.t.testEmail.button), 1)], 10, Ke)) : g("", !0),
|
|
613
603
|
b("button", {
|
|
614
604
|
class: C(d($)),
|
|
615
605
|
style: {
|
|
@@ -628,11 +618,11 @@ var Pe = {
|
|
|
628
618
|
key: 0,
|
|
629
619
|
size: 16,
|
|
630
620
|
"stroke-width": 2
|
|
631
|
-
})), O(" " + y(e.isSaving ? e.core.t.header.saving : e.core.t.header.save), 1)], 10,
|
|
621
|
+
})), O(" " + y(e.isSaving ? e.core.t.header.saving : e.core.t.header.save), 1)], 10, qe)
|
|
632
622
|
])
|
|
633
623
|
]));
|
|
634
624
|
}
|
|
635
|
-
}),
|
|
625
|
+
}), Ye = /* @__PURE__ */ s({
|
|
636
626
|
__name: "CloudPanels",
|
|
637
627
|
props: {
|
|
638
628
|
config: {},
|
|
@@ -655,15 +645,18 @@ var Pe = {
|
|
|
655
645
|
"module-insert"
|
|
656
646
|
],
|
|
657
647
|
setup(t, { expose: n, emit: r }) {
|
|
658
|
-
let i = D(() => import("./
|
|
648
|
+
let i = D(() => import("./features-C3n7AeUc.js").then((e) => e.s)), o = D(() => import("./features-C3n7AeUc.js").then((e) => e.o)), s = D(() => import("./features-C3n7AeUc.js").then((e) => e.a)), c = D(() => import("./features-C3n7AeUc.js").then((e) => e.n)), l = D(() => import("./features-C3n7AeUc.js").then((e) => e.t)), p = D(() => import("./SaveModuleDialog-BkwKrB0N.js")), m = D(() => import("./ModuleBrowserModal-sASaPRot.js")), v = D(async () => (await import("./src-BUszJqfd.js")).MediaLibraryModal), y = r;
|
|
659
649
|
function b(e, t, n) {
|
|
660
650
|
t.history.record(), n.setContent(e), t.conditionPreview.reset();
|
|
661
651
|
}
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
652
|
+
function x(e, t) {
|
|
653
|
+
y("module-insert", e, t);
|
|
654
|
+
}
|
|
655
|
+
let S = e(null);
|
|
656
|
+
function C(e) {
|
|
657
|
+
S.value?.filterByBlock(e);
|
|
665
658
|
}
|
|
666
|
-
return n({ filterCommentsByBlock:
|
|
659
|
+
return n({ filterCommentsByBlock: C }), (e, n) => (a(), u(h, null, [
|
|
667
660
|
f(d(i), {
|
|
668
661
|
visible: t.panelState.aiChatOpen.value,
|
|
669
662
|
"on-apply": (e) => b(e, t.core, t.editor),
|
|
@@ -681,7 +674,7 @@ var Pe = {
|
|
|
681
674
|
}, null, 8, ["visible", "has-existing-blocks"]),
|
|
682
675
|
f(d(o), {
|
|
683
676
|
ref_key: "commentsSidebar",
|
|
684
|
-
ref:
|
|
677
|
+
ref: S,
|
|
685
678
|
visible: t.panelState.commentsOpen.value,
|
|
686
679
|
onClose: n[4] ||= (e) => t.panelState.commentsOpen.value = !1
|
|
687
680
|
}, null, 8, ["visible"]),
|
|
@@ -711,7 +704,7 @@ var Pe = {
|
|
|
711
704
|
key: 1,
|
|
712
705
|
visible: t.showModuleBrowserModal,
|
|
713
706
|
onClose: n[9] ||= (e) => y("update:showModuleBrowserModal", !1),
|
|
714
|
-
onInsert:
|
|
707
|
+
onInsert: x
|
|
715
708
|
}, null, 8, ["visible"])) : g("", !0),
|
|
716
709
|
f(d(v), {
|
|
717
710
|
visible: t.panelState.mediaLibraryOpen.value,
|
|
@@ -726,23 +719,23 @@ var Pe = {
|
|
|
726
719
|
])
|
|
727
720
|
], 64));
|
|
728
721
|
}
|
|
729
|
-
}),
|
|
722
|
+
}), Xe = {
|
|
730
723
|
key: 0,
|
|
731
724
|
class: "tpl-loading tpl:absolute tpl:inset-0 tpl:z-overlay tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]"
|
|
732
|
-
},
|
|
725
|
+
}, Ze = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, Qe = { 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)]" }, $e = /* @__PURE__ */ s({
|
|
733
726
|
__name: "CloudLoadingOverlay",
|
|
734
727
|
props: { visible: { type: Boolean } },
|
|
735
728
|
setup(e) {
|
|
736
|
-
return (t, r) => e.visible ? (a(), u("div",
|
|
729
|
+
return (t, r) => e.visible ? (a(), u("div", Xe, [r[1] ||= E("<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), b("div", Ze, [b("div", Qe, [(a(), u(h, null, n(5, (e) => b("div", {
|
|
737
730
|
key: e,
|
|
738
731
|
class: "tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]"
|
|
739
732
|
})), 64))]), r[0] ||= E("<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)])])) : g("", !0);
|
|
740
733
|
}
|
|
741
|
-
}),
|
|
734
|
+
}), et = {
|
|
742
735
|
key: 0,
|
|
743
736
|
role: "alert",
|
|
744
737
|
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)]"
|
|
745
|
-
},
|
|
738
|
+
}, tt = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, nt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, rt = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, it = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, at = /* @__PURE__ */ s({
|
|
746
739
|
__name: "CloudErrorOverlay",
|
|
747
740
|
props: {
|
|
748
741
|
error: {},
|
|
@@ -750,20 +743,20 @@ var Pe = {
|
|
|
750
743
|
},
|
|
751
744
|
emits: ["retry"],
|
|
752
745
|
setup(e, { emit: t }) {
|
|
753
|
-
let n = t, { t: r } =
|
|
746
|
+
let n = t, { t: r } = j();
|
|
754
747
|
function i(e) {
|
|
755
748
|
return "isUnauthorized" in e && e.isUnauthorized ? r.error.authFailed : "isNotFound" in e && e.isNotFound ? r.error.templateNotFound : r.error.defaultMessage;
|
|
756
749
|
}
|
|
757
750
|
function o(e) {
|
|
758
751
|
return "isNotFound" in e && !!e.isNotFound;
|
|
759
752
|
}
|
|
760
|
-
return (t, s) => e.visible && e.error ? (a(), u("div",
|
|
761
|
-
b("div",
|
|
753
|
+
return (t, s) => e.visible && e.error ? (a(), u("div", et, [
|
|
754
|
+
b("div", tt, [f(d(V), {
|
|
762
755
|
size: 32,
|
|
763
756
|
"stroke-width": 1.5,
|
|
764
757
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
765
758
|
})]),
|
|
766
|
-
b("div",
|
|
759
|
+
b("div", nt, [b("h2", rt, y(d(r).error.title), 1), b("p", it, y(i(e.error)), 1)]),
|
|
767
760
|
o(e.error) ? g("", !0) : (a(), u("button", {
|
|
768
761
|
key: 0,
|
|
769
762
|
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)]",
|
|
@@ -771,20 +764,20 @@ var Pe = {
|
|
|
771
764
|
}, y(d(r).error.retry), 1))
|
|
772
765
|
])) : g("", !0);
|
|
773
766
|
}
|
|
774
|
-
}),
|
|
767
|
+
}), ot = {
|
|
775
768
|
key: 0,
|
|
776
769
|
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)]"
|
|
777
|
-
},
|
|
770
|
+
}, st = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, ct = { class: "tpl:flex tpl:items-center tpl:gap-2" }, lt = /* @__PURE__ */ s({
|
|
778
771
|
__name: "SnapshotPreviewBanner",
|
|
779
772
|
props: { visible: { type: Boolean } },
|
|
780
773
|
emits: ["cancel", "confirm"],
|
|
781
774
|
setup(e, { emit: t }) {
|
|
782
|
-
let n = t, { t: r } =
|
|
783
|
-
return (t, i) => e.visible ? (a(), u("div",
|
|
775
|
+
let n = t, { t: r } = j();
|
|
776
|
+
return (t, i) => e.visible ? (a(), u("div", ot, [b("div", st, [f(d(he), {
|
|
784
777
|
size: 18,
|
|
785
778
|
"stroke-width": 2,
|
|
786
779
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
787
|
-
}), b("span", null, y(d(r).snapshotPreview.message), 1)]), b("div",
|
|
780
|
+
}), b("span", null, y(d(r).snapshotPreview.message), 1)]), b("div", ct, [b("button", {
|
|
788
781
|
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)]",
|
|
789
782
|
style: { "background-color": "transparent" },
|
|
790
783
|
onClick: i[0] ||= (e) => n("cancel")
|
|
@@ -793,7 +786,7 @@ var Pe = {
|
|
|
793
786
|
onClick: i[1] ||= (e) => n("confirm")
|
|
794
787
|
}, y(d(r).snapshotPreview.restore), 1)])])) : g("", !0);
|
|
795
788
|
}
|
|
796
|
-
}),
|
|
789
|
+
}), ut = {
|
|
797
790
|
key: 0,
|
|
798
791
|
role: "status",
|
|
799
792
|
"aria-live": "polite",
|
|
@@ -803,14 +796,14 @@ var Pe = {
|
|
|
803
796
|
color: "var(--tpl-text)",
|
|
804
797
|
border: "1px solid var(--tpl-warning)"
|
|
805
798
|
}
|
|
806
|
-
},
|
|
799
|
+
}, dt = /* @__PURE__ */ s({
|
|
807
800
|
__name: "CollabUndoToast",
|
|
808
801
|
props: { visible: { type: Boolean } },
|
|
809
802
|
setup(e) {
|
|
810
|
-
let { t } =
|
|
811
|
-
return (n, r) => e.visible ? (a(), u("div",
|
|
803
|
+
let { t } = j();
|
|
804
|
+
return (n, r) => e.visible ? (a(), u("div", ut, y(d(t).history.collabWarning), 1)) : g("", !0);
|
|
812
805
|
}
|
|
813
|
-
}),
|
|
806
|
+
}), ft = ["data-tpl-theme"], pt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, mt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, ht = ["aria-label"], gt = /* @__PURE__ */ k(/* @__PURE__ */ s({
|
|
814
807
|
__name: "CloudEditor",
|
|
815
808
|
props: {
|
|
816
809
|
config: {},
|
|
@@ -825,47 +818,47 @@ var Pe = {
|
|
|
825
818
|
fontsManager: s.fontsManager,
|
|
826
819
|
emit: l,
|
|
827
820
|
getCommentsSidebar: () => h.value ? { filterByBlock: h.value.filterCommentsByBlock } : null
|
|
828
|
-
}), { isInitializing: w, isAuthReady: T, initError: E,
|
|
829
|
-
async function
|
|
821
|
+
}), { isInitializing: w, isAuthReady: T, initError: E, planConfigInstance: D, websocket: k, collaboration: A, isCollaborationEnabled: j, editor: M, core: N, featureFlags: P, mediaLib: F, exporter: I, testEmail: L, commentsInstance: R, savedModulesHeadless: z, panelState: B, snapshotPreview: V, collabWarning: H, showSaveModuleDialog: U, showModuleBrowserModal: W, saveModulePreSelectedBlockId: G, setThemeOverrides: ee, setUiTheme: K } = S;
|
|
822
|
+
async function q(e) {
|
|
830
823
|
try {
|
|
831
|
-
await
|
|
824
|
+
await L.sendTestEmail(e), B.testEmailModalOpen.value = !1;
|
|
832
825
|
} catch {}
|
|
833
826
|
}
|
|
834
|
-
function
|
|
827
|
+
function te(e, t) {
|
|
835
828
|
for (let n = 0; n < e.content.length; n++) {
|
|
836
|
-
let r =
|
|
837
|
-
|
|
829
|
+
let r = X(e.content[n]), i = t === void 0 ? void 0 : t + n;
|
|
830
|
+
M.addBlock(r, void 0, void 0, i);
|
|
838
831
|
}
|
|
839
832
|
W.value = !1;
|
|
840
833
|
}
|
|
841
|
-
let
|
|
834
|
+
let J = Ne({
|
|
842
835
|
config: s.config,
|
|
843
|
-
editor:
|
|
844
|
-
websocket:
|
|
845
|
-
planConfigInstance:
|
|
836
|
+
editor: M,
|
|
837
|
+
websocket: k,
|
|
838
|
+
planConfigInstance: D,
|
|
846
839
|
snapshotPreview: V,
|
|
847
|
-
core:
|
|
848
|
-
exporter:
|
|
849
|
-
featureFlags:
|
|
840
|
+
core: N,
|
|
841
|
+
exporter: I,
|
|
842
|
+
featureFlags: P,
|
|
850
843
|
isDestroyed: S.isDestroyed
|
|
851
844
|
});
|
|
852
|
-
return S.onSaveHook.value =
|
|
845
|
+
return S.onSaveHook.value = J.saveTemplate, v(() => {
|
|
853
846
|
S.initialize();
|
|
854
847
|
}), i(() => {
|
|
855
848
|
S.destroy();
|
|
856
849
|
}), n({
|
|
857
|
-
getContent: () =>
|
|
858
|
-
setContent: (e) =>
|
|
859
|
-
setTheme:
|
|
860
|
-
setThemeOverrides:
|
|
861
|
-
create:
|
|
862
|
-
load:
|
|
863
|
-
save:
|
|
864
|
-
sendTestEmail:
|
|
865
|
-
}), (e,
|
|
866
|
-
class: C(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": d(
|
|
867
|
-
"data-tpl-theme": d(
|
|
868
|
-
style: m(d(
|
|
850
|
+
getContent: () => M.content.value,
|
|
851
|
+
setContent: (e) => M.setContent(e),
|
|
852
|
+
setTheme: K,
|
|
853
|
+
setThemeOverrides: ee,
|
|
854
|
+
create: J.createTemplate,
|
|
855
|
+
load: J.loadTemplate,
|
|
856
|
+
save: J.saveTemplate,
|
|
857
|
+
sendTestEmail: L.sendTestEmail
|
|
858
|
+
}), (e, n) => (a(), u("div", {
|
|
859
|
+
class: C(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": d(M).state.darkMode }]),
|
|
860
|
+
"data-tpl-theme": d(N).resolvedTheme.value,
|
|
861
|
+
style: m(d(N).themeStyles.value)
|
|
869
862
|
}, [
|
|
870
863
|
f(x, {
|
|
871
864
|
"enter-active-class": "tpl:transition-opacity tpl:duration-200",
|
|
@@ -875,7 +868,7 @@ var Pe = {
|
|
|
875
868
|
"leave-from-class": "tpl:opacity-100",
|
|
876
869
|
"leave-to-class": "tpl:opacity-0"
|
|
877
870
|
}, {
|
|
878
|
-
default: r(() => [f(
|
|
871
|
+
default: r(() => [f($e, { visible: d(w) || d(M).state.isLoading }, null, 8, ["visible"])]),
|
|
879
872
|
_: 1
|
|
880
873
|
}),
|
|
881
874
|
f(x, {
|
|
@@ -886,7 +879,7 @@ var Pe = {
|
|
|
886
879
|
"leave-from-class": "tpl:opacity-100",
|
|
887
880
|
"leave-to-class": "tpl:opacity-0"
|
|
888
881
|
}, {
|
|
889
|
-
default: r(() => [f(
|
|
882
|
+
default: r(() => [f(at, {
|
|
890
883
|
error: d(E),
|
|
891
884
|
visible: !!d(E) && !d(w),
|
|
892
885
|
onRetry: d(S).initialize
|
|
@@ -897,25 +890,23 @@ var Pe = {
|
|
|
897
890
|
])]),
|
|
898
891
|
_: 1
|
|
899
892
|
}),
|
|
900
|
-
f(
|
|
901
|
-
editor: d(
|
|
902
|
-
core: d(
|
|
903
|
-
"
|
|
904
|
-
"feature-flags": d(F),
|
|
893
|
+
f(Je, {
|
|
894
|
+
editor: d(M),
|
|
895
|
+
core: d(N),
|
|
896
|
+
"feature-flags": d(P),
|
|
905
897
|
"panel-state": d(B),
|
|
906
898
|
"snapshot-preview": d(V),
|
|
907
|
-
"comments-instance": d(
|
|
908
|
-
"test-email": d(
|
|
909
|
-
websocket: d(
|
|
910
|
-
collaboration: d(
|
|
911
|
-
"is-collaboration-enabled": d(
|
|
912
|
-
"is-saving": d(
|
|
913
|
-
"is-save-disabled": d(
|
|
914
|
-
onSave:
|
|
899
|
+
"comments-instance": d(R),
|
|
900
|
+
"test-email": d(L),
|
|
901
|
+
websocket: d(k),
|
|
902
|
+
collaboration: d(A),
|
|
903
|
+
"is-collaboration-enabled": d(j),
|
|
904
|
+
"is-saving": d(M).state.isSaving || d(P).isSaveExporting.value,
|
|
905
|
+
"is-save-disabled": d(M).state.isSaving || d(P).isSaveExporting.value || !d(M).state.isDirty,
|
|
906
|
+
onSave: n[0] ||= (e) => d(J).saveTemplate().catch((e) => s.config.onError?.(e))
|
|
915
907
|
}, null, 8, [
|
|
916
908
|
"editor",
|
|
917
909
|
"core",
|
|
918
|
-
"auth-manager",
|
|
919
910
|
"feature-flags",
|
|
920
911
|
"panel-state",
|
|
921
912
|
"snapshot-preview",
|
|
@@ -927,7 +918,7 @@ var Pe = {
|
|
|
927
918
|
"is-saving",
|
|
928
919
|
"is-save-disabled"
|
|
929
920
|
]),
|
|
930
|
-
f(
|
|
921
|
+
f(lt, {
|
|
931
922
|
visible: d(V).isPreviewingSnapshot.value,
|
|
932
923
|
onCancel: d(V).cancelPreview,
|
|
933
924
|
onConfirm: d(V).confirmRestoreSnapshot
|
|
@@ -944,18 +935,18 @@ var Pe = {
|
|
|
944
935
|
"leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
|
|
945
936
|
"leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
|
|
946
937
|
}, {
|
|
947
|
-
default: r(() => [f(
|
|
938
|
+
default: r(() => [f(dt, { visible: d(H).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
|
|
948
939
|
_: 1
|
|
949
940
|
}),
|
|
950
|
-
c(f(Se, null, null, 512), [[p, !d(
|
|
941
|
+
c(f(Se, null, null, 512), [[p, !d(M).state.previewMode]]),
|
|
951
942
|
b("div", {
|
|
952
|
-
class: C(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [d(
|
|
943
|
+
class: C(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [d(M).state.previewMode ? "tpl:left-0 tpl:right-0" : d(B).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", d(V).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
953
944
|
style: {
|
|
954
945
|
transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
955
946
|
"background-color": "var(--tpl-canvas-bg)"
|
|
956
947
|
}
|
|
957
|
-
}, [b("div",
|
|
958
|
-
default: r(() => [d(
|
|
948
|
+
}, [b("div", pt, [f(x, { name: "tpl-restore-btn" }, {
|
|
949
|
+
default: r(() => [d(N).conditionPreview.hasHiddenBlocks.value ? (a(), u("button", {
|
|
959
950
|
key: 0,
|
|
960
951
|
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",
|
|
961
952
|
style: {
|
|
@@ -964,22 +955,22 @@ var Pe = {
|
|
|
964
955
|
"border-color": "var(--tpl-warning)",
|
|
965
956
|
"backdrop-filter": "blur(8px)"
|
|
966
957
|
},
|
|
967
|
-
onClick:
|
|
958
|
+
onClick: n[1] ||= (e) => d(N).conditionPreview.reset()
|
|
968
959
|
}, [f(d(_e), {
|
|
969
960
|
size: 13,
|
|
970
961
|
"stroke-width": 2
|
|
971
|
-
}), O(" " + y(d(
|
|
962
|
+
}), O(" " + y(d(N).t.blockSettings.restoreHiddenBlocks), 1)])) : g("", !0)]),
|
|
972
963
|
_: 1
|
|
973
|
-
})]), b("main",
|
|
974
|
-
viewport: d(
|
|
975
|
-
content: d(
|
|
976
|
-
"selected-block-id": d(
|
|
977
|
-
"dark-mode": d(
|
|
978
|
-
"preview-mode": d(
|
|
979
|
-
"locked-blocks": d(
|
|
980
|
-
onSelectBlock: d(
|
|
981
|
-
onOpenAiChat:
|
|
982
|
-
onOpenDesignReference:
|
|
964
|
+
})]), b("main", mt, [f(we, {
|
|
965
|
+
viewport: d(M).state.viewport,
|
|
966
|
+
content: d(M).content.value,
|
|
967
|
+
"selected-block-id": d(M).state.selectedBlockId,
|
|
968
|
+
"dark-mode": d(M).state.darkMode,
|
|
969
|
+
"preview-mode": d(M).state.previewMode,
|
|
970
|
+
"locked-blocks": d(A)?.lockedBlocks.value ?? void 0,
|
|
971
|
+
onSelectBlock: d(M).selectBlock,
|
|
972
|
+
onOpenAiChat: n[2] ||= (e) => d(B).aiChatOpen.value = !0,
|
|
973
|
+
onOpenDesignReference: n[3] ||= (e) => d(B).designReferenceOpen.value = !0
|
|
983
974
|
}, null, 8, [
|
|
984
975
|
"viewport",
|
|
985
976
|
"content",
|
|
@@ -989,51 +980,51 @@ var Pe = {
|
|
|
989
980
|
"locked-blocks",
|
|
990
981
|
"onSelectBlock"
|
|
991
982
|
])])], 2),
|
|
992
|
-
d(
|
|
983
|
+
t.config.branding !== !1 && !d(P).isWhiteLabeled.value ? (a(), _(Te, {
|
|
993
984
|
key: 0,
|
|
994
|
-
"position-class": [d(
|
|
995
|
-
}, null, 8, ["position-class"])),
|
|
985
|
+
"position-class": [d(M).state.previewMode ? "tpl:left-0 tpl:right-0" : d(B).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
|
|
986
|
+
}, null, 8, ["position-class"])) : g("", !0),
|
|
996
987
|
b("div", {
|
|
997
988
|
class: "tpl-sr-only",
|
|
998
989
|
role: "status",
|
|
999
990
|
"aria-live": "polite",
|
|
1000
991
|
"aria-atomic": "true",
|
|
1001
|
-
"aria-label": d(
|
|
1002
|
-
}, y(d(
|
|
992
|
+
"aria-label": d(N).t.landmarks.reorderAnnouncements
|
|
993
|
+
}, y(d(N).keyboardReorder.announcement.value), 9, ht),
|
|
1003
994
|
c(f(ye, {
|
|
1004
|
-
"selected-block": d(
|
|
1005
|
-
settings: d(
|
|
995
|
+
"selected-block": d(M).selectedBlock.value,
|
|
996
|
+
settings: d(M).content.value.settings,
|
|
1006
997
|
"shifted-left": d(B).rightPanelOpen.value,
|
|
1007
|
-
onUpdateBlock:
|
|
1008
|
-
onDeleteBlock:
|
|
1009
|
-
onDuplicateBlock:
|
|
1010
|
-
onUpdateSettings: d(
|
|
998
|
+
onUpdateBlock: n[4] ||= (e) => d(M).updateBlock(d(M).selectedBlock.value.id, e),
|
|
999
|
+
onDeleteBlock: n[5] ||= (e) => d(N).blockActions.deleteBlock(d(M).selectedBlock.value.id),
|
|
1000
|
+
onDuplicateBlock: n[6] ||= (e) => d(N).blockActions.duplicateBlock(d(M).selectedBlock.value),
|
|
1001
|
+
onUpdateSettings: d(M).updateSettings
|
|
1011
1002
|
}, null, 8, [
|
|
1012
1003
|
"selected-block",
|
|
1013
1004
|
"settings",
|
|
1014
1005
|
"shifted-left",
|
|
1015
1006
|
"onUpdateSettings"
|
|
1016
|
-
]), [[p, !d(
|
|
1017
|
-
!d(w) && d(T) ? (a(), _(
|
|
1007
|
+
]), [[p, !d(M).state.previewMode]]),
|
|
1008
|
+
!d(w) && d(T) ? (a(), _(Ye, {
|
|
1018
1009
|
key: 1,
|
|
1019
1010
|
ref_key: "cloudPanelsRef",
|
|
1020
1011
|
ref: h,
|
|
1021
1012
|
config: s.config,
|
|
1022
|
-
editor: d(
|
|
1023
|
-
core: d(
|
|
1013
|
+
editor: d(M),
|
|
1014
|
+
core: d(N),
|
|
1024
1015
|
"panel-state": d(B),
|
|
1025
|
-
"plan-config-instance": d(
|
|
1026
|
-
"test-email": d(
|
|
1027
|
-
"media-lib": d(
|
|
1016
|
+
"plan-config-instance": d(D),
|
|
1017
|
+
"test-email": d(L),
|
|
1018
|
+
"media-lib": d(F),
|
|
1028
1019
|
"saved-modules-headless": d(z),
|
|
1029
1020
|
"show-save-module-dialog": d(U),
|
|
1030
1021
|
"save-module-pre-selected-block-id": d(G),
|
|
1031
1022
|
"show-module-browser-modal": d(W),
|
|
1032
|
-
"onUpdate:showSaveModuleDialog":
|
|
1033
|
-
"onUpdate:saveModulePreSelectedBlockId":
|
|
1034
|
-
"onUpdate:showModuleBrowserModal":
|
|
1035
|
-
onSendTestEmail:
|
|
1036
|
-
onModuleInsert:
|
|
1023
|
+
"onUpdate:showSaveModuleDialog": n[7] ||= (e) => U.value = e,
|
|
1024
|
+
"onUpdate:saveModulePreSelectedBlockId": n[8] ||= (e) => G.value = e,
|
|
1025
|
+
"onUpdate:showModuleBrowserModal": n[9] ||= (e) => W.value = e,
|
|
1026
|
+
onSendTestEmail: q,
|
|
1027
|
+
onModuleInsert: te
|
|
1037
1028
|
}, null, 8, [
|
|
1038
1029
|
"config",
|
|
1039
1030
|
"editor",
|
|
@@ -1047,10 +1038,10 @@ var Pe = {
|
|
|
1047
1038
|
"save-module-pre-selected-block-id",
|
|
1048
1039
|
"show-module-browser-modal"
|
|
1049
1040
|
])) : g("", !0)
|
|
1050
|
-
], 14,
|
|
1041
|
+
], 14, ft));
|
|
1051
1042
|
}
|
|
1052
|
-
}), [["__scopeId", "data-v-
|
|
1043
|
+
}), [["__scopeId", "data-v-48e2c2ee"]]);
|
|
1053
1044
|
//#endregion
|
|
1054
|
-
export {
|
|
1045
|
+
export { gt as default };
|
|
1055
1046
|
|
|
1056
|
-
//# sourceMappingURL=CloudEditor-
|
|
1047
|
+
//# sourceMappingURL=CloudEditor-HrfSfr3G.js.map
|