@templatical/editor 0.10.1 → 0.10.2
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-Dz5bH1z3.js → AiChatSidebar-BMwpZx-6.js} +14 -14
- package/dist/{AiFeatureMenu-D2Xn0jFx.js → AiFeatureMenu-xgaIGUCo.js} +8 -8
- package/dist/{BlockIssueBadge-CnqD1cGo.js → BlockIssueBadge-3kNs6WoD.js} +5 -5
- package/dist/{CloudEditor-BizZwsfD.js → CloudEditor-Dm9hiaui.js} +21 -21
- package/dist/{CollaboratorBar-Bn2JDu6l.js → CollaboratorBar-Cz_evoU4.js} +4 -4
- package/dist/{CommentsSidebar-BAG6rdVC.js → CommentsSidebar-jFZj_CTo.js} +13 -13
- package/dist/{CountdownBlock-B_Hr9Bm9.js → CountdownBlock-S-SCyVye.js} +4 -4
- package/dist/{CountdownToolbar-DaqDLKLk.js → CountdownToolbar-Ckdo-3P-.js} +3 -3
- package/dist/{DesignReferenceSidebar-I9LWjvrj.js → DesignReferenceSidebar-B9QNPZNV.js} +10 -10
- package/dist/{IssuesPanel-B32Ifp4x.js → IssuesPanel-_E_fbSM8.js} +8 -8
- package/dist/{LoadingTrack-UTqOUN4O.js → LoadingTrack-BZ5KJyZ_.js} +2 -2
- package/dist/{ModuleBrowserModal-DodRped1.js → ModuleBrowserModal-BB22urqi.js} +10 -10
- package/dist/{ModulePreviewCanvas-DhcnddJF.js → ModulePreviewCanvas-CH5OdXv8.js} +3 -3
- package/dist/{NumberWithSuffix-DB7GyyCI.js → NumberWithSuffix-BHDXHMpo.js} +3 -3
- package/dist/{ParagraphEditor-pJA9BHAL.js → ParagraphEditor-BmY7LLgN.js} +24 -24
- package/dist/{RichTextEditorContent-dTGSUff_.js → RichTextEditorContent-COijbaWp.js} +8 -8
- package/dist/{SaveModuleDialog-D634e99d.js → SaveModuleDialog-D5WN-je_.js} +7 -7
- package/dist/{SnapshotHistory-m_nGAHlb.js → SnapshotHistory-BQ55Rhri.js} +9 -9
- package/dist/{TemplateScoringPanel-BOQh9neV.js → TemplateScoringPanel-Dhf_Qgr7.js} +15 -15
- package/dist/{TestEmailModal-DOcwoKkc.js → TestEmailModal-DH_Viz_m.js} +5 -5
- package/dist/{TitleEditor-t6JMWamY.js → TitleEditor-Dn613K8o.js} +12 -12
- package/dist/{TplModal-BAtbfDB0.js → TplModal-Dxa3rhHI.js} +4 -4
- package/dist/{blockTypeIcons-C4lXx3Au.js → blockTypeIcons-CrcSCTD6.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-BeOyHAoZ.js → AiFeatureMenu-CCsgxyN9.js} +4 -4
- package/dist/cdn/chunks/{AiFeatureMenu-BeOyHAoZ.js.map → AiFeatureMenu-CCsgxyN9.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-C6YilQdl.js → BlockIssueBadge-Lc3NWFV8.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-C6YilQdl.js.map → BlockIssueBadge-Lc3NWFV8.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-DEA37rdW.js → CloudEditor-KkwvBhyt.js} +123 -123
- package/dist/cdn/chunks/{CloudEditor-DEA37rdW.js.map → CloudEditor-KkwvBhyt.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CKW7jOW4.js → CollaboratorBar-BGIGiFSm.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-CKW7jOW4.js.map → CollaboratorBar-BGIGiFSm.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DU9ga9Ki.js → CountdownBlock-gqnpxKp_.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-DU9ga9Ki.js.map → CountdownBlock-gqnpxKp_.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BHWsxth7.js → CountdownToolbar-xHpaWQE2.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-BHWsxth7.js.map → CountdownToolbar-xHpaWQE2.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BkYhij39.js → IssuesPanel-DHTTHu65.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-BkYhij39.js.map → IssuesPanel-DHTTHu65.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-D51w942J.js → ModuleBrowserModal-DDTjrKph.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-D51w942J.js.map → ModuleBrowserModal-DDTjrKph.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-BqTqcKHS.js → ModulePreviewCanvas-DeFq0hVi.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-BqTqcKHS.js.map → ModulePreviewCanvas-DeFq0hVi.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DuUcF2zG.js → NumberWithSuffix-D4wtmU9O.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-DuUcF2zG.js.map → NumberWithSuffix-D4wtmU9O.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-Bqjn3ZNm.js → ParagraphEditor-CwY8GeWa.js} +18 -18
- package/dist/cdn/chunks/{ParagraphEditor-Bqjn3ZNm.js.map → ParagraphEditor-CwY8GeWa.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-mIkkb5EK.js → RichTextEditorContent-C_bMURGF.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-mIkkb5EK.js.map → RichTextEditorContent-C_bMURGF.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-Felfmkcj.js → SaveModuleDialog-DEi8PSP6.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-Felfmkcj.js.map → SaveModuleDialog-DEi8PSP6.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Dcldr8D6.js → TitleEditor-Betpo8AZ.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-Dcldr8D6.js.map → TitleEditor-Betpo8AZ.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-D05Wqf5u.js → blockTypeIcons-Xz6OBq3U.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-D05Wqf5u.js.map → blockTypeIcons-Xz6OBq3U.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-J_1CPXYc.js → draggable-BTGr7_-X.js} +19 -19
- package/dist/cdn/chunks/{draggable-J_1CPXYc.js.map → draggable-BTGr7_-X.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-CNmpC18A.js → extensions-D_j4UWxi.js} +4 -4
- package/dist/cdn/chunks/{extensions-CNmpC18A.js.map → extensions-D_j4UWxi.js.map} +1 -1
- package/dist/cdn/chunks/{features-_ar9QbVv.js → features-A28DQtjE.js} +815 -810
- package/dist/cdn/chunks/features-A28DQtjE.js.map +1 -0
- package/dist/cdn/chunks/{icons-CnwCLJX-.js → icons-C9D3N0-J.js} +2 -2
- package/dist/cdn/chunks/{icons-CnwCLJX-.js.map → icons-C9D3N0-J.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js → liquid.browser-DUDc3U21.js} +10 -10
- package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js.map → liquid.browser-DUDc3U21.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-9jyt7Bf9.js → media-library-CH1Wx5wP.js} +7 -7
- package/dist/cdn/chunks/{media-library-9jyt7Bf9.js.map → media-library-CH1Wx5wP.js.map} +1 -1
- package/dist/cdn/chunks/pusher-CHo5Cua0.js.map +1 -1
- package/dist/cdn/chunks/{quality-CO9mj_RH.js → quality-D4NeyFej.js} +530 -530
- package/dist/cdn/chunks/{quality-CO9mj_RH.js.map → quality-D4NeyFej.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-m6XTCWCL.js → renderer-BQnGfLhL.js} +16 -16
- package/dist/cdn/chunks/{renderer-m6XTCWCL.js.map → renderer-BQnGfLhL.js.map} +1 -1
- package/dist/cdn/chunks/{src-DfMSYqvE.js → src-BkKEyLw1.js} +6 -6
- package/dist/cdn/chunks/{src-DfMSYqvE.js.map → src-BkKEyLw1.js.map} +1 -1
- package/dist/cdn/chunks/{styles-1uFWdD5T.js → styles-BDVaiw3K.js} +142 -142
- package/dist/cdn/chunks/{styles-1uFWdD5T.js.map → styles-BDVaiw3K.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-CJbIm_hE.js → tiptap-P5abGB13.js} +4434 -2577
- package/dist/cdn/chunks/tiptap-P5abGB13.js.map +1 -0
- package/dist/cdn/editor.js +100 -100
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Bs6_uQpm.js → check-KooI2jyS.js} +1 -1
- package/dist/{chevron-down-so1rnGwF.js → chevron-down-mnlFgueW.js} +1 -1
- package/dist/{circle-alert-CrKv0AuW.js → circle-alert-D89_hB8j.js} +1 -1
- package/dist/{clock-Cpx6GYpa.js → clock-BaadyUrg.js} +1 -1
- package/dist/{cloud-bHhCNRZa.js → cloud-D-FScaHx.js} +2 -2
- package/dist/{createLucideIcon-DFBxEm5K.js → createLucideIcon-D-6fpD2L.js} +1 -1
- package/dist/{dist-DwEpKyry.js → dist-BttO3Zdx.js} +44 -44
- package/dist/{dist-CMkZaqX1.js → dist-C1WcikEF.js} +5 -5
- package/dist/dist-CjULgTep.js +4072 -0
- package/dist/{dist-BufRk8ZY.js → dist-D6L_WdRL.js} +95 -85
- package/dist/{dist-DJ5YJLXn.js → dist-DaajG7Fo.js} +5 -5
- package/dist/dist-Df4eV6Zi.js +5 -0
- package/dist/{dist-BejBMbBX.js → dist-Dnqx5UF3.js} +171 -158
- package/dist/{dist-CIK3BYgh.js → dist-Drp5bNAu.js} +5 -5
- package/dist/dist-WJ1fVd5b.js +5 -0
- package/dist/{dist-CoaWXQ7N.js → dist-XA2i70J5.js} +8 -8
- package/dist/{dist-74n2Mqc6.js → dist-b52vYHb5.js} +2 -2
- package/dist/{dist-2-A7SaKm.js → dist-cl33Ip6W.js} +1 -1
- package/dist/{dist-0RguD1vS.js → dist-sqf7pq5q.js} +16 -16
- package/dist/{dist-B3CcePtK.js → dist-zInT3Lf6.js} +75 -57
- package/dist/{extensions-C810eSzv.js → extensions-DA-w1gVg.js} +29 -29
- package/dist/{image-up-kMLE5GsI.js → image-up-DjwfAom6.js} +1 -1
- package/dist/{info-xqRxLfNz.js → info-Db3HlTr8.js} +1 -1
- package/dist/{keys-BoYBr3PU.js → keys-BjmL5YCT.js} +1 -1
- package/dist/{liquid.browser-IgQrXHPQ.js → liquid.browser--qtl1Fqy.js} +9 -9
- package/dist/{list-checks-C81htkBJ.js → list-checks-BlAB0X8a.js} +1 -1
- package/dist/{loader-circle-C6cZPIum.js → loader-circle-EVqyIxjU.js} +1 -1
- package/dist/{message-circle-dqOBRe07.js → message-circle-BuI5pBVG.js} +1 -1
- package/dist/{refresh-cw-DCjNd6o0.js → refresh-cw-C2vM_6zQ.js} +1 -1
- package/dist/{scan-line-DXz0nZVJ.js → scan-line-AUIh_SHI.js} +1 -1
- package/dist/{send-C4uH_WaI.js → send-nrbwF7xg.js} +1 -1
- package/dist/{shield-check-B3U68ssA.js → shield-check-B55Ozmva.js} +1 -1
- package/dist/{sparkles-CsDweGUy.js → sparkles-oh1NUSFq.js} +1 -1
- package/dist/{styles-CBlNpqL9.js → styles-Byhh107n.js} +33 -33
- package/dist/templatical-editor.js +81 -80
- package/dist/{text-align-start-BkKQePFp.js → text-align-start-B2MqzZwU.js} +1 -1
- package/dist/{trash-2-BIOkaEz1.js → trash-2-DH8RBwAx.js} +1 -1
- package/dist/{triangle-alert-Bbgu6uUG.js → triangle-alert-BQHjCt3B.js} +1 -1
- package/dist/{useAliveFlag-Bc99FWyR.js → useAliveFlag-B_b9ubwD.js} +1 -1
- package/dist/{useCloudI18n-DiwsLi6z.js → useCloudI18n-BHCrmQgj.js} +2 -2
- package/dist/{useEditorCore-7c1QpPlw.js → useEditorCore-BEgc3KFu.js} +368 -375
- package/dist/{useI18n-DskZMfRJ.js → useI18n-Bb9-ha9X.js} +2 -2
- package/dist/{useMergeTag-Co4xYwG6.js → useMergeTag-HykzEtBn.js} +3 -3
- package/dist/usePopoverRoot-BZDkRRry.js +8 -0
- package/dist/{vue.runtime.esm-bundler-D0Hg03Ub.js → vue.runtime.esm-bundler-MzYCkFSH.js} +18 -18
- package/dist/{x-DWU6NCuE.js → x-DgCCENgP.js} +1 -1
- package/package.json +25 -25
- package/dist/cdn/chunks/features-_ar9QbVv.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CJbIm_hE.js.map +0 -1
- package/dist/dist-Bvje_Tqb.js +0 -5
- package/dist/dist-BxHa6kIT.js +0 -2243
- package/dist/dist-D1YvgM6p.js +0 -5
- package/dist/usePopoverRoot-DYH_gX8o.js +0 -8
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
2
|
-
import { $t as
|
|
3
|
-
import { S as be, x as xe } from "./icons-
|
|
4
|
-
import { a as Se, c as Ce, i as we, l as Te, n as Ee, o as De, r as Oe, s as ke, t as Ae, u as je } from "./styles-
|
|
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-BTGr7_-X.js";
|
|
2
|
+
import { $t as k, A, At as j, Cn as M, Dt as N, E as P, Et as F, Ft as I, Hn as L, Ht as R, It as z, Nt as ee, Qt as B, Rt as te, S as V, Ut as H, Vt as U, Z as ne, _ as W, _t as G, an as K, b as re, c as ie, d as ae, en as oe, f as q, g as J, h as Y, kn as X, l as se, m as ce, mn as Z, p as le, pt as ue, rt as de, s as fe, st as pe, tt as Q, u as me, ut as he, v as ge, vt as _e, x as ve, y as ye } from "./features-A28DQtjE.js";
|
|
3
|
+
import { S as be, x as xe } from "./icons-C9D3N0-J.js";
|
|
4
|
+
import { a as Se, c as Ce, i as we, l as Te, n as Ee, o as De, r as Oe, s as ke, t as Ae, u as je } from "./styles-BDVaiw3K.js";
|
|
5
5
|
import { d as $ } from "./styleConstants-lGobwiLH.js";
|
|
6
6
|
//#region src/cloud/composables/useSnapshotPreview.ts
|
|
7
7
|
function Me(t) {
|
|
@@ -11,7 +11,7 @@ function Me(t) {
|
|
|
11
11
|
});
|
|
12
12
|
let h = f(() => d.value !== null), g = f(() => u.value?.snapshots.value ?? []), _ = f(() => u.value?.isLoading.value ?? !1), v = f(() => u.value?.isRestoring.value ?? !1);
|
|
13
13
|
function y() {
|
|
14
|
-
i.state.template?.id && !u.value && (u.value =
|
|
14
|
+
i.state.template?.id && !u.value && (u.value = q({
|
|
15
15
|
authManager: n,
|
|
16
16
|
templateId: i.state.template.id,
|
|
17
17
|
onRestore: b,
|
|
@@ -86,7 +86,7 @@ function Ne() {
|
|
|
86
86
|
function g(t) {
|
|
87
87
|
l.value = !1, e.value = e.value === t ? null : t;
|
|
88
88
|
}
|
|
89
|
-
return
|
|
89
|
+
return K(u, () => {
|
|
90
90
|
l.value = !1;
|
|
91
91
|
}), {
|
|
92
92
|
activePanel: e,
|
|
@@ -111,7 +111,7 @@ function Ne() {
|
|
|
111
111
|
function Pe(e) {
|
|
112
112
|
let { isCollaborationEnabled: t, getCollaboratorCount: n, canUndo: r } = e, i = c(!1), a = c(!1), { start: o } = Z(() => {
|
|
113
113
|
a.value = !1;
|
|
114
|
-
},
|
|
114
|
+
}, L, { 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
|
}
|
|
@@ -199,7 +199,7 @@ function Le(e) {
|
|
|
199
199
|
onOperation: t.mcp.onOperation
|
|
200
200
|
});
|
|
201
201
|
let x = null;
|
|
202
|
-
t.collaboration?.enabled && (x =
|
|
202
|
+
t.collaboration?.enabled && (x = J({
|
|
203
203
|
authManager: g,
|
|
204
204
|
editor: y,
|
|
205
205
|
channel: b.channel,
|
|
@@ -208,10 +208,10 @@ function Le(e) {
|
|
|
208
208
|
onCollaboratorLeft: t.collaboration.onCollaboratorLeft,
|
|
209
209
|
onBlockLocked: t.collaboration.onBlockLocked,
|
|
210
210
|
onBlockUnlocked: t.collaboration.onBlockUnlocked
|
|
211
|
-
}),
|
|
211
|
+
}), O(() => x.lockedBlocks.value, (e) => {
|
|
212
212
|
v.value = e;
|
|
213
|
-
}, { immediate: !0 }),
|
|
214
|
-
let S = f(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), C =
|
|
213
|
+
}, { immediate: !0 }), Y(y, x));
|
|
214
|
+
let S = f(() => !!t.collaboration?.enabled && _.hasFeature("collaboration")), C = A({
|
|
215
215
|
editor: y,
|
|
216
216
|
config: {
|
|
217
217
|
uiTheme: t.uiTheme,
|
|
@@ -257,32 +257,32 @@ function Le(e) {
|
|
|
257
257
|
onError: t.onError
|
|
258
258
|
});
|
|
259
259
|
m = T;
|
|
260
|
-
let E = Ne(), D = re(t.ai),
|
|
260
|
+
let E = Ne(), D = re(t.ai), j = Fe({
|
|
261
261
|
planConfigInstance: _,
|
|
262
262
|
aiConfig: D,
|
|
263
263
|
editor: y
|
|
264
|
-
}),
|
|
264
|
+
}), M = Ie({
|
|
265
265
|
onRequestMedia: t.onRequestMedia,
|
|
266
266
|
mediaLibraryOpen: E.mediaLibraryOpen,
|
|
267
267
|
mediaLibraryAccept: E.mediaLibraryAccept
|
|
268
268
|
});
|
|
269
|
-
|
|
269
|
+
ne({
|
|
270
270
|
onBlockMove: y.moveBlock,
|
|
271
271
|
onBlockAdd: y.addBlock
|
|
272
272
|
});
|
|
273
|
-
let
|
|
273
|
+
let N = me({
|
|
274
274
|
authManager: g,
|
|
275
275
|
getFontsConfig: () => t.fonts,
|
|
276
276
|
canUseCustomFonts: () => _.hasFeature("custom_fonts")
|
|
277
|
-
}),
|
|
277
|
+
}), F = ae({
|
|
278
278
|
authManager: g,
|
|
279
279
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
280
280
|
save: () => y.save(),
|
|
281
|
-
exportHtml: (e) =>
|
|
281
|
+
exportHtml: (e) => N.exportHtml(e),
|
|
282
282
|
onError: t.onError,
|
|
283
283
|
isAuthReady: l,
|
|
284
284
|
onBeforeTestEmail: t.onBeforeTestEmail
|
|
285
|
-
}),
|
|
285
|
+
}), I = ge({
|
|
286
286
|
authManager: g,
|
|
287
287
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
288
288
|
getSocketId: () => b.getSocketId(),
|
|
@@ -291,14 +291,14 @@ function Le(e) {
|
|
|
291
291
|
isAuthReady: l,
|
|
292
292
|
hasCommentingFeature: () => t.commenting !== !1 && _.hasFeature("commenting")
|
|
293
293
|
});
|
|
294
|
-
|
|
295
|
-
comments:
|
|
294
|
+
W({
|
|
295
|
+
comments: I,
|
|
296
296
|
channel: b.channel
|
|
297
297
|
});
|
|
298
|
-
let
|
|
298
|
+
let L = le({
|
|
299
299
|
authManager: g,
|
|
300
300
|
onError: t.onError
|
|
301
|
-
}),
|
|
301
|
+
}), R = c(!1), V = c(null), G = c(!1), K = ye({
|
|
302
302
|
authManager: g,
|
|
303
303
|
getTemplateId: () => y.state.template?.id ?? null
|
|
304
304
|
});
|
|
@@ -307,24 +307,24 @@ function Le(e) {
|
|
|
307
307
|
o()?.filterByBlock(e);
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
|
-
a(B,
|
|
310
|
+
a(B, M.handleRequestMedia), a(te, g), a(z, D), a(H, I), a(k, L), a(oe, K), a(U, {
|
|
311
311
|
plan: _,
|
|
312
312
|
ai: D,
|
|
313
313
|
comments: {
|
|
314
|
-
getBlockCount: (e) =>
|
|
314
|
+
getBlockCount: (e) => I.commentCountByBlock.value.get(e) ?? 0,
|
|
315
315
|
openForBlock: q
|
|
316
316
|
},
|
|
317
317
|
savedModules: {
|
|
318
318
|
openSaveDialog: (e) => {
|
|
319
|
-
V.value = e ?? null,
|
|
319
|
+
V.value = e ?? null, R.value = !0;
|
|
320
320
|
},
|
|
321
321
|
openBrowser: () => {
|
|
322
|
-
|
|
322
|
+
G.value = !0;
|
|
323
323
|
},
|
|
324
|
-
moduleCount: f(() =>
|
|
324
|
+
moduleCount: f(() => L.modules.value.length)
|
|
325
325
|
}
|
|
326
326
|
});
|
|
327
|
-
function
|
|
327
|
+
function X(e) {
|
|
328
328
|
_.hasFeature("theme_customization") && (C.themeOverrides.value = e);
|
|
329
329
|
}
|
|
330
330
|
function Z(e) {
|
|
@@ -339,8 +339,8 @@ function Le(e) {
|
|
|
339
339
|
if (d) return;
|
|
340
340
|
if (!e.api.ok) throw Error("Health check failed: API is not reachable");
|
|
341
341
|
if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
|
|
342
|
-
if (e.websocket.ok ||
|
|
343
|
-
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") &&
|
|
342
|
+
if (e.websocket.ok || ee.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await _.fetchConfig(), d) return;
|
|
343
|
+
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") && L.loadModules(), i("ready");
|
|
344
344
|
} catch (e) {
|
|
345
345
|
if (d) return;
|
|
346
346
|
let n = e instanceof Error ? e : Error("Initialization failed", { cause: e });
|
|
@@ -365,23 +365,23 @@ function Le(e) {
|
|
|
365
365
|
editor: y,
|
|
366
366
|
core: C,
|
|
367
367
|
aiConfig: D,
|
|
368
|
-
featureFlags:
|
|
369
|
-
mediaLib:
|
|
370
|
-
exporter:
|
|
371
|
-
testEmail:
|
|
372
|
-
commentsInstance:
|
|
373
|
-
savedModulesHeadless:
|
|
368
|
+
featureFlags: j,
|
|
369
|
+
mediaLib: M,
|
|
370
|
+
exporter: N,
|
|
371
|
+
testEmail: F,
|
|
372
|
+
commentsInstance: I,
|
|
373
|
+
savedModulesHeadless: L,
|
|
374
374
|
scoringInstance: K,
|
|
375
375
|
panelState: E,
|
|
376
376
|
snapshotPreview: T,
|
|
377
377
|
collabWarning: w,
|
|
378
|
-
showSaveModuleDialog:
|
|
379
|
-
showModuleBrowserModal:
|
|
378
|
+
showSaveModuleDialog: R,
|
|
379
|
+
showModuleBrowserModal: G,
|
|
380
380
|
saveModulePreSelectedBlockId: V,
|
|
381
381
|
onSaveHook: p,
|
|
382
382
|
initialize: ue,
|
|
383
383
|
destroy: de,
|
|
384
|
-
setThemeOverrides:
|
|
384
|
+
setThemeOverrides: X,
|
|
385
385
|
setUiTheme: Z,
|
|
386
386
|
openCommentsForBlock: q
|
|
387
387
|
};
|
|
@@ -390,7 +390,7 @@ function Le(e) {
|
|
|
390
390
|
//#region src/utils/preRenderCustomBlocks.ts
|
|
391
391
|
async function Re(e, t) {
|
|
392
392
|
let n = async (e) => {
|
|
393
|
-
if (
|
|
393
|
+
if (X(e)) {
|
|
394
394
|
let n = e;
|
|
395
395
|
try {
|
|
396
396
|
n.renderedHtml = await t.renderCustomBlock(n);
|
|
@@ -563,7 +563,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
563
563
|
},
|
|
564
564
|
emits: ["save"],
|
|
565
565
|
setup(e) {
|
|
566
|
-
let t = u(() => import("./CollaboratorBar-
|
|
566
|
+
let t = u(() => import("./CollaboratorBar-BGIGiFSm.js")), n = u(() => import("./features-A28DQtjE.js").then((e) => e.r)), r = u(() => import("./AiFeatureMenu-CCsgxyN9.js")), { t: a, format: o } = Q();
|
|
567
567
|
return (c, l) => (i(), p("header", Ze, [
|
|
568
568
|
x("div", Qe, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", $e, d(h(o)(h(a).header.templatesUsed, {
|
|
569
569
|
used: e.featureFlags.templateCount.value,
|
|
@@ -611,7 +611,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
611
611
|
}, [D(h(N), {
|
|
612
612
|
size: 12,
|
|
613
613
|
"stroke-width": 2.5
|
|
614
|
-
}), T(" " + d(h(a).header.saveFailed), 1)], 8, nt)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", rt, [D(h(
|
|
614
|
+
}), T(" " + d(h(a).header.saveFailed), 1)], 8, nt)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", rt, [D(h(j), {
|
|
615
615
|
size: 12,
|
|
616
616
|
"stroke-width": 2.5
|
|
617
617
|
}), T(" " + d(h(a).header.saved), 1)])) : e.editor.state.isDirty ? (i(), p("div", it, [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),
|
|
@@ -627,7 +627,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
627
627
|
}),
|
|
628
628
|
onClick: l[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
|
|
629
629
|
}, [
|
|
630
|
-
D(h(
|
|
630
|
+
D(h(G), {
|
|
631
631
|
size: 16,
|
|
632
632
|
"stroke-width": 2
|
|
633
633
|
}),
|
|
@@ -725,9 +725,9 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
725
725
|
"module-insert"
|
|
726
726
|
],
|
|
727
727
|
setup(e, { expose: t, emit: n }) {
|
|
728
|
-
let r = u(() => import("./features-
|
|
728
|
+
let r = u(() => import("./features-A28DQtjE.js").then((e) => e.o)), a = u(() => import("./features-A28DQtjE.js").then((e) => e.a)), o = u(() => import("./features-A28DQtjE.js").then((e) => e.i)), s = u(() => import("./features-A28DQtjE.js").then((e) => e.n)), l = u(() => import("./features-A28DQtjE.js").then((e) => e.t)), d = u(() => import("./SaveModuleDialog-DEi8PSP6.js")), f = u(() => import("./ModuleBrowserModal-DDTjrKph.js")), g = u(async () => {
|
|
729
729
|
try {
|
|
730
|
-
return (await import("./src-
|
|
730
|
+
return (await import("./src-BkKEyLw1.js")).MediaLibraryModal;
|
|
731
731
|
} catch {
|
|
732
732
|
throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
|
|
733
733
|
}
|
|
@@ -891,7 +891,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
891
891
|
let { t } = I();
|
|
892
892
|
return (n, r) => e.visible ? (i(), p("div", Dt, d(h(t).history.collabWarning), 1)) : m("", !0);
|
|
893
893
|
}
|
|
894
|
-
}), kt = ["data-tpl-theme"], At = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, jt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Mt = ["aria-label"], Nt =
|
|
894
|
+
}), kt = ["data-tpl-theme"], At = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, jt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Mt = ["aria-label"], Nt = /*#__PURE__*/ de(/* @__PURE__ */ E({
|
|
895
895
|
__name: "CloudEditor",
|
|
896
896
|
props: {
|
|
897
897
|
config: {},
|
|
@@ -903,7 +903,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
903
903
|
emits: ["ready"],
|
|
904
904
|
setup(e, { expose: r, emit: o }) {
|
|
905
905
|
let l = e;
|
|
906
|
-
a(
|
|
906
|
+
a(R, l.cloudTranslations);
|
|
907
907
|
let u = o, f = c(null), _ = c(null), w = Le({
|
|
908
908
|
config: l.config,
|
|
909
909
|
translations: l.translations,
|
|
@@ -912,37 +912,37 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
912
912
|
getCommentsSidebar: () => f.value ? { filterByBlock: f.value.filterCommentsByBlock } : null,
|
|
913
913
|
editorRoot: l.shadowRoot,
|
|
914
914
|
containerEl: _
|
|
915
|
-
}), { isInitializing: E, isAuthReady:
|
|
916
|
-
async function
|
|
915
|
+
}), { isInitializing: E, isAuthReady: O, initError: k, planConfigInstance: A, websocket: j, collaboration: N, isCollaborationEnabled: P, editor: F, core: I, featureFlags: L, mediaLib: z, exporter: ee, testEmail: B, commentsInstance: te, savedModulesHeadless: V, panelState: H, snapshotPreview: U, collabWarning: ne, showSaveModuleDialog: W, showModuleBrowserModal: G, saveModulePreSelectedBlockId: K, setThemeOverrides: re, setUiTheme: ie } = w;
|
|
916
|
+
async function ae(e) {
|
|
917
917
|
try {
|
|
918
|
-
await
|
|
918
|
+
await B.sendTestEmail(e), H.testEmailModalOpen.value = !1;
|
|
919
919
|
} catch {}
|
|
920
920
|
}
|
|
921
|
-
async function
|
|
921
|
+
async function oe() {
|
|
922
922
|
try {
|
|
923
923
|
await U.confirmRestoreSnapshot();
|
|
924
924
|
} catch {}
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function q(e, t) {
|
|
927
927
|
for (let n = 0; n < e.content.length; n++) {
|
|
928
|
-
let r =
|
|
929
|
-
|
|
928
|
+
let r = M(e.content[n]), i = t === void 0 ? void 0 : t + n;
|
|
929
|
+
F.addBlock(r, void 0, void 0, i);
|
|
930
930
|
}
|
|
931
931
|
G.value = !1;
|
|
932
932
|
}
|
|
933
933
|
let J = ze({
|
|
934
934
|
config: l.config,
|
|
935
|
-
editor:
|
|
936
|
-
websocket:
|
|
937
|
-
planConfigInstance:
|
|
935
|
+
editor: F,
|
|
936
|
+
websocket: j,
|
|
937
|
+
planConfigInstance: A,
|
|
938
938
|
snapshotPreview: U,
|
|
939
|
-
core:
|
|
940
|
-
exporter:
|
|
941
|
-
featureFlags:
|
|
939
|
+
core: I,
|
|
940
|
+
exporter: ee,
|
|
941
|
+
featureFlags: L,
|
|
942
942
|
isDestroyed: w.isDestroyed
|
|
943
943
|
}), Y = Be({
|
|
944
|
-
issues:
|
|
945
|
-
planConfig:
|
|
944
|
+
issues: I.templateLint ? I.templateLint.issues : c([]),
|
|
945
|
+
planConfig: A.config
|
|
946
946
|
});
|
|
947
947
|
async function X() {
|
|
948
948
|
await Y.tryRunSave(() => J.saveTemplate().catch((e) => l.config.onError?.(e)));
|
|
@@ -952,20 +952,20 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
952
952
|
}), g(() => {
|
|
953
953
|
w.destroy();
|
|
954
954
|
}), r({
|
|
955
|
-
getContent: () =>
|
|
956
|
-
setContent: (e) =>
|
|
957
|
-
setTheme:
|
|
958
|
-
setThemeOverrides:
|
|
955
|
+
getContent: () => F.content.value,
|
|
956
|
+
setContent: (e) => F.setContent(e),
|
|
957
|
+
setTheme: ie,
|
|
958
|
+
setThemeOverrides: re,
|
|
959
959
|
create: J.createTemplate,
|
|
960
960
|
load: J.loadTemplate,
|
|
961
961
|
save: J.saveTemplate,
|
|
962
|
-
sendTestEmail:
|
|
962
|
+
sendTestEmail: B.sendTestEmail
|
|
963
963
|
}), (t, r) => (i(), p("div", {
|
|
964
964
|
ref_key: "rootEl",
|
|
965
965
|
ref: _,
|
|
966
|
-
class: b(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": h(
|
|
967
|
-
"data-tpl-theme": h(
|
|
968
|
-
style: C(h(
|
|
966
|
+
class: b(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": h(F).state.darkMode }]),
|
|
967
|
+
"data-tpl-theme": h(I).resolvedTheme.value,
|
|
968
|
+
style: C(h(I).themeStyles.value)
|
|
969
969
|
}, [
|
|
970
970
|
D(Ce),
|
|
971
971
|
D(y, {
|
|
@@ -976,7 +976,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
976
976
|
"leave-from-class": "tpl:opacity-100",
|
|
977
977
|
"leave-to-class": "tpl:opacity-0"
|
|
978
978
|
}, {
|
|
979
|
-
default: s(() => [D(gt, { visible: h(E) || h(
|
|
979
|
+
default: s(() => [D(gt, { visible: h(E) || h(F).state.isLoading }, null, 8, ["visible"])]),
|
|
980
980
|
_: 1
|
|
981
981
|
}),
|
|
982
982
|
D(y, {
|
|
@@ -988,8 +988,8 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
988
988
|
"leave-to-class": "tpl:opacity-0"
|
|
989
989
|
}, {
|
|
990
990
|
default: s(() => [D(St, {
|
|
991
|
-
error: h(
|
|
992
|
-
visible: !!h(
|
|
991
|
+
error: h(k),
|
|
992
|
+
visible: !!h(k) && !h(E),
|
|
993
993
|
onRetry: h(w).initialize
|
|
994
994
|
}, null, 8, [
|
|
995
995
|
"error",
|
|
@@ -999,18 +999,18 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
999
999
|
_: 1
|
|
1000
1000
|
}),
|
|
1001
1001
|
D(dt, {
|
|
1002
|
-
editor: h(
|
|
1003
|
-
core: h(
|
|
1004
|
-
"feature-flags": h(
|
|
1005
|
-
"panel-state": h(
|
|
1002
|
+
editor: h(F),
|
|
1003
|
+
core: h(I),
|
|
1004
|
+
"feature-flags": h(L),
|
|
1005
|
+
"panel-state": h(H),
|
|
1006
1006
|
"snapshot-preview": h(U),
|
|
1007
|
-
"comments-instance": h(
|
|
1008
|
-
"test-email": h(
|
|
1009
|
-
websocket: h(
|
|
1010
|
-
collaboration: h(
|
|
1011
|
-
"is-collaboration-enabled": h(
|
|
1012
|
-
"is-saving": h(
|
|
1013
|
-
"is-save-disabled": h(
|
|
1007
|
+
"comments-instance": h(te),
|
|
1008
|
+
"test-email": h(B),
|
|
1009
|
+
websocket: h(j),
|
|
1010
|
+
collaboration: h(N),
|
|
1011
|
+
"is-collaboration-enabled": h(P),
|
|
1012
|
+
"is-saving": h(F).state.isSaving || h(L).isSaveExporting.value,
|
|
1013
|
+
"is-save-disabled": h(F).state.isSaving || h(L).isSaveExporting.value || !h(F).state.isDirty,
|
|
1014
1014
|
onSave: X
|
|
1015
1015
|
}, null, 8, [
|
|
1016
1016
|
"editor",
|
|
@@ -1040,7 +1040,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1040
1040
|
D(Et, {
|
|
1041
1041
|
visible: h(U).isPreviewingSnapshot.value,
|
|
1042
1042
|
onCancel: h(U).cancelPreview,
|
|
1043
|
-
onConfirm:
|
|
1043
|
+
onConfirm: oe
|
|
1044
1044
|
}, null, 8, ["visible", "onCancel"]),
|
|
1045
1045
|
D(y, {
|
|
1046
1046
|
"enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
|
|
@@ -1053,15 +1053,15 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1053
1053
|
default: s(() => [D(Ot, { visible: h(ne).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
|
|
1054
1054
|
_: 1
|
|
1055
1055
|
}),
|
|
1056
|
-
n(D(ke, null, null, 512), [[S, !h(
|
|
1056
|
+
n(D(ke, null, null, 512), [[S, !h(F).state.previewMode]]),
|
|
1057
1057
|
x("div", {
|
|
1058
|
-
class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(
|
|
1058
|
+
class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(F).state.previewMode ? "tpl:left-0 tpl:right-0" : h(H).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", h(U).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
1059
1059
|
style: {
|
|
1060
1060
|
transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1061
1061
|
"background-color": "var(--tpl-canvas-bg)"
|
|
1062
1062
|
}
|
|
1063
1063
|
}, [x("div", At, [D(y, { name: "tpl-restore-btn" }, {
|
|
1064
|
-
default: s(() => [h(
|
|
1064
|
+
default: s(() => [h(I).conditionPreview.hasHiddenBlocks.value ? (i(), p("button", {
|
|
1065
1065
|
key: 0,
|
|
1066
1066
|
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",
|
|
1067
1067
|
style: {
|
|
@@ -1070,22 +1070,22 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1070
1070
|
"border-color": "var(--tpl-warning)",
|
|
1071
1071
|
"backdrop-filter": "blur(8px)"
|
|
1072
1072
|
},
|
|
1073
|
-
onClick: r[0] ||= (e) => h(
|
|
1073
|
+
onClick: r[0] ||= (e) => h(I).conditionPreview.reset()
|
|
1074
1074
|
}, [D(h(be), {
|
|
1075
1075
|
size: 13,
|
|
1076
1076
|
"stroke-width": 2
|
|
1077
|
-
}), T(" " + d(h(
|
|
1077
|
+
}), T(" " + d(h(I).t.blockSettings.restoreHiddenBlocks), 1)])) : m("", !0)]),
|
|
1078
1078
|
_: 1
|
|
1079
1079
|
})]), x("main", jt, [D(Te, {
|
|
1080
|
-
viewport: h(
|
|
1081
|
-
content: h(
|
|
1082
|
-
"selected-block-id": h(
|
|
1083
|
-
"dark-mode": h(
|
|
1084
|
-
"preview-mode": h(
|
|
1085
|
-
"locked-blocks": h(
|
|
1086
|
-
onSelectBlock: h(
|
|
1087
|
-
onOpenAiChat: r[1] ||= (e) => h(
|
|
1088
|
-
onOpenDesignReference: r[2] ||= (e) => h(
|
|
1080
|
+
viewport: h(F).state.viewport,
|
|
1081
|
+
content: h(F).content.value,
|
|
1082
|
+
"selected-block-id": h(F).state.selectedBlockId,
|
|
1083
|
+
"dark-mode": h(F).state.darkMode,
|
|
1084
|
+
"preview-mode": h(F).state.previewMode,
|
|
1085
|
+
"locked-blocks": h(N)?.lockedBlocks.value ?? void 0,
|
|
1086
|
+
onSelectBlock: h(F).selectBlock,
|
|
1087
|
+
onOpenAiChat: r[1] ||= (e) => h(H).aiChatOpen.value = !0,
|
|
1088
|
+
onOpenDesignReference: r[2] ||= (e) => h(H).designReferenceOpen.value = !0
|
|
1089
1089
|
}, null, 8, [
|
|
1090
1090
|
"viewport",
|
|
1091
1091
|
"content",
|
|
@@ -1095,51 +1095,51 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1095
1095
|
"locked-blocks",
|
|
1096
1096
|
"onSelectBlock"
|
|
1097
1097
|
])])], 2),
|
|
1098
|
-
e.config.branding !== !1 && !h(
|
|
1098
|
+
e.config.branding !== !1 && !h(L).isWhiteLabeled.value ? (i(), v(Ee, {
|
|
1099
1099
|
key: 0,
|
|
1100
|
-
"position-class": [h(
|
|
1100
|
+
"position-class": [h(F).state.previewMode ? "tpl:left-0 tpl:right-0" : h(H).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
|
|
1101
1101
|
}, null, 8, ["position-class"])) : m("", !0),
|
|
1102
1102
|
x("div", {
|
|
1103
1103
|
class: "tpl-sr-only",
|
|
1104
1104
|
role: "status",
|
|
1105
1105
|
"aria-live": "polite",
|
|
1106
1106
|
"aria-atomic": "true",
|
|
1107
|
-
"aria-label": h(
|
|
1108
|
-
}, d(h(
|
|
1107
|
+
"aria-label": h(I).t.landmarks.reorderAnnouncements
|
|
1108
|
+
}, d(h(I).keyboardReorder.announcement.value), 9, Mt),
|
|
1109
1109
|
n(D(De, {
|
|
1110
|
-
"selected-block": h(
|
|
1111
|
-
settings: h(
|
|
1112
|
-
"shifted-left": h(
|
|
1113
|
-
onUpdateBlock: r[3] ||= (e) => h(
|
|
1114
|
-
onDeleteBlock: r[4] ||= (e) => h(
|
|
1115
|
-
onDuplicateBlock: r[5] ||= (e) => h(
|
|
1116
|
-
onUpdateSettings: h(
|
|
1110
|
+
"selected-block": h(F).selectedBlock.value,
|
|
1111
|
+
settings: h(F).content.value.settings,
|
|
1112
|
+
"shifted-left": h(H).rightPanelOpen.value,
|
|
1113
|
+
onUpdateBlock: r[3] ||= (e) => h(F).updateBlock(h(F).selectedBlock.value.id, e),
|
|
1114
|
+
onDeleteBlock: r[4] ||= (e) => h(I).blockActions.deleteBlock(h(F).selectedBlock.value.id),
|
|
1115
|
+
onDuplicateBlock: r[5] ||= (e) => h(I).blockActions.duplicateBlock(h(F).selectedBlock.value),
|
|
1116
|
+
onUpdateSettings: h(F).updateSettings
|
|
1117
1117
|
}, null, 8, [
|
|
1118
1118
|
"selected-block",
|
|
1119
1119
|
"settings",
|
|
1120
1120
|
"shifted-left",
|
|
1121
1121
|
"onUpdateSettings"
|
|
1122
|
-
]), [[S, !h(
|
|
1123
|
-
!h(E) && h(
|
|
1122
|
+
]), [[S, !h(F).state.previewMode]]),
|
|
1123
|
+
!h(E) && h(O) ? (i(), v(ft, {
|
|
1124
1124
|
key: 1,
|
|
1125
1125
|
ref_key: "cloudPanelsRef",
|
|
1126
1126
|
ref: f,
|
|
1127
1127
|
config: l.config,
|
|
1128
|
-
editor: h(
|
|
1129
|
-
core: h(
|
|
1130
|
-
"panel-state": h(
|
|
1131
|
-
"plan-config-instance": h(
|
|
1132
|
-
"test-email": h(
|
|
1133
|
-
"media-lib": h(
|
|
1134
|
-
"saved-modules-headless": h(
|
|
1128
|
+
editor: h(F),
|
|
1129
|
+
core: h(I),
|
|
1130
|
+
"panel-state": h(H),
|
|
1131
|
+
"plan-config-instance": h(A),
|
|
1132
|
+
"test-email": h(B),
|
|
1133
|
+
"media-lib": h(z),
|
|
1134
|
+
"saved-modules-headless": h(V),
|
|
1135
1135
|
"show-save-module-dialog": h(W),
|
|
1136
1136
|
"save-module-pre-selected-block-id": h(K),
|
|
1137
1137
|
"show-module-browser-modal": h(G),
|
|
1138
1138
|
"onUpdate:showSaveModuleDialog": r[6] ||= (e) => W.value = e,
|
|
1139
1139
|
"onUpdate:saveModulePreSelectedBlockId": r[7] ||= (e) => K.value = e,
|
|
1140
1140
|
"onUpdate:showModuleBrowserModal": r[8] ||= (e) => G.value = e,
|
|
1141
|
-
onSendTestEmail:
|
|
1142
|
-
onModuleInsert:
|
|
1141
|
+
onSendTestEmail: ae,
|
|
1142
|
+
onModuleInsert: q
|
|
1143
1143
|
}, null, 8, [
|
|
1144
1144
|
"config",
|
|
1145
1145
|
"editor",
|
|
@@ -1154,7 +1154,7 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1154
1154
|
"show-module-browser-modal"
|
|
1155
1155
|
])) : m("", !0),
|
|
1156
1156
|
x("div", {
|
|
1157
|
-
ref: (e) => h(
|
|
1157
|
+
ref: (e) => h(I).popoverRoot.value = e,
|
|
1158
1158
|
class: "tpl-popover-root"
|
|
1159
1159
|
}, null, 512),
|
|
1160
1160
|
D(Ae)
|
|
@@ -1164,4 +1164,4 @@ var Ve = ["aria-label"], He = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1164
1164
|
//#endregion
|
|
1165
1165
|
export { Nt as default };
|
|
1166
1166
|
|
|
1167
|
-
//# sourceMappingURL=CloudEditor-
|
|
1167
|
+
//# sourceMappingURL=CloudEditor-KkwvBhyt.js.map
|