@aswin.dev/editor 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AccessibilityPanel-EmQ19wiS.js → AccessibilityPanel-COL6Wm7p.js} +1 -1
- package/dist/{AiChatSidebar-DeB0w_32.js → AiChatSidebar-Dt5pvG5t.js} +9 -9
- package/dist/{AiFeatureMenu-DoLD5Cde.js → AiFeatureMenu-BipxcGap.js} +5 -5
- package/dist/{BlockA11yBadge-DkNbDvJA.js → BlockA11yBadge-Qs6HtXid.js} +1 -1
- package/dist/{CloudEditor-zo9PjjvY.js → CloudEditor-CnUX0IOW.js} +327 -290
- package/dist/{CollaboratorBar-BsXMY-8e.js → CollaboratorBar-NaaZTjbs.js} +2 -2
- package/dist/{CommentsSidebar-DIWIa4rS.js → CommentsSidebar-DE6ZsM4D.js} +15 -16
- package/dist/CountdownBlock-Ba3T-i2X.js +1536 -0
- package/dist/{CountdownToolbar-BuS8p5ju.js → CountdownToolbar-CbhSp_uq.js} +2 -2
- package/dist/{DesignReferenceSidebar-RDlnhL-6.js → DesignReferenceSidebar-CZg97bbj.js} +5 -5
- package/dist/{LoadingTrack-BJ59h9ok.js → LoadingTrack-Ba2pfF57.js} +1 -1
- package/dist/{ModuleBrowserModal-b7HbpByz.js → ModuleBrowserModal-D2EVdexc.js} +7 -7
- package/dist/{ModulePreviewCanvas-D__YlOLS.js → ModulePreviewCanvas-P3N-nxkU.js} +52 -47
- package/dist/{NumberWithSuffix-Ca3vNY84.js → NumberWithSuffix-CihczoAd.js} +2 -2
- package/dist/{ParagraphEditor-B1aYPO-6.js → ParagraphEditor-BbRuKhWv.js} +23 -23
- package/dist/{RichTextEditorContent-BmEVMrkJ.js → RichTextEditorContent-CrqPQdnk.js} +1 -1
- package/dist/{SaveModuleDialog-ClovqI6h.js → SaveModuleDialog-DLZa3m3O.js} +3 -3
- package/dist/{SnapshotHistory-DoqtH0cw.js → SnapshotHistory-Csg1_jXi.js} +5 -5
- package/dist/{TemplateScoringPanel-DQv2ZAiL.js → TemplateScoringPanel-CS7o62zS.js} +7 -7
- package/dist/{TestEmailModal-iIeYJYsj.js → TestEmailModal-m3okLbJz.js} +3 -3
- package/dist/{TitleEditor-CTDIwRF_.js → TitleEditor-CtJIS5ER.js} +7 -7
- package/dist/{TplModal-CBq1J1pG.js → TplModal-CQCrKeKP.js} +1 -1
- package/dist/{blockTypeIcons-QkC6f5UE.js → blockTypeIcons-Dah0pgt-.js} +50 -19
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AccessibilityPanel-BeU8nz7A.js → AccessibilityPanel-Bt_fD7QT.js} +8 -8
- package/dist/cdn/chunks/{AccessibilityPanel-BeU8nz7A.js.map → AccessibilityPanel-Bt_fD7QT.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-B2mhscyP.js → AiFeatureMenu-Bn-0rgfr.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-B2mhscyP.js.map → AiFeatureMenu-Bn-0rgfr.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-C4g77gF0.js → BlockA11yBadge-Cj18Iw0p.js} +4 -4
- package/dist/cdn/chunks/{BlockA11yBadge-C4g77gF0.js.map → BlockA11yBadge-Cj18Iw0p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-Btyr0b0_.js → CloudEditor-56lVcdot.js} +312 -275
- package/dist/cdn/chunks/CloudEditor-56lVcdot.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-YBiIjiRh.js → CollaboratorBar-B7DCV3xp.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-YBiIjiRh.js.map → CollaboratorBar-B7DCV3xp.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C9XZr33O.js → CountdownToolbar-BtaD3d3-.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-C9XZr33O.js.map → CountdownToolbar-BtaD3d3-.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-C2CDWKW6.js → ModuleBrowserModal-CiIY7ZGv.js} +7 -7
- package/dist/cdn/chunks/{ModuleBrowserModal-C2CDWKW6.js.map → ModuleBrowserModal-CiIY7ZGv.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Drt8Evai.js → ModulePreviewCanvas-M7_OGV2m.js} +55 -51
- package/dist/cdn/chunks/ModulePreviewCanvas-M7_OGV2m.js.map +1 -0
- package/dist/cdn/chunks/{NumberWithSuffix-Ty1bp9vB.js → NumberWithSuffix-DfVBnsgc.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-Ty1bp9vB.js.map → NumberWithSuffix-DfVBnsgc.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BA1WbHI7.js → ParagraphEditor-1XJOpiLX.js} +45 -45
- package/dist/cdn/chunks/{ParagraphEditor-BA1WbHI7.js.map → ParagraphEditor-1XJOpiLX.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BtWCA_Oc.js → RichTextEditorContent-C2q8sbp2.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-BtWCA_Oc.js.map → RichTextEditorContent-C2q8sbp2.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-AwL0tkCV.js → SaveModuleDialog-BNxh1jPT.js} +4 -4
- package/dist/cdn/chunks/{SaveModuleDialog-AwL0tkCV.js.map → SaveModuleDialog-BNxh1jPT.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DbSyeixS.js → TitleEditor-IF7VzLTk.js} +13 -13
- package/dist/cdn/chunks/{TitleEditor-DbSyeixS.js.map → TitleEditor-IF7VzLTk.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js +24 -0
- package/dist/cdn/chunks/blockTypeIcons-tPBKQ8WC.js.map +1 -0
- package/dist/{de-2LEvILeZ.js → cdn/chunks/de-B05yW8Gi.js} +74 -3
- package/dist/cdn/chunks/de-B05yW8Gi.js.map +1 -0
- package/dist/cdn/chunks/{de-RQrZR56a.js → de-BPHtelu7.js} +1 -1
- package/dist/cdn/chunks/{de-RQrZR56a.js.map → de-BPHtelu7.js.map} +1 -1
- package/dist/cdn/chunks/{de-Ce-LbJ2J.js → de-BRDqJwJe.js} +1 -1
- package/dist/cdn/chunks/{de-Ce-LbJ2J.js.map → de-BRDqJwJe.js.map} +1 -1
- package/dist/cdn/chunks/{emojiData-EMFlj6FJ.js → emojiData-DUHzsh4j.js} +1 -1
- package/dist/cdn/chunks/{emojiData-EMFlj6FJ.js.map → emojiData-DUHzsh4j.js.map} +1 -1
- package/dist/cdn/chunks/{en-CNqLoIm9.js → en-BII7695P.js} +73 -4
- package/dist/cdn/chunks/en-BII7695P.js.map +1 -0
- package/dist/cdn/chunks/{en-DiCWK5fG.js → en-Cdj_Ikl1.js} +1 -1
- package/dist/cdn/chunks/{en-DiCWK5fG.js.map → en-Cdj_Ikl1.js.map} +1 -1
- package/dist/cdn/chunks/{en-Bl1ecfRF.js → en-DejwuJhw.js} +1 -1
- package/dist/cdn/chunks/{en-Bl1ecfRF.js.map → en-DejwuJhw.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-BVKQw_sp.js → extensions-B0eT-yjf.js} +22 -22
- package/dist/cdn/chunks/{extensions-BVKQw_sp.js.map → extensions-B0eT-yjf.js.map} +1 -1
- package/dist/cdn/chunks/{features-DIBEo4xl.js → features-BrvE2Fzv.js} +2934 -1170
- package/dist/cdn/chunks/features-BrvE2Fzv.js.map +1 -0
- package/dist/cdn/chunks/{icons-C1Gg-ov-.js → icons-C7wtAD8p.js} +111 -60
- package/dist/cdn/chunks/icons-C7wtAD8p.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-lQbkge2E.js → liquid.browser-CllF-us3.js} +1 -1
- package/dist/cdn/chunks/{liquid.browser-lQbkge2E.js.map → liquid.browser-CllF-us3.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-BTF_Ko70.js → media-library-Cl5XuaKy.js} +676 -660
- package/dist/cdn/chunks/media-library-Cl5XuaKy.js.map +1 -0
- package/dist/cdn/chunks/{pusher-CDbNlZBE.js → pusher-i7-OBujc.js} +1 -1
- package/dist/cdn/chunks/{pusher-CDbNlZBE.js.map → pusher-i7-OBujc.js.map} +1 -1
- package/dist/cdn/chunks/{quality-C5AmotmP.js → quality-Va91a3N8.js} +40 -40
- package/dist/cdn/chunks/{quality-C5AmotmP.js.map → quality-Va91a3N8.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-D0L44Vlp.js → renderer-si0Zgxeb.js} +17 -17
- package/dist/cdn/chunks/{renderer-D0L44Vlp.js.map → renderer-si0Zgxeb.js.map} +1 -1
- package/dist/cdn/chunks/{src-RKexlYjA.js → src-BLyYIbdZ.js} +10 -10
- package/dist/cdn/chunks/{src-RKexlYjA.js.map → src-BLyYIbdZ.js.map} +1 -1
- package/dist/cdn/chunks/{styleConstants-PgmvNBzQ.js → styleConstants-DfcU8u_r.js} +1 -1
- package/dist/cdn/chunks/{styleConstants-PgmvNBzQ.js.map → styleConstants-DfcU8u_r.js.map} +1 -1
- package/dist/cdn/chunks/{styles-CQR6ed13.js → styles-C6BQLT9F.js} +2174 -1343
- package/dist/cdn/chunks/styles-C6BQLT9F.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CDzAbF2j.js → tiptap-D8whBv5F.js} +2 -2
- package/dist/cdn/chunks/{tiptap-CDzAbF2j.js.map → tiptap-D8whBv5F.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +146 -117
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cloud-DJG4tb4_.js → cloud-BoS0J0vs.js} +1 -1
- package/dist/{cdn/chunks/de-_tooy3Q8.js → de-C74F9xK3.js} +72 -5
- package/dist/{dist-BSJvAvH3.js → dist-BUzw1buG.js} +1 -1
- package/dist/{dist-b-XUqAoF.js → dist-BZyY-SS4.js} +1 -1
- package/dist/{dist-Df4ie7vZ.js → dist-BadNx4qo.js} +1 -1
- package/dist/{dist-wfAedlzi.js → dist-BesOh2mk.js} +1 -1
- package/dist/{dist-kZfaVUpW.js → dist-Bz3M4RXG.js} +3 -3
- package/dist/{dist-Bmir0gYb.js → dist-C2grMquk.js} +233 -139
- package/dist/{dist-BvPgo-UK.js → dist-C3T2AKtB.js} +1 -1
- package/dist/{dist-CPVBKMmd.js → dist-C9ckKEZL.js} +1 -1
- package/dist/{dist-DxOoemkW.js → dist-CBItRG-Z.js} +1 -1
- package/dist/{dist-BeFnymxK.js → dist-COSzWQUs.js} +1 -1
- package/dist/{dist-CivF9P8b.js → dist-Djgi0A6k.js} +92 -77
- package/dist/{dist-BHAeXaUY.js → dist-DtiDUrX-.js} +1 -1
- package/dist/{dist-HEQ52gTJ.js → dist-Dzt5foyL.js} +1 -1
- package/dist/{en-D2RU2Poj.js → en-B24jVTeO.js} +72 -3
- package/dist/{extensions-BQ1xXx3d.js → extensions-DsmjHqBF.js} +21 -21
- package/dist/index.d.ts +8 -8
- package/dist/{pencil-BZJPNYWR.js → pencil-Bpimrzzw.js} +5 -2
- package/dist/style.css +1 -1
- package/dist/{styles-CavWjvol.js → styles-BMFMtR9R.js} +2121 -1267
- package/dist/templatical-editor.js +149 -120
- package/dist/{useEditorCore-BGnzcT7p.js → useEditorCore-CtNAo0uy.js} +2331 -2202
- package/dist/useMergeTag-2vTcVpNo.js +34 -0
- package/package.json +7 -7
- package/dist/CountdownBlock-BCi7-DAM.js +0 -92
- package/dist/cdn/chunks/CloudEditor-Btyr0b0_.js.map +0 -1
- package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js +0 -93
- package/dist/cdn/chunks/CountdownBlock-B06UZoWe.js.map +0 -1
- package/dist/cdn/chunks/ModulePreviewCanvas-Drt8Evai.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js +0 -23
- package/dist/cdn/chunks/blockTypeIcons-pQIkxJzc.js.map +0 -1
- package/dist/cdn/chunks/de-_tooy3Q8.js.map +0 -1
- package/dist/cdn/chunks/en-CNqLoIm9.js.map +0 -1
- package/dist/cdn/chunks/features-DIBEo4xl.js.map +0 -1
- package/dist/cdn/chunks/icons-C1Gg-ov-.js.map +0 -1
- package/dist/cdn/chunks/media-library-BTF_Ko70.js.map +0 -1
- package/dist/cdn/chunks/styles-CQR6ed13.js.map +0 -1
- package/dist/check-DJrpDKO_.js +0 -7
- package/dist/useMergeTag-CfuZq2fF.js +0 -34
- /package/dist/{_plugin-vue_export-helper-Bwh4ceeO.js → _plugin-vue_export-helper-BVAJ4lgT.js} +0 -0
- /package/dist/{clock-ik2pRJKG.js → clock-Ba4p3rJM.js} +0 -0
- /package/dist/{de-D2npYjrZ.js → de-GOtR9DwW.js} +0 -0
- /package/dist/{dist-DvHLtWVP.js → dist-DXa1uAMh.js} +0 -0
- /package/dist/{emojiData-DvQBBzmO.js → emojiData-DrBuvEoP.js} +0 -0
- /package/dist/{en-ib-4h3_o.js → en-dFFQVzNn.js} +0 -0
- /package/dist/{formatRelativeTime-CFDZnEIs.js → formatRelativeTime-BhhO8yCl.js} +0 -0
- /package/dist/{liquid.browser-7Rv0QDiO.js → liquid.browser-BvCyLQII.js} +0 -0
- /package/dist/{scan-line-DlghmhNf.js → scan-line-CzfFJO1o.js} +0 -0
- /package/dist/{send-DDdhIRj8.js → send-D2eSo4GH.js} +0 -0
- /package/dist/{shield-check-OSQ-JVTX.js → shield-check-jkpgcC0-.js} +0 -0
- /package/dist/{sparkles-BN4a-CoF.js → sparkles-Chm5CZfb.js} +0 -0
- /package/dist/{styleConstants-wWRbcuEK.js → styleConstants-34eUKPOZ.js} +0 -0
- /package/dist/{text-align-start-D1weisjS.js → text-align-start-CzBnJsW8.js} +0 -0
- /package/dist/{trash-2-CMWvQ5KX.js → trash-2-CtK2apEH.js} +0 -0
- /package/dist/{triangle-alert-DyidRNX_.js → triangle-alert-KpDVNbpn.js} +0 -0
- /package/dist/{undo-2-Cg8I7obC.js → undo-2-m1EUDbUg.js} +0 -0
- /package/dist/{useCloudI18n-BTTNBk5i.js → useCloudI18n-DOKSZql1.js} +0 -0
- /package/dist/{x-CgIhNcT9.js → x-BkaOMosX.js} +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { At as e, C as t, F as n, Ft as r, M as i, N as a, P as o, S as s, U as c, V as l, W as u, Z as d, _ as f, b as p, d as m, et as h, f as g, g as _, h as v, j as y, jt as b, l as x, m as S, nt as C, st as w, t as T, v as E, x as D, y as O } from "./vue.runtime.esm-bundler-CjauPXjj.js";
|
|
2
2
|
import { t as k } from "./timeouts-BSGxjuUF.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { E as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { a as
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as xe } from "./clock-
|
|
13
|
-
import { t as
|
|
3
|
+
import { M as A, f as ee, o as te, r as j } from "./dist-C2grMquk.js";
|
|
4
|
+
import { I as M, R as N, t as ne, w as re } from "./useEditorCore-CtNAo0uy.js";
|
|
5
|
+
import { t as P, u as F } from "./dist-Djgi0A6k.js";
|
|
6
|
+
import { E as I, S as ie, T as L, c as R, i as z, l as ae, n as oe, u as se, w as ce } from "./keys-CvX8D-8C.js";
|
|
7
|
+
import { t as B } from "./useI18n-C2xQZ6K9.js";
|
|
8
|
+
import { t as V } from "./createLucideIcon-ClREiSx3.js";
|
|
9
|
+
import { _ as le, a as ue, c as H, d as U, f as de, g as W, h as fe, i as pe, l as G, m as me, n as he, p as ge, r as _e, s as ve, t as ye, u as be } from "./styles-BMFMtR9R.js";
|
|
10
|
+
import { n as K } from "./pencil-Bpimrzzw.js";
|
|
11
|
+
import { t as q } from "./circle-alert-ZQQc98HC.js";
|
|
12
|
+
import { t as xe } from "./clock-Ba4p3rJM.js";
|
|
13
|
+
import { t as Se } from "./loader-circle-Balo8p3d.js";
|
|
14
14
|
import { t as J } from "./message-circle-B39qAHxs.js";
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { n as X } from "./useCloudI18n-
|
|
20
|
-
import { d as Z } from "./styleConstants-
|
|
21
|
-
import { _ as
|
|
22
|
-
var
|
|
15
|
+
import { t as Y } from "./send-D2eSo4GH.js";
|
|
16
|
+
import { t as Ce } from "./sparkles-Chm5CZfb.js";
|
|
17
|
+
import { t as we } from "./triangle-alert-KpDVNbpn.js";
|
|
18
|
+
import { t as Te } from "./_plugin-vue_export-helper-BVAJ4lgT.js";
|
|
19
|
+
import { n as X } from "./useCloudI18n-DOKSZql1.js";
|
|
20
|
+
import { d as Z } from "./styleConstants-34eUKPOZ.js";
|
|
21
|
+
import { _ as Ee, a as De, c as Q, d as Oe, f as $, g as ke, h as Ae, l as je, m as Me, n as Ne, o as Pe, p as Fe, r as Ie, s as Le, t as Re, v as ze, y as Be } from "./cloud-BoS0J0vs.js";
|
|
22
|
+
var Ve = V("save", [
|
|
23
23
|
["path", {
|
|
24
24
|
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",
|
|
25
25
|
key: "1c8476"
|
|
@@ -35,14 +35,14 @@ var Be = se("save", [
|
|
|
35
35
|
]);
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/cloud/composables/useSnapshotPreview.ts
|
|
38
|
-
function
|
|
38
|
+
function He(e) {
|
|
39
39
|
let { authManager: t, editor: n, history: r, conditionPreview: i, autoSave: a, onError: o } = e, s = C(null), c = h(null), l = h(null), u = !1;
|
|
40
40
|
d(() => {
|
|
41
41
|
u = !0;
|
|
42
42
|
});
|
|
43
43
|
let f = S(() => c.value !== null), p = S(() => s.value?.snapshots.value ?? []), m = S(() => s.value?.isLoading.value ?? !1), g = S(() => s.value?.isRestoring.value ?? !1);
|
|
44
44
|
function _() {
|
|
45
|
-
n.state.template?.id && !s.value && (s.value =
|
|
45
|
+
n.state.template?.id && !s.value && (s.value = ke({
|
|
46
46
|
authManager: t,
|
|
47
47
|
templateId: n.state.template.id,
|
|
48
48
|
onRestore: v,
|
|
@@ -92,7 +92,7 @@ function Ve(e) {
|
|
|
92
92
|
}
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region src/cloud/composables/useCloudPanelState.ts
|
|
95
|
-
function
|
|
95
|
+
function Ue() {
|
|
96
96
|
let e = h(null), t = S({
|
|
97
97
|
get: () => e.value === "ai-chat",
|
|
98
98
|
set: (t) => e.value = t ? "ai-chat" : null
|
|
@@ -115,7 +115,7 @@ function He() {
|
|
|
115
115
|
function m(t) {
|
|
116
116
|
c.value = !1, e.value = e.value === t ? null : t;
|
|
117
117
|
}
|
|
118
|
-
return
|
|
118
|
+
return P(l, () => {
|
|
119
119
|
c.value = !1;
|
|
120
120
|
}), {
|
|
121
121
|
activePanel: e,
|
|
@@ -137,8 +137,8 @@ function He() {
|
|
|
137
137
|
}
|
|
138
138
|
//#endregion
|
|
139
139
|
//#region src/cloud/composables/useCollabUndoWarning.ts
|
|
140
|
-
function
|
|
141
|
-
let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = h(!1), a = h(!1), { start: o } =
|
|
140
|
+
function We(e) {
|
|
141
|
+
let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = h(!1), a = h(!1), { start: o } = F(() => {
|
|
142
142
|
a.value = !1;
|
|
143
143
|
}, k, { immediate: !1 });
|
|
144
144
|
function s() {
|
|
@@ -151,8 +151,8 @@ function Ue(e) {
|
|
|
151
151
|
}
|
|
152
152
|
//#endregion
|
|
153
153
|
//#region src/cloud/composables/useCloudFeatureFlags.ts
|
|
154
|
-
function
|
|
155
|
-
let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = S(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = S(() => t.hasFeature("test_email")), o = S(() => !!r.state.template?.id), s = S(() => t.hasFeature("white_label")), c = S(() => t.config.value?.limits.max_templates ?? null), l = S(() => t.config.value?.template_count ?? 0), u = h(!1), d = h("idle"), f = h(""), { start: p } =
|
|
154
|
+
function Ge(e) {
|
|
155
|
+
let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = S(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = S(() => t.hasFeature("test_email")), o = S(() => !!r.state.template?.id), s = S(() => t.hasFeature("white_label")), c = S(() => t.config.value?.limits.max_templates ?? null), l = S(() => t.config.value?.template_count ?? 0), u = h(!1), d = h("idle"), f = h(""), { start: p } = F(() => {
|
|
156
156
|
d.value = "idle";
|
|
157
157
|
}, 3e3, { immediate: !1 });
|
|
158
158
|
return {
|
|
@@ -170,9 +170,9 @@ function We(e) {
|
|
|
170
170
|
}
|
|
171
171
|
//#endregion
|
|
172
172
|
//#region src/cloud/composables/useCloudMediaLibrary.ts
|
|
173
|
-
function
|
|
174
|
-
let { onRequestMedia: t, mediaLibraryOpen: n, mediaLibraryAccept: r } = e,
|
|
175
|
-
async function
|
|
173
|
+
function Ke(e) {
|
|
174
|
+
let { onRequestMedia: t, mediaLibraryOpen: n, mediaLibraryAccept: r, onTemplateWidthPreview: i } = e, a = null;
|
|
175
|
+
async function o() {
|
|
176
176
|
if (t) {
|
|
177
177
|
let e = await t({ accept: ["images"] });
|
|
178
178
|
return e ? {
|
|
@@ -180,55 +180,60 @@ function Ge(e) {
|
|
|
180
180
|
alt: e.alt_text || void 0
|
|
181
181
|
} : null;
|
|
182
182
|
}
|
|
183
|
-
return
|
|
184
|
-
|
|
183
|
+
return a &&= (a(null), null), r.value = ["images"], n.value = !0, new Promise((e) => {
|
|
184
|
+
a = (t) => {
|
|
185
185
|
e(t);
|
|
186
186
|
};
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
n.value = !1,
|
|
189
|
+
function s(e, t) {
|
|
190
|
+
n.value = !1, a?.({
|
|
191
191
|
url: e.url,
|
|
192
|
-
alt: e.alt_text || void 0
|
|
193
|
-
|
|
192
|
+
alt: e.alt_text || void 0,
|
|
193
|
+
templateWidth: t
|
|
194
|
+
}), a = null;
|
|
194
195
|
}
|
|
195
|
-
function
|
|
196
|
-
|
|
196
|
+
function c(e) {
|
|
197
|
+
i?.(e);
|
|
198
|
+
}
|
|
199
|
+
function l() {
|
|
200
|
+
n.value = !1, a?.(null), a = null;
|
|
197
201
|
}
|
|
198
202
|
return d(() => {
|
|
199
|
-
|
|
203
|
+
a &&= (a(null), null);
|
|
200
204
|
}), {
|
|
201
|
-
handleRequestMedia:
|
|
202
|
-
handleMediaSelect:
|
|
203
|
-
handleMediaLibraryClose:
|
|
205
|
+
handleRequestMedia: o,
|
|
206
|
+
handleMediaSelect: s,
|
|
207
|
+
handleMediaLibraryClose: l,
|
|
208
|
+
handleMediaTemplateWidthPreview: c
|
|
204
209
|
};
|
|
205
210
|
}
|
|
206
211
|
//#endregion
|
|
207
212
|
//#region src/cloud/composables/useCloudInitialization.ts
|
|
208
|
-
function
|
|
209
|
-
let { config: t, translations: n, fontsManager: r, emit: i, getCommentsSidebar: a } = e, s = h(!0), c = h(!1), u = h(null), d = !1, f = { value: null }, p = null, m = null, g = new
|
|
213
|
+
function qe(e) {
|
|
214
|
+
let { config: t, translations: n, fontsManager: r, emit: i, getCommentsSidebar: a } = e, s = h(!0), c = h(!1), u = h(null), d = !1, f = { value: null }, p = null, m = null, g = new Re({
|
|
210
215
|
...t.auth,
|
|
211
216
|
onError: t.onError
|
|
212
|
-
}), _ =
|
|
217
|
+
}), _ = Me({
|
|
213
218
|
authManager: g,
|
|
214
219
|
onError: t.onError
|
|
215
|
-
}), v = h(/* @__PURE__ */ new Map()), y =
|
|
220
|
+
}), v = h(/* @__PURE__ */ new Map()), y = Oe({
|
|
216
221
|
authManager: g,
|
|
217
222
|
defaultFontFamily: t.fonts?.defaultFont,
|
|
218
223
|
templateDefaults: t.templateDefaults,
|
|
219
224
|
onError: t.onError,
|
|
220
225
|
lockedBlocks: v
|
|
221
|
-
}), b =
|
|
226
|
+
}), b = Be({
|
|
222
227
|
authManager: g,
|
|
223
228
|
onError: t.onError
|
|
224
229
|
});
|
|
225
|
-
t.mcp?.enabled &&
|
|
230
|
+
t.mcp?.enabled && Fe({
|
|
226
231
|
editor: y,
|
|
227
232
|
channel: b.channel,
|
|
228
233
|
onOperation: t.mcp.onOperation
|
|
229
234
|
});
|
|
230
235
|
let x = null;
|
|
231
|
-
t.collaboration?.enabled && (x =
|
|
236
|
+
t.collaboration?.enabled && (x = Pe({
|
|
232
237
|
authManager: g,
|
|
233
238
|
editor: y,
|
|
234
239
|
channel: b.channel,
|
|
@@ -239,8 +244,8 @@ function Ke(e) {
|
|
|
239
244
|
onBlockUnlocked: t.collaboration.onBlockUnlocked
|
|
240
245
|
}), l(() => x.lockedBlocks.value, (e) => {
|
|
241
246
|
v.value = e;
|
|
242
|
-
}, { immediate: !0 }),
|
|
243
|
-
let C = S(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), w =
|
|
247
|
+
}, { immediate: !0 }), Le(y, x));
|
|
248
|
+
let C = S(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), w = ne({
|
|
244
249
|
editor: y,
|
|
245
250
|
config: {
|
|
246
251
|
uiTheme: t.uiTheme,
|
|
@@ -251,7 +256,7 @@ function Ke(e) {
|
|
|
251
256
|
displayConditions: t.displayConditions,
|
|
252
257
|
onRequestMedia: null,
|
|
253
258
|
editorType: t.editorType,
|
|
254
|
-
accessibility:
|
|
259
|
+
accessibility: W(t),
|
|
255
260
|
onSave: () => {
|
|
256
261
|
f.value?.().catch((e) => {
|
|
257
262
|
t.onError?.(e);
|
|
@@ -270,13 +275,13 @@ function Ke(e) {
|
|
|
270
275
|
},
|
|
271
276
|
themeExtraStyles: () => ({ "--tpl-drop-text": `"${n.canvas.dropHere}"` }),
|
|
272
277
|
keyboardOptions: { onBeforeUndo: () => m?.showCollabUndoWarning() }
|
|
273
|
-
}), T =
|
|
278
|
+
}), T = We({
|
|
274
279
|
isCollaborationEnabled: C,
|
|
275
280
|
getCollaboratorCount: () => x?.collaborators.value.length ?? 0,
|
|
276
281
|
canUndo: w.history.canUndo
|
|
277
282
|
});
|
|
278
283
|
m = T;
|
|
279
|
-
let E =
|
|
284
|
+
let E = He({
|
|
280
285
|
authManager: g,
|
|
281
286
|
editor: y,
|
|
282
287
|
history: w.history,
|
|
@@ -285,32 +290,32 @@ function Ke(e) {
|
|
|
285
290
|
onError: t.onError
|
|
286
291
|
});
|
|
287
292
|
p = E;
|
|
288
|
-
let D =
|
|
293
|
+
let D = Ue(), O = De(t.ai), k = Ge({
|
|
289
294
|
planConfigInstance: _,
|
|
290
295
|
aiConfig: O,
|
|
291
296
|
editor: y
|
|
292
|
-
}), A =
|
|
297
|
+
}), A = Ke({
|
|
293
298
|
onRequestMedia: t.onRequestMedia,
|
|
294
299
|
mediaLibraryOpen: D.mediaLibraryOpen,
|
|
295
300
|
mediaLibraryAccept: D.mediaLibraryAccept
|
|
296
301
|
});
|
|
297
|
-
|
|
302
|
+
re({
|
|
298
303
|
onBlockMove: y.moveBlock,
|
|
299
304
|
onBlockAdd: y.addBlock
|
|
300
305
|
});
|
|
301
|
-
let
|
|
306
|
+
let ee = $({
|
|
302
307
|
authManager: g,
|
|
303
308
|
getFontsConfig: () => t.fonts,
|
|
304
309
|
canUseCustomFonts: () => _.hasFeature("custom_fonts")
|
|
305
|
-
}),
|
|
310
|
+
}), te = ze({
|
|
306
311
|
authManager: g,
|
|
307
312
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
308
313
|
save: () => y.save(),
|
|
309
|
-
exportHtml: (e) =>
|
|
314
|
+
exportHtml: (e) => ee.exportHtml(e),
|
|
310
315
|
onError: t.onError,
|
|
311
316
|
isAuthReady: c,
|
|
312
317
|
onBeforeTestEmail: t.onBeforeTestEmail
|
|
313
|
-
}),
|
|
318
|
+
}), j = je({
|
|
314
319
|
authManager: g,
|
|
315
320
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
316
321
|
getSocketId: () => b.getSocketId(),
|
|
@@ -319,56 +324,56 @@ function Ke(e) {
|
|
|
319
324
|
isAuthReady: c,
|
|
320
325
|
hasCommentingFeature: () => t.commenting !== !1 && _.hasFeature("commenting")
|
|
321
326
|
});
|
|
322
|
-
|
|
323
|
-
comments:
|
|
327
|
+
Q({
|
|
328
|
+
comments: j,
|
|
324
329
|
channel: b.channel
|
|
325
330
|
});
|
|
326
|
-
let
|
|
331
|
+
let N = Ae({
|
|
327
332
|
authManager: g,
|
|
328
333
|
onError: t.onError
|
|
329
|
-
}),
|
|
334
|
+
}), P = h(!1), F = h(null), ae = h(!1), ce = Ee({
|
|
330
335
|
authManager: g,
|
|
331
336
|
getTemplateId: () => y.state.template?.id ?? null
|
|
332
337
|
});
|
|
333
|
-
function
|
|
338
|
+
function B(e) {
|
|
334
339
|
D.commentsOpen.value = !0, queueMicrotask(() => {
|
|
335
340
|
a()?.filterByBlock(e);
|
|
336
341
|
});
|
|
337
342
|
}
|
|
338
|
-
o(
|
|
343
|
+
o(ie, A.handleRequestMedia), o(z, g), o(oe, O), o(se, j), o(L, N), o(I, ce), o(R, {
|
|
339
344
|
plan: _,
|
|
340
345
|
ai: O,
|
|
341
346
|
comments: {
|
|
342
|
-
getBlockCount: (e) =>
|
|
343
|
-
openForBlock:
|
|
347
|
+
getBlockCount: (e) => j.commentCountByBlock.value.get(e) ?? 0,
|
|
348
|
+
openForBlock: B
|
|
344
349
|
},
|
|
345
350
|
savedModules: {
|
|
346
351
|
openSaveDialog: (e) => {
|
|
347
|
-
|
|
352
|
+
F.value = e ?? null, P.value = !0;
|
|
348
353
|
},
|
|
349
354
|
openBrowser: () => {
|
|
350
|
-
|
|
355
|
+
ae.value = !0;
|
|
351
356
|
},
|
|
352
|
-
moduleCount: S(() =>
|
|
357
|
+
moduleCount: S(() => N.modules.value.length)
|
|
353
358
|
}
|
|
354
359
|
});
|
|
355
|
-
function
|
|
360
|
+
function V(e) {
|
|
356
361
|
_.hasFeature("theme_customization") && (w.themeOverrides.value = e);
|
|
357
362
|
}
|
|
358
|
-
function
|
|
363
|
+
function le(e) {
|
|
359
364
|
y.setUiTheme(e);
|
|
360
365
|
}
|
|
361
|
-
async function
|
|
366
|
+
async function ue() {
|
|
362
367
|
s.value = !0, u.value = null;
|
|
363
368
|
try {
|
|
364
369
|
if (await g.initialize(), d) return;
|
|
365
370
|
c.value = !0;
|
|
366
|
-
let e = await
|
|
371
|
+
let e = await Ne({ authManager: g });
|
|
367
372
|
if (d) return;
|
|
368
373
|
if (!e.api.ok) throw Error("Health check failed: API is not reachable");
|
|
369
374
|
if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
|
|
370
|
-
if (e.websocket.ok ||
|
|
371
|
-
r.setCustomFontsEnabled(_.hasFeature("custom_fonts")), t.customBlocks?.length && _.hasFeature("custom_blocks") && w.registerCustomBlocks(t.customBlocks), t.theme && _.hasFeature("theme_customization") && (w.themeOverrides.value = t.theme), t.modules !== !1 && _.hasFeature("saved_modules") &&
|
|
375
|
+
if (e.websocket.ok || M.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await _.fetchConfig(), d) return;
|
|
376
|
+
r.setCustomFontsEnabled(_.hasFeature("custom_fonts")), t.customBlocks?.length && _.hasFeature("custom_blocks") && w.registerCustomBlocks(t.customBlocks), t.theme && _.hasFeature("theme_customization") && (w.themeOverrides.value = t.theme), t.modules !== !1 && _.hasFeature("saved_modules") && N.loadModules(), i("ready");
|
|
372
377
|
} catch (e) {
|
|
373
378
|
if (d) return;
|
|
374
379
|
let n = e instanceof Error ? e : Error("Initialization failed", { cause: e });
|
|
@@ -377,7 +382,7 @@ function Ke(e) {
|
|
|
377
382
|
d || (s.value = !1);
|
|
378
383
|
}
|
|
379
384
|
}
|
|
380
|
-
function
|
|
385
|
+
function H() {
|
|
381
386
|
d = !0, r.cleanupFontLinks(), b.disconnect(), w.destroy(), t.onUnmount?.();
|
|
382
387
|
}
|
|
383
388
|
return {
|
|
@@ -395,30 +400,30 @@ function Ke(e) {
|
|
|
395
400
|
aiConfig: O,
|
|
396
401
|
featureFlags: k,
|
|
397
402
|
mediaLib: A,
|
|
398
|
-
exporter:
|
|
399
|
-
testEmail:
|
|
400
|
-
commentsInstance:
|
|
401
|
-
savedModulesHeadless:
|
|
402
|
-
scoringInstance:
|
|
403
|
+
exporter: ee,
|
|
404
|
+
testEmail: te,
|
|
405
|
+
commentsInstance: j,
|
|
406
|
+
savedModulesHeadless: N,
|
|
407
|
+
scoringInstance: ce,
|
|
403
408
|
panelState: D,
|
|
404
409
|
snapshotPreview: E,
|
|
405
410
|
collabWarning: T,
|
|
406
|
-
showSaveModuleDialog:
|
|
407
|
-
showModuleBrowserModal:
|
|
408
|
-
saveModulePreSelectedBlockId:
|
|
411
|
+
showSaveModuleDialog: P,
|
|
412
|
+
showModuleBrowserModal: ae,
|
|
413
|
+
saveModulePreSelectedBlockId: F,
|
|
409
414
|
onSaveHook: f,
|
|
410
|
-
initialize:
|
|
411
|
-
destroy:
|
|
412
|
-
setThemeOverrides:
|
|
413
|
-
setUiTheme:
|
|
414
|
-
openCommentsForBlock:
|
|
415
|
+
initialize: ue,
|
|
416
|
+
destroy: H,
|
|
417
|
+
setThemeOverrides: V,
|
|
418
|
+
setUiTheme: le,
|
|
419
|
+
openCommentsForBlock: B
|
|
415
420
|
};
|
|
416
421
|
}
|
|
417
422
|
//#endregion
|
|
418
423
|
//#region src/utils/preRenderCustomBlocks.ts
|
|
419
|
-
async function
|
|
424
|
+
async function Je(e, t) {
|
|
420
425
|
let n = async (e) => {
|
|
421
|
-
if (
|
|
426
|
+
if (A(e)) {
|
|
422
427
|
let n = e;
|
|
423
428
|
try {
|
|
424
429
|
n.renderedHtml = await t.renderCustomBlock(n);
|
|
@@ -435,10 +440,10 @@ async function qe(e, t) {
|
|
|
435
440
|
}
|
|
436
441
|
//#endregion
|
|
437
442
|
//#region src/cloud/composables/useCloudLifecycle.ts
|
|
438
|
-
function
|
|
443
|
+
function Ye(e) {
|
|
439
444
|
let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
|
|
440
445
|
function u() {
|
|
441
|
-
return
|
|
446
|
+
return Ie(i.config.value.websocket);
|
|
442
447
|
}
|
|
443
448
|
async function d(e) {
|
|
444
449
|
let i = await n.create(e);
|
|
@@ -451,7 +456,7 @@ function Je(e) {
|
|
|
451
456
|
async function p() {
|
|
452
457
|
c.isSaveExporting.value = !0, c.saveStatus.value = "idle";
|
|
453
458
|
try {
|
|
454
|
-
if (await
|
|
459
|
+
if (await Je(n.content.value, o.registry), l()) throw Error("Component unmounted during save");
|
|
455
460
|
let e = await n.save();
|
|
456
461
|
if (l()) throw Error("Component unmounted during save");
|
|
457
462
|
a.initSnapshotHistory(), a.snapshotHistoryInstance.value?.loadSnapshots();
|
|
@@ -478,7 +483,7 @@ function Je(e) {
|
|
|
478
483
|
}
|
|
479
484
|
//#endregion
|
|
480
485
|
//#region src/cloud/composables/useCloudSaveGate.ts
|
|
481
|
-
function
|
|
486
|
+
function Xe(e) {
|
|
482
487
|
let t = h(!1), n = null, r = S(() => e.planConfig.value?.accessibility?.blockOnError === !0), i = S(() => r.value ? e.issues.value.filter((e) => e.severity === "error") : []), a = S(() => i.value.length > 0);
|
|
483
488
|
async function o(e) {
|
|
484
489
|
return a.value ? (n = e, t.value = !0, !1) : (await e(), !0);
|
|
@@ -501,7 +506,7 @@ function Ye(e) {
|
|
|
501
506
|
}
|
|
502
507
|
//#endregion
|
|
503
508
|
//#region src/cloud/components/CloudSaveGateModal.vue?vue&type=script&setup=true&lang.ts
|
|
504
|
-
var
|
|
509
|
+
var Ze = ["aria-label"], Qe = { 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)]" }, $e = { class: "tpl:flex tpl:items-center tpl:gap-2" }, et = { class: "tpl:m-0 tpl:text-base tpl:font-semibold tpl:text-[var(--tpl-text)]" }, tt = { class: "tpl:m-0 tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, nt = { 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" }, rt = { class: "tpl:text-xs tpl:text-[var(--tpl-text)]" }, it = { class: "tpl:font-mono tpl:text-[10px] tpl:text-[var(--tpl-text-dim)]" }, at = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, ot = /* @__PURE__ */ t({
|
|
505
510
|
__name: "CloudSaveGateModal",
|
|
506
511
|
props: {
|
|
507
512
|
open: { type: Boolean },
|
|
@@ -523,18 +528,18 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
523
528
|
"aria-label": w(o).saveGate.title,
|
|
524
529
|
class: "tpl:fixed tpl:inset-0 tpl:z-50 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/40 tpl:p-6",
|
|
525
530
|
onClick: s[2] ||= m((e) => i("cancel"), ["self"])
|
|
526
|
-
}, [v("div",
|
|
527
|
-
v("header",
|
|
531
|
+
}, [v("div", Qe, [
|
|
532
|
+
v("header", $e, [D(w(we), {
|
|
528
533
|
size: 18,
|
|
529
534
|
"stroke-width": 2,
|
|
530
535
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
531
|
-
}), v("h2",
|
|
532
|
-
v("p",
|
|
533
|
-
v("ul",
|
|
536
|
+
}), v("h2", et, r(w(o).saveGate.title), 1)]),
|
|
537
|
+
v("p", tt, r(w(o).saveGate.body), 1),
|
|
538
|
+
v("ul", nt, [(a(!0), E(g, null, n(e.issues, (e) => (a(), E("li", {
|
|
534
539
|
key: `${e.ruleId}-${e.blockId ?? "template"}`,
|
|
535
540
|
class: "tpl:flex tpl:flex-col tpl:gap-0.5 tpl:rounded tpl:px-2 tpl:py-1.5"
|
|
536
|
-
}, [v("span",
|
|
537
|
-
v("footer",
|
|
541
|
+
}, [v("span", rt, r(e.message), 1), v("span", it, r(e.ruleId), 1)]))), 128))]),
|
|
542
|
+
v("footer", at, [v("button", {
|
|
538
543
|
type: "button",
|
|
539
544
|
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)]",
|
|
540
545
|
onClick: s[0] ||= (e) => i("cancel")
|
|
@@ -543,11 +548,11 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
543
548
|
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",
|
|
544
549
|
onClick: s[1] ||= (e) => i("confirm")
|
|
545
550
|
}, r(w(o).saveGate.confirm), 1)])
|
|
546
|
-
])], 8,
|
|
551
|
+
])], 8, Ze)) : f("", !0)]),
|
|
547
552
|
_: 1
|
|
548
553
|
}));
|
|
549
554
|
}
|
|
550
|
-
}),
|
|
555
|
+
}), st = {
|
|
551
556
|
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",
|
|
552
557
|
style: {
|
|
553
558
|
"background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)",
|
|
@@ -556,24 +561,24 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
556
561
|
"box-shadow": "var(--tpl-shadow-md)",
|
|
557
562
|
"border-bottom": "1px solid var(--tpl-border)"
|
|
558
563
|
}
|
|
559
|
-
},
|
|
564
|
+
}, ct = { class: "tpl-header-left tpl:flex tpl:min-w-[200px] tpl:items-center tpl:gap-3" }, lt = {
|
|
560
565
|
key: 0,
|
|
561
566
|
class: "tpl:text-xs tpl:opacity-60 tpl:text-[var(--tpl-text-muted)]"
|
|
562
|
-
},
|
|
567
|
+
}, ut = { class: "tpl-header-center tpl:flex tpl:items-center tpl:justify-center tpl:gap-10" }, dt = { class: "tpl-header-right tpl:flex tpl:min-w-[200px] tpl:items-center tpl:justify-end tpl:gap-3" }, ft = ["data-tooltip"], pt = {
|
|
563
568
|
key: 1,
|
|
564
569
|
"aria-live": "polite",
|
|
565
570
|
class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-success)]"
|
|
566
|
-
},
|
|
571
|
+
}, mt = {
|
|
567
572
|
key: 2,
|
|
568
573
|
"aria-live": "polite",
|
|
569
574
|
class: "tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-text-muted)]"
|
|
570
|
-
},
|
|
575
|
+
}, ht = ["aria-label", "aria-expanded"], gt = {
|
|
571
576
|
key: 0,
|
|
572
577
|
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)]"
|
|
573
|
-
},
|
|
578
|
+
}, _t = ["aria-expanded"], vt = {
|
|
574
579
|
key: 0,
|
|
575
580
|
class: "tpl:absolute tpl:right-0 tpl:top-full tpl:z-50 tpl:mt-1 tpl:origin-top-right"
|
|
576
|
-
},
|
|
581
|
+
}, yt = ["disabled"], bt = ["disabled"], xt = /* @__PURE__ */ t({
|
|
577
582
|
__name: "CloudHeader",
|
|
578
583
|
props: {
|
|
579
584
|
editor: {},
|
|
@@ -591,23 +596,23 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
591
596
|
},
|
|
592
597
|
emits: ["save"],
|
|
593
598
|
setup(t) {
|
|
594
|
-
let n = s(() => import("./CollaboratorBar-
|
|
595
|
-
return (s, d) => (a(), E("header",
|
|
596
|
-
v("div",
|
|
599
|
+
let n = s(() => import("./CollaboratorBar-NaaZTjbs.js")), i = s(() => import("./SnapshotHistory-Csg1_jXi.js")), o = s(() => import("./AiFeatureMenu-BipxcGap.js")), { t: l, format: u } = X();
|
|
600
|
+
return (s, d) => (a(), E("header", st, [
|
|
601
|
+
v("div", ct, [t.featureFlags.templateLimit.value === null ? f("", !0) : (a(), E("span", lt, r(w(u)(w(l).header.templatesUsed, {
|
|
597
602
|
used: t.featureFlags.templateCount.value,
|
|
598
603
|
max: t.featureFlags.templateLimit.value
|
|
599
604
|
})), 1))]),
|
|
600
|
-
v("div",
|
|
601
|
-
D(
|
|
602
|
-
D(
|
|
605
|
+
v("div", ut, [
|
|
606
|
+
D(U, { "on-before-undo": t.onBeforeHistoryUndo }, null, 8, ["on-before-undo"]),
|
|
607
|
+
D(be, {
|
|
603
608
|
viewport: t.editor.state.viewport,
|
|
604
609
|
onChange: t.editor.setViewport
|
|
605
610
|
}, null, 8, ["viewport", "onChange"]),
|
|
606
|
-
D(
|
|
611
|
+
D(H, {
|
|
607
612
|
"dark-mode": t.editor.state.darkMode,
|
|
608
613
|
onChange: t.editor.setDarkMode
|
|
609
614
|
}, null, 8, ["dark-mode", "onChange"]),
|
|
610
|
-
D(
|
|
615
|
+
D(G, {
|
|
611
616
|
"preview-mode": t.editor.state.previewMode,
|
|
612
617
|
onChange: t.editor.setPreviewMode
|
|
613
618
|
}, null, 8, ["preview-mode", "onChange"]),
|
|
@@ -631,19 +636,19 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
631
636
|
"onNavigate"
|
|
632
637
|
])) : f("", !0)
|
|
633
638
|
]),
|
|
634
|
-
v("div",
|
|
639
|
+
v("div", dt, [
|
|
635
640
|
t.featureFlags.saveStatus.value === "error" ? (a(), E("div", {
|
|
636
641
|
key: 0,
|
|
637
642
|
"aria-live": "assertive",
|
|
638
643
|
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
639
644
|
"data-tooltip": t.featureFlags.saveErrorMessage.value
|
|
640
|
-
}, [D(w(
|
|
645
|
+
}, [D(w(q), {
|
|
641
646
|
size: 12,
|
|
642
647
|
"stroke-width": 2.5
|
|
643
|
-
}), p(" " + r(w(l).header.saveFailed), 1)], 8,
|
|
648
|
+
}), p(" " + r(w(l).header.saveFailed), 1)], 8, ft)) : t.featureFlags.saveStatus.value === "saved" ? (a(), E("div", pt, [D(w(K), {
|
|
644
649
|
size: 12,
|
|
645
650
|
"stroke-width": 2.5
|
|
646
|
-
}), p(" " + r(w(l).header.saved), 1)])) : t.editor.state.isDirty ? (a(), E("div",
|
|
651
|
+
}), p(" " + r(w(l).header.saved), 1)])) : t.editor.state.isDirty ? (a(), E("div", mt, [d[4] ||= v("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), p(" " + r(w(l).header.unsaved), 1)])) : f("", !0),
|
|
647
652
|
t.commentsInstance.isEnabled.value && t.featureFlags.hasTemplateSaved.value ? (a(), E("button", {
|
|
648
653
|
key: 3,
|
|
649
654
|
"aria-label": t.commentsInstance.unresolvedCount.value > 0 ? `${w(l).comments.button} (${t.commentsInstance.unresolvedCount.value})` : w(l).comments.button,
|
|
@@ -661,8 +666,8 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
661
666
|
"stroke-width": 2
|
|
662
667
|
}),
|
|
663
668
|
p(" " + r(w(l).comments.button) + " ", 1),
|
|
664
|
-
t.commentsInstance.unresolvedCount.value > 0 && !t.panelState.commentsOpen.value ? (a(), E("span",
|
|
665
|
-
], 14,
|
|
669
|
+
t.commentsInstance.unresolvedCount.value > 0 && !t.panelState.commentsOpen.value ? (a(), E("span", gt, r(t.commentsInstance.unresolvedCount.value), 1)) : f("", !0)
|
|
670
|
+
], 14, ht)) : f("", !0),
|
|
666
671
|
t.featureFlags.canUseAiGeneration.value && t.featureFlags.hasTemplateSaved.value ? (a(), E("div", {
|
|
667
672
|
key: 4,
|
|
668
673
|
ref: (e) => t.panelState.aiMenuRef.value = e,
|
|
@@ -671,11 +676,11 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
671
676
|
"aria-expanded": t.panelState.aiMenuOpen.value,
|
|
672
677
|
class: e(["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", t.panelState.aiButtonActive.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
|
|
673
678
|
onClick: d[1] ||= m((...e) => t.panelState.toggleAiMenu && t.panelState.toggleAiMenu(...e), ["stop"])
|
|
674
|
-
}, [D(w(
|
|
679
|
+
}, [D(w(Ce), {
|
|
675
680
|
size: 16,
|
|
676
681
|
"stroke-width": 2,
|
|
677
682
|
class: "tpl-ai-btn-icon"
|
|
678
|
-
}), p(" " + r(w(l).aiChat.button), 1)], 10,
|
|
683
|
+
}), p(" " + r(w(l).aiChat.button), 1)], 10, _t), D(T, {
|
|
679
684
|
"enter-active-class": "tpl:transition-all tpl:duration-150 tpl:ease-out",
|
|
680
685
|
"enter-from-class": "tpl:scale-95 tpl:opacity-0",
|
|
681
686
|
"enter-to-class": "tpl:scale-100 tpl:opacity-100",
|
|
@@ -683,7 +688,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
683
688
|
"leave-from-class": "tpl:scale-100 tpl:opacity-100",
|
|
684
689
|
"leave-to-class": "tpl:scale-95 tpl:opacity-0"
|
|
685
690
|
}, {
|
|
686
|
-
default: c(() => [t.panelState.aiMenuOpen.value ? (a(), E("div",
|
|
691
|
+
default: c(() => [t.panelState.aiMenuOpen.value ? (a(), E("div", vt, [D(w(o), {
|
|
687
692
|
"active-feature": t.panelState.activeAiFeature.value,
|
|
688
693
|
onSelect: t.panelState.handleAiFeatureSelect
|
|
689
694
|
}, null, 8, ["active-feature", "onSelect"])])) : f("", !0)]),
|
|
@@ -699,16 +704,16 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
699
704
|
},
|
|
700
705
|
disabled: t.testEmail.isSending.value || !t.featureFlags.hasTemplateSaved.value,
|
|
701
706
|
onClick: d[2] ||= (e) => t.panelState.testEmailModalOpen.value = !0
|
|
702
|
-
}, [t.testEmail.isSending.value ? (a(), _(w(
|
|
707
|
+
}, [t.testEmail.isSending.value ? (a(), _(w(Se), {
|
|
703
708
|
key: 1,
|
|
704
709
|
class: "tpl-spinner",
|
|
705
710
|
size: 16,
|
|
706
711
|
"stroke-width": 2
|
|
707
|
-
})) : (a(), _(w(
|
|
712
|
+
})) : (a(), _(w(Y), {
|
|
708
713
|
key: 0,
|
|
709
714
|
size: 16,
|
|
710
715
|
"stroke-width": 2
|
|
711
|
-
})), p(" " + r(w(l).testEmail.button), 1)], 10,
|
|
716
|
+
})), p(" " + r(w(l).testEmail.button), 1)], 10, yt)) : f("", !0),
|
|
712
717
|
v("button", {
|
|
713
718
|
class: e(w(Z)),
|
|
714
719
|
style: {
|
|
@@ -718,20 +723,20 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
718
723
|
},
|
|
719
724
|
disabled: t.isSaveDisabled,
|
|
720
725
|
onClick: d[3] ||= (e) => s.$emit("save")
|
|
721
|
-
}, [t.isSaving ? (a(), _(w(
|
|
726
|
+
}, [t.isSaving ? (a(), _(w(Se), {
|
|
722
727
|
key: 1,
|
|
723
728
|
class: "tpl-spinner",
|
|
724
729
|
size: 16,
|
|
725
730
|
"stroke-width": 2
|
|
726
|
-
})) : (a(), _(w(
|
|
731
|
+
})) : (a(), _(w(Ve), {
|
|
727
732
|
key: 0,
|
|
728
733
|
size: 16,
|
|
729
734
|
"stroke-width": 2
|
|
730
|
-
})), p(" " + r(t.isSaving ? w(l).header.saving : w(l).header.save), 1)], 10,
|
|
735
|
+
})), p(" " + r(t.isSaving ? w(l).header.saving : w(l).header.save), 1)], 10, bt)
|
|
731
736
|
])
|
|
732
737
|
]));
|
|
733
738
|
}
|
|
734
|
-
}),
|
|
739
|
+
}), St = /* @__PURE__ */ t({
|
|
735
740
|
__name: "CloudPanels",
|
|
736
741
|
props: {
|
|
737
742
|
config: {},
|
|
@@ -754,21 +759,25 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
754
759
|
"module-insert"
|
|
755
760
|
],
|
|
756
761
|
setup(e, { expose: t, emit: n }) {
|
|
757
|
-
let r = s(() => import("./AiChatSidebar-
|
|
758
|
-
function v(e
|
|
762
|
+
let r = s(() => import("./AiChatSidebar-Dt5pvG5t.js")), i = s(() => import("./CommentsSidebar-DE6ZsM4D.js")), o = s(() => import("./DesignReferenceSidebar-CZg97bbj.js")), c = s(() => import("./TemplateScoringPanel-CS7o62zS.js")), l = s(() => import("./TestEmailModal-m3okLbJz.js")), u = s(() => import("./SaveModuleDialog-DLZa3m3O.js")), d = s(() => import("./ModuleBrowserModal-D2EVdexc.js")), p = s(async () => (await import("@aswin.dev/media-library")).MediaLibraryModal), m = e;
|
|
763
|
+
function v(e) {
|
|
764
|
+
e === void 0 || !m.editor.content.value.settings.popup || m.editor.updateSettings({ width: e });
|
|
765
|
+
}
|
|
766
|
+
let y = n;
|
|
767
|
+
function b(e, t, n) {
|
|
759
768
|
t.history.record(), n.setContent(e), t.conditionPreview.reset();
|
|
760
769
|
}
|
|
761
|
-
function
|
|
762
|
-
|
|
770
|
+
function x(e, t) {
|
|
771
|
+
y("module-insert", e, t);
|
|
763
772
|
}
|
|
764
|
-
let
|
|
765
|
-
function
|
|
766
|
-
|
|
773
|
+
let S = h(null);
|
|
774
|
+
function C(e) {
|
|
775
|
+
S.value?.filterByBlock(e);
|
|
767
776
|
}
|
|
768
|
-
return t({ filterCommentsByBlock:
|
|
777
|
+
return t({ filterCommentsByBlock: C }), (t, n) => (a(), E(g, null, [
|
|
769
778
|
D(w(r), {
|
|
770
779
|
visible: e.panelState.aiChatOpen.value,
|
|
771
|
-
"on-apply": (t) =>
|
|
780
|
+
"on-apply": (t) => b(t, e.core, e.editor),
|
|
772
781
|
onClose: n[0] ||= (t) => e.panelState.aiChatOpen.value = !1
|
|
773
782
|
}, null, 8, ["visible", "on-apply"]),
|
|
774
783
|
D(w(c), {
|
|
@@ -779,11 +788,11 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
779
788
|
visible: e.panelState.designReferenceOpen.value,
|
|
780
789
|
"has-existing-blocks": e.editor.content.value.blocks.length > 0,
|
|
781
790
|
onClose: n[2] ||= (t) => e.panelState.designReferenceOpen.value = !1,
|
|
782
|
-
onApply: n[3] ||= (t) =>
|
|
791
|
+
onApply: n[3] ||= (t) => b(t, e.core, e.editor)
|
|
783
792
|
}, null, 8, ["visible", "has-existing-blocks"]),
|
|
784
793
|
D(w(i), {
|
|
785
794
|
ref_key: "commentsSidebar",
|
|
786
|
-
ref:
|
|
795
|
+
ref: S,
|
|
787
796
|
visible: e.panelState.commentsOpen.value,
|
|
788
797
|
onClose: n[4] ||= (t) => e.panelState.commentsOpen.value = !1
|
|
789
798
|
}, null, 8, ["visible"]),
|
|
@@ -792,7 +801,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
792
801
|
"allowed-emails": e.testEmail.allowedEmails.value,
|
|
793
802
|
"is-sending": e.testEmail.isSending.value,
|
|
794
803
|
error: e.testEmail.error.value,
|
|
795
|
-
onSend: n[5] ||= (e) =>
|
|
804
|
+
onSend: n[5] ||= (e) => y("send-test-email", e),
|
|
796
805
|
onClose: n[6] ||= (t) => e.panelState.testEmailModalOpen.value = !1
|
|
797
806
|
}, null, 8, [
|
|
798
807
|
"visible",
|
|
@@ -805,20 +814,21 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
805
814
|
visible: e.showSaveModuleDialog,
|
|
806
815
|
"pre-selected-block-id": e.saveModulePreSelectedBlockId,
|
|
807
816
|
onClose: n[7] ||= (e) => {
|
|
808
|
-
|
|
817
|
+
y("update:showSaveModuleDialog", !1), y("update:saveModulePreSelectedBlockId", null);
|
|
809
818
|
},
|
|
810
819
|
onSaved: n[8] ||= (t) => e.savedModulesHeadless.loadModules()
|
|
811
820
|
}, null, 8, ["visible", "pre-selected-block-id"])) : f("", !0),
|
|
812
821
|
e.planConfigInstance.hasFeature("saved_modules") && e.config.modules !== !1 ? (a(), _(w(d), {
|
|
813
822
|
key: 1,
|
|
814
823
|
visible: e.showModuleBrowserModal,
|
|
815
|
-
onClose: n[9] ||= (e) =>
|
|
816
|
-
onInsert:
|
|
824
|
+
onClose: n[9] ||= (e) => y("update:showModuleBrowserModal", !1),
|
|
825
|
+
onInsert: x
|
|
817
826
|
}, null, 8, ["visible"])) : f("", !0),
|
|
818
827
|
D(w(p), {
|
|
819
828
|
visible: e.panelState.mediaLibraryOpen.value,
|
|
820
829
|
accept: e.panelState.mediaLibraryAccept.value,
|
|
821
830
|
onSelect: e.mediaLib.handleMediaSelect,
|
|
831
|
+
onTemplateWidthPreview: v,
|
|
822
832
|
onClose: e.mediaLib.handleMediaLibraryClose
|
|
823
833
|
}, null, 8, [
|
|
824
834
|
"visible",
|
|
@@ -828,23 +838,23 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
828
838
|
])
|
|
829
839
|
], 64));
|
|
830
840
|
}
|
|
831
|
-
}),
|
|
841
|
+
}), Ct = {
|
|
832
842
|
key: 0,
|
|
833
843
|
class: "tpl-loading tpl:absolute tpl:inset-0 tpl:z-overlay tpl:flex tpl:flex-col tpl:bg-[var(--tpl-bg)]"
|
|
834
|
-
},
|
|
844
|
+
}, wt = { class: "tpl:flex tpl:flex-1 tpl:overflow-hidden" }, Tt = { 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)]" }, Et = /* @__PURE__ */ t({
|
|
835
845
|
__name: "CloudLoadingOverlay",
|
|
836
846
|
props: { visible: { type: Boolean } },
|
|
837
847
|
setup(e) {
|
|
838
|
-
return (t, r) => e.visible ? (a(), E("div",
|
|
848
|
+
return (t, r) => e.visible ? (a(), E("div", Ct, [r[1] ||= O("<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), v("div", wt, [v("div", Tt, [(a(), E(g, null, n(5, (e) => v("div", {
|
|
839
849
|
key: e,
|
|
840
850
|
class: "tpl-shimmer tpl:size-7 tpl:rounded-[var(--tpl-radius-sm)]"
|
|
841
851
|
})), 64))]), r[0] ||= O("<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)])])) : f("", !0);
|
|
842
852
|
}
|
|
843
|
-
}),
|
|
853
|
+
}), Dt = {
|
|
844
854
|
key: 0,
|
|
845
855
|
role: "alert",
|
|
846
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)]"
|
|
847
|
-
},
|
|
857
|
+
}, Ot = { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-[var(--tpl-danger-light)]" }, kt = { class: "tpl:flex tpl:flex-col tpl:items-center tpl:gap-2 tpl:text-center" }, At = { class: "tpl:text-lg tpl:font-semibold tpl:text-[var(--tpl-text)]" }, jt = { class: "tpl:max-w-md tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, Mt = /* @__PURE__ */ t({
|
|
848
858
|
__name: "CloudErrorOverlay",
|
|
849
859
|
props: {
|
|
850
860
|
error: {},
|
|
@@ -859,13 +869,13 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
859
869
|
function s(e) {
|
|
860
870
|
return "isNotFound" in e && !!e.isNotFound;
|
|
861
871
|
}
|
|
862
|
-
return (t, c) => e.visible && e.error ? (a(), E("div",
|
|
863
|
-
v("div",
|
|
872
|
+
return (t, c) => e.visible && e.error ? (a(), E("div", Dt, [
|
|
873
|
+
v("div", Ot, [D(w(q), {
|
|
864
874
|
size: 32,
|
|
865
875
|
"stroke-width": 1.5,
|
|
866
876
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
867
877
|
})]),
|
|
868
|
-
v("div",
|
|
878
|
+
v("div", kt, [v("h2", At, r(w(i).error.title), 1), v("p", jt, r(o(e.error)), 1)]),
|
|
869
879
|
s(e.error) ? f("", !0) : (a(), E("button", {
|
|
870
880
|
key: 0,
|
|
871
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)]",
|
|
@@ -873,20 +883,20 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
873
883
|
}, r(w(i).error.retry), 1))
|
|
874
884
|
])) : f("", !0);
|
|
875
885
|
}
|
|
876
|
-
}),
|
|
886
|
+
}), Nt = {
|
|
877
887
|
key: 0,
|
|
878
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)]"
|
|
879
|
-
},
|
|
889
|
+
}, Pt = { class: "tpl:flex tpl:items-center tpl:gap-2 tpl:text-sm tpl:text-[var(--tpl-text)]" }, Ft = { class: "tpl:flex tpl:items-center tpl:gap-2" }, It = /* @__PURE__ */ t({
|
|
880
890
|
__name: "SnapshotPreviewBanner",
|
|
881
891
|
props: { visible: { type: Boolean } },
|
|
882
892
|
emits: ["cancel", "confirm"],
|
|
883
893
|
setup(e, { emit: t }) {
|
|
884
894
|
let n = t, { t: i } = X();
|
|
885
|
-
return (t, o) => e.visible ? (a(), E("div",
|
|
895
|
+
return (t, o) => e.visible ? (a(), E("div", Nt, [v("div", Pt, [D(w(xe), {
|
|
886
896
|
size: 18,
|
|
887
897
|
"stroke-width": 2,
|
|
888
898
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
889
|
-
}), v("span", null, r(w(i).snapshotPreview.message), 1)]), v("div",
|
|
899
|
+
}), v("span", null, r(w(i).snapshotPreview.message), 1)]), v("div", Ft, [v("button", {
|
|
890
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)]",
|
|
891
901
|
style: { "background-color": "transparent" },
|
|
892
902
|
onClick: o[0] ||= (e) => n("cancel")
|
|
@@ -895,7 +905,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
895
905
|
onClick: o[1] ||= (e) => n("confirm")
|
|
896
906
|
}, r(w(i).snapshotPreview.restore), 1)])])) : f("", !0);
|
|
897
907
|
}
|
|
898
|
-
}),
|
|
908
|
+
}), Lt = {
|
|
899
909
|
key: 0,
|
|
900
910
|
role: "status",
|
|
901
911
|
"aria-live": "polite",
|
|
@@ -905,14 +915,17 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
905
915
|
color: "var(--tpl-text)",
|
|
906
916
|
border: "1px solid var(--tpl-warning)"
|
|
907
917
|
}
|
|
908
|
-
},
|
|
918
|
+
}, Rt = /* @__PURE__ */ t({
|
|
909
919
|
__name: "CollabUndoToast",
|
|
910
920
|
props: { visible: { type: Boolean } },
|
|
911
921
|
setup(e) {
|
|
912
|
-
let { t } =
|
|
913
|
-
return (n, i) => e.visible ? (a(), E("div",
|
|
922
|
+
let { t } = B();
|
|
923
|
+
return (n, i) => e.visible ? (a(), E("div", Lt, r(w(t).history.collabWarning), 1)) : f("", !0);
|
|
914
924
|
}
|
|
915
|
-
}),
|
|
925
|
+
}), zt = ["data-tpl-theme"], Bt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Vt = {
|
|
926
|
+
key: 0,
|
|
927
|
+
class: "tpl-popup-browser-frame tpl:flex tpl:w-full tpl:flex-col tpl:overflow-hidden tpl:rounded-xl tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-xl)]"
|
|
928
|
+
}, Ht = ["aria-label"], Ut = /* @__PURE__ */ Te(/* @__PURE__ */ t({
|
|
916
929
|
__name: "CloudEditor",
|
|
917
930
|
props: {
|
|
918
931
|
config: {},
|
|
@@ -923,88 +936,88 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
923
936
|
emits: ["ready"],
|
|
924
937
|
setup(t, { expose: n, emit: s }) {
|
|
925
938
|
let d = t;
|
|
926
|
-
o(
|
|
927
|
-
let m = s, C = h(null),
|
|
939
|
+
o(ae, d.cloudTranslations);
|
|
940
|
+
let m = s, C = h(null), k = h(null), A = qe({
|
|
928
941
|
config: d.config,
|
|
929
942
|
translations: d.translations,
|
|
930
943
|
fontsManager: d.fontsManager,
|
|
931
944
|
emit: m,
|
|
932
945
|
getCommentsSidebar: () => C.value ? { filterByBlock: C.value.filterCommentsByBlock } : null
|
|
933
|
-
}), { isInitializing:
|
|
934
|
-
o(
|
|
935
|
-
let
|
|
936
|
-
l(() => [
|
|
937
|
-
if (!e || !
|
|
938
|
-
let t =
|
|
939
|
-
|
|
946
|
+
}), { isInitializing: M, isAuthReady: ne, initError: re, planConfigInstance: P, websocket: F, collaboration: I, isCollaborationEnabled: ie, editor: L, core: R, featureFlags: z, mediaLib: oe, exporter: se, testEmail: B, commentsInstance: V, savedModulesHeadless: H, panelState: U, snapshotPreview: W, collabWarning: G, showSaveModuleDialog: be, showModuleBrowserModal: K, saveModulePreSelectedBlockId: q, setThemeOverrides: xe, setUiTheme: Se } = A, J = h("blocks");
|
|
947
|
+
o(ce, J);
|
|
948
|
+
let Y = S(() => N(d.config.editorType) === "popup"), Ce = S(() => Y.value && J.value === "displayRules"), we = S(() => Y.value && J.value === "schedule"), Te = S(() => J.value === "design"), X = S(() => Y.value && (Ce.value || we.value || Te.value)), Z = S(() => Ce.value || we.value);
|
|
949
|
+
l(() => [ne.value, L.content.value.settings.popup], ([e]) => {
|
|
950
|
+
if (!e || !Y.value || L.content.value.settings.popup) return;
|
|
951
|
+
let t = ee();
|
|
952
|
+
L.updateSettings({
|
|
940
953
|
popup: t,
|
|
941
|
-
width:
|
|
954
|
+
width: j[t.design.sizePreset]
|
|
942
955
|
});
|
|
943
956
|
}, { immediate: !0 });
|
|
944
|
-
async function
|
|
957
|
+
async function Ee(e) {
|
|
945
958
|
try {
|
|
946
|
-
await
|
|
959
|
+
await B.sendTestEmail(e), U.testEmailModalOpen.value = !1;
|
|
947
960
|
} catch {}
|
|
948
961
|
}
|
|
949
|
-
function
|
|
962
|
+
function De(e, t) {
|
|
950
963
|
for (let n = 0; n < e.content.length; n++) {
|
|
951
|
-
let r =
|
|
952
|
-
|
|
964
|
+
let r = te(e.content[n]), i = t === void 0 ? void 0 : t + n;
|
|
965
|
+
L.addBlock(r, void 0, void 0, i);
|
|
953
966
|
}
|
|
954
967
|
K.value = !1;
|
|
955
968
|
}
|
|
956
|
-
let Q =
|
|
969
|
+
let Q = Ye({
|
|
957
970
|
config: d.config,
|
|
958
|
-
editor:
|
|
959
|
-
websocket:
|
|
960
|
-
planConfigInstance:
|
|
971
|
+
editor: L,
|
|
972
|
+
websocket: F,
|
|
973
|
+
planConfigInstance: P,
|
|
961
974
|
snapshotPreview: W,
|
|
962
|
-
core:
|
|
963
|
-
exporter:
|
|
964
|
-
featureFlags:
|
|
965
|
-
isDestroyed:
|
|
966
|
-
}),
|
|
967
|
-
if (
|
|
975
|
+
core: R,
|
|
976
|
+
exporter: se,
|
|
977
|
+
featureFlags: z,
|
|
978
|
+
isDestroyed: A.isDestroyed
|
|
979
|
+
}), Oe = S(() => {
|
|
980
|
+
if (L.state.previewMode) return ["tpl:left-0", "tpl:right-0"];
|
|
968
981
|
let e = U.rightPanelOpen.value ? "tpl:right-[680px]" : "tpl:right-[320px]";
|
|
969
|
-
if (!
|
|
982
|
+
if (!Y.value) return ["tpl:left-12", e];
|
|
970
983
|
let t;
|
|
971
|
-
t =
|
|
972
|
-
let n =
|
|
984
|
+
t = J.value === "blocks" ? "tpl:left-[272px]" : Te.value ? "tpl:left-[392px]" : "tpl:left-[72px]";
|
|
985
|
+
let n = X.value ? "tpl:right-0" : e;
|
|
973
986
|
return [t, n];
|
|
974
|
-
}), $ =
|
|
975
|
-
issues:
|
|
976
|
-
planConfig:
|
|
987
|
+
}), $ = Xe({
|
|
988
|
+
issues: R.accessibilityLint ? R.accessibilityLint.issues : h([]),
|
|
989
|
+
planConfig: P.config
|
|
977
990
|
});
|
|
978
|
-
async function
|
|
991
|
+
async function ke() {
|
|
979
992
|
await $.tryRunSave(() => Q.saveTemplate().catch((e) => d.config.onError?.(e)));
|
|
980
993
|
}
|
|
981
|
-
return
|
|
982
|
-
|
|
994
|
+
return A.onSaveHook.value = ke, y(() => {
|
|
995
|
+
A.initialize();
|
|
983
996
|
}), i(() => {
|
|
984
|
-
|
|
997
|
+
A.destroy();
|
|
985
998
|
}), n({
|
|
986
|
-
getContent: () =>
|
|
987
|
-
setContent: (e) =>
|
|
988
|
-
setTheme:
|
|
989
|
-
setThemeOverrides:
|
|
999
|
+
getContent: () => L.content.value,
|
|
1000
|
+
setContent: (e) => L.setContent(e),
|
|
1001
|
+
setTheme: Se,
|
|
1002
|
+
setThemeOverrides: xe,
|
|
990
1003
|
undo: () => {
|
|
991
|
-
G.showCollabUndoWarning(),
|
|
1004
|
+
G.showCollabUndoWarning(), R.history.undo();
|
|
992
1005
|
},
|
|
993
|
-
redo: () =>
|
|
994
|
-
canUndo: () =>
|
|
995
|
-
canRedo: () =>
|
|
1006
|
+
redo: () => R.history.redo(),
|
|
1007
|
+
canUndo: () => R.history.canUndo.value,
|
|
1008
|
+
canRedo: () => R.history.canRedo.value,
|
|
996
1009
|
create: Q.createTemplate,
|
|
997
1010
|
load: Q.loadTemplate,
|
|
998
1011
|
save: Q.saveTemplate,
|
|
999
|
-
sendTestEmail:
|
|
1000
|
-
startTour: (e) =>
|
|
1001
|
-
dismissTour: () =>
|
|
1002
|
-
resetTourDismissed: () =>
|
|
1003
|
-
isTourDismissed: () => d.config.tour ?
|
|
1012
|
+
sendTestEmail: B.sendTestEmail,
|
|
1013
|
+
startTour: (e) => k.value?.start(e),
|
|
1014
|
+
dismissTour: () => k.value?.dismiss(),
|
|
1015
|
+
resetTourDismissed: () => pe(d.config.tour),
|
|
1016
|
+
isTourDismissed: () => d.config.tour ? ue(d.config.tour) : !0
|
|
1004
1017
|
}), (n, i) => (a(), E("div", {
|
|
1005
|
-
class: e(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": w(
|
|
1006
|
-
"data-tpl-theme": w(
|
|
1007
|
-
style: b(w(
|
|
1018
|
+
class: e(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": w(L).state.darkMode }]),
|
|
1019
|
+
"data-tpl-theme": w(R).resolvedTheme.value,
|
|
1020
|
+
style: b(w(R).themeStyles.value)
|
|
1008
1021
|
}, [
|
|
1009
1022
|
D(T, {
|
|
1010
1023
|
"enter-active-class": "tpl:transition-opacity tpl:duration-200",
|
|
@@ -1014,7 +1027,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1014
1027
|
"leave-from-class": "tpl:opacity-100",
|
|
1015
1028
|
"leave-to-class": "tpl:opacity-0"
|
|
1016
1029
|
}, {
|
|
1017
|
-
default: c(() => [D(
|
|
1030
|
+
default: c(() => [D(Et, { visible: w(M) || w(L).state.isLoading }, null, 8, ["visible"])]),
|
|
1018
1031
|
_: 1
|
|
1019
1032
|
}),
|
|
1020
1033
|
D(T, {
|
|
@@ -1025,10 +1038,10 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1025
1038
|
"leave-from-class": "tpl:opacity-100",
|
|
1026
1039
|
"leave-to-class": "tpl:opacity-0"
|
|
1027
1040
|
}, {
|
|
1028
|
-
default: c(() => [D(
|
|
1029
|
-
error: w(
|
|
1030
|
-
visible: !!w(
|
|
1031
|
-
onRetry: w(
|
|
1041
|
+
default: c(() => [D(Mt, {
|
|
1042
|
+
error: w(re),
|
|
1043
|
+
visible: !!w(re) && !w(M),
|
|
1044
|
+
onRetry: w(A).initialize
|
|
1032
1045
|
}, null, 8, [
|
|
1033
1046
|
"error",
|
|
1034
1047
|
"visible",
|
|
@@ -1036,20 +1049,20 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1036
1049
|
])]),
|
|
1037
1050
|
_: 1
|
|
1038
1051
|
}),
|
|
1039
|
-
D(
|
|
1040
|
-
editor: w(
|
|
1052
|
+
D(xt, {
|
|
1053
|
+
editor: w(L),
|
|
1041
1054
|
"on-before-history-undo": w(G).showCollabUndoWarning,
|
|
1042
|
-
"feature-flags": w(
|
|
1055
|
+
"feature-flags": w(z),
|
|
1043
1056
|
"panel-state": w(U),
|
|
1044
1057
|
"snapshot-preview": w(W),
|
|
1045
|
-
"comments-instance": w(
|
|
1046
|
-
"test-email": w(
|
|
1047
|
-
websocket: w(
|
|
1048
|
-
collaboration: w(
|
|
1049
|
-
"is-collaboration-enabled": w(
|
|
1050
|
-
"is-saving": w(
|
|
1051
|
-
"is-save-disabled": w(
|
|
1052
|
-
onSave:
|
|
1058
|
+
"comments-instance": w(V),
|
|
1059
|
+
"test-email": w(B),
|
|
1060
|
+
websocket: w(F),
|
|
1061
|
+
collaboration: w(I),
|
|
1062
|
+
"is-collaboration-enabled": w(ie),
|
|
1063
|
+
"is-saving": w(L).state.isSaving || w(z).isSaveExporting.value,
|
|
1064
|
+
"is-save-disabled": w(L).state.isSaving || w(z).isSaveExporting.value || !w(L).state.isDirty,
|
|
1065
|
+
onSave: ke
|
|
1053
1066
|
}, null, 8, [
|
|
1054
1067
|
"editor",
|
|
1055
1068
|
"on-before-history-undo",
|
|
@@ -1064,7 +1077,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1064
1077
|
"is-saving",
|
|
1065
1078
|
"is-save-disabled"
|
|
1066
1079
|
]),
|
|
1067
|
-
D(
|
|
1080
|
+
D(ot, {
|
|
1068
1081
|
open: w($).modalOpen.value,
|
|
1069
1082
|
issues: w($).blockingIssues.value,
|
|
1070
1083
|
onCancel: w($).cancel,
|
|
@@ -1075,7 +1088,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1075
1088
|
"onCancel",
|
|
1076
1089
|
"onConfirm"
|
|
1077
1090
|
]),
|
|
1078
|
-
D(
|
|
1091
|
+
D(It, {
|
|
1079
1092
|
visible: w(W).isPreviewingSnapshot.value,
|
|
1080
1093
|
onCancel: w(W).cancelPreview,
|
|
1081
1094
|
onConfirm: w(W).confirmRestoreSnapshot
|
|
@@ -1092,21 +1105,21 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1092
1105
|
"leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
|
|
1093
1106
|
"leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
|
|
1094
1107
|
}, {
|
|
1095
|
-
default: c(() => [D(
|
|
1108
|
+
default: c(() => [D(Rt, { visible: w(G).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
|
|
1096
1109
|
_: 1
|
|
1097
1110
|
}),
|
|
1098
|
-
u(D(
|
|
1111
|
+
u(D(ge, null, null, 512), [[x, !w(L).state.previewMode]]),
|
|
1099
1112
|
v("div", {
|
|
1100
|
-
class: e(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [...
|
|
1113
|
+
class: e(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [...Oe.value, w(W).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
1101
1114
|
style: b({
|
|
1102
1115
|
transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1103
|
-
backgroundColor:
|
|
1116
|
+
backgroundColor: Z.value ? "var(--tpl-bg)" : "var(--tpl-canvas-bg)"
|
|
1104
1117
|
})
|
|
1105
|
-
}, [
|
|
1118
|
+
}, [Y.value && J.value === "displayRules" ? (a(), _(he, { key: 0 })) : Y.value && J.value === "schedule" ? (a(), _(ye, {
|
|
1106
1119
|
key: 1,
|
|
1107
1120
|
layout: "standalone"
|
|
1108
|
-
})) : (a(), E(g, { key: 2 }, [v("div",
|
|
1109
|
-
default: c(() => [w(
|
|
1121
|
+
})) : (a(), E(g, { key: 2 }, [v("div", Bt, [D(T, { name: "tpl-restore-btn" }, {
|
|
1122
|
+
default: c(() => [w(R).conditionPreview.hasHiddenBlocks.value ? (a(), E("button", {
|
|
1110
1123
|
key: 0,
|
|
1111
1124
|
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",
|
|
1112
1125
|
style: {
|
|
@@ -1115,21 +1128,24 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1115
1128
|
"border-color": "var(--tpl-warning)",
|
|
1116
1129
|
"backdrop-filter": "blur(8px)"
|
|
1117
1130
|
},
|
|
1118
|
-
onClick: i[0] ||= (e) => w(
|
|
1119
|
-
}, [D(w(
|
|
1131
|
+
onClick: i[0] ||= (e) => w(R).conditionPreview.reset()
|
|
1132
|
+
}, [D(w(le), {
|
|
1120
1133
|
size: 13,
|
|
1121
1134
|
"stroke-width": 2
|
|
1122
|
-
}), p(" " + r(w(
|
|
1135
|
+
}), p(" " + r(w(R).t.blockSettings.restoreHiddenBlocks), 1)])) : f("", !0)]),
|
|
1123
1136
|
_: 1
|
|
1124
|
-
})]), v("main",
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1137
|
+
})]), v("main", { class: e(["tpl-main tpl:flex tpl:w-full tpl:flex-col", Y.value ? "tpl:gap-3 tpl:px-4 tpl:pt-4 tpl:pb-6" : "tpl:items-center tpl:gap-3 tpl:p-8"]) }, [D(me, {
|
|
1138
|
+
"preview-mode": w(L).state.previewMode,
|
|
1139
|
+
"multi-page-canvas": t.config.multiPageCanvas ?? !1
|
|
1140
|
+
}, null, 8, ["preview-mode", "multi-page-canvas"]), Y.value ? (a(), E("div", Vt, [i[11] ||= O("<div class=\"tpl-popup-browser-bar tpl:relative tpl:flex tpl:h-9 tpl:items-center tpl:gap-1.5 tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3\" aria-hidden=\"true\" data-v-1d3e3f2d><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#ff5f57;\" data-v-1d3e3f2d></span><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#febc2e;\" data-v-1d3e3f2d></span><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#28c840;\" data-v-1d3e3f2d></span><div class=\"tpl:pointer-events-none tpl:absolute tpl:left-1/2 tpl:top-1/2 tpl:-translate-x-1/2 tpl:-translate-y-1/2 tpl:rounded-md tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-0.5 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:tracking-tight\" data-v-1d3e3f2d> yourstore.com </div></div>", 1), D(fe, {
|
|
1141
|
+
viewport: w(L).state.viewport,
|
|
1142
|
+
content: w(L).content.value,
|
|
1143
|
+
"selected-block-id": w(L).state.selectedBlockId,
|
|
1144
|
+
"dark-mode": w(L).state.darkMode,
|
|
1145
|
+
"preview-mode": w(L).state.previewMode,
|
|
1130
1146
|
"multi-page-canvas": t.config.multiPageCanvas ?? !1,
|
|
1131
|
-
"locked-blocks": w(
|
|
1132
|
-
onSelectBlock: w(
|
|
1147
|
+
"locked-blocks": w(I)?.lockedBlocks.value ?? void 0,
|
|
1148
|
+
onSelectBlock: w(L).selectBlock,
|
|
1133
1149
|
onOpenAiChat: i[1] ||= (e) => w(U).aiChatOpen.value = !0,
|
|
1134
1150
|
onOpenDesignReference: i[2] ||= (e) => w(U).designReferenceOpen.value = !0
|
|
1135
1151
|
}, null, 8, [
|
|
@@ -1141,52 +1157,73 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1141
1157
|
"multi-page-canvas",
|
|
1142
1158
|
"locked-blocks",
|
|
1143
1159
|
"onSelectBlock"
|
|
1144
|
-
])])
|
|
1145
|
-
|
|
1160
|
+
])])) : (a(), _(fe, {
|
|
1161
|
+
key: 1,
|
|
1162
|
+
viewport: w(L).state.viewport,
|
|
1163
|
+
content: w(L).content.value,
|
|
1164
|
+
"selected-block-id": w(L).state.selectedBlockId,
|
|
1165
|
+
"dark-mode": w(L).state.darkMode,
|
|
1166
|
+
"preview-mode": w(L).state.previewMode,
|
|
1167
|
+
"multi-page-canvas": t.config.multiPageCanvas ?? !1,
|
|
1168
|
+
"locked-blocks": w(I)?.lockedBlocks.value ?? void 0,
|
|
1169
|
+
onSelectBlock: w(L).selectBlock,
|
|
1170
|
+
onOpenAiChat: i[3] ||= (e) => w(U).aiChatOpen.value = !0,
|
|
1171
|
+
onOpenDesignReference: i[4] ||= (e) => w(U).designReferenceOpen.value = !0
|
|
1172
|
+
}, null, 8, [
|
|
1173
|
+
"viewport",
|
|
1174
|
+
"content",
|
|
1175
|
+
"selected-block-id",
|
|
1176
|
+
"dark-mode",
|
|
1177
|
+
"preview-mode",
|
|
1178
|
+
"multi-page-canvas",
|
|
1179
|
+
"locked-blocks",
|
|
1180
|
+
"onSelectBlock"
|
|
1181
|
+
]))], 2)], 64))], 6),
|
|
1182
|
+
t.config.branding !== !1 && !w(z).isWhiteLabeled.value ? (a(), _(ve, {
|
|
1146
1183
|
key: 0,
|
|
1147
|
-
"position-class":
|
|
1184
|
+
"position-class": Oe.value
|
|
1148
1185
|
}, null, 8, ["position-class"])) : f("", !0),
|
|
1149
1186
|
v("div", {
|
|
1150
1187
|
class: "tpl-sr-only",
|
|
1151
1188
|
role: "status",
|
|
1152
1189
|
"aria-live": "polite",
|
|
1153
1190
|
"aria-atomic": "true",
|
|
1154
|
-
"aria-label": w(
|
|
1155
|
-
}, r(w(
|
|
1156
|
-
u(D(
|
|
1157
|
-
"selected-block": w(
|
|
1158
|
-
settings: w(
|
|
1191
|
+
"aria-label": w(R).t.landmarks.reorderAnnouncements
|
|
1192
|
+
}, r(w(R).keyboardReorder.announcement.value), 9, Ht),
|
|
1193
|
+
u(D(de, {
|
|
1194
|
+
"selected-block": w(L).selectedBlock.value,
|
|
1195
|
+
settings: w(L).content.value.settings,
|
|
1159
1196
|
"shifted-left": w(U).rightPanelOpen.value,
|
|
1160
|
-
onUpdateBlock: i[
|
|
1161
|
-
onDeleteBlock: i[
|
|
1162
|
-
onDuplicateBlock: i[
|
|
1163
|
-
onUpdateSettings: w(
|
|
1197
|
+
onUpdateBlock: i[5] ||= (e) => w(L).updateBlock(w(L).selectedBlock.value.id, e),
|
|
1198
|
+
onDeleteBlock: i[6] ||= (e) => w(R).blockActions.deleteBlock(w(L).selectedBlock.value.id),
|
|
1199
|
+
onDuplicateBlock: i[7] ||= (e) => w(R).blockActions.duplicateBlock(w(L).selectedBlock.value),
|
|
1200
|
+
onUpdateSettings: w(L).updateSettings
|
|
1164
1201
|
}, null, 8, [
|
|
1165
1202
|
"selected-block",
|
|
1166
1203
|
"settings",
|
|
1167
1204
|
"shifted-left",
|
|
1168
1205
|
"onUpdateSettings"
|
|
1169
|
-
]), [[x, !w(
|
|
1170
|
-
!w(
|
|
1206
|
+
]), [[x, !w(L).state.previewMode && !X.value]]),
|
|
1207
|
+
!w(M) && w(ne) ? (a(), _(St, {
|
|
1171
1208
|
key: 1,
|
|
1172
1209
|
ref_key: "cloudPanelsRef",
|
|
1173
1210
|
ref: C,
|
|
1174
1211
|
config: d.config,
|
|
1175
|
-
editor: w(
|
|
1176
|
-
core: w(
|
|
1212
|
+
editor: w(L),
|
|
1213
|
+
core: w(R),
|
|
1177
1214
|
"panel-state": w(U),
|
|
1178
|
-
"plan-config-instance": w(
|
|
1179
|
-
"test-email": w(
|
|
1180
|
-
"media-lib": w(
|
|
1181
|
-
"saved-modules-headless": w(
|
|
1182
|
-
"show-save-module-dialog": w(
|
|
1183
|
-
"save-module-pre-selected-block-id": w(
|
|
1215
|
+
"plan-config-instance": w(P),
|
|
1216
|
+
"test-email": w(B),
|
|
1217
|
+
"media-lib": w(oe),
|
|
1218
|
+
"saved-modules-headless": w(H),
|
|
1219
|
+
"show-save-module-dialog": w(be),
|
|
1220
|
+
"save-module-pre-selected-block-id": w(q),
|
|
1184
1221
|
"show-module-browser-modal": w(K),
|
|
1185
|
-
"onUpdate:showSaveModuleDialog": i[
|
|
1186
|
-
"onUpdate:saveModulePreSelectedBlockId": i[
|
|
1187
|
-
"onUpdate:showModuleBrowserModal": i[
|
|
1188
|
-
onSendTestEmail:
|
|
1189
|
-
onModuleInsert:
|
|
1222
|
+
"onUpdate:showSaveModuleDialog": i[8] ||= (e) => be.value = e,
|
|
1223
|
+
"onUpdate:saveModulePreSelectedBlockId": i[9] ||= (e) => q.value = e,
|
|
1224
|
+
"onUpdate:showModuleBrowserModal": i[10] ||= (e) => K.value = e,
|
|
1225
|
+
onSendTestEmail: Ee,
|
|
1226
|
+
onModuleInsert: De
|
|
1190
1227
|
}, null, 8, [
|
|
1191
1228
|
"config",
|
|
1192
1229
|
"editor",
|
|
@@ -1200,15 +1237,15 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1200
1237
|
"save-module-pre-selected-block-id",
|
|
1201
1238
|
"show-module-browser-modal"
|
|
1202
1239
|
])) : f("", !0),
|
|
1203
|
-
t.config.tour ? (a(), _(
|
|
1240
|
+
t.config.tour ? (a(), _(_e, {
|
|
1204
1241
|
key: 2,
|
|
1205
1242
|
ref_key: "editorTourRef",
|
|
1206
|
-
ref:
|
|
1243
|
+
ref: k,
|
|
1207
1244
|
"tour-config": t.config.tour,
|
|
1208
|
-
"dark-mode": w(
|
|
1245
|
+
"dark-mode": w(L).state.darkMode
|
|
1209
1246
|
}, null, 8, ["tour-config", "dark-mode"])) : f("", !0)
|
|
1210
|
-
], 14,
|
|
1247
|
+
], 14, zt));
|
|
1211
1248
|
}
|
|
1212
|
-
}), [["__scopeId", "data-v-
|
|
1249
|
+
}), [["__scopeId", "data-v-1d3e3f2d"]]);
|
|
1213
1250
|
//#endregion
|
|
1214
|
-
export {
|
|
1251
|
+
export { Ut as default };
|