@templatical/editor 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-D30WPhbv.js → AiChatSidebar-BMwpZx-6.js} +14 -14
- package/dist/{AiFeatureMenu-B5CJX5zr.js → AiFeatureMenu-xgaIGUCo.js} +8 -8
- package/dist/{BlockIssueBadge-CkB4Yyz2.js → BlockIssueBadge-3kNs6WoD.js} +5 -5
- package/dist/{CloudEditor-nT-R769W.js → CloudEditor-Dm9hiaui.js} +159 -156
- package/dist/{CollaboratorBar-CwhlXODK.js → CollaboratorBar-Cz_evoU4.js} +4 -4
- package/dist/{CommentsSidebar-gpZMMI5w.js → CommentsSidebar-jFZj_CTo.js} +13 -13
- package/dist/{CountdownBlock-BNvuXucv.js → CountdownBlock-S-SCyVye.js} +4 -4
- package/dist/{CountdownToolbar-Dl82DAmI.js → CountdownToolbar-Ckdo-3P-.js} +3 -3
- package/dist/{DesignReferenceSidebar-Bs5AMxVd.js → DesignReferenceSidebar-B9QNPZNV.js} +10 -10
- package/dist/{IssuesPanel-CqQa2BtU.js → IssuesPanel-_E_fbSM8.js} +8 -8
- package/dist/{LoadingTrack-xCOLUR3o.js → LoadingTrack-BZ5KJyZ_.js} +2 -2
- package/dist/{ModuleBrowserModal-BWWgF0LC.js → ModuleBrowserModal-BB22urqi.js} +10 -10
- package/dist/{ModulePreviewCanvas-D7Tk5HOt.js → ModulePreviewCanvas-CH5OdXv8.js} +3 -3
- package/dist/{NumberWithSuffix-DVy5HxMi.js → NumberWithSuffix-BHDXHMpo.js} +3 -3
- package/dist/{ParagraphEditor-DVSGdMOo.js → ParagraphEditor-BmY7LLgN.js} +26 -26
- package/dist/{RichTextEditorContent-DN-fRjMa.js → RichTextEditorContent-COijbaWp.js} +8 -8
- package/dist/{SaveModuleDialog-CkEYkyVD.js → SaveModuleDialog-D5WN-je_.js} +7 -7
- package/dist/{SnapshotHistory-Nx9wrlbF.js → SnapshotHistory-BQ55Rhri.js} +9 -9
- package/dist/{TemplateScoringPanel-BG9M-29t.js → TemplateScoringPanel-Dhf_Qgr7.js} +15 -15
- package/dist/{TestEmailModal-CRjtEs6S.js → TestEmailModal-DH_Viz_m.js} +5 -5
- package/dist/{TitleEditor-CvtV4pCA.js → TitleEditor-Dn613K8o.js} +12 -12
- package/dist/{TplModal-BudEYVcJ.js → TplModal-Dxa3rhHI.js} +4 -4
- package/dist/{blockTypeIcons-Dd-UvfnC.js → blockTypeIcons-CrcSCTD6.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-DKOv8VnB.js → AiFeatureMenu-CCsgxyN9.js} +4 -4
- package/dist/cdn/chunks/{AiFeatureMenu-DKOv8VnB.js.map → AiFeatureMenu-CCsgxyN9.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DpiSTwM7.js → BlockIssueBadge-Lc3NWFV8.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-DpiSTwM7.js.map → BlockIssueBadge-Lc3NWFV8.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-xc_uOEgn.js → CloudEditor-KkwvBhyt.js} +131 -128
- package/dist/cdn/chunks/CloudEditor-KkwvBhyt.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-VWfPri_h.js → CollaboratorBar-BGIGiFSm.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-VWfPri_h.js.map → CollaboratorBar-BGIGiFSm.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BKsCWboK.js → CountdownBlock-gqnpxKp_.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-BKsCWboK.js.map → CountdownBlock-gqnpxKp_.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BLtECDNb.js → CountdownToolbar-xHpaWQE2.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-BLtECDNb.js.map → CountdownToolbar-xHpaWQE2.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BW2piyvs.js → IssuesPanel-DHTTHu65.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-BW2piyvs.js.map → IssuesPanel-DHTTHu65.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-TLlKpvjX.js → ModuleBrowserModal-DDTjrKph.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-TLlKpvjX.js.map → ModuleBrowserModal-DDTjrKph.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-wu7y-vrh.js → ModulePreviewCanvas-DeFq0hVi.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-wu7y-vrh.js.map → ModulePreviewCanvas-DeFq0hVi.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DxoUtTMr.js → NumberWithSuffix-D4wtmU9O.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-DxoUtTMr.js.map → NumberWithSuffix-D4wtmU9O.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DvxIO2LN.js → ParagraphEditor-CwY8GeWa.js} +20 -20
- package/dist/cdn/chunks/{ParagraphEditor-DvxIO2LN.js.map → ParagraphEditor-CwY8GeWa.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Dm9GXJmo.js → RichTextEditorContent-C_bMURGF.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-Dm9GXJmo.js.map → RichTextEditorContent-C_bMURGF.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-BRAdVcYM.js → SaveModuleDialog-DEi8PSP6.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-BRAdVcYM.js.map → SaveModuleDialog-DEi8PSP6.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-D3gPRd0x.js → TitleEditor-Betpo8AZ.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-D3gPRd0x.js.map → TitleEditor-Betpo8AZ.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-C2cm4RjU.js → blockTypeIcons-Xz6OBq3U.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-C2cm4RjU.js.map → blockTypeIcons-Xz6OBq3U.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BwWMFq33.js → draggable-BTGr7_-X.js} +1271 -1270
- package/dist/cdn/chunks/draggable-BTGr7_-X.js.map +1 -0
- package/dist/cdn/chunks/{extensions-SS1ywPUR.js → extensions-D_j4UWxi.js} +108 -105
- package/dist/cdn/chunks/{extensions-SS1ywPUR.js.map → extensions-D_j4UWxi.js.map} +1 -1
- package/dist/cdn/chunks/{features-CwZTdcbt.js → features-A28DQtjE.js} +831 -820
- package/dist/cdn/chunks/features-A28DQtjE.js.map +1 -0
- package/dist/cdn/chunks/{icons-CbNEr1kc.js → icons-C9D3N0-J.js} +12 -12
- package/dist/cdn/chunks/{icons-CbNEr1kc.js.map → icons-C9D3N0-J.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js → liquid.browser-DUDc3U21.js} +10 -10
- package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js.map → liquid.browser-DUDc3U21.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-BRpHZOl7.js → media-library-CH1Wx5wP.js} +13 -9
- package/dist/cdn/chunks/media-library-CH1Wx5wP.js.map +1 -0
- package/dist/cdn/chunks/pusher-CHo5Cua0.js.map +1 -1
- package/dist/cdn/chunks/{quality-BqJqIPRU.js → quality-D4NeyFej.js} +530 -530
- package/dist/cdn/chunks/{quality-BqJqIPRU.js.map → quality-D4NeyFej.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CGVYkdUi.js → renderer-BQnGfLhL.js} +62 -61
- package/dist/cdn/chunks/renderer-BQnGfLhL.js.map +1 -0
- package/dist/cdn/chunks/{src-CvzfrFlT.js → src-BkKEyLw1.js} +6 -6
- package/dist/cdn/chunks/{src-CvzfrFlT.js.map → src-BkKEyLw1.js.map} +1 -1
- package/dist/cdn/chunks/{styles-2P5yvfsS.js → styles-BDVaiw3K.js} +150 -150
- package/dist/cdn/chunks/{styles-2P5yvfsS.js.map → styles-BDVaiw3K.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-BBbH3IT9.js → tiptap-P5abGB13.js} +4437 -2580
- package/dist/cdn/chunks/tiptap-P5abGB13.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +100 -100
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-ChQyfxJ3.js → check-KooI2jyS.js} +1 -1
- package/dist/{chevron-down-DJjo0jSV.js → chevron-down-mnlFgueW.js} +1 -1
- package/dist/{circle-alert-CPH6l3Lc.js → circle-alert-D89_hB8j.js} +1 -1
- package/dist/{clock-DHl_BIkU.js → clock-BaadyUrg.js} +1 -1
- package/dist/{cloud-BBC7bv8q.js → cloud-D-FScaHx.js} +80 -74
- package/dist/{createLucideIcon-XgXOJ05E.js → createLucideIcon-D-6fpD2L.js} +3 -3
- package/dist/{dist-DXaxGLsw.js → dist-BttO3Zdx.js} +44 -44
- package/dist/{dist-C8wMh_gi.js → dist-C1WcikEF.js} +5 -5
- package/dist/dist-CjULgTep.js +4072 -0
- package/dist/{dist-GAmhYvUK.js → dist-D6L_WdRL.js} +96 -86
- package/dist/{dist-DYO-w_Jf.js → dist-DaajG7Fo.js} +5 -5
- package/dist/dist-Df4eV6Zi.js +5 -0
- package/dist/{dist-D8C6jIXM.js → dist-Dnqx5UF3.js} +171 -158
- package/dist/{dist-CUpJmrjt.js → dist-Drp5bNAu.js} +5 -5
- package/dist/dist-WJ1fVd5b.js +5 -0
- package/dist/{dist-BxP6TB0l.js → dist-XA2i70J5.js} +8 -8
- package/dist/{dist-UK-lbEBc.js → dist-b52vYHb5.js} +2 -2
- package/dist/{dist-CNLAS2v2.js → dist-cl33Ip6W.js} +3 -3
- package/dist/{dist-C0jo8wtG.js → dist-sqf7pq5q.js} +16 -16
- package/dist/{dist-BzuC8o3y.js → dist-zInT3Lf6.js} +78 -60
- package/dist/{extensions-C87ZSllQ.js → extensions-DA-w1gVg.js} +128 -125
- package/dist/{image-up-CPBCOMit.js → image-up-DjwfAom6.js} +1 -1
- package/dist/{info-DIY9mguM.js → info-Db3HlTr8.js} +1 -1
- package/dist/{keys-Vt3XipJl.js → keys-BjmL5YCT.js} +1 -1
- package/dist/{liquid.browser-IgQrXHPQ.js → liquid.browser--qtl1Fqy.js} +9 -9
- package/dist/{list-checks-CSCyu3fH.js → list-checks-BlAB0X8a.js} +1 -1
- package/dist/{loader-circle-Rz_4vJLH.js → loader-circle-EVqyIxjU.js} +1 -1
- package/dist/{message-circle-D-umK_MU.js → message-circle-BuI5pBVG.js} +1 -1
- package/dist/{refresh-cw-CvWF4jfR.js → refresh-cw-C2vM_6zQ.js} +1 -1
- package/dist/{scan-line-wanvAFDr.js → scan-line-AUIh_SHI.js} +1 -1
- package/dist/{send-BhbhbIFT.js → send-nrbwF7xg.js} +1 -1
- package/dist/{shield-check-CXPPMWth.js → shield-check-B55Ozmva.js} +1 -1
- package/dist/{sparkles-CrUN0KWY.js → sparkles-oh1NUSFq.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-DOjWbqA9.js → styles-Byhh107n.js} +41 -41
- package/dist/templatical-editor.js +81 -80
- package/dist/{text-align-end-Bkq8oBrD.js → text-align-start-B2MqzZwU.js} +11 -11
- package/dist/{trash-2-BpY5BCLT.js → trash-2-DH8RBwAx.js} +1 -1
- package/dist/{triangle-alert-MwJBKR2e.js → triangle-alert-BQHjCt3B.js} +1 -1
- package/dist/{useAliveFlag-BLyG8L4d.js → useAliveFlag-B_b9ubwD.js} +1 -1
- package/dist/{useCloudI18n-sRfoQCZY.js → useCloudI18n-BHCrmQgj.js} +2 -2
- package/dist/{useEditorCore-DxApq2hZ.js → useEditorCore-BEgc3KFu.js} +370 -377
- package/dist/{useI18n-lF6hYgZu.js → useI18n-Bb9-ha9X.js} +2 -2
- package/dist/{useMergeTag-CZVI7Xe5.js → useMergeTag-HykzEtBn.js} +3 -3
- package/dist/usePopoverRoot-BZDkRRry.js +8 -0
- package/dist/{vue.runtime.esm-bundler-BDSGA5hA.js → vue.runtime.esm-bundler-MzYCkFSH.js} +1306 -1305
- package/dist/{x-rcnxRG8Y.js → x-DgCCENgP.js} +1 -1
- package/package.json +27 -27
- package/dist/cdn/chunks/CloudEditor-xc_uOEgn.js.map +0 -1
- package/dist/cdn/chunks/draggable-BwWMFq33.js.map +0 -1
- package/dist/cdn/chunks/features-CwZTdcbt.js.map +0 -1
- package/dist/cdn/chunks/media-library-BRpHZOl7.js.map +0 -1
- package/dist/cdn/chunks/renderer-CGVYkdUi.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BBbH3IT9.js.map +0 -1
- package/dist/dist-BDgf2G-V.js +0 -2243
- package/dist/dist-D5lmdi1F.js +0 -5
- package/dist/dist-DILjuzSv.js +0 -5
- package/dist/usePopoverRoot-p2BanBI7.js +0 -8
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { A as e, B as t, L as n, M as r, O as i, Q as a, X as o, _ as s, at as c, b as l, c as u, d, f, g as p, h as m, j as h, k as g, l as _, m as v, o as y, ot as b, p as x, q as S, rt as C, st as w, t as T, v as E, y as D, z as O } from "./vue.runtime.esm-bundler-
|
|
1
|
+
import { A as e, B as t, L as n, M as r, O as i, Q as a, X as o, _ as s, at as c, b as l, c as u, d, f, g as p, h as m, j as h, k as g, l as _, m as v, o as y, ot as b, p as x, q as S, rt as C, st as w, t as T, v as E, y as D, z as O } from "./vue.runtime.esm-bundler-MzYCkFSH.js";
|
|
2
2
|
import { t as k } from "./timeouts-Bmi_yePw.js";
|
|
3
|
-
import { E as A, i as j } from "./dist-
|
|
4
|
-
import { P as M, S as N, t as
|
|
5
|
-
import { c as
|
|
6
|
-
import { C as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { a as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as pe } from "./triangle-alert-
|
|
3
|
+
import { E as A, i as j } from "./dist-D6L_WdRL.js";
|
|
4
|
+
import { P as M, S as N, t as ee } from "./useEditorCore-BEgc3KFu.js";
|
|
5
|
+
import { c as P, t as F } from "./dist-cl33Ip6W.js";
|
|
6
|
+
import { C as I, D as L, E as R, c as z, l as B, r as te, s as ne, t as V } from "./keys-BjmL5YCT.js";
|
|
7
|
+
import { t as H } from "./useI18n-Bb9-ha9X.js";
|
|
8
|
+
import { t as U } from "./createLucideIcon-D-6fpD2L.js";
|
|
9
|
+
import { t as W } from "./check-KooI2jyS.js";
|
|
10
|
+
import { t as G } from "./circle-alert-D89_hB8j.js";
|
|
11
|
+
import { a as K, c as re, d as ie, i as q, l as ae, n as oe, o as se, r as ce, s as le, t as ue, u as de } from "./styles-Byhh107n.js";
|
|
12
|
+
import { t as fe } from "./clock-BaadyUrg.js";
|
|
13
|
+
import { t as J } from "./loader-circle-EVqyIxjU.js";
|
|
14
|
+
import { t as Y } from "./message-circle-BuI5pBVG.js";
|
|
15
|
+
import { t as X } from "./send-nrbwF7xg.js";
|
|
16
|
+
import { t as Z } from "./sparkles-oh1NUSFq.js";
|
|
17
|
+
import { t as pe } from "./triangle-alert-BQHjCt3B.js";
|
|
18
18
|
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
19
|
-
import { n as Q } from "./useCloudI18n-
|
|
19
|
+
import { n as Q } from "./useCloudI18n-BHCrmQgj.js";
|
|
20
20
|
import { d as $ } from "./styleConstants-lGobwiLH.js";
|
|
21
|
-
import { _ as he, a as ge, c as _e, d as ve, f as ye, g as be, h as xe, l as Se, m as Ce, n as we, o as Te, p as Ee, r as De, s as Oe, t as ke, v as Ae, y as je } from "./cloud-
|
|
22
|
-
var Me =
|
|
21
|
+
import { _ as he, a as ge, c as _e, d as ve, f as ye, g as be, h as xe, l as Se, m as Ce, n as we, o as Te, p as Ee, r as De, s as Oe, t as ke, v as Ae, y as je } from "./cloud-D-FScaHx.js";
|
|
22
|
+
var Me = U("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"
|
|
@@ -64,6 +64,8 @@ function Ne(e) {
|
|
|
64
64
|
async function x() {
|
|
65
65
|
if (!(!u.value || !l.value)) try {
|
|
66
66
|
if (await l.value.restoreSnapshot(u.value.id), p || (await l.value.loadSnapshots(), p)) return;
|
|
67
|
+
} catch (e) {
|
|
68
|
+
throw !p && f.value && n.setContent(f.value, !1), e;
|
|
67
69
|
} finally {
|
|
68
70
|
p || (u.value = null, f.value = null, s?.resume());
|
|
69
71
|
}
|
|
@@ -115,7 +117,7 @@ function Pe() {
|
|
|
115
117
|
function g(t) {
|
|
116
118
|
l.value = !1, e.value = e.value === t ? null : t;
|
|
117
119
|
}
|
|
118
|
-
return
|
|
120
|
+
return F(u, () => {
|
|
119
121
|
l.value = !1;
|
|
120
122
|
}), {
|
|
121
123
|
activePanel: e,
|
|
@@ -138,7 +140,7 @@ function Pe() {
|
|
|
138
140
|
//#endregion
|
|
139
141
|
//#region src/cloud/composables/useCollabUndoWarning.ts
|
|
140
142
|
function Fe(e) {
|
|
141
|
-
let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = o(!1), a = o(!1), { start: s } =
|
|
143
|
+
let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = o(!1), a = o(!1), { start: s } = P(() => {
|
|
142
144
|
a.value = !1;
|
|
143
145
|
}, k, { immediate: !1 });
|
|
144
146
|
function c() {
|
|
@@ -152,7 +154,7 @@ function Fe(e) {
|
|
|
152
154
|
//#endregion
|
|
153
155
|
//#region src/cloud/composables/useCloudFeatureFlags.ts
|
|
154
156
|
function Ie(e) {
|
|
155
|
-
let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = d(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = d(() => t.hasFeature("test_email")), s = d(() => !!r.state.template?.id), c = d(() => t.hasFeature("white_label")), l = d(() => t.config.value?.limits.max_templates ?? null), u = d(() => t.config.value?.template_count ?? 0), f = o(!1), p = o("idle"), m = o(""), { start: h } =
|
|
157
|
+
let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = d(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = d(() => t.hasFeature("test_email")), s = d(() => !!r.state.template?.id), c = d(() => t.hasFeature("white_label")), l = d(() => t.config.value?.limits.max_templates ?? null), u = d(() => t.config.value?.template_count ?? 0), f = o(!1), p = o("idle"), m = o(""), { start: h } = P(() => {
|
|
156
158
|
p.value = "idle";
|
|
157
159
|
}, 3e3, { immediate: !1 });
|
|
158
160
|
return {
|
|
@@ -240,7 +242,7 @@ function Re(e) {
|
|
|
240
242
|
}), n(() => S.lockedBlocks.value, (e) => {
|
|
241
243
|
y.value = e;
|
|
242
244
|
}, { immediate: !0 }), Oe(b, S));
|
|
243
|
-
let C = d(() => !!t.collaboration?.enabled && v.hasFeature("collaboration")), w =
|
|
245
|
+
let C = d(() => !!t.collaboration?.enabled && v.hasFeature("collaboration")), w = ee({
|
|
244
246
|
editor: b,
|
|
245
247
|
config: {
|
|
246
248
|
uiTheme: t.uiTheme,
|
|
@@ -250,7 +252,7 @@ function Re(e) {
|
|
|
250
252
|
mergeTags: t.mergeTags,
|
|
251
253
|
displayConditions: t.displayConditions,
|
|
252
254
|
onRequestMedia: null,
|
|
253
|
-
lint:
|
|
255
|
+
lint: de(t),
|
|
254
256
|
onSave: () => {
|
|
255
257
|
p.value?.().catch((e) => {
|
|
256
258
|
t.onError?.(e);
|
|
@@ -303,7 +305,7 @@ function Re(e) {
|
|
|
303
305
|
authManager: _,
|
|
304
306
|
getFontsConfig: () => t.fonts,
|
|
305
307
|
canUseCustomFonts: () => v.hasFeature("custom_fonts")
|
|
306
|
-
}),
|
|
308
|
+
}), P = Ae({
|
|
307
309
|
authManager: _,
|
|
308
310
|
getTemplateId: () => b.state.template?.id ?? null,
|
|
309
311
|
save: () => b.save(),
|
|
@@ -311,7 +313,7 @@ function Re(e) {
|
|
|
311
313
|
onError: t.onError,
|
|
312
314
|
isAuthReady: l,
|
|
313
315
|
onBeforeTestEmail: t.onBeforeTestEmail
|
|
314
|
-
}),
|
|
316
|
+
}), F = Se({
|
|
315
317
|
authManager: _,
|
|
316
318
|
getTemplateId: () => b.state.template?.id ?? null,
|
|
317
319
|
getSocketId: () => x.getSocketId(),
|
|
@@ -321,45 +323,45 @@ function Re(e) {
|
|
|
321
323
|
hasCommentingFeature: () => t.commenting !== !1 && v.hasFeature("commenting")
|
|
322
324
|
});
|
|
323
325
|
_e({
|
|
324
|
-
comments:
|
|
326
|
+
comments: F,
|
|
325
327
|
channel: x.channel
|
|
326
328
|
});
|
|
327
|
-
let
|
|
329
|
+
let z = xe({
|
|
328
330
|
authManager: _,
|
|
329
331
|
onError: t.onError
|
|
330
|
-
}),
|
|
332
|
+
}), H = o(!1), U = o(null), W = o(!1), G = he({
|
|
331
333
|
authManager: _,
|
|
332
334
|
getTemplateId: () => b.state.template?.id ?? null
|
|
333
335
|
});
|
|
334
|
-
function
|
|
336
|
+
function K(e) {
|
|
335
337
|
D.commentsOpen.value = !0, queueMicrotask(() => {
|
|
336
338
|
s()?.filterByBlock(e);
|
|
337
339
|
});
|
|
338
340
|
}
|
|
339
|
-
h(
|
|
341
|
+
h(I, A.handleRequestMedia), h(te, _), h(V, O), h(B, F), h(R, z), h(L, G), h(ne, {
|
|
340
342
|
plan: v,
|
|
341
343
|
ai: O,
|
|
342
344
|
comments: {
|
|
343
|
-
getBlockCount: (e) =>
|
|
344
|
-
openForBlock:
|
|
345
|
+
getBlockCount: (e) => F.commentCountByBlock.value.get(e) ?? 0,
|
|
346
|
+
openForBlock: K
|
|
345
347
|
},
|
|
346
348
|
savedModules: {
|
|
347
349
|
openSaveDialog: (e) => {
|
|
348
|
-
|
|
350
|
+
U.value = e ?? null, H.value = !0;
|
|
349
351
|
},
|
|
350
352
|
openBrowser: () => {
|
|
351
|
-
|
|
353
|
+
W.value = !0;
|
|
352
354
|
},
|
|
353
|
-
moduleCount: d(() =>
|
|
355
|
+
moduleCount: d(() => z.modules.value.length)
|
|
354
356
|
}
|
|
355
357
|
});
|
|
356
|
-
function
|
|
358
|
+
function re(e) {
|
|
357
359
|
v.hasFeature("theme_customization") && (w.themeOverrides.value = e);
|
|
358
360
|
}
|
|
359
|
-
function
|
|
361
|
+
function ie(e) {
|
|
360
362
|
b.setUiTheme(e);
|
|
361
363
|
}
|
|
362
|
-
async function
|
|
364
|
+
async function q() {
|
|
363
365
|
c.value = !0, u.value = null;
|
|
364
366
|
try {
|
|
365
367
|
if (await _.initialize(), f) return;
|
|
@@ -369,7 +371,7 @@ function Re(e) {
|
|
|
369
371
|
if (!e.api.ok) throw Error("Health check failed: API is not reachable");
|
|
370
372
|
if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
|
|
371
373
|
if (e.websocket.ok || M.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await v.fetchConfig(), f) return;
|
|
372
|
-
i.setCustomFontsEnabled(v.hasFeature("custom_fonts")), t.customBlocks?.length && v.hasFeature("custom_blocks") && w.registerCustomBlocks(t.customBlocks), t.theme && v.hasFeature("theme_customization") && (w.themeOverrides.value = t.theme), t.modules !== !1 && v.hasFeature("saved_modules") &&
|
|
374
|
+
i.setCustomFontsEnabled(v.hasFeature("custom_fonts")), t.customBlocks?.length && v.hasFeature("custom_blocks") && w.registerCustomBlocks(t.customBlocks), t.theme && v.hasFeature("theme_customization") && (w.themeOverrides.value = t.theme), t.modules !== !1 && v.hasFeature("saved_modules") && z.loadModules(), a("ready");
|
|
373
375
|
} catch (e) {
|
|
374
376
|
if (f) return;
|
|
375
377
|
let n = e instanceof Error ? e : Error("Initialization failed", { cause: e });
|
|
@@ -378,7 +380,7 @@ function Re(e) {
|
|
|
378
380
|
f || (c.value = !1);
|
|
379
381
|
}
|
|
380
382
|
}
|
|
381
|
-
function
|
|
383
|
+
function ae() {
|
|
382
384
|
f = !0, i.cleanupFontLinks(), x.disconnect(), w.destroy(), t.onUnmount?.();
|
|
383
385
|
}
|
|
384
386
|
return {
|
|
@@ -397,22 +399,22 @@ function Re(e) {
|
|
|
397
399
|
featureFlags: k,
|
|
398
400
|
mediaLib: A,
|
|
399
401
|
exporter: j,
|
|
400
|
-
testEmail:
|
|
401
|
-
commentsInstance:
|
|
402
|
-
savedModulesHeadless:
|
|
403
|
-
scoringInstance:
|
|
402
|
+
testEmail: P,
|
|
403
|
+
commentsInstance: F,
|
|
404
|
+
savedModulesHeadless: z,
|
|
405
|
+
scoringInstance: G,
|
|
404
406
|
panelState: D,
|
|
405
407
|
snapshotPreview: E,
|
|
406
408
|
collabWarning: T,
|
|
407
|
-
showSaveModuleDialog:
|
|
408
|
-
showModuleBrowserModal:
|
|
409
|
-
saveModulePreSelectedBlockId:
|
|
409
|
+
showSaveModuleDialog: H,
|
|
410
|
+
showModuleBrowserModal: W,
|
|
411
|
+
saveModulePreSelectedBlockId: U,
|
|
410
412
|
onSaveHook: p,
|
|
411
|
-
initialize:
|
|
412
|
-
destroy:
|
|
413
|
-
setThemeOverrides:
|
|
414
|
-
setUiTheme:
|
|
415
|
-
openCommentsForBlock:
|
|
413
|
+
initialize: q,
|
|
414
|
+
destroy: ae,
|
|
415
|
+
setThemeOverrides: re,
|
|
416
|
+
setUiTheme: ie,
|
|
417
|
+
openCommentsForBlock: K
|
|
416
418
|
};
|
|
417
419
|
}
|
|
418
420
|
//#endregion
|
|
@@ -592,22 +594,22 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
592
594
|
},
|
|
593
595
|
emits: ["save"],
|
|
594
596
|
setup(t) {
|
|
595
|
-
let n = D(() => import("./CollaboratorBar-
|
|
597
|
+
let n = D(() => import("./CollaboratorBar-Cz_evoU4.js")), r = D(() => import("./SnapshotHistory-BQ55Rhri.js")), i = D(() => import("./AiFeatureMenu-xgaIGUCo.js")), { t: a, format: o } = Q();
|
|
596
598
|
return (l, d) => (e(), m("header", Qe, [
|
|
597
599
|
f("div", $e, [t.featureFlags.templateLimit.value === null ? v("", !0) : (e(), m("span", et, w(C(o)(C(a).header.templatesUsed, {
|
|
598
600
|
used: t.featureFlags.templateCount.value,
|
|
599
601
|
max: t.featureFlags.templateLimit.value
|
|
600
602
|
})), 1))]),
|
|
601
603
|
f("div", tt, [
|
|
602
|
-
E(
|
|
604
|
+
E(K, {
|
|
603
605
|
viewport: t.editor.state.viewport,
|
|
604
606
|
onChange: t.editor.setViewport
|
|
605
607
|
}, null, 8, ["viewport", "onChange"]),
|
|
606
|
-
E(
|
|
608
|
+
E(ce, {
|
|
607
609
|
"dark-mode": t.editor.state.darkMode,
|
|
608
610
|
onChange: t.editor.setDarkMode
|
|
609
611
|
}, null, 8, ["dark-mode", "onChange"]),
|
|
610
|
-
E(
|
|
612
|
+
E(q, {
|
|
611
613
|
"preview-mode": t.editor.state.previewMode,
|
|
612
614
|
onChange: t.editor.setPreviewMode
|
|
613
615
|
}, null, 8, ["preview-mode", "onChange"]),
|
|
@@ -637,10 +639,10 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
637
639
|
"aria-live": "assertive",
|
|
638
640
|
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
639
641
|
"data-tooltip": t.featureFlags.saveErrorMessage.value
|
|
640
|
-
}, [E(C(
|
|
642
|
+
}, [E(C(G), {
|
|
641
643
|
size: 12,
|
|
642
644
|
"stroke-width": 2.5
|
|
643
|
-
}), s(" " + w(C(a).header.saveFailed), 1)], 8, rt)) : t.featureFlags.saveStatus.value === "saved" ? (e(), m("div", it, [E(C(
|
|
645
|
+
}), s(" " + w(C(a).header.saveFailed), 1)], 8, rt)) : t.featureFlags.saveStatus.value === "saved" ? (e(), m("div", it, [E(C(W), {
|
|
644
646
|
size: 12,
|
|
645
647
|
"stroke-width": 2.5
|
|
646
648
|
}), s(" " + w(C(a).header.saved), 1)])) : t.editor.state.isDirty ? (e(), m("div", at, [d[4] ||= f("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), s(" " + w(C(a).header.unsaved), 1)])) : v("", !0),
|
|
@@ -656,7 +658,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
656
658
|
}),
|
|
657
659
|
onClick: d[0] ||= (e) => t.panelState.commentsOpen.value = !t.panelState.commentsOpen.value
|
|
658
660
|
}, [
|
|
659
|
-
E(C(
|
|
661
|
+
E(C(Y), {
|
|
660
662
|
size: 16,
|
|
661
663
|
"stroke-width": 2
|
|
662
664
|
}),
|
|
@@ -671,7 +673,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
671
673
|
"aria-expanded": t.panelState.aiMenuOpen.value,
|
|
672
674
|
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", t.panelState.aiButtonActive.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
|
|
673
675
|
onClick: d[1] ||= u((...e) => t.panelState.toggleAiMenu && t.panelState.toggleAiMenu(...e), ["stop"])
|
|
674
|
-
}, [E(C(
|
|
676
|
+
}, [E(C(Z), {
|
|
675
677
|
size: 16,
|
|
676
678
|
"stroke-width": 2,
|
|
677
679
|
class: "tpl-ai-btn-icon"
|
|
@@ -699,12 +701,12 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
699
701
|
},
|
|
700
702
|
disabled: t.testEmail.isSending.value || !t.featureFlags.hasTemplateSaved.value,
|
|
701
703
|
onClick: d[2] ||= (e) => t.panelState.testEmailModalOpen.value = !0
|
|
702
|
-
}, [t.testEmail.isSending.value ? (e(), x(C(
|
|
704
|
+
}, [t.testEmail.isSending.value ? (e(), x(C(J), {
|
|
703
705
|
key: 1,
|
|
704
706
|
class: "tpl-spinner",
|
|
705
707
|
size: 16,
|
|
706
708
|
"stroke-width": 2
|
|
707
|
-
})) : (e(), x(C(
|
|
709
|
+
})) : (e(), x(C(X), {
|
|
708
710
|
key: 0,
|
|
709
711
|
size: 16,
|
|
710
712
|
"stroke-width": 2
|
|
@@ -718,7 +720,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
718
720
|
},
|
|
719
721
|
disabled: t.isSaveDisabled,
|
|
720
722
|
onClick: d[3] ||= (e) => l.$emit("save")
|
|
721
|
-
}, [t.isSaving ? (e(), x(C(
|
|
723
|
+
}, [t.isSaving ? (e(), x(C(J), {
|
|
722
724
|
key: 1,
|
|
723
725
|
class: "tpl-spinner",
|
|
724
726
|
size: 16,
|
|
@@ -754,7 +756,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
754
756
|
"module-insert"
|
|
755
757
|
],
|
|
756
758
|
setup(t, { expose: n, emit: r }) {
|
|
757
|
-
let i = D(() => import("./AiChatSidebar-
|
|
759
|
+
let i = D(() => import("./AiChatSidebar-BMwpZx-6.js")), a = D(() => import("./CommentsSidebar-jFZj_CTo.js")), s = D(() => import("./DesignReferenceSidebar-B9QNPZNV.js")), c = D(() => import("./TemplateScoringPanel-Dhf_Qgr7.js")), l = D(() => import("./TestEmailModal-DH_Viz_m.js")), u = D(() => import("./SaveModuleDialog-D5WN-je_.js")), d = D(() => import("./ModuleBrowserModal-BB22urqi.js")), f = D(async () => {
|
|
758
760
|
try {
|
|
759
761
|
return (await import("@templatical/media-library")).MediaLibraryModal;
|
|
760
762
|
} catch {
|
|
@@ -868,7 +870,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
868
870
|
return "isNotFound" in e && !!e.isNotFound;
|
|
869
871
|
}
|
|
870
872
|
return (n, s) => t.visible && t.error ? (e(), m("div", vt, [
|
|
871
|
-
f("div", yt, [E(C(
|
|
873
|
+
f("div", yt, [E(C(G), {
|
|
872
874
|
size: 32,
|
|
873
875
|
"stroke-width": 1.5,
|
|
874
876
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
@@ -890,7 +892,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
890
892
|
emits: ["cancel", "confirm"],
|
|
891
893
|
setup(t, { emit: n }) {
|
|
892
894
|
let r = n, { t: i } = Q();
|
|
893
|
-
return (n, a) => t.visible ? (e(), m("div", wt, [f("div", Tt, [E(C(
|
|
895
|
+
return (n, a) => t.visible ? (e(), m("div", wt, [f("div", Tt, [E(C(fe), {
|
|
894
896
|
size: 18,
|
|
895
897
|
"stroke-width": 2,
|
|
896
898
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
@@ -917,10 +919,10 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
917
919
|
__name: "CollabUndoToast",
|
|
918
920
|
props: { visible: { type: Boolean } },
|
|
919
921
|
setup(t) {
|
|
920
|
-
let { t: n } =
|
|
922
|
+
let { t: n } = H();
|
|
921
923
|
return (r, i) => t.visible ? (e(), m("div", Ot, w(C(n).history.collabWarning), 1)) : v("", !0);
|
|
922
924
|
}
|
|
923
|
-
}), At = ["data-tpl-theme"], jt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Mt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Nt = ["aria-label"], Pt =
|
|
925
|
+
}), At = ["data-tpl-theme"], jt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Mt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Nt = ["aria-label"], Pt = /*#__PURE__*/ me(/* @__PURE__ */ l({
|
|
924
926
|
__name: "CloudEditor",
|
|
925
927
|
props: {
|
|
926
928
|
config: {},
|
|
@@ -932,7 +934,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
932
934
|
emits: ["ready"],
|
|
933
935
|
setup(n, { expose: r, emit: a }) {
|
|
934
936
|
let l = n;
|
|
935
|
-
h(
|
|
937
|
+
h(z, l.cloudTranslations);
|
|
936
938
|
let u = a, d = o(null), p = o(null), _ = Re({
|
|
937
939
|
config: l.config,
|
|
938
940
|
translations: l.translations,
|
|
@@ -941,31 +943,36 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
941
943
|
getCommentsSidebar: () => d.value ? { filterByBlock: d.value.filterCommentsByBlock } : null,
|
|
942
944
|
editorRoot: l.shadowRoot,
|
|
943
945
|
containerEl: p
|
|
944
|
-
}), { isInitializing: S, isAuthReady: D, initError: k, planConfigInstance: A, websocket: M, collaboration: N, isCollaborationEnabled:
|
|
945
|
-
async function
|
|
946
|
+
}), { isInitializing: S, isAuthReady: D, initError: k, planConfigInstance: A, websocket: M, collaboration: N, isCollaborationEnabled: ee, editor: P, core: F, featureFlags: I, mediaLib: L, exporter: R, testEmail: B, commentsInstance: te, savedModulesHeadless: ne, panelState: V, snapshotPreview: H, collabWarning: U, showSaveModuleDialog: W, showModuleBrowserModal: G, saveModulePreSelectedBlockId: K, setThemeOverrides: q, setUiTheme: ce } = _;
|
|
947
|
+
async function de(e) {
|
|
946
948
|
try {
|
|
947
|
-
await
|
|
949
|
+
await B.sendTestEmail(e), V.testEmailModalOpen.value = !1;
|
|
948
950
|
} catch {}
|
|
949
951
|
}
|
|
950
|
-
function
|
|
952
|
+
async function fe() {
|
|
953
|
+
try {
|
|
954
|
+
await H.confirmRestoreSnapshot();
|
|
955
|
+
} catch {}
|
|
956
|
+
}
|
|
957
|
+
function J(e, t) {
|
|
951
958
|
for (let n = 0; n < e.content.length; n++) {
|
|
952
959
|
let r = j(e.content[n]), i = t === void 0 ? void 0 : t + n;
|
|
953
|
-
|
|
960
|
+
P.addBlock(r, void 0, void 0, i);
|
|
954
961
|
}
|
|
955
|
-
|
|
962
|
+
G.value = !1;
|
|
956
963
|
}
|
|
957
964
|
let Y = Be({
|
|
958
965
|
config: l.config,
|
|
959
|
-
editor:
|
|
966
|
+
editor: P,
|
|
960
967
|
websocket: M,
|
|
961
968
|
planConfigInstance: A,
|
|
962
|
-
snapshotPreview:
|
|
963
|
-
core:
|
|
964
|
-
exporter:
|
|
965
|
-
featureFlags:
|
|
969
|
+
snapshotPreview: H,
|
|
970
|
+
core: F,
|
|
971
|
+
exporter: R,
|
|
972
|
+
featureFlags: I,
|
|
966
973
|
isDestroyed: _.isDestroyed
|
|
967
974
|
}), X = Ve({
|
|
968
|
-
issues:
|
|
975
|
+
issues: F.templateLint ? F.templateLint.issues : o([]),
|
|
969
976
|
planConfig: A.config
|
|
970
977
|
});
|
|
971
978
|
async function Z() {
|
|
@@ -976,22 +983,22 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
976
983
|
}), g(() => {
|
|
977
984
|
_.destroy();
|
|
978
985
|
}), r({
|
|
979
|
-
getContent: () =>
|
|
980
|
-
setContent: (e) =>
|
|
981
|
-
setTheme:
|
|
982
|
-
setThemeOverrides:
|
|
986
|
+
getContent: () => P.content.value,
|
|
987
|
+
setContent: (e) => P.setContent(e),
|
|
988
|
+
setTheme: ce,
|
|
989
|
+
setThemeOverrides: q,
|
|
983
990
|
create: Y.createTemplate,
|
|
984
991
|
load: Y.loadTemplate,
|
|
985
992
|
save: Y.saveTemplate,
|
|
986
|
-
sendTestEmail:
|
|
993
|
+
sendTestEmail: B.sendTestEmail
|
|
987
994
|
}), (r, i) => (e(), m("div", {
|
|
988
995
|
ref_key: "rootEl",
|
|
989
996
|
ref: p,
|
|
990
|
-
class: c(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": C(
|
|
991
|
-
"data-tpl-theme": C(
|
|
992
|
-
style: b(C(
|
|
997
|
+
class: c(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": C(P).state.darkMode }]),
|
|
998
|
+
"data-tpl-theme": C(F).resolvedTheme.value,
|
|
999
|
+
style: b(C(F).themeStyles.value)
|
|
993
1000
|
}, [
|
|
994
|
-
E(
|
|
1001
|
+
E(re),
|
|
995
1002
|
E(T, {
|
|
996
1003
|
"enter-active-class": "tpl:transition-opacity tpl:duration-200",
|
|
997
1004
|
"enter-from-class": "tpl:opacity-100",
|
|
@@ -1000,7 +1007,7 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1000
1007
|
"leave-from-class": "tpl:opacity-100",
|
|
1001
1008
|
"leave-to-class": "tpl:opacity-0"
|
|
1002
1009
|
}, {
|
|
1003
|
-
default: O(() => [E(_t, { visible: C(S) || C(
|
|
1010
|
+
default: O(() => [E(_t, { visible: C(S) || C(P).state.isLoading }, null, 8, ["visible"])]),
|
|
1004
1011
|
_: 1
|
|
1005
1012
|
}),
|
|
1006
1013
|
E(T, {
|
|
@@ -1023,18 +1030,18 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1023
1030
|
_: 1
|
|
1024
1031
|
}),
|
|
1025
1032
|
E(ft, {
|
|
1026
|
-
editor: C(
|
|
1027
|
-
core: C(
|
|
1028
|
-
"feature-flags": C(
|
|
1029
|
-
"panel-state": C(
|
|
1030
|
-
"snapshot-preview": C(
|
|
1031
|
-
"comments-instance": C(
|
|
1032
|
-
"test-email": C(
|
|
1033
|
+
editor: C(P),
|
|
1034
|
+
core: C(F),
|
|
1035
|
+
"feature-flags": C(I),
|
|
1036
|
+
"panel-state": C(V),
|
|
1037
|
+
"snapshot-preview": C(H),
|
|
1038
|
+
"comments-instance": C(te),
|
|
1039
|
+
"test-email": C(B),
|
|
1033
1040
|
websocket: C(M),
|
|
1034
1041
|
collaboration: C(N),
|
|
1035
|
-
"is-collaboration-enabled": C(
|
|
1036
|
-
"is-saving": C(
|
|
1037
|
-
"is-save-disabled": C(
|
|
1042
|
+
"is-collaboration-enabled": C(ee),
|
|
1043
|
+
"is-saving": C(P).state.isSaving || C(I).isSaveExporting.value,
|
|
1044
|
+
"is-save-disabled": C(P).state.isSaving || C(I).isSaveExporting.value || !C(P).state.isDirty,
|
|
1038
1045
|
onSave: Z
|
|
1039
1046
|
}, null, 8, [
|
|
1040
1047
|
"editor",
|
|
@@ -1062,14 +1069,10 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1062
1069
|
"onConfirm"
|
|
1063
1070
|
]),
|
|
1064
1071
|
E(Dt, {
|
|
1065
|
-
visible: C(
|
|
1066
|
-
onCancel: C(
|
|
1067
|
-
onConfirm:
|
|
1068
|
-
}, null, 8, [
|
|
1069
|
-
"visible",
|
|
1070
|
-
"onCancel",
|
|
1071
|
-
"onConfirm"
|
|
1072
|
-
]),
|
|
1072
|
+
visible: C(H).isPreviewingSnapshot.value,
|
|
1073
|
+
onCancel: C(H).cancelPreview,
|
|
1074
|
+
onConfirm: fe
|
|
1075
|
+
}, null, 8, ["visible", "onCancel"]),
|
|
1073
1076
|
E(T, {
|
|
1074
1077
|
"enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
|
|
1075
1078
|
"enter-from-class": "tpl:translate-y-[-8px] tpl:opacity-0",
|
|
@@ -1078,18 +1081,18 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1078
1081
|
"leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
|
|
1079
1082
|
"leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
|
|
1080
1083
|
}, {
|
|
1081
|
-
default: O(() => [E(kt, { visible: C(
|
|
1084
|
+
default: O(() => [E(kt, { visible: C(U).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
|
|
1082
1085
|
_: 1
|
|
1083
1086
|
}),
|
|
1084
|
-
t(E(
|
|
1087
|
+
t(E(le, null, null, 512), [[y, !C(P).state.previewMode]]),
|
|
1085
1088
|
f("div", {
|
|
1086
|
-
class: c(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [C(
|
|
1089
|
+
class: c(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [C(P).state.previewMode ? "tpl:left-0 tpl:right-0" : C(V).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", C(H).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
1087
1090
|
style: {
|
|
1088
1091
|
transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1089
1092
|
"background-color": "var(--tpl-canvas-bg)"
|
|
1090
1093
|
}
|
|
1091
1094
|
}, [f("div", jt, [E(T, { name: "tpl-restore-btn" }, {
|
|
1092
|
-
default: O(() => [C(
|
|
1095
|
+
default: O(() => [C(F).conditionPreview.hasHiddenBlocks.value ? (e(), m("button", {
|
|
1093
1096
|
key: 0,
|
|
1094
1097
|
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",
|
|
1095
1098
|
style: {
|
|
@@ -1098,22 +1101,22 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1098
1101
|
"border-color": "var(--tpl-warning)",
|
|
1099
1102
|
"backdrop-filter": "blur(8px)"
|
|
1100
1103
|
},
|
|
1101
|
-
onClick: i[0] ||= (e) => C(
|
|
1102
|
-
}, [E(C(
|
|
1104
|
+
onClick: i[0] ||= (e) => C(F).conditionPreview.reset()
|
|
1105
|
+
}, [E(C(ie), {
|
|
1103
1106
|
size: 13,
|
|
1104
1107
|
"stroke-width": 2
|
|
1105
|
-
}), s(" " + w(C(
|
|
1108
|
+
}), s(" " + w(C(F).t.blockSettings.restoreHiddenBlocks), 1)])) : v("", !0)]),
|
|
1106
1109
|
_: 1
|
|
1107
|
-
})]), f("main", Mt, [E(
|
|
1108
|
-
viewport: C(
|
|
1109
|
-
content: C(
|
|
1110
|
-
"selected-block-id": C(
|
|
1111
|
-
"dark-mode": C(
|
|
1112
|
-
"preview-mode": C(
|
|
1110
|
+
})]), f("main", Mt, [E(ae, {
|
|
1111
|
+
viewport: C(P).state.viewport,
|
|
1112
|
+
content: C(P).content.value,
|
|
1113
|
+
"selected-block-id": C(P).state.selectedBlockId,
|
|
1114
|
+
"dark-mode": C(P).state.darkMode,
|
|
1115
|
+
"preview-mode": C(P).state.previewMode,
|
|
1113
1116
|
"locked-blocks": C(N)?.lockedBlocks.value ?? void 0,
|
|
1114
|
-
onSelectBlock: C(
|
|
1115
|
-
onOpenAiChat: i[1] ||= (e) => C(
|
|
1116
|
-
onOpenDesignReference: i[2] ||= (e) => C(
|
|
1117
|
+
onSelectBlock: C(P).selectBlock,
|
|
1118
|
+
onOpenAiChat: i[1] ||= (e) => C(V).aiChatOpen.value = !0,
|
|
1119
|
+
onOpenDesignReference: i[2] ||= (e) => C(V).designReferenceOpen.value = !0
|
|
1117
1120
|
}, null, 8, [
|
|
1118
1121
|
"viewport",
|
|
1119
1122
|
"content",
|
|
@@ -1123,51 +1126,51 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1123
1126
|
"locked-blocks",
|
|
1124
1127
|
"onSelectBlock"
|
|
1125
1128
|
])])], 2),
|
|
1126
|
-
n.config.branding !== !1 && !C(
|
|
1129
|
+
n.config.branding !== !1 && !C(I).isWhiteLabeled.value ? (e(), x(oe, {
|
|
1127
1130
|
key: 0,
|
|
1128
|
-
"position-class": [C(
|
|
1131
|
+
"position-class": [C(P).state.previewMode ? "tpl:left-0 tpl:right-0" : C(V).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
|
|
1129
1132
|
}, null, 8, ["position-class"])) : v("", !0),
|
|
1130
1133
|
f("div", {
|
|
1131
1134
|
class: "tpl-sr-only",
|
|
1132
1135
|
role: "status",
|
|
1133
1136
|
"aria-live": "polite",
|
|
1134
1137
|
"aria-atomic": "true",
|
|
1135
|
-
"aria-label": C(
|
|
1136
|
-
}, w(C(
|
|
1137
|
-
t(E(
|
|
1138
|
-
"selected-block": C(
|
|
1139
|
-
settings: C(
|
|
1140
|
-
"shifted-left": C(
|
|
1141
|
-
onUpdateBlock: i[3] ||= (e) => C(
|
|
1142
|
-
onDeleteBlock: i[4] ||= (e) => C(
|
|
1143
|
-
onDuplicateBlock: i[5] ||= (e) => C(
|
|
1144
|
-
onUpdateSettings: C(
|
|
1138
|
+
"aria-label": C(F).t.landmarks.reorderAnnouncements
|
|
1139
|
+
}, w(C(F).keyboardReorder.announcement.value), 9, Nt),
|
|
1140
|
+
t(E(se, {
|
|
1141
|
+
"selected-block": C(P).selectedBlock.value,
|
|
1142
|
+
settings: C(P).content.value.settings,
|
|
1143
|
+
"shifted-left": C(V).rightPanelOpen.value,
|
|
1144
|
+
onUpdateBlock: i[3] ||= (e) => C(P).updateBlock(C(P).selectedBlock.value.id, e),
|
|
1145
|
+
onDeleteBlock: i[4] ||= (e) => C(F).blockActions.deleteBlock(C(P).selectedBlock.value.id),
|
|
1146
|
+
onDuplicateBlock: i[5] ||= (e) => C(F).blockActions.duplicateBlock(C(P).selectedBlock.value),
|
|
1147
|
+
onUpdateSettings: C(P).updateSettings
|
|
1145
1148
|
}, null, 8, [
|
|
1146
1149
|
"selected-block",
|
|
1147
1150
|
"settings",
|
|
1148
1151
|
"shifted-left",
|
|
1149
1152
|
"onUpdateSettings"
|
|
1150
|
-
]), [[y, !C(
|
|
1153
|
+
]), [[y, !C(P).state.previewMode]]),
|
|
1151
1154
|
!C(S) && C(D) ? (e(), x(pt, {
|
|
1152
1155
|
key: 1,
|
|
1153
1156
|
ref_key: "cloudPanelsRef",
|
|
1154
1157
|
ref: d,
|
|
1155
1158
|
config: l.config,
|
|
1156
|
-
editor: C(
|
|
1157
|
-
core: C(
|
|
1158
|
-
"panel-state": C(
|
|
1159
|
+
editor: C(P),
|
|
1160
|
+
core: C(F),
|
|
1161
|
+
"panel-state": C(V),
|
|
1159
1162
|
"plan-config-instance": C(A),
|
|
1160
|
-
"test-email": C(
|
|
1161
|
-
"media-lib": C(
|
|
1162
|
-
"saved-modules-headless": C(
|
|
1163
|
-
"show-save-module-dialog": C(
|
|
1164
|
-
"save-module-pre-selected-block-id": C(
|
|
1165
|
-
"show-module-browser-modal": C(
|
|
1166
|
-
"onUpdate:showSaveModuleDialog": i[6] ||= (e) =>
|
|
1167
|
-
"onUpdate:saveModulePreSelectedBlockId": i[7] ||= (e) =>
|
|
1168
|
-
"onUpdate:showModuleBrowserModal": i[8] ||= (e) =>
|
|
1169
|
-
onSendTestEmail:
|
|
1170
|
-
onModuleInsert:
|
|
1163
|
+
"test-email": C(B),
|
|
1164
|
+
"media-lib": C(L),
|
|
1165
|
+
"saved-modules-headless": C(ne),
|
|
1166
|
+
"show-save-module-dialog": C(W),
|
|
1167
|
+
"save-module-pre-selected-block-id": C(K),
|
|
1168
|
+
"show-module-browser-modal": C(G),
|
|
1169
|
+
"onUpdate:showSaveModuleDialog": i[6] ||= (e) => W.value = e,
|
|
1170
|
+
"onUpdate:saveModulePreSelectedBlockId": i[7] ||= (e) => K.value = e,
|
|
1171
|
+
"onUpdate:showModuleBrowserModal": i[8] ||= (e) => G.value = e,
|
|
1172
|
+
onSendTestEmail: de,
|
|
1173
|
+
onModuleInsert: J
|
|
1171
1174
|
}, null, 8, [
|
|
1172
1175
|
"config",
|
|
1173
1176
|
"editor",
|
|
@@ -1182,12 +1185,12 @@ var He = ["aria-label"], Ue = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1182
1185
|
"show-module-browser-modal"
|
|
1183
1186
|
])) : v("", !0),
|
|
1184
1187
|
f("div", {
|
|
1185
|
-
ref: (e) => C(
|
|
1188
|
+
ref: (e) => C(F).popoverRoot.value = e,
|
|
1186
1189
|
class: "tpl-popover-root"
|
|
1187
1190
|
}, null, 512),
|
|
1188
|
-
E(
|
|
1191
|
+
E(ue)
|
|
1189
1192
|
], 14, At));
|
|
1190
1193
|
}
|
|
1191
|
-
}), [["__scopeId", "data-v-
|
|
1194
|
+
}), [["__scopeId", "data-v-3a8bb0e8"]]);
|
|
1192
1195
|
//#endregion
|
|
1193
1196
|
export { Pt as default };
|