@templatical/editor 0.18.0 → 0.19.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-BWIzNePR.js → AiChatSidebar-DAQTFuvi.js} +3 -3
- package/dist/{AiFeatureMenu-IoLW8c6m.js → AiFeatureMenu-aFSO20PR.js} +4 -4
- package/dist/{BlockIssueBadge-FbyZBJlf.js → BlockIssueBadge-BQmq1bxn.js} +2 -2
- package/dist/{CloudEditor-txLsdvcR.js → CloudEditor-D0K-m1GA.js} +14 -12
- package/dist/{CollaboratorBar-CpLOFt43.js → CollaboratorBar-CJO3l6Dt.js} +2 -2
- package/dist/ColorPicker-BsgpTJqK.js +552 -0
- package/dist/{CommentsSidebar-C8xFu9qy.js → CommentsSidebar-BYMVucZh.js} +4 -4
- package/dist/{CountdownBlock-CaU40Htk.js → CountdownBlock-Bn5w7C-p.js} +1 -1
- package/dist/{CountdownToolbar-CBbGAxmF.js → CountdownToolbar-PJI3ffi1.js} +3 -3
- package/dist/{DesignReferenceSidebar-BWZgqmT-.js → DesignReferenceSidebar-QfAV8XT9.js} +5 -5
- package/dist/{IssuesPanel-CBzfmzRM.js → IssuesPanel-CTjRgz8w.js} +2 -2
- package/dist/{ModuleBrowserModal-C9qHpjaS.js → ModuleBrowserModal-BNalLx0k.js} +7 -7
- package/dist/{ModulePreviewCanvas-xEMWMJwf.js → ModulePreviewCanvas-BwObwisa.js} +2 -2
- package/dist/{NumberWithSuffix-BreqtON_.js → NumberWithSuffix-D3BKz66W.js} +1 -1
- package/dist/{ParagraphEditor-iRJI_YbA.js → ParagraphEditor-Cf75UfSo.js} +42 -42
- package/dist/{RichTextEditorContent-DkXai9qP.js → RichTextEditorContent-MdaLz6Q3.js} +5 -5
- package/dist/{SaveModuleDialog-DqDmk0rO.js → SaveModuleDialog-MTjwiF9D.js} +6 -6
- package/dist/{SnapshotHistory-BVe5aCHi.js → SnapshotHistory-C_Y1LzAY.js} +4 -4
- package/dist/{TemplateScoringPanel-CRqt9-T5.js → TemplateScoringPanel-DikuKc6i.js} +77 -77
- package/dist/{TestEmailModal-jpy4hnYZ.js → TestEmailModal-BW8aTtzf.js} +3 -3
- package/dist/{TitleEditor-Bf6Jv2qI.js → TitleEditor-CCUkbRN0.js} +7 -7
- package/dist/{TplModal-DAtccv6o.js → TplModal-DoOwUKlT.js} +3 -3
- package/dist/{blockTypeIcons-CnlwyvkL.js → blockTypeIcons-BlPKjD7M.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/{ca-CSl--oWR.js → ca-DbWoy4rG.js} +2 -1
- package/dist/cdn/chunks/{AiFeatureMenu-B4oJlFQI.js → AiFeatureMenu-RwJiaPXZ.js} +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-B4oJlFQI.js.map → AiFeatureMenu-RwJiaPXZ.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-C7Ts7bT7.js → BlockIssueBadge-DM-TDKbr.js} +5 -5
- package/dist/cdn/chunks/{BlockIssueBadge-C7Ts7bT7.js.map → BlockIssueBadge-DM-TDKbr.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BRO-2CcF.js → CloudEditor-Dufl354p.js} +132 -130
- package/dist/cdn/chunks/CloudEditor-Dufl354p.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-BsWOjOCS.js → CollaboratorBar-xsU20iPl.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-BsWOjOCS.js.map → CollaboratorBar-xsU20iPl.js.map} +1 -1
- package/dist/{ColorPicker-BXCcUYsZ.js → cdn/chunks/ColorPicker-y_obnw4o.js} +234 -157
- package/dist/cdn/chunks/ColorPicker-y_obnw4o.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-BUGxk8GI.js → CountdownBlock-sHsRMe1q.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-BUGxk8GI.js.map → CountdownBlock-sHsRMe1q.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C8tWWfGw.js → CountdownToolbar-Ckc_jEi-.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-C8tWWfGw.js.map → CountdownToolbar-Ckc_jEi-.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-C5izyrbm.js → IssuesPanel-DF5Ajuna.js} +7 -7
- package/dist/cdn/chunks/{IssuesPanel-C5izyrbm.js.map → IssuesPanel-DF5Ajuna.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-DySKXKFF.js → ModuleBrowserModal-DG4AVFjH.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-DySKXKFF.js.map → ModuleBrowserModal-DG4AVFjH.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-qqEvLBp2.js → ModulePreviewCanvas-Bc_PcJuc.js} +24 -24
- package/dist/cdn/chunks/{ModulePreviewCanvas-qqEvLBp2.js.map → ModulePreviewCanvas-Bc_PcJuc.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DttdbXsh.js → NumberWithSuffix-8fOO-LC_.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-DttdbXsh.js.map → NumberWithSuffix-8fOO-LC_.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CQJ23PXU.js → ParagraphEditor-BkafKSju.js} +107 -107
- package/dist/cdn/chunks/{ParagraphEditor-CQJ23PXU.js.map → ParagraphEditor-BkafKSju.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-C4vxiXng.js → RichTextEditorContent-BthhzOZS.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-C4vxiXng.js.map → RichTextEditorContent-BthhzOZS.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-D5eddgzd.js → SaveModuleDialog-DhsfYf2n.js} +4 -4
- package/dist/cdn/chunks/{SaveModuleDialog-D5eddgzd.js.map → SaveModuleDialog-DhsfYf2n.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-5TkwDrPL.js → TitleEditor-DLv9cXba.js} +8 -8
- package/dist/cdn/chunks/{TitleEditor-5TkwDrPL.js.map → TitleEditor-DLv9cXba.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-CbmN4aSw.js → blockTypeIcons-B0uibGX7.js} +7 -7
- package/dist/cdn/chunks/{blockTypeIcons-CbmN4aSw.js.map → blockTypeIcons-B0uibGX7.js.map} +1 -1
- package/dist/cdn/chunks/{ca-CSl--oWR.js → ca-DbWoy4rG.js} +3 -2
- package/dist/cdn/chunks/{ca-CSl--oWR.js.map → ca-DbWoy4rG.js.map} +1 -1
- package/dist/{de-ZaffrKDP.js → cdn/chunks/de-CgGOnerg.js} +4 -1
- package/dist/cdn/chunks/{de-ZaffrKDP.js.map → de-CgGOnerg.js.map} +1 -1
- package/dist/cdn/chunks/{en-CHuXeJDt.js → en-DrUV9xth.js} +3 -2
- package/dist/cdn/chunks/{en-CHuXeJDt.js.map → en-DrUV9xth.js.map} +1 -1
- package/dist/{es-CaC8VQjO.js → cdn/chunks/es-DwbKjU7q.js} +4 -1
- package/dist/cdn/chunks/{es-CaC8VQjO.js.map → es-DwbKjU7q.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-B3M4IqhZ.js → extensions-DLHvZ0UH.js} +19 -19
- package/dist/cdn/chunks/{extensions-B3M4IqhZ.js.map → extensions-DLHvZ0UH.js.map} +1 -1
- package/dist/cdn/chunks/{features-HBwOEo4D.js → features-Cnfv4QAY.js} +1382 -1298
- package/dist/cdn/chunks/features-Cnfv4QAY.js.map +1 -0
- package/dist/cdn/chunks/{icons-D4vTsN4p.js → icons-DbcM69bb.js} +2 -2
- package/dist/cdn/chunks/{icons-D4vTsN4p.js.map → icons-DbcM69bb.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-CfExuiSG.js → media-library-DpSMwHd4.js} +524 -524
- package/dist/cdn/chunks/{media-library-CfExuiSG.js.map → media-library-DpSMwHd4.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-C74zfEWH.js → pt-BR-Bcc5Tjed.js} +3 -2
- package/dist/cdn/chunks/{pt-BR-C74zfEWH.js.map → pt-BR-Bcc5Tjed.js.map} +1 -1
- package/dist/cdn/chunks/{quality-nh1R42eb.js → quality-D9QqkRcU.js} +77 -77
- package/dist/cdn/chunks/{quality-nh1R42eb.js.map → quality-D9QqkRcU.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-BLvlUayY.js → renderer-BsLQZNXU.js} +14 -14
- package/dist/cdn/chunks/{renderer-BLvlUayY.js.map → renderer-BsLQZNXU.js.map} +1 -1
- package/dist/cdn/chunks/{src-Cks4RrLL.js → src-zu1ehVNN.js} +6 -6
- package/dist/cdn/chunks/{src-Cks4RrLL.js.map → src-zu1ehVNN.js.map} +1 -1
- package/dist/cdn/chunks/{styles-CPCN13az.js → styles-Dx-jXeCd.js} +184 -184
- package/dist/cdn/chunks/{styles-CPCN13az.js.map → styles-Dx-jXeCd.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +54 -52
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cloud-BogxOeZu.js → cloud-B-RebwxI.js} +5 -5
- package/dist/{cdn/chunks/de-ZaffrKDP.js → de-CgGOnerg.js} +2 -3
- package/dist/{dist-DoRIUsfz.js → dist-BJbqgyPn.js} +108 -94
- package/dist/{en-CHuXeJDt.js → en-DrUV9xth.js} +2 -1
- package/dist/{cdn/chunks/es-CaC8VQjO.js → es-DwbKjU7q.js} +2 -3
- package/dist/{extensions-gpFdCinj.js → extensions-BCA9pyer.js} +11 -11
- package/dist/index.d.ts +31 -0
- package/dist/keys-DFaIbGR8.js +10 -0
- package/dist/{pt-BR-C74zfEWH.js → pt-BR-Bcc5Tjed.js} +2 -1
- package/dist/style.css +1 -1
- package/dist/{styles-CJ6WmkYL.js → styles-64uLkPJV.js} +47 -47
- package/dist/templatical-editor.js +13 -11
- package/dist/{useCloudI18n-DIn74fK2.js → useCloudI18n-PCDOC2kz.js} +1 -1
- package/dist/{useEditorCore-LJJNXXqC.js → useEditorCore-ea9OrrH3.js} +798 -755
- package/dist/{useI18n-OaMLWqhY.js → useI18n-BNMzZTM5.js} +1 -1
- package/dist/{useMergeTag-CZMgwVvr.js → useMergeTag-DfEY0eK5.js} +5 -5
- package/dist/{usePopoverPosition-QDY09q9H.js → usePopoverPosition-F9STHRIr.js} +33 -6
- package/package.json +7 -7
- package/dist/cdn/chunks/CloudEditor-BRO-2CcF.js.map +0 -1
- package/dist/cdn/chunks/ColorPicker-DEtVX4gN.js +0 -471
- package/dist/cdn/chunks/ColorPicker-DEtVX4gN.js.map +0 -1
- package/dist/cdn/chunks/features-HBwOEo4D.js.map +0 -1
- package/dist/keys-DAxnnmXs.js +0 -10
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, H as r, I as i, K as a, N as o, O as s, Ot as c, R as l, W as u, Y as d, _ as f, c as p, d as m, g as h, h as g, j as _, l as v, m as y, nt as b, q as x, r as S, s as C, u as w, w as T, x as E, y as D, z as O } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { a as k, c as A, o as j, s as M, t as N } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
3
|
import { t as P } from "./upload-y4gxiFp5.js";
|
|
4
|
-
import {
|
|
5
|
-
import { C as H, F as re, I as ie, L as ae, M as oe, N as se, O as ce, P as le, R as ue, _ as de, a as fe, c as pe, f as me, g as he, h as ge, i as _e, l as ve, m as ye, n as be, o as xe, p as Se, r as Ce, s as we, u as Te, v as Ee, y as De, z as Oe } from "./useEditorCore-
|
|
4
|
+
import { A as F, E as I, O as L, T as R, a as z, c as B, f as V, j as ee, k as te, l as ne } from "./dist-BJbqgyPn.js";
|
|
5
|
+
import { C as H, F as re, I as ie, L as ae, M as oe, N as se, O as ce, P as le, R as ue, _ as de, a as fe, c as pe, f as me, g as he, h as ge, i as _e, l as ve, m as ye, n as be, o as xe, p as Se, r as Ce, s as we, u as Te, v as Ee, y as De, z as Oe } from "./useEditorCore-ea9OrrH3.js";
|
|
6
6
|
import { c as ke, m as Ae } from "./dist-DYv_Pttj.js";
|
|
7
|
-
import { n as je } from "./usePopoverPosition-
|
|
8
|
-
import {
|
|
9
|
-
import { t as U } from "./useI18n-
|
|
7
|
+
import { n as je } from "./usePopoverPosition-F9STHRIr.js";
|
|
8
|
+
import { A as Me, B as Ne, D as Pe, I as Fe, L as Ie, M as Le, O as Re, R as ze, _ as Be, a as Ve, d as He, f as Ue, h as We, m as Ge, n as Ke, o as qe, p as Je, s as Ye, w as Xe, z as Ze } from "./keys-DFaIbGR8.js";
|
|
9
|
+
import { t as U } from "./useI18n-BNMzZTM5.js";
|
|
10
10
|
import { t as W } from "./createLucideIcon-FSF4peHQ.js";
|
|
11
11
|
import { n as Qe, t as $e } from "./scan-line-IAMjPtRw.js";
|
|
12
12
|
import { t as et } from "./chevron-down-dClfxKrJ.js";
|
|
13
13
|
import { t as tt } from "./circle-alert-Bhzm-fNA.js";
|
|
14
|
-
import { i as nt, n as rt, r as it, t as at } from "./blockTypeIcons-
|
|
14
|
+
import { i as nt, n as rt, r as it, t as at } from "./blockTypeIcons-BlPKjD7M.js";
|
|
15
15
|
import { n as ot, t as st } from "./refresh-cw-as5Bmg4X.js";
|
|
16
16
|
import { t as ct } from "./image-up-CDEgJqwA.js";
|
|
17
17
|
import { t as lt } from "./info-BNP8yGsK.js";
|
|
@@ -22,16 +22,16 @@ import { n as pt, r as mt, t as ht } from "./text-align-start-BwsA6QzC.js";
|
|
|
22
22
|
import { t as gt } from "./trash-2-CRBDolnR.js";
|
|
23
23
|
import { t as _t } from "./x-Ctg_250T.js";
|
|
24
24
|
import { t as vt } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
25
|
-
import { t as yt } from "./useCloudI18n-
|
|
26
|
-
import { t as bt } from "./useMergeTag-
|
|
25
|
+
import { t as yt } from "./useCloudI18n-PCDOC2kz.js";
|
|
26
|
+
import { t as bt } from "./useMergeTag-DfEY0eK5.js";
|
|
27
27
|
import { t as xt } from "./useAliveFlag-C43EhZFY.js";
|
|
28
28
|
import { t as St } from "./readableTextColor-f8Kykfnh.js";
|
|
29
|
-
import { t as Ct } from "./CountdownBlock-
|
|
30
|
-
import { _ as wt, f as G, g as Tt, h as K, i as Et, l as Dt, m as q, n as Ot, p as J, t as Y, u as kt } from "./ColorPicker-
|
|
29
|
+
import { t as Ct } from "./CountdownBlock-Bn5w7C-p.js";
|
|
30
|
+
import { _ as wt, f as G, g as Tt, h as K, i as Et, l as Dt, m as q, n as Ot, p as J, t as Y, u as kt } from "./ColorPicker-BsgpTJqK.js";
|
|
31
31
|
import { n as At, r as jt } from "./MergeTagSuggestion-DCuaSOPQ.js";
|
|
32
32
|
import { t as X } from "./ToggleSwitch-DUNuUPsZ.js";
|
|
33
|
-
import { n as Z, r as Mt, t as Nt } from "./NumberWithSuffix-
|
|
34
|
-
import { t as Pt } from "./TplModal-
|
|
33
|
+
import { n as Z, r as Mt, t as Nt } from "./NumberWithSuffix-D3BKz66W.js";
|
|
34
|
+
import { t as Pt } from "./TplModal-DoOwUKlT.js";
|
|
35
35
|
var Ft = W("circle", [["circle", {
|
|
36
36
|
cx: "12",
|
|
37
37
|
cy: "12",
|
|
@@ -283,7 +283,7 @@ var Xt = ["aria-label"], Zt = {
|
|
|
283
283
|
video: be,
|
|
284
284
|
countdown: Ct,
|
|
285
285
|
custom: De
|
|
286
|
-
}, u = r, f = i, { t: h } = U(), { t: _ } = yt(), x =
|
|
286
|
+
}, u = r, f = i, { t: h } = U(), { t: _ } = yt(), x = Ne(We, "Canvas"), T = E(He, null), D = E(qe, null), k = E(Ye, {}), A = C(() => (k.plan?.hasFeature("ai_generation") ?? !1) && (k.ai?.isFeatureEnabled("chat") ?? !1)), M = C(() => (k.plan?.hasFeature("ai_generation") ?? !1) && (k.ai?.isFeatureEnabled("designToTemplate") ?? !1)), N = C({
|
|
287
287
|
get: () => u.content.blocks,
|
|
288
288
|
set: (e) => {
|
|
289
289
|
x.setContent({
|
|
@@ -458,7 +458,7 @@ var Xt = ["aria-label"], Zt = {
|
|
|
458
458
|
}), [["__scopeId", "data-v-b440d13f"]]), cn = f({
|
|
459
459
|
name: "CustomBlockStylesheets",
|
|
460
460
|
setup() {
|
|
461
|
-
let e = E(
|
|
461
|
+
let e = E(Je, null);
|
|
462
462
|
return () => e ? e.value.map((e, t) => D("style", {
|
|
463
463
|
key: t,
|
|
464
464
|
"data-tpl-custom-block-stylesheet": "",
|
|
@@ -507,7 +507,7 @@ var un = ["aria-label"], dn = {
|
|
|
507
507
|
}, vn = /* @__PURE__ */ f({
|
|
508
508
|
__name: "Sidebar",
|
|
509
509
|
setup(n) {
|
|
510
|
-
let { t: r, format: a } = U(), { t: u } = yt(), f = E(
|
|
510
|
+
let { t: r, format: a } = U(), { t: u } = yt(), f = E(Ue, []), h = E(Le, void 0), _ = E(Ve, void 0), y = E(We, null), x = E(Ye, {}), T = C(() => (x.savedModules?.moduleCount.value ?? 0) > 0), D = d(!1), O = d(!1);
|
|
511
511
|
function k() {
|
|
512
512
|
O.value || (D.value = !1);
|
|
513
513
|
}
|
|
@@ -551,16 +551,16 @@ var un = ["aria-label"], dn = {
|
|
|
551
551
|
function z(e) {
|
|
552
552
|
if (e.isCustom) {
|
|
553
553
|
let t = e.type.replace("custom:", ""), n = f.find((e) => e.type === t);
|
|
554
|
-
if (n) return
|
|
554
|
+
if (n) return V(n);
|
|
555
555
|
}
|
|
556
|
-
return
|
|
556
|
+
return ne(e.type, _);
|
|
557
557
|
}
|
|
558
558
|
function B(e) {
|
|
559
559
|
if (!y) return;
|
|
560
560
|
let t = z(e);
|
|
561
561
|
y.addBlock(t), y.selectBlock(t.id);
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function ee(e, t) {
|
|
564
564
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), B(t));
|
|
565
565
|
}
|
|
566
566
|
return (n, i) => (s(), m("aside", {
|
|
@@ -614,7 +614,7 @@ var un = ["aria-label"], dn = {
|
|
|
614
614
|
class: "tpl:flex tpl:h-10 tpl:w-full tpl:shrink-0 tpl:cursor-grab tpl:items-center tpl:gap-3 tpl:rounded-[var(--tpl-radius-sm)] tpl:border-none tpl:bg-transparent tpl:px-3 tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary-light)] hover:tpl:text-[var(--tpl-primary)] active:tpl:cursor-grabbing",
|
|
615
615
|
style: t({ justifyContent: D.value ? "flex-start" : "center" }),
|
|
616
616
|
onClick: (t) => B(e),
|
|
617
|
-
onKeydown: (t) =>
|
|
617
|
+
onKeydown: (t) => ee(t, e)
|
|
618
618
|
}, [p("div", gn, [b(at)[e.type] ? (s(), v(o(b(at)[e.type]), {
|
|
619
619
|
key: 0,
|
|
620
620
|
size: 20,
|
|
@@ -687,7 +687,7 @@ var Cn = /* @__PURE__ */ new Set([
|
|
|
687
687
|
"End"
|
|
688
688
|
]);
|
|
689
689
|
function wn(e) {
|
|
690
|
-
let { elementRef: t, modelValue: n, emit: i, mergeTags: o, syntax: s, enabled: c, onInsert: l } = e, d =
|
|
690
|
+
let { elementRef: t, modelValue: n, emit: i, mergeTags: o, syntax: s, enabled: c, onInsert: l } = e, d = te(s), f = L(s), p = c && d !== null && o.length > 0, m = E(ze, null), h = At((u(m) ? m.value : m)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", je()), g = !1;
|
|
691
691
|
r() && a(() => {
|
|
692
692
|
g = !0, h.close();
|
|
693
693
|
});
|
|
@@ -769,10 +769,10 @@ function Tn(e) {
|
|
|
769
769
|
type: "mergeTag",
|
|
770
770
|
value: t,
|
|
771
771
|
label: u(t)
|
|
772
|
-
}) :
|
|
772
|
+
}) : ee(t, p) ? n.push({
|
|
773
773
|
type: "logicMergeTag",
|
|
774
774
|
value: t,
|
|
775
|
-
keyword:
|
|
775
|
+
keyword: I(t, p)
|
|
776
776
|
}) : n.push({
|
|
777
777
|
type: "text",
|
|
778
778
|
value: t
|
|
@@ -1032,7 +1032,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1032
1032
|
props: { settings: {} },
|
|
1033
1033
|
emits: ["update"],
|
|
1034
1034
|
setup(r, { emit: i }) {
|
|
1035
|
-
let a = r, o = i, { t: l } = U(), u =
|
|
1035
|
+
let a = r, o = i, { t: l } = U(), u = Ne(Be, "TemplateSettings"), d = C(() => u.fonts.value), f = C(() => d.value.some((e) => e.value === a.settings.fontFamily) ? a.settings.fontFamily : u.defaultFont.value), h = [
|
|
1036
1036
|
{
|
|
1037
1037
|
value: 480,
|
|
1038
1038
|
label: "480px"
|
|
@@ -1531,7 +1531,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1531
1531
|
},
|
|
1532
1532
|
emits: ["update"],
|
|
1533
1533
|
setup(t, { emit: r }) {
|
|
1534
|
-
let a = t, u = r, { t: f } = U(), h = E(
|
|
1534
|
+
let a = t, u = r, { t: f } = U(), h = E(Ge, []), _ = E(Ke, !1), T = x(/* @__PURE__ */ new Set()), D = d(!1), A = d(""), j = d(""), M = [{
|
|
1535
1535
|
key: "desktop",
|
|
1536
1536
|
icon: Bt,
|
|
1537
1537
|
labelKey: "showOnDesktop"
|
|
@@ -1801,7 +1801,7 @@ var En = ["aria-label", "onKeydown"], Dn = ["data-tooltip"], On = ["data-tooltip
|
|
|
1801
1801
|
},
|
|
1802
1802
|
emits: ["update:modelValue"],
|
|
1803
1803
|
setup(e, { emit: t }) {
|
|
1804
|
-
let r = e, i = t, { t: a } = U(), o = E(
|
|
1804
|
+
let r = e, i = t, { t: a } = U(), o = E(Me, null), u = xt(), f = C(() => !!o);
|
|
1805
1805
|
async function h() {
|
|
1806
1806
|
let e = await o?.({ accept: ["images"] });
|
|
1807
1807
|
u.alive && e && i("update:modelValue", e.url);
|
|
@@ -2152,7 +2152,7 @@ var ga = {
|
|
|
2152
2152
|
props: { block: {} },
|
|
2153
2153
|
emits: ["updateFieldValues", "updateDataSourceFetched"],
|
|
2154
2154
|
setup(t, { emit: n }) {
|
|
2155
|
-
let r = t, i = n, { t: a } = U(), l = E(
|
|
2155
|
+
let r = t, i = n, { t: a } = U(), l = E(Ue, []), u = C(() => l.find((e) => e.type === r.block.customType)), { isFetching: d, fetchError: f, fetch: h, hasDataSource: _, needsFetch: x } = Oe({
|
|
2156
2156
|
definition: u,
|
|
2157
2157
|
block: C(() => r.block),
|
|
2158
2158
|
onUpdate: (e, t) => {
|
|
@@ -2276,7 +2276,7 @@ var ga = {
|
|
|
2276
2276
|
props: { block: {} },
|
|
2277
2277
|
emits: ["update"],
|
|
2278
2278
|
setup(e, { emit: t }) {
|
|
2279
|
-
let r = e, i = t, { t: a } = U(), o = E(
|
|
2279
|
+
let r = e, i = t, { t: a } = U(), o = E(Me, null), u = E(Re, z.liquid), f = xt(), h = C(() => !!o), _ = d(!1), x = d(!1), { start: T } = Ae(() => {
|
|
2280
2280
|
_.value = !1;
|
|
2281
2281
|
}, 1e3, { immediate: !1 }), D = [
|
|
2282
2282
|
300,
|
|
@@ -2321,7 +2321,7 @@ var ga = {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
}
|
|
2323
2323
|
}
|
|
2324
|
-
let { isOver:
|
|
2324
|
+
let { isOver: V } = he({
|
|
2325
2325
|
target: N,
|
|
2326
2326
|
enabled: L,
|
|
2327
2327
|
onFiles: R
|
|
@@ -2332,7 +2332,7 @@ var ga = {
|
|
|
2332
2332
|
ref: N,
|
|
2333
2333
|
class: "tpl:relative"
|
|
2334
2334
|
}, [
|
|
2335
|
-
L.value && (b(
|
|
2335
|
+
L.value && (b(V) || F.value) ? (s(), m("div", Ia, [F.value ? (s(), m(S, { key: 0 }, [g(b(dt), {
|
|
2336
2336
|
class: "tpl-spinner",
|
|
2337
2337
|
size: 18,
|
|
2338
2338
|
"stroke-width": 2
|
|
@@ -2501,7 +2501,7 @@ var ga = {
|
|
|
2501
2501
|
}
|
|
2502
2502
|
function h() {
|
|
2503
2503
|
let e = {
|
|
2504
|
-
id:
|
|
2504
|
+
id: R(),
|
|
2505
2505
|
text: "",
|
|
2506
2506
|
url: "",
|
|
2507
2507
|
openInNewTab: !1,
|
|
@@ -2795,7 +2795,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
2795
2795
|
}
|
|
2796
2796
|
function u() {
|
|
2797
2797
|
let e = {
|
|
2798
|
-
id:
|
|
2798
|
+
id: R(),
|
|
2799
2799
|
platform: "facebook",
|
|
2800
2800
|
url: ""
|
|
2801
2801
|
};
|
|
@@ -2949,9 +2949,9 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
2949
2949
|
}
|
|
2950
2950
|
function d() {
|
|
2951
2951
|
let e = i.block.rows.length > 0 ? i.block.rows[0].cells.length : 3, t = {
|
|
2952
|
-
id:
|
|
2952
|
+
id: R(),
|
|
2953
2953
|
cells: Array.from({ length: e }, () => ({
|
|
2954
|
-
id:
|
|
2954
|
+
id: R(),
|
|
2955
2955
|
content: ""
|
|
2956
2956
|
}))
|
|
2957
2957
|
};
|
|
@@ -2964,7 +2964,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
2964
2964
|
let e = i.block.rows.map((e) => ({
|
|
2965
2965
|
...e,
|
|
2966
2966
|
cells: [...e.cells, {
|
|
2967
|
-
id:
|
|
2967
|
+
id: R(),
|
|
2968
2968
|
content: ""
|
|
2969
2969
|
}]
|
|
2970
2970
|
}));
|
|
@@ -3162,7 +3162,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3162
3162
|
props: { block: {} },
|
|
3163
3163
|
emits: ["update"],
|
|
3164
3164
|
setup(e, { emit: t }) {
|
|
3165
|
-
let r = e, i = t, { t: a } = U(), o = E(
|
|
3165
|
+
let r = e, i = t, { t: a } = U(), o = E(Me, null), l = E(Re, z.liquid), u = xt(), f = C(() => !!o), h = C(() => B(r.block.url, l)), _ = d(!1), { start: x } = Ae(() => {
|
|
3166
3166
|
_.value = !1;
|
|
3167
3167
|
}, 1e3, { immediate: !1 });
|
|
3168
3168
|
function T(e, t) {
|
|
@@ -3269,7 +3269,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3269
3269
|
"duplicate"
|
|
3270
3270
|
],
|
|
3271
3271
|
setup(e, { emit: t }) {
|
|
3272
|
-
let n = h(() => import("./CountdownToolbar-
|
|
3272
|
+
let n = h(() => import("./CountdownToolbar-PJI3ffi1.js")), r = e, i = t, { t: a } = U(), l = Ne(Be, "Toolbar"), u = E(Ue, []), d = C(() => r.block.type), f = C(() => F(r.block)), _ = C(() => {
|
|
3273
3273
|
if (f.value) return u.find((e) => e.type === r.block.customType);
|
|
3274
3274
|
}), y = C(() => f.value ? _.value?.name ?? r.block.customType : ue(d.value, a)), x = l.fonts;
|
|
3275
3275
|
function T(e) {
|
|
@@ -3417,7 +3417,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3417
3417
|
"update-settings"
|
|
3418
3418
|
],
|
|
3419
3419
|
setup(e, { emit: r }) {
|
|
3420
|
-
let a = h(() => import("./IssuesPanel-
|
|
3420
|
+
let a = h(() => import("./IssuesPanel-CTjRgz8w.js")), o = e, l = r, { t: u } = U(), f = d("content"), _ = E(Fe, null), y = C(() => _ !== null), x = C(() => _?.issues.value.length ?? 0);
|
|
3421
3421
|
function S(e) {
|
|
3422
3422
|
return f.value === e ? "tpl:flex-1 tpl:text-[var(--tpl-primary)]" : "tpl:shrink-0 tpl:text-[var(--tpl-text-muted)] hover:tpl:text-[var(--tpl-text)]";
|
|
3423
3423
|
}
|
|
@@ -3729,7 +3729,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3729
3729
|
}, $c = "tpl-merge-tag-picker-list", el = /* @__PURE__ */ f({
|
|
3730
3730
|
__name: "MergeTagPickerModal",
|
|
3731
3731
|
setup(r) {
|
|
3732
|
-
let a =
|
|
3732
|
+
let a = Ne(Pe, "MergeTagPickerModal"), { t: o, format: u } = U(), f = E(Ie, null), h = E(Ze, null), _ = d(""), y = ke(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0), N = C(() => a.tags.value.some((e) => !!e.group)), P = d(/* @__PURE__ */ new Set());
|
|
3733
3733
|
function F(e) {
|
|
3734
3734
|
return P.value.has(e);
|
|
3735
3735
|
}
|
|
@@ -3956,7 +3956,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
3956
3956
|
syntax: {}
|
|
3957
3957
|
},
|
|
3958
3958
|
setup(e) {
|
|
3959
|
-
let t = e, n = C(() =>
|
|
3959
|
+
let t = e, n = C(() => ee(t.value, t.syntax)), r = C(() => I(t.value, t.syntax));
|
|
3960
3960
|
return (e, t) => n.value ? (s(), m("span", {
|
|
3961
3961
|
key: 0,
|
|
3962
3962
|
class: "tpl:inline-flex tpl:flex-shrink-0 tpl:items-center tpl:rounded tpl:px-1.5 tpl:py-0.5 tpl:text-[10px] tpl:leading-none tpl:font-bold tpl:tracking-wide tpl:uppercase",
|
|
@@ -4001,7 +4001,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
4001
4001
|
}, bl = "tpl-logic-picker-list", xl = /* @__PURE__ */ f({
|
|
4002
4002
|
__name: "LogicTagPickerModal",
|
|
4003
4003
|
setup(r) {
|
|
4004
|
-
let a =
|
|
4004
|
+
let a = Ne(Xe, "LogicTagPickerModal"), { t: o } = U(), u = E(Re, z.liquid), f = E(Ie, null), h = E(Ze, null), _ = d(""), y = ke(_, 200), x = d(null), D = C(() => y.value.trim().length > 0), j = d(0);
|
|
4005
4005
|
function N(e) {
|
|
4006
4006
|
let t = y.value.trim().toLowerCase();
|
|
4007
4007
|
return !t || e.filter(Boolean).join(" ").toLowerCase().includes(t);
|
|
@@ -4032,7 +4032,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
4032
4032
|
}
|
|
4033
4033
|
return r.map((e) => [e, n.get(e)]);
|
|
4034
4034
|
}
|
|
4035
|
-
let
|
|
4035
|
+
let B = C(() => {
|
|
4036
4036
|
let e = [], t = [], n = 0, r = (r) => {
|
|
4037
4037
|
r.kind === "tag" ? (e.push({
|
|
4038
4038
|
kind: "tag",
|
|
@@ -4056,10 +4056,10 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
4056
4056
|
rows: e,
|
|
4057
4057
|
items: t
|
|
4058
4058
|
};
|
|
4059
|
-
}),
|
|
4059
|
+
}), V = C(() => B.value.items), ee = C(() => a.tags.value.length === 0 && a.pairs.value.length === 0), te = C(() => !ee.value && V.value.length === 0);
|
|
4060
4060
|
i(() => a.isOpen.value, (e) => {
|
|
4061
4061
|
e && (_.value = "", j.value = 0, T(() => x.value?.focus()));
|
|
4062
|
-
}), i(
|
|
4062
|
+
}), i(V, (e) => {
|
|
4063
4063
|
j.value >= e.length && (j.value = Math.max(0, e.length - 1));
|
|
4064
4064
|
});
|
|
4065
4065
|
let ne = d(null);
|
|
@@ -4070,7 +4070,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
4070
4070
|
a.resolve(null);
|
|
4071
4071
|
}
|
|
4072
4072
|
function ie(e) {
|
|
4073
|
-
|
|
4073
|
+
V.value.length !== 0 && (j.value = Math.max(0, Math.min(V.value.length - 1, j.value + e)), T(() => {
|
|
4074
4074
|
ne.value?.querySelector(`[data-logic-index="${j.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
4075
4075
|
}));
|
|
4076
4076
|
}
|
|
@@ -4079,7 +4079,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
4079
4079
|
else if (e.key === "ArrowUp") e.preventDefault(), ie(-1);
|
|
4080
4080
|
else if (e.key === "Enter") {
|
|
4081
4081
|
e.preventDefault();
|
|
4082
|
-
let t =
|
|
4082
|
+
let t = V.value[j.value];
|
|
4083
4083
|
t && H(t);
|
|
4084
4084
|
}
|
|
4085
4085
|
}
|
|
@@ -4087,7 +4087,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
4087
4087
|
return `${bl}-opt-${e}`;
|
|
4088
4088
|
}
|
|
4089
4089
|
function se() {
|
|
4090
|
-
return
|
|
4090
|
+
return V.value.length === 0 ? void 0 : `${bl}-opt-${j.value}`;
|
|
4091
4091
|
}
|
|
4092
4092
|
return (r, i) => (s(), v(Pt, {
|
|
4093
4093
|
visible: b(a).isOpen.value,
|
|
@@ -4142,7 +4142,7 @@ var uo = { class: "tpl:mb-3.5" }, fo = ["value"], po = ["value"], mo = {
|
|
|
4142
4142
|
role: "listbox",
|
|
4143
4143
|
"aria-label": b(o).logicTag.picker.title,
|
|
4144
4144
|
"data-testid": "logic-picker-list"
|
|
4145
|
-
}, [ee.value ? (s(), m("div", ul, c(b(o).logicTag.picker.empty), 1)) : te.value ? (s(), m("div", dl, c(b(o).logicTag.picker.noResults), 1)) : (s(!0), m(S, { key: 2 }, e(
|
|
4145
|
+
}, [ee.value ? (s(), m("div", ul, c(b(o).logicTag.picker.empty), 1)) : te.value ? (s(), m("div", dl, c(b(o).logicTag.picker.noResults), 1)) : (s(!0), m(S, { key: 2 }, e(B.value.rows, (e, t) => (s(), m(S, { key: t }, [e.kind === "header" ? (s(), m("div", {
|
|
4146
4146
|
key: 0,
|
|
4147
4147
|
class: "tpl:px-3 tpl:pt-2.5 tpl:pb-1 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-dim)]",
|
|
4148
4148
|
"data-testid": "logic-picker-header",
|