@aswin.dev/editor 0.8.1 → 0.8.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/{AiChatSidebar-DM2ri7KX.js → AiChatSidebar-DAJOuHPG.js} +1 -1
- package/dist/{AiFeatureMenu-BrZBJ0R5.js → AiFeatureMenu-CKnEDzme.js} +1 -1
- package/dist/{CloudEditor-BRpzzfQn.js → CloudEditor-BUlmUuhO.js} +6 -6
- package/dist/{CollaboratorBar-DsRXj3Kn.js → CollaboratorBar-C6TfqpyV.js} +1 -1
- package/dist/{DesignReferenceSidebar-B1iw3Bb7.js → DesignReferenceSidebar-C6yDJlD8.js} +1 -1
- package/dist/{ModuleBrowserModal-DVnd1dqR.js → ModuleBrowserModal-DUKuDjS-.js} +4 -4
- package/dist/{ModulePreviewCanvas-D9jBAoBQ.js → ModulePreviewCanvas-C9HTjfkN.js} +1 -1
- package/dist/{ParagraphEditor-CO3V0H_V.js → ParagraphEditor-CFuaZKGk.js} +2 -2
- package/dist/{SaveModuleDialog-CboNFwIA.js → SaveModuleDialog-QjgPFEDg.js} +2 -2
- package/dist/{SnapshotHistory-C26pvPre.js → SnapshotHistory-Dblt21_W.js} +1 -1
- package/dist/{TestEmailModal-B4OoUWb_.js → TestEmailModal-D_y3ZksG.js} +2 -2
- package/dist/{TitleEditor-DU_QWG_m.js → TitleEditor-CHmL3FFR.js} +2 -2
- package/dist/{TplModal-Dr6Do8oU.js → TplModal-DinL7DhQ.js} +1 -1
- package/dist/{blockTypeIcons-cRDr36gk.js → blockTypeIcons-JjmIZ_Vx.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AccessibilityPanel-Csd47zqI.js → AccessibilityPanel-BTADkTp2.js} +3 -3
- package/dist/cdn/chunks/{AccessibilityPanel-Csd47zqI.js.map → AccessibilityPanel-BTADkTp2.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-BlnZF5pf.js → AiFeatureMenu-D99Pw32q.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-BlnZF5pf.js.map → AiFeatureMenu-D99Pw32q.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-VY8NqI9n.js → BlockA11yBadge-dtyeSSvY.js} +2 -2
- package/dist/cdn/chunks/{BlockA11yBadge-VY8NqI9n.js.map → BlockA11yBadge-dtyeSSvY.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-D0TrKlva.js → CloudEditor-BBBkTBfW.js} +173 -173
- package/dist/cdn/chunks/{CloudEditor-D0TrKlva.js.map → CloudEditor-BBBkTBfW.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BhMNTI_h.js → CollaboratorBar-Cuy1BusU.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-BhMNTI_h.js.map → CollaboratorBar-Cuy1BusU.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DsP6O1fl.js → CountdownToolbar-CqFM85Xv.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-DsP6O1fl.js.map → CountdownToolbar-CqFM85Xv.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-CpYPeiKv.js → ModuleBrowserModal-Dcxtq_dC.js} +5 -5
- package/dist/cdn/chunks/{ModuleBrowserModal-CpYPeiKv.js.map → ModuleBrowserModal-Dcxtq_dC.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-BIYYnqUq.js → ModulePreviewCanvas-Didb4ZCU.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-BIYYnqUq.js.map → ModulePreviewCanvas-Didb4ZCU.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-ZV5SYYw8.js → ParagraphEditor-BX2L35YF.js} +21 -21
- package/dist/cdn/chunks/{ParagraphEditor-ZV5SYYw8.js.map → ParagraphEditor-BX2L35YF.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-Dx05ETtt.js → RichTextEditorContent-ywrdsvHY.js} +2 -2
- package/dist/cdn/chunks/{RichTextEditorContent-Dx05ETtt.js.map → RichTextEditorContent-ywrdsvHY.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DJEEK7Wb.js → SaveModuleDialog-Ddp-HCFB.js} +2 -2
- package/dist/cdn/chunks/{SaveModuleDialog-DJEEK7Wb.js.map → SaveModuleDialog-Ddp-HCFB.js.map} +1 -1
- package/dist/cdn/chunks/{SlidingPillSelect-BhPCkqVu.js → SlidingPillSelect-CS6N3vGq.js} +2 -2
- package/dist/cdn/chunks/{SlidingPillSelect-BhPCkqVu.js.map → SlidingPillSelect-CS6N3vGq.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-fu1A87Ld.js → TitleEditor-BTtgZzci.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-fu1A87Ld.js.map → TitleEditor-BTtgZzci.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-CJirTS-q.js → blockTypeIcons-B2x3gJsz.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-CJirTS-q.js.map → blockTypeIcons-B2x3gJsz.js.map} +1 -1
- package/dist/{de-CR1qAkAm.js → cdn/chunks/de-Dum1oCPV.js} +27 -3
- package/dist/cdn/chunks/de-Dum1oCPV.js.map +1 -0
- package/dist/{en-jbnp1n6M.js → cdn/chunks/en-ClDdvkbR.js} +27 -3
- package/dist/cdn/chunks/en-ClDdvkbR.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BbFKsjyT.js → extensions-CdYSoz4B.js} +3 -3
- package/dist/cdn/chunks/{extensions-BbFKsjyT.js.map → extensions-CdYSoz4B.js.map} +1 -1
- package/dist/cdn/chunks/{features-uApxwJMz.js → features-BZeMkHMs.js} +1701 -1651
- package/dist/cdn/chunks/features-BZeMkHMs.js.map +1 -0
- package/dist/cdn/chunks/{icons-DZb4EX9m.js → icons-nP0Wj6Eq.js} +81 -66
- package/dist/cdn/chunks/icons-nP0Wj6Eq.js.map +1 -0
- package/dist/cdn/chunks/{media-library-B3g52j8R.js → media-library-54Ezt5wL.js} +3 -3
- package/dist/cdn/chunks/{media-library-B3g52j8R.js.map → media-library-54Ezt5wL.js.map} +1 -1
- package/dist/cdn/chunks/{quality-Ug5lFGHP.js → quality-Di1pUcCW.js} +59 -59
- package/dist/cdn/chunks/{quality-Ug5lFGHP.js.map → quality-Di1pUcCW.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-jXCdXjV-.js → renderer-C4OuJhDG.js} +16 -16
- package/dist/cdn/chunks/{renderer-jXCdXjV-.js.map → renderer-C4OuJhDG.js.map} +1 -1
- package/dist/cdn/chunks/{src-FMtH5ZvJ.js → src-DF5NNH7S.js} +4 -4
- package/dist/cdn/chunks/{src-FMtH5ZvJ.js.map → src-DF5NNH7S.js.map} +1 -1
- package/dist/cdn/chunks/{styles-Co9vw4ag.js → styles-C9P3yzMF.js} +1632 -1361
- package/dist/cdn/chunks/styles-C9P3yzMF.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-qXOh0vzV.js → tiptap-CZ52Pj8k.js} +2 -2
- package/dist/cdn/chunks/{tiptap-qXOh0vzV.js.map → tiptap-CZ52Pj8k.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +9 -9
- package/dist/{cloud-COUuu_KE.js → cloud-9i5Nj7rp.js} +9 -9
- package/dist/{cdn/chunks/de-BsYijc0r.js → de-DP4gn3tf.js} +25 -5
- package/dist/{dist-DP82Y0rs.js → dist-Bcqepqv3.js} +222 -169
- package/dist/{cdn/chunks/en-DMu9hPIC.js → en-CyZxmGTU.js} +25 -5
- package/dist/{extensions-Bg22D6c8.js → extensions-CNPdJw_8.js} +2 -2
- package/dist/index.d.ts +11 -11
- package/dist/style.css +1 -1
- package/dist/{styles-DgL0UYj0.js → styles-ZIYLQwFf.js} +1560 -1274
- package/dist/templatical-editor.js +6 -6
- package/dist/{useEditorCore-CSlYQZWx.js → useEditorCore-BHSyoxSK.js} +16 -16
- package/dist/{useMergeTag-BVL3A4OO.js → useMergeTag-BfVcyNSv.js} +1 -1
- package/package.json +7 -7
- package/dist/cdn/chunks/de-BsYijc0r.js.map +0 -1
- package/dist/cdn/chunks/en-DMu9hPIC.js.map +0 -1
- package/dist/cdn/chunks/features-uApxwJMz.js.map +0 -1
- package/dist/cdn/chunks/icons-DZb4EX9m.js.map +0 -1
- package/dist/cdn/chunks/styles-Co9vw4ag.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as e, F as t, G as n, H as r, I as i, M as a, N as o, P as s, Q as c, S as l, W as u, _ as d, b as f, ct as p, d as m, dt as h, f as g, ft as _, g as v, h as y, l as b, m as x, n as S, rt as C, tt as w, ut as T, v as E, x as D, y as O } from "./draggable-C-1_gch3.js";
|
|
2
|
-
import { Bn as ee, C as k, Ct as A, D as j, Gt as
|
|
3
|
-
import { D as Ce, E as we } from "./icons-
|
|
4
|
-
import { a as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, i as je, l as Me, m as Ne, n as Pe, p as Fe, r as Ie, s as Le, t as Re, u as ze } from "./styles-
|
|
2
|
+
import { Bn as ee, C as k, Ct as A, D as j, Gt as te, It as M, Jn as N, Jt as P, Mt as F, Nn as ne, S as re, St as I, Tn as L, Ut as R, Vt as z, Xt as ie, Yt as B, _ as V, _t as ae, an as oe, b as H, c as U, cn as W, cr as G, d as K, dt as q, et as se, f as ce, fn as le, g as J, h as Y, it as X, jt as ue, k as de, l as fe, m as pe, mt as me, on as he, ot as ge, p as Z, pn as Q, sn as $, u as _e, v as ve, x as ye, y as be, zn as xe, zt as Se } from "./features-BZeMkHMs.js";
|
|
3
|
+
import { D as Ce, E as we } from "./icons-nP0Wj6Eq.js";
|
|
4
|
+
import { a as Te, c as Ee, d as De, f as Oe, g as ke, h as Ae, i as je, l as Me, m as Ne, n as Pe, p as Fe, r as Ie, s as Le, t as Re, u as ze } from "./styles-C9P3yzMF.js";
|
|
5
5
|
import { d as Be } from "./styleConstants-DfcU8u_r.js";
|
|
6
6
|
//#region src/cloud/composables/useSnapshotPreview.ts
|
|
7
7
|
function Ve(e) {
|
|
@@ -11,7 +11,7 @@ function Ve(e) {
|
|
|
11
11
|
});
|
|
12
12
|
let f = x(() => l.value !== null), p = x(() => s.value?.snapshots.value ?? []), m = x(() => s.value?.isLoading.value ?? !1), h = x(() => s.value?.isRestoring.value ?? !1);
|
|
13
13
|
function g() {
|
|
14
|
-
n.state.template?.id && !s.value && (s.value =
|
|
14
|
+
n.state.template?.id && !s.value && (s.value = Z({
|
|
15
15
|
authManager: t,
|
|
16
16
|
templateId: n.state.template.id,
|
|
17
17
|
onRestore: _,
|
|
@@ -84,7 +84,7 @@ function He() {
|
|
|
84
84
|
function m(t) {
|
|
85
85
|
c.value = !1, e.value = e.value === t ? null : t;
|
|
86
86
|
}
|
|
87
|
-
return
|
|
87
|
+
return Q(l, () => {
|
|
88
88
|
c.value = !1;
|
|
89
89
|
}), {
|
|
90
90
|
activePanel: e,
|
|
@@ -107,9 +107,9 @@ function He() {
|
|
|
107
107
|
//#endregion
|
|
108
108
|
//#region src/cloud/composables/useCollabUndoWarning.ts
|
|
109
109
|
function Ue(e) {
|
|
110
|
-
let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = w(!1), a = w(!1), { start: o } =
|
|
110
|
+
let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = w(!1), a = w(!1), { start: o } = L(() => {
|
|
111
111
|
a.value = !1;
|
|
112
|
-
},
|
|
112
|
+
}, G, { immediate: !1 });
|
|
113
113
|
function s() {
|
|
114
114
|
i.value || !t.value || n() === 0 || !r.value || (i.value = !0, a.value = !0, o());
|
|
115
115
|
}
|
|
@@ -121,7 +121,7 @@ function Ue(e) {
|
|
|
121
121
|
//#endregion
|
|
122
122
|
//#region src/cloud/composables/useCloudFeatureFlags.ts
|
|
123
123
|
function We(e) {
|
|
124
|
-
let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = x(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = x(() => t.hasFeature("test_email")), o = x(() => !!r.state.template?.id), s = x(() => t.hasFeature("white_label")), c = x(() => t.config.value?.limits.max_templates ?? null), l = x(() => t.config.value?.template_count ?? 0), u = w(!1), d = w("idle"), f = w(""), { start: p } =
|
|
124
|
+
let { planConfigInstance: t, aiConfig: n, editor: r } = e, i = x(() => t.hasFeature("ai_generation") && n.hasAnyMenuFeature.value), a = x(() => t.hasFeature("test_email")), o = x(() => !!r.state.template?.id), s = x(() => t.hasFeature("white_label")), c = x(() => t.config.value?.limits.max_templates ?? null), l = x(() => t.config.value?.template_count ?? 0), u = w(!1), d = w("idle"), f = w(""), { start: p } = L(() => {
|
|
125
125
|
d.value = "idle";
|
|
126
126
|
}, 3e3, { immediate: !1 });
|
|
127
127
|
return {
|
|
@@ -186,23 +186,23 @@ function Ke(e) {
|
|
|
186
186
|
}), g = _e({
|
|
187
187
|
authManager: h,
|
|
188
188
|
onError: n.onError
|
|
189
|
-
}), _ = w(/* @__PURE__ */ new Map()), v =
|
|
189
|
+
}), _ = w(/* @__PURE__ */ new Map()), v = re({
|
|
190
190
|
authManager: h,
|
|
191
191
|
defaultFontFamily: n.fonts?.defaultFont,
|
|
192
192
|
templateDefaults: n.templateDefaults,
|
|
193
193
|
onError: n.onError,
|
|
194
194
|
lockedBlocks: _
|
|
195
|
-
}), y =
|
|
195
|
+
}), y = Y({
|
|
196
196
|
authManager: h,
|
|
197
197
|
onError: n.onError
|
|
198
198
|
});
|
|
199
|
-
n.mcp?.enabled &&
|
|
199
|
+
n.mcp?.enabled && U({
|
|
200
200
|
editor: v,
|
|
201
201
|
channel: y.channel,
|
|
202
202
|
onOperation: n.mcp.onOperation
|
|
203
203
|
});
|
|
204
204
|
let b = null;
|
|
205
|
-
n.collaboration?.enabled && (b =
|
|
205
|
+
n.collaboration?.enabled && (b = V({
|
|
206
206
|
authManager: h,
|
|
207
207
|
editor: v,
|
|
208
208
|
channel: y.channel,
|
|
@@ -213,8 +213,8 @@ function Ke(e) {
|
|
|
213
213
|
onBlockUnlocked: n.collaboration.onBlockUnlocked
|
|
214
214
|
}), r(() => b.lockedBlocks.value, (e) => {
|
|
215
215
|
_.value = e;
|
|
216
|
-
}, { immediate: !0 }),
|
|
217
|
-
let S = x(() => !!n.collaboration?.enabled && g.hasFeature("collaboration")), C =
|
|
216
|
+
}, { immediate: !0 }), J(v, b));
|
|
217
|
+
let S = x(() => !!n.collaboration?.enabled && g.hasFeature("collaboration")), C = de({
|
|
218
218
|
editor: v,
|
|
219
219
|
config: {
|
|
220
220
|
uiTheme: n.uiTheme,
|
|
@@ -268,7 +268,7 @@ function Ke(e) {
|
|
|
268
268
|
mediaLibraryOpen: D.mediaLibraryOpen,
|
|
269
269
|
mediaLibraryAccept: D.mediaLibraryAccept
|
|
270
270
|
});
|
|
271
|
-
|
|
271
|
+
se({
|
|
272
272
|
onBlockMove: v.moveBlock,
|
|
273
273
|
onBlockAdd: v.addBlock
|
|
274
274
|
});
|
|
@@ -276,7 +276,7 @@ function Ke(e) {
|
|
|
276
276
|
authManager: h,
|
|
277
277
|
getFontsConfig: () => n.fonts,
|
|
278
278
|
canUseCustomFonts: () => g.hasFeature("custom_fonts")
|
|
279
|
-
}),
|
|
279
|
+
}), M = ce({
|
|
280
280
|
authManager: h,
|
|
281
281
|
getTemplateId: () => v.state.template?.id ?? null,
|
|
282
282
|
save: () => v.save(),
|
|
@@ -284,7 +284,7 @@ function Ke(e) {
|
|
|
284
284
|
onError: n.onError,
|
|
285
285
|
isAuthReady: l,
|
|
286
286
|
onBeforeTestEmail: n.onBeforeTestEmail
|
|
287
|
-
}),
|
|
287
|
+
}), N = be({
|
|
288
288
|
authManager: h,
|
|
289
289
|
getTemplateId: () => v.state.template?.id ?? null,
|
|
290
290
|
getSocketId: () => y.getSocketId(),
|
|
@@ -294,55 +294,55 @@ function Ke(e) {
|
|
|
294
294
|
hasCommentingFeature: () => n.commenting !== !1 && g.hasFeature("commenting")
|
|
295
295
|
});
|
|
296
296
|
ve({
|
|
297
|
-
comments:
|
|
297
|
+
comments: N,
|
|
298
298
|
channel: y.channel
|
|
299
299
|
});
|
|
300
|
-
let
|
|
300
|
+
let F = pe({
|
|
301
301
|
authManager: h,
|
|
302
302
|
onError: n.onError
|
|
303
|
-
}),
|
|
303
|
+
}), ne = w(!1), I = w(null), L = w(!1), z = H({
|
|
304
304
|
authManager: h,
|
|
305
305
|
getTemplateId: () => v.state.template?.id ?? null
|
|
306
306
|
});
|
|
307
|
-
function
|
|
307
|
+
function B(e) {
|
|
308
308
|
D.commentsOpen.value = !0, queueMicrotask(() => {
|
|
309
309
|
s()?.filterByBlock(e);
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
|
-
t(
|
|
312
|
+
t(oe, k.handleRequestMedia), t(te, h), t(R, O), t(ie, N), t($, F), t(W, z), t(P, {
|
|
313
313
|
plan: g,
|
|
314
314
|
ai: O,
|
|
315
315
|
comments: {
|
|
316
|
-
getBlockCount: (e) =>
|
|
317
|
-
openForBlock:
|
|
316
|
+
getBlockCount: (e) => N.commentCountByBlock.value.get(e) ?? 0,
|
|
317
|
+
openForBlock: B
|
|
318
318
|
},
|
|
319
319
|
savedModules: {
|
|
320
320
|
openSaveDialog: (e) => {
|
|
321
|
-
|
|
321
|
+
I.value = e ?? null, ne.value = !0;
|
|
322
322
|
},
|
|
323
323
|
openBrowser: () => {
|
|
324
|
-
|
|
324
|
+
L.value = !0;
|
|
325
325
|
},
|
|
326
|
-
moduleCount: x(() =>
|
|
326
|
+
moduleCount: x(() => F.modules.value.length)
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
|
-
function
|
|
329
|
+
function ae(e) {
|
|
330
330
|
g.hasFeature("theme_customization") && (C.themeOverrides.value = e);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function G(e) {
|
|
333
333
|
v.setUiTheme(e);
|
|
334
334
|
}
|
|
335
|
-
async function
|
|
335
|
+
async function q() {
|
|
336
336
|
c.value = !0, u.value = null;
|
|
337
337
|
try {
|
|
338
338
|
if (await h.initialize(), d) return;
|
|
339
339
|
l.value = !0;
|
|
340
|
-
let e = await
|
|
340
|
+
let e = await fe({ authManager: h });
|
|
341
341
|
if (d) return;
|
|
342
342
|
if (!e.api.ok) throw Error("Health check failed: API is not reachable");
|
|
343
343
|
if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
|
|
344
344
|
if (e.websocket.ok || Se.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await g.fetchConfig(), d) return;
|
|
345
|
-
a.setCustomFontsEnabled(g.hasFeature("custom_fonts")), n.customBlocks?.length && g.hasFeature("custom_blocks") && C.registerCustomBlocks(n.customBlocks), n.theme && g.hasFeature("theme_customization") && (C.themeOverrides.value = n.theme), n.modules !== !1 && g.hasFeature("saved_modules") &&
|
|
345
|
+
a.setCustomFontsEnabled(g.hasFeature("custom_fonts")), n.customBlocks?.length && g.hasFeature("custom_blocks") && C.registerCustomBlocks(n.customBlocks), n.theme && g.hasFeature("theme_customization") && (C.themeOverrides.value = n.theme), n.modules !== !1 && g.hasFeature("saved_modules") && F.loadModules(), o("ready");
|
|
346
346
|
} catch (e) {
|
|
347
347
|
if (d) return;
|
|
348
348
|
let t = e instanceof Error ? e : Error("Initialization failed", { cause: e });
|
|
@@ -351,7 +351,7 @@ function Ke(e) {
|
|
|
351
351
|
d || (c.value = !1);
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function le() {
|
|
355
355
|
d = !0, a.cleanupFontLinks(), y.disconnect(), C.destroy(), n.onUnmount?.();
|
|
356
356
|
}
|
|
357
357
|
return {
|
|
@@ -370,29 +370,29 @@ function Ke(e) {
|
|
|
370
370
|
featureFlags: ee,
|
|
371
371
|
mediaLib: k,
|
|
372
372
|
exporter: A,
|
|
373
|
-
testEmail:
|
|
374
|
-
commentsInstance:
|
|
375
|
-
savedModulesHeadless:
|
|
376
|
-
scoringInstance:
|
|
373
|
+
testEmail: M,
|
|
374
|
+
commentsInstance: N,
|
|
375
|
+
savedModulesHeadless: F,
|
|
376
|
+
scoringInstance: z,
|
|
377
377
|
panelState: D,
|
|
378
378
|
snapshotPreview: E,
|
|
379
379
|
collabWarning: T,
|
|
380
|
-
showSaveModuleDialog:
|
|
381
|
-
showModuleBrowserModal:
|
|
382
|
-
saveModulePreSelectedBlockId:
|
|
380
|
+
showSaveModuleDialog: ne,
|
|
381
|
+
showModuleBrowserModal: L,
|
|
382
|
+
saveModulePreSelectedBlockId: I,
|
|
383
383
|
onSaveHook: f,
|
|
384
|
-
initialize:
|
|
385
|
-
destroy:
|
|
386
|
-
setThemeOverrides:
|
|
387
|
-
setUiTheme:
|
|
388
|
-
openCommentsForBlock:
|
|
384
|
+
initialize: q,
|
|
385
|
+
destroy: le,
|
|
386
|
+
setThemeOverrides: ae,
|
|
387
|
+
setUiTheme: G,
|
|
388
|
+
openCommentsForBlock: B
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
391
|
//#endregion
|
|
392
392
|
//#region src/utils/preRenderCustomBlocks.ts
|
|
393
393
|
async function qe(e, t) {
|
|
394
394
|
let n = async (e) => {
|
|
395
|
-
if (
|
|
395
|
+
if (N(e)) {
|
|
396
396
|
let n = e;
|
|
397
397
|
try {
|
|
398
398
|
n.renderedHtml = await t.renderCustomBlock(n);
|
|
@@ -565,7 +565,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
565
565
|
},
|
|
566
566
|
emits: ["save"],
|
|
567
567
|
setup(e) {
|
|
568
|
-
let t = l(() => import("./CollaboratorBar-
|
|
568
|
+
let t = l(() => import("./CollaboratorBar-Cuy1BusU.js")), n = l(() => import("./features-BZeMkHMs.js").then((e) => e.r)), r = l(() => import("./AiFeatureMenu-D99Pw32q.js")), { t: i, format: a } = X();
|
|
569
569
|
return (o, c) => (s(), E("header", ot, [
|
|
570
570
|
y("div", st, [e.featureFlags.templateLimit.value === null ? d("", !0) : (s(), E("span", ct, _(p(a)(p(i).header.templatesUsed, {
|
|
571
571
|
used: e.featureFlags.templateCount.value,
|
|
@@ -614,7 +614,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
614
614
|
}, [D(p(F), {
|
|
615
615
|
size: 12,
|
|
616
616
|
"stroke-width": 2.5
|
|
617
|
-
}), f(" " + _(p(i).header.saveFailed), 1)], 8, dt)) : e.featureFlags.saveStatus.value === "saved" ? (s(), E("div", ft, [D(p(
|
|
617
|
+
}), f(" " + _(p(i).header.saveFailed), 1)], 8, dt)) : e.featureFlags.saveStatus.value === "saved" ? (s(), E("div", ft, [D(p(M), {
|
|
618
618
|
size: 12,
|
|
619
619
|
"stroke-width": 2.5
|
|
620
620
|
}), f(" " + _(p(i).header.saved), 1)])) : e.editor.state.isDirty ? (s(), E("div", pt, [c[4] ||= y("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), f(" " + _(p(i).header.unsaved), 1)])) : d("", !0),
|
|
@@ -630,7 +630,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
630
630
|
}),
|
|
631
631
|
onClick: c[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
|
|
632
632
|
}, [
|
|
633
|
-
D(p(
|
|
633
|
+
D(p(I), {
|
|
634
634
|
size: 16,
|
|
635
635
|
"stroke-width": 2
|
|
636
636
|
}),
|
|
@@ -645,7 +645,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
645
645
|
"aria-expanded": e.panelState.aiMenuOpen.value,
|
|
646
646
|
class: T(["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"]),
|
|
647
647
|
onClick: c[1] ||= m((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
|
|
648
|
-
}, [D(p(
|
|
648
|
+
}, [D(p(me), {
|
|
649
649
|
size: 16,
|
|
650
650
|
"stroke-width": 2,
|
|
651
651
|
class: "tpl-ai-btn-icon"
|
|
@@ -678,7 +678,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
678
678
|
class: "tpl-spinner",
|
|
679
679
|
size: 16,
|
|
680
680
|
"stroke-width": 2
|
|
681
|
-
})) : (s(), v(p(
|
|
681
|
+
})) : (s(), v(p(ae), {
|
|
682
682
|
key: 0,
|
|
683
683
|
size: 16,
|
|
684
684
|
"stroke-width": 2
|
|
@@ -728,7 +728,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
728
728
|
"module-insert"
|
|
729
729
|
],
|
|
730
730
|
setup(e, { expose: t, emit: n }) {
|
|
731
|
-
let r = l(() => import("./features-
|
|
731
|
+
let r = l(() => import("./features-BZeMkHMs.js").then((e) => e.s)), i = l(() => import("./features-BZeMkHMs.js").then((e) => e.o)), a = l(() => import("./features-BZeMkHMs.js").then((e) => e.a)), o = l(() => import("./features-BZeMkHMs.js").then((e) => e.n)), c = l(() => import("./features-BZeMkHMs.js").then((e) => e.t)), u = l(() => import("./SaveModuleDialog-Ddp-HCFB.js")), f = l(() => import("./ModuleBrowserModal-Dcxtq_dC.js")), m = l(async () => (await import("./src-DF5NNH7S.js")).MediaLibraryModal), h = e;
|
|
732
732
|
function _(e) {
|
|
733
733
|
e === void 0 || !h.editor.content.value.settings.popup || h.editor.updateSettings({ width: e });
|
|
734
734
|
}
|
|
@@ -861,7 +861,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
861
861
|
emits: ["cancel", "confirm"],
|
|
862
862
|
setup(e, { emit: t }) {
|
|
863
863
|
let n = t, { t: r } = X();
|
|
864
|
-
return (t, i) => e.visible ? (s(), E("div", Mt, [y("div", Nt, [D(p(
|
|
864
|
+
return (t, i) => e.visible ? (s(), E("div", Mt, [y("div", Nt, [D(p(ue), {
|
|
865
865
|
size: 18,
|
|
866
866
|
"stroke-width": 2,
|
|
867
867
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
@@ -888,13 +888,13 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
888
888
|
__name: "CollabUndoToast",
|
|
889
889
|
props: { visible: { type: Boolean } },
|
|
890
890
|
setup(e) {
|
|
891
|
-
let { t } =
|
|
891
|
+
let { t } = z();
|
|
892
892
|
return (n, r) => e.visible ? (s(), E("div", It, _(p(t).history.collabWarning), 1)) : d("", !0);
|
|
893
893
|
}
|
|
894
894
|
}), Rt = ["data-tpl-theme"], zt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Bt = {
|
|
895
895
|
key: 0,
|
|
896
896
|
class: "tpl-popup-browser-frame tpl:flex tpl:w-full tpl:flex-col tpl:overflow-hidden tpl:rounded-xl tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:shadow-[var(--tpl-shadow-xl)]"
|
|
897
|
-
}, Vt = ["aria-label"], Ht = /* @__PURE__ */
|
|
897
|
+
}, Vt = ["aria-label"], Ht = /* @__PURE__ */ ge(/* @__PURE__ */ e({
|
|
898
898
|
__name: "CloudEditor",
|
|
899
899
|
props: {
|
|
900
900
|
config: {},
|
|
@@ -905,86 +905,86 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
905
905
|
emits: ["ready"],
|
|
906
906
|
setup(e, { expose: i, emit: c }) {
|
|
907
907
|
let l = e;
|
|
908
|
-
t(
|
|
908
|
+
t(B, l.cloudTranslations);
|
|
909
909
|
let m = c, C = w(null), k = w(null), A = Ke({
|
|
910
910
|
config: l.config,
|
|
911
911
|
translations: l.translations,
|
|
912
912
|
fontsManager: l.fontsManager,
|
|
913
913
|
emit: m,
|
|
914
914
|
getCommentsSidebar: () => C.value ? { filterByBlock: C.value.filterCommentsByBlock } : null
|
|
915
|
-
}), { isInitializing: j, isAuthReady:
|
|
916
|
-
t(
|
|
917
|
-
let
|
|
918
|
-
r(() => [
|
|
919
|
-
if (!e || !
|
|
915
|
+
}), { isInitializing: j, isAuthReady: te, initError: M, planConfigInstance: N, websocket: P, collaboration: F, isCollaborationEnabled: re, editor: I, core: L, featureFlags: R, mediaLib: z, exporter: ie, testEmail: V, commentsInstance: ae, savedModulesHeadless: oe, panelState: H, snapshotPreview: U, collabWarning: W, showSaveModuleDialog: G, showModuleBrowserModal: K, saveModulePreSelectedBlockId: q, setThemeOverrides: se, setUiTheme: ce } = A, J = w("blocks");
|
|
916
|
+
t(he, J);
|
|
917
|
+
let Y = x(() => le(l.config.editorType) === "popup"), X = x(() => Y.value && J.value === "displayRules"), ue = x(() => Y.value && J.value === "schedule"), de = x(() => J.value === "design"), fe = x(() => Y.value && (X.value || ue.value || de.value)), pe = x(() => X.value || ue.value);
|
|
918
|
+
r(() => [te.value, I.content.value.settings.popup], ([e]) => {
|
|
919
|
+
if (!e || !Y.value || I.content.value.settings.popup) return;
|
|
920
920
|
let t = ee();
|
|
921
|
-
|
|
921
|
+
I.updateSettings({
|
|
922
922
|
popup: t,
|
|
923
923
|
width: xe[t.design.sizePreset]
|
|
924
924
|
});
|
|
925
925
|
}, { immediate: !0 });
|
|
926
926
|
async function me(e) {
|
|
927
927
|
try {
|
|
928
|
-
await
|
|
928
|
+
await V.sendTestEmail(e), H.testEmailModalOpen.value = !1;
|
|
929
929
|
} catch {}
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function ge(e, t) {
|
|
932
932
|
for (let n = 0; n < e.content.length; n++) {
|
|
933
|
-
let r =
|
|
934
|
-
|
|
933
|
+
let r = ne(e.content[n]), i = t === void 0 ? void 0 : t + n;
|
|
934
|
+
I.addBlock(r, void 0, void 0, i);
|
|
935
935
|
}
|
|
936
|
-
|
|
936
|
+
K.value = !1;
|
|
937
937
|
}
|
|
938
|
-
let
|
|
938
|
+
let Z = Je({
|
|
939
939
|
config: l.config,
|
|
940
|
-
editor:
|
|
941
|
-
websocket:
|
|
942
|
-
planConfigInstance:
|
|
943
|
-
snapshotPreview:
|
|
944
|
-
core:
|
|
945
|
-
exporter:
|
|
946
|
-
featureFlags:
|
|
940
|
+
editor: I,
|
|
941
|
+
websocket: P,
|
|
942
|
+
planConfigInstance: N,
|
|
943
|
+
snapshotPreview: U,
|
|
944
|
+
core: L,
|
|
945
|
+
exporter: ie,
|
|
946
|
+
featureFlags: R,
|
|
947
947
|
isDestroyed: A.isDestroyed
|
|
948
|
-
}),
|
|
949
|
-
if (
|
|
950
|
-
let e =
|
|
951
|
-
if (!
|
|
948
|
+
}), Q = x(() => {
|
|
949
|
+
if (I.state.previewMode) return ["tpl:left-0", "tpl:right-0"];
|
|
950
|
+
let e = H.rightPanelOpen.value ? "tpl:right-[680px]" : "tpl:right-[320px]";
|
|
951
|
+
if (!Y.value) return ["tpl:left-12", e];
|
|
952
952
|
let t;
|
|
953
|
-
return t =
|
|
953
|
+
return t = J.value === "blocks" ? "tpl:left-[272px]" : de.value ? "tpl:left-[392px]" : "tpl:left-[72px]", [t, fe.value ? "tpl:right-0" : e];
|
|
954
954
|
}), $ = Ye({
|
|
955
|
-
issues:
|
|
956
|
-
planConfig:
|
|
955
|
+
issues: L.accessibilityLint ? L.accessibilityLint.issues : w([]),
|
|
956
|
+
planConfig: N.config
|
|
957
957
|
});
|
|
958
958
|
async function _e() {
|
|
959
|
-
await $.tryRunSave(() =>
|
|
959
|
+
await $.tryRunSave(() => Z.saveTemplate().catch((e) => l.config.onError?.(e)));
|
|
960
960
|
}
|
|
961
961
|
return A.onSaveHook.value = _e, a(() => {
|
|
962
962
|
A.initialize();
|
|
963
963
|
}), o(() => {
|
|
964
964
|
A.destroy();
|
|
965
965
|
}), i({
|
|
966
|
-
getContent: () =>
|
|
967
|
-
setContent: (e) =>
|
|
968
|
-
setTheme:
|
|
969
|
-
setThemeOverrides:
|
|
966
|
+
getContent: () => I.content.value,
|
|
967
|
+
setContent: (e) => I.setContent(e),
|
|
968
|
+
setTheme: ce,
|
|
969
|
+
setThemeOverrides: se,
|
|
970
970
|
undo: () => {
|
|
971
|
-
|
|
971
|
+
W.showCollabUndoWarning(), L.history.undo();
|
|
972
972
|
},
|
|
973
|
-
redo: () =>
|
|
974
|
-
canUndo: () =>
|
|
975
|
-
canRedo: () =>
|
|
976
|
-
create:
|
|
977
|
-
load:
|
|
978
|
-
save:
|
|
979
|
-
sendTestEmail:
|
|
973
|
+
redo: () => L.history.redo(),
|
|
974
|
+
canUndo: () => L.history.canUndo.value,
|
|
975
|
+
canRedo: () => L.history.canRedo.value,
|
|
976
|
+
create: Z.createTemplate,
|
|
977
|
+
load: Z.loadTemplate,
|
|
978
|
+
save: Z.saveTemplate,
|
|
979
|
+
sendTestEmail: V.sendTestEmail,
|
|
980
980
|
startTour: (e) => k.value?.start(e),
|
|
981
981
|
dismissTour: () => k.value?.dismiss(),
|
|
982
982
|
resetTourDismissed: () => je(l.config.tour),
|
|
983
983
|
isTourDismissed: () => l.config.tour ? Te(l.config.tour) : !0
|
|
984
984
|
}), (t, r) => (s(), E("div", {
|
|
985
|
-
class: T(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": p(
|
|
986
|
-
"data-tpl-theme": p(
|
|
987
|
-
style: h(p(
|
|
985
|
+
class: T(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": p(I).state.darkMode }]),
|
|
986
|
+
"data-tpl-theme": p(L).resolvedTheme.value,
|
|
987
|
+
style: h(p(L).themeStyles.value)
|
|
988
988
|
}, [
|
|
989
989
|
D(S, {
|
|
990
990
|
"enter-active-class": "tpl:transition-opacity tpl:duration-200",
|
|
@@ -994,7 +994,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
994
994
|
"leave-from-class": "tpl:opacity-100",
|
|
995
995
|
"leave-to-class": "tpl:opacity-0"
|
|
996
996
|
}, {
|
|
997
|
-
default: u(() => [D(Tt, { visible: p(j) || p(
|
|
997
|
+
default: u(() => [D(Tt, { visible: p(j) || p(I).state.isLoading }, null, 8, ["visible"])]),
|
|
998
998
|
_: 1
|
|
999
999
|
}),
|
|
1000
1000
|
D(S, {
|
|
@@ -1006,8 +1006,8 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1006
1006
|
"leave-to-class": "tpl:opacity-0"
|
|
1007
1007
|
}, {
|
|
1008
1008
|
default: u(() => [D(jt, {
|
|
1009
|
-
error: p(
|
|
1010
|
-
visible: !!p(
|
|
1009
|
+
error: p(M),
|
|
1010
|
+
visible: !!p(M) && !p(j),
|
|
1011
1011
|
onRetry: p(A).initialize
|
|
1012
1012
|
}, null, 8, [
|
|
1013
1013
|
"error",
|
|
@@ -1017,18 +1017,18 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1017
1017
|
_: 1
|
|
1018
1018
|
}),
|
|
1019
1019
|
D(bt, {
|
|
1020
|
-
editor: p(
|
|
1021
|
-
"on-before-history-undo": p(
|
|
1022
|
-
"feature-flags": p(
|
|
1023
|
-
"panel-state": p(
|
|
1024
|
-
"snapshot-preview": p(
|
|
1025
|
-
"comments-instance": p(
|
|
1026
|
-
"test-email": p(
|
|
1027
|
-
websocket: p(
|
|
1028
|
-
collaboration: p(
|
|
1029
|
-
"is-collaboration-enabled": p(
|
|
1030
|
-
"is-saving": p(
|
|
1031
|
-
"is-save-disabled": p(
|
|
1020
|
+
editor: p(I),
|
|
1021
|
+
"on-before-history-undo": p(W).showCollabUndoWarning,
|
|
1022
|
+
"feature-flags": p(R),
|
|
1023
|
+
"panel-state": p(H),
|
|
1024
|
+
"snapshot-preview": p(U),
|
|
1025
|
+
"comments-instance": p(ae),
|
|
1026
|
+
"test-email": p(V),
|
|
1027
|
+
websocket: p(P),
|
|
1028
|
+
collaboration: p(F),
|
|
1029
|
+
"is-collaboration-enabled": p(re),
|
|
1030
|
+
"is-saving": p(I).state.isSaving || p(R).isSaveExporting.value,
|
|
1031
|
+
"is-save-disabled": p(I).state.isSaving || p(R).isSaveExporting.value || !p(I).state.isDirty,
|
|
1032
1032
|
onSave: _e
|
|
1033
1033
|
}, null, 8, [
|
|
1034
1034
|
"editor",
|
|
@@ -1056,9 +1056,9 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1056
1056
|
"onConfirm"
|
|
1057
1057
|
]),
|
|
1058
1058
|
D(Ft, {
|
|
1059
|
-
visible: p(
|
|
1060
|
-
onCancel: p(
|
|
1061
|
-
onConfirm: p(
|
|
1059
|
+
visible: p(U).isPreviewingSnapshot.value,
|
|
1060
|
+
onCancel: p(U).cancelPreview,
|
|
1061
|
+
onConfirm: p(U).confirmRestoreSnapshot
|
|
1062
1062
|
}, null, 8, [
|
|
1063
1063
|
"visible",
|
|
1064
1064
|
"onCancel",
|
|
@@ -1072,21 +1072,21 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1072
1072
|
"leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
|
|
1073
1073
|
"leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
|
|
1074
1074
|
}, {
|
|
1075
|
-
default: u(() => [D(Lt, { visible: p(
|
|
1075
|
+
default: u(() => [D(Lt, { visible: p(W).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
|
|
1076
1076
|
_: 1
|
|
1077
1077
|
}),
|
|
1078
|
-
n(D(Fe, null, null, 512), [[b, !p(
|
|
1078
|
+
n(D(Fe, null, null, 512), [[b, !p(I).state.previewMode]]),
|
|
1079
1079
|
y("div", {
|
|
1080
|
-
class: T(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [...
|
|
1080
|
+
class: T(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [...Q.value, p(U).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
1081
1081
|
style: h({
|
|
1082
1082
|
transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1083
1083
|
backgroundColor: pe.value ? "var(--tpl-bg)" : "var(--tpl-canvas-bg)"
|
|
1084
1084
|
})
|
|
1085
|
-
}, [
|
|
1085
|
+
}, [Y.value && J.value === "displayRules" ? (s(), v(Pe, { key: 0 })) : Y.value && J.value === "schedule" ? (s(), v(Re, {
|
|
1086
1086
|
key: 1,
|
|
1087
1087
|
layout: "standalone"
|
|
1088
1088
|
})) : (s(), E(g, { key: 2 }, [y("div", zt, [D(S, { name: "tpl-restore-btn" }, {
|
|
1089
|
-
default: u(() => [p(
|
|
1089
|
+
default: u(() => [p(L).conditionPreview.hasHiddenBlocks.value ? (s(), E("button", {
|
|
1090
1090
|
key: 0,
|
|
1091
1091
|
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",
|
|
1092
1092
|
style: {
|
|
@@ -1095,26 +1095,26 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1095
1095
|
"border-color": "var(--tpl-warning)",
|
|
1096
1096
|
"backdrop-filter": "blur(8px)"
|
|
1097
1097
|
},
|
|
1098
|
-
onClick: r[0] ||= (e) => p(
|
|
1098
|
+
onClick: r[0] ||= (e) => p(L).conditionPreview.reset()
|
|
1099
1099
|
}, [D(p(Ce), {
|
|
1100
1100
|
size: 13,
|
|
1101
1101
|
"stroke-width": 2
|
|
1102
|
-
}), f(" " + _(p(
|
|
1102
|
+
}), f(" " + _(p(L).t.blockSettings.restoreHiddenBlocks), 1)])) : d("", !0)]),
|
|
1103
1103
|
_: 1
|
|
1104
|
-
})]), y("main", { class: T(["tpl-main tpl:flex tpl:w-full tpl:flex-col",
|
|
1105
|
-
"preview-mode": p(
|
|
1104
|
+
})]), y("main", { class: T(["tpl-main tpl:flex tpl:w-full tpl:flex-col", Y.value ? "tpl:gap-3 tpl:px-4 tpl:pt-4 tpl:pb-6" : "tpl:items-center tpl:gap-3 tpl:p-8"]) }, [D(Ne, {
|
|
1105
|
+
"preview-mode": p(I).state.previewMode,
|
|
1106
1106
|
"multi-page-canvas": e.config.multiPageCanvas ?? !1
|
|
1107
|
-
}, null, 8, ["preview-mode", "multi-page-canvas"]),
|
|
1108
|
-
viewport: p(
|
|
1109
|
-
content: p(
|
|
1110
|
-
"selected-block-id": p(
|
|
1111
|
-
"dark-mode": p(
|
|
1112
|
-
"preview-mode": p(
|
|
1107
|
+
}, null, 8, ["preview-mode", "multi-page-canvas"]), Y.value ? (s(), E("div", Bt, [r[11] ||= O("<div class=\"tpl-popup-browser-bar tpl:relative tpl:flex tpl:h-9 tpl:items-center tpl:gap-1.5 tpl:border-b tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:px-3\" aria-hidden=\"true\" data-v-1d3e3f2d><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#ff5f57;\" data-v-1d3e3f2d></span><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#febc2e;\" data-v-1d3e3f2d></span><span class=\"tpl:block tpl:size-3 tpl:rounded-full\" style=\"background-color:#28c840;\" data-v-1d3e3f2d></span><div class=\"tpl:pointer-events-none tpl:absolute tpl:left-1/2 tpl:top-1/2 tpl:-translate-x-1/2 tpl:-translate-y-1/2 tpl:rounded-md tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-0.5 tpl:text-[11px] tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:tracking-tight\" data-v-1d3e3f2d> yourstore.com </div></div>", 1), D(Ae, {
|
|
1108
|
+
viewport: p(I).state.viewport,
|
|
1109
|
+
content: p(I).content.value,
|
|
1110
|
+
"selected-block-id": p(I).state.selectedBlockId,
|
|
1111
|
+
"dark-mode": p(I).state.darkMode,
|
|
1112
|
+
"preview-mode": p(I).state.previewMode,
|
|
1113
1113
|
"multi-page-canvas": e.config.multiPageCanvas ?? !1,
|
|
1114
|
-
"locked-blocks": p(
|
|
1115
|
-
onSelectBlock: p(
|
|
1116
|
-
onOpenAiChat: r[1] ||= (e) => p(
|
|
1117
|
-
onOpenDesignReference: r[2] ||= (e) => p(
|
|
1114
|
+
"locked-blocks": p(F)?.lockedBlocks.value ?? void 0,
|
|
1115
|
+
onSelectBlock: p(I).selectBlock,
|
|
1116
|
+
onOpenAiChat: r[1] ||= (e) => p(H).aiChatOpen.value = !0,
|
|
1117
|
+
onOpenDesignReference: r[2] ||= (e) => p(H).designReferenceOpen.value = !0
|
|
1118
1118
|
}, null, 8, [
|
|
1119
1119
|
"viewport",
|
|
1120
1120
|
"content",
|
|
@@ -1126,16 +1126,16 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1126
1126
|
"onSelectBlock"
|
|
1127
1127
|
])])) : (s(), v(Ae, {
|
|
1128
1128
|
key: 1,
|
|
1129
|
-
viewport: p(
|
|
1130
|
-
content: p(
|
|
1131
|
-
"selected-block-id": p(
|
|
1132
|
-
"dark-mode": p(
|
|
1133
|
-
"preview-mode": p(
|
|
1129
|
+
viewport: p(I).state.viewport,
|
|
1130
|
+
content: p(I).content.value,
|
|
1131
|
+
"selected-block-id": p(I).state.selectedBlockId,
|
|
1132
|
+
"dark-mode": p(I).state.darkMode,
|
|
1133
|
+
"preview-mode": p(I).state.previewMode,
|
|
1134
1134
|
"multi-page-canvas": e.config.multiPageCanvas ?? !1,
|
|
1135
|
-
"locked-blocks": p(
|
|
1136
|
-
onSelectBlock: p(
|
|
1137
|
-
onOpenAiChat: r[3] ||= (e) => p(
|
|
1138
|
-
onOpenDesignReference: r[4] ||= (e) => p(
|
|
1135
|
+
"locked-blocks": p(F)?.lockedBlocks.value ?? void 0,
|
|
1136
|
+
onSelectBlock: p(I).selectBlock,
|
|
1137
|
+
onOpenAiChat: r[3] ||= (e) => p(H).aiChatOpen.value = !0,
|
|
1138
|
+
onOpenDesignReference: r[4] ||= (e) => p(H).designReferenceOpen.value = !0
|
|
1139
1139
|
}, null, 8, [
|
|
1140
1140
|
"viewport",
|
|
1141
1141
|
"content",
|
|
@@ -1146,51 +1146,51 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1146
1146
|
"locked-blocks",
|
|
1147
1147
|
"onSelectBlock"
|
|
1148
1148
|
]))], 2)], 64))], 6),
|
|
1149
|
-
e.config.branding !== !1 && !p(
|
|
1149
|
+
e.config.branding !== !1 && !p(R).isWhiteLabeled.value ? (s(), v(Le, {
|
|
1150
1150
|
key: 0,
|
|
1151
|
-
"position-class":
|
|
1151
|
+
"position-class": Q.value
|
|
1152
1152
|
}, null, 8, ["position-class"])) : d("", !0),
|
|
1153
1153
|
y("div", {
|
|
1154
1154
|
class: "tpl-sr-only",
|
|
1155
1155
|
role: "status",
|
|
1156
1156
|
"aria-live": "polite",
|
|
1157
1157
|
"aria-atomic": "true",
|
|
1158
|
-
"aria-label": p(
|
|
1159
|
-
}, _(p(
|
|
1158
|
+
"aria-label": p(L).t.landmarks.reorderAnnouncements
|
|
1159
|
+
}, _(p(L).keyboardReorder.announcement.value), 9, Vt),
|
|
1160
1160
|
n(D(Oe, {
|
|
1161
|
-
"selected-block": p(
|
|
1162
|
-
settings: p(
|
|
1163
|
-
"shifted-left": p(
|
|
1164
|
-
onUpdateBlock: r[5] ||= (e) => p(
|
|
1165
|
-
onDeleteBlock: r[6] ||= (e) => p(
|
|
1166
|
-
onDuplicateBlock: r[7] ||= (e) => p(
|
|
1167
|
-
onUpdateSettings: p(
|
|
1161
|
+
"selected-block": p(I).selectedBlock.value,
|
|
1162
|
+
settings: p(I).content.value.settings,
|
|
1163
|
+
"shifted-left": p(H).rightPanelOpen.value,
|
|
1164
|
+
onUpdateBlock: r[5] ||= (e) => p(I).updateBlock(p(I).selectedBlock.value.id, e),
|
|
1165
|
+
onDeleteBlock: r[6] ||= (e) => p(L).blockActions.deleteBlock(p(I).selectedBlock.value.id),
|
|
1166
|
+
onDuplicateBlock: r[7] ||= (e) => p(L).blockActions.duplicateBlock(p(I).selectedBlock.value),
|
|
1167
|
+
onUpdateSettings: p(I).updateSettings
|
|
1168
1168
|
}, null, 8, [
|
|
1169
1169
|
"selected-block",
|
|
1170
1170
|
"settings",
|
|
1171
1171
|
"shifted-left",
|
|
1172
1172
|
"onUpdateSettings"
|
|
1173
|
-
]), [[b, !p(
|
|
1174
|
-
!p(j) && p(
|
|
1173
|
+
]), [[b, !p(I).state.previewMode && !fe.value]]),
|
|
1174
|
+
!p(j) && p(te) ? (s(), v(xt, {
|
|
1175
1175
|
key: 1,
|
|
1176
1176
|
ref_key: "cloudPanelsRef",
|
|
1177
1177
|
ref: C,
|
|
1178
1178
|
config: l.config,
|
|
1179
|
-
editor: p(
|
|
1180
|
-
core: p(
|
|
1181
|
-
"panel-state": p(
|
|
1182
|
-
"plan-config-instance": p(
|
|
1183
|
-
"test-email": p(
|
|
1184
|
-
"media-lib": p(
|
|
1185
|
-
"saved-modules-headless": p(
|
|
1186
|
-
"show-save-module-dialog": p(
|
|
1187
|
-
"save-module-pre-selected-block-id": p(
|
|
1188
|
-
"show-module-browser-modal": p(
|
|
1189
|
-
"onUpdate:showSaveModuleDialog": r[8] ||= (e) =>
|
|
1190
|
-
"onUpdate:saveModulePreSelectedBlockId": r[9] ||= (e) =>
|
|
1191
|
-
"onUpdate:showModuleBrowserModal": r[10] ||= (e) =>
|
|
1179
|
+
editor: p(I),
|
|
1180
|
+
core: p(L),
|
|
1181
|
+
"panel-state": p(H),
|
|
1182
|
+
"plan-config-instance": p(N),
|
|
1183
|
+
"test-email": p(V),
|
|
1184
|
+
"media-lib": p(z),
|
|
1185
|
+
"saved-modules-headless": p(oe),
|
|
1186
|
+
"show-save-module-dialog": p(G),
|
|
1187
|
+
"save-module-pre-selected-block-id": p(q),
|
|
1188
|
+
"show-module-browser-modal": p(K),
|
|
1189
|
+
"onUpdate:showSaveModuleDialog": r[8] ||= (e) => G.value = e,
|
|
1190
|
+
"onUpdate:saveModulePreSelectedBlockId": r[9] ||= (e) => q.value = e,
|
|
1191
|
+
"onUpdate:showModuleBrowserModal": r[10] ||= (e) => K.value = e,
|
|
1192
1192
|
onSendTestEmail: me,
|
|
1193
|
-
onModuleInsert:
|
|
1193
|
+
onModuleInsert: ge
|
|
1194
1194
|
}, null, 8, [
|
|
1195
1195
|
"config",
|
|
1196
1196
|
"editor",
|
|
@@ -1209,7 +1209,7 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1209
1209
|
ref_key: "editorTourRef",
|
|
1210
1210
|
ref: k,
|
|
1211
1211
|
"tour-config": e.config.tour,
|
|
1212
|
-
"dark-mode": p(
|
|
1212
|
+
"dark-mode": p(I).state.darkMode
|
|
1213
1213
|
}, null, 8, ["tour-config", "dark-mode"])) : d("", !0)
|
|
1214
1214
|
], 14, Rt));
|
|
1215
1215
|
}
|
|
@@ -1217,4 +1217,4 @@ var Xe = ["aria-label"], Ze = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1217
1217
|
//#endregion
|
|
1218
1218
|
export { Ht as default };
|
|
1219
1219
|
|
|
1220
|
-
//# sourceMappingURL=CloudEditor-
|
|
1220
|
+
//# sourceMappingURL=CloudEditor-BBBkTBfW.js.map
|