@templatical/editor 0.24.1 → 0.25.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-X4viKtvs.js → AiChatSidebar-CIkS8DsO.js} +3 -3
- package/dist/{AiFeatureMenu-DDAamRaA.js → AiFeatureMenu-Cji1LBJJ.js} +3 -3
- package/dist/{BlockIssueBadge-Qxrl7Ujl.js → BlockIssueBadge-BQiT0FML.js} +2 -2
- package/dist/{BlockPreviewCanvas-Cf-kxbEr.js → BlockPreviewCanvas-DAnwZofk.js} +10 -6
- package/dist/{CloudEditor-JIzhj1Xq.js → CloudEditor-CXaft6Ej.js} +60 -58
- package/dist/{CollaboratorBar-tC7AACTb.js → CollaboratorBar-BR-rL2wG.js} +2 -2
- package/dist/{ColorPicker--_2PbzFk.js → ColorPicker-B4ArSUhy.js} +3 -3
- package/dist/{CommentsSidebar-Ci2Ov8FG.js → CommentsSidebar-Bm5GLDts.js} +4 -4
- package/dist/{CountdownBlock-aZIKfBWY.js → CountdownBlock-CIVAQDVu.js} +1 -1
- package/dist/{CountdownToolbar-DHp6T0Q_.js → CountdownToolbar-DBmb3tlb.js} +3 -3
- package/dist/{DesignReferenceSidebar-DQsC-3hB.js → DesignReferenceSidebar-CnyJ8L-j.js} +3 -3
- package/dist/{IssuesPanel-CoOfib44.js → IssuesPanel-D3XgmYCt.js} +2 -2
- package/dist/{MergeTagModeToggle-CiFiSV0C.js → MergeTagModeToggle-BK0fI3P2.js} +3 -3
- package/dist/{NumberWithSuffix-CXFbUqsx.js → NumberWithSuffix-Cjj9UNIp.js} +1 -1
- package/dist/{ParagraphEditor-Cy-bpEjI.js → ParagraphEditor-jGnbJEA2.js} +8 -8
- package/dist/{RichTextEditorContent-CYJko6id.js → RichTextEditorContent-DaaKdzjb.js} +4 -4
- package/dist/{SaveBlockDialog-CNTSaMEa.js → SaveBlockDialog-B3ngEldp.js} +7 -7
- package/dist/{SavedBlocksBrowserModal-CvxS5-YX.js → SavedBlocksBrowserModal-DawN3XaB.js} +6 -6
- package/dist/{SavedBlocksPanels-CNdUxS89.js → SavedBlocksPanels-eDC9Y46N.js} +1 -1
- package/dist/{SavedBlocksPickBar-BvXKhblL.js → SavedBlocksPickBar-CQbbXmzj.js} +2 -2
- package/dist/{SnapshotHistory-BqPSIV9L.js → SnapshotHistory-COxKtHM-.js} +4 -4
- package/dist/{TemplateScoringPanel-CMEuz9yF.js → TemplateScoringPanel-bUuqOO1z.js} +3 -3
- package/dist/{TestEmailModal-BDhnnCBx.js → TestEmailModal-CytkbZVQ.js} +87 -56
- package/dist/{TestEmailPanel--RwnwLn2.js → TestEmailPanel-CHUY7VZn.js} +1 -1
- package/dist/{TitleEditor-F7E_pU9H.js → TitleEditor-aMR1bOyY.js} +7 -7
- package/dist/{TplModal-BIiS24Of.js → TplModal-fmYNYdyp.js} +3 -3
- package/dist/{blockTypeIcons-C6PnLMp7.js → blockTypeIcons-C6b9rg88.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/{cdn/chunks/ca-CO4nq6TX.js → ca-8Dvbwo50.js} +5 -2
- package/dist/cdn/chunks/{AiChatSidebar-UbF3ePzR.js → AiChatSidebar-bkBKpNgE.js} +4 -4
- package/dist/cdn/chunks/{AiChatSidebar-UbF3ePzR.js.map → AiChatSidebar-bkBKpNgE.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-OIwoJzHG.js → AiFeatureMenu-CI4SYTq2.js} +4 -4
- package/dist/cdn/chunks/{AiFeatureMenu-OIwoJzHG.js.map → AiFeatureMenu-CI4SYTq2.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-Bd2EuT1C.js → BlockIssueBadge-CRnx8Dv9.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-Bd2EuT1C.js.map → BlockIssueBadge-CRnx8Dv9.js.map} +1 -1
- package/dist/cdn/chunks/{BlockPreviewCanvas-C-ut8GkJ.js → BlockPreviewCanvas-CXCWhqbp.js} +11 -7
- package/dist/cdn/chunks/BlockPreviewCanvas-CXCWhqbp.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-D87qsqbZ.js → CloudEditor-D-t7RyDh.js} +62 -60
- package/dist/cdn/chunks/CloudEditor-D-t7RyDh.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-Br4RvNrA.js → CollaboratorBar-DcXYo47v.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-Br4RvNrA.js.map → CollaboratorBar-DcXYo47v.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-B-ymPPtU.js → ColorPicker-_1O7YU2z.js} +4 -4
- package/dist/cdn/chunks/{ColorPicker-B-ymPPtU.js.map → ColorPicker-_1O7YU2z.js.map} +1 -1
- package/dist/cdn/chunks/{CommentsSidebar-Tv_WTcJv.js → CommentsSidebar-BEgLBYX-.js} +5 -5
- package/dist/cdn/chunks/{CommentsSidebar-Tv_WTcJv.js.map → CommentsSidebar-BEgLBYX-.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-cEcXSK91.js → CountdownBlock-CPnQA44g.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-cEcXSK91.js.map → CountdownBlock-CPnQA44g.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CLp3_ebk.js → CountdownToolbar-Cdo-30U4.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-CLp3_ebk.js.map → CountdownToolbar-Cdo-30U4.js.map} +1 -1
- package/dist/cdn/chunks/{DesignReferenceSidebar-YeqxSsxO.js → DesignReferenceSidebar-DPqBr-ut.js} +4 -4
- package/dist/cdn/chunks/{DesignReferenceSidebar-YeqxSsxO.js.map → DesignReferenceSidebar-DPqBr-ut.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BhsvC3XQ.js → IssuesPanel-DoQWb23r.js} +3 -3
- package/dist/cdn/chunks/{IssuesPanel-BhsvC3XQ.js.map → IssuesPanel-DoQWb23r.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagModeToggle-DrdxQA0K.js → MergeTagModeToggle-CWuVC3MU.js} +4 -4
- package/dist/cdn/chunks/{MergeTagModeToggle-DrdxQA0K.js.map → MergeTagModeToggle-CWuVC3MU.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BK_Xh4w4.js → NumberWithSuffix-DQ4sgvt5.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-BK_Xh4w4.js.map → NumberWithSuffix-DQ4sgvt5.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DKz4vTWB.js → ParagraphEditor-Uv5LPF3W.js} +9 -9
- package/dist/cdn/chunks/{ParagraphEditor-DKz4vTWB.js.map → ParagraphEditor-Uv5LPF3W.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CJ2WVicQ.js → RichTextEditorContent-Bt3s09qY.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-CJ2WVicQ.js.map → RichTextEditorContent-Bt3s09qY.js.map} +1 -1
- package/dist/cdn/chunks/{SaveBlockDialog-DTemkKPX.js → SaveBlockDialog-BAew6EFd.js} +8 -8
- package/dist/cdn/chunks/{SaveBlockDialog-DTemkKPX.js.map → SaveBlockDialog-BAew6EFd.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DbMaIbeH.js → SavedBlocksBrowserModal-Dn4IJDJW.js} +6 -6
- package/dist/cdn/chunks/{SavedBlocksBrowserModal-DbMaIbeH.js.map → SavedBlocksBrowserModal-Dn4IJDJW.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPanels-CUffuDAC.js → SavedBlocksPanels-B62U5DYW.js} +2 -2
- package/dist/cdn/chunks/{SavedBlocksPanels-CUffuDAC.js.map → SavedBlocksPanels-B62U5DYW.js.map} +1 -1
- package/dist/cdn/chunks/{SavedBlocksPickBar-D7SmNz2n.js → SavedBlocksPickBar-CyRKZg2T.js} +3 -3
- package/dist/cdn/chunks/{SavedBlocksPickBar-D7SmNz2n.js.map → SavedBlocksPickBar-CyRKZg2T.js.map} +1 -1
- package/dist/cdn/chunks/{SnapshotHistory-m5Z8bTej.js → SnapshotHistory-QQt0DKey.js} +4 -4
- package/dist/cdn/chunks/{SnapshotHistory-m5Z8bTej.js.map → SnapshotHistory-QQt0DKey.js.map} +1 -1
- package/dist/cdn/chunks/{TemplateScoringPanel-DgRU5fty.js → TemplateScoringPanel-BwyCMcit.js} +65 -65
- package/dist/cdn/chunks/{TemplateScoringPanel-DgRU5fty.js.map → TemplateScoringPanel-BwyCMcit.js.map} +1 -1
- package/dist/cdn/chunks/{TestEmailModal-Ce8-vzGh.js → TestEmailModal-B5UQkDJp.js} +89 -58
- package/dist/cdn/chunks/TestEmailModal-B5UQkDJp.js.map +1 -0
- package/dist/cdn/chunks/{TestEmailPanel-BlmIKKSL.js → TestEmailPanel-CvuBq4RA.js} +2 -2
- package/dist/cdn/chunks/{TestEmailPanel-BlmIKKSL.js.map → TestEmailPanel-CvuBq4RA.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-C6_bQxYR.js → TitleEditor-B9W954u9.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-C6_bQxYR.js.map → TitleEditor-B9W954u9.js.map} +1 -1
- package/dist/cdn/chunks/{TplModal-D6bFON2K.js → TplModal-B8UsvWc8.js} +4 -4
- package/dist/cdn/chunks/{TplModal-D6bFON2K.js.map → TplModal-B8UsvWc8.js.map} +1 -1
- package/dist/{ca-CO4nq6TX.js → cdn/chunks/ca-8Dvbwo50.js} +7 -0
- package/dist/cdn/chunks/{ca-CO4nq6TX.js.map → ca-8Dvbwo50.js.map} +1 -1
- package/dist/cdn/chunks/{cloud-CRlDc0Ev.js → cloud-DOaGUdR0.js} +2 -2
- package/dist/cdn/chunks/{cloud-CRlDc0Ev.js.map → cloud-DOaGUdR0.js.map} +1 -1
- package/dist/{de-CUeaFJph.js → cdn/chunks/de-CieSMCUp.js} +7 -0
- package/dist/cdn/chunks/{de-CUeaFJph.js.map → de-CieSMCUp.js.map} +1 -1
- package/dist/{en-zCYIPAL5.js → cdn/chunks/en-D0t_2Fq_.js} +7 -0
- package/dist/cdn/chunks/{en-zCYIPAL5.js.map → en-D0t_2Fq_.js.map} +1 -1
- package/dist/cdn/chunks/{es-BSiH7YkP.js → es-DwDoNuLM.js} +6 -1
- package/dist/cdn/chunks/{es-BSiH7YkP.js.map → es-DwDoNuLM.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-CKMD_er_.js → extensions-5jgtarD-.js} +19 -19
- package/dist/cdn/chunks/{extensions-CKMD_er_.js.map → extensions-5jgtarD-.js.map} +1 -1
- package/dist/{fr-DTVJ3det.js → cdn/chunks/fr-CSEEzv1_.js} +7 -0
- package/dist/cdn/chunks/{fr-DTVJ3det.js.map → fr-CSEEzv1_.js.map} +1 -1
- package/dist/cdn/chunks/keys-BxPCfHBH.js +12 -0
- package/dist/cdn/chunks/keys-BxPCfHBH.js.map +1 -0
- package/dist/{nl-BqSquFS3.js → cdn/chunks/nl-xyk1T2mA.js} +7 -0
- package/dist/cdn/chunks/{nl-BqSquFS3.js.map → nl-xyk1T2mA.js.map} +1 -1
- package/dist/{pt-BR-CMljK37h.js → cdn/chunks/pt-BR-yr6uOJgn.js} +7 -0
- package/dist/cdn/chunks/{pt-BR-CMljK37h.js.map → pt-BR-yr6uOJgn.js.map} +1 -1
- package/dist/cdn/chunks/{src-B4UhYbI8.js → src-B8W42vT-.js} +152 -152
- package/dist/cdn/chunks/{src-B4UhYbI8.js.map → src-B8W42vT-.js.map} +1 -1
- package/dist/cdn/chunks/{src-B3HKHglu.js → src-C417zeUg.js} +20 -20
- package/dist/cdn/chunks/{src-B3HKHglu.js.map → src-C417zeUg.js.map} +1 -1
- package/dist/cdn/chunks/{src-D5mfLR4V.js → src-CZjSXPYq.js} +8 -3
- package/dist/cdn/chunks/src-CZjSXPYq.js.map +1 -0
- package/dist/cdn/chunks/{src-CumZZNXZ.js → src-Dpj0x27M.js} +2 -2
- package/dist/cdn/chunks/{src-CumZZNXZ.js.map → src-Dpj0x27M.js.map} +1 -1
- package/dist/cdn/chunks/{styles--m9OCb_Z.js → styles-DANwMzW2.js} +743 -724
- package/dist/cdn/chunks/styles-DANwMzW2.js.map +1 -0
- package/dist/cdn/chunks/{useCloudI18n-sx1pqEbY.js → useCloudI18n-CjVzv11v.js} +2 -2
- package/dist/cdn/chunks/{useCloudI18n-sx1pqEbY.js.map → useCloudI18n-CjVzv11v.js.map} +1 -1
- package/dist/cdn/chunks/{useEditorCore-ZqF7P99K.js → useEditorCore-DfW-thCr.js} +472 -401
- package/dist/cdn/chunks/useEditorCore-DfW-thCr.js.map +1 -0
- package/dist/cdn/chunks/{useI18n-vD57BfVR.js → useI18n-DniEFeIl.js} +2 -2
- package/dist/cdn/chunks/{useI18n-vD57BfVR.js.map → useI18n-DniEFeIl.js.map} +1 -1
- package/dist/cdn/chunks/{useMergeTag-HatzNGgc.js → useMergeTag-Bk9_f5cc.js} +6 -6
- package/dist/cdn/chunks/{useMergeTag-HatzNGgc.js.map → useMergeTag-Bk9_f5cc.js.map} +1 -1
- package/dist/cdn/chunks/{usePopoverPosition-BdQ3Sv4B.js → usePopoverPosition-C4xFJCJ2.js} +2 -2
- package/dist/cdn/chunks/{usePopoverPosition-BdQ3Sv4B.js.map → usePopoverPosition-C4xFJCJ2.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +21 -19
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cloud-R8ci6yR1.js → cloud-BZn3jqoL.js} +1 -1
- package/dist/{cdn/chunks/de-CUeaFJph.js → de-CieSMCUp.js} +5 -2
- package/dist/{dist-Ba5Q-UX1.js → dist-CQ0fVBQ3.js} +7 -2
- package/dist/{cdn/chunks/en-zCYIPAL5.js → en-D0t_2Fq_.js} +5 -2
- package/dist/{es-BSiH7YkP.js → es-DwDoNuLM.js} +5 -0
- package/dist/{extensions-CGxj6-2o.js → extensions-BjvyU9Ea.js} +3 -3
- package/dist/{cdn/chunks/fr-DTVJ3det.js → fr-CSEEzv1_.js} +5 -2
- package/dist/index.d.ts +26 -0
- package/dist/keys-BFPiNAIn.js +10 -0
- package/dist/{cdn/chunks/nl-BqSquFS3.js → nl-xyk1T2mA.js} +5 -2
- package/dist/{cdn/chunks/pt-BR-CMljK37h.js → pt-BR-yr6uOJgn.js} +5 -2
- package/dist/style.css +1 -1
- package/dist/{styles-C9AMvkJk.js → styles-C9GM-bBC.js} +885 -866
- package/dist/templatical-editor.js +93 -91
- package/dist/{useCloudI18n-BC_QV2Z7.js → useCloudI18n-B2lItQ6O.js} +1 -1
- package/dist/{useEditorCore-Dojb-P2f.js → useEditorCore-Ck_hBiGA.js} +908 -837
- package/dist/{useI18n-DzOcl2wl.js → useI18n-C1KcdX_K.js} +1 -1
- package/dist/{useMergeTag-BFxXCv3p.js → useMergeTag-DHCwRMfH.js} +3 -3
- package/dist/{usePopoverPosition-Dtr1Mp1x.js → usePopoverPosition-ClnEh_Cp.js} +1 -1
- package/package.json +7 -7
- package/dist/cdn/chunks/BlockPreviewCanvas-C-ut8GkJ.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-D87qsqbZ.js.map +0 -1
- package/dist/cdn/chunks/TestEmailModal-Ce8-vzGh.js.map +0 -1
- package/dist/cdn/chunks/keys-CswSK7eb.js +0 -12
- package/dist/cdn/chunks/keys-CswSK7eb.js.map +0 -1
- package/dist/cdn/chunks/src-D5mfLR4V.js.map +0 -1
- package/dist/cdn/chunks/styles--m9OCb_Z.js.map +0 -1
- package/dist/cdn/chunks/useEditorCore-ZqF7P99K.js.map +0 -1
- package/dist/keys-uWpGv4Pq.js +0 -10
|
@@ -1,18 +1,18 @@
|
|
|
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-JcMTNF3U.js";
|
|
2
2
|
import { t as k } from "./timeouts-SsLMC4a3.js";
|
|
3
|
-
import {
|
|
4
|
-
import { T as j, b as M, j as ee, t as N } from "./useEditorCore-
|
|
3
|
+
import { B as A } from "./src-CZjSXPYq.js";
|
|
4
|
+
import { T as j, b as M, j as ee, t as N } from "./useEditorCore-DfW-thCr.js";
|
|
5
5
|
import { _ as P } from "./dist-lZgXNk4G.js";
|
|
6
6
|
import { t as F } from "./dist-B8AX9np4.js";
|
|
7
|
-
import { I, c as
|
|
8
|
-
import { t as V } from "./useI18n-
|
|
7
|
+
import { M as I, c as te, d as L, i as R, l as z, t as B, z as ne } from "./keys-BxPCfHBH.js";
|
|
8
|
+
import { t as V } from "./useI18n-DniEFeIl.js";
|
|
9
9
|
import { F as H, I as U, It as W, M as G, Ot as K, T as q, it as J, jt as Y, tt as re, u as ie } from "./icons-Cp4ZIJw-.js";
|
|
10
10
|
import { t as ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
11
|
-
import { n as X } from "./useCloudI18n-
|
|
12
|
-
import { a as Z, c as oe, d as Q, f as se, i as ce, l as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, u as _e } from "./styles
|
|
13
|
-
import { d as $ } from "./ColorPicker-
|
|
14
|
-
import { n as ve, t as ye } from "./MergeTagModeToggle-
|
|
15
|
-
import { C as be, a as xe, c as Se, d as Ce, f as we, g as Te, h as Ee, i as De, l as Oe, n as ke, o as Ae, p as je, r as Me, s as Ne, t as Pe, u as Fe, v as Ie, y as Le } from "./cloud-
|
|
11
|
+
import { n as X } from "./useCloudI18n-CjVzv11v.js";
|
|
12
|
+
import { a as Z, c as oe, d as Q, f as se, i as ce, l as le, m as ue, n as de, o as fe, p as pe, r as me, s as he, t as ge, u as _e } from "./styles-DANwMzW2.js";
|
|
13
|
+
import { d as $ } from "./ColorPicker-_1O7YU2z.js";
|
|
14
|
+
import { n as ve, t as ye } from "./MergeTagModeToggle-CWuVC3MU.js";
|
|
15
|
+
import { C as be, a as xe, c as Se, d as Ce, f as we, g as Te, h as Ee, i as De, l as Oe, n as ke, o as Ae, p as je, r as Me, s as Ne, t as Pe, u as Fe, v as Ie, y as Le } from "./cloud-DOaGUdR0.js";
|
|
16
16
|
//#region src/cloud/composables/useSnapshotPreview.ts
|
|
17
17
|
function Re(t) {
|
|
18
18
|
let { authManager: n, editor: i, history: a, conditionPreview: o, autoSave: s, onError: l } = t, u = e(null), d = c(null), p = c(null), m = !1;
|
|
@@ -184,7 +184,7 @@ function He(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-Dpj0x27M.js");
|
|
188
188
|
return l(await new t(a).uploadMedia(e));
|
|
189
189
|
} catch (e) {
|
|
190
190
|
return s?.(e), null;
|
|
@@ -262,6 +262,7 @@ function Ue(e) {
|
|
|
262
262
|
logicTags: t.logicTags,
|
|
263
263
|
displayConditions: t.displayConditions,
|
|
264
264
|
onRequestMedia: null,
|
|
265
|
+
resolvePreview: t.resolvePreview,
|
|
265
266
|
lint: Q(t),
|
|
266
267
|
onSave: () => {
|
|
267
268
|
p.value?.().catch((e) => {
|
|
@@ -321,7 +322,7 @@ function Ue(e) {
|
|
|
321
322
|
}), P = Ae({
|
|
322
323
|
authManager: g,
|
|
323
324
|
isAuthReady: l
|
|
324
|
-
}), F = t.testEmail ?? null,
|
|
325
|
+
}), F = t.testEmail ?? null, z = se({
|
|
325
326
|
provider: F ?? xe({
|
|
326
327
|
authManager: g,
|
|
327
328
|
getTemplateId: () => y.state.template?.id ?? null,
|
|
@@ -366,7 +367,7 @@ function Ue(e) {
|
|
|
366
367
|
o()?.filterByBlock(e);
|
|
367
368
|
});
|
|
368
369
|
}
|
|
369
|
-
a(
|
|
370
|
+
a(I, A.handleRequestMedia), a(R, g), a(B, D), a(L, V), a(ne, W), a(te, {
|
|
370
371
|
plan: _,
|
|
371
372
|
ai: D,
|
|
372
373
|
comments: {
|
|
@@ -374,7 +375,7 @@ function Ue(e) {
|
|
|
374
375
|
openForBlock: G
|
|
375
376
|
},
|
|
376
377
|
savedBlocks: U.capability,
|
|
377
|
-
testEmail:
|
|
378
|
+
testEmail: z.capability
|
|
378
379
|
});
|
|
379
380
|
function K(e) {
|
|
380
381
|
_.hasFeature("theme_customization") && (C.themeOverrides.value = e);
|
|
@@ -420,7 +421,7 @@ function Ue(e) {
|
|
|
420
421
|
featureFlags: k,
|
|
421
422
|
mediaLib: A,
|
|
422
423
|
exporter: M,
|
|
423
|
-
testEmail:
|
|
424
|
+
testEmail: z,
|
|
424
425
|
commentsInstance: V,
|
|
425
426
|
savedBlocks: U,
|
|
426
427
|
scoringInstance: W,
|
|
@@ -612,7 +613,7 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
612
613
|
},
|
|
613
614
|
emits: ["save"],
|
|
614
615
|
setup(e) {
|
|
615
|
-
let t = u(() => import("./CollaboratorBar-
|
|
616
|
+
let t = u(() => import("./CollaboratorBar-DcXYo47v.js")), n = u(() => import("./SnapshotHistory-QQt0DKey.js")), r = u(() => import("./AiFeatureMenu-CI4SYTq2.js")), { t: a } = V(), { t: o, format: c } = X();
|
|
616
617
|
return (l, u) => (i(), p("header", rt, [
|
|
617
618
|
x("div", it, [e.featureFlags.templateLimit.value === null ? m("", !0) : (i(), p("span", at, d(h(c)(h(o).header.templatesUsed, {
|
|
618
619
|
used: e.featureFlags.templateCount.value,
|
|
@@ -631,7 +632,7 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
631
632
|
"preview-mode": e.editor.state.previewMode,
|
|
632
633
|
onChange: e.editor.setPreviewMode
|
|
633
634
|
}, null, 8, ["preview-mode", "onChange"]),
|
|
634
|
-
e.editor.state.previewMode ? (i(), v(ye, {
|
|
635
|
+
e.editor.state.previewMode && !e.core.previewResolution.supersedesSamples.value ? (i(), v(ye, {
|
|
635
636
|
key: 0,
|
|
636
637
|
"sample-mode": e.core.mergeTagSampleMode.value,
|
|
637
638
|
onChange: u[0] ||= (t) => e.core.mergeTagSampleMode.value = t
|
|
@@ -768,9 +769,9 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
768
769
|
mediaLib: {}
|
|
769
770
|
},
|
|
770
771
|
setup(e, { expose: t }) {
|
|
771
|
-
let n = u(() => import("./AiChatSidebar-
|
|
772
|
+
let n = u(() => import("./AiChatSidebar-bkBKpNgE.js")), r = u(() => import("./CommentsSidebar-BEgLBYX-.js")), a = u(() => import("./DesignReferenceSidebar-DPqBr-ut.js")), o = u(() => import("./TemplateScoringPanel-BwyCMcit.js")), s = u(async () => {
|
|
772
773
|
try {
|
|
773
|
-
return (await import("./src-
|
|
774
|
+
return (await import("./src-Dpj0x27M.js")).MediaLibraryModal;
|
|
774
775
|
} catch {
|
|
775
776
|
throw Error("[Templatical] Cloud media library requires the optional peer dependency '@templatical/media-library'. Please install it.");
|
|
776
777
|
}
|
|
@@ -914,8 +915,8 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
914
915
|
},
|
|
915
916
|
emits: ["ready"],
|
|
916
917
|
setup(e, { expose: r, emit: o }) {
|
|
917
|
-
let l = u(() => import("./SavedBlocksPanels-
|
|
918
|
-
a(
|
|
918
|
+
let l = u(() => import("./SavedBlocksPanels-B62U5DYW.js")), f = u(() => import("./TestEmailPanel-CvuBq4RA.js")), w = e;
|
|
919
|
+
a(z, w.cloudTranslations);
|
|
919
920
|
let E = o, O = c(null), k = c(null), A = Ue({
|
|
920
921
|
config: w.config,
|
|
921
922
|
translations: w.translations,
|
|
@@ -924,7 +925,7 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
924
925
|
getCommentsSidebar: () => O.value ? { filterByBlock: O.value.filterCommentsByBlock } : null,
|
|
925
926
|
editorRoot: w.shadowRoot,
|
|
926
927
|
containerEl: k
|
|
927
|
-
}), { isInitializing: j, isAuthReady: ee, initError: N, planConfigInstance: P, websocket: F, collaboration: I, isCollaborationEnabled: te, editor:
|
|
928
|
+
}), { isInitializing: j, isAuthReady: ee, initError: N, planConfigInstance: P, websocket: F, collaboration: I, isCollaborationEnabled: te, editor: L, core: R, featureFlags: B, mediaLib: ne, exporter: V, testEmail: H, commentsInstance: W, savedBlocks: G, panelState: K, snapshotPreview: q, collabWarning: J, setThemeOverrides: Y, setUiTheme: re } = A, { showNotice: ie } = M(() => w.config.smallScreenNotice);
|
|
928
929
|
async function ae() {
|
|
929
930
|
try {
|
|
930
931
|
await q.confirmRestoreSnapshot();
|
|
@@ -932,16 +933,16 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
932
933
|
}
|
|
933
934
|
let X = Ge({
|
|
934
935
|
config: w.config,
|
|
935
|
-
editor:
|
|
936
|
+
editor: L,
|
|
936
937
|
websocket: F,
|
|
937
938
|
planConfigInstance: P,
|
|
938
939
|
snapshotPreview: q,
|
|
939
|
-
core:
|
|
940
|
+
core: R,
|
|
940
941
|
exporter: V,
|
|
941
942
|
featureFlags: B,
|
|
942
943
|
isDestroyed: A.isDestroyed
|
|
943
944
|
}), Z = Ke({
|
|
944
|
-
issues:
|
|
945
|
+
issues: R.templateLint ? R.templateLint.issues : c([]),
|
|
945
946
|
planConfig: P.config
|
|
946
947
|
});
|
|
947
948
|
async function Q() {
|
|
@@ -952,8 +953,8 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
952
953
|
}), g(() => {
|
|
953
954
|
A.destroy();
|
|
954
955
|
}), r({
|
|
955
|
-
getContent: () =>
|
|
956
|
-
setContent: (e) =>
|
|
956
|
+
getContent: () => L.content.value,
|
|
957
|
+
setContent: (e) => L.setContent(e),
|
|
957
958
|
setTheme: re,
|
|
958
959
|
setThemeOverrides: Y,
|
|
959
960
|
create: X.createTemplate,
|
|
@@ -963,9 +964,9 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
963
964
|
}), (t, r) => (i(), p("div", {
|
|
964
965
|
ref_key: "rootEl",
|
|
965
966
|
ref: k,
|
|
966
|
-
class: b(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": h(
|
|
967
|
-
"data-tpl-theme": h(
|
|
968
|
-
style: C(h(
|
|
967
|
+
class: b(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": h(L).state.darkMode }]),
|
|
968
|
+
"data-tpl-theme": h(R).resolvedTheme.value,
|
|
969
|
+
style: C(h(R).themeStyles.value),
|
|
969
970
|
onDragover: r[6] ||= _(() => {}, ["prevent"]),
|
|
970
971
|
onDrop: r[7] ||= _(() => {}, ["prevent"])
|
|
971
972
|
}, [
|
|
@@ -978,7 +979,7 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
978
979
|
"leave-from-class": "tpl:opacity-100",
|
|
979
980
|
"leave-to-class": "tpl:opacity-0"
|
|
980
981
|
}, {
|
|
981
|
-
default: s(() => [D(St, { visible: h(j) || h(
|
|
982
|
+
default: s(() => [D(St, { visible: h(j) || h(L).state.isLoading }, null, 8, ["visible"])]),
|
|
982
983
|
_: 1
|
|
983
984
|
}),
|
|
984
985
|
D(y, {
|
|
@@ -1001,8 +1002,8 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1001
1002
|
_: 1
|
|
1002
1003
|
}),
|
|
1003
1004
|
D(_t, {
|
|
1004
|
-
editor: h(
|
|
1005
|
-
core: h(
|
|
1005
|
+
editor: h(L),
|
|
1006
|
+
core: h(R),
|
|
1006
1007
|
"feature-flags": h(B),
|
|
1007
1008
|
"panel-state": h(K),
|
|
1008
1009
|
"snapshot-preview": h(q),
|
|
@@ -1011,8 +1012,8 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1011
1012
|
websocket: h(F),
|
|
1012
1013
|
collaboration: h(I),
|
|
1013
1014
|
"is-collaboration-enabled": h(te),
|
|
1014
|
-
"is-saving": h(
|
|
1015
|
-
"is-save-disabled": h(
|
|
1015
|
+
"is-saving": h(L).state.isSaving || h(B).isSaveExporting.value,
|
|
1016
|
+
"is-save-disabled": h(L).state.isSaving || h(B).isSaveExporting.value || !h(L).state.isDirty,
|
|
1016
1017
|
onSave: Q
|
|
1017
1018
|
}, null, 8, [
|
|
1018
1019
|
"editor",
|
|
@@ -1055,15 +1056,15 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1055
1056
|
default: s(() => [D(Pt, { visible: h(J).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
|
|
1056
1057
|
_: 1
|
|
1057
1058
|
}),
|
|
1058
|
-
n(D(oe, null, null, 512), [[S, !h(
|
|
1059
|
+
n(D(oe, null, null, 512), [[S, !h(L).state.previewMode]]),
|
|
1059
1060
|
x("div", {
|
|
1060
|
-
class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(
|
|
1061
|
+
class: b(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [h(L).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
1062
|
style: {
|
|
1062
1063
|
transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1063
1064
|
"background-color": "var(--tpl-canvas-bg)"
|
|
1064
1065
|
}
|
|
1065
1066
|
}, [x("div", It, [D(y, { name: "tpl-restore-btn" }, {
|
|
1066
|
-
default: s(() => [h(
|
|
1067
|
+
default: s(() => [h(R).conditionPreview.hasHiddenBlocks.value && h(R).appliesConditionFilter.value ? (i(), p("button", {
|
|
1067
1068
|
key: 0,
|
|
1068
1069
|
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",
|
|
1069
1070
|
style: {
|
|
@@ -1072,20 +1073,21 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1072
1073
|
"border-color": "var(--tpl-warning)",
|
|
1073
1074
|
"backdrop-filter": "blur(8px)"
|
|
1074
1075
|
},
|
|
1075
|
-
|
|
1076
|
+
"data-testid": "restore-hidden-blocks",
|
|
1077
|
+
onClick: r[0] ||= (e) => h(R).conditionPreview.reset()
|
|
1076
1078
|
}, [D(h(U), {
|
|
1077
1079
|
size: 13,
|
|
1078
1080
|
"stroke-width": 2
|
|
1079
|
-
}), T(" " + d(h(
|
|
1081
|
+
}), T(" " + d(h(R).t.blockSettings.restoreHiddenBlocks), 1)])) : m("", !0)]),
|
|
1080
1082
|
_: 1
|
|
1081
1083
|
})]), x("main", Lt, [D(_e, {
|
|
1082
|
-
viewport: h(
|
|
1083
|
-
content: h(R).content.value,
|
|
1084
|
-
"selected-block-id": h(
|
|
1085
|
-
"dark-mode": h(
|
|
1086
|
-
"preview-mode": h(
|
|
1084
|
+
viewport: h(L).state.viewport,
|
|
1085
|
+
content: h(R).previewResolution.content.value,
|
|
1086
|
+
"selected-block-id": h(L).state.selectedBlockId,
|
|
1087
|
+
"dark-mode": h(L).state.darkMode,
|
|
1088
|
+
"preview-mode": h(L).state.previewMode,
|
|
1087
1089
|
"locked-blocks": h(I)?.lockedBlocks.value ?? void 0,
|
|
1088
|
-
onSelectBlock: h(
|
|
1090
|
+
onSelectBlock: h(L).selectBlock,
|
|
1089
1091
|
onOpenAiChat: r[1] ||= (e) => h(K).aiChatOpen.value = !0,
|
|
1090
1092
|
onOpenDesignReference: r[2] ||= (e) => h(K).designReferenceOpen.value = !0
|
|
1091
1093
|
}, null, 8, [
|
|
@@ -1099,36 +1101,36 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1099
1101
|
])])], 2),
|
|
1100
1102
|
e.config.branding !== !1 && !h(B).isWhiteLabeled.value ? (i(), v(me, {
|
|
1101
1103
|
key: 0,
|
|
1102
|
-
"position-class": [h(
|
|
1104
|
+
"position-class": [h(L).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
1105
|
}, null, 8, ["position-class"])) : m("", !0),
|
|
1104
1106
|
x("div", {
|
|
1105
1107
|
class: "tpl-sr-only",
|
|
1106
1108
|
role: "status",
|
|
1107
1109
|
"aria-live": "polite",
|
|
1108
1110
|
"aria-atomic": "true",
|
|
1109
|
-
"aria-label": h(
|
|
1110
|
-
}, d(h(
|
|
1111
|
+
"aria-label": h(R).t.landmarks.reorderAnnouncements
|
|
1112
|
+
}, d(h(R).keyboardReorder.announcement.value), 9, Rt),
|
|
1111
1113
|
n(D(he, {
|
|
1112
|
-
"selected-block": h(
|
|
1113
|
-
settings: h(
|
|
1114
|
+
"selected-block": h(L).selectedBlock.value,
|
|
1115
|
+
settings: h(L).content.value.settings,
|
|
1114
1116
|
"shifted-left": h(K).rightPanelOpen.value,
|
|
1115
|
-
onUpdateBlock: r[3] ||= (e) => h(
|
|
1116
|
-
onDeleteBlock: r[4] ||= (e) => h(
|
|
1117
|
-
onDuplicateBlock: r[5] ||= (e) => h(
|
|
1118
|
-
onUpdateSettings: h(
|
|
1117
|
+
onUpdateBlock: r[3] ||= (e) => h(L).updateBlock(h(L).selectedBlock.value.id, e),
|
|
1118
|
+
onDeleteBlock: r[4] ||= (e) => h(R).blockActions.deleteBlock(h(L).selectedBlock.value.id),
|
|
1119
|
+
onDuplicateBlock: r[5] ||= (e) => h(R).blockActions.duplicateBlock(h(L).selectedBlock.value),
|
|
1120
|
+
onUpdateSettings: h(L).updateSettings
|
|
1119
1121
|
}, null, 8, [
|
|
1120
1122
|
"selected-block",
|
|
1121
1123
|
"settings",
|
|
1122
1124
|
"shifted-left",
|
|
1123
1125
|
"onUpdateSettings"
|
|
1124
|
-
]), [[S, !h(
|
|
1126
|
+
]), [[S, !h(L).state.previewMode]]),
|
|
1125
1127
|
!h(j) && h(ee) ? (i(), v(vt, {
|
|
1126
1128
|
key: 1,
|
|
1127
1129
|
ref_key: "cloudPanelsRef",
|
|
1128
1130
|
ref: O,
|
|
1129
1131
|
config: w.config,
|
|
1130
|
-
editor: h(
|
|
1131
|
-
core: h(
|
|
1132
|
+
editor: h(L),
|
|
1133
|
+
core: h(R),
|
|
1132
1134
|
"panel-state": h(K),
|
|
1133
1135
|
"plan-config-instance": h(P),
|
|
1134
1136
|
"media-lib": h(ne)
|
|
@@ -1149,7 +1151,7 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1149
1151
|
feature: h(H)
|
|
1150
1152
|
}, null, 8, ["feature"])) : m("", !0),
|
|
1151
1153
|
x("div", {
|
|
1152
|
-
ref: (e) => h(
|
|
1154
|
+
ref: (e) => h(R).popoverRoot.value = e,
|
|
1153
1155
|
class: "tpl-popover-root"
|
|
1154
1156
|
}, null, 512),
|
|
1155
1157
|
D(de),
|
|
@@ -1157,8 +1159,8 @@ var qe = ["aria-label"], Je = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1157
1159
|
h(ie) ? (i(), v(fe, { key: 4 })) : m("", !0)
|
|
1158
1160
|
], 46, Ft));
|
|
1159
1161
|
}
|
|
1160
|
-
}), [["__scopeId", "data-v-
|
|
1162
|
+
}), [["__scopeId", "data-v-16786f1a"]]);
|
|
1161
1163
|
//#endregion
|
|
1162
1164
|
export { zt as default };
|
|
1163
1165
|
|
|
1164
|
-
//# sourceMappingURL=CloudEditor-
|
|
1166
|
+
//# sourceMappingURL=CloudEditor-D-t7RyDh.js.map
|