@templatical/editor 0.16.1 → 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiFeatureMenu-Rb8G3EBo.js → AiFeatureMenu-CcGRd1xE.js} +1 -1
- package/dist/{CloudEditor-D88gLBXp.js → CloudEditor-CUIWUMp5.js} +6 -6
- package/dist/{CollaboratorBar-dxCD8jSi.js → CollaboratorBar-DmxqeBYZ.js} +1 -1
- package/dist/ColorPicker-Gs4BMVog.js +474 -0
- package/dist/{CountdownToolbar-8XVTOuGX.js → CountdownToolbar-92w1YySJ.js} +2 -2
- package/dist/{ModuleBrowserModal-l4_RCC8m.js → ModuleBrowserModal-DsehjLvh.js} +4 -4
- package/dist/{ModulePreviewCanvas-BqYAr4fz.js → ModulePreviewCanvas-BBfuS8VW.js} +1 -1
- package/dist/{NumberWithSuffix-Di-cDy_m.js → NumberWithSuffix-BxSRfI8b.js} +1 -1
- package/dist/{ParagraphEditor-DIQ1jmSP.js → ParagraphEditor-vgvQxicC.js} +77 -87
- package/dist/{RichTextEditorContent-DkTJ6KK8.js → RichTextEditorContent-Dza2oPvh.js} +1 -1
- package/dist/{SaveModuleDialog-DPo3Raon.js → SaveModuleDialog-DNWGCHlS.js} +2 -2
- package/dist/{SnapshotHistory-m7brKV7C.js → SnapshotHistory-BLmnNLg1.js} +2 -2
- package/dist/{TestEmailModal-BE9sFEIl.js → TestEmailModal-D6v1hgY2.js} +2 -2
- package/dist/{TitleEditor-BATN-k-Q.js → TitleEditor-DPdzOQpq.js} +2 -2
- package/dist/{TplModal-DHBcZ1gq.js → TplModal-DObT0uxf.js} +1 -1
- package/dist/{blockTypeIcons-wRchKKx0.js → blockTypeIcons-B9f5fH_5.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-W7VQFAwq.js → AiFeatureMenu-CyUCHd9I.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-W7VQFAwq.js.map → AiFeatureMenu-CyUCHd9I.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-ww2vNIfJ.js → BlockIssueBadge-BAa_dI-c.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-ww2vNIfJ.js.map → BlockIssueBadge-BAa_dI-c.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BVSJ1kvB.js → CloudEditor-ClfgLU48.js} +159 -159
- package/dist/cdn/chunks/{CloudEditor-BVSJ1kvB.js.map → CloudEditor-ClfgLU48.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BFrAua9a.js → CollaboratorBar-DCc5SL0P.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-BFrAua9a.js.map → CollaboratorBar-DCc5SL0P.js.map} +1 -1
- package/dist/cdn/chunks/ColorPicker-Pi-1fR8c.js +471 -0
- package/dist/cdn/chunks/ColorPicker-Pi-1fR8c.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-MC-mhtQD.js → CountdownBlock-Bj7aoBUU.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-MC-mhtQD.js.map → CountdownBlock-Bj7aoBUU.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-dXyr7tz-.js → CountdownToolbar-B1oniVq1.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-dXyr7tz-.js.map → CountdownToolbar-B1oniVq1.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CTxSgViL.js → IssuesPanel-BXLVRo-c.js} +7 -7
- package/dist/cdn/chunks/{IssuesPanel-CTxSgViL.js.map → IssuesPanel-BXLVRo-c.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-B5sCsrud.js → ModuleBrowserModal-C7BkJvzf.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-B5sCsrud.js.map → ModuleBrowserModal-C7BkJvzf.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DGTGo8kg.js → ModulePreviewCanvas-BJn-ZHlC.js} +10 -10
- package/dist/cdn/chunks/{ModulePreviewCanvas-DGTGo8kg.js.map → ModulePreviewCanvas-BJn-ZHlC.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-tAHfui6k.js → NumberWithSuffix-CkOxH3F7.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-tAHfui6k.js.map → NumberWithSuffix-CkOxH3F7.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CB5FGRs3.js → ParagraphEditor-4cMKKC-V.js} +181 -190
- package/dist/cdn/chunks/ParagraphEditor-4cMKKC-V.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-CPelbtck.js → RichTextEditorContent-7RZe4tbj.js} +6 -6
- package/dist/cdn/chunks/{RichTextEditorContent-CPelbtck.js.map → RichTextEditorContent-7RZe4tbj.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-7f9uUUEC.js → SaveModuleDialog-mr9A4j6G.js} +4 -4
- package/dist/cdn/chunks/{SaveModuleDialog-7f9uUUEC.js.map → SaveModuleDialog-mr9A4j6G.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-C0mYpgs4.js → TitleEditor-Cqw2jvuc.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-C0mYpgs4.js.map → TitleEditor-Cqw2jvuc.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BtxaUtlx.js → blockTypeIcons-B_xRBxSU.js} +8 -8
- package/dist/cdn/chunks/{blockTypeIcons-BtxaUtlx.js.map → blockTypeIcons-B_xRBxSU.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-BJ7vaBol.js → extensions-Btyx_IMf.js} +19 -19
- package/dist/cdn/chunks/{extensions-BJ7vaBol.js.map → extensions-Btyx_IMf.js.map} +1 -1
- package/dist/cdn/chunks/{features-CgbSSCgv.js → features-Dwb5aTLg.js} +18 -16
- package/dist/cdn/chunks/features-Dwb5aTLg.js.map +1 -0
- package/dist/cdn/chunks/{icons-Dlx5MT1V.js → icons-Dhqh5lYQ.js} +2 -2
- package/dist/cdn/chunks/{icons-Dlx5MT1V.js.map → icons-Dhqh5lYQ.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-BMlykZGq.js → media-library-DRodsf2D.js} +101 -101
- package/dist/cdn/chunks/{media-library-BMlykZGq.js.map → media-library-DRodsf2D.js.map} +1 -1
- package/dist/cdn/chunks/{quality-DsVgXk_j.js → quality-A_V2Iqu_.js} +435 -435
- package/dist/cdn/chunks/{quality-DsVgXk_j.js.map → quality-A_V2Iqu_.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-DPvEtVGO.js → renderer-BM_-zceB.js} +12 -12
- package/dist/cdn/chunks/renderer-BM_-zceB.js.map +1 -0
- package/dist/cdn/chunks/{src-CAdirukY.js → src-DSomxPI-.js} +4 -4
- package/dist/cdn/chunks/{src-CAdirukY.js.map → src-DSomxPI-.js.map} +1 -1
- package/dist/cdn/chunks/{styles-D7u4vCpH.js → styles--UXn88wH.js} +829 -829
- package/dist/cdn/chunks/{styles-D7u4vCpH.js.map → styles--UXn88wH.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +30 -30
- package/dist/{dist-CFOQvhSC.js → color-DhoxCSMv.js} +9 -1
- package/dist/style.css +1 -1
- package/dist/{styles-B-yhoJnH.js → styles-CPt6RYEc.js} +6 -6
- package/dist/templatical-editor.js +4 -4
- package/dist/{useEditorCore-CV1ct_17.js → useEditorCore-CSfeEwCj.js} +196 -202
- package/package.json +8 -8
- package/dist/ColorPicker-CAgMCX3A.js +0 -442
- package/dist/cdn/chunks/ColorPicker-DmxMDn-t.js +0 -439
- package/dist/cdn/chunks/ColorPicker-DmxMDn-t.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-CB5FGRs3.js.map +0 -1
- package/dist/cdn/chunks/features-CgbSSCgv.js.map +0 -1
- package/dist/cdn/chunks/renderer-DPvEtVGO.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 { A as ee, At as k,
|
|
3
|
-
import { S as
|
|
4
|
-
import { a as
|
|
5
|
-
import { d as
|
|
2
|
+
import { A as ee, At as k, Bt as A, E as j, Gt as M, Ht as te, Kt as N, Lt as P, Mn as F, Pt as I, Rn as L, S as R, St as z, Y as B, Zn as V, _ as ne, _t as H, an as U, at as W, b as re, c as G, d as K, dt as q, f as J, fn as Y, g as ie, h as ae, jt as X, l as oe, m as Z, mt as Q, on as $, p as se, qt as ce, rn as le, s as ue, st as de, tt as fe, u as pe, v as me, x as he, xn as ge, xt as _e, y as ve, zt as ye } from "./features-Dwb5aTLg.js";
|
|
3
|
+
import { S as be, x as xe } from "./icons-Dhqh5lYQ.js";
|
|
4
|
+
import { a as Se, c as Ce, d as we, f as Te, i as Ee, l as De, n as Oe, o as ke, r as Ae, s as je, t as Me, u as Ne } from "./styles--UXn88wH.js";
|
|
5
|
+
import { d as Pe } from "./ColorPicker-Pi-1fR8c.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;
|
|
@@ -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 Y(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 } = ge(() => {
|
|
113
113
|
a.value = !1;
|
|
114
|
-
},
|
|
114
|
+
}, V, { 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 } = ge(() => {
|
|
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-DSomxPI-.js");
|
|
179
179
|
return l(await new t(a).uploadMedia(e));
|
|
180
180
|
} catch (e) {
|
|
181
181
|
return s?.(e), null;
|
|
@@ -204,23 +204,23 @@ 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 j({
|
|
208
208
|
...t.auth,
|
|
209
209
|
onError: t.onError
|
|
210
|
-
}), _ =
|
|
210
|
+
}), _ = oe({
|
|
211
211
|
authManager: g,
|
|
212
212
|
onError: t.onError
|
|
213
|
-
}), v = c(/* @__PURE__ */ new Map()), y =
|
|
213
|
+
}), v = c(/* @__PURE__ */ new Map()), y = he({
|
|
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 = Z({
|
|
220
220
|
authManager: g,
|
|
221
221
|
onError: t.onError
|
|
222
222
|
});
|
|
223
|
-
t.mcp?.enabled &&
|
|
223
|
+
t.mcp?.enabled && ue({
|
|
224
224
|
editor: y,
|
|
225
225
|
channel: b.channel,
|
|
226
226
|
onOperation: t.mcp.onOperation
|
|
@@ -250,7 +250,7 @@ function Be(e) {
|
|
|
250
250
|
logicTags: t.logicTags,
|
|
251
251
|
displayConditions: t.displayConditions,
|
|
252
252
|
onRequestMedia: null,
|
|
253
|
-
lint:
|
|
253
|
+
lint: Te(t),
|
|
254
254
|
onSave: () => {
|
|
255
255
|
p.value?.().catch((e) => {
|
|
256
256
|
t.onError?.(e);
|
|
@@ -286,11 +286,11 @@ function Be(e) {
|
|
|
286
286
|
onError: t.onError
|
|
287
287
|
});
|
|
288
288
|
m = T;
|
|
289
|
-
let E = Ie(), D =
|
|
289
|
+
let E = Ie(), D = re(t.ai), k = Re({
|
|
290
290
|
planConfigInstance: _,
|
|
291
291
|
aiConfig: D,
|
|
292
292
|
editor: y
|
|
293
|
-
}),
|
|
293
|
+
}), N = ze({
|
|
294
294
|
onRequestMedia: t.onRequestMedia,
|
|
295
295
|
mediaLibraryOpen: E.mediaLibraryOpen,
|
|
296
296
|
mediaLibraryAccept: E.mediaLibraryAccept,
|
|
@@ -298,23 +298,23 @@ function Be(e) {
|
|
|
298
298
|
getMediaConfig: () => _.config.value?.media ?? null,
|
|
299
299
|
onError: t.onError
|
|
300
300
|
});
|
|
301
|
-
|
|
301
|
+
fe({
|
|
302
302
|
onBlockMove: y.moveBlock,
|
|
303
303
|
onBlockAdd: y.addBlock
|
|
304
304
|
});
|
|
305
|
-
let
|
|
305
|
+
let F = pe({
|
|
306
306
|
authManager: g,
|
|
307
307
|
getFontsConfig: () => t.fonts,
|
|
308
308
|
canUseCustomFonts: () => _.hasFeature("custom_fonts")
|
|
309
|
-
}),
|
|
309
|
+
}), I = K({
|
|
310
310
|
authManager: g,
|
|
311
311
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
312
312
|
save: () => y.save(),
|
|
313
|
-
exportHtml: (e) =>
|
|
313
|
+
exportHtml: (e) => F.exportHtml(e),
|
|
314
314
|
onError: t.onError,
|
|
315
315
|
isAuthReady: l,
|
|
316
316
|
onBeforeTestEmail: t.onBeforeTestEmail
|
|
317
|
-
}),
|
|
317
|
+
}), L = me({
|
|
318
318
|
authManager: g,
|
|
319
319
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
320
320
|
getSocketId: () => b.getSocketId(),
|
|
@@ -323,46 +323,46 @@ function Be(e) {
|
|
|
323
323
|
isAuthReady: l,
|
|
324
324
|
hasCommentingFeature: () => t.commenting !== !1 && _.hasFeature("commenting")
|
|
325
325
|
});
|
|
326
|
-
|
|
327
|
-
comments:
|
|
326
|
+
ne({
|
|
327
|
+
comments: L,
|
|
328
328
|
channel: b.channel
|
|
329
329
|
});
|
|
330
|
-
let
|
|
330
|
+
let R = se({
|
|
331
331
|
authManager: g,
|
|
332
332
|
onError: t.onError
|
|
333
|
-
}),
|
|
333
|
+
}), z = c(!1), B = c(null), V = c(!1), H = ve({
|
|
334
334
|
authManager: g,
|
|
335
335
|
getTemplateId: () => y.state.template?.id ?? null
|
|
336
336
|
});
|
|
337
|
-
function
|
|
337
|
+
function W(e) {
|
|
338
338
|
E.commentsOpen.value = !0, queueMicrotask(() => {
|
|
339
339
|
o()?.filterByBlock(e);
|
|
340
340
|
});
|
|
341
341
|
}
|
|
342
|
-
a(le,
|
|
342
|
+
a(le, N.handleRequestMedia), a(te, g), a(A, D), a(ce, L), a(U, R), a($, H), a(M, {
|
|
343
343
|
plan: _,
|
|
344
344
|
ai: D,
|
|
345
345
|
comments: {
|
|
346
|
-
getBlockCount: (e) =>
|
|
347
|
-
openForBlock:
|
|
346
|
+
getBlockCount: (e) => L.commentCountByBlock.value.get(e) ?? 0,
|
|
347
|
+
openForBlock: W
|
|
348
348
|
},
|
|
349
349
|
savedModules: {
|
|
350
350
|
openSaveDialog: (e) => {
|
|
351
|
-
|
|
351
|
+
B.value = e ?? null, z.value = !0;
|
|
352
352
|
},
|
|
353
353
|
openBrowser: () => {
|
|
354
|
-
|
|
354
|
+
V.value = !0;
|
|
355
355
|
},
|
|
356
|
-
moduleCount: f(() =>
|
|
356
|
+
moduleCount: f(() => R.modules.value.length)
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
|
-
function
|
|
359
|
+
function q(e) {
|
|
360
360
|
_.hasFeature("theme_customization") && (C.themeOverrides.value = e);
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function J(e) {
|
|
363
363
|
y.setUiTheme(e);
|
|
364
364
|
}
|
|
365
|
-
async function
|
|
365
|
+
async function Y() {
|
|
366
366
|
s.value = !0, u.value = null;
|
|
367
367
|
try {
|
|
368
368
|
if (await g.initialize(), d) return;
|
|
@@ -371,8 +371,8 @@ function Be(e) {
|
|
|
371
371
|
if (d) return;
|
|
372
372
|
if (!e.api.ok) throw Error("Health check failed: API is not reachable");
|
|
373
373
|
if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
|
|
374
|
-
if (e.websocket.ok ||
|
|
375
|
-
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") &&
|
|
374
|
+
if (e.websocket.ok || P.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await _.fetchConfig(), d) return;
|
|
375
|
+
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") && R.loadModules(), i("ready");
|
|
376
376
|
} catch (e) {
|
|
377
377
|
if (d) return;
|
|
378
378
|
let n = e instanceof Error ? e : Error("Initialization failed", { cause: e });
|
|
@@ -381,7 +381,7 @@ function Be(e) {
|
|
|
381
381
|
d || (s.value = !1);
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function X() {
|
|
385
385
|
d = !0, r.cleanupFontLinks(), b.disconnect(), C.destroy(), t.onUnmount?.();
|
|
386
386
|
}
|
|
387
387
|
return {
|
|
@@ -398,31 +398,31 @@ function Be(e) {
|
|
|
398
398
|
core: C,
|
|
399
399
|
aiConfig: D,
|
|
400
400
|
featureFlags: k,
|
|
401
|
-
mediaLib:
|
|
402
|
-
exporter:
|
|
403
|
-
testEmail:
|
|
404
|
-
commentsInstance:
|
|
405
|
-
savedModulesHeadless:
|
|
406
|
-
scoringInstance:
|
|
401
|
+
mediaLib: N,
|
|
402
|
+
exporter: F,
|
|
403
|
+
testEmail: I,
|
|
404
|
+
commentsInstance: L,
|
|
405
|
+
savedModulesHeadless: R,
|
|
406
|
+
scoringInstance: H,
|
|
407
407
|
panelState: E,
|
|
408
408
|
snapshotPreview: T,
|
|
409
409
|
collabWarning: w,
|
|
410
|
-
showSaveModuleDialog:
|
|
411
|
-
showModuleBrowserModal:
|
|
412
|
-
saveModulePreSelectedBlockId:
|
|
410
|
+
showSaveModuleDialog: z,
|
|
411
|
+
showModuleBrowserModal: V,
|
|
412
|
+
saveModulePreSelectedBlockId: B,
|
|
413
413
|
onSaveHook: p,
|
|
414
|
-
initialize:
|
|
415
|
-
destroy:
|
|
416
|
-
setThemeOverrides:
|
|
417
|
-
setUiTheme:
|
|
418
|
-
openCommentsForBlock:
|
|
414
|
+
initialize: Y,
|
|
415
|
+
destroy: X,
|
|
416
|
+
setThemeOverrides: q,
|
|
417
|
+
setUiTheme: J,
|
|
418
|
+
openCommentsForBlock: W
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
421
|
//#endregion
|
|
422
422
|
//#region src/utils/preRenderCustomBlocks.ts
|
|
423
423
|
async function Ve(e, t) {
|
|
424
424
|
let n = async (e) => {
|
|
425
|
-
if (
|
|
425
|
+
if (L(e)) {
|
|
426
426
|
let n = e;
|
|
427
427
|
try {
|
|
428
428
|
n.renderedHtml = await t.renderCustomBlock(n);
|
|
@@ -442,7 +442,7 @@ async function Ve(e, t) {
|
|
|
442
442
|
function He(e) {
|
|
443
443
|
let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
|
|
444
444
|
function u() {
|
|
445
|
-
return
|
|
445
|
+
return R(i.config.value.websocket);
|
|
446
446
|
}
|
|
447
447
|
async function d(e) {
|
|
448
448
|
let i = await n.create(e);
|
|
@@ -513,7 +513,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
513
513
|
},
|
|
514
514
|
emits: ["cancel", "confirm"],
|
|
515
515
|
setup(e, { emit: t }) {
|
|
516
|
-
let n = t, { t: r } =
|
|
516
|
+
let n = t, { t: r } = W();
|
|
517
517
|
return (t, a) => (i(), v(y, {
|
|
518
518
|
"enter-active-class": "tpl:transition-opacity tpl:duration-150",
|
|
519
519
|
"leave-active-class": "tpl:transition-opacity tpl:duration-150",
|
|
@@ -528,7 +528,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
528
528
|
class: "tpl:fixed tpl:inset-0 tpl:z-50 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/40 tpl:p-6",
|
|
529
529
|
onClick: a[2] ||= _((e) => n("cancel"), ["self"])
|
|
530
530
|
}, [x("div", Ge, [
|
|
531
|
-
x("header", Ke, [D(h(
|
|
531
|
+
x("header", Ke, [D(h(q), {
|
|
532
532
|
size: 18,
|
|
533
533
|
"stroke-width": 2,
|
|
534
534
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
@@ -595,22 +595,22 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
595
595
|
},
|
|
596
596
|
emits: ["save"],
|
|
597
597
|
setup(e) {
|
|
598
|
-
let t = u(() => import("./CollaboratorBar-
|
|
598
|
+
let t = u(() => import("./CollaboratorBar-DCc5SL0P.js")), n = u(() => import("./features-Dwb5aTLg.js").then((e) => e.r)), r = u(() => import("./AiFeatureMenu-CyUCHd9I.js")), { t: a, format: o } = W();
|
|
599
599
|
return (c, l) => (i(), p("header", et, [
|
|
600
600
|
x("div", tt, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", nt, d(h(o)(h(a).header.templatesUsed, {
|
|
601
601
|
used: e.featureFlags.templateCount.value,
|
|
602
602
|
max: e.featureFlags.templateLimit.value
|
|
603
603
|
})), 1))]),
|
|
604
604
|
x("div", rt, [
|
|
605
|
-
D(
|
|
605
|
+
D(ke, {
|
|
606
606
|
viewport: e.editor.state.viewport,
|
|
607
607
|
onChange: e.editor.setViewport
|
|
608
608
|
}, null, 8, ["viewport", "onChange"]),
|
|
609
|
-
D(
|
|
609
|
+
D(Ee, {
|
|
610
610
|
"dark-mode": e.editor.state.darkMode,
|
|
611
611
|
onChange: e.editor.setDarkMode
|
|
612
612
|
}, null, 8, ["dark-mode", "onChange"]),
|
|
613
|
-
D(
|
|
613
|
+
D(Se, {
|
|
614
614
|
"preview-mode": e.editor.state.previewMode,
|
|
615
615
|
onChange: e.editor.setPreviewMode
|
|
616
616
|
}, null, 8, ["preview-mode", "onChange"]),
|
|
@@ -640,10 +640,10 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
640
640
|
"aria-live": "assertive",
|
|
641
641
|
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
642
642
|
"data-tooltip": e.featureFlags.saveErrorMessage.value
|
|
643
|
-
}, [D(h(
|
|
643
|
+
}, [D(h(X), {
|
|
644
644
|
size: 12,
|
|
645
645
|
"stroke-width": 2.5
|
|
646
|
-
}), T(" " + d(h(a).header.saveFailed), 1)], 8, at)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", ot, [D(h(
|
|
646
|
+
}), T(" " + d(h(a).header.saveFailed), 1)], 8, at)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", ot, [D(h(I), {
|
|
647
647
|
size: 12,
|
|
648
648
|
"stroke-width": 2.5
|
|
649
649
|
}), 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),
|
|
@@ -651,7 +651,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
651
651
|
key: 3,
|
|
652
652
|
"aria-label": e.commentsInstance.unresolvedCount.value > 0 ? `${h(a).comments.button} (${e.commentsInstance.unresolvedCount.value})` : h(a).comments.button,
|
|
653
653
|
"aria-expanded": e.panelState.commentsOpen.value,
|
|
654
|
-
class: b(h(
|
|
654
|
+
class: b(h(Pe)),
|
|
655
655
|
style: C({
|
|
656
656
|
backgroundColor: e.panelState.commentsOpen.value ? "var(--tpl-primary)" : "transparent",
|
|
657
657
|
color: e.panelState.commentsOpen.value ? "var(--tpl-bg)" : "var(--tpl-primary)",
|
|
@@ -659,7 +659,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
659
659
|
}),
|
|
660
660
|
onClick: l[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
|
|
661
661
|
}, [
|
|
662
|
-
D(h(
|
|
662
|
+
D(h(_e), {
|
|
663
663
|
size: 16,
|
|
664
664
|
"stroke-width": 2
|
|
665
665
|
}),
|
|
@@ -674,7 +674,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
674
674
|
"aria-expanded": e.panelState.aiMenuOpen.value,
|
|
675
675
|
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"]),
|
|
676
676
|
onClick: l[1] ||= _((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
|
|
677
|
-
}, [D(h(
|
|
677
|
+
}, [D(h(Q), {
|
|
678
678
|
size: 16,
|
|
679
679
|
"stroke-width": 2,
|
|
680
680
|
class: "tpl-ai-btn-icon"
|
|
@@ -694,7 +694,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
694
694
|
})], 512)) : m("", !0),
|
|
695
695
|
e.testEmail.isEnabled.value && e.featureFlags.canSendTestEmail.value ? (i(), p("button", {
|
|
696
696
|
key: 5,
|
|
697
|
-
class: b(h(
|
|
697
|
+
class: b(h(Pe)),
|
|
698
698
|
style: {
|
|
699
699
|
"background-color": "transparent",
|
|
700
700
|
color: "var(--tpl-primary)",
|
|
@@ -702,18 +702,18 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
702
702
|
},
|
|
703
703
|
disabled: e.testEmail.isSending.value || !e.featureFlags.hasTemplateSaved.value,
|
|
704
704
|
onClick: l[2] ||= (t) => e.panelState.testEmailModalOpen.value = !0
|
|
705
|
-
}, [e.testEmail.isSending.value ? (i(), v(h(
|
|
705
|
+
}, [e.testEmail.isSending.value ? (i(), v(h(z), {
|
|
706
706
|
key: 1,
|
|
707
707
|
class: "tpl-spinner",
|
|
708
708
|
size: 16,
|
|
709
709
|
"stroke-width": 2
|
|
710
|
-
})) : (i(), v(h(
|
|
710
|
+
})) : (i(), v(h(H), {
|
|
711
711
|
key: 0,
|
|
712
712
|
size: 16,
|
|
713
713
|
"stroke-width": 2
|
|
714
714
|
})), T(" " + d(h(a).testEmail.button), 1)], 10, ft)) : m("", !0),
|
|
715
715
|
x("button", {
|
|
716
|
-
class: b(h(
|
|
716
|
+
class: b(h(Pe)),
|
|
717
717
|
style: {
|
|
718
718
|
"background-color": "transparent",
|
|
719
719
|
color: "var(--tpl-primary)",
|
|
@@ -721,12 +721,12 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
721
721
|
},
|
|
722
722
|
disabled: e.isSaveDisabled,
|
|
723
723
|
onClick: l[3] ||= (e) => c.$emit("save")
|
|
724
|
-
}, [e.isSaving ? (i(), v(h(
|
|
724
|
+
}, [e.isSaving ? (i(), v(h(z), {
|
|
725
725
|
key: 1,
|
|
726
726
|
class: "tpl-spinner",
|
|
727
727
|
size: 16,
|
|
728
728
|
"stroke-width": 2
|
|
729
|
-
})) : (i(), v(h(
|
|
729
|
+
})) : (i(), v(h(xe), {
|
|
730
730
|
key: 0,
|
|
731
731
|
size: 16,
|
|
732
732
|
"stroke-width": 2
|
|
@@ -757,9 +757,9 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
757
757
|
"module-insert"
|
|
758
758
|
],
|
|
759
759
|
setup(e, { expose: t, emit: n }) {
|
|
760
|
-
let r = u(() => import("./features-
|
|
760
|
+
let r = u(() => import("./features-Dwb5aTLg.js").then((e) => e.o)), a = u(() => import("./features-Dwb5aTLg.js").then((e) => e.a)), o = u(() => import("./features-Dwb5aTLg.js").then((e) => e.i)), s = u(() => import("./features-Dwb5aTLg.js").then((e) => e.n)), l = u(() => import("./features-Dwb5aTLg.js").then((e) => e.t)), d = u(() => import("./SaveModuleDialog-mr9A4j6G.js")), f = u(() => import("./ModuleBrowserModal-C7BkJvzf.js")), g = u(async () => {
|
|
761
761
|
try {
|
|
762
|
-
return (await import("./src-
|
|
762
|
+
return (await import("./src-DSomxPI-.js")).MediaLibraryModal;
|
|
763
763
|
} catch {
|
|
764
764
|
throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
|
|
765
765
|
}
|
|
@@ -863,7 +863,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
863
863
|
},
|
|
864
864
|
emits: ["retry"],
|
|
865
865
|
setup(e, { emit: t }) {
|
|
866
|
-
let n = t, { t: r } =
|
|
866
|
+
let n = t, { t: r } = W();
|
|
867
867
|
function a(e) {
|
|
868
868
|
return "isUnauthorized" in e && e.isUnauthorized ? r.error.authFailed : "isNotFound" in e && e.isNotFound ? r.error.templateNotFound : r.error.defaultMessage;
|
|
869
869
|
}
|
|
@@ -871,7 +871,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
871
871
|
return "isNotFound" in e && !!e.isNotFound;
|
|
872
872
|
}
|
|
873
873
|
return (t, s) => e.visible && e.error ? (i(), p("div", bt, [
|
|
874
|
-
x("div", xt, [D(h(
|
|
874
|
+
x("div", xt, [D(h(X), {
|
|
875
875
|
size: 32,
|
|
876
876
|
"stroke-width": 1.5,
|
|
877
877
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
@@ -892,8 +892,8 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
892
892
|
props: { visible: { type: Boolean } },
|
|
893
893
|
emits: ["cancel", "confirm"],
|
|
894
894
|
setup(e, { emit: t }) {
|
|
895
|
-
let n = t, { t: r } =
|
|
896
|
-
return (t, a) => e.visible ? (i(), p("div", Et, [x("div", Dt, [D(h(
|
|
895
|
+
let n = t, { t: r } = W();
|
|
896
|
+
return (t, a) => e.visible ? (i(), p("div", Et, [x("div", Dt, [D(h(k), {
|
|
897
897
|
size: 18,
|
|
898
898
|
"stroke-width": 2,
|
|
899
899
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
@@ -920,10 +920,10 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
920
920
|
__name: "CollabUndoToast",
|
|
921
921
|
props: { visible: { type: Boolean } },
|
|
922
922
|
setup(e) {
|
|
923
|
-
let { t } =
|
|
923
|
+
let { t } = ye();
|
|
924
924
|
return (n, r) => e.visible ? (i(), p("div", At, d(h(t).history.collabWarning), 1)) : m("", !0);
|
|
925
925
|
}
|
|
926
|
-
}), 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__*/
|
|
926
|
+
}), 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__*/ de(/* @__PURE__ */ E({
|
|
927
927
|
__name: "CloudEditor",
|
|
928
928
|
props: {
|
|
929
929
|
config: {},
|
|
@@ -935,7 +935,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
935
935
|
emits: ["ready"],
|
|
936
936
|
setup(e, { expose: r, emit: o }) {
|
|
937
937
|
let l = e;
|
|
938
|
-
a(
|
|
938
|
+
a(N, l.cloudTranslations);
|
|
939
939
|
let u = o, f = c(null), w = c(null), E = Be({
|
|
940
940
|
config: l.config,
|
|
941
941
|
translations: l.translations,
|
|
@@ -944,64 +944,64 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
944
944
|
getCommentsSidebar: () => f.value ? { filterByBlock: f.value.filterCommentsByBlock } : null,
|
|
945
945
|
editorRoot: l.shadowRoot,
|
|
946
946
|
containerEl: w
|
|
947
|
-
}), { isInitializing: O, isAuthReady: ee, initError: k, planConfigInstance: A, websocket:
|
|
948
|
-
async function
|
|
947
|
+
}), { isInitializing: O, isAuthReady: ee, initError: k, planConfigInstance: A, websocket: j, collaboration: M, isCollaborationEnabled: te, editor: P, core: I, featureFlags: L, mediaLib: R, exporter: z, testEmail: V, commentsInstance: ne, savedModulesHeadless: H, panelState: U, snapshotPreview: W, collabWarning: re, showSaveModuleDialog: G, showModuleBrowserModal: K, saveModulePreSelectedBlockId: q, setThemeOverrides: J, setUiTheme: Y } = E, { showNotice: ie } = B(() => l.config.smallScreenNotice);
|
|
948
|
+
async function ae(e) {
|
|
949
949
|
try {
|
|
950
|
-
await
|
|
950
|
+
await V.sendTestEmail(e), U.testEmailModalOpen.value = !1;
|
|
951
951
|
} catch {}
|
|
952
952
|
}
|
|
953
|
-
async function
|
|
953
|
+
async function X() {
|
|
954
954
|
try {
|
|
955
|
-
await
|
|
955
|
+
await W.confirmRestoreSnapshot();
|
|
956
956
|
} catch {}
|
|
957
957
|
}
|
|
958
958
|
function oe(e, t) {
|
|
959
959
|
for (let n = 0; n < e.content.length; n++) {
|
|
960
|
-
let r =
|
|
961
|
-
|
|
960
|
+
let r = F(e.content[n]), i = t === void 0 ? void 0 : t + n;
|
|
961
|
+
P.addBlock(r, void 0, void 0, i);
|
|
962
962
|
}
|
|
963
963
|
K.value = !1;
|
|
964
964
|
}
|
|
965
|
-
let
|
|
965
|
+
let Z = He({
|
|
966
966
|
config: l.config,
|
|
967
|
-
editor:
|
|
968
|
-
websocket:
|
|
967
|
+
editor: P,
|
|
968
|
+
websocket: j,
|
|
969
969
|
planConfigInstance: A,
|
|
970
|
-
snapshotPreview:
|
|
970
|
+
snapshotPreview: W,
|
|
971
971
|
core: I,
|
|
972
972
|
exporter: z,
|
|
973
973
|
featureFlags: L,
|
|
974
974
|
isDestroyed: E.isDestroyed
|
|
975
|
-
}),
|
|
975
|
+
}), Q = Ue({
|
|
976
976
|
issues: I.templateLint ? I.templateLint.issues : c([]),
|
|
977
977
|
planConfig: A.config
|
|
978
978
|
});
|
|
979
|
-
async function
|
|
980
|
-
await
|
|
979
|
+
async function $() {
|
|
980
|
+
await Q.tryRunSave(() => Z.saveTemplate().catch((e) => l.config.onError?.(e)));
|
|
981
981
|
}
|
|
982
|
-
return E.onSaveHook.value =
|
|
982
|
+
return E.onSaveHook.value = $, t(() => {
|
|
983
983
|
E.initialize();
|
|
984
984
|
}), g(() => {
|
|
985
985
|
E.destroy();
|
|
986
986
|
}), r({
|
|
987
|
-
getContent: () =>
|
|
988
|
-
setContent: (e) =>
|
|
989
|
-
setTheme:
|
|
990
|
-
setThemeOverrides:
|
|
991
|
-
create:
|
|
992
|
-
load:
|
|
993
|
-
save:
|
|
994
|
-
sendTestEmail:
|
|
987
|
+
getContent: () => P.content.value,
|
|
988
|
+
setContent: (e) => P.setContent(e),
|
|
989
|
+
setTheme: Y,
|
|
990
|
+
setThemeOverrides: J,
|
|
991
|
+
create: Z.createTemplate,
|
|
992
|
+
load: Z.loadTemplate,
|
|
993
|
+
save: Z.saveTemplate,
|
|
994
|
+
sendTestEmail: V.sendTestEmail
|
|
995
995
|
}), (t, r) => (i(), p("div", {
|
|
996
996
|
ref_key: "rootEl",
|
|
997
997
|
ref: w,
|
|
998
|
-
class: b(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": h(
|
|
998
|
+
class: b(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": h(P).state.darkMode }]),
|
|
999
999
|
"data-tpl-theme": h(I).resolvedTheme.value,
|
|
1000
1000
|
style: C(h(I).themeStyles.value),
|
|
1001
1001
|
onDragover: r[9] ||= _(() => {}, ["prevent"]),
|
|
1002
1002
|
onDrop: r[10] ||= _(() => {}, ["prevent"])
|
|
1003
1003
|
}, [
|
|
1004
|
-
D(
|
|
1004
|
+
D(Ne),
|
|
1005
1005
|
D(y, {
|
|
1006
1006
|
"enter-active-class": "tpl:transition-opacity tpl:duration-200",
|
|
1007
1007
|
"enter-from-class": "tpl:opacity-100",
|
|
@@ -1010,7 +1010,7 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1010
1010
|
"leave-from-class": "tpl:opacity-100",
|
|
1011
1011
|
"leave-to-class": "tpl:opacity-0"
|
|
1012
1012
|
}, {
|
|
1013
|
-
default: s(() => [D(yt, { visible: h(O) || h(
|
|
1013
|
+
default: s(() => [D(yt, { visible: h(O) || h(P).state.isLoading }, null, 8, ["visible"])]),
|
|
1014
1014
|
_: 1
|
|
1015
1015
|
}),
|
|
1016
1016
|
D(y, {
|
|
@@ -1033,19 +1033,19 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1033
1033
|
_: 1
|
|
1034
1034
|
}),
|
|
1035
1035
|
D(mt, {
|
|
1036
|
-
editor: h(
|
|
1036
|
+
editor: h(P),
|
|
1037
1037
|
core: h(I),
|
|
1038
1038
|
"feature-flags": h(L),
|
|
1039
|
-
"panel-state": h(
|
|
1040
|
-
"snapshot-preview": h(
|
|
1041
|
-
"comments-instance": h(
|
|
1042
|
-
"test-email": h(
|
|
1043
|
-
websocket: h(
|
|
1044
|
-
collaboration: h(
|
|
1045
|
-
"is-collaboration-enabled": h(
|
|
1046
|
-
"is-saving": h(
|
|
1047
|
-
"is-save-disabled": h(
|
|
1048
|
-
onSave:
|
|
1039
|
+
"panel-state": h(U),
|
|
1040
|
+
"snapshot-preview": h(W),
|
|
1041
|
+
"comments-instance": h(ne),
|
|
1042
|
+
"test-email": h(V),
|
|
1043
|
+
websocket: h(j),
|
|
1044
|
+
collaboration: h(M),
|
|
1045
|
+
"is-collaboration-enabled": h(te),
|
|
1046
|
+
"is-saving": h(P).state.isSaving || h(L).isSaveExporting.value,
|
|
1047
|
+
"is-save-disabled": h(P).state.isSaving || h(L).isSaveExporting.value || !h(P).state.isDirty,
|
|
1048
|
+
onSave: $
|
|
1049
1049
|
}, null, 8, [
|
|
1050
1050
|
"editor",
|
|
1051
1051
|
"core",
|
|
@@ -1061,10 +1061,10 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1061
1061
|
"is-save-disabled"
|
|
1062
1062
|
]),
|
|
1063
1063
|
D($e, {
|
|
1064
|
-
open: h(
|
|
1065
|
-
issues: h(
|
|
1066
|
-
onCancel: h(
|
|
1067
|
-
onConfirm: h(
|
|
1064
|
+
open: h(Q).modalOpen.value,
|
|
1065
|
+
issues: h(Q).blockingIssues.value,
|
|
1066
|
+
onCancel: h(Q).cancel,
|
|
1067
|
+
onConfirm: h(Q).confirmAndSave
|
|
1068
1068
|
}, null, 8, [
|
|
1069
1069
|
"open",
|
|
1070
1070
|
"issues",
|
|
@@ -1072,9 +1072,9 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1072
1072
|
"onConfirm"
|
|
1073
1073
|
]),
|
|
1074
1074
|
D(kt, {
|
|
1075
|
-
visible: h(
|
|
1076
|
-
onCancel: h(
|
|
1077
|
-
onConfirm:
|
|
1075
|
+
visible: h(W).isPreviewingSnapshot.value,
|
|
1076
|
+
onCancel: h(W).cancelPreview,
|
|
1077
|
+
onConfirm: X
|
|
1078
1078
|
}, null, 8, ["visible", "onCancel"]),
|
|
1079
1079
|
D(y, {
|
|
1080
1080
|
"enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
|
|
@@ -1084,12 +1084,12 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1084
1084
|
"leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
|
|
1085
1085
|
"leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
|
|
1086
1086
|
}, {
|
|
1087
|
-
default: s(() => [D(jt, { visible: h(
|
|
1087
|
+
default: s(() => [D(jt, { visible: h(re).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
|
|
1088
1088
|
_: 1
|
|
1089
1089
|
}),
|
|
1090
|
-
n(D(
|
|
1090
|
+
n(D(De, null, null, 512), [[S, !h(P).state.previewMode]]),
|
|
1091
1091
|
x("div", {
|
|
1092
|
-
class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(
|
|
1092
|
+
class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(P).state.previewMode ? "tpl:left-0 tpl:right-0" : h(U).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", h(W).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
1093
1093
|
style: {
|
|
1094
1094
|
transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1095
1095
|
"background-color": "var(--tpl-canvas-bg)"
|
|
@@ -1105,21 +1105,21 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1105
1105
|
"backdrop-filter": "blur(8px)"
|
|
1106
1106
|
},
|
|
1107
1107
|
onClick: r[0] ||= (e) => h(I).conditionPreview.reset()
|
|
1108
|
-
}, [D(h(
|
|
1108
|
+
}, [D(h(be), {
|
|
1109
1109
|
size: 13,
|
|
1110
1110
|
"stroke-width": 2
|
|
1111
1111
|
}), T(" " + d(h(I).t.blockSettings.restoreHiddenBlocks), 1)])) : m("", !0)]),
|
|
1112
1112
|
_: 1
|
|
1113
|
-
})]), x("main", Pt, [D(
|
|
1114
|
-
viewport: h(
|
|
1115
|
-
content: h(
|
|
1116
|
-
"selected-block-id": h(
|
|
1117
|
-
"dark-mode": h(
|
|
1118
|
-
"preview-mode": h(
|
|
1119
|
-
"locked-blocks": h(
|
|
1120
|
-
onSelectBlock: h(
|
|
1121
|
-
onOpenAiChat: r[1] ||= (e) => h(
|
|
1122
|
-
onOpenDesignReference: r[2] ||= (e) => h(
|
|
1113
|
+
})]), x("main", Pt, [D(we, {
|
|
1114
|
+
viewport: h(P).state.viewport,
|
|
1115
|
+
content: h(P).content.value,
|
|
1116
|
+
"selected-block-id": h(P).state.selectedBlockId,
|
|
1117
|
+
"dark-mode": h(P).state.darkMode,
|
|
1118
|
+
"preview-mode": h(P).state.previewMode,
|
|
1119
|
+
"locked-blocks": h(M)?.lockedBlocks.value ?? void 0,
|
|
1120
|
+
onSelectBlock: h(P).selectBlock,
|
|
1121
|
+
onOpenAiChat: r[1] ||= (e) => h(U).aiChatOpen.value = !0,
|
|
1122
|
+
onOpenDesignReference: r[2] ||= (e) => h(U).designReferenceOpen.value = !0
|
|
1123
1123
|
}, null, 8, [
|
|
1124
1124
|
"viewport",
|
|
1125
1125
|
"content",
|
|
@@ -1129,9 +1129,9 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1129
1129
|
"locked-blocks",
|
|
1130
1130
|
"onSelectBlock"
|
|
1131
1131
|
])])], 2),
|
|
1132
|
-
e.config.branding !== !1 && !h(L).isWhiteLabeled.value ? (i(), v(
|
|
1132
|
+
e.config.branding !== !1 && !h(L).isWhiteLabeled.value ? (i(), v(Ae, {
|
|
1133
1133
|
key: 0,
|
|
1134
|
-
"position-class": [h(
|
|
1134
|
+
"position-class": [h(P).state.previewMode ? "tpl:left-0 tpl:right-0" : h(U).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
|
|
1135
1135
|
}, null, 8, ["position-class"])) : m("", !0),
|
|
1136
1136
|
x("div", {
|
|
1137
1137
|
class: "tpl-sr-only",
|
|
@@ -1140,39 +1140,39 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1140
1140
|
"aria-atomic": "true",
|
|
1141
1141
|
"aria-label": h(I).t.landmarks.reorderAnnouncements
|
|
1142
1142
|
}, d(h(I).keyboardReorder.announcement.value), 9, Ft),
|
|
1143
|
-
n(D(
|
|
1144
|
-
"selected-block": h(
|
|
1145
|
-
settings: h(
|
|
1146
|
-
"shifted-left": h(
|
|
1147
|
-
onUpdateBlock: r[3] ||= (e) => h(
|
|
1148
|
-
onDeleteBlock: r[4] ||= (e) => h(I).blockActions.deleteBlock(h(
|
|
1149
|
-
onDuplicateBlock: r[5] ||= (e) => h(I).blockActions.duplicateBlock(h(
|
|
1150
|
-
onUpdateSettings: h(
|
|
1143
|
+
n(D(Ce, {
|
|
1144
|
+
"selected-block": h(P).selectedBlock.value,
|
|
1145
|
+
settings: h(P).content.value.settings,
|
|
1146
|
+
"shifted-left": h(U).rightPanelOpen.value,
|
|
1147
|
+
onUpdateBlock: r[3] ||= (e) => h(P).updateBlock(h(P).selectedBlock.value.id, e),
|
|
1148
|
+
onDeleteBlock: r[4] ||= (e) => h(I).blockActions.deleteBlock(h(P).selectedBlock.value.id),
|
|
1149
|
+
onDuplicateBlock: r[5] ||= (e) => h(I).blockActions.duplicateBlock(h(P).selectedBlock.value),
|
|
1150
|
+
onUpdateSettings: h(P).updateSettings
|
|
1151
1151
|
}, null, 8, [
|
|
1152
1152
|
"selected-block",
|
|
1153
1153
|
"settings",
|
|
1154
1154
|
"shifted-left",
|
|
1155
1155
|
"onUpdateSettings"
|
|
1156
|
-
]), [[S, !h(
|
|
1156
|
+
]), [[S, !h(P).state.previewMode]]),
|
|
1157
1157
|
!h(O) && h(ee) ? (i(), v(ht, {
|
|
1158
1158
|
key: 1,
|
|
1159
1159
|
ref_key: "cloudPanelsRef",
|
|
1160
1160
|
ref: f,
|
|
1161
1161
|
config: l.config,
|
|
1162
|
-
editor: h(
|
|
1162
|
+
editor: h(P),
|
|
1163
1163
|
core: h(I),
|
|
1164
|
-
"panel-state": h(
|
|
1164
|
+
"panel-state": h(U),
|
|
1165
1165
|
"plan-config-instance": h(A),
|
|
1166
|
-
"test-email": h(
|
|
1166
|
+
"test-email": h(V),
|
|
1167
1167
|
"media-lib": h(R),
|
|
1168
|
-
"saved-modules-headless": h(
|
|
1168
|
+
"saved-modules-headless": h(H),
|
|
1169
1169
|
"show-save-module-dialog": h(G),
|
|
1170
1170
|
"save-module-pre-selected-block-id": h(q),
|
|
1171
1171
|
"show-module-browser-modal": h(K),
|
|
1172
1172
|
"onUpdate:showSaveModuleDialog": r[6] ||= (e) => G.value = e,
|
|
1173
1173
|
"onUpdate:saveModulePreSelectedBlockId": r[7] ||= (e) => q.value = e,
|
|
1174
1174
|
"onUpdate:showModuleBrowserModal": r[8] ||= (e) => K.value = e,
|
|
1175
|
-
onSendTestEmail:
|
|
1175
|
+
onSendTestEmail: ae,
|
|
1176
1176
|
onModuleInsert: oe
|
|
1177
1177
|
}, null, 8, [
|
|
1178
1178
|
"config",
|
|
@@ -1191,13 +1191,13 @@ var We = ["aria-label"], Ge = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1191
1191
|
ref: (e) => h(I).popoverRoot.value = e,
|
|
1192
1192
|
class: "tpl-popover-root"
|
|
1193
1193
|
}, null, 512),
|
|
1194
|
-
D(
|
|
1195
|
-
D(
|
|
1196
|
-
h(ie) ? (i(), v(
|
|
1194
|
+
D(Oe),
|
|
1195
|
+
D(Me),
|
|
1196
|
+
h(ie) ? (i(), v(je, { key: 2 })) : m("", !0)
|
|
1197
1197
|
], 46, Mt));
|
|
1198
1198
|
}
|
|
1199
1199
|
}), [["__scopeId", "data-v-3fc6c906"]]);
|
|
1200
1200
|
//#endregion
|
|
1201
1201
|
export { It as default };
|
|
1202
1202
|
|
|
1203
|
-
//# sourceMappingURL=CloudEditor-
|
|
1203
|
+
//# sourceMappingURL=CloudEditor-ClfgLU48.js.map
|