easy-email-extensions 3.1.16 → 3.1.24
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/SimpleLayout/SimpleLayout.d.ts +3 -1
- package/lib/index2.js +10 -4
- package/lib/index2.js.map +1 -1
- package/package.json +4 -3
package/lib/index2.js
CHANGED
@@ -38460,7 +38460,7 @@ function enhancer(Component2, changeAdapter) {
|
|
38460
38460
|
onChange(val);
|
38461
38461
|
}, 100, {
|
38462
38462
|
maxWait: 500
|
38463
|
-
}), []);
|
38463
|
+
}), [onChange]);
|
38464
38464
|
useEffect(() => {
|
38465
38465
|
setCurrentValue(value);
|
38466
38466
|
}, [value]);
|
@@ -44545,7 +44545,7 @@ function SourceCodePanel() {
|
|
44545
44545
|
data: focusBlock,
|
44546
44546
|
context: pageData,
|
44547
44547
|
mode: "production",
|
44548
|
-
dataSource: mergeTags
|
44548
|
+
dataSource: lodash.exports.cloneDeep(mergeTags)
|
44549
44549
|
}));
|
44550
44550
|
}, [focusBlock, focusIdx, pageData, mergeTags]);
|
44551
44551
|
if (!focusBlock)
|
@@ -45164,6 +45164,7 @@ var enUS = {
|
|
45164
45164
|
};
|
45165
45165
|
const SimpleLayout = (props) => {
|
45166
45166
|
const { height: containerHeight } = useEditorProps();
|
45167
|
+
const { showSourceCode = true } = props;
|
45167
45168
|
return /* @__PURE__ */ React__default.createElement(ConfigProvider, {
|
45168
45169
|
locale: enUS
|
45169
45170
|
}, /* @__PURE__ */ React__default.createElement(Layout$1, {
|
@@ -45198,7 +45199,12 @@ const SimpleLayout = (props) => {
|
|
45198
45199
|
}, /* @__PURE__ */ React__default.createElement(BlockLayer, null))))), /* @__PURE__ */ React__default.createElement(Layout$1, {
|
45199
45200
|
style: { height: containerHeight }
|
45200
45201
|
}, props.children), /* @__PURE__ */ React__default.createElement(Layout$1.Sider, {
|
45201
|
-
style: {
|
45202
|
+
style: {
|
45203
|
+
height: containerHeight,
|
45204
|
+
minWidth: 300,
|
45205
|
+
maxWidth: 350,
|
45206
|
+
width: 350
|
45207
|
+
}
|
45202
45208
|
}, /* @__PURE__ */ React__default.createElement(Card$1, {
|
45203
45209
|
size: "small",
|
45204
45210
|
id: "rightSide",
|
@@ -45213,7 +45219,7 @@ const SimpleLayout = (props) => {
|
|
45213
45219
|
style: { marginTop: 0 },
|
45214
45220
|
key: "Configuration",
|
45215
45221
|
title: "Configuration"
|
45216
|
-
}, /* @__PURE__ */ React__default.createElement(AttributePanel, null)), /* @__PURE__ */ React__default.createElement(Tabs$1.TabPane, {
|
45222
|
+
}, /* @__PURE__ */ React__default.createElement(AttributePanel, null)), showSourceCode && /* @__PURE__ */ React__default.createElement(Tabs$1.TabPane, {
|
45217
45223
|
key: "Source code",
|
45218
45224
|
title: "Source code"
|
45219
45225
|
}, /* @__PURE__ */ React__default.createElement(SourceCodePanel, null))))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null)));
|