easy-email-extensions 3.2.1-alpha.12 → 3.2.1-alpha.13
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/index2.js +10 -11
- package/lib/index2.js.map +1 -1
- package/package.json +2 -2
package/lib/index2.js
CHANGED
@@ -40383,14 +40383,14 @@ const CollapseWrapper = (props) => {
|
|
40383
40383
|
}, props.children, enabledLogic && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(Iteration, null), /* @__PURE__ */ React__default.createElement(Condition, null))), /* @__PURE__ */ React__default.createElement("div", null), /* @__PURE__ */ React__default.createElement("div", null), /* @__PURE__ */ React__default.createElement("div", null));
|
40384
40384
|
};
|
40385
40385
|
function Section() {
|
40386
|
-
const { focusIdx: focusIdx2 } = useFocusIdx();
|
40387
40386
|
const { focusBlock: focusBlock2, setFocusBlock } = useBlock();
|
40388
40387
|
const noWrap = focusBlock2 == null ? void 0 : focusBlock2.data.value.noWrap;
|
40389
|
-
const
|
40388
|
+
const onChange = useCallback((checked) => {
|
40390
40389
|
var _a;
|
40391
40390
|
if (!focusBlock2)
|
40392
40391
|
return;
|
40393
|
-
|
40392
|
+
focusBlock2.data.value.noWrap = checked;
|
40393
|
+
if (checked) {
|
40394
40394
|
const children = [...focusBlock2.children];
|
40395
40395
|
for (let i2 = 0; i2 < children.length; i2++) {
|
40396
40396
|
const child = children[i2];
|
@@ -40412,9 +40412,6 @@ function Section() {
|
|
40412
40412
|
}
|
40413
40413
|
setFocusBlock(__spreadValues({}, focusBlock2));
|
40414
40414
|
}, [focusBlock2, setFocusBlock]);
|
40415
|
-
useEffect(() => {
|
40416
|
-
changeNoWrap(noWrap);
|
40417
|
-
}, [noWrap]);
|
40418
40415
|
return /* @__PURE__ */ React__default.createElement(AttributesPanelWrapper, {
|
40419
40416
|
style: { padding: 0 }
|
40420
40417
|
}, /* @__PURE__ */ React__default.createElement(CollapseWrapper, {
|
@@ -40426,13 +40423,15 @@ function Section() {
|
|
40426
40423
|
direction: "vertical"
|
40427
40424
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
40428
40425
|
span: 12
|
40429
|
-
}, /* @__PURE__ */ React__default.createElement(
|
40430
|
-
|
40431
|
-
|
40432
|
-
|
40426
|
+
}, /* @__PURE__ */ React__default.createElement("label", {
|
40427
|
+
style: { width: "100%", display: "flex" }
|
40428
|
+
}, /* @__PURE__ */ React__default.createElement("div", {
|
40429
|
+
style: { flex: 1 }
|
40430
|
+
}, "Group")), /* @__PURE__ */ React__default.createElement(Switch$1, {
|
40431
|
+
checked: noWrap,
|
40433
40432
|
checkedText: "True",
|
40434
40433
|
uncheckedText: "False",
|
40435
|
-
|
40434
|
+
onChange
|
40436
40435
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
40437
40436
|
span: 12
|
40438
40437
|
})), /* @__PURE__ */ React__default.createElement(Padding, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|