@templatical/editor 0.10.0 → 0.10.1
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-Dz5bH1z3.js} +13 -13
- package/dist/{AiFeatureMenu-B5CJX5zr.js → AiFeatureMenu-D2Xn0jFx.js} +7 -7
- package/dist/{BlockIssueBadge-CkB4Yyz2.js → BlockIssueBadge-CnqD1cGo.js} +5 -5
- package/dist/{CloudEditor-nT-R769W.js → CloudEditor-BizZwsfD.js} +158 -155
- package/dist/{CollaboratorBar-CwhlXODK.js → CollaboratorBar-Bn2JDu6l.js} +4 -4
- package/dist/{CommentsSidebar-gpZMMI5w.js → CommentsSidebar-BAG6rdVC.js} +12 -12
- package/dist/{CountdownBlock-BNvuXucv.js → CountdownBlock-B_Hr9Bm9.js} +3 -3
- package/dist/{CountdownToolbar-Dl82DAmI.js → CountdownToolbar-DaqDLKLk.js} +3 -3
- package/dist/{DesignReferenceSidebar-Bs5AMxVd.js → DesignReferenceSidebar-I9LWjvrj.js} +9 -9
- package/dist/{IssuesPanel-CqQa2BtU.js → IssuesPanel-B32Ifp4x.js} +8 -8
- package/dist/{LoadingTrack-xCOLUR3o.js → LoadingTrack-UTqOUN4O.js} +1 -1
- package/dist/{ModuleBrowserModal-BWWgF0LC.js → ModuleBrowserModal-DodRped1.js} +10 -10
- package/dist/{ModulePreviewCanvas-D7Tk5HOt.js → ModulePreviewCanvas-DhcnddJF.js} +3 -3
- package/dist/{NumberWithSuffix-DVy5HxMi.js → NumberWithSuffix-DB7GyyCI.js} +3 -3
- package/dist/{ParagraphEditor-DVSGdMOo.js → ParagraphEditor-pJA9BHAL.js} +25 -25
- package/dist/{RichTextEditorContent-DN-fRjMa.js → RichTextEditorContent-dTGSUff_.js} +6 -6
- package/dist/{SaveModuleDialog-CkEYkyVD.js → SaveModuleDialog-D634e99d.js} +7 -7
- package/dist/{SnapshotHistory-Nx9wrlbF.js → SnapshotHistory-m_nGAHlb.js} +9 -9
- package/dist/{TemplateScoringPanel-BG9M-29t.js → TemplateScoringPanel-BOQh9neV.js} +14 -14
- package/dist/{TestEmailModal-CRjtEs6S.js → TestEmailModal-DOcwoKkc.js} +5 -5
- package/dist/{TitleEditor-CvtV4pCA.js → TitleEditor-t6JMWamY.js} +12 -12
- package/dist/{TplModal-BudEYVcJ.js → TplModal-BAtbfDB0.js} +4 -4
- package/dist/{blockTypeIcons-Dd-UvfnC.js → blockTypeIcons-C4lXx3Au.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-DKOv8VnB.js → AiFeatureMenu-BeOyHAoZ.js} +3 -3
- package/dist/cdn/chunks/{AiFeatureMenu-DKOv8VnB.js.map → AiFeatureMenu-BeOyHAoZ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DpiSTwM7.js → BlockIssueBadge-C6YilQdl.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-DpiSTwM7.js.map → BlockIssueBadge-C6YilQdl.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-xc_uOEgn.js → CloudEditor-DEA37rdW.js} +35 -32
- package/dist/cdn/chunks/CloudEditor-DEA37rdW.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-VWfPri_h.js → CollaboratorBar-CKW7jOW4.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-VWfPri_h.js.map → CollaboratorBar-CKW7jOW4.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BKsCWboK.js → CountdownBlock-DU9ga9Ki.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-BKsCWboK.js.map → CountdownBlock-DU9ga9Ki.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BLtECDNb.js → CountdownToolbar-BHWsxth7.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-BLtECDNb.js.map → CountdownToolbar-BHWsxth7.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BW2piyvs.js → IssuesPanel-BkYhij39.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-BW2piyvs.js.map → IssuesPanel-BkYhij39.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-TLlKpvjX.js → ModuleBrowserModal-D51w942J.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-TLlKpvjX.js.map → ModuleBrowserModal-D51w942J.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-wu7y-vrh.js → ModulePreviewCanvas-BqTqcKHS.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-wu7y-vrh.js.map → ModulePreviewCanvas-BqTqcKHS.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DxoUtTMr.js → NumberWithSuffix-DuUcF2zG.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-DxoUtTMr.js.map → NumberWithSuffix-DuUcF2zG.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DvxIO2LN.js → ParagraphEditor-Bqjn3ZNm.js} +19 -19
- package/dist/cdn/chunks/{ParagraphEditor-DvxIO2LN.js.map → ParagraphEditor-Bqjn3ZNm.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Dm9GXJmo.js → RichTextEditorContent-mIkkb5EK.js} +3 -3
- package/dist/cdn/chunks/{RichTextEditorContent-Dm9GXJmo.js.map → RichTextEditorContent-mIkkb5EK.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-BRAdVcYM.js → SaveModuleDialog-Felfmkcj.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-BRAdVcYM.js.map → SaveModuleDialog-Felfmkcj.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-D3gPRd0x.js → TitleEditor-Dcldr8D6.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-D3gPRd0x.js.map → TitleEditor-Dcldr8D6.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-C2cm4RjU.js → blockTypeIcons-D05Wqf5u.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-C2cm4RjU.js.map → blockTypeIcons-D05Wqf5u.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-BwWMFq33.js → draggable-J_1CPXYc.js} +1254 -1253
- package/dist/cdn/chunks/draggable-J_1CPXYc.js.map +1 -0
- package/dist/cdn/chunks/{extensions-SS1ywPUR.js → extensions-CNmpC18A.js} +108 -105
- package/dist/cdn/chunks/{extensions-SS1ywPUR.js.map → extensions-CNmpC18A.js.map} +1 -1
- package/dist/cdn/chunks/{features-CwZTdcbt.js → features-_ar9QbVv.js} +264 -258
- package/dist/cdn/chunks/{features-CwZTdcbt.js.map → features-_ar9QbVv.js.map} +1 -1
- package/dist/cdn/chunks/{icons-CbNEr1kc.js → icons-CnwCLJX-.js} +12 -12
- package/dist/cdn/chunks/{icons-CbNEr1kc.js.map → icons-CnwCLJX-.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-BRpHZOl7.js → media-library-9jyt7Bf9.js} +10 -6
- package/dist/cdn/chunks/media-library-9jyt7Bf9.js.map +1 -0
- package/dist/cdn/chunks/{quality-BqJqIPRU.js → quality-CO9mj_RH.js} +2 -2
- package/dist/cdn/chunks/{quality-BqJqIPRU.js.map → quality-CO9mj_RH.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CGVYkdUi.js → renderer-m6XTCWCL.js} +55 -54
- package/dist/cdn/chunks/renderer-m6XTCWCL.js.map +1 -0
- package/dist/cdn/chunks/{src-CvzfrFlT.js → src-DfMSYqvE.js} +5 -5
- package/dist/cdn/chunks/{src-CvzfrFlT.js.map → src-DfMSYqvE.js.map} +1 -1
- package/dist/cdn/chunks/{styles-2P5yvfsS.js → styles-1uFWdD5T.js} +17 -17
- package/dist/cdn/chunks/{styles-2P5yvfsS.js.map → styles-1uFWdD5T.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-BBbH3IT9.js → tiptap-CJbIm_hE.js} +5 -5
- package/dist/cdn/chunks/{tiptap-BBbH3IT9.js.map → tiptap-CJbIm_hE.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +7 -7
- package/dist/{check-ChQyfxJ3.js → check-Bs6_uQpm.js} +1 -1
- package/dist/{chevron-down-DJjo0jSV.js → chevron-down-so1rnGwF.js} +1 -1
- package/dist/{circle-alert-CPH6l3Lc.js → circle-alert-CrKv0AuW.js} +1 -1
- package/dist/{clock-DHl_BIkU.js → clock-Cpx6GYpa.js} +1 -1
- package/dist/{cloud-BBC7bv8q.js → cloud-bHhCNRZa.js} +80 -74
- package/dist/{createLucideIcon-XgXOJ05E.js → createLucideIcon-DFBxEm5K.js} +3 -3
- package/dist/{dist-C0jo8wtG.js → dist-0RguD1vS.js} +1 -1
- package/dist/{dist-CNLAS2v2.js → dist-2-A7SaKm.js} +3 -3
- package/dist/{dist-UK-lbEBc.js → dist-74n2Mqc6.js} +1 -1
- package/dist/{dist-BzuC8o3y.js → dist-B3CcePtK.js} +3 -3
- package/dist/{dist-D8C6jIXM.js → dist-BejBMbBX.js} +3 -3
- package/dist/{dist-DILjuzSv.js → dist-Bvje_Tqb.js} +1 -1
- package/dist/{dist-BDgf2G-V.js → dist-BxHa6kIT.js} +3 -3
- package/dist/{dist-CUpJmrjt.js → dist-CIK3BYgh.js} +1 -1
- package/dist/{dist-C8wMh_gi.js → dist-CMkZaqX1.js} +1 -1
- package/dist/{dist-BxP6TB0l.js → dist-CoaWXQ7N.js} +1 -1
- package/dist/{dist-D5lmdi1F.js → dist-D1YvgM6p.js} +1 -1
- package/dist/{dist-DYO-w_Jf.js → dist-DJ5YJLXn.js} +1 -1
- package/dist/{dist-DXaxGLsw.js → dist-DwEpKyry.js} +1 -1
- package/dist/{extensions-C87ZSllQ.js → extensions-C810eSzv.js} +107 -104
- package/dist/{image-up-CPBCOMit.js → image-up-kMLE5GsI.js} +1 -1
- package/dist/{info-DIY9mguM.js → info-xqRxLfNz.js} +1 -1
- package/dist/{keys-Vt3XipJl.js → keys-BoYBr3PU.js} +1 -1
- package/dist/{list-checks-CSCyu3fH.js → list-checks-C81htkBJ.js} +1 -1
- package/dist/{loader-circle-Rz_4vJLH.js → loader-circle-C6cZPIum.js} +1 -1
- package/dist/{message-circle-D-umK_MU.js → message-circle-dqOBRe07.js} +1 -1
- package/dist/{refresh-cw-CvWF4jfR.js → refresh-cw-DCjNd6o0.js} +1 -1
- package/dist/{scan-line-wanvAFDr.js → scan-line-DXz0nZVJ.js} +1 -1
- package/dist/{send-BhbhbIFT.js → send-C4uH_WaI.js} +1 -1
- package/dist/{shield-check-CXPPMWth.js → shield-check-B3U68ssA.js} +1 -1
- package/dist/{sparkles-CrUN0KWY.js → sparkles-CsDweGUy.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-DOjWbqA9.js → styles-CBlNpqL9.js} +35 -35
- package/dist/templatical-editor.js +5 -5
- package/dist/{text-align-end-Bkq8oBrD.js → text-align-start-BkKQePFp.js} +11 -11
- package/dist/{trash-2-BpY5BCLT.js → trash-2-BIOkaEz1.js} +1 -1
- package/dist/{triangle-alert-MwJBKR2e.js → triangle-alert-Bbgu6uUG.js} +1 -1
- package/dist/{useAliveFlag-BLyG8L4d.js → useAliveFlag-Bc99FWyR.js} +1 -1
- package/dist/{useCloudI18n-sRfoQCZY.js → useCloudI18n-DiwsLi6z.js} +2 -2
- package/dist/{useEditorCore-DxApq2hZ.js → useEditorCore-7c1QpPlw.js} +20 -20
- package/dist/{useI18n-lF6hYgZu.js → useI18n-DskZMfRJ.js} +2 -2
- package/dist/{useMergeTag-CZVI7Xe5.js → useMergeTag-Co4xYwG6.js} +3 -3
- package/dist/usePopoverRoot-DYH_gX8o.js +8 -0
- package/dist/{vue.runtime.esm-bundler-BDSGA5hA.js → vue.runtime.esm-bundler-D0Hg03Ub.js} +1289 -1288
- package/dist/{x-rcnxRG8Y.js → x-DWU6NCuE.js} +1 -1
- package/package.json +9 -9
- 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/media-library-BRpHZOl7.js.map +0 -1
- package/dist/cdn/chunks/renderer-CGVYkdUi.js.map +0 -1
- package/dist/usePopoverRoot-p2BanBI7.js +0 -8
- package/dist/{dist-GAmhYvUK.js → dist-BufRk8ZY.js} +1 -1
|
@@ -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-D0Hg03Ub.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-BufRk8ZY.js";
|
|
4
|
+
import { P as M, S as N, t as ee } from "./useEditorCore-7c1QpPlw.js";
|
|
5
|
+
import { c as P, t as F } from "./dist-2-A7SaKm.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-BoYBr3PU.js";
|
|
7
|
+
import { t as H } from "./useI18n-DskZMfRJ.js";
|
|
8
|
+
import { t as U } from "./createLucideIcon-DFBxEm5K.js";
|
|
9
|
+
import { t as W } from "./check-Bs6_uQpm.js";
|
|
10
|
+
import { t as G } from "./circle-alert-CrKv0AuW.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-CBlNpqL9.js";
|
|
12
|
+
import { t as fe } from "./clock-Cpx6GYpa.js";
|
|
13
|
+
import { t as J } from "./loader-circle-C6cZPIum.js";
|
|
14
|
+
import { t as Y } from "./message-circle-dqOBRe07.js";
|
|
15
|
+
import { t as X } from "./send-C4uH_WaI.js";
|
|
16
|
+
import { t as Z } from "./sparkles-CsDweGUy.js";
|
|
17
|
+
import { t as pe } from "./triangle-alert-Bbgu6uUG.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-DiwsLi6z.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-bHhCNRZa.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-Bn2JDu6l.js")), r = D(() => import("./SnapshotHistory-m_nGAHlb.js")), i = D(() => import("./AiFeatureMenu-D2Xn0jFx.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-Dz5bH1z3.js")), a = D(() => import("./CommentsSidebar-BAG6rdVC.js")), s = D(() => import("./DesignReferenceSidebar-I9LWjvrj.js")), c = D(() => import("./TemplateScoringPanel-BOQh9neV.js")), l = D(() => import("./TestEmailModal-DOcwoKkc.js")), u = D(() => import("./SaveModuleDialog-D634e99d.js")), d = D(() => import("./ModuleBrowserModal-DodRped1.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,7 +919,7 @@ 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
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({
|
|
@@ -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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as e, M as t, b as n, d as r, f as i, h as a, l as o, m as s, ot as c, p as l, rt as u, st as d } from "./vue.runtime.esm-bundler-
|
|
2
|
-
import "./useEditorCore-
|
|
3
|
-
import { t as f } from "./createLucideIcon-
|
|
4
|
-
import { n as p } from "./useCloudI18n-
|
|
1
|
+
import { A as e, M as t, b as n, d as r, f as i, h as a, l as o, m as s, ot as c, p as l, rt as u, st as d } from "./vue.runtime.esm-bundler-D0Hg03Ub.js";
|
|
2
|
+
import "./useEditorCore-7c1QpPlw.js";
|
|
3
|
+
import { t as f } from "./createLucideIcon-DFBxEm5K.js";
|
|
4
|
+
import { n as p } from "./useCloudI18n-DiwsLi6z.js";
|
|
5
5
|
import { t as m } from "./readableTextColor-f8Kykfnh.js";
|
|
6
6
|
var h = f("wifi-off", [
|
|
7
7
|
["path", {
|