@solutions2share/s2s-email-builder 0.0.10 → 0.0.12
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/index.cjs.js +3 -3
- package/dist/index.es.js +26 -19
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6972,8 +6972,8 @@ function tF(e) {
|
|
|
6972
6972
|
}
|
|
6973
6973
|
const yi = qM(() => ({
|
|
6974
6974
|
document: tF(window.location.hash),
|
|
6975
|
-
selectedBlockId: null,
|
|
6976
|
-
selectedSidebarTab: "
|
|
6975
|
+
selectedBlockId: Object.keys(document)[0] ?? null,
|
|
6976
|
+
selectedSidebarTab: "variables",
|
|
6977
6977
|
selectedMainTab: "editor",
|
|
6978
6978
|
selectedScreenSize: "desktop",
|
|
6979
6979
|
inspectorDrawerOpen: !0,
|
|
@@ -7004,7 +7004,7 @@ function iF() {
|
|
|
7004
7004
|
return yi((e) => e.samplesDrawerOpen);
|
|
7005
7005
|
}
|
|
7006
7006
|
function uu(e) {
|
|
7007
|
-
const t = e === null ? "
|
|
7007
|
+
const t = e === null ? "variables" : "block-configuration", r = {};
|
|
7008
7008
|
return e !== null && (r.inspectorDrawerOpen = !0), yi.setState({
|
|
7009
7009
|
selectedBlockId: e,
|
|
7010
7010
|
selectedSidebarTab: t,
|
|
@@ -7017,7 +7017,7 @@ function aF(e) {
|
|
|
7017
7017
|
function jb(e) {
|
|
7018
7018
|
return yi.setState({
|
|
7019
7019
|
document: e,
|
|
7020
|
-
selectedSidebarTab: "
|
|
7020
|
+
selectedSidebarTab: "variables",
|
|
7021
7021
|
selectedBlockId: null
|
|
7022
7022
|
});
|
|
7023
7023
|
}
|
|
@@ -18241,10 +18241,15 @@ function X8() {
|
|
|
18241
18241
|
return /* @__PURE__ */ G.jsx(uw, { data: t, setData: (n) => Cu({ root: { type: r, data: n } }) }, "root");
|
|
18242
18242
|
}
|
|
18243
18243
|
const Z8 = ({ variables: e, intl: t }) => {
|
|
18244
|
-
const r = wa(), n = XT()
|
|
18244
|
+
const r = wa(), n = XT();
|
|
18245
|
+
console.log(n, "selectedBlockId");
|
|
18246
|
+
const i = (v) => /* @__PURE__ */ G.jsx(On, { sx: { m: 3, p: 1, border: "1px dashed", borderColor: "divider" }, children: /* @__PURE__ */ G.jsx(Rl, { color: "text.secondary", children: v }) });
|
|
18245
18247
|
if (!n)
|
|
18246
18248
|
return i("Click on a block to inspect.");
|
|
18247
|
-
const a = r[n]
|
|
18249
|
+
const a = r[n];
|
|
18250
|
+
if (!a)
|
|
18251
|
+
return i("Selected block not found.");
|
|
18252
|
+
const o = (v) => Cu({ [n]: v }), { data: c, type: d } = a, [, p] = Qt(null), _ = (v) => {
|
|
18248
18253
|
o({ type: d, data: v });
|
|
18249
18254
|
}, g = (v) => {
|
|
18250
18255
|
if (d === "Heading" || d === "Text") {
|
|
@@ -18282,9 +18287,9 @@ function J8({ variables: e, intl: t, theme: r, uploadFiles: n }) {
|
|
|
18282
18287
|
},
|
|
18283
18288
|
children: [
|
|
18284
18289
|
/* @__PURE__ */ G.jsx(On, { sx: { width: kh, height: 49, borderBottom: 1, borderColor: "divider" }, children: /* @__PURE__ */ G.jsx(On, { px: 2, children: /* @__PURE__ */ G.jsxs(VI, { value: i, onChange: (c, d) => aF(d), children: [
|
|
18290
|
+
/* @__PURE__ */ G.jsx(qd, { value: "variables", label: "Variables" }),
|
|
18285
18291
|
/* @__PURE__ */ G.jsx(qd, { value: "styles", label: "Styles" }),
|
|
18286
|
-
/* @__PURE__ */ G.jsx(qd, { value: "block-configuration", label: "Inspect" })
|
|
18287
|
-
/* @__PURE__ */ G.jsx(qd, { value: "variables", label: "Variables" })
|
|
18292
|
+
/* @__PURE__ */ G.jsx(qd, { value: "block-configuration", label: "Inspect" })
|
|
18288
18293
|
] }) }) }),
|
|
18289
18294
|
/* @__PURE__ */ G.jsx(On, { className: "DrawerInner", sx: { width: kh, height: "calc(100% - 49px)", overflow: "auto" }, children: o() })
|
|
18290
18295
|
]
|
|
@@ -28881,16 +28886,18 @@ function $6({ blockId: e }) {
|
|
|
28881
28886
|
] }) });
|
|
28882
28887
|
}
|
|
28883
28888
|
function Ka({ children: e }) {
|
|
28889
|
+
var S;
|
|
28884
28890
|
const t = XT(), [r, n] = Qt(!1), i = qf(), a = V6();
|
|
28885
28891
|
let o;
|
|
28886
28892
|
t === i ? o = "2px solid rgba(0,121,204, 1)" : r && (o = "2px solid rgba(0,121,204, 0.3)");
|
|
28887
28893
|
let c;
|
|
28888
|
-
|
|
28889
|
-
|
|
28890
|
-
Object.keys(e.props.props).length === 1 && Object.keys(e.props.props)[0] === "text" && (d = "break-word");
|
|
28894
|
+
const d = (S = e.props.style) == null ? void 0 : S.backgroundColor;
|
|
28895
|
+
Object.keys(e.props.props).length === 1 && Object.keys(e.props.props)[0] === "text" ? d === "#ecf0f1" && a === "dark" && (c = "#000") : c = a === "dark" ? "#fff" : "#000";
|
|
28891
28896
|
let p;
|
|
28892
28897
|
Object.keys(e.props.props).length === 1 && Object.keys(e.props.props)[0] === "text" && (p = "break-word");
|
|
28893
|
-
|
|
28898
|
+
let _;
|
|
28899
|
+
Object.keys(e.props.props).length === 1 && Object.keys(e.props.props)[0] === "text" && (_ = "break-word");
|
|
28900
|
+
const g = () => t !== i ? null : /* @__PURE__ */ G.jsx($6, { blockId: i });
|
|
28894
28901
|
return /* @__PURE__ */ G.jsxs(
|
|
28895
28902
|
On,
|
|
28896
28903
|
{
|
|
@@ -28901,20 +28908,20 @@ function Ka({ children: e }) {
|
|
|
28901
28908
|
outline: o,
|
|
28902
28909
|
// backgroundColor,
|
|
28903
28910
|
color: c,
|
|
28904
|
-
wordBreak:
|
|
28905
|
-
overflowWrap:
|
|
28911
|
+
wordBreak: p,
|
|
28912
|
+
overflowWrap: _
|
|
28906
28913
|
},
|
|
28907
|
-
onMouseEnter: (
|
|
28908
|
-
n(!0),
|
|
28914
|
+
onMouseEnter: (v) => {
|
|
28915
|
+
n(!0), v.stopPropagation();
|
|
28909
28916
|
},
|
|
28910
28917
|
onMouseLeave: () => {
|
|
28911
28918
|
n(!1);
|
|
28912
28919
|
},
|
|
28913
|
-
onClick: (
|
|
28914
|
-
uu(i),
|
|
28920
|
+
onClick: (v) => {
|
|
28921
|
+
uu(i), v.stopPropagation(), v.preventDefault();
|
|
28915
28922
|
},
|
|
28916
28923
|
children: [
|
|
28917
|
-
|
|
28924
|
+
g(),
|
|
28918
28925
|
e
|
|
28919
28926
|
]
|
|
28920
28927
|
}
|