@templatical/editor 0.21.1 → 0.22.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/README.md +1 -1
- package/dist/{AiFeatureMenu-CcqQDHzJ.js → AiFeatureMenu-CcqjRMFW.js} +1 -1
- package/dist/{CloudEditor-Dnww6og-.js → CloudEditor-BVH7D1Ka.js} +24 -24
- package/dist/{CollaboratorBar-Bj4NZiie.js → CollaboratorBar-C_1SF7Xf.js} +1 -1
- package/dist/{MergeTagSuggestion-DMe4rqn0.js → MergeTagSuggestion-D9eCryMC.js} +2 -2
- package/dist/{ParagraphEditor--_zWfxps.js → ParagraphEditor-MKJYyWN9.js} +13 -13
- package/dist/{SaveBlockDialog-CYIEHABH.js → SaveBlockDialog-B_5KBaXW.js} +3 -3
- package/dist/{SavedBlockPreviewCanvas-2-mzAnZE.js → SavedBlockPreviewCanvas-DXkGDYph.js} +1 -1
- package/dist/{SavedBlocksBrowserModal-D5V5yF_3.js → SavedBlocksBrowserModal-DoJBoYPk.js} +4 -4
- package/dist/{SavedBlocksPanels-Dff38YXu.js → SavedBlocksPanels-3Af5dMaf.js} +1 -1
- package/dist/{SavedBlocksPickBar-rB6iyji6.js → SavedBlocksPickBar-C1FTJP-I.js} +1 -1
- package/dist/{SnapshotHistory-FtzDq8f0.js → SnapshotHistory-DWlQ3Eh0.js} +1 -1
- package/dist/{TestEmailModal-DL2O1H8M.js → TestEmailModal-DComAFpR.js} +2 -2
- package/dist/{TitleEditor-CPda5lh-.js → TitleEditor-DzsPxKv4.js} +5 -5
- package/dist/{TplModal-C7Koj5gM.js → TplModal-CykwWFhF.js} +1 -1
- package/dist/{blockTypeIcons-CgwECCut.js → blockTypeIcons-CpKkI47V.js} +1 -1
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AiFeatureMenu-Duwg413F.js → AiFeatureMenu-hWgWQg11.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-Duwg413F.js.map → AiFeatureMenu-hWgWQg11.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-B3hqbwfP.js → CloudEditor-FCS53UcZ.js} +51 -51
- package/dist/cdn/chunks/CloudEditor-FCS53UcZ.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-BS3rJy6-.js → CollaboratorBar-mkJVAkSh.js} +2 -2
- package/dist/cdn/chunks/{CollaboratorBar-BS3rJy6-.js.map → CollaboratorBar-mkJVAkSh.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-D7TsECll.js → MergeTagSuggestion-BM349_QH.js} +2 -2
- package/dist/cdn/chunks/{MergeTagSuggestion-D7TsECll.js.map → MergeTagSuggestion-BM349_QH.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CtaRa1vr.js → ParagraphEditor-J-1RLyi7.js} +14 -14
- package/dist/cdn/chunks/{ParagraphEditor-CtaRa1vr.js.map → ParagraphEditor-J-1RLyi7.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-Bb3fdUEZ.js → SaveBlockDialog-CSeD3gn9.js} +4 -4
- package/dist/cdn/chunks/{SaveBlockDialog-Bb3fdUEZ.js.map → SaveBlockDialog-CSeD3gn9.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlockPreviewCanvas-DZOMgNsz.js → SavedBlockPreviewCanvas-DgLOKtR_.js} +2 -2
- package/dist/cdn/chunks/{SavedBlockPreviewCanvas-DZOMgNsz.js.map → SavedBlockPreviewCanvas-DgLOKtR_.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CeUWcPv0.js → SavedBlocksBrowserModal-B2x5WRPN.js} +4 -4
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-CeUWcPv0.js.map → SavedBlocksBrowserModal-B2x5WRPN.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-D-pA_wfk.js → SavedBlocksPanels-BzMTZxf2.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-D-pA_wfk.js.map → SavedBlocksPanels-BzMTZxf2.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-1rf1KpqS.js → SavedBlocksPickBar-CduR1Cpb.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPickBar-1rf1KpqS.js.map → SavedBlocksPickBar-CduR1Cpb.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-Bf1uovti.js → SnapshotHistory-DO-gzr3i.js} +2 -2
- package/dist/cdn/chunks/{SnapshotHistory-Bf1uovti.js.map → SnapshotHistory-DO-gzr3i.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-BJTDxFHh.js → TestEmailModal-DT37w7i_.js} +3 -3
- package/dist/cdn/chunks/{TestEmailModal-BJTDxFHh.js.map → TestEmailModal-DT37w7i_.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BJ7LFykI.js → TitleEditor-J1vgU_J6.js} +6 -6
- package/dist/cdn/chunks/{TitleEditor-BJ7LFykI.js.map → TitleEditor-J1vgU_J6.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-CH9RzKF7.js → TplModal-BN53d9Se.js} +2 -2
- package/dist/cdn/chunks/{TplModal-CH9RzKF7.js.map → TplModal-BN53d9Se.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-ZX2oarW6.js → extensions-C49c51P1.js} +3 -3
- package/dist/cdn/chunks/{extensions-ZX2oarW6.js.map → extensions-C49c51P1.js.map} +1 -1
- package/dist/cdn/chunks/fr-BMWOPztQ.js +610 -0
- package/dist/cdn/chunks/fr-BMWOPztQ.js.map +1 -0
- package/dist/cdn/chunks/fr-Dswns199.js +89 -0
- package/dist/cdn/chunks/fr-Dswns199.js.map +1 -0
- package/dist/cdn/chunks/nl-CbcPJlrL.js +89 -0
- package/dist/cdn/chunks/nl-CbcPJlrL.js.map +1 -0
- package/dist/cdn/chunks/nl-Dhctu7JL.js +610 -0
- package/dist/cdn/chunks/nl-Dhctu7JL.js.map +1 -0
- package/dist/cdn/chunks/{src-D6F_3XkE.js → src-ByWL5K1f.js} +3 -1
- package/dist/cdn/chunks/{src-D6F_3XkE.js.map → src-ByWL5K1f.js.map} +1 -1
- package/dist/cdn/chunks/{src-DYji-wXB.js → src-MA8DWI8O.js} +2 -2
- package/dist/cdn/chunks/{src-DYji-wXB.js.map → src-MA8DWI8O.js.map} +1 -1
- package/dist/cdn/chunks/{styles-DMOEiSX9.js → styles-BkXzQ4-n.js} +4 -4
- package/dist/cdn/chunks/{styles-DMOEiSX9.js.map → styles-BkXzQ4-n.js.map} +1 -1
- package/dist/cdn/chunks/{tiptap-BMZ-OENR.js → tiptap-DUTbZTeR.js} +5 -5
- package/dist/cdn/chunks/{tiptap-BMZ-OENR.js.map → tiptap-DUTbZTeR.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-BA6mspzD.js → useEditorCore-CzMhD6Gd.js} +3 -3
- package/dist/cdn/chunks/{useEditorCore-BA6mspzD.js.map → useEditorCore-CzMhD6Gd.js.map} +1 -1
- package/dist/cdn/editor.js +7 -5
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{dist-CDO52Rxy.js → dist-3DHaYEiT.js} +2 -2
- package/dist/{dist-BEpCh2mG.js → dist-3HenmYIg.js} +1 -1
- package/dist/{dist-CrjzhIxB.js → dist-BCnJcAQc.js} +2 -2
- package/dist/{dist-BgPYC_8-.js → dist-B_etKYyh.js} +5 -5
- package/dist/{dist-CBzCU-a-.js → dist-CL_CfQ3Q.js} +2 -2
- package/dist/dist-CcQLJeWV.js +5 -0
- package/dist/{dist-CuXha2_7.js → dist-CclnU_v0.js} +2 -2
- package/dist/{dist-BkM8A17N.js → dist-DKWoZJAV.js} +2 -2
- package/dist/{dist-DYClLqy8.js → dist-DOtLGnLr.js} +2 -2
- package/dist/dist-DerdmERj.js +5 -0
- package/dist/{dist-BuNDAAVp.js → dist-Ih7ejWzn.js} +2 -2
- package/dist/{dist-CtcgoC_R.js → dist-bivrM-nS.js} +2 -2
- package/dist/{extensions-ClY5Sh7S.js → extensions-3870a_3R.js} +3 -3
- package/dist/fr-BMWOPztQ.js +608 -0
- package/dist/index.d.ts +15 -1
- package/dist/nl-Dhctu7JL.js +608 -0
- package/dist/{styles-PcOPXvLO.js → styles-AxBd7CgB.js} +4 -4
- package/dist/templatical-editor.js +6 -4
- package/dist/{useEditorCore-CT1slufs.js → useEditorCore-CuMMIfiS.js} +2 -2
- package/package.json +20 -20
- package/dist/cdn/chunks/CloudEditor-B3hqbwfP.js.map +0 -1
- package/dist/dist-CweLDZrs.js +0 -5
- package/dist/dist-DOsdqAEZ.js +0 -5
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { $ as e, A as t, H as n, J as r, M as i, N as a, P as o, V as s, Z as c, _ as l, b as u, ct as d, f, g as p, h as m, it as h, j as g, l as _, m as v, n as y, ot as b, p as x, s as S, st as C, u as w, v as T, x as E, y as D, z as O } from "./draggable-D840DIZB.js";
|
|
2
2
|
import { t as k } from "./timeouts-Bmi_yePw.js";
|
|
3
3
|
import { F as A } from "./src-BKI1x1k7.js";
|
|
4
|
-
import { T as j, b as M, j as N, t as P } from "./useEditorCore-
|
|
4
|
+
import { T as j, b as M, j as N, t as P } from "./useEditorCore-CzMhD6Gd.js";
|
|
5
5
|
import { _ as F } from "./dist-CiBEt0VR.js";
|
|
6
6
|
import { t as I } from "./dist-CxTt8FRE.js";
|
|
7
|
-
import { A as L, F as R, c as z, r as B, s as V, t as H, u as
|
|
8
|
-
import { t as
|
|
9
|
-
import { At as
|
|
7
|
+
import { A as L, F as R, c as z, r as B, s as V, t as H, u as ee } from "./keys-D7kUmfpE.js";
|
|
8
|
+
import { t as U } from "./useI18n-8Wd7G-cq.js";
|
|
9
|
+
import { At as W, Dt as G, F as te, Ft as K, P as q, et as J, j as ne, rt as Y, u as re, w as ie } from "./icons-CYWw8Xfp.js";
|
|
10
10
|
import { t as ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
11
11
|
import { n as X } from "./useCloudI18n-BjNENqkM.js";
|
|
12
|
-
import { a as Z, c as oe, d as se, f as Q, i as ce, l as le, n as ue, o as de, p as fe, r as pe, s as me, t as he, u as ge } from "./styles-
|
|
12
|
+
import { a as Z, c as oe, d as se, f as Q, i as ce, l as le, n as ue, o as de, p as fe, r as pe, s as me, t as he, u as ge } from "./styles-BkXzQ4-n.js";
|
|
13
13
|
import { d as $ } from "./ColorPicker-DZSzZ5ZP.js";
|
|
14
14
|
import { S as _e, _ as ve, a as ye, c as be, d as xe, f as Se, h as Ce, i as we, l as Te, m as Ee, n as De, o as Oe, r as ke, s as Ae, t as je, u as Me, v as Ne } from "./cloud-BJlbXGTJ.js";
|
|
15
15
|
//#region src/cloud/composables/useSnapshotPreview.ts
|
|
@@ -184,7 +184,7 @@ function Re(e) {
|
|
|
184
184
|
let t = f(e);
|
|
185
185
|
if (t) return s?.(t), null;
|
|
186
186
|
try {
|
|
187
|
-
let { MediaApiClient: t } = await import("./src-
|
|
187
|
+
let { MediaApiClient: t } = await import("./src-ByWL5K1f.js");
|
|
188
188
|
return l(await new t(a).uploadMedia(e));
|
|
189
189
|
} catch (e) {
|
|
190
190
|
return s?.(e), null;
|
|
@@ -339,11 +339,11 @@ function ze(e) {
|
|
|
339
339
|
comments: I,
|
|
340
340
|
channel: b.channel
|
|
341
341
|
});
|
|
342
|
-
let z = fe({
|
|
343
|
-
provider: Ae(g),
|
|
342
|
+
let z = typeof t.savedBlocks == "object" && t.savedBlocks !== null ? t.savedBlocks : null, U = fe({
|
|
343
|
+
provider: z ?? Ae(g),
|
|
344
344
|
editor: y,
|
|
345
345
|
onError: t.onError,
|
|
346
|
-
isAvailable: () => t.savedBlocks !== !1 && _.hasFeature("saved_modules")
|
|
346
|
+
isAvailable: z ? () => !0 : () => t.savedBlocks !== !1 && _.hasFeature("saved_modules")
|
|
347
347
|
}), W = Ee({
|
|
348
348
|
authManager: g,
|
|
349
349
|
getTemplateId: () => y.state.template?.id ?? null
|
|
@@ -353,19 +353,19 @@ function ze(e) {
|
|
|
353
353
|
o()?.filterByBlock(e);
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
|
-
a(L, A.handleRequestMedia), a(B, g), a(H, D), a(
|
|
356
|
+
a(L, A.handleRequestMedia), a(B, g), a(H, D), a(ee, I), a(R, W), a(V, {
|
|
357
357
|
plan: _,
|
|
358
358
|
ai: D,
|
|
359
359
|
comments: {
|
|
360
360
|
getBlockCount: (e) => I.commentCountByBlock.value.get(e) ?? 0,
|
|
361
361
|
openForBlock: G
|
|
362
362
|
},
|
|
363
|
-
savedBlocks:
|
|
363
|
+
savedBlocks: U.capability
|
|
364
364
|
});
|
|
365
|
-
function
|
|
365
|
+
function te(e) {
|
|
366
366
|
_.hasFeature("theme_customization") && (C.themeOverrides.value = e);
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function K(e) {
|
|
369
369
|
y.setUiTheme(e);
|
|
370
370
|
}
|
|
371
371
|
async function q() {
|
|
@@ -408,7 +408,7 @@ function ze(e) {
|
|
|
408
408
|
exporter: M,
|
|
409
409
|
testEmail: F,
|
|
410
410
|
commentsInstance: I,
|
|
411
|
-
savedBlocks:
|
|
411
|
+
savedBlocks: U,
|
|
412
412
|
scoringInstance: W,
|
|
413
413
|
panelState: E,
|
|
414
414
|
snapshotPreview: T,
|
|
@@ -416,8 +416,8 @@ function ze(e) {
|
|
|
416
416
|
onSaveHook: p,
|
|
417
417
|
initialize: q,
|
|
418
418
|
destroy: J,
|
|
419
|
-
setThemeOverrides:
|
|
420
|
-
setUiTheme:
|
|
419
|
+
setThemeOverrides: te,
|
|
420
|
+
setUiTheme: K,
|
|
421
421
|
openCommentsForBlock: G
|
|
422
422
|
};
|
|
423
423
|
}
|
|
@@ -598,7 +598,7 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
598
598
|
},
|
|
599
599
|
emits: ["save"],
|
|
600
600
|
setup(e) {
|
|
601
|
-
let t = u(() => import("./CollaboratorBar-
|
|
601
|
+
let t = u(() => import("./CollaboratorBar-mkJVAkSh.js")), n = u(() => import("./SnapshotHistory-DO-gzr3i.js")), r = u(() => import("./AiFeatureMenu-hWgWQg11.js")), { t: a, format: o } = X();
|
|
602
602
|
return (c, l) => (i(), p("header", $e, [
|
|
603
603
|
x("div", et, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", tt, d(h(o)(h(a).header.templatesUsed, {
|
|
604
604
|
used: e.featureFlags.templateCount.value,
|
|
@@ -643,10 +643,10 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
643
643
|
"aria-live": "assertive",
|
|
644
644
|
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
645
645
|
"data-tooltip": e.featureFlags.saveErrorMessage.value
|
|
646
|
-
}, [D(h(
|
|
646
|
+
}, [D(h(W), {
|
|
647
647
|
size: 12,
|
|
648
648
|
"stroke-width": 2.5
|
|
649
|
-
}), T(" " + d(h(a).header.saveFailed), 1)], 8, it)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", at, [D(h(
|
|
649
|
+
}), T(" " + d(h(a).header.saveFailed), 1)], 8, it)) : e.featureFlags.saveStatus.value === "saved" ? (i(), p("div", at, [D(h(K), {
|
|
650
650
|
size: 12,
|
|
651
651
|
"stroke-width": 2.5
|
|
652
652
|
}), T(" " + d(h(a).header.saved), 1)])) : e.editor.state.isDirty ? (i(), p("div", ot, [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),
|
|
@@ -662,7 +662,7 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
662
662
|
}),
|
|
663
663
|
onClick: l[0] ||= (t) => e.panelState.commentsOpen.value = !e.panelState.commentsOpen.value
|
|
664
664
|
}, [
|
|
665
|
-
D(h(
|
|
665
|
+
D(h(J), {
|
|
666
666
|
size: 16,
|
|
667
667
|
"stroke-width": 2
|
|
668
668
|
}),
|
|
@@ -729,7 +729,7 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
729
729
|
class: "tpl-spinner",
|
|
730
730
|
size: 16,
|
|
731
731
|
"stroke-width": 2
|
|
732
|
-
})) : (i(), v(h(
|
|
732
|
+
})) : (i(), v(h(q), {
|
|
733
733
|
key: 0,
|
|
734
734
|
size: 16,
|
|
735
735
|
"stroke-width": 2
|
|
@@ -750,9 +750,9 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
750
750
|
},
|
|
751
751
|
emits: ["send-test-email"],
|
|
752
752
|
setup(e, { expose: t, emit: n }) {
|
|
753
|
-
let r = u(() => import("./AiChatSidebar-A1CuWGY0.js")), a = u(() => import("./CommentsSidebar-DHdRiGPX.js")), o = u(() => import("./DesignReferenceSidebar-Dre99DTH.js")), s = u(() => import("./TemplateScoringPanel-CTk8WwxU.js")), l = u(() => import("./TestEmailModal-
|
|
753
|
+
let r = u(() => import("./AiChatSidebar-A1CuWGY0.js")), a = u(() => import("./CommentsSidebar-DHdRiGPX.js")), o = u(() => import("./DesignReferenceSidebar-Dre99DTH.js")), s = u(() => import("./TemplateScoringPanel-CTk8WwxU.js")), l = u(() => import("./TestEmailModal-DT37w7i_.js")), d = u(async () => {
|
|
754
754
|
try {
|
|
755
|
-
return (await import("./src-
|
|
755
|
+
return (await import("./src-ByWL5K1f.js")).MediaLibraryModal;
|
|
756
756
|
} catch {
|
|
757
757
|
throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
|
|
758
758
|
}
|
|
@@ -846,7 +846,7 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
846
846
|
return "isNotFound" in e && !!e.isNotFound;
|
|
847
847
|
}
|
|
848
848
|
return (t, s) => e.visible && e.error ? (i(), p("div", yt, [
|
|
849
|
-
x("div", bt, [D(h(
|
|
849
|
+
x("div", bt, [D(h(W), {
|
|
850
850
|
size: 32,
|
|
851
851
|
"stroke-width": 1.5,
|
|
852
852
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
@@ -868,7 +868,7 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
868
868
|
emits: ["cancel", "confirm"],
|
|
869
869
|
setup(e, { emit: t }) {
|
|
870
870
|
let n = t, { t: r } = X();
|
|
871
|
-
return (t, a) => e.visible ? (i(), p("div", Tt, [x("div", Et, [D(h(
|
|
871
|
+
return (t, a) => e.visible ? (i(), p("div", Tt, [x("div", Et, [D(h(G), {
|
|
872
872
|
size: 18,
|
|
873
873
|
"stroke-width": 2,
|
|
874
874
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
@@ -895,7 +895,7 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
895
895
|
__name: "CollabUndoToast",
|
|
896
896
|
props: { visible: { type: Boolean } },
|
|
897
897
|
setup(e) {
|
|
898
|
-
let { t } =
|
|
898
|
+
let { t } = U();
|
|
899
899
|
return (n, r) => e.visible ? (i(), p("div", kt, d(h(t).history.collabWarning), 1)) : m("", !0);
|
|
900
900
|
}
|
|
901
901
|
}), jt = ["data-tpl-theme"], Mt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, Nt = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, Pt = ["aria-label"], Ft = /*#__PURE__*/ ae(/* @__PURE__ */ E({
|
|
@@ -909,7 +909,7 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
909
909
|
},
|
|
910
910
|
emits: ["ready"],
|
|
911
911
|
setup(e, { expose: r, emit: o }) {
|
|
912
|
-
let l = u(() => import("./SavedBlocksPanels-
|
|
912
|
+
let l = u(() => import("./SavedBlocksPanels-BzMTZxf2.js")), f = e;
|
|
913
913
|
a(z, f.cloudTranslations);
|
|
914
914
|
let w = o, E = c(null), O = c(null), k = ze({
|
|
915
915
|
config: f.config,
|
|
@@ -919,15 +919,15 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
919
919
|
getCommentsSidebar: () => E.value ? { filterByBlock: E.value.filterCommentsByBlock } : null,
|
|
920
920
|
editorRoot: f.shadowRoot,
|
|
921
921
|
containerEl: O
|
|
922
|
-
}), { isInitializing: A, isAuthReady: j, initError: N, planConfigInstance: P, websocket: F, collaboration: I, isCollaborationEnabled: L, editor: R, core: B, featureFlags: V, mediaLib: H, exporter:
|
|
922
|
+
}), { isInitializing: A, isAuthReady: j, initError: N, planConfigInstance: P, websocket: F, collaboration: I, isCollaborationEnabled: L, editor: R, core: B, featureFlags: V, mediaLib: H, exporter: ee, testEmail: U, commentsInstance: W, savedBlocks: G, panelState: K, snapshotPreview: q, collabWarning: J, setThemeOverrides: ne, setUiTheme: Y } = k, { showNotice: re } = M(() => f.config.smallScreenNotice);
|
|
923
923
|
async function ie(e) {
|
|
924
924
|
try {
|
|
925
|
-
await
|
|
925
|
+
await U.sendTestEmail(e), K.testEmailModalOpen.value = !1;
|
|
926
926
|
} catch {}
|
|
927
927
|
}
|
|
928
928
|
async function ae() {
|
|
929
929
|
try {
|
|
930
|
-
await
|
|
930
|
+
await q.confirmRestoreSnapshot();
|
|
931
931
|
} catch {}
|
|
932
932
|
}
|
|
933
933
|
let X = Ve({
|
|
@@ -935,9 +935,9 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
935
935
|
editor: R,
|
|
936
936
|
websocket: F,
|
|
937
937
|
planConfigInstance: P,
|
|
938
|
-
snapshotPreview:
|
|
938
|
+
snapshotPreview: q,
|
|
939
939
|
core: B,
|
|
940
|
-
exporter:
|
|
940
|
+
exporter: ee,
|
|
941
941
|
featureFlags: V,
|
|
942
942
|
isDestroyed: k.isDestroyed
|
|
943
943
|
}), Z = He({
|
|
@@ -959,7 +959,7 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
959
959
|
create: X.createTemplate,
|
|
960
960
|
load: X.loadTemplate,
|
|
961
961
|
save: X.saveTemplate,
|
|
962
|
-
sendTestEmail:
|
|
962
|
+
sendTestEmail: U.sendTestEmail
|
|
963
963
|
}), (t, r) => (i(), p("div", {
|
|
964
964
|
ref_key: "rootEl",
|
|
965
965
|
ref: O,
|
|
@@ -1004,10 +1004,10 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1004
1004
|
editor: h(R),
|
|
1005
1005
|
core: h(B),
|
|
1006
1006
|
"feature-flags": h(V),
|
|
1007
|
-
"panel-state": h(
|
|
1008
|
-
"snapshot-preview": h(
|
|
1009
|
-
"comments-instance": h(
|
|
1010
|
-
"test-email": h(
|
|
1007
|
+
"panel-state": h(K),
|
|
1008
|
+
"snapshot-preview": h(q),
|
|
1009
|
+
"comments-instance": h(W),
|
|
1010
|
+
"test-email": h(U),
|
|
1011
1011
|
websocket: h(F),
|
|
1012
1012
|
collaboration: h(I),
|
|
1013
1013
|
"is-collaboration-enabled": h(L),
|
|
@@ -1040,8 +1040,8 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1040
1040
|
"onConfirm"
|
|
1041
1041
|
]),
|
|
1042
1042
|
D(Ot, {
|
|
1043
|
-
visible: h(
|
|
1044
|
-
onCancel: h(
|
|
1043
|
+
visible: h(q).isPreviewingSnapshot.value,
|
|
1044
|
+
onCancel: h(q).cancelPreview,
|
|
1045
1045
|
onConfirm: ae
|
|
1046
1046
|
}, null, 8, ["visible", "onCancel"]),
|
|
1047
1047
|
D(y, {
|
|
@@ -1052,12 +1052,12 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1052
1052
|
"leave-from-class": "tpl:translate-y-0 tpl:opacity-100",
|
|
1053
1053
|
"leave-to-class": "tpl:translate-y-[-8px] tpl:opacity-0"
|
|
1054
1054
|
}, {
|
|
1055
|
-
default: s(() => [D(At, { visible: h(
|
|
1055
|
+
default: s(() => [D(At, { visible: h(J).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
|
|
1056
1056
|
_: 1
|
|
1057
1057
|
}),
|
|
1058
1058
|
n(D(le, null, null, 512), [[S, !h(R).state.previewMode]]),
|
|
1059
1059
|
x("div", {
|
|
1060
|
-
class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(R).state.previewMode ? "tpl:left-0 tpl:right-0" : h(
|
|
1060
|
+
class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(R).state.previewMode ? "tpl:left-0 tpl:right-0" : h(K).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", h(q).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
1061
1061
|
style: {
|
|
1062
1062
|
transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1063
1063
|
"background-color": "var(--tpl-canvas-bg)"
|
|
@@ -1073,7 +1073,7 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1073
1073
|
"backdrop-filter": "blur(8px)"
|
|
1074
1074
|
},
|
|
1075
1075
|
onClick: r[0] ||= (e) => h(B).conditionPreview.reset()
|
|
1076
|
-
}, [D(h(
|
|
1076
|
+
}, [D(h(te), {
|
|
1077
1077
|
size: 13,
|
|
1078
1078
|
"stroke-width": 2
|
|
1079
1079
|
}), T(" " + d(h(B).t.blockSettings.restoreHiddenBlocks), 1)])) : m("", !0)]),
|
|
@@ -1086,8 +1086,8 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1086
1086
|
"preview-mode": h(R).state.previewMode,
|
|
1087
1087
|
"locked-blocks": h(I)?.lockedBlocks.value ?? void 0,
|
|
1088
1088
|
onSelectBlock: h(R).selectBlock,
|
|
1089
|
-
onOpenAiChat: r[1] ||= (e) => h(
|
|
1090
|
-
onOpenDesignReference: r[2] ||= (e) => h(
|
|
1089
|
+
onOpenAiChat: r[1] ||= (e) => h(K).aiChatOpen.value = !0,
|
|
1090
|
+
onOpenDesignReference: r[2] ||= (e) => h(K).designReferenceOpen.value = !0
|
|
1091
1091
|
}, null, 8, [
|
|
1092
1092
|
"viewport",
|
|
1093
1093
|
"content",
|
|
@@ -1099,7 +1099,7 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1099
1099
|
])])], 2),
|
|
1100
1100
|
e.config.branding !== !1 && !h(V).isWhiteLabeled.value ? (i(), v(pe, {
|
|
1101
1101
|
key: 0,
|
|
1102
|
-
"position-class": [h(R).state.previewMode ? "tpl:left-0 tpl:right-0" : h(
|
|
1102
|
+
"position-class": [h(R).state.previewMode ? "tpl:left-0 tpl:right-0" : h(K).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
|
|
1103
1103
|
}, null, 8, ["position-class"])) : m("", !0),
|
|
1104
1104
|
x("div", {
|
|
1105
1105
|
class: "tpl-sr-only",
|
|
@@ -1111,7 +1111,7 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1111
1111
|
n(D(oe, {
|
|
1112
1112
|
"selected-block": h(R).selectedBlock.value,
|
|
1113
1113
|
settings: h(R).content.value.settings,
|
|
1114
|
-
"shifted-left": h(
|
|
1114
|
+
"shifted-left": h(K).rightPanelOpen.value,
|
|
1115
1115
|
onUpdateBlock: r[3] ||= (e) => h(R).updateBlock(h(R).selectedBlock.value.id, e),
|
|
1116
1116
|
onDeleteBlock: r[4] ||= (e) => h(B).blockActions.deleteBlock(h(R).selectedBlock.value.id),
|
|
1117
1117
|
onDuplicateBlock: r[5] ||= (e) => h(B).blockActions.duplicateBlock(h(R).selectedBlock.value),
|
|
@@ -1129,9 +1129,9 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1129
1129
|
config: f.config,
|
|
1130
1130
|
editor: h(R),
|
|
1131
1131
|
core: h(B),
|
|
1132
|
-
"panel-state": h(
|
|
1132
|
+
"panel-state": h(K),
|
|
1133
1133
|
"plan-config-instance": h(P),
|
|
1134
|
-
"test-email": h(
|
|
1134
|
+
"test-email": h(U),
|
|
1135
1135
|
"media-lib": h(H),
|
|
1136
1136
|
onSendTestEmail: ie
|
|
1137
1137
|
}, null, 8, [
|
|
@@ -1143,9 +1143,9 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1143
1143
|
"test-email",
|
|
1144
1144
|
"media-lib"
|
|
1145
1145
|
])) : m("", !0),
|
|
1146
|
-
h(
|
|
1146
|
+
h(G).isAvailable.value ? (i(), v(h(l), {
|
|
1147
1147
|
key: 2,
|
|
1148
|
-
feature: h(
|
|
1148
|
+
feature: h(G)
|
|
1149
1149
|
}, null, 8, ["feature"])) : m("", !0),
|
|
1150
1150
|
x("div", {
|
|
1151
1151
|
ref: (e) => h(B).popoverRoot.value = e,
|
|
@@ -1160,4 +1160,4 @@ var Ue = ["aria-label"], We = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1160
1160
|
//#endregion
|
|
1161
1161
|
export { Ft as default };
|
|
1162
1162
|
|
|
1163
|
-
//# sourceMappingURL=CloudEditor-
|
|
1163
|
+
//# sourceMappingURL=CloudEditor-FCS53UcZ.js.map
|