@templatical/editor 0.7.3 → 0.8.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-H7SIsxeC.js → AiChatSidebar-B74X6tIx.js} +3 -3
- package/dist/{AiFeatureMenu-CJGX-fP5.js → AiFeatureMenu-BOxQqkn9.js} +4 -4
- package/dist/{BlockA11yBadge-BhyoMZJ9.js → BlockIssueBadge-DJTiT1eF.js} +6 -6
- package/dist/{CloudEditor-BBs3p-mW.js → CloudEditor-BzCVDD6e.js} +24 -24
- package/dist/{CollaboratorBar-CiEo25lb.js → CollaboratorBar-Cb-c1IkS.js} +2 -2
- package/dist/{CommentsSidebar-DikjSLtH.js → CommentsSidebar-Qvppl-DR.js} +6 -6
- package/dist/{CountdownBlock-ByJ0_8Pk.js → CountdownBlock-D0IiMliC.js} +1 -1
- package/dist/{CountdownToolbar-Bn4RwJVN.js → CountdownToolbar-BVVT8U5C.js} +2 -2
- package/dist/{DesignReferenceSidebar-D08CLZPA.js → DesignReferenceSidebar-ucgtoDll.js} +6 -6
- package/dist/{AccessibilityPanel-BeUibrUb.js → IssuesPanel-XVdvrgmq.js} +18 -18
- package/dist/{ModuleBrowserModal-D6637s8j.js → ModuleBrowserModal-BotDsZ0R.js} +7 -7
- package/dist/{ModulePreviewCanvas-DBFmwq-y.js → ModulePreviewCanvas-CDg4MnJP.js} +2 -2
- package/dist/{NumberWithSuffix-CyFX9w1e.js → NumberWithSuffix-n-cr7lpU.js} +1 -1
- package/dist/{ParagraphEditor-DC2jOjNh.js → ParagraphEditor-CfzIUFQ_.js} +6 -6
- package/dist/{RichTextEditorContent-8NkjTIua.js → RichTextEditorContent-Cu9NEkKd.js} +3 -3
- package/dist/{SaveModuleDialog-NKT7bWWs.js → SaveModuleDialog-DuzfCamG.js} +6 -6
- package/dist/{SnapshotHistory-XNqYxPBj.js → SnapshotHistory-DiAPOSDM.js} +5 -5
- package/dist/{TemplateScoringPanel-kYOGtac3.js → TemplateScoringPanel-BzDVdfOx.js} +6 -6
- package/dist/{TestEmailModal-B_-Qo5Us.js → TestEmailModal-D5I5Mgtb.js} +3 -3
- package/dist/{TitleEditor-DnH3yyTr.js → TitleEditor-CZUkhtDo.js} +6 -6
- package/dist/{TplModal-BoEZFe3U.js → TplModal-CVq2BAIW.js} +3 -3
- package/dist/{blockTypeIcons-CUcYuWAO.js → blockTypeIcons-CJNuGjLX.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-SxIqfqA0.js → AiFeatureMenu-DtrT-aFR.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-SxIqfqA0.js.map → AiFeatureMenu-DtrT-aFR.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-QqW6nomn.js → BlockIssueBadge-w7n4orSd.js} +6 -6
- package/dist/cdn/chunks/BlockIssueBadge-w7n4orSd.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-ChWUIMw7.js → CloudEditor-CwG0DhG1.js} +101 -101
- package/dist/cdn/chunks/CloudEditor-CwG0DhG1.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-73LfbzqF.js → CollaboratorBar-DYjZaz7H.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-73LfbzqF.js.map → CollaboratorBar-DYjZaz7H.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-WYz9b9Ex.js → CountdownBlock-CFR8VJCU.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-WYz9b9Ex.js.map → CountdownBlock-CFR8VJCU.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-B9fPfFqp.js → CountdownToolbar-DOrQCH57.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-B9fPfFqp.js.map → CountdownToolbar-DOrQCH57.js.map} +1 -1
- package/dist/cdn/chunks/{AccessibilityPanel-CQt87OMk.js → IssuesPanel-C54PhBgc.js} +15 -15
- package/dist/cdn/chunks/IssuesPanel-C54PhBgc.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-DfnJQBkM.js → ModuleBrowserModal-4V6um-AC.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-DfnJQBkM.js.map → ModuleBrowserModal-4V6um-AC.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DE4_oHA_.js → ModulePreviewCanvas-DL8zI6VX.js} +24 -24
- package/dist/cdn/chunks/{ModulePreviewCanvas-DE4_oHA_.js.map → ModulePreviewCanvas-DL8zI6VX.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BST0yRor.js → NumberWithSuffix-avXrYDo6.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-BST0yRor.js.map → NumberWithSuffix-avXrYDo6.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CQfijF3i.js → ParagraphEditor-Cpmy85zL.js} +15 -15
- package/dist/cdn/chunks/{ParagraphEditor-CQfijF3i.js.map → ParagraphEditor-Cpmy85zL.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CBds8dnm.js → RichTextEditorContent-CFL-Lrv5.js} +2 -2
- package/dist/cdn/chunks/{RichTextEditorContent-CBds8dnm.js.map → RichTextEditorContent-CFL-Lrv5.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DXhuZgZ4.js → SaveModuleDialog-D6szy5vX.js} +4 -4
- package/dist/cdn/chunks/{SaveModuleDialog-DXhuZgZ4.js.map → SaveModuleDialog-D6szy5vX.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BdQvH7eK.js → TitleEditor-CSDdss38.js} +7 -7
- package/dist/cdn/chunks/{TitleEditor-BdQvH7eK.js.map → TitleEditor-CSDdss38.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-D3CGFW5P.js → blockTypeIcons-BEdpG8xl.js} +8 -8
- package/dist/cdn/chunks/{blockTypeIcons-D3CGFW5P.js.map → blockTypeIcons-BEdpG8xl.js.map} +1 -1
- package/dist/{de-C9hp3n_a.js → cdn/chunks/de-BBEGQDsd.js} +9 -7
- package/dist/cdn/chunks/{de-B_6zGPbx.js.map → de-BBEGQDsd.js.map} +1 -1
- package/dist/{en-Dv776AqL.js → cdn/chunks/en-CHha-_ta.js} +9 -7
- package/dist/cdn/chunks/{en-pYt1-lm4.js.map → en-CHha-_ta.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-BE81zpqP.js → extensions-DgvvgeJU.js} +2 -2
- package/dist/cdn/chunks/{extensions-BE81zpqP.js.map → extensions-DgvvgeJU.js.map} +1 -1
- package/dist/cdn/chunks/{features-CXF_YKlL.js → features-CgTy87Ni.js} +29 -17
- package/dist/cdn/chunks/features-CgTy87Ni.js.map +1 -0
- package/dist/cdn/chunks/{icons-KbmhF7rg.js → icons-DxJ--AJb.js} +36 -38
- package/dist/cdn/chunks/icons-DxJ--AJb.js.map +1 -0
- package/dist/cdn/chunks/{media-library-BERe10wA.js → media-library-Byh_BbTm.js} +13 -13
- package/dist/cdn/chunks/{media-library-BERe10wA.js.map → media-library-Byh_BbTm.js.map} +1 -1
- package/dist/{pt-BR-6n58Fl_q.js → cdn/chunks/pt-BR-CFomv2R8.js} +9 -7
- package/dist/cdn/chunks/{pt-BR-CtDwVsN-.js.map → pt-BR-CFomv2R8.js.map} +1 -1
- package/dist/cdn/chunks/quality-CHCEMG8e.js +1846 -0
- package/dist/cdn/chunks/quality-CHCEMG8e.js.map +1 -0
- package/dist/cdn/chunks/{renderer-OttGEYkY.js → renderer-DttVILgu.js} +3 -3
- package/dist/cdn/chunks/{renderer-OttGEYkY.js.map → renderer-DttVILgu.js.map} +1 -1
- package/dist/cdn/chunks/{src-C21GI0p6.js → src-a8fYhBi5.js} +6 -6
- package/dist/cdn/chunks/{src-C21GI0p6.js.map → src-a8fYhBi5.js.map} +1 -1
- package/dist/cdn/chunks/{styles-Cy-My9zK.js → styles-8qDRQ-6n.js} +310 -285
- package/dist/cdn/chunks/styles-8qDRQ-6n.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +11 -11
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cdn/chunks/de-B_6zGPbx.js → de-KFqjrxG3.js} +7 -9
- package/dist/{cdn/chunks/en-pYt1-lm4.js → en-CNm94YYD.js} +7 -9
- package/dist/{extensions-p6UBqXfg.js → extensions-C-FpnfJn.js} +2 -2
- package/dist/index.d.ts +14 -12
- package/dist/{keys-B5SJtPWf.js → keys-CY3tkCsv.js} +2 -2
- package/dist/list-checks-CMtEXe9l.js +25 -0
- package/dist/{cdn/chunks/pt-BR-CtDwVsN-.js → pt-BR-gxZZAUWp.js} +7 -9
- package/dist/style.css +1 -1
- package/dist/{styles-BP15QmP3.js → styles-Ci7RdimQ.js} +204 -179
- package/dist/templatical-editor.js +9 -9
- package/dist/{useCloudI18n-ByEMykjO.js → useCloudI18n-BPUHj2CZ.js} +1 -1
- package/dist/{useEditorCore-_rbu6iMu.js → useEditorCore-DT3VrvZS.js} +41 -29
- package/dist/{useI18n-PEB8ioi_.js → useI18n-CWX9ZTCW.js} +1 -1
- package/dist/{useMergeTag-C47xwU7X.js → useMergeTag-B3F9VR04.js} +2 -2
- package/dist/{usePopoverRoot-BwzFSPLy.js → usePopoverRoot-BKJcxsst.js} +1 -1
- package/package.json +7 -7
- package/dist/accessibility-BgUEA-Ai.js +0 -27
- package/dist/cdn/chunks/AccessibilityPanel-CQt87OMk.js.map +0 -1
- package/dist/cdn/chunks/BlockA11yBadge-QqW6nomn.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-ChWUIMw7.js.map +0 -1
- package/dist/cdn/chunks/features-CXF_YKlL.js.map +0 -1
- package/dist/cdn/chunks/icons-KbmhF7rg.js.map +0 -1
- package/dist/cdn/chunks/quality-CmkY1kMU.js +0 -1456
- package/dist/cdn/chunks/quality-CmkY1kMU.js.map +0 -1
- package/dist/cdn/chunks/styles-Cy-My9zK.js.map +0 -1
- /package/dist/{check-Bg5yrRmX.js → check-BF4bEbCU.js} +0 -0
- /package/dist/{chevron-down-tee-ghFi.js → chevron-down-4NzWtv6Y.js} +0 -0
- /package/dist/{circle-alert-C0L9pUQ4.js → circle-alert-CPIth9bC.js} +0 -0
- /package/dist/{clock-CDlEdqiP.js → clock-B9-ct9r_.js} +0 -0
- /package/dist/{image-up-1D_3XDdO.js → image-up-CubAveUO.js} +0 -0
- /package/dist/{info-DTGrc0Bx.js → info-DiINxXfZ.js} +0 -0
- /package/dist/{refresh-cw-BNAhAmtL.js → refresh-cw-C9_M6yB3.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
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 ee } from "./draggable-P6QWzy4g.js";
|
|
2
|
-
import {
|
|
3
|
-
import { C as be, S as xe } from "./icons-
|
|
4
|
-
import { a as Se, c as Ce, i as we, n as Te, o as Ee, r as De, s as Oe, t as ke } from "./styles-
|
|
2
|
+
import { A as O, At as k, C as A, Dt as j, Et as M, Ft as N, Ht as P, It as F, Ln as I, Nt as L, O as te, Qt as R, Rt as ne, S as re, Ut as z, Vt as B, Xt as ie, Z as V, Zt as H, _ as U, _t as W, b as ae, d as oe, dn as G, f as K, g as q, h as J, l as se, m as Y, p as ce, pt as X, rn as Z, rt as le, st as ue, tt as Q, u as de, ut as fe, v as pe, vt as me, w as he, wn as ge, x as _e, y as ve, yn as ye } from "./features-CgTy87Ni.js";
|
|
3
|
+
import { C as be, S as xe } from "./icons-DxJ--AJb.js";
|
|
4
|
+
import { a as Se, c as Ce, i as we, n as Te, o as Ee, r as De, s as Oe, t as ke } from "./styles-8qDRQ-6n.js";
|
|
5
5
|
import { d as $ } from "./styleConstants-DP1VOca8.js";
|
|
6
6
|
//#region src/cloud/composables/useSnapshotPreview.ts
|
|
7
7
|
function Ae(t) {
|
|
@@ -178,26 +178,26 @@ function Fe(e) {
|
|
|
178
178
|
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 te({
|
|
179
179
|
...t.auth,
|
|
180
180
|
onError: t.onError
|
|
181
|
-
}), _ =
|
|
181
|
+
}), _ = oe({
|
|
182
182
|
authManager: g,
|
|
183
183
|
onError: t.onError
|
|
184
|
-
}), v = c(/* @__PURE__ */ new Map()), y =
|
|
184
|
+
}), v = c(/* @__PURE__ */ new Map()), y = A({
|
|
185
185
|
authManager: g,
|
|
186
186
|
defaultFontFamily: t.fonts?.defaultFont,
|
|
187
187
|
templateDefaults: t.templateDefaults,
|
|
188
188
|
onError: t.onError,
|
|
189
189
|
lockedBlocks: v
|
|
190
|
-
}), b =
|
|
190
|
+
}), b = q({
|
|
191
191
|
authManager: g,
|
|
192
192
|
onError: t.onError
|
|
193
193
|
});
|
|
194
|
-
t.mcp?.enabled &&
|
|
194
|
+
t.mcp?.enabled && se({
|
|
195
195
|
editor: y,
|
|
196
196
|
channel: b.channel,
|
|
197
197
|
onOperation: t.mcp.onOperation
|
|
198
198
|
});
|
|
199
199
|
let x = null;
|
|
200
|
-
t.collaboration?.enabled && (x =
|
|
200
|
+
t.collaboration?.enabled && (x = pe({
|
|
201
201
|
authManager: g,
|
|
202
202
|
editor: y,
|
|
203
203
|
channel: b.channel,
|
|
@@ -209,7 +209,7 @@ function Fe(e) {
|
|
|
209
209
|
}), ee(() => x.lockedBlocks.value, (e) => {
|
|
210
210
|
v.value = e;
|
|
211
211
|
}, { immediate: !0 }), U(y, x));
|
|
212
|
-
let S = f(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), C =
|
|
212
|
+
let S = f(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), C = O({
|
|
213
213
|
editor: y,
|
|
214
214
|
config: {
|
|
215
215
|
uiTheme: t.uiTheme,
|
|
@@ -219,7 +219,7 @@ function Fe(e) {
|
|
|
219
219
|
mergeTags: t.mergeTags,
|
|
220
220
|
displayConditions: t.displayConditions,
|
|
221
221
|
onRequestMedia: null,
|
|
222
|
-
|
|
222
|
+
lint: Ce(t),
|
|
223
223
|
onSave: () => {
|
|
224
224
|
p.value?.().catch((e) => {
|
|
225
225
|
t.onError?.(e);
|
|
@@ -255,32 +255,32 @@ function Fe(e) {
|
|
|
255
255
|
onError: t.onError
|
|
256
256
|
});
|
|
257
257
|
m = T;
|
|
258
|
-
let E = je(), D =
|
|
258
|
+
let E = je(), D = re(t.ai), k = Ne({
|
|
259
259
|
planConfigInstance: _,
|
|
260
260
|
aiConfig: D,
|
|
261
261
|
editor: y
|
|
262
|
-
}),
|
|
262
|
+
}), j = Pe({
|
|
263
263
|
onRequestMedia: t.onRequestMedia,
|
|
264
264
|
mediaLibraryOpen: E.mediaLibraryOpen,
|
|
265
265
|
mediaLibraryAccept: E.mediaLibraryAccept
|
|
266
266
|
});
|
|
267
|
-
|
|
267
|
+
V({
|
|
268
268
|
onBlockMove: y.moveBlock,
|
|
269
269
|
onBlockAdd: y.addBlock
|
|
270
270
|
});
|
|
271
|
-
let
|
|
271
|
+
let M = K({
|
|
272
272
|
authManager: g,
|
|
273
273
|
getFontsConfig: () => t.fonts,
|
|
274
274
|
canUseCustomFonts: () => _.hasFeature("custom_fonts")
|
|
275
|
-
}),
|
|
275
|
+
}), N = ce({
|
|
276
276
|
authManager: g,
|
|
277
277
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
278
278
|
save: () => y.save(),
|
|
279
|
-
exportHtml: (e) =>
|
|
279
|
+
exportHtml: (e) => M.exportHtml(e),
|
|
280
280
|
onError: t.onError,
|
|
281
281
|
isAuthReady: l,
|
|
282
282
|
onBeforeTestEmail: t.onBeforeTestEmail
|
|
283
|
-
}),
|
|
283
|
+
}), P = ae({
|
|
284
284
|
authManager: g,
|
|
285
285
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
286
286
|
getSocketId: () => b.getSocketId(),
|
|
@@ -289,14 +289,14 @@ function Fe(e) {
|
|
|
289
289
|
isAuthReady: l,
|
|
290
290
|
hasCommentingFeature: () => t.commenting !== !1 && _.hasFeature("commenting")
|
|
291
291
|
});
|
|
292
|
-
|
|
293
|
-
comments:
|
|
292
|
+
ve({
|
|
293
|
+
comments: P,
|
|
294
294
|
channel: b.channel
|
|
295
295
|
});
|
|
296
|
-
let
|
|
296
|
+
let I = J({
|
|
297
297
|
authManager: g,
|
|
298
298
|
onError: t.onError
|
|
299
|
-
}), W = c(!1), G = c(null), Y = c(!1), X =
|
|
299
|
+
}), W = c(!1), G = c(null), Y = c(!1), X = _e({
|
|
300
300
|
authManager: g,
|
|
301
301
|
getTemplateId: () => y.state.template?.id ?? null
|
|
302
302
|
});
|
|
@@ -305,11 +305,11 @@ function Fe(e) {
|
|
|
305
305
|
o()?.filterByBlock(e);
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
|
-
a(
|
|
308
|
+
a(ie, j.handleRequestMedia), a(ne, g), a(F, D), a(z, P), a(H, I), a(R, X), a(B, {
|
|
309
309
|
plan: _,
|
|
310
310
|
ai: D,
|
|
311
311
|
comments: {
|
|
312
|
-
getBlockCount: (e) =>
|
|
312
|
+
getBlockCount: (e) => P.commentCountByBlock.value.get(e) ?? 0,
|
|
313
313
|
openForBlock: Z
|
|
314
314
|
},
|
|
315
315
|
savedModules: {
|
|
@@ -319,13 +319,13 @@ function Fe(e) {
|
|
|
319
319
|
openBrowser: () => {
|
|
320
320
|
Y.value = !0;
|
|
321
321
|
},
|
|
322
|
-
moduleCount: f(() =>
|
|
322
|
+
moduleCount: f(() => I.modules.value.length)
|
|
323
323
|
}
|
|
324
324
|
});
|
|
325
|
-
function
|
|
325
|
+
function le(e) {
|
|
326
326
|
_.hasFeature("theme_customization") && (C.themeOverrides.value = e);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function ue(e) {
|
|
329
329
|
y.setUiTheme(e);
|
|
330
330
|
}
|
|
331
331
|
async function Q() {
|
|
@@ -333,12 +333,12 @@ function Fe(e) {
|
|
|
333
333
|
try {
|
|
334
334
|
if (await g.initialize(), d) return;
|
|
335
335
|
l.value = !0;
|
|
336
|
-
let e = await
|
|
336
|
+
let e = await de({ authManager: g });
|
|
337
337
|
if (d) return;
|
|
338
338
|
if (!e.api.ok) throw Error("Health check failed: API is not reachable");
|
|
339
339
|
if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
|
|
340
|
-
if (e.websocket.ok ||
|
|
341
|
-
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") &&
|
|
340
|
+
if (e.websocket.ok || L.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await _.fetchConfig(), d) return;
|
|
341
|
+
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");
|
|
342
342
|
} catch (e) {
|
|
343
343
|
if (d) return;
|
|
344
344
|
let n = e instanceof Error ? e : Error("Initialization failed", { cause: e });
|
|
@@ -347,7 +347,7 @@ function Fe(e) {
|
|
|
347
347
|
d || (s.value = !1);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function fe() {
|
|
351
351
|
d = !0, r.cleanupFontLinks(), b.disconnect(), C.destroy(), t.onUnmount?.();
|
|
352
352
|
}
|
|
353
353
|
return {
|
|
@@ -363,12 +363,12 @@ function Fe(e) {
|
|
|
363
363
|
editor: y,
|
|
364
364
|
core: C,
|
|
365
365
|
aiConfig: D,
|
|
366
|
-
featureFlags:
|
|
367
|
-
mediaLib:
|
|
368
|
-
exporter:
|
|
369
|
-
testEmail:
|
|
370
|
-
commentsInstance:
|
|
371
|
-
savedModulesHeadless:
|
|
366
|
+
featureFlags: k,
|
|
367
|
+
mediaLib: j,
|
|
368
|
+
exporter: M,
|
|
369
|
+
testEmail: N,
|
|
370
|
+
commentsInstance: P,
|
|
371
|
+
savedModulesHeadless: I,
|
|
372
372
|
scoringInstance: X,
|
|
373
373
|
panelState: E,
|
|
374
374
|
snapshotPreview: T,
|
|
@@ -378,9 +378,9 @@ function Fe(e) {
|
|
|
378
378
|
saveModulePreSelectedBlockId: G,
|
|
379
379
|
onSaveHook: p,
|
|
380
380
|
initialize: Q,
|
|
381
|
-
destroy:
|
|
382
|
-
setThemeOverrides:
|
|
383
|
-
setUiTheme:
|
|
381
|
+
destroy: fe,
|
|
382
|
+
setThemeOverrides: le,
|
|
383
|
+
setUiTheme: ue,
|
|
384
384
|
openCommentsForBlock: Z
|
|
385
385
|
};
|
|
386
386
|
}
|
|
@@ -388,7 +388,7 @@ function Fe(e) {
|
|
|
388
388
|
//#region src/utils/preRenderCustomBlocks.ts
|
|
389
389
|
async function Ie(e, t) {
|
|
390
390
|
let n = async (e) => {
|
|
391
|
-
if (
|
|
391
|
+
if (ge(e)) {
|
|
392
392
|
let n = e;
|
|
393
393
|
try {
|
|
394
394
|
n.renderedHtml = await t.renderCustomBlock(n);
|
|
@@ -408,7 +408,7 @@ async function Ie(e, t) {
|
|
|
408
408
|
function Le(e) {
|
|
409
409
|
let { config: t, editor: n, websocket: r, planConfigInstance: i, snapshotPreview: a, core: o, exporter: s, featureFlags: c, isDestroyed: l } = e;
|
|
410
410
|
function u() {
|
|
411
|
-
return
|
|
411
|
+
return he(i.config.value.websocket);
|
|
412
412
|
}
|
|
413
413
|
async function d(e) {
|
|
414
414
|
let i = await n.create(e);
|
|
@@ -494,7 +494,7 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
494
494
|
class: "tpl:fixed tpl:inset-0 tpl:z-50 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/40 tpl:p-6",
|
|
495
495
|
onClick: a[2] ||= _((e) => n("cancel"), ["self"])
|
|
496
496
|
}, [x("div", Be, [
|
|
497
|
-
x("header", Ve, [D(h(
|
|
497
|
+
x("header", Ve, [D(h(ue), {
|
|
498
498
|
size: 18,
|
|
499
499
|
"stroke-width": 2,
|
|
500
500
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
@@ -561,7 +561,7 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
561
561
|
},
|
|
562
562
|
emits: ["save"],
|
|
563
563
|
setup(e) {
|
|
564
|
-
let t = u(() => import("./CollaboratorBar-
|
|
564
|
+
let t = u(() => import("./CollaboratorBar-DYjZaz7H.js")), n = u(() => import("./features-CgTy87Ni.js").then((e) => e.r)), r = u(() => import("./AiFeatureMenu-DtrT-aFR.js")), { t: a, format: o } = Q();
|
|
565
565
|
return (c, l) => (i(), p("header", Ye, [
|
|
566
566
|
x("div", Xe, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", Ze, d(h(o)(h(a).header.templatesUsed, {
|
|
567
567
|
used: e.featureFlags.templateCount.value,
|
|
@@ -606,10 +606,10 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
606
606
|
"aria-live": "assertive",
|
|
607
607
|
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
608
608
|
"data-tooltip": e.featureFlags.saveErrorMessage.value
|
|
609
|
-
}, [D(h(
|
|
609
|
+
}, [D(h(j), {
|
|
610
610
|
size: 12,
|
|
611
611
|
"stroke-width": 2.5
|
|
612
|
-
}), T(" " + d(h(a).header.saveFailed), 1)], 8, et)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", tt, [D(h(
|
|
612
|
+
}), T(" " + d(h(a).header.saveFailed), 1)], 8, et)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", tt, [D(h(k), {
|
|
613
613
|
size: 12,
|
|
614
614
|
"stroke-width": 2.5
|
|
615
615
|
}), T(" " + d(h(a).header.saved), 1)])) : e.editor.state.isDirty ? (i(), p("div", nt, [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),
|
|
@@ -640,7 +640,7 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
640
640
|
"aria-expanded": e.panelState.aiMenuOpen.value,
|
|
641
641
|
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"]),
|
|
642
642
|
onClick: l[1] ||= _((...t) => e.panelState.toggleAiMenu && e.panelState.toggleAiMenu(...t), ["stop"])
|
|
643
|
-
}, [D(h(
|
|
643
|
+
}, [D(h(fe), {
|
|
644
644
|
size: 16,
|
|
645
645
|
"stroke-width": 2,
|
|
646
646
|
class: "tpl-ai-btn-icon"
|
|
@@ -668,7 +668,7 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
668
668
|
},
|
|
669
669
|
disabled: e.testEmail.isSending.value || !e.featureFlags.hasTemplateSaved.value,
|
|
670
670
|
onClick: l[2] ||= (t) => e.panelState.testEmailModalOpen.value = !0
|
|
671
|
-
}, [e.testEmail.isSending.value ? (i(), v(h(
|
|
671
|
+
}, [e.testEmail.isSending.value ? (i(), v(h(me), {
|
|
672
672
|
key: 1,
|
|
673
673
|
class: "tpl-spinner",
|
|
674
674
|
size: 16,
|
|
@@ -687,7 +687,7 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
687
687
|
},
|
|
688
688
|
disabled: e.isSaveDisabled,
|
|
689
689
|
onClick: l[3] ||= (e) => c.$emit("save")
|
|
690
|
-
}, [e.isSaving ? (i(), v(h(
|
|
690
|
+
}, [e.isSaving ? (i(), v(h(me), {
|
|
691
691
|
key: 1,
|
|
692
692
|
class: "tpl-spinner",
|
|
693
693
|
size: 16,
|
|
@@ -723,9 +723,9 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
723
723
|
"module-insert"
|
|
724
724
|
],
|
|
725
725
|
setup(e, { expose: t, emit: n }) {
|
|
726
|
-
let r = u(() => import("./features-
|
|
726
|
+
let r = u(() => import("./features-CgTy87Ni.js").then((e) => e.c)), a = u(() => import("./features-CgTy87Ni.js").then((e) => e.s)), o = u(() => import("./features-CgTy87Ni.js").then((e) => e.o)), s = u(() => import("./features-CgTy87Ni.js").then((e) => e.n)), l = u(() => import("./features-CgTy87Ni.js").then((e) => e.t)), d = u(() => import("./SaveModuleDialog-D6szy5vX.js")), f = u(() => import("./ModuleBrowserModal-4V6um-AC.js")), g = u(async () => {
|
|
727
727
|
try {
|
|
728
|
-
return (await import("./src-
|
|
728
|
+
return (await import("./src-a8fYhBi5.js")).MediaLibraryModal;
|
|
729
729
|
} catch {
|
|
730
730
|
throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
|
|
731
731
|
}
|
|
@@ -837,7 +837,7 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
837
837
|
return "isNotFound" in e && !!e.isNotFound;
|
|
838
838
|
}
|
|
839
839
|
return (t, s) => e.visible && e.error ? (i(), p("div", ht, [
|
|
840
|
-
x("div", gt, [D(h(
|
|
840
|
+
x("div", gt, [D(h(j), {
|
|
841
841
|
size: 32,
|
|
842
842
|
"stroke-width": 1.5,
|
|
843
843
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
@@ -859,7 +859,7 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
859
859
|
emits: ["cancel", "confirm"],
|
|
860
860
|
setup(e, { emit: t }) {
|
|
861
861
|
let n = t, { t: r } = Q();
|
|
862
|
-
return (t, a) => e.visible ? (i(), p("div", xt, [x("div", St, [D(h(
|
|
862
|
+
return (t, a) => e.visible ? (i(), p("div", xt, [x("div", St, [D(h(M), {
|
|
863
863
|
size: 18,
|
|
864
864
|
"stroke-width": 2,
|
|
865
865
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
@@ -886,10 +886,10 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
886
886
|
__name: "CollabUndoToast",
|
|
887
887
|
props: { visible: { type: Boolean } },
|
|
888
888
|
setup(e) {
|
|
889
|
-
let { t } =
|
|
889
|
+
let { t } = N();
|
|
890
890
|
return (n, r) => e.visible ? (i(), p("div", Tt, d(h(t).history.collabWarning), 1)) : m("", !0);
|
|
891
891
|
}
|
|
892
|
-
}), Dt = ["data-tpl-theme"], Ot = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, kt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, At = ["aria-label"], jt = /* @__PURE__ */
|
|
892
|
+
}), Dt = ["data-tpl-theme"], Ot = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, kt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, At = ["aria-label"], jt = /* @__PURE__ */ le(/* @__PURE__ */ E({
|
|
893
893
|
__name: "CloudEditor",
|
|
894
894
|
props: {
|
|
895
895
|
config: {},
|
|
@@ -901,7 +901,7 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
901
901
|
emits: ["ready"],
|
|
902
902
|
setup(e, { expose: r, emit: o }) {
|
|
903
903
|
let l = e;
|
|
904
|
-
a(
|
|
904
|
+
a(P, l.cloudTranslations);
|
|
905
905
|
let u = o, f = c(null), _ = c(null), w = Fe({
|
|
906
906
|
config: l.config,
|
|
907
907
|
translations: l.translations,
|
|
@@ -910,31 +910,31 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
910
910
|
getCommentsSidebar: () => f.value ? { filterByBlock: f.value.filterCommentsByBlock } : null,
|
|
911
911
|
editorRoot: l.shadowRoot,
|
|
912
912
|
containerEl: _
|
|
913
|
-
}), { isInitializing: E, isAuthReady: ee, initError: O, planConfigInstance: k, websocket: A, collaboration: j, isCollaborationEnabled: M, editor: N, core:
|
|
914
|
-
async function
|
|
913
|
+
}), { isInitializing: E, isAuthReady: ee, initError: O, planConfigInstance: k, websocket: A, collaboration: j, isCollaborationEnabled: M, editor: N, core: F, featureFlags: I, mediaLib: L, exporter: te, testEmail: R, commentsInstance: ne, savedModulesHeadless: re, panelState: z, snapshotPreview: B, collabWarning: ie, showSaveModuleDialog: V, showModuleBrowserModal: H, saveModulePreSelectedBlockId: U, setThemeOverrides: W, setUiTheme: ae } = w;
|
|
914
|
+
async function oe(e) {
|
|
915
915
|
try {
|
|
916
916
|
await R.sendTestEmail(e), z.testEmailModalOpen.value = !1;
|
|
917
917
|
} catch {}
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function G(e, t) {
|
|
920
920
|
for (let n = 0; n < e.content.length; n++) {
|
|
921
|
-
let r =
|
|
921
|
+
let r = ye(e.content[n]), i = t === void 0 ? void 0 : t + n;
|
|
922
922
|
N.addBlock(r, void 0, void 0, i);
|
|
923
923
|
}
|
|
924
|
-
|
|
924
|
+
H.value = !1;
|
|
925
925
|
}
|
|
926
926
|
let K = Le({
|
|
927
927
|
config: l.config,
|
|
928
928
|
editor: N,
|
|
929
929
|
websocket: A,
|
|
930
930
|
planConfigInstance: k,
|
|
931
|
-
snapshotPreview:
|
|
932
|
-
core:
|
|
933
|
-
exporter:
|
|
934
|
-
featureFlags:
|
|
931
|
+
snapshotPreview: B,
|
|
932
|
+
core: F,
|
|
933
|
+
exporter: te,
|
|
934
|
+
featureFlags: I,
|
|
935
935
|
isDestroyed: w.isDestroyed
|
|
936
936
|
}), q = Re({
|
|
937
|
-
issues:
|
|
937
|
+
issues: F.templateLint ? F.templateLint.issues : c([]),
|
|
938
938
|
planConfig: k.config
|
|
939
939
|
});
|
|
940
940
|
async function J() {
|
|
@@ -948,7 +948,7 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
948
948
|
getContent: () => N.content.value,
|
|
949
949
|
setContent: (e) => N.setContent(e),
|
|
950
950
|
setTheme: ae,
|
|
951
|
-
setThemeOverrides:
|
|
951
|
+
setThemeOverrides: W,
|
|
952
952
|
create: K.createTemplate,
|
|
953
953
|
load: K.loadTemplate,
|
|
954
954
|
save: K.saveTemplate,
|
|
@@ -957,8 +957,8 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
957
957
|
ref_key: "rootEl",
|
|
958
958
|
ref: _,
|
|
959
959
|
class: b(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": h(N).state.darkMode }]),
|
|
960
|
-
"data-tpl-theme": h(
|
|
961
|
-
style: C(h(
|
|
960
|
+
"data-tpl-theme": h(F).resolvedTheme.value,
|
|
961
|
+
style: C(h(F).themeStyles.value)
|
|
962
962
|
}, [
|
|
963
963
|
D(y, {
|
|
964
964
|
"enter-active-class": "tpl:transition-opacity tpl:duration-200",
|
|
@@ -992,17 +992,17 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
992
992
|
}),
|
|
993
993
|
D(lt, {
|
|
994
994
|
editor: h(N),
|
|
995
|
-
core: h(
|
|
996
|
-
"feature-flags": h(
|
|
995
|
+
core: h(F),
|
|
996
|
+
"feature-flags": h(I),
|
|
997
997
|
"panel-state": h(z),
|
|
998
|
-
"snapshot-preview": h(
|
|
999
|
-
"comments-instance": h(
|
|
998
|
+
"snapshot-preview": h(B),
|
|
999
|
+
"comments-instance": h(ne),
|
|
1000
1000
|
"test-email": h(R),
|
|
1001
1001
|
websocket: h(A),
|
|
1002
1002
|
collaboration: h(j),
|
|
1003
1003
|
"is-collaboration-enabled": h(M),
|
|
1004
|
-
"is-saving": h(N).state.isSaving || h(
|
|
1005
|
-
"is-save-disabled": h(N).state.isSaving || h(
|
|
1004
|
+
"is-saving": h(N).state.isSaving || h(I).isSaveExporting.value,
|
|
1005
|
+
"is-save-disabled": h(N).state.isSaving || h(I).isSaveExporting.value || !h(N).state.isDirty,
|
|
1006
1006
|
onSave: J
|
|
1007
1007
|
}, null, 8, [
|
|
1008
1008
|
"editor",
|
|
@@ -1030,9 +1030,9 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1030
1030
|
"onConfirm"
|
|
1031
1031
|
]),
|
|
1032
1032
|
D(wt, {
|
|
1033
|
-
visible: h(
|
|
1034
|
-
onCancel: h(
|
|
1035
|
-
onConfirm: h(
|
|
1033
|
+
visible: h(B).isPreviewingSnapshot.value,
|
|
1034
|
+
onCancel: h(B).cancelPreview,
|
|
1035
|
+
onConfirm: h(B).confirmRestoreSnapshot
|
|
1036
1036
|
}, null, 8, [
|
|
1037
1037
|
"visible",
|
|
1038
1038
|
"onCancel",
|
|
@@ -1046,18 +1046,18 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1046
1046
|
"leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
|
|
1047
1047
|
"leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
|
|
1048
1048
|
}, {
|
|
1049
|
-
default: s(() => [D(Et, { visible: h(
|
|
1049
|
+
default: s(() => [D(Et, { visible: h(ie).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
|
|
1050
1050
|
_: 1
|
|
1051
1051
|
}),
|
|
1052
1052
|
n(D(Ee, null, null, 512), [[S, !h(N).state.previewMode]]),
|
|
1053
1053
|
x("div", {
|
|
1054
|
-
class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(N).state.previewMode ? "tpl:left-0 tpl:right-0" : h(z).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", h(
|
|
1054
|
+
class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(N).state.previewMode ? "tpl:left-0 tpl:right-0" : h(z).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", h(B).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
1055
1055
|
style: {
|
|
1056
1056
|
transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1057
1057
|
"background-color": "var(--tpl-canvas-bg)"
|
|
1058
1058
|
}
|
|
1059
1059
|
}, [x("div", Ot, [D(y, { name: "tpl-restore-btn" }, {
|
|
1060
|
-
default: s(() => [h(
|
|
1060
|
+
default: s(() => [h(F).conditionPreview.hasHiddenBlocks.value ? (i(), p("button", {
|
|
1061
1061
|
key: 0,
|
|
1062
1062
|
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",
|
|
1063
1063
|
style: {
|
|
@@ -1066,11 +1066,11 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1066
1066
|
"border-color": "var(--tpl-warning)",
|
|
1067
1067
|
"backdrop-filter": "blur(8px)"
|
|
1068
1068
|
},
|
|
1069
|
-
onClick: r[0] ||= (e) => h(
|
|
1069
|
+
onClick: r[0] ||= (e) => h(F).conditionPreview.reset()
|
|
1070
1070
|
}, [D(h(be), {
|
|
1071
1071
|
size: 13,
|
|
1072
1072
|
"stroke-width": 2
|
|
1073
|
-
}), T(" " + d(h(
|
|
1073
|
+
}), T(" " + d(h(F).t.blockSettings.restoreHiddenBlocks), 1)])) : m("", !0)]),
|
|
1074
1074
|
_: 1
|
|
1075
1075
|
})]), x("main", kt, [D(Oe, {
|
|
1076
1076
|
viewport: h(N).state.viewport,
|
|
@@ -1091,7 +1091,7 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1091
1091
|
"locked-blocks",
|
|
1092
1092
|
"onSelectBlock"
|
|
1093
1093
|
])])], 2),
|
|
1094
|
-
e.config.branding !== !1 && !h(
|
|
1094
|
+
e.config.branding !== !1 && !h(I).isWhiteLabeled.value ? (i(), v(ke, {
|
|
1095
1095
|
key: 0,
|
|
1096
1096
|
"position-class": [h(N).state.previewMode ? "tpl:left-0 tpl:right-0" : h(z).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
|
|
1097
1097
|
}, null, 8, ["position-class"])) : m("", !0),
|
|
@@ -1100,15 +1100,15 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1100
1100
|
role: "status",
|
|
1101
1101
|
"aria-live": "polite",
|
|
1102
1102
|
"aria-atomic": "true",
|
|
1103
|
-
"aria-label": h(
|
|
1104
|
-
}, d(h(
|
|
1103
|
+
"aria-label": h(F).t.landmarks.reorderAnnouncements
|
|
1104
|
+
}, d(h(F).keyboardReorder.announcement.value), 9, At),
|
|
1105
1105
|
n(D(Se, {
|
|
1106
1106
|
"selected-block": h(N).selectedBlock.value,
|
|
1107
1107
|
settings: h(N).content.value.settings,
|
|
1108
1108
|
"shifted-left": h(z).rightPanelOpen.value,
|
|
1109
1109
|
onUpdateBlock: r[3] ||= (e) => h(N).updateBlock(h(N).selectedBlock.value.id, e),
|
|
1110
|
-
onDeleteBlock: r[4] ||= (e) => h(
|
|
1111
|
-
onDuplicateBlock: r[5] ||= (e) => h(
|
|
1110
|
+
onDeleteBlock: r[4] ||= (e) => h(F).blockActions.deleteBlock(h(N).selectedBlock.value.id),
|
|
1111
|
+
onDuplicateBlock: r[5] ||= (e) => h(F).blockActions.duplicateBlock(h(N).selectedBlock.value),
|
|
1112
1112
|
onUpdateSettings: h(N).updateSettings
|
|
1113
1113
|
}, null, 8, [
|
|
1114
1114
|
"selected-block",
|
|
@@ -1122,20 +1122,20 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1122
1122
|
ref: f,
|
|
1123
1123
|
config: l.config,
|
|
1124
1124
|
editor: h(N),
|
|
1125
|
-
core: h(
|
|
1125
|
+
core: h(F),
|
|
1126
1126
|
"panel-state": h(z),
|
|
1127
1127
|
"plan-config-instance": h(k),
|
|
1128
1128
|
"test-email": h(R),
|
|
1129
|
-
"media-lib": h(
|
|
1130
|
-
"saved-modules-headless": h(
|
|
1131
|
-
"show-save-module-dialog": h(
|
|
1132
|
-
"save-module-pre-selected-block-id": h(
|
|
1133
|
-
"show-module-browser-modal": h(
|
|
1134
|
-
"onUpdate:showSaveModuleDialog": r[6] ||= (e) =>
|
|
1135
|
-
"onUpdate:saveModulePreSelectedBlockId": r[7] ||= (e) =>
|
|
1136
|
-
"onUpdate:showModuleBrowserModal": r[8] ||= (e) =>
|
|
1137
|
-
onSendTestEmail:
|
|
1138
|
-
onModuleInsert:
|
|
1129
|
+
"media-lib": h(L),
|
|
1130
|
+
"saved-modules-headless": h(re),
|
|
1131
|
+
"show-save-module-dialog": h(V),
|
|
1132
|
+
"save-module-pre-selected-block-id": h(U),
|
|
1133
|
+
"show-module-browser-modal": h(H),
|
|
1134
|
+
"onUpdate:showSaveModuleDialog": r[6] ||= (e) => V.value = e,
|
|
1135
|
+
"onUpdate:saveModulePreSelectedBlockId": r[7] ||= (e) => U.value = e,
|
|
1136
|
+
"onUpdate:showModuleBrowserModal": r[8] ||= (e) => H.value = e,
|
|
1137
|
+
onSendTestEmail: oe,
|
|
1138
|
+
onModuleInsert: G
|
|
1139
1139
|
}, null, 8, [
|
|
1140
1140
|
"config",
|
|
1141
1141
|
"editor",
|
|
@@ -1150,13 +1150,13 @@ var ze = ["aria-label"], Be = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1150
1150
|
"show-module-browser-modal"
|
|
1151
1151
|
])) : m("", !0),
|
|
1152
1152
|
x("div", {
|
|
1153
|
-
ref: (e) => h(
|
|
1153
|
+
ref: (e) => h(F).popoverRoot.value = e,
|
|
1154
1154
|
class: "tpl-popover-root"
|
|
1155
1155
|
}, null, 512)
|
|
1156
1156
|
], 14, Dt));
|
|
1157
1157
|
}
|
|
1158
|
-
}), [["__scopeId", "data-v-
|
|
1158
|
+
}), [["__scopeId", "data-v-05f1a843"]]);
|
|
1159
1159
|
//#endregion
|
|
1160
1160
|
export { jt as default };
|
|
1161
1161
|
|
|
1162
|
-
//# sourceMappingURL=CloudEditor-
|
|
1162
|
+
//# sourceMappingURL=CloudEditor-CwG0DhG1.js.map
|