@templatical/editor 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-DAQTFuvi.js → AiChatSidebar-ChrE6pUq.js} +7 -7
- package/dist/{AiFeatureMenu-aFSO20PR.js → AiFeatureMenu-DkQ9HhQ6.js} +4 -4
- package/dist/{BlockIssueBadge-BQmq1bxn.js → BlockIssueBadge-B4QjePax.js} +2 -2
- package/dist/{CloudEditor-D0K-m1GA.js → CloudEditor-CfX-aMiV.js} +15 -15
- package/dist/{CollaboratorBar-CJO3l6Dt.js → CollaboratorBar-DTibhQ1j.js} +2 -2
- package/dist/{ColorPicker-BsgpTJqK.js → ColorPicker-4vDYhdGe.js} +1 -1
- package/dist/{CommentsSidebar-BYMVucZh.js → CommentsSidebar-D-o5Stlg.js} +8 -8
- package/dist/{CountdownToolbar-PJI3ffi1.js → CountdownToolbar-D7yQqnA2.js} +2 -2
- package/dist/{DesignReferenceSidebar-QfAV8XT9.js → DesignReferenceSidebar-DnO6ZdwS.js} +5 -5
- package/dist/{IssuesPanel-CTjRgz8w.js → IssuesPanel-X_vkNGrs.js} +5 -5
- package/dist/{ModuleBrowserModal-BNalLx0k.js → ModuleBrowserModal-AJt--JPh.js} +6 -6
- package/dist/{ModulePreviewCanvas-BwObwisa.js → ModulePreviewCanvas-BKYOcVCh.js} +1 -1
- package/dist/{NumberWithSuffix-D3BKz66W.js → NumberWithSuffix-Bf3rNxza.js} +1 -1
- package/dist/{ParagraphEditor-Cf75UfSo.js → ParagraphEditor-C5ixOIYb.js} +7 -7
- package/dist/{RichTextEditorContent-MdaLz6Q3.js → RichTextEditorContent-DwhDnMsG.js} +3 -3
- package/dist/{SaveModuleDialog-MTjwiF9D.js → SaveModuleDialog-B4QX9eiv.js} +3 -3
- package/dist/{SnapshotHistory-C_Y1LzAY.js → SnapshotHistory-DaVueFv6.js} +5 -5
- package/dist/{TemplateScoringPanel-DikuKc6i.js → TemplateScoringPanel-B0UHoTLx.js} +10 -10
- package/dist/{TestEmailModal-BW8aTtzf.js → TestEmailModal-BkauxF7j.js} +3 -3
- package/dist/{TitleEditor-CCUkbRN0.js → TitleEditor-n6WDVDjW.js} +4 -4
- package/dist/{TplModal-DoOwUKlT.js → TplModal-BDDyvT-C.js} +1 -1
- package/dist/{blockTypeIcons-BlPKjD7M.js → blockTypeIcons-4D0aFXNg.js} +2 -2
- package/dist/bundle-stats.json +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-RwJiaPXZ.js → AiFeatureMenu-CIBHAGSz.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-RwJiaPXZ.js.map → AiFeatureMenu-CIBHAGSz.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DM-TDKbr.js → BlockIssueBadge-CxMiLo3p.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-DM-TDKbr.js.map → BlockIssueBadge-CxMiLo3p.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-Dufl354p.js → CloudEditor-CEa3Xgqh.js} +131 -131
- package/dist/cdn/chunks/{CloudEditor-Dufl354p.js.map → CloudEditor-CEa3Xgqh.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-xsU20iPl.js → CollaboratorBar-Bk1gD02G.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-xsU20iPl.js.map → CollaboratorBar-Bk1gD02G.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-y_obnw4o.js → ColorPicker-ll8pynws.js} +179 -179
- package/dist/cdn/chunks/ColorPicker-ll8pynws.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-sHsRMe1q.js → CountdownBlock-eGUE7hhw.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-sHsRMe1q.js.map → CountdownBlock-eGUE7hhw.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-Ckc_jEi-.js → CountdownToolbar-C1bkSjUR.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-Ckc_jEi-.js.map → CountdownToolbar-C1bkSjUR.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-DF5Ajuna.js → IssuesPanel-Csasylf_.js} +5 -5
- package/dist/cdn/chunks/{IssuesPanel-DF5Ajuna.js.map → IssuesPanel-Csasylf_.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DG4AVFjH.js → ModuleBrowserModal-DznWWtBI.js} +7 -7
- package/dist/cdn/chunks/{ModuleBrowserModal-DG4AVFjH.js.map → ModuleBrowserModal-DznWWtBI.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bc_PcJuc.js → ModulePreviewCanvas-D-h7fr87.js} +20 -20
- package/dist/cdn/chunks/{ModulePreviewCanvas-Bc_PcJuc.js.map → ModulePreviewCanvas-D-h7fr87.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-8fOO-LC_.js → NumberWithSuffix-Dt-0odUN.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-8fOO-LC_.js.map → NumberWithSuffix-Dt-0odUN.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-BkafKSju.js → ParagraphEditor-v0_XEL-v.js} +18 -18
- package/dist/cdn/chunks/{ParagraphEditor-BkafKSju.js.map → ParagraphEditor-v0_XEL-v.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-BthhzOZS.js → RichTextEditorContent-NQExNsaV.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-BthhzOZS.js.map → RichTextEditorContent-NQExNsaV.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DhsfYf2n.js → SaveModuleDialog-BpFhTi-k.js} +5 -5
- package/dist/cdn/chunks/{SaveModuleDialog-DhsfYf2n.js.map → SaveModuleDialog-BpFhTi-k.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DLv9cXba.js → TitleEditor-CS-_MzYs.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-DLv9cXba.js.map → TitleEditor-CS-_MzYs.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-B0uibGX7.js → blockTypeIcons-B0Hjh42a.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-B0uibGX7.js.map → blockTypeIcons-B0Hjh42a.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-DLHvZ0UH.js → extensions-Di3hdIRT.js} +22 -22
- package/dist/cdn/chunks/{extensions-DLHvZ0UH.js.map → extensions-Di3hdIRT.js.map} +1 -1
- package/dist/cdn/chunks/{features-Cnfv4QAY.js → features-CLIZ7Q-Y.js} +1490 -1447
- package/dist/cdn/chunks/features-CLIZ7Q-Y.js.map +1 -0
- package/dist/cdn/chunks/{icons-DbcM69bb.js → icons-GX40Qm2W.js} +2 -2
- package/dist/cdn/chunks/{icons-DbcM69bb.js.map → icons-GX40Qm2W.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-DpSMwHd4.js → media-library-yYAkAagU.js} +80 -80
- package/dist/cdn/chunks/{media-library-DpSMwHd4.js.map → media-library-yYAkAagU.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-CIwiKF8H.js → pusher-R0v5p99W.js} +27 -22
- package/dist/cdn/chunks/pusher-R0v5p99W.js.map +1 -0
- package/dist/cdn/chunks/quality-DffYv9j5.js +2180 -0
- package/dist/cdn/chunks/{quality-D9QqkRcU.js.map → quality-DffYv9j5.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-BsLQZNXU.js → renderer-DpBGiXOg.js} +13 -13
- package/dist/cdn/chunks/{renderer-BsLQZNXU.js.map → renderer-DpBGiXOg.js.map} +1 -1
- package/dist/cdn/chunks/{src-zu1ehVNN.js → src-9K6uFiuK.js} +4 -4
- package/dist/cdn/chunks/{src-zu1ehVNN.js.map → src-9K6uFiuK.js.map} +1 -1
- package/dist/cdn/chunks/{styles-Dx-jXeCd.js → styles-DHSmjlpX.js} +837 -833
- package/dist/cdn/chunks/styles-DHSmjlpX.js.map +1 -0
- package/dist/cdn/editor.js +11 -11
- package/dist/{check-Cg6Mc2pP.js → check-Bl4J_tYV.js} +1 -1
- package/dist/{chevron-down-dClfxKrJ.js → chevron-down-COEcl2iP.js} +1 -1
- package/dist/{circle-alert-Bhzm-fNA.js → circle-alert-CvHi5etc.js} +1 -1
- package/dist/{clock-m7TwQw4b.js → clock-CZZw62e8.js} +1 -1
- package/dist/{createLucideIcon-FSF4peHQ.js → createLucideIcon-_peTZQtY.js} +2 -2
- package/dist/{image-up-CDEgJqwA.js → image-up-D26rNdfX.js} +1 -1
- package/dist/{info-BNP8yGsK.js → info-CE3JSTqk.js} +1 -1
- package/dist/{list-checks-jepi4iYr.js → list-checks-BQsLrtBB.js} +1 -1
- package/dist/{loader-circle-BT38qSm3.js → loader-circle-s9Rh5lLd.js} +1 -1
- package/dist/{message-circle-BAHcL9S-.js → message-circle-CI62d690.js} +1 -1
- package/dist/{refresh-cw-as5Bmg4X.js → refresh-cw-DlYfl65Y.js} +1 -1
- package/dist/{scan-line-IAMjPtRw.js → scan-line-CHadrYVb.js} +1 -1
- package/dist/{send-DvMay6bt.js → send-CbP40otC.js} +1 -1
- package/dist/{shield-check-YYDhGroE.js → shield-check-Bnj9aRoJ.js} +1 -1
- package/dist/{sparkles-CCwQMMMZ.js → sparkles-CncWT57a.js} +1 -1
- package/dist/{styles-64uLkPJV.js → styles-DkF_-uX8.js} +658 -654
- package/dist/templatical-editor.js +4 -4
- package/dist/{text-align-start-BwsA6QzC.js → text-align-start-B458vzYw.js} +1 -1
- package/dist/{trash-2-CRBDolnR.js → trash-2-DO0yjSU1.js} +1 -1
- package/dist/{triangle-alert-B2g0ALvq.js → triangle-alert-C18_ima6.js} +1 -1
- package/dist/{upload-y4gxiFp5.js → upload-DsCd2zTR.js} +1 -1
- package/dist/{useEditorCore-ea9OrrH3.js → useEditorCore-kKUemYY6.js} +910 -867
- package/dist/{x-Ctg_250T.js → x-BCFQuE_q.js} +1 -1
- package/package.json +10 -10
- package/dist/cdn/chunks/ColorPicker-y_obnw4o.js.map +0 -1
- package/dist/cdn/chunks/features-Cnfv4QAY.js.map +0 -1
- package/dist/cdn/chunks/pusher-CIwiKF8H.js.map +0 -1
- package/dist/cdn/chunks/quality-D9QqkRcU.js +0 -2180
- package/dist/cdn/chunks/styles-Dx-jXeCd.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { $ as e, A as t, H as n, J as r, M as i, N as a, P as o, V as s, Z as c, _ as l, b as u, ct as d, f, g as p, h as m, it as h, j as g, l as _, m as v, n as y, ot as b, p as x, s as S, st as C, u as w, v as T, x as E, y as D, z as O } from "./draggable-D840DIZB.js";
|
|
2
|
-
import { At as k,
|
|
3
|
-
import { S as
|
|
4
|
-
import { a as
|
|
5
|
-
import { d as
|
|
2
|
+
import { At as k, E as A, En as j, Kt as M, Ln as N, Pt as P, Qt as ee, S as F, St as I, Un as L, Ut as R, Vt as te, Wt as z, X as B, Xt as V, Yt as ne, _ as re, _n as H, _t as U, at as W, b as G, c as K, cn as q, d as ie, dn as ae, dt as J, f as Y, g as oe, h as se, jt as X, k as Z, l as Q, m as ce, mt as le, nr as ue, p as de, s as fe, st as pe, tt as me, u as he, un as ge, v as _e, x as ve, xt as ye, y as be } from "./features-CLIZ7Q-Y.js";
|
|
3
|
+
import { S as xe, x as Se } from "./icons-GX40Qm2W.js";
|
|
4
|
+
import { a as Ce, c as we, d as Te, f as Ee, i as De, l as Oe, n as ke, o as Ae, r as je, s as Me, t as Ne, u as Pe } from "./styles-DHSmjlpX.js";
|
|
5
|
+
import { d as $ } from "./ColorPicker-ll8pynws.js";
|
|
6
6
|
//#region src/cloud/composables/useSnapshotPreview.ts
|
|
7
7
|
function Fe(t) {
|
|
8
8
|
let { authManager: n, editor: i, history: a, conditionPreview: o, autoSave: s, onError: l } = t, u = e(null), d = c(null), p = c(null), m = !1;
|
|
@@ -11,7 +11,7 @@ function Fe(t) {
|
|
|
11
11
|
});
|
|
12
12
|
let h = f(() => d.value !== null), g = f(() => u.value?.snapshots.value ?? []), _ = f(() => u.value?.isLoading.value ?? !1), v = f(() => u.value?.isRestoring.value ?? !1);
|
|
13
13
|
function y() {
|
|
14
|
-
i.state.template?.id && !u.value && (u.value =
|
|
14
|
+
i.state.template?.id && !u.value && (u.value = Y({
|
|
15
15
|
authManager: n,
|
|
16
16
|
templateId: i.state.template.id,
|
|
17
17
|
onRestore: b,
|
|
@@ -86,7 +86,7 @@ function Ie() {
|
|
|
86
86
|
function g(t) {
|
|
87
87
|
l.value = !1, e.value = e.value === t ? null : t;
|
|
88
88
|
}
|
|
89
|
-
return
|
|
89
|
+
return H(u, () => {
|
|
90
90
|
l.value = !1;
|
|
91
91
|
}), {
|
|
92
92
|
activePanel: e,
|
|
@@ -109,9 +109,9 @@ function Ie() {
|
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region src/cloud/composables/useCollabUndoWarning.ts
|
|
111
111
|
function Le(e) {
|
|
112
|
-
let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = c(!1), a = c(!1), { start: o } =
|
|
112
|
+
let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = c(!1), a = c(!1), { start: o } = j(() => {
|
|
113
113
|
a.value = !1;
|
|
114
|
-
},
|
|
114
|
+
}, ue, { immediate: !1 });
|
|
115
115
|
function s() {
|
|
116
116
|
i.value || !t.value || n() === 0 || !r.value || (i.value = !0, a.value = !0, o());
|
|
117
117
|
}
|
|
@@ -123,7 +123,7 @@ function Le(e) {
|
|
|
123
123
|
//#endregion
|
|
124
124
|
//#region src/cloud/composables/useCloudFeatureFlags.ts
|
|
125
125
|
function Re(e) {
|
|
126
|
-
let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = f(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = f(() => t.hasFeature("test_email")), o = f(() => !!r.state.template?.id), s = f(() => t.hasFeature("white_label")), l = f(() => t.config.value?.limits.max_templates ?? null), u = f(() => t.config.value?.template_count ?? 0), d = c(!1), p = c("idle"), m = c(""), { start: h } =
|
|
126
|
+
let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = f(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = f(() => t.hasFeature("test_email")), o = f(() => !!r.state.template?.id), s = f(() => t.hasFeature("white_label")), l = f(() => t.config.value?.limits.max_templates ?? null), u = f(() => t.config.value?.template_count ?? 0), d = c(!1), p = c("idle"), m = c(""), { start: h } = j(() => {
|
|
127
127
|
p.value = "idle";
|
|
128
128
|
}, 3e3, { immediate: !1 });
|
|
129
129
|
return {
|
|
@@ -175,7 +175,7 @@ function ze(e) {
|
|
|
175
175
|
let t = f(e);
|
|
176
176
|
if (t) return s?.(t), null;
|
|
177
177
|
try {
|
|
178
|
-
let { MediaApiClient: t } = await import("./src-
|
|
178
|
+
let { MediaApiClient: t } = await import("./src-9K6uFiuK.js");
|
|
179
179
|
return l(await new t(a).uploadMedia(e));
|
|
180
180
|
} catch (e) {
|
|
181
181
|
return s?.(e), null;
|
|
@@ -204,29 +204,29 @@ function ze(e) {
|
|
|
204
204
|
//#endregion
|
|
205
205
|
//#region src/cloud/composables/useCloudInitialization.ts
|
|
206
206
|
function Be(e) {
|
|
207
|
-
let { config: t, translations: n, fontsManager: r, emit: i, getCommentsSidebar: o } = e, s = c(!0), l = c(!1), u = c(null), d = !1, p = { value: null }, m = null, h = null, g = new
|
|
207
|
+
let { config: t, translations: n, fontsManager: r, emit: i, getCommentsSidebar: o } = e, s = c(!0), l = c(!1), u = c(null), d = !1, p = { value: null }, m = null, h = null, g = new A({
|
|
208
208
|
...t.auth,
|
|
209
209
|
onError: t.onError
|
|
210
|
-
}), _ =
|
|
210
|
+
}), _ = Q({
|
|
211
211
|
authManager: g,
|
|
212
212
|
onError: t.onError
|
|
213
|
-
}), v = c(/* @__PURE__ */ new Map()), y =
|
|
213
|
+
}), v = c(/* @__PURE__ */ new Map()), y = ve({
|
|
214
214
|
authManager: g,
|
|
215
215
|
defaultFontFamily: t.fonts?.defaultFont,
|
|
216
216
|
templateDefaults: t.templateDefaults,
|
|
217
217
|
onError: t.onError,
|
|
218
218
|
lockedBlocks: v
|
|
219
|
-
}), b =
|
|
219
|
+
}), b = ce({
|
|
220
220
|
authManager: g,
|
|
221
221
|
onError: t.onError
|
|
222
222
|
});
|
|
223
|
-
t.mcp?.enabled &&
|
|
223
|
+
t.mcp?.enabled && fe({
|
|
224
224
|
editor: y,
|
|
225
225
|
channel: b.channel,
|
|
226
226
|
onOperation: t.mcp.onOperation
|
|
227
227
|
});
|
|
228
228
|
let x = null;
|
|
229
|
-
t.collaboration?.enabled && (x =
|
|
229
|
+
t.collaboration?.enabled && (x = oe({
|
|
230
230
|
authManager: g,
|
|
231
231
|
editor: y,
|
|
232
232
|
channel: b.channel,
|
|
@@ -237,8 +237,8 @@ function Be(e) {
|
|
|
237
237
|
onBlockUnlocked: t.collaboration.onBlockUnlocked
|
|
238
238
|
}), O(() => x.lockedBlocks.value, (e) => {
|
|
239
239
|
v.value = e;
|
|
240
|
-
}, { immediate: !0 }),
|
|
241
|
-
let S = f(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), C =
|
|
240
|
+
}, { immediate: !0 }), se(y, x));
|
|
241
|
+
let S = f(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), C = Z({
|
|
242
242
|
editor: y,
|
|
243
243
|
config: {
|
|
244
244
|
uiTheme: t.uiTheme,
|
|
@@ -253,7 +253,7 @@ function Be(e) {
|
|
|
253
253
|
logicTags: t.logicTags,
|
|
254
254
|
displayConditions: t.displayConditions,
|
|
255
255
|
onRequestMedia: null,
|
|
256
|
-
lint:
|
|
256
|
+
lint: Ee(t),
|
|
257
257
|
onSave: () => {
|
|
258
258
|
p.value?.().catch((e) => {
|
|
259
259
|
t.onError?.(e);
|
|
@@ -289,11 +289,11 @@ function Be(e) {
|
|
|
289
289
|
onError: t.onError
|
|
290
290
|
});
|
|
291
291
|
m = T;
|
|
292
|
-
let E = Ie(), D =
|
|
292
|
+
let E = Ie(), D = G(t.ai), k = Re({
|
|
293
293
|
planConfigInstance: _,
|
|
294
294
|
aiConfig: D,
|
|
295
295
|
editor: y
|
|
296
|
-
}),
|
|
296
|
+
}), j = ze({
|
|
297
297
|
onRequestMedia: t.onRequestMedia,
|
|
298
298
|
mediaLibraryOpen: E.mediaLibraryOpen,
|
|
299
299
|
mediaLibraryAccept: E.mediaLibraryAccept,
|
|
@@ -301,23 +301,23 @@ function Be(e) {
|
|
|
301
301
|
getMediaConfig: () => _.config.value?.media ?? null,
|
|
302
302
|
onError: t.onError
|
|
303
303
|
});
|
|
304
|
-
|
|
304
|
+
me({
|
|
305
305
|
onBlockMove: y.moveBlock,
|
|
306
306
|
onBlockAdd: y.addBlock
|
|
307
307
|
});
|
|
308
|
-
let
|
|
308
|
+
let N = he({
|
|
309
309
|
authManager: g,
|
|
310
310
|
getFontsConfig: () => t.fonts,
|
|
311
311
|
canUseCustomFonts: () => _.hasFeature("custom_fonts")
|
|
312
|
-
}),
|
|
312
|
+
}), P = ie({
|
|
313
313
|
authManager: g,
|
|
314
314
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
315
315
|
save: () => y.save(),
|
|
316
|
-
exportHtml: (e) =>
|
|
316
|
+
exportHtml: (e) => N.exportHtml(e),
|
|
317
317
|
onError: t.onError,
|
|
318
318
|
isAuthReady: l,
|
|
319
319
|
onBeforeTestEmail: t.onBeforeTestEmail
|
|
320
|
-
}),
|
|
320
|
+
}), F = _e({
|
|
321
321
|
authManager: g,
|
|
322
322
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
323
323
|
getSocketId: () => b.getSocketId(),
|
|
@@ -326,43 +326,43 @@ function Be(e) {
|
|
|
326
326
|
isAuthReady: l,
|
|
327
327
|
hasCommentingFeature: () => t.commenting !== !1 && _.hasFeature("commenting")
|
|
328
328
|
});
|
|
329
|
-
|
|
330
|
-
comments:
|
|
329
|
+
re({
|
|
330
|
+
comments: F,
|
|
331
331
|
channel: b.channel
|
|
332
332
|
});
|
|
333
|
-
let
|
|
333
|
+
let I = de({
|
|
334
334
|
authManager: g,
|
|
335
335
|
onError: t.onError
|
|
336
|
-
}),
|
|
336
|
+
}), L = c(!1), R = c(null), B = c(!1), V = be({
|
|
337
337
|
authManager: g,
|
|
338
338
|
getTemplateId: () => y.state.template?.id ?? null
|
|
339
339
|
});
|
|
340
|
-
function
|
|
340
|
+
function H(e) {
|
|
341
341
|
E.commentsOpen.value = !0, queueMicrotask(() => {
|
|
342
342
|
o()?.filterByBlock(e);
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
|
-
a(
|
|
345
|
+
a(q, j.handleRequestMedia), a(M, g), a(z, D), a(ee, F), a(ge, I), a(ae, V), a(ne, {
|
|
346
346
|
plan: _,
|
|
347
347
|
ai: D,
|
|
348
348
|
comments: {
|
|
349
|
-
getBlockCount: (e) =>
|
|
350
|
-
openForBlock:
|
|
349
|
+
getBlockCount: (e) => F.commentCountByBlock.value.get(e) ?? 0,
|
|
350
|
+
openForBlock: H
|
|
351
351
|
},
|
|
352
352
|
savedModules: {
|
|
353
353
|
openSaveDialog: (e) => {
|
|
354
|
-
|
|
354
|
+
R.value = e ?? null, L.value = !0;
|
|
355
355
|
},
|
|
356
356
|
openBrowser: () => {
|
|
357
|
-
|
|
357
|
+
B.value = !0;
|
|
358
358
|
},
|
|
359
|
-
moduleCount: f(() =>
|
|
359
|
+
moduleCount: f(() => I.modules.value.length)
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
|
-
function
|
|
362
|
+
function U(e) {
|
|
363
363
|
_.hasFeature("theme_customization") && (C.themeOverrides.value = e);
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function W(e) {
|
|
366
366
|
y.setUiTheme(e);
|
|
367
367
|
}
|
|
368
368
|
async function J() {
|
|
@@ -370,12 +370,12 @@ function Be(e) {
|
|
|
370
370
|
try {
|
|
371
371
|
if (await g.initialize(), d) return;
|
|
372
372
|
l.value = !0;
|
|
373
|
-
let e = await
|
|
373
|
+
let e = await K({ authManager: g });
|
|
374
374
|
if (d) return;
|
|
375
375
|
if (!e.api.ok) throw Error("Health check failed: API is not reachable");
|
|
376
376
|
if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
|
|
377
|
-
if (e.websocket.ok ||
|
|
378
|
-
r.setCustomFontsEnabled(_.hasFeature("custom_fonts")), t.customBlocks?.length && _.hasFeature("custom_blocks") && C.registerCustomBlocks(t.customBlocks), t.theme && _.hasFeature("theme_customization") && (C.themeOverrides.value = t.theme), t.modules !== !1 && _.hasFeature("saved_modules") &&
|
|
377
|
+
if (e.websocket.ok || te.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await _.fetchConfig(), d) return;
|
|
378
|
+
r.setCustomFontsEnabled(_.hasFeature("custom_fonts")), t.customBlocks?.length && _.hasFeature("custom_blocks") && C.registerCustomBlocks(t.customBlocks), t.theme && _.hasFeature("theme_customization") && (C.themeOverrides.value = t.theme), t.modules !== !1 && _.hasFeature("saved_modules") && I.loadModules(), i("ready");
|
|
379
379
|
} catch (e) {
|
|
380
380
|
if (d) return;
|
|
381
381
|
let n = e instanceof Error ? e : Error("Initialization failed", { cause: e });
|
|
@@ -401,31 +401,31 @@ function Be(e) {
|
|
|
401
401
|
core: C,
|
|
402
402
|
aiConfig: D,
|
|
403
403
|
featureFlags: k,
|
|
404
|
-
mediaLib:
|
|
405
|
-
exporter:
|
|
406
|
-
testEmail:
|
|
407
|
-
commentsInstance:
|
|
408
|
-
savedModulesHeadless:
|
|
409
|
-
scoringInstance:
|
|
404
|
+
mediaLib: j,
|
|
405
|
+
exporter: N,
|
|
406
|
+
testEmail: P,
|
|
407
|
+
commentsInstance: F,
|
|
408
|
+
savedModulesHeadless: I,
|
|
409
|
+
scoringInstance: V,
|
|
410
410
|
panelState: E,
|
|
411
411
|
snapshotPreview: T,
|
|
412
412
|
collabWarning: w,
|
|
413
|
-
showSaveModuleDialog:
|
|
414
|
-
showModuleBrowserModal:
|
|
415
|
-
saveModulePreSelectedBlockId:
|
|
413
|
+
showSaveModuleDialog: L,
|
|
414
|
+
showModuleBrowserModal: B,
|
|
415
|
+
saveModulePreSelectedBlockId: R,
|
|
416
416
|
onSaveHook: p,
|
|
417
417
|
initialize: J,
|
|
418
418
|
destroy: Y,
|
|
419
|
-
setThemeOverrides:
|
|
420
|
-
setUiTheme:
|
|
421
|
-
openCommentsForBlock:
|
|
419
|
+
setThemeOverrides: U,
|
|
420
|
+
setUiTheme: W,
|
|
421
|
+
openCommentsForBlock: H
|
|
422
422
|
};
|
|
423
423
|
}
|
|
424
424
|
//#endregion
|
|
425
425
|
//#region src/utils/preRenderCustomBlocks.ts
|
|
426
426
|
async function Ve(e, t) {
|
|
427
427
|
let n = async (e) => {
|
|
428
|
-
if (
|
|
428
|
+
if (L(e)) {
|
|
429
429
|
let n = e;
|
|
430
430
|
try {
|
|
431
431
|
n.renderedHtml = await t.renderCustomBlock(n);
|
|
@@ -445,7 +445,7 @@ async function Ve(e, t) {
|
|
|
445
445
|
function He(e) {
|
|
446
446
|
let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
|
|
447
447
|
function u() {
|
|
448
|
-
return
|
|
448
|
+
return F(i.config.value.websocket);
|
|
449
449
|
}
|
|
450
450
|
async function d(e) {
|
|
451
451
|
let i = await n.create(e);
|
|
@@ -531,7 +531,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
531
531
|
class: "tpl:fixed tpl:inset-0 tpl:z-50 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/40 tpl:p-6",
|
|
532
532
|
onClick: a[2] ||= _((e) => n("cancel"), ["self"])
|
|
533
533
|
}, [x("div", Ge, [
|
|
534
|
-
x("header", Ke, [D(h(
|
|
534
|
+
x("header", Ke, [D(h(J), {
|
|
535
535
|
size: 18,
|
|
536
536
|
"stroke-width": 2,
|
|
537
537
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
@@ -598,22 +598,22 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
598
598
|
},
|
|
599
599
|
emits: ["save"],
|
|
600
600
|
setup(e) {
|
|
601
|
-
let t = u(() => import("./CollaboratorBar-
|
|
601
|
+
let t = u(() => import("./CollaboratorBar-Bk1gD02G.js")), n = u(() => import("./features-CLIZ7Q-Y.js").then((e) => e.r)), r = u(() => import("./AiFeatureMenu-CIBHAGSz.js")), { t: a, format: o } = W();
|
|
602
602
|
return (c, l) => (i(), p("header", et, [
|
|
603
603
|
x("div", tt, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", nt, d(h(o)(h(a).header.templatesUsed, {
|
|
604
604
|
used: e.featureFlags.templateCount.value,
|
|
605
605
|
max: e.featureFlags.templateLimit.value
|
|
606
606
|
})), 1))]),
|
|
607
607
|
x("div", rt, [
|
|
608
|
-
D(
|
|
608
|
+
D(Ae, {
|
|
609
609
|
viewport: e.editor.state.viewport,
|
|
610
610
|
onChange: e.editor.setViewport
|
|
611
611
|
}, null, 8, ["viewport", "onChange"]),
|
|
612
|
-
D(
|
|
612
|
+
D(De, {
|
|
613
613
|
"dark-mode": e.editor.state.darkMode,
|
|
614
614
|
onChange: e.editor.setDarkMode
|
|
615
615
|
}, null, 8, ["dark-mode", "onChange"]),
|
|
616
|
-
D(
|
|
616
|
+
D(Ce, {
|
|
617
617
|
"preview-mode": e.editor.state.previewMode,
|
|
618
618
|
onChange: e.editor.setPreviewMode
|
|
619
619
|
}, null, 8, ["preview-mode", "onChange"]),
|
|
@@ -646,7 +646,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
646
646
|
}, [D(h(X), {
|
|
647
647
|
size: 12,
|
|
648
648
|
"stroke-width": 2.5
|
|
649
|
-
}), T(" " + d(h(a).header.saveFailed), 1)], 8, at)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", ot, [D(h(
|
|
649
|
+
}), T(" " + d(h(a).header.saveFailed), 1)], 8, at)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", ot, [D(h(P), {
|
|
650
650
|
size: 12,
|
|
651
651
|
"stroke-width": 2.5
|
|
652
652
|
}), T(" " + d(h(a).header.saved), 1)])) : e.editor.state.isDirty ? (i(), p("div", st, [l[4] ||= x("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), T(" " + d(h(a).header.unsaved), 1)])) : m("", !0),
|
|
@@ -654,7 +654,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
654
654
|
key: 3,
|
|
655
655
|
"aria-label": e.commentsInstance.unresolvedCount.value > 0 ? `${h(a).comments.button} (${e.commentsInstance.unresolvedCount.value})` : h(a).comments.button,
|
|
656
656
|
"aria-expanded": e.panelState.commentsOpen.value,
|
|
657
|
-
class: b(h(
|
|
657
|
+
class: b(h($)),
|
|
658
658
|
style: C({
|
|
659
659
|
backgroundColor: e.panelState.commentsOpen.value ? "var(--tpl-primary)" : "transparent",
|
|
660
660
|
color: e.panelState.commentsOpen.value ? "var(--tpl-bg)" : "var(--tpl-primary)",
|
|
@@ -662,7 +662,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
662
662
|
}),
|
|
663
663
|
onClick: l[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
|
|
664
664
|
}, [
|
|
665
|
-
D(h(
|
|
665
|
+
D(h(ye), {
|
|
666
666
|
size: 16,
|
|
667
667
|
"stroke-width": 2
|
|
668
668
|
}),
|
|
@@ -677,7 +677,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
677
677
|
"aria-expanded": e.panelState.aiMenuOpen.value,
|
|
678
678
|
class: b(["tpl-ai-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:whitespace-nowrap tpl:transition-all tpl:duration-200", e.panelState.aiButtonActive.value ? "tpl-ai-btn--active" : "tpl-ai-btn--idle"]),
|
|
679
679
|
onClick: l[1] ||= _((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
|
|
680
|
-
}, [D(h(
|
|
680
|
+
}, [D(h(le), {
|
|
681
681
|
size: 16,
|
|
682
682
|
"stroke-width": 2,
|
|
683
683
|
class: "tpl-ai-btn-icon"
|
|
@@ -697,7 +697,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
697
697
|
})], 512)) : m("", !0),
|
|
698
698
|
e.testEmail.isEnabled.value && e.featureFlags.canSendTestEmail.value ? (i(), p("button", {
|
|
699
699
|
key: 5,
|
|
700
|
-
class: b(h(
|
|
700
|
+
class: b(h($)),
|
|
701
701
|
style: {
|
|
702
702
|
"background-color": "transparent",
|
|
703
703
|
color: "var(--tpl-primary)",
|
|
@@ -705,7 +705,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
705
705
|
},
|
|
706
706
|
disabled: e.testEmail.isSending.value || !e.featureFlags.hasTemplateSaved.value,
|
|
707
707
|
onClick: l[2] ||= (t) => e.panelState.testEmailModalOpen.value = !0
|
|
708
|
-
}, [e.testEmail.isSending.value ? (i(), v(h(
|
|
708
|
+
}, [e.testEmail.isSending.value ? (i(), v(h(I), {
|
|
709
709
|
key: 1,
|
|
710
710
|
class: "tpl-spinner",
|
|
711
711
|
size: 16,
|
|
@@ -716,7 +716,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
716
716
|
"stroke-width": 2
|
|
717
717
|
})), T(" " + d(h(a).testEmail.button), 1)], 10, ft)) : m("", !0),
|
|
718
718
|
x("button", {
|
|
719
|
-
class: b(h(
|
|
719
|
+
class: b(h($)),
|
|
720
720
|
style: {
|
|
721
721
|
"background-color": "transparent",
|
|
722
722
|
color: "var(--tpl-primary)",
|
|
@@ -724,12 +724,12 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
724
724
|
},
|
|
725
725
|
disabled: e.isSaveDisabled,
|
|
726
726
|
onClick: l[3] ||= (e) => c.$emit("save")
|
|
727
|
-
}, [e.isSaving ? (i(), v(h(
|
|
727
|
+
}, [e.isSaving ? (i(), v(h(I), {
|
|
728
728
|
key: 1,
|
|
729
729
|
class: "tpl-spinner",
|
|
730
730
|
size: 16,
|
|
731
731
|
"stroke-width": 2
|
|
732
|
-
})) : (i(), v(h(
|
|
732
|
+
})) : (i(), v(h(Se), {
|
|
733
733
|
key: 0,
|
|
734
734
|
size: 16,
|
|
735
735
|
"stroke-width": 2
|
|
@@ -760,9 +760,9 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
760
760
|
"module-insert"
|
|
761
761
|
],
|
|
762
762
|
setup(e, { expose: t, emit: n }) {
|
|
763
|
-
let r = u(() => import("./features-
|
|
763
|
+
let r = u(() => import("./features-CLIZ7Q-Y.js").then((e) => e.o)), a = u(() => import("./features-CLIZ7Q-Y.js").then((e) => e.a)), o = u(() => import("./features-CLIZ7Q-Y.js").then((e) => e.i)), s = u(() => import("./features-CLIZ7Q-Y.js").then((e) => e.n)), l = u(() => import("./features-CLIZ7Q-Y.js").then((e) => e.t)), d = u(() => import("./SaveModuleDialog-BpFhTi-k.js")), f = u(() => import("./ModuleBrowserModal-DznWWtBI.js")), g = u(async () => {
|
|
764
764
|
try {
|
|
765
|
-
return (await import("./src-
|
|
765
|
+
return (await import("./src-9K6uFiuK.js")).MediaLibraryModal;
|
|
766
766
|
} catch {
|
|
767
767
|
throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
|
|
768
768
|
}
|
|
@@ -923,10 +923,10 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
923
923
|
__name: "CollabUndoToast",
|
|
924
924
|
props: { visible: { type: Boolean } },
|
|
925
925
|
setup(e) {
|
|
926
|
-
let { t } =
|
|
926
|
+
let { t } = R();
|
|
927
927
|
return (n, r) => e.visible ? (i(), p("div", At, d(h(t).history.collabWarning), 1)) : m("", !0);
|
|
928
928
|
}
|
|
929
|
-
}), Mt = ["data-tpl-theme"], Nt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Pt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Ft = ["aria-label"], It = /*#__PURE__*/
|
|
929
|
+
}), Mt = ["data-tpl-theme"], Nt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Pt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Ft = ["aria-label"], It = /*#__PURE__*/ pe(/* @__PURE__ */ E({
|
|
930
930
|
__name: "CloudEditor",
|
|
931
931
|
props: {
|
|
932
932
|
config: {},
|
|
@@ -938,7 +938,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
938
938
|
emits: ["ready"],
|
|
939
939
|
setup(e, { expose: r, emit: o }) {
|
|
940
940
|
let l = e;
|
|
941
|
-
a(
|
|
941
|
+
a(V, l.cloudTranslations);
|
|
942
942
|
let u = o, f = c(null), w = c(null), E = Be({
|
|
943
943
|
config: l.config,
|
|
944
944
|
translations: l.translations,
|
|
@@ -947,54 +947,54 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
947
947
|
getCommentsSidebar: () => f.value ? { filterByBlock: f.value.filterCommentsByBlock } : null,
|
|
948
948
|
editorRoot: l.shadowRoot,
|
|
949
949
|
containerEl: w
|
|
950
|
-
}), { isInitializing: O, isAuthReady: k, initError: A, planConfigInstance: j, websocket: M, collaboration:
|
|
951
|
-
async function
|
|
950
|
+
}), { isInitializing: O, isAuthReady: k, initError: A, planConfigInstance: j, websocket: M, collaboration: P, isCollaborationEnabled: ee, editor: F, core: I, featureFlags: L, mediaLib: R, exporter: te, testEmail: z, commentsInstance: ne, savedModulesHeadless: re, panelState: H, snapshotPreview: U, collabWarning: W, showSaveModuleDialog: G, showModuleBrowserModal: K, saveModulePreSelectedBlockId: q, setThemeOverrides: ie, setUiTheme: ae } = E, { showNotice: J } = B(() => l.config.smallScreenNotice);
|
|
951
|
+
async function Y(e) {
|
|
952
952
|
try {
|
|
953
|
-
await
|
|
953
|
+
await z.sendTestEmail(e), H.testEmailModalOpen.value = !1;
|
|
954
954
|
} catch {}
|
|
955
955
|
}
|
|
956
|
-
async function
|
|
956
|
+
async function oe() {
|
|
957
957
|
try {
|
|
958
|
-
await
|
|
958
|
+
await U.confirmRestoreSnapshot();
|
|
959
959
|
} catch {}
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function se(e, t) {
|
|
962
962
|
for (let n = 0; n < e.content.length; n++) {
|
|
963
|
-
let r =
|
|
963
|
+
let r = N(e.content[n]), i = t === void 0 ? void 0 : t + n;
|
|
964
964
|
F.addBlock(r, void 0, void 0, i);
|
|
965
965
|
}
|
|
966
966
|
K.value = !1;
|
|
967
967
|
}
|
|
968
|
-
let
|
|
968
|
+
let X = He({
|
|
969
969
|
config: l.config,
|
|
970
970
|
editor: F,
|
|
971
971
|
websocket: M,
|
|
972
972
|
planConfigInstance: j,
|
|
973
|
-
snapshotPreview:
|
|
973
|
+
snapshotPreview: U,
|
|
974
974
|
core: I,
|
|
975
|
-
exporter:
|
|
975
|
+
exporter: te,
|
|
976
976
|
featureFlags: L,
|
|
977
977
|
isDestroyed: E.isDestroyed
|
|
978
|
-
}),
|
|
978
|
+
}), Z = Ue({
|
|
979
979
|
issues: I.templateLint ? I.templateLint.issues : c([]),
|
|
980
980
|
planConfig: j.config
|
|
981
981
|
});
|
|
982
|
-
async function
|
|
983
|
-
await
|
|
982
|
+
async function Q() {
|
|
983
|
+
await Z.tryRunSave(() => X.saveTemplate().catch((e) => l.config.onError?.(e)));
|
|
984
984
|
}
|
|
985
|
-
return E.onSaveHook.value =
|
|
985
|
+
return E.onSaveHook.value = Q, t(() => {
|
|
986
986
|
E.initialize();
|
|
987
987
|
}), g(() => {
|
|
988
988
|
E.destroy();
|
|
989
989
|
}), r({
|
|
990
990
|
getContent: () => F.content.value,
|
|
991
991
|
setContent: (e) => F.setContent(e),
|
|
992
|
-
setTheme:
|
|
993
|
-
setThemeOverrides:
|
|
994
|
-
create:
|
|
995
|
-
load:
|
|
996
|
-
save:
|
|
997
|
-
sendTestEmail:
|
|
992
|
+
setTheme: ae,
|
|
993
|
+
setThemeOverrides: ie,
|
|
994
|
+
create: X.createTemplate,
|
|
995
|
+
load: X.loadTemplate,
|
|
996
|
+
save: X.saveTemplate,
|
|
997
|
+
sendTestEmail: z.sendTestEmail
|
|
998
998
|
}), (t, r) => (i(), p("div", {
|
|
999
999
|
ref_key: "rootEl",
|
|
1000
1000
|
ref: w,
|
|
@@ -1004,7 +1004,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1004
1004
|
onDragover: r[9] ||= _(() => {}, ["prevent"]),
|
|
1005
1005
|
onDrop: r[10] ||= _(() => {}, ["prevent"])
|
|
1006
1006
|
}, [
|
|
1007
|
-
D(
|
|
1007
|
+
D(Pe),
|
|
1008
1008
|
D(y, {
|
|
1009
1009
|
"enter-active-class": "tpl:transition-opacity tpl:duration-200",
|
|
1010
1010
|
"enter-from-class": "tpl:opacity-100",
|
|
@@ -1039,16 +1039,16 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1039
1039
|
editor: h(F),
|
|
1040
1040
|
core: h(I),
|
|
1041
1041
|
"feature-flags": h(L),
|
|
1042
|
-
"panel-state": h(
|
|
1043
|
-
"snapshot-preview": h(
|
|
1044
|
-
"comments-instance": h(
|
|
1045
|
-
"test-email": h(
|
|
1042
|
+
"panel-state": h(H),
|
|
1043
|
+
"snapshot-preview": h(U),
|
|
1044
|
+
"comments-instance": h(ne),
|
|
1045
|
+
"test-email": h(z),
|
|
1046
1046
|
websocket: h(M),
|
|
1047
|
-
collaboration: h(
|
|
1048
|
-
"is-collaboration-enabled": h(
|
|
1047
|
+
collaboration: h(P),
|
|
1048
|
+
"is-collaboration-enabled": h(ee),
|
|
1049
1049
|
"is-saving": h(F).state.isSaving || h(L).isSaveExporting.value,
|
|
1050
1050
|
"is-save-disabled": h(F).state.isSaving || h(L).isSaveExporting.value || !h(F).state.isDirty,
|
|
1051
|
-
onSave:
|
|
1051
|
+
onSave: Q
|
|
1052
1052
|
}, null, 8, [
|
|
1053
1053
|
"editor",
|
|
1054
1054
|
"core",
|
|
@@ -1064,10 +1064,10 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1064
1064
|
"is-save-disabled"
|
|
1065
1065
|
]),
|
|
1066
1066
|
D($e, {
|
|
1067
|
-
open: h(
|
|
1068
|
-
issues: h(
|
|
1069
|
-
onCancel: h(
|
|
1070
|
-
onConfirm: h(
|
|
1067
|
+
open: h(Z).modalOpen.value,
|
|
1068
|
+
issues: h(Z).blockingIssues.value,
|
|
1069
|
+
onCancel: h(Z).cancel,
|
|
1070
|
+
onConfirm: h(Z).confirmAndSave
|
|
1071
1071
|
}, null, 8, [
|
|
1072
1072
|
"open",
|
|
1073
1073
|
"issues",
|
|
@@ -1075,9 +1075,9 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1075
1075
|
"onConfirm"
|
|
1076
1076
|
]),
|
|
1077
1077
|
D(kt, {
|
|
1078
|
-
visible: h(
|
|
1079
|
-
onCancel: h(
|
|
1080
|
-
onConfirm:
|
|
1078
|
+
visible: h(U).isPreviewingSnapshot.value,
|
|
1079
|
+
onCancel: h(U).cancelPreview,
|
|
1080
|
+
onConfirm: oe
|
|
1081
1081
|
}, null, 8, ["visible", "onCancel"]),
|
|
1082
1082
|
D(y, {
|
|
1083
1083
|
"enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
|
|
@@ -1087,12 +1087,12 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1087
1087
|
"leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
|
|
1088
1088
|
"leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
|
|
1089
1089
|
}, {
|
|
1090
|
-
default: s(() => [D(jt, { visible: h(
|
|
1090
|
+
default: s(() => [D(jt, { visible: h(W).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
|
|
1091
1091
|
_: 1
|
|
1092
1092
|
}),
|
|
1093
|
-
n(D(
|
|
1093
|
+
n(D(Oe, null, null, 512), [[S, !h(F).state.previewMode]]),
|
|
1094
1094
|
x("div", {
|
|
1095
|
-
class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(F).state.previewMode ? "tpl:left-0 tpl:right-0" : h(
|
|
1095
|
+
class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(F).state.previewMode ? "tpl:left-0 tpl:right-0" : h(H).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", h(U).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
1096
1096
|
style: {
|
|
1097
1097
|
transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1098
1098
|
"background-color": "var(--tpl-canvas-bg)"
|
|
@@ -1108,21 +1108,21 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1108
1108
|
"backdrop-filter": "blur(8px)"
|
|
1109
1109
|
},
|
|
1110
1110
|
onClick: r[0] ||= (e) => h(I).conditionPreview.reset()
|
|
1111
|
-
}, [D(h(
|
|
1111
|
+
}, [D(h(xe), {
|
|
1112
1112
|
size: 13,
|
|
1113
1113
|
"stroke-width": 2
|
|
1114
1114
|
}), T(" " + d(h(I).t.blockSettings.restoreHiddenBlocks), 1)])) : m("", !0)]),
|
|
1115
1115
|
_: 1
|
|
1116
|
-
})]), x("main", Pt, [D(
|
|
1116
|
+
})]), x("main", Pt, [D(Te, {
|
|
1117
1117
|
viewport: h(F).state.viewport,
|
|
1118
1118
|
content: h(F).content.value,
|
|
1119
1119
|
"selected-block-id": h(F).state.selectedBlockId,
|
|
1120
1120
|
"dark-mode": h(F).state.darkMode,
|
|
1121
1121
|
"preview-mode": h(F).state.previewMode,
|
|
1122
|
-
"locked-blocks": h(
|
|
1122
|
+
"locked-blocks": h(P)?.lockedBlocks.value ?? void 0,
|
|
1123
1123
|
onSelectBlock: h(F).selectBlock,
|
|
1124
|
-
onOpenAiChat: r[1] ||= (e) => h(
|
|
1125
|
-
onOpenDesignReference: r[2] ||= (e) => h(
|
|
1124
|
+
onOpenAiChat: r[1] ||= (e) => h(H).aiChatOpen.value = !0,
|
|
1125
|
+
onOpenDesignReference: r[2] ||= (e) => h(H).designReferenceOpen.value = !0
|
|
1126
1126
|
}, null, 8, [
|
|
1127
1127
|
"viewport",
|
|
1128
1128
|
"content",
|
|
@@ -1132,9 +1132,9 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1132
1132
|
"locked-blocks",
|
|
1133
1133
|
"onSelectBlock"
|
|
1134
1134
|
])])], 2),
|
|
1135
|
-
e.config.branding !== !1 && !h(L).isWhiteLabeled.value ? (i(), v(
|
|
1135
|
+
e.config.branding !== !1 && !h(L).isWhiteLabeled.value ? (i(), v(je, {
|
|
1136
1136
|
key: 0,
|
|
1137
|
-
"position-class": [h(F).state.previewMode ? "tpl:left-0 tpl:right-0" : h(
|
|
1137
|
+
"position-class": [h(F).state.previewMode ? "tpl:left-0 tpl:right-0" : h(H).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
|
|
1138
1138
|
}, null, 8, ["position-class"])) : m("", !0),
|
|
1139
1139
|
x("div", {
|
|
1140
1140
|
class: "tpl-sr-only",
|
|
@@ -1143,10 +1143,10 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1143
1143
|
"aria-atomic": "true",
|
|
1144
1144
|
"aria-label": h(I).t.landmarks.reorderAnnouncements
|
|
1145
1145
|
}, d(h(I).keyboardReorder.announcement.value), 9, Ft),
|
|
1146
|
-
n(D(
|
|
1146
|
+
n(D(we, {
|
|
1147
1147
|
"selected-block": h(F).selectedBlock.value,
|
|
1148
1148
|
settings: h(F).content.value.settings,
|
|
1149
|
-
"shifted-left": h(
|
|
1149
|
+
"shifted-left": h(H).rightPanelOpen.value,
|
|
1150
1150
|
onUpdateBlock: r[3] ||= (e) => h(F).updateBlock(h(F).selectedBlock.value.id, e),
|
|
1151
1151
|
onDeleteBlock: r[4] ||= (e) => h(I).blockActions.deleteBlock(h(F).selectedBlock.value.id),
|
|
1152
1152
|
onDuplicateBlock: r[5] ||= (e) => h(I).blockActions.duplicateBlock(h(F).selectedBlock.value),
|
|
@@ -1164,19 +1164,19 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1164
1164
|
config: l.config,
|
|
1165
1165
|
editor: h(F),
|
|
1166
1166
|
core: h(I),
|
|
1167
|
-
"panel-state": h(
|
|
1167
|
+
"panel-state": h(H),
|
|
1168
1168
|
"plan-config-instance": h(j),
|
|
1169
|
-
"test-email": h(
|
|
1169
|
+
"test-email": h(z),
|
|
1170
1170
|
"media-lib": h(R),
|
|
1171
|
-
"saved-modules-headless": h(
|
|
1171
|
+
"saved-modules-headless": h(re),
|
|
1172
1172
|
"show-save-module-dialog": h(G),
|
|
1173
1173
|
"save-module-pre-selected-block-id": h(q),
|
|
1174
1174
|
"show-module-browser-modal": h(K),
|
|
1175
1175
|
"onUpdate:showSaveModuleDialog": r[6] ||= (e) => G.value = e,
|
|
1176
1176
|
"onUpdate:saveModulePreSelectedBlockId": r[7] ||= (e) => q.value = e,
|
|
1177
1177
|
"onUpdate:showModuleBrowserModal": r[8] ||= (e) => K.value = e,
|
|
1178
|
-
onSendTestEmail:
|
|
1179
|
-
onModuleInsert:
|
|
1178
|
+
onSendTestEmail: Y,
|
|
1179
|
+
onModuleInsert: se
|
|
1180
1180
|
}, null, 8, [
|
|
1181
1181
|
"config",
|
|
1182
1182
|
"editor",
|
|
@@ -1194,13 +1194,13 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1194
1194
|
ref: (e) => h(I).popoverRoot.value = e,
|
|
1195
1195
|
class: "tpl-popover-root"
|
|
1196
1196
|
}, null, 512),
|
|
1197
|
-
D(
|
|
1198
|
-
D(
|
|
1199
|
-
h(
|
|
1197
|
+
D(ke),
|
|
1198
|
+
D(Ne),
|
|
1199
|
+
h(J) ? (i(), v(Me, { key: 2 })) : m("", !0)
|
|
1200
1200
|
], 46, Mt));
|
|
1201
1201
|
}
|
|
1202
1202
|
}), [["__scopeId", "data-v-3fc6c906"]]);
|
|
1203
1203
|
//#endregion
|
|
1204
1204
|
export { It as default };
|
|
1205
1205
|
|
|
1206
|
-
//# sourceMappingURL=CloudEditor-
|
|
1206
|
+
//# sourceMappingURL=CloudEditor-CEa3Xgqh.js.map
|