@templatical/editor 0.7.1 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-BwLECwsO.js → AiChatSidebar-H7SIsxeC.js} +49 -59
- package/dist/{AiFeatureMenu-CVHKharv.js → AiFeatureMenu-CJGX-fP5.js} +1 -1
- package/dist/{CloudEditor-S7AzuNwC.js → CloudEditor-BBs3p-mW.js} +124 -120
- package/dist/{CollaboratorBar-VZKOv_Zn.js → CollaboratorBar-CiEo25lb.js} +2 -2
- package/dist/{CommentsSidebar-BiRtaXYD.js → CommentsSidebar-DikjSLtH.js} +1 -1
- package/dist/{CountdownToolbar-CojjlZet.js → CountdownToolbar-Bn4RwJVN.js} +2 -2
- package/dist/{DesignReferenceSidebar-Ci9HIGbf.js → DesignReferenceSidebar-D08CLZPA.js} +1 -1
- package/dist/{ModuleBrowserModal-D7IYx1Nh.js → ModuleBrowserModal-D6637s8j.js} +4 -4
- package/dist/{ModulePreviewCanvas-I-uMcK5G.js → ModulePreviewCanvas-DBFmwq-y.js} +1 -1
- package/dist/{NumberWithSuffix-CLTBb2Rj.js → NumberWithSuffix-CyFX9w1e.js} +1 -1
- package/dist/{ParagraphEditor-BRQTNDFO.js → ParagraphEditor-DC2jOjNh.js} +16 -16
- package/dist/{RichTextEditorContent-C3QSg7gd.js → RichTextEditorContent-8NkjTIua.js} +1 -1
- package/dist/{SaveModuleDialog-DGGGNZfm.js → SaveModuleDialog-NKT7bWWs.js} +2 -2
- package/dist/{SnapshotHistory-C97Iw6xw.js → SnapshotHistory-XNqYxPBj.js} +2 -2
- package/dist/{TestEmailModal-B7S8H-VG.js → TestEmailModal-B_-Qo5Us.js} +2 -2
- package/dist/{TitleEditor-DhFTYzrw.js → TitleEditor-DnH3yyTr.js} +7 -7
- package/dist/{TplModal-BgABm6ju.js → TplModal-BoEZFe3U.js} +2 -2
- package/dist/{blockTypeIcons-BSf-3RJ-.js → blockTypeIcons-CUcYuWAO.js} +1 -1
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AccessibilityPanel-kgNBRaZV.js → AccessibilityPanel-CQt87OMk.js} +5 -5
- package/dist/cdn/chunks/{AccessibilityPanel-kgNBRaZV.js.map → AccessibilityPanel-CQt87OMk.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-CRkzwdMg.js → AiFeatureMenu-SxIqfqA0.js} +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-CRkzwdMg.js.map → AiFeatureMenu-SxIqfqA0.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-BfuH2Hrg.js → BlockA11yBadge-QqW6nomn.js} +3 -3
- package/dist/cdn/chunks/{BlockA11yBadge-BfuH2Hrg.js.map → BlockA11yBadge-QqW6nomn.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BGiN3M_f.js → CloudEditor-ChWUIMw7.js} +165 -161
- package/dist/cdn/chunks/CloudEditor-ChWUIMw7.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-CMl3lAZU.js → CollaboratorBar-73LfbzqF.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-CMl3lAZU.js.map → CollaboratorBar-73LfbzqF.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-D1RoaOgF.js → CountdownBlock-WYz9b9Ex.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-D1RoaOgF.js.map → CountdownBlock-WYz9b9Ex.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-DltwuOer.js → CountdownToolbar-B9fPfFqp.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-DltwuOer.js.map → CountdownToolbar-B9fPfFqp.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-3uu2mXR9.js → ModuleBrowserModal-DfnJQBkM.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-3uu2mXR9.js.map → ModuleBrowserModal-DfnJQBkM.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-K9CQFr7p.js → ModulePreviewCanvas-DE4_oHA_.js} +20 -20
- package/dist/cdn/chunks/{ModulePreviewCanvas-K9CQFr7p.js.map → ModulePreviewCanvas-DE4_oHA_.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BIFgtqGs.js → NumberWithSuffix-BST0yRor.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-BIFgtqGs.js.map → NumberWithSuffix-BST0yRor.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DlpZX_x4.js → ParagraphEditor-CQfijF3i.js} +36 -36
- package/dist/cdn/chunks/{ParagraphEditor-DlpZX_x4.js.map → ParagraphEditor-CQfijF3i.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CPGT8h-O.js → RichTextEditorContent-CBds8dnm.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-CPGT8h-O.js.map → RichTextEditorContent-CBds8dnm.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-_uaJscj1.js → SaveModuleDialog-DXhuZgZ4.js} +13 -13
- package/dist/cdn/chunks/{SaveModuleDialog-_uaJscj1.js.map → SaveModuleDialog-DXhuZgZ4.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Kerz6US8.js → TitleEditor-BdQvH7eK.js} +7 -7
- package/dist/cdn/chunks/{TitleEditor-Kerz6US8.js.map → TitleEditor-BdQvH7eK.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BeOhGtoo.js → blockTypeIcons-D3CGFW5P.js} +8 -8
- package/dist/cdn/chunks/{blockTypeIcons-BeOhGtoo.js.map → blockTypeIcons-D3CGFW5P.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-BZYkPlKr.js → extensions-BE81zpqP.js} +50 -48
- package/dist/cdn/chunks/{extensions-BZYkPlKr.js.map → extensions-BE81zpqP.js.map} +1 -1
- package/dist/cdn/chunks/{features-DzIN-Nua.js → features-CXF_YKlL.js} +1313 -1122
- package/dist/cdn/chunks/features-CXF_YKlL.js.map +1 -0
- package/dist/cdn/chunks/{icons-Nvr6w13E.js → icons-KbmhF7rg.js} +2 -2
- package/dist/cdn/chunks/{icons-Nvr6w13E.js.map → icons-KbmhF7rg.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-BzT7BoGU.js → media-library-BERe10wA.js} +103 -103
- package/dist/cdn/chunks/{media-library-BzT7BoGU.js.map → media-library-BERe10wA.js.map} +1 -1
- package/dist/cdn/chunks/{quality-C328caFm.js → quality-CmkY1kMU.js} +309 -309
- package/dist/cdn/chunks/{quality-C328caFm.js.map → quality-CmkY1kMU.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-eDlxzlJI.js → renderer-OttGEYkY.js} +50 -50
- package/dist/cdn/chunks/{renderer-eDlxzlJI.js.map → renderer-OttGEYkY.js.map} +1 -1
- package/dist/cdn/chunks/{src-DKNTQJVO.js → src-C21GI0p6.js} +6 -6
- package/dist/cdn/chunks/{src-DKNTQJVO.js.map → src-C21GI0p6.js.map} +1 -1
- package/dist/cdn/chunks/styles-Cy-My9zK.js +2976 -0
- package/dist/cdn/chunks/styles-Cy-My9zK.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +109 -106
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cloud-a3VovHva.js → cloud-k0DgeCo2.js} +11 -0
- package/dist/{dist-DDJIWTRY.js → dist-B2jcQhv8.js} +1 -1
- package/dist/{dist-wzMIGj-D.js → dist-BYt3jdCR.js} +1 -1
- package/dist/{dist-aRzjfSRN.js → dist-CISFttkF.js} +1 -1
- package/dist/{dist-D6uC2xhi.js → dist-CfQPBf15.js} +1 -1
- package/dist/{dist-DjviJBCi.js → dist-DD-9hatO.js} +1 -1
- package/dist/{dist-KoBJjK1G.js → dist-DUvhjQ2-.js} +1 -1
- package/dist/{dist-BaQIYPsn.js → dist-DVwOAodp.js} +1 -1
- package/dist/{dist-Cp0zXPAD.js → dist-DxD1kSdH.js} +1 -1
- package/dist/{dist-Pk4MhWMP.js → dist-U5guDm2w.js} +1 -1
- package/dist/{dist-D90y8dvT.js → dist-hfu7I2rO.js} +3 -3
- package/dist/{dist-us-RpCWN.js → dist-v8h02hhE.js} +1 -1
- package/dist/{extensions-D-J02CiP.js → extensions-p6UBqXfg.js} +30 -28
- package/dist/index.d.ts +8 -8
- package/dist/style.css +1 -1
- package/dist/{styles-DeNciUTX.js → styles-BP15QmP3.js} +1078 -1056
- package/dist/templatical-editor.js +108 -105
- package/dist/useAliveFlag-D8GoB4VE.js +10 -0
- package/dist/{useEditorCore-uCU9Ny0M.js → useEditorCore-_rbu6iMu.js} +969 -791
- package/package.json +7 -7
- package/dist/cdn/chunks/CloudEditor-BGiN3M_f.js.map +0 -1
- package/dist/cdn/chunks/features-DzIN-Nua.js.map +0 -1
- package/dist/cdn/chunks/styles-lcwmaOou.js +0 -2955
- package/dist/cdn/chunks/styles-lcwmaOou.js.map +0 -1
- /package/dist/{AccessibilityPanel-D-PqmHdH.js → AccessibilityPanel-BeUibrUb.js} +0 -0
- /package/dist/{BlockA11yBadge-BFIw0h1m.js → BlockA11yBadge-BhyoMZJ9.js} +0 -0
- /package/dist/{CountdownBlock-Cq8A8WrM.js → CountdownBlock-ByJ0_8Pk.js} +0 -0
- /package/dist/{TemplateScoringPanel-V79yrEPC.js → TemplateScoringPanel-kYOGtac3.js} +0 -0
- /package/dist/{de-BhIWu_bO.js → de-C9hp3n_a.js} +0 -0
- /package/dist/{de-Di4MEjjx.js → de-GOtR9DwW.js} +0 -0
- /package/dist/{dist-iLBdeBDR.js → dist-CQQS9SRN.js} +0 -0
- /package/dist/{emojiData-DX3E0XT-.js → emojiData-DrBuvEoP.js} +0 -0
- /package/dist/{en-D7HRbYah.js → en-Dv776AqL.js} +0 -0
- /package/dist/{en-BSuzi-Pd.js → en-dFFQVzNn.js} +0 -0
- /package/dist/{formatRelativeTime-BOEf47hq.js → formatRelativeTime-bvx5sFh5.js} +0 -0
- /package/dist/{liquid.browser-CdMv1BTn.js → liquid.browser-DX8ZHRdq.js} +0 -0
- /package/dist/{pt-BR-K32lt6YP.js → pt-BR-6n58Fl_q.js} +0 -0
- /package/dist/{pt-BR-CCVBRais.js → pt-BR-iOr79aDg.js} +0 -0
- /package/dist/{readableTextColor-CY3SiRnt.js → readableTextColor-CXzrEnNb.js} +0 -0
- /package/dist/{styleConstants-fWzlIIwN.js → styleConstants-DkfOPzGu.js} +0 -0
- /package/dist/{usePopoverRoot-BxJrqnMD.js → usePopoverRoot-BwzFSPLy.js} +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { A as e, B as t, L as n, M as r, O as i, Q as a, X as o, _ as s, at as c, b as l, c as u, d, f, g as p, h as m, j as h, k as g, l as _, m as v, o as y, ot as b, p as x, q as S, rt as C, st as w, t as T, v as E, y as D, z as O } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
2
|
import { t as k } from "./timeouts-BSGxjuUF.js";
|
|
3
3
|
import { E as A, i as j } from "./dist-DJmnUmW9.js";
|
|
4
|
-
import { P as M, S as
|
|
4
|
+
import { P as M, S as N, t as ee } from "./useEditorCore-_rbu6iMu.js";
|
|
5
5
|
import { s as P, t as F } from "./dist-BzRLLpfq.js";
|
|
6
|
-
import { E as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { a as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
6
|
+
import { E as I, S as te, T as ne, c as L, i as re, l as R, n as z, u as B } from "./keys-B5SJtPWf.js";
|
|
7
|
+
import { t as V } from "./useI18n-PEB8ioi_.js";
|
|
8
|
+
import { t as H } from "./createLucideIcon-Di4mqmGn.js";
|
|
9
|
+
import { t as U } from "./check-Bg5yrRmX.js";
|
|
10
|
+
import { t as W } from "./circle-alert-C0L9pUQ4.js";
|
|
11
|
+
import { a as G, c as K, i as q, l as ie, n as J, o as ae, r as oe, s as se, t as ce } from "./styles-BP15QmP3.js";
|
|
12
|
+
import { t as le } from "./clock-CDlEdqiP.js";
|
|
13
|
+
import { t as Y } from "./loader-circle-_9bP23op.js";
|
|
14
|
+
import { t as X } from "./message-circle-gzy2ZGJ3.js";
|
|
15
|
+
import { t as Z } from "./send-BatIZC9a.js";
|
|
16
16
|
import { t as ue } from "./sparkles-D1IGi_cC.js";
|
|
17
17
|
import { t as de } from "./triangle-alert-DWQySIE2.js";
|
|
18
18
|
import { t as fe } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
19
19
|
import { n as Q } from "./useCloudI18n-ByEMykjO.js";
|
|
20
|
-
import { d as $ } from "./styleConstants-
|
|
21
|
-
import { _ as pe, a as me, c as he, d as ge, f as _e, g as ve, h as ye, l as be, m as xe, n as Se, o as Ce, p as we, r as Te, s as Ee, t as De, v as Oe, y as ke } from "./cloud-
|
|
22
|
-
var Ae =
|
|
20
|
+
import { d as $ } from "./styleConstants-DkfOPzGu.js";
|
|
21
|
+
import { _ as pe, a as me, c as he, d as ge, f as _e, g as ve, h as ye, l as be, m as xe, n as Se, o as Ce, p as we, r as Te, s as Ee, t as De, v as Oe, y as ke } from "./cloud-k0DgeCo2.js";
|
|
22
|
+
var Ae = H("save", [
|
|
23
23
|
["path", {
|
|
24
24
|
d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",
|
|
25
25
|
key: "1c8476"
|
|
@@ -240,7 +240,7 @@ function Ie(e) {
|
|
|
240
240
|
}), n(() => S.lockedBlocks.value, (e) => {
|
|
241
241
|
y.value = e;
|
|
242
242
|
}, { immediate: !0 }), Ee(b, S));
|
|
243
|
-
let C = d(() => !!t.collaboration?.enabled && v.hasFeature("collaboration")), w =
|
|
243
|
+
let C = d(() => !!t.collaboration?.enabled && v.hasFeature("collaboration")), w = ee({
|
|
244
244
|
editor: b,
|
|
245
245
|
config: {
|
|
246
246
|
uiTheme: t.uiTheme,
|
|
@@ -250,7 +250,7 @@ function Ie(e) {
|
|
|
250
250
|
mergeTags: t.mergeTags,
|
|
251
251
|
displayConditions: t.displayConditions,
|
|
252
252
|
onRequestMedia: null,
|
|
253
|
-
accessibility:
|
|
253
|
+
accessibility: K(t),
|
|
254
254
|
onSave: () => {
|
|
255
255
|
p.value?.().catch((e) => {
|
|
256
256
|
t.onError?.(e);
|
|
@@ -269,7 +269,8 @@ function Ie(e) {
|
|
|
269
269
|
},
|
|
270
270
|
themeExtraStyles: () => ({ "--tpl-drop-text": `"${r.canvas.dropHere}"` }),
|
|
271
271
|
keyboardOptions: { onBeforeUndo: () => g?.showCollabUndoWarning() },
|
|
272
|
-
editorRoot: e.editorRoot
|
|
272
|
+
editorRoot: e.editorRoot,
|
|
273
|
+
containerEl: e.containerEl
|
|
273
274
|
}), T = Ne({
|
|
274
275
|
isCollaborationEnabled: C,
|
|
275
276
|
getCollaboratorCount: () => S?.collaborators.value.length ?? 0,
|
|
@@ -294,7 +295,7 @@ function Ie(e) {
|
|
|
294
295
|
mediaLibraryOpen: D.mediaLibraryOpen,
|
|
295
296
|
mediaLibraryAccept: D.mediaLibraryAccept
|
|
296
297
|
});
|
|
297
|
-
|
|
298
|
+
N({
|
|
298
299
|
onBlockMove: b.moveBlock,
|
|
299
300
|
onBlockAdd: b.addBlock
|
|
300
301
|
});
|
|
@@ -323,33 +324,33 @@ function Ie(e) {
|
|
|
323
324
|
comments: F,
|
|
324
325
|
channel: x.channel
|
|
325
326
|
});
|
|
326
|
-
let
|
|
327
|
+
let R = ye({
|
|
327
328
|
authManager: _,
|
|
328
329
|
onError: t.onError
|
|
329
|
-
}),
|
|
330
|
+
}), V = o(!1), H = o(null), U = o(!1), W = pe({
|
|
330
331
|
authManager: _,
|
|
331
332
|
getTemplateId: () => b.state.template?.id ?? null
|
|
332
333
|
});
|
|
333
|
-
function
|
|
334
|
+
function G(e) {
|
|
334
335
|
D.commentsOpen.value = !0, queueMicrotask(() => {
|
|
335
336
|
s()?.filterByBlock(e);
|
|
336
337
|
});
|
|
337
338
|
}
|
|
338
|
-
h(
|
|
339
|
+
h(te, A.handleRequestMedia), h(re, _), h(z, O), h(B, F), h(ne, R), h(I, W), h(L, {
|
|
339
340
|
plan: v,
|
|
340
341
|
ai: O,
|
|
341
342
|
comments: {
|
|
342
343
|
getBlockCount: (e) => F.commentCountByBlock.value.get(e) ?? 0,
|
|
343
|
-
openForBlock:
|
|
344
|
+
openForBlock: G
|
|
344
345
|
},
|
|
345
346
|
savedModules: {
|
|
346
347
|
openSaveDialog: (e) => {
|
|
347
|
-
|
|
348
|
+
H.value = e ?? null, V.value = !0;
|
|
348
349
|
},
|
|
349
350
|
openBrowser: () => {
|
|
350
|
-
|
|
351
|
+
U.value = !0;
|
|
351
352
|
},
|
|
352
|
-
moduleCount: d(() =>
|
|
353
|
+
moduleCount: d(() => R.modules.value.length)
|
|
353
354
|
}
|
|
354
355
|
});
|
|
355
356
|
function q(e) {
|
|
@@ -368,7 +369,7 @@ function Ie(e) {
|
|
|
368
369
|
if (!e.api.ok) throw Error("Health check failed: API is not reachable");
|
|
369
370
|
if (!e.auth.ok) throw Error(`Health check failed: authentication error${e.auth.error ? ` - ${e.auth.error}` : ""}`);
|
|
370
371
|
if (e.websocket.ok || M.warn("WebSocket health check failed:", e.websocket.error ?? "unknown error", "-- real-time features will be disabled."), await v.fetchConfig(), f) return;
|
|
371
|
-
i.setCustomFontsEnabled(v.hasFeature("custom_fonts")), t.customBlocks?.length && v.hasFeature("custom_blocks") && w.registerCustomBlocks(t.customBlocks), t.theme && v.hasFeature("theme_customization") && (w.themeOverrides.value = t.theme), t.modules !== !1 && v.hasFeature("saved_modules") &&
|
|
372
|
+
i.setCustomFontsEnabled(v.hasFeature("custom_fonts")), t.customBlocks?.length && v.hasFeature("custom_blocks") && w.registerCustomBlocks(t.customBlocks), t.theme && v.hasFeature("theme_customization") && (w.themeOverrides.value = t.theme), t.modules !== !1 && v.hasFeature("saved_modules") && R.loadModules(), a("ready");
|
|
372
373
|
} catch (e) {
|
|
373
374
|
if (f) return;
|
|
374
375
|
let n = e instanceof Error ? e : Error("Initialization failed", { cause: e });
|
|
@@ -398,20 +399,20 @@ function Ie(e) {
|
|
|
398
399
|
exporter: j,
|
|
399
400
|
testEmail: P,
|
|
400
401
|
commentsInstance: F,
|
|
401
|
-
savedModulesHeadless:
|
|
402
|
-
scoringInstance:
|
|
402
|
+
savedModulesHeadless: R,
|
|
403
|
+
scoringInstance: W,
|
|
403
404
|
panelState: D,
|
|
404
405
|
snapshotPreview: E,
|
|
405
406
|
collabWarning: T,
|
|
406
|
-
showSaveModuleDialog:
|
|
407
|
-
showModuleBrowserModal:
|
|
408
|
-
saveModulePreSelectedBlockId:
|
|
407
|
+
showSaveModuleDialog: V,
|
|
408
|
+
showModuleBrowserModal: U,
|
|
409
|
+
saveModulePreSelectedBlockId: H,
|
|
409
410
|
onSaveHook: p,
|
|
410
411
|
initialize: J,
|
|
411
412
|
destroy: ae,
|
|
412
413
|
setThemeOverrides: q,
|
|
413
414
|
setUiTheme: ie,
|
|
414
|
-
openCommentsForBlock:
|
|
415
|
+
openCommentsForBlock: G
|
|
415
416
|
};
|
|
416
417
|
}
|
|
417
418
|
//#endregion
|
|
@@ -591,7 +592,7 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
591
592
|
},
|
|
592
593
|
emits: ["save"],
|
|
593
594
|
setup(t) {
|
|
594
|
-
let n = D(() => import("./CollaboratorBar-
|
|
595
|
+
let n = D(() => import("./CollaboratorBar-CiEo25lb.js")), r = D(() => import("./SnapshotHistory-XNqYxPBj.js")), i = D(() => import("./AiFeatureMenu-CJGX-fP5.js")), { t: a, format: o } = Q();
|
|
595
596
|
return (l, d) => (e(), m("header", Xe, [
|
|
596
597
|
f("div", Ze, [t.featureFlags.templateLimit.value === null ? v("", !0) : (e(), m("span", Qe, w(C(o)(C(a).header.templatesUsed, {
|
|
597
598
|
used: t.featureFlags.templateCount.value,
|
|
@@ -636,10 +637,10 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
636
637
|
"aria-live": "assertive",
|
|
637
638
|
class: "tpl-tooltip tpl-status tpl:flex tpl:items-center tpl:gap-1.5 tpl:text-xs tpl:text-[var(--tpl-danger)]",
|
|
638
639
|
"data-tooltip": t.featureFlags.saveErrorMessage.value
|
|
639
|
-
}, [E(C(
|
|
640
|
+
}, [E(C(W), {
|
|
640
641
|
size: 12,
|
|
641
642
|
"stroke-width": 2.5
|
|
642
|
-
}), s(" " + w(C(a).header.saveFailed), 1)], 8, tt)) : t.featureFlags.saveStatus.value === "saved" ? (e(), m("div", nt, [E(C(
|
|
643
|
+
}), s(" " + w(C(a).header.saveFailed), 1)], 8, tt)) : t.featureFlags.saveStatus.value === "saved" ? (e(), m("div", nt, [E(C(U), {
|
|
643
644
|
size: 12,
|
|
644
645
|
"stroke-width": 2.5
|
|
645
646
|
}), s(" " + w(C(a).header.saved), 1)])) : t.editor.state.isDirty ? (e(), m("div", rt, [d[4] ||= f("span", { class: "tpl-pulse tpl:size-1.5 tpl:rounded-full tpl:bg-[var(--tpl-primary)]" }, null, -1), s(" " + w(C(a).header.unsaved), 1)])) : v("", !0),
|
|
@@ -655,7 +656,7 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
655
656
|
}),
|
|
656
657
|
onClick: d[0] ||= (e) => t.panelState.commentsOpen.value = !t.panelState.commentsOpen.value
|
|
657
658
|
}, [
|
|
658
|
-
E(C(
|
|
659
|
+
E(C(X), {
|
|
659
660
|
size: 16,
|
|
660
661
|
"stroke-width": 2
|
|
661
662
|
}),
|
|
@@ -698,12 +699,12 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
698
699
|
},
|
|
699
700
|
disabled: t.testEmail.isSending.value || !t.featureFlags.hasTemplateSaved.value,
|
|
700
701
|
onClick: d[2] ||= (e) => t.panelState.testEmailModalOpen.value = !0
|
|
701
|
-
}, [t.testEmail.isSending.value ? (e(), x(C(
|
|
702
|
+
}, [t.testEmail.isSending.value ? (e(), x(C(Y), {
|
|
702
703
|
key: 1,
|
|
703
704
|
class: "tpl-spinner",
|
|
704
705
|
size: 16,
|
|
705
706
|
"stroke-width": 2
|
|
706
|
-
})) : (e(), x(C(
|
|
707
|
+
})) : (e(), x(C(Z), {
|
|
707
708
|
key: 0,
|
|
708
709
|
size: 16,
|
|
709
710
|
"stroke-width": 2
|
|
@@ -717,7 +718,7 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
717
718
|
},
|
|
718
719
|
disabled: t.isSaveDisabled,
|
|
719
720
|
onClick: d[3] ||= (e) => l.$emit("save")
|
|
720
|
-
}, [t.isSaving ? (e(), x(C(
|
|
721
|
+
}, [t.isSaving ? (e(), x(C(Y), {
|
|
721
722
|
key: 1,
|
|
722
723
|
class: "tpl-spinner",
|
|
723
724
|
size: 16,
|
|
@@ -753,7 +754,7 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
753
754
|
"module-insert"
|
|
754
755
|
],
|
|
755
756
|
setup(t, { expose: n, emit: r }) {
|
|
756
|
-
let i = D(() => import("./AiChatSidebar-
|
|
757
|
+
let i = D(() => import("./AiChatSidebar-H7SIsxeC.js")), a = D(() => import("./CommentsSidebar-DikjSLtH.js")), s = D(() => import("./DesignReferenceSidebar-D08CLZPA.js")), c = D(() => import("./TemplateScoringPanel-kYOGtac3.js")), l = D(() => import("./TestEmailModal-B_-Qo5Us.js")), u = D(() => import("./SaveModuleDialog-NKT7bWWs.js")), d = D(() => import("./ModuleBrowserModal-D6637s8j.js")), f = D(async () => {
|
|
757
758
|
try {
|
|
758
759
|
return (await import("@templatical/media-library")).MediaLibraryModal;
|
|
759
760
|
} catch {
|
|
@@ -867,7 +868,7 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
867
868
|
return "isNotFound" in e && !!e.isNotFound;
|
|
868
869
|
}
|
|
869
870
|
return (n, s) => t.visible && t.error ? (e(), m("div", gt, [
|
|
870
|
-
f("div", _t, [E(C(
|
|
871
|
+
f("div", _t, [E(C(W), {
|
|
871
872
|
size: 32,
|
|
872
873
|
"stroke-width": 1.5,
|
|
873
874
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
@@ -889,7 +890,7 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
889
890
|
emits: ["cancel", "confirm"],
|
|
890
891
|
setup(t, { emit: n }) {
|
|
891
892
|
let r = n, { t: i } = Q();
|
|
892
|
-
return (n, a) => t.visible ? (e(), m("div", St, [f("div", Ct, [E(C(
|
|
893
|
+
return (n, a) => t.visible ? (e(), m("div", St, [f("div", Ct, [E(C(le), {
|
|
893
894
|
size: 18,
|
|
894
895
|
"stroke-width": 2,
|
|
895
896
|
class: "tpl:text-[var(--tpl-primary)]"
|
|
@@ -916,7 +917,7 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
916
917
|
__name: "CollabUndoToast",
|
|
917
918
|
props: { visible: { type: Boolean } },
|
|
918
919
|
setup(t) {
|
|
919
|
-
let { t: n } =
|
|
920
|
+
let { t: n } = V();
|
|
920
921
|
return (r, i) => t.visible ? (e(), m("div", Et, w(C(n).history.collabWarning), 1)) : v("", !0);
|
|
921
922
|
}
|
|
922
923
|
}), Ot = ["data-tpl-theme"], kt = { class: "tpl:sticky tpl:top-0 tpl:z-40 tpl:h-0" }, At = { class: "tpl-main tpl:flex tpl:justify-center tpl:p-8" }, jt = ["aria-label"], Mt = /* @__PURE__ */ fe(/* @__PURE__ */ l({
|
|
@@ -931,61 +932,64 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
931
932
|
emits: ["ready"],
|
|
932
933
|
setup(n, { expose: r, emit: a }) {
|
|
933
934
|
let l = n;
|
|
934
|
-
h(
|
|
935
|
-
let u = a, d = o(null), p = Ie({
|
|
935
|
+
h(R, l.cloudTranslations);
|
|
936
|
+
let u = a, d = o(null), p = o(null), _ = Ie({
|
|
936
937
|
config: l.config,
|
|
937
938
|
translations: l.translations,
|
|
938
939
|
fontsManager: l.fontsManager,
|
|
939
940
|
emit: u,
|
|
940
941
|
getCommentsSidebar: () => d.value ? { filterByBlock: d.value.filterCommentsByBlock } : null,
|
|
941
|
-
editorRoot: l.shadowRoot
|
|
942
|
-
|
|
943
|
-
|
|
942
|
+
editorRoot: l.shadowRoot,
|
|
943
|
+
containerEl: p
|
|
944
|
+
}), { isInitializing: S, isAuthReady: D, initError: k, planConfigInstance: A, websocket: M, collaboration: N, isCollaborationEnabled: ee, editor: P, core: F, featureFlags: I, mediaLib: te, exporter: ne, testEmail: L, commentsInstance: re, savedModulesHeadless: z, panelState: B, snapshotPreview: V, collabWarning: H, showSaveModuleDialog: U, showModuleBrowserModal: W, saveModulePreSelectedBlockId: K, setThemeOverrides: q, setUiTheme: J } = _;
|
|
945
|
+
async function oe(e) {
|
|
944
946
|
try {
|
|
945
|
-
await
|
|
947
|
+
await L.sendTestEmail(e), B.testEmailModalOpen.value = !1;
|
|
946
948
|
} catch {}
|
|
947
949
|
}
|
|
948
|
-
function
|
|
950
|
+
function le(e, t) {
|
|
949
951
|
for (let n = 0; n < e.content.length; n++) {
|
|
950
952
|
let r = j(e.content[n]), i = t === void 0 ? void 0 : t + n;
|
|
951
|
-
|
|
953
|
+
P.addBlock(r, void 0, void 0, i);
|
|
952
954
|
}
|
|
953
955
|
W.value = !1;
|
|
954
956
|
}
|
|
955
957
|
let Y = Re({
|
|
956
958
|
config: l.config,
|
|
957
|
-
editor:
|
|
958
|
-
websocket:
|
|
959
|
-
planConfigInstance:
|
|
959
|
+
editor: P,
|
|
960
|
+
websocket: M,
|
|
961
|
+
planConfigInstance: A,
|
|
960
962
|
snapshotPreview: V,
|
|
961
|
-
core:
|
|
963
|
+
core: F,
|
|
962
964
|
exporter: ne,
|
|
963
|
-
featureFlags:
|
|
964
|
-
isDestroyed:
|
|
965
|
+
featureFlags: I,
|
|
966
|
+
isDestroyed: _.isDestroyed
|
|
965
967
|
}), X = ze({
|
|
966
|
-
issues:
|
|
967
|
-
planConfig:
|
|
968
|
+
issues: F.accessibilityLint ? F.accessibilityLint.issues : o([]),
|
|
969
|
+
planConfig: A.config
|
|
968
970
|
});
|
|
969
971
|
async function Z() {
|
|
970
972
|
await X.tryRunSave(() => Y.saveTemplate().catch((e) => l.config.onError?.(e)));
|
|
971
973
|
}
|
|
972
|
-
return
|
|
973
|
-
|
|
974
|
+
return _.onSaveHook.value = Z, i(() => {
|
|
975
|
+
_.initialize();
|
|
974
976
|
}), g(() => {
|
|
975
|
-
|
|
977
|
+
_.destroy();
|
|
976
978
|
}), r({
|
|
977
|
-
getContent: () =>
|
|
978
|
-
setContent: (e) =>
|
|
979
|
-
setTheme:
|
|
980
|
-
setThemeOverrides:
|
|
979
|
+
getContent: () => P.content.value,
|
|
980
|
+
setContent: (e) => P.setContent(e),
|
|
981
|
+
setTheme: J,
|
|
982
|
+
setThemeOverrides: q,
|
|
981
983
|
create: Y.createTemplate,
|
|
982
984
|
load: Y.loadTemplate,
|
|
983
985
|
save: Y.saveTemplate,
|
|
984
|
-
sendTestEmail:
|
|
986
|
+
sendTestEmail: L.sendTestEmail
|
|
985
987
|
}), (r, i) => (e(), m("div", {
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
988
|
+
ref_key: "rootEl",
|
|
989
|
+
ref: p,
|
|
990
|
+
class: c(["tpl tpl:relative tpl:h-full tpl:overflow-hidden", { "tpl:dark": C(P).state.darkMode }]),
|
|
991
|
+
"data-tpl-theme": C(F).resolvedTheme.value,
|
|
992
|
+
style: b(C(F).themeStyles.value)
|
|
989
993
|
}, [
|
|
990
994
|
E(T, {
|
|
991
995
|
"enter-active-class": "tpl:transition-opacity tpl:duration-200",
|
|
@@ -995,7 +999,7 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
995
999
|
"leave-from-class": "tpl:opacity-100",
|
|
996
1000
|
"leave-to-class": "tpl:opacity-0"
|
|
997
1001
|
}, {
|
|
998
|
-
default: O(() => [E(ht, { visible: C(
|
|
1002
|
+
default: O(() => [E(ht, { visible: C(S) || C(P).state.isLoading }, null, 8, ["visible"])]),
|
|
999
1003
|
_: 1
|
|
1000
1004
|
}),
|
|
1001
1005
|
E(T, {
|
|
@@ -1007,9 +1011,9 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1007
1011
|
"leave-to-class": "tpl:opacity-0"
|
|
1008
1012
|
}, {
|
|
1009
1013
|
default: O(() => [E(xt, {
|
|
1010
|
-
error: C(
|
|
1011
|
-
visible: !!C(
|
|
1012
|
-
onRetry: C(
|
|
1014
|
+
error: C(k),
|
|
1015
|
+
visible: !!C(k) && !C(S),
|
|
1016
|
+
onRetry: C(_).initialize
|
|
1013
1017
|
}, null, 8, [
|
|
1014
1018
|
"error",
|
|
1015
1019
|
"visible",
|
|
@@ -1018,18 +1022,18 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1018
1022
|
_: 1
|
|
1019
1023
|
}),
|
|
1020
1024
|
E(ut, {
|
|
1021
|
-
editor: C(
|
|
1022
|
-
core: C(
|
|
1023
|
-
"feature-flags": C(
|
|
1025
|
+
editor: C(P),
|
|
1026
|
+
core: C(F),
|
|
1027
|
+
"feature-flags": C(I),
|
|
1024
1028
|
"panel-state": C(B),
|
|
1025
1029
|
"snapshot-preview": C(V),
|
|
1026
|
-
"comments-instance": C(
|
|
1027
|
-
"test-email": C(
|
|
1028
|
-
websocket: C(
|
|
1029
|
-
collaboration: C(
|
|
1030
|
+
"comments-instance": C(re),
|
|
1031
|
+
"test-email": C(L),
|
|
1032
|
+
websocket: C(M),
|
|
1033
|
+
collaboration: C(N),
|
|
1030
1034
|
"is-collaboration-enabled": C(ee),
|
|
1031
|
-
"is-saving": C(
|
|
1032
|
-
"is-save-disabled": C(
|
|
1035
|
+
"is-saving": C(P).state.isSaving || C(I).isSaveExporting.value,
|
|
1036
|
+
"is-save-disabled": C(P).state.isSaving || C(I).isSaveExporting.value || !C(P).state.isDirty,
|
|
1033
1037
|
onSave: Z
|
|
1034
1038
|
}, null, 8, [
|
|
1035
1039
|
"editor",
|
|
@@ -1076,15 +1080,15 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1076
1080
|
default: O(() => [E(Dt, { visible: C(H).collabUndoWarningVisible.value }, null, 8, ["visible"])]),
|
|
1077
1081
|
_: 1
|
|
1078
1082
|
}),
|
|
1079
|
-
t(E(ae, null, null, 512), [[y, !C(
|
|
1083
|
+
t(E(ae, null, null, 512), [[y, !C(P).state.previewMode]]),
|
|
1080
1084
|
f("div", {
|
|
1081
|
-
class: c(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [C(
|
|
1085
|
+
class: c(["tpl-body tpl:absolute tpl:bottom-0 tpl:overflow-auto", [C(P).state.previewMode ? "tpl:left-0 tpl:right-0" : C(B).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]", C(V).isPreviewingSnapshot.value ? "tpl:top-[104px]" : "tpl:top-14"]]),
|
|
1082
1086
|
style: {
|
|
1083
1087
|
transition: "all 300ms cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1084
1088
|
"background-color": "var(--tpl-canvas-bg)"
|
|
1085
1089
|
}
|
|
1086
1090
|
}, [f("div", kt, [E(T, { name: "tpl-restore-btn" }, {
|
|
1087
|
-
default: O(() => [C(
|
|
1091
|
+
default: O(() => [C(F).conditionPreview.hasHiddenBlocks.value ? (e(), m("button", {
|
|
1088
1092
|
key: 0,
|
|
1089
1093
|
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",
|
|
1090
1094
|
style: {
|
|
@@ -1093,20 +1097,20 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1093
1097
|
"border-color": "var(--tpl-warning)",
|
|
1094
1098
|
"backdrop-filter": "blur(8px)"
|
|
1095
1099
|
},
|
|
1096
|
-
onClick: i[0] ||= (e) => C(
|
|
1100
|
+
onClick: i[0] ||= (e) => C(F).conditionPreview.reset()
|
|
1097
1101
|
}, [E(C(ie), {
|
|
1098
1102
|
size: 13,
|
|
1099
1103
|
"stroke-width": 2
|
|
1100
|
-
}), s(" " + w(C(
|
|
1104
|
+
}), s(" " + w(C(F).t.blockSettings.restoreHiddenBlocks), 1)])) : v("", !0)]),
|
|
1101
1105
|
_: 1
|
|
1102
1106
|
})]), f("main", At, [E(se, {
|
|
1103
|
-
viewport: C(
|
|
1104
|
-
content: C(
|
|
1105
|
-
"selected-block-id": C(
|
|
1106
|
-
"dark-mode": C(
|
|
1107
|
-
"preview-mode": C(
|
|
1108
|
-
"locked-blocks": C(
|
|
1109
|
-
onSelectBlock: C(
|
|
1107
|
+
viewport: C(P).state.viewport,
|
|
1108
|
+
content: C(P).content.value,
|
|
1109
|
+
"selected-block-id": C(P).state.selectedBlockId,
|
|
1110
|
+
"dark-mode": C(P).state.darkMode,
|
|
1111
|
+
"preview-mode": C(P).state.previewMode,
|
|
1112
|
+
"locked-blocks": C(N)?.lockedBlocks.value ?? void 0,
|
|
1113
|
+
onSelectBlock: C(P).selectBlock,
|
|
1110
1114
|
onOpenAiChat: i[1] ||= (e) => C(B).aiChatOpen.value = !0,
|
|
1111
1115
|
onOpenDesignReference: i[2] ||= (e) => C(B).designReferenceOpen.value = !0
|
|
1112
1116
|
}, null, 8, [
|
|
@@ -1118,51 +1122,51 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1118
1122
|
"locked-blocks",
|
|
1119
1123
|
"onSelectBlock"
|
|
1120
1124
|
])])], 2),
|
|
1121
|
-
n.config.branding !== !1 && !C(
|
|
1125
|
+
n.config.branding !== !1 && !C(I).isWhiteLabeled.value ? (e(), x(ce, {
|
|
1122
1126
|
key: 0,
|
|
1123
|
-
"position-class": [C(
|
|
1127
|
+
"position-class": [C(P).state.previewMode ? "tpl:left-0 tpl:right-0" : C(B).rightPanelOpen.value ? "tpl:left-12 tpl:right-[680px]" : "tpl:left-12 tpl:right-[320px]"]
|
|
1124
1128
|
}, null, 8, ["position-class"])) : v("", !0),
|
|
1125
1129
|
f("div", {
|
|
1126
1130
|
class: "tpl-sr-only",
|
|
1127
1131
|
role: "status",
|
|
1128
1132
|
"aria-live": "polite",
|
|
1129
1133
|
"aria-atomic": "true",
|
|
1130
|
-
"aria-label": C(
|
|
1131
|
-
}, w(C(
|
|
1132
|
-
t(E(
|
|
1133
|
-
"selected-block": C(
|
|
1134
|
-
settings: C(
|
|
1134
|
+
"aria-label": C(F).t.landmarks.reorderAnnouncements
|
|
1135
|
+
}, w(C(F).keyboardReorder.announcement.value), 9, jt),
|
|
1136
|
+
t(E(G, {
|
|
1137
|
+
"selected-block": C(P).selectedBlock.value,
|
|
1138
|
+
settings: C(P).content.value.settings,
|
|
1135
1139
|
"shifted-left": C(B).rightPanelOpen.value,
|
|
1136
|
-
onUpdateBlock: i[3] ||= (e) => C(
|
|
1137
|
-
onDeleteBlock: i[4] ||= (e) => C(
|
|
1138
|
-
onDuplicateBlock: i[5] ||= (e) => C(
|
|
1139
|
-
onUpdateSettings: C(
|
|
1140
|
+
onUpdateBlock: i[3] ||= (e) => C(P).updateBlock(C(P).selectedBlock.value.id, e),
|
|
1141
|
+
onDeleteBlock: i[4] ||= (e) => C(F).blockActions.deleteBlock(C(P).selectedBlock.value.id),
|
|
1142
|
+
onDuplicateBlock: i[5] ||= (e) => C(F).blockActions.duplicateBlock(C(P).selectedBlock.value),
|
|
1143
|
+
onUpdateSettings: C(P).updateSettings
|
|
1140
1144
|
}, null, 8, [
|
|
1141
1145
|
"selected-block",
|
|
1142
1146
|
"settings",
|
|
1143
1147
|
"shifted-left",
|
|
1144
1148
|
"onUpdateSettings"
|
|
1145
|
-
]), [[y, !C(
|
|
1146
|
-
!C(
|
|
1149
|
+
]), [[y, !C(P).state.previewMode]]),
|
|
1150
|
+
!C(S) && C(D) ? (e(), x(dt, {
|
|
1147
1151
|
key: 1,
|
|
1148
1152
|
ref_key: "cloudPanelsRef",
|
|
1149
1153
|
ref: d,
|
|
1150
1154
|
config: l.config,
|
|
1151
|
-
editor: C(
|
|
1152
|
-
core: C(
|
|
1155
|
+
editor: C(P),
|
|
1156
|
+
core: C(F),
|
|
1153
1157
|
"panel-state": C(B),
|
|
1154
|
-
"plan-config-instance": C(
|
|
1155
|
-
"test-email": C(
|
|
1158
|
+
"plan-config-instance": C(A),
|
|
1159
|
+
"test-email": C(L),
|
|
1156
1160
|
"media-lib": C(te),
|
|
1157
|
-
"saved-modules-headless": C(
|
|
1161
|
+
"saved-modules-headless": C(z),
|
|
1158
1162
|
"show-save-module-dialog": C(U),
|
|
1159
|
-
"save-module-pre-selected-block-id": C(
|
|
1163
|
+
"save-module-pre-selected-block-id": C(K),
|
|
1160
1164
|
"show-module-browser-modal": C(W),
|
|
1161
1165
|
"onUpdate:showSaveModuleDialog": i[6] ||= (e) => U.value = e,
|
|
1162
|
-
"onUpdate:saveModulePreSelectedBlockId": i[7] ||= (e) =>
|
|
1166
|
+
"onUpdate:saveModulePreSelectedBlockId": i[7] ||= (e) => K.value = e,
|
|
1163
1167
|
"onUpdate:showModuleBrowserModal": i[8] ||= (e) => W.value = e,
|
|
1164
|
-
onSendTestEmail:
|
|
1165
|
-
onModuleInsert:
|
|
1168
|
+
onSendTestEmail: oe,
|
|
1169
|
+
onModuleInsert: le
|
|
1166
1170
|
}, null, 8, [
|
|
1167
1171
|
"config",
|
|
1168
1172
|
"editor",
|
|
@@ -1177,11 +1181,11 @@ var Be = ["aria-label"], Ve = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
1177
1181
|
"show-module-browser-modal"
|
|
1178
1182
|
])) : v("", !0),
|
|
1179
1183
|
f("div", {
|
|
1180
|
-
ref: (e) => C(
|
|
1184
|
+
ref: (e) => C(F).popoverRoot.value = e,
|
|
1181
1185
|
class: "tpl-popover-root"
|
|
1182
1186
|
}, null, 512)
|
|
1183
1187
|
], 14, Ot));
|
|
1184
1188
|
}
|
|
1185
|
-
}), [["__scopeId", "data-v-
|
|
1189
|
+
}), [["__scopeId", "data-v-1b4da1c7"]]);
|
|
1186
1190
|
//#endregion
|
|
1187
1191
|
export { Mt as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as e, M as t, b as n, d as r, f as i, h as a, l as o, m as s, ot as c, p as l, rt as u, st as d } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-_rbu6iMu.js";
|
|
3
3
|
import { t as f } from "./createLucideIcon-Di4mqmGn.js";
|
|
4
4
|
import { n as p } from "./useCloudI18n-ByEMykjO.js";
|
|
5
|
-
import { t as m } from "./readableTextColor-
|
|
5
|
+
import { t as m } from "./readableTextColor-CXzrEnNb.js";
|
|
6
6
|
var h = f("wifi-off", [
|
|
7
7
|
["path", {
|
|
8
8
|
d: "M12 20h.01",
|
|
@@ -11,7 +11,7 @@ import { t as T } from "./trash-2-424iqbpN.js";
|
|
|
11
11
|
import { t as E } from "./x-Dlaenqta.js";
|
|
12
12
|
import { t as D } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
13
13
|
import { n as ce } from "./useCloudI18n-ByEMykjO.js";
|
|
14
|
-
import { t as le } from "./formatRelativeTime-
|
|
14
|
+
import { t as le } from "./formatRelativeTime-bvx5sFh5.js";
|
|
15
15
|
var ue = x("chevron-up", [["path", {
|
|
16
16
|
d: "m18 15-6-6-6 6",
|
|
17
17
|
key: "153udz"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as e, M as t, _ as n, at as r, b as i, d as a, f as o, h as s, l as c, p as l, rt as u, st as d, v as f, z as p } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
2
|
import { t as m } from "./useI18n-PEB8ioi_.js";
|
|
3
|
-
import { f as h } from "./styleConstants-
|
|
4
|
-
import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-
|
|
3
|
+
import { f as h } from "./styleConstants-DkfOPzGu.js";
|
|
4
|
+
import { i as g, n as _, r as v, t as y } from "./NumberWithSuffix-CyFX9w1e.js";
|
|
5
5
|
//#region src/components/toolbar/CheckboxItem.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var b = { class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:text-[12px] tpl:text-[var(--tpl-text)]" }, x = ["checked"], S = /* @__PURE__ */ i({
|
|
7
7
|
__name: "CheckboxItem",
|
|
@@ -8,7 +8,7 @@ import { t as v } from "./x-Dlaenqta.js";
|
|
|
8
8
|
import { t as ce } from "./LoadingTrack-CFkDkjBb.js";
|
|
9
9
|
import { t as y } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
10
10
|
import { n as le } from "./useCloudI18n-ByEMykjO.js";
|
|
11
|
-
import { u as ue } from "./cloud-
|
|
11
|
+
import { u as ue } from "./cloud-k0DgeCo2.js";
|
|
12
12
|
var de = g("file-image", [
|
|
13
13
|
["path", {
|
|
14
14
|
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { A as e, B as t, F as n, L as r, M as i, X as a, a as ee, b as o, c as s, d as c, f as l, h as u, i as te, l as d, m as ne, ot as re, p as f, rt as p, st as m, v as h, y as ie, z as ae } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-_rbu6iMu.js";
|
|
3
3
|
import { A as g, T as _, m as oe } from "./keys-B5SJtPWf.js";
|
|
4
4
|
import { t as se } from "./useI18n-PEB8ioi_.js";
|
|
5
5
|
import { t as v } from "./createLucideIcon-Di4mqmGn.js";
|
|
6
|
-
import { n as y, t as b } from "./blockTypeIcons-
|
|
6
|
+
import { n as y, t as b } from "./blockTypeIcons-CUcYuWAO.js";
|
|
7
7
|
import { t as ce } from "./trash-2-424iqbpN.js";
|
|
8
8
|
import { t as le } from "./x-Dlaenqta.js";
|
|
9
9
|
import { n as ue } from "./useCloudI18n-ByEMykjO.js";
|
|
10
|
-
import { t as de } from "./TplModal-
|
|
10
|
+
import { t as de } from "./TplModal-BoEZFe3U.js";
|
|
11
11
|
var fe = v("search", [["path", {
|
|
12
12
|
d: "m21 21-4.34-4.34",
|
|
13
13
|
key: "14j7rj"
|
|
@@ -53,7 +53,7 @@ var fe = v("search", [["path", {
|
|
|
53
53
|
props: { visible: { type: Boolean } },
|
|
54
54
|
emits: ["close", "insert"],
|
|
55
55
|
setup(o, { emit: v }) {
|
|
56
|
-
let B = o, V = v, Ee = ie(() => import("./ModulePreviewCanvas-
|
|
56
|
+
let B = o, V = v, Ee = ie(() => import("./ModulePreviewCanvas-DBFmwq-y.js")), { t: De } = se(), { t: H } = ue(), U = g(_, "ModuleBrowserModal"), W = g(oe, "ModuleBrowserModal"), G = a(""), K = a(null), q = a(null), J = a("end"), Y = c(() => {
|
|
57
57
|
let e = U.modules.value;
|
|
58
58
|
if (!G.value) return e;
|
|
59
59
|
let t = G.value.toLowerCase();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, F as t, M as n, P as r, b as i, d as a, f as o, h as s, l as c, ot as l, p as u, rt as d, w as f } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
-
import { N as p, _ as m, a as h, f as g, g as _, h as v, i as y, m as b, n as x, p as S, r as C, u as w, v as T, y as E } from "./useEditorCore-
|
|
2
|
+
import { N as p, _ as m, a as h, f as g, g as _, h as v, i as y, m as b, n as x, p as S, r as C, u as w, v as T, y as E } from "./useEditorCore-_rbu6iMu.js";
|
|
3
3
|
import { s as D } from "./keys-B5SJtPWf.js";
|
|
4
4
|
//#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__PURE__ */ i({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as e, F as t, M as n, N as r, X as i, at as a, b as o, d as s, f as c, h as l, l as u, m as d, ot as f, p, rt as m, s as h, st as g, t as ee, v as _, z as te } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
2
|
import { t as v } from "./dist-BzRLLpfq.js";
|
|
3
3
|
import { t as ne } from "./useI18n-PEB8ioi_.js";
|
|
4
|
-
import { h as y, i as b, m as x, p as S, u as C } from "./styleConstants-
|
|
4
|
+
import { h as y, i as b, m as x, p as S, u as C } from "./styleConstants-DkfOPzGu.js";
|
|
5
5
|
//#region ../../node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js
|
|
6
6
|
var w = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, T = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
|
|
7
7
|
360 / (Math.PI * 2);
|