easy-email-pro-theme 0.11.0 → 0.12.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/lib/index.js CHANGED
@@ -1690,7 +1690,7 @@ const ElementSelected$1 = ({ element, nodeElement, path: path2 }) => {
1690
1690
  nodeElement
1691
1691
  ));
1692
1692
  };
1693
- const styleText$8 = ".section-category-hover {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: calc(100% + 200px);\n transform: translate(-100px, 0);\n}\n\n[data-is-full-width=true].section-category-hover {\n width: calc(100% - 4px);\n transform: none;\n}\n\n[data-is-section-category=true].element-tools-container {\n width: calc(100% + 200px);\n transform: translate(-100px, 0);\n}\n\n[data-is-section-category=true][data-is-full-width=true].element-tools-container {\n width: calc(100% - 4px);\n transform: none;\n}\n\n.wrapper-category-hover {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: calc(100% + 200px);\n transform: translate(-100px, 0);\n}\n\n[data-is-full-width=true].wrapper-category-hover {\n width: calc(100% - 4px);\n transform: none;\n}\n\n[data-is-wrapper-category=true].element-tools-container {\n width: calc(100% + 200px);\n transform: translate(-100px, 0);\n position: absolute;\n}\n\n[data-is-wrapper-category=true][data-is-full-width=true].element-tools-container {\n width: calc(100% - 4px);\n transform: none;\n}\n\n.wrapper-category-hover {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: calc(100% + 200px);\n transform: translate(-100px, 0);\n}\n\n[data-is-wrapper-category=true].element-tools-container {\n width: calc(100% + 200px);\n transform: translate(-100px, 0);\n position: absolute;\n}";
1693
+ const styleText$8 = "[data-slate-block=page] {\n --sectionElementOffset: 100px ;\n}\n\n@media screen and (max-width: 1600px) {\n [data-slate-block=page] {\n --sectionElementOffset: 50px ;\n }\n}\n.section-category-hover {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n[data-is-full-width=true].section-category-hover {\n width: calc(100% - 4px);\n transform: none;\n}\n\n[data-is-section-category=true].element-tools-container {\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n[data-is-section-category=true][data-is-full-width=true].element-tools-container {\n width: calc(100% - 4px);\n transform: none;\n}\n\n.wrapper-category-hover {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n[data-is-full-width=true].wrapper-category-hover {\n width: calc(100% - 4px);\n transform: none;\n}\n\n[data-is-wrapper-category=true].element-tools-container {\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n position: absolute;\n}\n\n[data-is-wrapper-category=true][data-is-full-width=true].element-tools-container {\n width: calc(100% - 4px);\n transform: none;\n}\n\n.wrapper-category-hover {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n[data-is-wrapper-category=true].element-tools-container {\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n position: absolute;\n}";
1694
1694
  const ElementPlaceholder$1 = ({ element, nodeElement, isSelected, isHover, path: path2 }) => {
1695
1695
  const { deleteBlock } = useElementInteract();
1696
1696
  const onPointerDown = (ev) => {
@@ -2040,59 +2040,67 @@ const DefaultBlockList = () => {
2040
2040
  ],
2041
2041
  [categories]
2042
2042
  );
2043
- return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Collapse$1, { defaultActiveKey }, categories.map((category2, index2) => {
2044
- var _a2;
2045
- if (category2.displayType === "grid") {
2046
- return /* @__PURE__ */ React__default.createElement(
2047
- Collapse$1.Item,
2048
- {
2049
- key: index2,
2050
- contentStyle: { padding: "20px 20px" },
2051
- name: index2.toString(),
2052
- header: category2.label
2053
- },
2054
- /* @__PURE__ */ React__default.createElement("div", { className: "block-list-grid" }, category2.blocks.map((item2, index22) => {
2055
- return /* @__PURE__ */ React__default.createElement(BlockItem, __spreadValues({ key: index22 }, item2));
2056
- }))
2057
- );
2058
- }
2059
- if (category2.displayType === "column" && !universalElementEditing) {
2060
- return /* @__PURE__ */ React__default.createElement(
2061
- Collapse$1.Item,
2062
- {
2063
- key: index2,
2064
- contentStyle: { padding: "0px 20px" },
2065
- name: index2.toString(),
2066
- header: category2.label
2067
- },
2068
- /* @__PURE__ */ React__default.createElement(Space, { direction: "vertical" }, /* @__PURE__ */ React__default.createElement("div", null)),
2069
- /* @__PURE__ */ React__default.createElement(Collapse$1, { defaultActiveKey: [((_a2 = category2.blocks[0]) == null ? void 0 : _a2.title) || ""] }, category2.blocks.map((item2) => /* @__PURE__ */ React__default.createElement(
2070
- LayoutItem,
2043
+ return /* @__PURE__ */ React__default.createElement(
2044
+ "div",
2045
+ {
2046
+ "data-compact": Boolean(editorProps.compact),
2047
+ className: "BlockSideBar-BlockList",
2048
+ id: "BlockSideBar-BlockList"
2049
+ },
2050
+ /* @__PURE__ */ React__default.createElement(Collapse$1, { defaultActiveKey }, categories.map((category2, index2) => {
2051
+ var _a2;
2052
+ if (category2.displayType === "grid") {
2053
+ return /* @__PURE__ */ React__default.createElement(
2054
+ Collapse$1.Item,
2071
2055
  {
2072
- key: item2.title,
2073
- title: item2.title || "",
2074
- columns: item2.payload
2075
- }
2076
- ))),
2077
- /* @__PURE__ */ React__default.createElement(Space, { direction: "vertical" }, /* @__PURE__ */ React__default.createElement("div", null))
2078
- );
2079
- }
2080
- if (category2.displayType === "custom" && !universalElementEditing) {
2081
- return /* @__PURE__ */ React__default.createElement(
2082
- Collapse$1.Item,
2083
- {
2084
- key: index2,
2085
- contentStyle: { padding: 0 },
2086
- name: index2.toString(),
2087
- header: category2.label
2088
- },
2089
- /* @__PURE__ */ React__default.createElement(Grid.Row, null, category2.blocks.map((item2, index22) => {
2090
- return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: index22 }, item2);
2091
- }))
2092
- );
2093
- }
2094
- return null;
2095
- })));
2056
+ key: index2,
2057
+ contentStyle: { padding: "20px 20px" },
2058
+ name: index2.toString(),
2059
+ header: category2.label
2060
+ },
2061
+ /* @__PURE__ */ React__default.createElement("div", { className: "block-list-grid" }, category2.blocks.map((item2, index22) => {
2062
+ return /* @__PURE__ */ React__default.createElement(BlockItem, __spreadValues({ key: index22 }, item2));
2063
+ }))
2064
+ );
2065
+ }
2066
+ if (category2.displayType === "column" && !universalElementEditing) {
2067
+ return /* @__PURE__ */ React__default.createElement(
2068
+ Collapse$1.Item,
2069
+ {
2070
+ key: index2,
2071
+ contentStyle: { padding: "0px 20px" },
2072
+ name: index2.toString(),
2073
+ header: category2.label
2074
+ },
2075
+ /* @__PURE__ */ React__default.createElement(Space, { direction: "vertical" }, /* @__PURE__ */ React__default.createElement("div", null)),
2076
+ /* @__PURE__ */ React__default.createElement(Collapse$1, { defaultActiveKey: [((_a2 = category2.blocks[0]) == null ? void 0 : _a2.title) || ""] }, category2.blocks.map((item2) => /* @__PURE__ */ React__default.createElement(
2077
+ LayoutItem,
2078
+ {
2079
+ key: item2.title,
2080
+ title: item2.title || "",
2081
+ columns: item2.payload
2082
+ }
2083
+ ))),
2084
+ /* @__PURE__ */ React__default.createElement(Space, { direction: "vertical" }, /* @__PURE__ */ React__default.createElement("div", null))
2085
+ );
2086
+ }
2087
+ if (category2.displayType === "custom" && !universalElementEditing) {
2088
+ return /* @__PURE__ */ React__default.createElement(
2089
+ Collapse$1.Item,
2090
+ {
2091
+ key: index2,
2092
+ contentStyle: { padding: 0 },
2093
+ name: index2.toString(),
2094
+ header: category2.label
2095
+ },
2096
+ /* @__PURE__ */ React__default.createElement(Grid.Row, null, category2.blocks.map((item2, index22) => {
2097
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, { key: index22 }, item2);
2098
+ }))
2099
+ );
2100
+ }
2101
+ return null;
2102
+ }))
2103
+ );
2096
2104
  };
2097
2105
  const UniversalList = () => {
2098
2106
  const { universalElementSetting } = useEditorProps();
@@ -2227,7 +2235,7 @@ const SlateField$2 = (props) => {
2227
2235
  [onChangeHandle]
2228
2236
  );
2229
2237
  useEffect(() => {
2230
- if (fallbackValue !== formItemFieldValue) {
2238
+ if (!isEqual$3(fallbackValue, formItemFieldValue)) {
2231
2239
  form.setFieldValue(fieldName, fallbackValue);
2232
2240
  }
2233
2241
  }, [fallbackValue, fieldName, form, formItemFieldValue]);
@@ -16710,24 +16718,27 @@ const SlateField = (props) => {
16710
16718
  return null;
16711
16719
  };
16712
16720
  const RichTextField$1 = "";
16721
+ const loop = () => {
16722
+ };
16713
16723
  const RichtextBar = (props) => {
16714
16724
  const { clientId } = useEditorProps();
16715
16725
  const editor = useMemo$1(() => createEditor(), []);
16716
- const [initialValue, path2] = useMemo$1(() => {
16726
+ const lastTemplateRef = useRef(null);
16727
+ const calculateData = useMemo$1(() => {
16717
16728
  const pageElement = cloneDeep(omit$2(props.pageElement, "children"));
16718
16729
  const template = {
16719
16730
  subject: "Blank",
16720
16731
  content: pageElement
16721
16732
  };
16722
- let path22 = [];
16733
+ let path2 = [];
16723
16734
  if (NodeUtils.isPageElement(props.value)) {
16724
16735
  template.content = props.value;
16725
- path22 = [0];
16736
+ path2 = [0];
16726
16737
  } else if (NodeUtils.isWrapperElement(props.value) || NodeUtils.isSectionElement(props.value) || NodeUtils.isHeroElement(props.value)) {
16727
16738
  template.content = BlockManager.getBlockByType(ElementType.PAGE).create(__spreadProps(__spreadValues({}, pageElement), {
16728
16739
  children: [props.value]
16729
16740
  }));
16730
- path22 = [0, 0];
16741
+ path2 = [0, 0];
16731
16742
  } else if (NodeUtils.isColumnElement(props.value) || NodeUtils.isGroupElement(props.value)) {
16732
16743
  template.content = BlockManager.getBlockByType(ElementType.PAGE).create(__spreadProps(__spreadValues({}, pageElement), {
16733
16744
  children: [
@@ -16742,7 +16753,7 @@ const RichtextBar = (props) => {
16742
16753
  })
16743
16754
  ]
16744
16755
  }));
16745
- path22 = [0, 0, 0];
16756
+ path2 = [0, 0, 0];
16746
16757
  } else if (NodeUtils.isContentElement(props.value)) {
16747
16758
  template.content = BlockManager.getBlockByType(ElementType.PAGE).create(__spreadProps(__spreadValues({}, pageElement), {
16748
16759
  children: [
@@ -16763,37 +16774,46 @@ const RichtextBar = (props) => {
16763
16774
  })
16764
16775
  ]
16765
16776
  }));
16766
- path22 = [0, 0, 0, 0];
16777
+ path2 = [0, 0, 0, 0];
16767
16778
  }
16768
- return [template, path22];
16779
+ return [template, path2];
16769
16780
  }, [props.pageElement, props.value]);
16770
- const onPageChange = (page, editor2) => {
16771
- const currentElement = Node$1.get(editor2, path2);
16772
- if (!currentElement) {
16773
- console.error("Element not found");
16774
- return;
16781
+ const initialValue = useMemo$1(() => {
16782
+ if (!isEqual$3(lastTemplateRef.current, calculateData[0])) {
16783
+ lastTemplateRef.current = calculateData[0];
16784
+ }
16785
+ return lastTemplateRef.current;
16786
+ }, [calculateData[0]]);
16787
+ const onPageChange = useEventCallback(
16788
+ (page, editor2) => {
16789
+ const currentElement = Node$1.get(editor2, calculateData[1]);
16790
+ if (!currentElement) {
16791
+ console.error("Element not found");
16792
+ return;
16793
+ }
16794
+ props.onChange(currentElement);
16775
16795
  }
16776
- props.onChange(currentElement);
16777
- };
16778
- return /* @__PURE__ */ React__default.createElement(
16779
- EmailEditorProvider,
16780
- {
16781
- height: props.height,
16782
- clientId,
16783
- initialValues: initialValue,
16784
- editor,
16785
- withEnhanceEditor: withTheme$1,
16786
- onSubmit: () => {
16787
- },
16788
- onPageChange,
16789
- newLineWithBr: true
16790
- },
16791
- /* @__PURE__ */ React__default.createElement(SharedComponents.HoveringToolbar, null),
16792
- /* @__PURE__ */ React__default.createElement(EmailEditor, null),
16793
- /* @__PURE__ */ React__default.createElement(SharedComponents.Hotkeys, null),
16794
- /* @__PURE__ */ React__default.createElement(ResetContent, { initialValue }),
16795
- /* @__PURE__ */ React__default.createElement("style", null, styleText$c)
16796
16796
  );
16797
+ return useMemo$1(() => {
16798
+ return /* @__PURE__ */ React__default.createElement(
16799
+ EmailEditorProvider,
16800
+ {
16801
+ height: props.height,
16802
+ clientId,
16803
+ initialValues: initialValue,
16804
+ editor,
16805
+ withEnhanceEditor: withTheme$1,
16806
+ onSubmit: loop,
16807
+ onPageChange,
16808
+ newLineWithBr: true
16809
+ },
16810
+ /* @__PURE__ */ React__default.createElement(SharedComponents.HoveringToolbar, null),
16811
+ /* @__PURE__ */ React__default.createElement(EmailEditor, null),
16812
+ /* @__PURE__ */ React__default.createElement(SharedComponents.Hotkeys, null),
16813
+ /* @__PURE__ */ React__default.createElement(FormProvider, null, /* @__PURE__ */ React__default.createElement(ResetContent, { initialValue })),
16814
+ /* @__PURE__ */ React__default.createElement("style", null, styleText$c)
16815
+ );
16816
+ }, [props.height, clientId, initialValue]);
16797
16817
  };
16798
16818
  const ResetContent = ({ initialValue }) => {
16799
16819
  const { reset } = useEditorContext();
@@ -17152,8 +17172,7 @@ const elements = [
17152
17172
  { value: ElementType.STANDARD_PARAGRAPH, label: "Paragraph" },
17153
17173
  { value: ElementType.STANDARD_H1, label: "H1" },
17154
17174
  { value: ElementType.STANDARD_H2, label: "H2" },
17155
- { value: ElementType.STANDARD_H3, label: "H3" },
17156
- { value: ElementType.STANDARD_H4, label: "H4" }
17175
+ { value: ElementType.STANDARD_H3, label: "H3" }
17157
17176
  ];
17158
17177
  const path$3 = [0];
17159
17178
  function TextAndHeadingList() {
@@ -18759,14 +18778,21 @@ const DirectionOptions = [
18759
18778
  function Direction$1(props) {
18760
18779
  const _a2 = props, { path: path2, name: name2 } = _a2, rest = __objRest(_a2, ["path", "name"]);
18761
18780
  return useMemo$1(() => {
18781
+ var _a3;
18762
18782
  return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
18763
18783
  AttributeField.ButtonGroupField,
18764
- __spreadValues({
18784
+ __spreadProps(__spreadValues({
18765
18785
  label: t("Direction"),
18766
18786
  name: `${name2}.direction`,
18767
18787
  path: path2,
18768
18788
  options: DirectionOptions
18769
- }, rest)
18789
+ }, rest), {
18790
+ formItem: __spreadProps(__spreadValues({}, rest.formItem), {
18791
+ wrapperCol: __spreadProps(__spreadValues({}, (_a3 = rest.formItem) == null ? void 0 : _a3.wrapperCol), {
18792
+ span: 15
18793
+ })
18794
+ })
18795
+ })
18770
18796
  )));
18771
18797
  }, [name2, path2, rest]);
18772
18798
  }
@@ -18824,7 +18850,7 @@ const defaultAttributeFields = {
18824
18850
  const AttributeField = __spreadValues({}, defaultAttributeFields);
18825
18851
  const index$6 = "";
18826
18852
  const AttributesPanelWrapper = (props) => {
18827
- return /* @__PURE__ */ React__default.createElement("div", { className: "AttributesPanelWrapper" }, /* @__PURE__ */ React__default.createElement("div", { style: __spreadValues({ padding: "20px 0px" }, props.style) }, props.children));
18853
+ return /* @__PURE__ */ React__default.createElement("div", { id: "AttributesPanelWrapper", className: "AttributesPanelWrapper" }, /* @__PURE__ */ React__default.createElement("div", { style: __spreadValues({ padding: "20px 0px" }, props.style) }, props.children));
18828
18854
  };
18829
18855
  const CollapseWrapper = (props) => {
18830
18856
  const [activeKeys, setActiveKeys] = useState(
@@ -19139,173 +19165,105 @@ function AttributesContainer$9({
19139
19165
  });
19140
19166
  if (!selectedNode)
19141
19167
  return null;
19142
- return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(CollapseWrapper, { defaultActiveKey: ["0", "1", "2"] }, /* @__PURE__ */ React__default.createElement(
19143
- Collapse$1.Item,
19168
+ return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(CollapseWrapper, { defaultActiveKey: ["0", "1", "2"] }, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "1", header: t("Setting") }, /* @__PURE__ */ React__default.createElement(AttributeField.Columns, { mode, path: nodePath, name: "" }), /* @__PURE__ */ React__default.createElement(
19169
+ ResponsiveField,
19144
19170
  {
19145
- contentStyle: { padding: "28px 13px 8px 13px" },
19146
- name: "1",
19147
- header: t("Setting")
19148
- },
19149
- /* @__PURE__ */ React__default.createElement(AttributeField.Columns, { mode, path: nodePath, name: "" }),
19150
- /* @__PURE__ */ React__default.createElement(
19151
- ResponsiveField,
19152
- {
19153
- name: "",
19154
- component: AttributeField.Direction,
19155
- path: nodePath,
19156
- onChange: onDirectionChange
19157
- }
19158
- ),
19159
- /* @__PURE__ */ React__default.createElement(
19160
- ResponsiveField,
19161
- {
19162
- name: "vertical-align",
19163
- component: AttributeField.VerticalAlign,
19164
- path: nodePath,
19165
- onChange: onVerticalAlignChange
19166
- }
19167
- )
19171
+ name: "",
19172
+ component: AttributeField.Direction,
19173
+ path: nodePath,
19174
+ onChange: onDirectionChange
19175
+ }
19168
19176
  ), /* @__PURE__ */ React__default.createElement(
19169
- Collapse$1.Item,
19177
+ ResponsiveField,
19170
19178
  {
19171
- contentStyle: { padding: "28px 13px 8px 13px" },
19172
- name: "2",
19173
- header: t("Dimension")
19174
- },
19175
- /* @__PURE__ */ React__default.createElement(
19176
- ResponsiveField,
19177
- {
19178
- component: AttributeField.Padding,
19179
- path: nodePath,
19180
- type: selectedNode.type,
19181
- name: ""
19182
- }
19183
- )
19179
+ name: "vertical-align",
19180
+ component: AttributeField.VerticalAlign,
19181
+ path: nodePath,
19182
+ onChange: onVerticalAlignChange
19183
+ }
19184
+ )), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "2", header: t("Dimension") }, /* @__PURE__ */ React__default.createElement(
19185
+ ResponsiveField,
19186
+ {
19187
+ component: AttributeField.Padding,
19188
+ path: nodePath,
19189
+ type: selectedNode.type,
19190
+ name: ""
19191
+ }
19192
+ )), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "0", header: t("Background") }, /* @__PURE__ */ React__default.createElement(
19193
+ ResponsiveField,
19194
+ {
19195
+ component: AttributeField.BackgroundImage,
19196
+ path: nodePath,
19197
+ name: ""
19198
+ }
19199
+ ), /* @__PURE__ */ React__default.createElement(Divider$1, null), /* @__PURE__ */ React__default.createElement(
19200
+ ResponsiveField,
19201
+ {
19202
+ component: AttributeField.Border,
19203
+ path: nodePath,
19204
+ name: ""
19205
+ }
19184
19206
  ), /* @__PURE__ */ React__default.createElement(
19185
- Collapse$1.Item,
19207
+ ResponsiveField,
19186
19208
  {
19187
- contentStyle: { padding: "28px 13px 8px 13px" },
19188
- name: "0",
19189
- header: t("Background")
19190
- },
19191
- /* @__PURE__ */ React__default.createElement(
19192
- ResponsiveField,
19193
- {
19194
- component: AttributeField.BackgroundImage,
19195
- path: nodePath,
19196
- name: ""
19197
- }
19198
- ),
19199
- /* @__PURE__ */ React__default.createElement(Divider$1, null),
19200
- /* @__PURE__ */ React__default.createElement(
19201
- ResponsiveField,
19202
- {
19203
- component: AttributeField.Border,
19204
- path: nodePath,
19205
- name: ""
19206
- }
19207
- ),
19208
- /* @__PURE__ */ React__default.createElement(
19209
- ResponsiveField,
19210
- {
19211
- component: AttributeField.BorderRadius,
19212
- path: nodePath,
19213
- name: "border-radius"
19214
- }
19215
- ),
19216
- /* @__PURE__ */ React__default.createElement(Divider$1, null),
19217
- /* @__PURE__ */ React__default.createElement(
19218
- ResponsiveField,
19219
- {
19220
- name: "background-color",
19221
- component: AttributeField.BackgroundColor,
19222
- path: nodePath
19223
- }
19224
- )
19225
- )));
19209
+ component: AttributeField.BorderRadius,
19210
+ path: nodePath,
19211
+ name: "border-radius"
19212
+ }
19213
+ ), /* @__PURE__ */ React__default.createElement(Divider$1, null), /* @__PURE__ */ React__default.createElement(
19214
+ ResponsiveField,
19215
+ {
19216
+ name: "background-color",
19217
+ component: AttributeField.BackgroundColor,
19218
+ path: nodePath
19219
+ }
19220
+ ))));
19226
19221
  }
19227
19222
  const Page = ({ nodePath }) => {
19228
- return /* @__PURE__ */ React__default.createElement(CollapseWrapper, { defaultActiveKey: ["0", "1", "2", "TEXT"] }, /* @__PURE__ */ React__default.createElement(
19229
- Collapse$1.Item,
19223
+ return /* @__PURE__ */ React__default.createElement(AttributesPanelWrapper, { style: { padding: 0 } }, /* @__PURE__ */ React__default.createElement(CollapseWrapper, { defaultActiveKey: ["0", "1", "2", "TEXT"] }, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "0", header: t("Email settings") }, /* @__PURE__ */ React__default.createElement(
19224
+ AttributeField.BackgroundColor,
19230
19225
  {
19231
- contentStyle: { padding: "28px 13px 8px 13px" },
19232
- name: "0",
19233
- header: t("Email settings")
19234
- },
19235
- /* @__PURE__ */ React__default.createElement(
19236
- AttributeField.BackgroundColor,
19237
- {
19238
- label: t("Template background"),
19239
- path: nodePath,
19240
- name: "attributes.background-color"
19241
- }
19242
- ),
19243
- /* @__PURE__ */ React__default.createElement(
19244
- AttributeField.BackgroundColor,
19245
- {
19246
- label: t("Content background"),
19247
- path: nodePath,
19248
- name: "attributes.content-background-color"
19249
- }
19250
- ),
19251
- /* @__PURE__ */ React__default.createElement(AttributeField.Width, { path: nodePath, name: "attributes.width" }),
19252
- /* @__PURE__ */ React__default.createElement(
19253
- AttributeField.PixelField,
19254
- {
19255
- label: t("Margin top"),
19256
- suffix: t("px"),
19257
- path: nodePath,
19258
- name: "attributes.margin-top"
19259
- }
19260
- ),
19261
- /* @__PURE__ */ React__default.createElement(
19262
- AttributeField.PixelField,
19263
- {
19264
- label: t("Margin bottom"),
19265
- suffix: t("px"),
19266
- path: nodePath,
19267
- name: "attributes.margin-bottom"
19268
- }
19269
- ),
19270
- /* @__PURE__ */ React__default.createElement(
19271
- AttributeField.TextAreaField,
19272
- {
19273
- label: "Preheader",
19274
- path: nodePath,
19275
- name: "data.preheader"
19276
- }
19277
- )
19226
+ label: t("Template background"),
19227
+ path: nodePath,
19228
+ name: "attributes.background-color"
19229
+ }
19278
19230
  ), /* @__PURE__ */ React__default.createElement(
19279
- Collapse$1.Item,
19231
+ AttributeField.BackgroundColor,
19280
19232
  {
19281
- contentStyle: { padding: "28px 13px 8px 13px" },
19282
- name: "TEXT",
19283
- header: t("TEXT & HEADINGS")
19284
- },
19285
- /* @__PURE__ */ React__default.createElement(AttributeField.TextAndHeadingList, null)
19233
+ label: t("Content background"),
19234
+ path: nodePath,
19235
+ name: "attributes.content-background-color"
19236
+ }
19237
+ ), /* @__PURE__ */ React__default.createElement(AttributeField.Width, { path: nodePath, name: "attributes.width" }), /* @__PURE__ */ React__default.createElement(
19238
+ AttributeField.PixelField,
19239
+ {
19240
+ label: t("Margin top"),
19241
+ suffix: t("px"),
19242
+ path: nodePath,
19243
+ name: "attributes.margin-top"
19244
+ }
19286
19245
  ), /* @__PURE__ */ React__default.createElement(
19287
- Collapse$1.Item,
19246
+ AttributeField.PixelField,
19288
19247
  {
19289
- contentStyle: { padding: "28px 13px 8px 13px" },
19290
- name: "BUTTONS",
19291
- header: t("BUTTONS")
19292
- },
19293
- /* @__PURE__ */ React__default.createElement(AttributeField.ButtonCategory, { type: ElementType.STANDARD_BUTTON })
19248
+ label: t("Margin bottom"),
19249
+ suffix: t("px"),
19250
+ path: nodePath,
19251
+ name: "attributes.margin-bottom"
19252
+ }
19294
19253
  ), /* @__PURE__ */ React__default.createElement(
19295
- Collapse$1.Item,
19254
+ AttributeField.TextAreaField,
19296
19255
  {
19297
- contentStyle: { padding: "28px 13px 8px 13px" },
19298
- name: "LINKS",
19299
- header: t("LINKS")
19300
- },
19301
- /* @__PURE__ */ React__default.createElement(AttributeField.GlobalLink, null)
19302
- ), /* @__PURE__ */ React__default.createElement(AttributeField.WebFonts, null), /* @__PURE__ */ React__default.createElement(
19256
+ label: "Preheader",
19257
+ path: nodePath,
19258
+ name: "data.preheader"
19259
+ }
19260
+ )), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "TEXT", header: t("TEXT & HEADINGS") }, /* @__PURE__ */ React__default.createElement(AttributeField.TextAndHeadingList, null)), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "BUTTONS", header: t("BUTTONS") }, /* @__PURE__ */ React__default.createElement(AttributeField.ButtonCategory, { type: ElementType.STANDARD_BUTTON })), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "LINKS", header: t("LINKS") }, /* @__PURE__ */ React__default.createElement(AttributeField.GlobalLink, null)), /* @__PURE__ */ React__default.createElement(AttributeField.WebFonts, null), /* @__PURE__ */ React__default.createElement(
19303
19261
  Collapse$1.Item,
19304
19262
  {
19305
19263
  style: { display: "none" },
19306
19264
  name: "WEB FONTS"
19307
19265
  }
19308
- ));
19266
+ )));
19309
19267
  };
19310
19268
  const buttonWidthAdapter = {
19311
19269
  formatter(val2) {
@@ -20213,57 +20171,43 @@ function AttributesContainer$2({
20213
20171
  path: nodePath,
20214
20172
  name: "vertical-align"
20215
20173
  }
20216
- ))), /* @__PURE__ */ React__default.createElement(
20217
- Collapse$1.Item,
20174
+ ))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "0", header: t("Background") }, /* @__PURE__ */ React__default.createElement(
20175
+ ResponsiveField,
20218
20176
  {
20219
- contentStyle: { padding: "28px 13px 8px 13px" },
20220
- name: "0",
20221
- header: t("Background")
20222
- },
20223
- /* @__PURE__ */ React__default.createElement(
20224
- ResponsiveField,
20225
- {
20226
- component: AttributeField.BackgroundImage,
20227
- path: nodePath,
20228
- hideBackgroundSize: true,
20229
- name: ""
20230
- }
20231
- ),
20232
- /* @__PURE__ */ React__default.createElement(
20233
- ResponsiveField,
20234
- {
20235
- component: AttributeField.Height,
20236
- path: nodePath,
20237
- name: "background-height"
20238
- }
20239
- ),
20240
- /* @__PURE__ */ React__default.createElement(Divider$1, null),
20241
- /* @__PURE__ */ React__default.createElement(
20242
- ResponsiveField,
20243
- {
20244
- component: AttributeField.Border,
20245
- path: nodePath,
20246
- name: ""
20247
- }
20248
- ),
20249
- /* @__PURE__ */ React__default.createElement(
20250
- ResponsiveField,
20251
- {
20252
- component: AttributeField.BorderRadius,
20253
- path: nodePath,
20254
- name: "border-radius"
20255
- }
20256
- ),
20257
- /* @__PURE__ */ React__default.createElement(Divider$1, null),
20258
- /* @__PURE__ */ React__default.createElement(
20259
- ResponsiveField,
20260
- {
20261
- name: "background-color",
20262
- component: AttributeField.BackgroundColor,
20263
- path: nodePath
20264
- }
20265
- )
20266
- ), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "2", header: t("Block") }, /* @__PURE__ */ React__default.createElement(
20177
+ component: AttributeField.BackgroundImage,
20178
+ path: nodePath,
20179
+ hideBackgroundSize: true,
20180
+ name: ""
20181
+ }
20182
+ ), /* @__PURE__ */ React__default.createElement(
20183
+ ResponsiveField,
20184
+ {
20185
+ component: AttributeField.Height,
20186
+ path: nodePath,
20187
+ name: "background-height"
20188
+ }
20189
+ ), /* @__PURE__ */ React__default.createElement(Divider$1, null), /* @__PURE__ */ React__default.createElement(
20190
+ ResponsiveField,
20191
+ {
20192
+ component: AttributeField.Border,
20193
+ path: nodePath,
20194
+ name: ""
20195
+ }
20196
+ ), /* @__PURE__ */ React__default.createElement(
20197
+ ResponsiveField,
20198
+ {
20199
+ component: AttributeField.BorderRadius,
20200
+ path: nodePath,
20201
+ name: "border-radius"
20202
+ }
20203
+ ), /* @__PURE__ */ React__default.createElement(Divider$1, null), /* @__PURE__ */ React__default.createElement(
20204
+ ResponsiveField,
20205
+ {
20206
+ name: "background-color",
20207
+ component: AttributeField.BackgroundColor,
20208
+ path: nodePath
20209
+ }
20210
+ )), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "2", header: t("Block") }, /* @__PURE__ */ React__default.createElement(
20267
20211
  ResponsiveField,
20268
20212
  {
20269
20213
  label: t("Padding"),
@@ -20317,55 +20261,35 @@ function AttributesContainer$1({
20317
20261
  const { selectedNode } = useSelectedNode();
20318
20262
  if (!selectedNode)
20319
20263
  return null;
20320
- return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(CollapseWrapper, { defaultActiveKey: ["0", "1", "2"] }, /* @__PURE__ */ React__default.createElement(
20321
- Collapse$1.Item,
20264
+ return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(CollapseWrapper, { defaultActiveKey: ["0", "1", "2"] }, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "2", header: t("Dimension") }, /* @__PURE__ */ React__default.createElement(
20265
+ ResponsiveField,
20322
20266
  {
20323
- contentStyle: { padding: "28px 13px 8px 13px" },
20324
- name: "2",
20325
- header: t("Dimension")
20326
- },
20327
- /* @__PURE__ */ React__default.createElement(
20328
- ResponsiveField,
20329
- {
20330
- component: AttributeField.Padding,
20331
- path: nodePath,
20332
- name: ""
20333
- }
20334
- )
20267
+ component: AttributeField.Padding,
20268
+ path: nodePath,
20269
+ name: ""
20270
+ }
20271
+ )), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "0", header: t("Background") }, /* @__PURE__ */ React__default.createElement(
20272
+ ResponsiveField,
20273
+ {
20274
+ name: "background-color",
20275
+ component: AttributeField.BackgroundColor,
20276
+ path: nodePath
20277
+ }
20278
+ ), /* @__PURE__ */ React__default.createElement(Divider$1, null), /* @__PURE__ */ React__default.createElement(
20279
+ ResponsiveField,
20280
+ {
20281
+ component: AttributeField.Border,
20282
+ path: nodePath,
20283
+ name: ""
20284
+ }
20335
20285
  ), /* @__PURE__ */ React__default.createElement(
20336
- Collapse$1.Item,
20286
+ ResponsiveField,
20337
20287
  {
20338
- contentStyle: { padding: "28px 13px 8px 13px" },
20339
- name: "0",
20340
- header: t("Background")
20341
- },
20342
- /* @__PURE__ */ React__default.createElement(
20343
- ResponsiveField,
20344
- {
20345
- name: "background-color",
20346
- component: AttributeField.BackgroundColor,
20347
- path: nodePath
20348
- }
20349
- ),
20350
- /* @__PURE__ */ React__default.createElement(Divider$1, null),
20351
- /* @__PURE__ */ React__default.createElement(
20352
- ResponsiveField,
20353
- {
20354
- component: AttributeField.Border,
20355
- path: nodePath,
20356
- name: ""
20357
- }
20358
- ),
20359
- /* @__PURE__ */ React__default.createElement(
20360
- ResponsiveField,
20361
- {
20362
- component: AttributeField.BorderRadius,
20363
- path: nodePath,
20364
- name: "border-radius"
20365
- }
20366
- ),
20367
- /* @__PURE__ */ React__default.createElement(Divider$1, null)
20368
- )));
20288
+ component: AttributeField.BorderRadius,
20289
+ path: nodePath,
20290
+ name: "border-radius"
20291
+ }
20292
+ ), /* @__PURE__ */ React__default.createElement(Divider$1, null))));
20369
20293
  }
20370
20294
  const Wrapper$1 = ({ nodePath }) => {
20371
20295
  return /* @__PURE__ */ React__default.createElement(AttributesPanelWrapper, null, /* @__PURE__ */ React__default.createElement(
@@ -20422,63 +20346,42 @@ function AttributesContainer({
20422
20346
  });
20423
20347
  if (!selectedNode)
20424
20348
  return null;
20425
- return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(CollapseWrapper, { defaultActiveKey: ["0", "1", "2"] }, /* @__PURE__ */ React__default.createElement(
20426
- Collapse$1.Item,
20349
+ return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(CollapseWrapper, { defaultActiveKey: ["0", "1", "2"] }, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "2", header: t("Dimension") }, /* @__PURE__ */ React__default.createElement(
20350
+ ResponsiveField,
20427
20351
  {
20428
- contentStyle: { padding: "28px 13px 8px 13px" },
20429
- name: "2",
20430
- header: t("Dimension")
20431
- },
20432
- /* @__PURE__ */ React__default.createElement(
20433
- ResponsiveField,
20434
- {
20435
- component: AttributeField.Padding,
20436
- path: nodePath,
20437
- name: ""
20438
- }
20439
- )
20352
+ component: AttributeField.Padding,
20353
+ path: nodePath,
20354
+ name: ""
20355
+ }
20356
+ )), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, { name: "0", header: t("Background") }, /* @__PURE__ */ React__default.createElement(
20357
+ ResponsiveField,
20358
+ {
20359
+ component: AttributeField.BackgroundImage,
20360
+ path: nodePath,
20361
+ name: ""
20362
+ }
20363
+ ), /* @__PURE__ */ React__default.createElement(Divider$1, null), /* @__PURE__ */ React__default.createElement(
20364
+ ResponsiveField,
20365
+ {
20366
+ component: AttributeField.Border,
20367
+ path: nodePath,
20368
+ name: ""
20369
+ }
20440
20370
  ), /* @__PURE__ */ React__default.createElement(
20441
- Collapse$1.Item,
20371
+ ResponsiveField,
20442
20372
  {
20443
- contentStyle: { padding: "28px 13px 8px 13px" },
20444
- name: "0",
20445
- header: t("Background")
20446
- },
20447
- /* @__PURE__ */ React__default.createElement(
20448
- ResponsiveField,
20449
- {
20450
- component: AttributeField.BackgroundImage,
20451
- path: nodePath,
20452
- name: ""
20453
- }
20454
- ),
20455
- /* @__PURE__ */ React__default.createElement(Divider$1, null),
20456
- /* @__PURE__ */ React__default.createElement(
20457
- ResponsiveField,
20458
- {
20459
- component: AttributeField.Border,
20460
- path: nodePath,
20461
- name: ""
20462
- }
20463
- ),
20464
- /* @__PURE__ */ React__default.createElement(
20465
- ResponsiveField,
20466
- {
20467
- component: AttributeField.BorderRadius,
20468
- path: nodePath,
20469
- name: "border-radius"
20470
- }
20471
- ),
20472
- /* @__PURE__ */ React__default.createElement(Divider$1, null),
20473
- /* @__PURE__ */ React__default.createElement(
20474
- ResponsiveField,
20475
- {
20476
- name: "background-color",
20477
- component: AttributeField.BackgroundColor,
20478
- path: nodePath
20479
- }
20480
- )
20481
- )));
20373
+ component: AttributeField.BorderRadius,
20374
+ path: nodePath,
20375
+ name: "border-radius"
20376
+ }
20377
+ ), /* @__PURE__ */ React__default.createElement(Divider$1, null), /* @__PURE__ */ React__default.createElement(
20378
+ ResponsiveField,
20379
+ {
20380
+ name: "background-color",
20381
+ component: AttributeField.BackgroundColor,
20382
+ path: nodePath
20383
+ }
20384
+ ))));
20482
20385
  }
20483
20386
  const ConfigPanelsMap = {
20484
20387
  [ElementType.PAGE]: Page,
@@ -24886,19 +24789,19 @@ const sortableTreeKeyboardCoordinates = (context, indicator2, indentationWidth)
24886
24789
  }
24887
24790
  return void 0;
24888
24791
  };
24889
- const Wrapper = "_Wrapper_ptvld_1";
24890
- const clone = "_clone_ptvld_8";
24891
- const TreeItem$1 = "_TreeItem_ptvld_15";
24892
- const ghost = "_ghost_ptvld_21";
24893
- const indicator = "_indicator_ptvld_21";
24894
- const selected = "_selected_ptvld_62";
24895
- const hoverHandle = "_hoverHandle_ptvld_77";
24896
- const Text = "_Text_ptvld_87";
24897
- const Count = "_Count_ptvld_95";
24898
- const disableInteraction = "_disableInteraction_ptvld_111";
24899
- const disableSelection = "_disableSelection_ptvld_115";
24900
- const Collapse = "_Collapse_ptvld_123";
24901
- const collapsed = "_collapsed_ptvld_126";
24792
+ const Wrapper = "_Wrapper_ng4f3_1";
24793
+ const clone = "_clone_ng4f3_8";
24794
+ const TreeItem$1 = "_TreeItem_ng4f3_15";
24795
+ const ghost = "_ghost_ng4f3_21";
24796
+ const indicator = "_indicator_ng4f3_21";
24797
+ const selected = "_selected_ng4f3_62";
24798
+ const hoverHandle = "_hoverHandle_ng4f3_76";
24799
+ const Text = "_Text_ng4f3_86";
24800
+ const Count = "_Count_ng4f3_94";
24801
+ const disableInteraction = "_disableInteraction_ng4f3_110";
24802
+ const disableSelection = "_disableSelection_ng4f3_114";
24803
+ const Collapse = "_Collapse_ng4f3_122";
24804
+ const collapsed = "_collapsed_ng4f3_125";
24902
24805
  const styles$1 = {
24903
24806
  Wrapper,
24904
24807
  clone,
@@ -25374,19 +25277,19 @@ const BlockLayer = () => {
25374
25277
  const { deleteBlock } = useElementInteract();
25375
25278
  const [items, setItems] = useState([]);
25376
25279
  useEffect(() => {
25377
- const loop = (element, idx) => {
25280
+ const loop2 = (element, idx) => {
25378
25281
  return {
25379
25282
  data: element,
25380
25283
  id: idx,
25381
25284
  children: NodeUtils.isVoidBlockElement(element) ? [] : element.children.filter(
25382
25285
  (item2) => NodeUtils.isBlockElement(item2) && !NodeUtils.isPlaceholderElement(item2)
25383
25286
  ).map(
25384
- (item2, index2) => loop(item2, NodeUtils.getChildIdx(idx, index2))
25287
+ (item2, index2) => loop2(item2, NodeUtils.getChildIdx(idx, index2))
25385
25288
  )
25386
25289
  };
25387
25290
  };
25388
25291
  const list = pageElement.children.map((item2, index2) => {
25389
- return loop(item2, index2.toString());
25292
+ return loop2(item2, index2.toString());
25390
25293
  });
25391
25294
  setItems(list);
25392
25295
  }, [pageElement.children, editor]);
@@ -25491,7 +25394,7 @@ const BlockLayer = () => {
25491
25394
  };
25492
25395
  const BlockSideBar = ({ height }) => {
25493
25396
  const { setSelectedNodePath, selectedNodePath, universalElementEditing } = useEditorState();
25494
- const { showLayer } = useEditorProps();
25397
+ const { showLayer, compact } = useEditorProps();
25495
25398
  const { selectedNode } = useSelectedNode();
25496
25399
  const [activeTab, setActiveTab] = useState("Content");
25497
25400
  const lastActiveTab = useRef(activeTab);
@@ -25523,7 +25426,7 @@ const BlockSideBar = ({ height }) => {
25523
25426
  height: `calc(${height} - 60px)`
25524
25427
  },
25525
25428
  /* @__PURE__ */ React__default.createElement(BlocksPanel, null)
25526
- ), /* @__PURE__ */ React__default.createElement(
25429
+ ), !compact && /* @__PURE__ */ React__default.createElement(
25527
25430
  SharedComponents.ConfigurationDrawer,
25528
25431
  {
25529
25432
  height: `calc(${height} - 60px)`,
@@ -25545,13 +25448,21 @@ const BlockSideBar = ({ height }) => {
25545
25448
  },
25546
25449
  /* @__PURE__ */ React__default.createElement(BlocksPanel, null)
25547
25450
  )),
25548
- /* @__PURE__ */ React__default.createElement(Tabs.TabPane, { destroyOnHide: true, key: "Style", title: /* @__PURE__ */ React__default.createElement("div", null, t("Style")) }, /* @__PURE__ */ React__default.createElement(
25549
- SharedComponents.FullHeightOverlayScrollbars,
25451
+ !compact && /* @__PURE__ */ React__default.createElement(
25452
+ Tabs.TabPane,
25550
25453
  {
25551
- height: `calc(${height} - 60px)`
25454
+ destroyOnHide: true,
25455
+ key: "Style",
25456
+ title: /* @__PURE__ */ React__default.createElement("div", null, t("Style"))
25552
25457
  },
25553
- /* @__PURE__ */ React__default.createElement(AttributePanel, null)
25554
- )),
25458
+ /* @__PURE__ */ React__default.createElement(
25459
+ SharedComponents.FullHeightOverlayScrollbars,
25460
+ {
25461
+ height: `calc(${height} - 60px)`
25462
+ },
25463
+ /* @__PURE__ */ React__default.createElement(AttributePanel, null)
25464
+ )
25465
+ ),
25555
25466
  showLayer && /* @__PURE__ */ React__default.createElement(
25556
25467
  Tabs.TabPane,
25557
25468
  {
@@ -25567,7 +25478,7 @@ const BlockSideBar = ({ height }) => {
25567
25478
  /* @__PURE__ */ React__default.createElement(BlockLayer, null)
25568
25479
  )
25569
25480
  )
25570
- ), /* @__PURE__ */ React__default.createElement(
25481
+ ), !compact && /* @__PURE__ */ React__default.createElement(
25571
25482
  ConfigurationDrawer,
25572
25483
  {
25573
25484
  height: `calc(${height} - 60px)`,
@@ -25754,7 +25665,7 @@ const ConfigurationPanel = ({
25754
25665
  universalElementPath,
25755
25666
  lock
25756
25667
  } = useEditorState();
25757
- const { quantityLimitCheck } = useEditorProps();
25668
+ const { quantityLimitCheck, compact } = useEditorProps();
25758
25669
  const { copyBlock, deleteBlock, isChanged, resetSelectedNode } = useElementInteract();
25759
25670
  const onCopy = useEventCallback((path2) => {
25760
25671
  if (quantityLimitCheck && !quantityLimitCheck({
@@ -25776,6 +25687,7 @@ const ConfigurationPanel = ({
25776
25687
  if (!element || !selectedNodePath)
25777
25688
  return null;
25778
25689
  const isSelectedUniversalElement = universalElementPath && Path.equals(selectedNodePath, universalElementPath);
25690
+ const isHideBackIcon = universalElementEditing && compact;
25779
25691
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
25780
25692
  "div",
25781
25693
  {
@@ -25788,7 +25700,7 @@ const ConfigurationPanel = ({
25788
25700
  textAlign: "center"
25789
25701
  }
25790
25702
  },
25791
- (!isSelectedUniversalElement || NodeUtils.isSectionElement(element)) && /* @__PURE__ */ React__default.createElement(
25703
+ (!isSelectedUniversalElement || NodeUtils.isSectionElement(element)) && !isHideBackIcon && /* @__PURE__ */ React__default.createElement(
25792
25704
  Button$1,
25793
25705
  {
25794
25706
  size: "large",
@@ -28680,10 +28592,10 @@ var OverlayScrollbars = {
28680
28592
  var _loopInterval = _loopIntervalDefault;
28681
28593
  var _loopTimeOld = _getNow();
28682
28594
  var _loopID;
28683
- var loop = function() {
28595
+ var loop2 = function() {
28684
28596
  if (_loopingInstances[_strLength] > 0 && _loopIsActive) {
28685
28597
  _loopID = COMPATIBILITY.rAF()(function() {
28686
- loop();
28598
+ loop2();
28687
28599
  });
28688
28600
  var timeNew = _getNow();
28689
28601
  var timeDelta = timeNew - _loopTimeOld;
@@ -28723,7 +28635,7 @@ var OverlayScrollbars = {
28723
28635
  if (_loopingInstances[_strLength] > 0 && !_loopIsActive) {
28724
28636
  _loopIsActive = true;
28725
28637
  globals.autoUpdateLoop = _loopIsActive;
28726
- loop();
28638
+ loop2();
28727
28639
  }
28728
28640
  }
28729
28641
  };
@@ -38726,10 +38638,69 @@ const UnsplashImages = (props) => {
38726
38638
  ))
38727
38639
  ));
38728
38640
  };
38641
+ const ConfigurationSideBar = ({ height }) => {
38642
+ const { setSelectedNodePath, selectedNodePath, universalElementEditing } = useEditorState();
38643
+ const { compact } = useEditorProps();
38644
+ const [activeTab, setActiveTab] = useState("Style");
38645
+ const lastActiveTab = useRef(activeTab);
38646
+ useEffect(() => {
38647
+ if (compact && !selectedNodePath) {
38648
+ setSelectedNodePath([0]);
38649
+ }
38650
+ }, [compact, setSelectedNodePath, selectedNodePath]);
38651
+ const onChange = useCallback$1(
38652
+ (key2) => {
38653
+ lastActiveTab.current = key2;
38654
+ setActiveTab(key2);
38655
+ },
38656
+ [setSelectedNodePath]
38657
+ );
38658
+ const onClose = useCallback$1(() => {
38659
+ setActiveTab(lastActiveTab.current);
38660
+ }, []);
38661
+ if (universalElementEditing) {
38662
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
38663
+ SharedComponents.FullHeightOverlayScrollbars,
38664
+ {
38665
+ height: `calc(${height} - 60px)`
38666
+ },
38667
+ /* @__PURE__ */ React__default.createElement(BlocksPanel, null)
38668
+ ), /* @__PURE__ */ React__default.createElement(
38669
+ SharedComponents.ConfigurationDrawer,
38670
+ {
38671
+ height: `calc(${height} - 60px)`,
38672
+ onClose
38673
+ }
38674
+ ));
38675
+ }
38676
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
38677
+ Tabs,
38678
+ {
38679
+ activeTab,
38680
+ className: classnames$1("BlockSideBar"),
38681
+ onChange
38682
+ },
38683
+ /* @__PURE__ */ React__default.createElement(Tabs.TabPane, { destroyOnHide: true, key: "Style", title: /* @__PURE__ */ React__default.createElement("div", null, t("Style")) }, /* @__PURE__ */ React__default.createElement(
38684
+ SharedComponents.FullHeightOverlayScrollbars,
38685
+ {
38686
+ height: `calc(${height} - 60px)`
38687
+ },
38688
+ /* @__PURE__ */ React__default.createElement(AttributePanel, null)
38689
+ ))
38690
+ ), /* @__PURE__ */ React__default.createElement(
38691
+ ConfigurationDrawer,
38692
+ {
38693
+ height: `calc(${height} - 60px)`,
38694
+ onClose
38695
+ }
38696
+ ));
38697
+ };
38729
38698
  const SharedComponents = {
38730
38699
  PreviewEmailDrawer,
38731
38700
  PreviewEmail,
38732
38701
  BlockSideBar,
38702
+ ConfigurationSideBar,
38703
+ AttributePanel,
38733
38704
  ColumnLayout,
38734
38705
  ConfigurationDrawer,
38735
38706
  ConfigurationPanel,
@@ -38778,6 +38749,11 @@ const AutoDeselectElement = () => {
38778
38749
  }, [editor, selectedNodePath]);
38779
38750
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null);
38780
38751
  };
38752
+ const getIsLargeScreen = () => {
38753
+ const windowSize = document.body.clientWidth;
38754
+ const isLargeScreen = windowSize >= 1600;
38755
+ return isLargeScreen;
38756
+ };
38781
38757
  const useCreateConfig$1 = (_m) => {
38782
38758
  var _n = _m, {
38783
38759
  interactiveStyle,
@@ -38803,7 +38779,12 @@ const useCreateConfig$1 = (_m) => {
38803
38779
  };
38804
38780
  const Layout$1 = ({ children }) => {
38805
38781
  const { inited } = useEditorContext();
38806
- const { controller = true, showSidebar = true, height } = useEditorProps();
38782
+ const {
38783
+ controller = true,
38784
+ showSidebar = true,
38785
+ height,
38786
+ compact
38787
+ } = useEditorProps();
38807
38788
  const editor = useSlate();
38808
38789
  const getRoot = () => {
38809
38790
  try {
@@ -38813,6 +38794,7 @@ const Layout$1 = ({ children }) => {
38813
38794
  }
38814
38795
  };
38815
38796
  const root2 = getRoot();
38797
+ const sidebarWidth = getIsLargeScreen() || !compact ? 400 : 350;
38816
38798
  const layoutContent = /* @__PURE__ */ React__default.createElement(SharedComponents.UniversalElementEditorDrawer, null, /* @__PURE__ */ React__default.createElement(
38817
38799
  Card,
38818
38800
  {
@@ -38833,16 +38815,25 @@ const Layout$1 = ({ children }) => {
38833
38815
  Layout$2.Sider,
38834
38816
  {
38835
38817
  style: {
38836
- minWidth: 300,
38837
- maxWidth: 400,
38838
- width: 400,
38818
+ width: sidebarWidth,
38839
38819
  position: "relative",
38840
38820
  zIndex: 1
38841
38821
  }
38842
38822
  },
38843
38823
  /* @__PURE__ */ React__default.createElement(SharedComponents.BlockSideBar, { height })
38844
38824
  ),
38845
- /* @__PURE__ */ React__default.createElement("div", { style: { height, minWidth: 800, flex: 1 } }, /* @__PURE__ */ React__default.createElement(SharedComponents.EditorTabs, null, /* @__PURE__ */ React__default.createElement(EmailEditor, null, /* @__PURE__ */ React__default.createElement("style", { id: "Retro-CSS" }, styleText$c, RetroStyleText)), children))
38825
+ /* @__PURE__ */ React__default.createElement("div", { style: { height, minWidth: 800, flex: 1 } }, /* @__PURE__ */ React__default.createElement(SharedComponents.EditorTabs, null, /* @__PURE__ */ React__default.createElement(EmailEditor, null, /* @__PURE__ */ React__default.createElement("style", { id: "Retro-CSS" }, styleText$c, RetroStyleText)), children)),
38826
+ compact && /* @__PURE__ */ React__default.createElement(
38827
+ Layout$2.Sider,
38828
+ {
38829
+ style: {
38830
+ width: sidebarWidth,
38831
+ position: "relative",
38832
+ zIndex: 1
38833
+ }
38834
+ },
38835
+ /* @__PURE__ */ React__default.createElement(SharedComponents.ConfigurationSideBar, { height })
38836
+ )
38846
38837
  )
38847
38838
  ));
38848
38839
  if (!root2 || !inited)
package/lib/style.css CHANGED
@@ -30,10 +30,19 @@
30
30
  display: flex;
31
31
  align-items: center;
32
32
  justify-content: center;
33
- }.block-list-grid {
33
+ }.BlockSideBar-BlockList {
34
+ --block-grid-item-size: 100px;
35
+ }
36
+
37
+ @media screen and (max-width: 1600px) {
38
+ [data-compact=true].BlockSideBar-BlockList {
39
+ --block-grid-item-size: 90px;
40
+ }
41
+ }
42
+ .block-list-grid {
34
43
  display: grid;
35
44
  justify-content: space-between;
36
- grid-template-columns: repeat(auto-fill, 100px);
45
+ grid-template-columns: repeat(auto-fill, var(--block-grid-item-size));
37
46
  grid-gap: 5px;
38
47
  padding: 0px 0px;
39
48
  }
@@ -42,9 +51,9 @@
42
51
  display: grid;
43
52
  cursor: grab;
44
53
  justify-content: space-between;
45
- grid-template-columns: repeat(auto-fill, 100px);
46
- width: 105px;
47
- height: 105px;
54
+ grid-template-columns: repeat(auto-fill, var(--block-grid-item-size));
55
+ width: calc(var(--block-grid-item-size) + 5px);
56
+ height: calc(var(--block-grid-item-size) + 5px);
48
57
  margin-bottom: 20px;
49
58
  box-shadow: rgba(55, 63, 71, 0.04) 0px 0px 0px 1px, rgba(55, 63, 71, 0.08) 0px 4px 4px 0px, rgba(55, 63, 71, 0.08) 0px 8px 24px 0px;
50
59
  border: 2px solid transparent;
@@ -327,41 +336,41 @@
327
336
  border: none !important;
328
337
  }
329
338
  .AttributesPanelWrapper .arco-collapse-item-content-box {
330
- padding: 20px 0px;
331
- }._Wrapper_ptvld_1 {
339
+ padding: 28px 5px 8px 5px;
340
+ }._Wrapper_ng4f3_1 {
332
341
  list-style: none;
333
342
  box-sizing: border-box;
334
343
  padding-left: var(--spacing);
335
344
  margin-bottom: -1px;
336
345
  width: 100%;
337
346
  }
338
- ._Wrapper_ptvld_1._clone_ptvld_8 {
347
+ ._Wrapper_ng4f3_1._clone_ng4f3_8 {
339
348
  display: inline-block;
340
349
  pointer-events: none;
341
350
  padding: 0;
342
351
  padding-left: 10px;
343
352
  padding-top: 5px;
344
353
  }
345
- ._Wrapper_ptvld_1._clone_ptvld_8 ._TreeItem_ptvld_15 {
354
+ ._Wrapper_ng4f3_1._clone_ng4f3_8 ._TreeItem_ng4f3_15 {
346
355
  --vertical-padding: 5px;
347
356
  padding-right: 24px;
348
357
  border-radius: 4px;
349
358
  box-shadow: 0px 15px 15px 0 rgba(34, 33, 81, 0.1);
350
359
  }
351
- ._Wrapper_ptvld_1._ghost_ptvld_21._indicator_ptvld_21 {
360
+ ._Wrapper_ng4f3_1._ghost_ng4f3_21._indicator_ng4f3_21 {
352
361
  opacity: 1;
353
362
  position: relative;
354
363
  z-index: 1;
355
364
  margin-bottom: -1px;
356
365
  }
357
- ._Wrapper_ptvld_1._ghost_ptvld_21._indicator_ptvld_21 ._TreeItem_ptvld_15 {
366
+ ._Wrapper_ng4f3_1._ghost_ng4f3_21._indicator_ng4f3_21 ._TreeItem_ng4f3_15 {
358
367
  position: relative;
359
368
  padding: 0;
360
369
  height: 8px;
361
370
  border-color: #2389ff;
362
371
  background-color: #56a1f8;
363
372
  }
364
- ._Wrapper_ptvld_1._ghost_ptvld_21._indicator_ptvld_21 ._TreeItem_ptvld_15:before {
373
+ ._Wrapper_ng4f3_1._ghost_ng4f3_21._indicator_ng4f3_21 ._TreeItem_ng4f3_15:before {
365
374
  position: absolute;
366
375
  left: -8px;
367
376
  top: -4px;
@@ -373,48 +382,47 @@
373
382
  border: 1px solid #2389ff;
374
383
  background-color: #ffffff;
375
384
  }
376
- ._Wrapper_ptvld_1._ghost_ptvld_21._indicator_ptvld_21 ._TreeItem_ptvld_15 > * {
385
+ ._Wrapper_ng4f3_1._ghost_ng4f3_21._indicator_ng4f3_21 ._TreeItem_ng4f3_15 > * {
377
386
  /* Items are hidden using height and opacity to retain focus */
378
387
  opacity: 0;
379
388
  height: 0;
380
389
  }
381
- ._Wrapper_ptvld_1._ghost_ptvld_21:not(._indicator_ptvld_21) {
390
+ ._Wrapper_ng4f3_1._ghost_ng4f3_21:not(._indicator_ng4f3_21) {
382
391
  opacity: 0.3;
383
392
  }
384
- ._Wrapper_ptvld_1._ghost_ptvld_21:not(._indicator_ptvld_21) ._TreeItem_ptvld_15 {
393
+ ._Wrapper_ng4f3_1._ghost_ng4f3_21:not(._indicator_ng4f3_21) ._TreeItem_ng4f3_15 {
385
394
  background-color: #cdcaca;
386
395
  }
387
- ._Wrapper_ptvld_1._ghost_ptvld_21 ._TreeItem_ptvld_15 > * {
396
+ ._Wrapper_ng4f3_1._ghost_ng4f3_21 ._TreeItem_ng4f3_15 > * {
388
397
  box-shadow: none;
389
398
  background-color: transparent;
390
399
  }
391
400
 
392
- ._Wrapper_ptvld_1._selected_ptvld_62 ._TreeItem_ptvld_15 {
401
+ ._Wrapper_ng4f3_1._selected_ng4f3_62 ._TreeItem_ng4f3_15 {
393
402
  background-color: #f1f1f1;
394
403
  }
395
404
 
396
- ._TreeItem_ptvld_15 {
405
+ ._TreeItem_ng4f3_15 {
397
406
  cursor: pointer;
398
407
  position: relative;
399
408
  display: flex;
400
409
  align-items: center;
401
410
  height: 40px;
402
411
  background-color: #fff;
403
- border: 1px solid #dedede;
404
412
  color: #222;
405
413
  box-sizing: border-box;
406
414
  }
407
- ._TreeItem_ptvld_15 ._hoverHandle_ptvld_77 {
415
+ ._TreeItem_ng4f3_15 ._hoverHandle_ng4f3_76 {
408
416
  opacity: 0;
409
417
  }
410
- ._TreeItem_ptvld_15:hover {
411
- background-color: #fafafa;
418
+ ._TreeItem_ng4f3_15:hover {
419
+ background-color: #f5f5f5;
412
420
  }
413
- ._TreeItem_ptvld_15:hover ._hoverHandle_ptvld_77 {
421
+ ._TreeItem_ng4f3_15:hover ._hoverHandle_ng4f3_76 {
414
422
  opacity: 1;
415
423
  }
416
424
 
417
- ._Text_ptvld_87 {
425
+ ._Text_ng4f3_86 {
418
426
  flex-grow: 1;
419
427
  padding-left: 0.5rem;
420
428
  white-space: nowrap;
@@ -422,7 +430,7 @@
422
430
  overflow: hidden;
423
431
  }
424
432
 
425
- ._Count_ptvld_95 {
433
+ ._Count_ng4f3_94 {
426
434
  position: absolute;
427
435
  top: -10px;
428
436
  right: -10px;
@@ -438,22 +446,22 @@
438
446
  color: #fff;
439
447
  }
440
448
 
441
- ._disableInteraction_ptvld_111 {
449
+ ._disableInteraction_ng4f3_110 {
442
450
  pointer-events: none;
443
451
  }
444
452
 
445
- ._disableSelection_ptvld_115 ._Text_ptvld_87,
446
- ._disableSelection_ptvld_115 ._Count_ptvld_95,
447
- ._clone_ptvld_8 ._Text_ptvld_87,
448
- ._clone_ptvld_8 ._Count_ptvld_95 {
453
+ ._disableSelection_ng4f3_114 ._Text_ng4f3_86,
454
+ ._disableSelection_ng4f3_114 ._Count_ng4f3_94,
455
+ ._clone_ng4f3_8 ._Text_ng4f3_86,
456
+ ._clone_ng4f3_8 ._Count_ng4f3_94 {
449
457
  user-select: none;
450
458
  -webkit-user-select: none;
451
459
  }
452
460
 
453
- ._Collapse_ptvld_123 svg {
461
+ ._Collapse_ng4f3_122 svg {
454
462
  transition: transform 250ms ease;
455
463
  }
456
- ._Collapse_ptvld_123._collapsed_ptvld_126 svg {
464
+ ._Collapse_ng4f3_122._collapsed_ng4f3_125 svg {
457
465
  transform: rotate(-90deg);
458
466
  }._Action_armtj_1 {
459
467
  display: flex;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export interface ConfigurationSideBarProps {
3
+ height: string;
4
+ }
5
+ export declare const ConfigurationSideBar: ({ height }: ConfigurationSideBarProps) => JSX.Element;
@@ -33,6 +33,8 @@ export declare const SharedComponents: {
33
33
  pageDataVariables: Record<string, string | number | boolean | null | undefined> | undefined;
34
34
  }) => JSX.Element;
35
35
  BlockSideBar: ({ height }: import("./BlockSideBar").BlockSideBarProps) => JSX.Element;
36
+ ConfigurationSideBar: ({ height }: import("./ConfigurationSideBar").ConfigurationSideBarProps) => JSX.Element;
37
+ AttributePanel: () => JSX.Element | null;
36
38
  ColumnLayout: ({ onSelectColumn, }: {
37
39
  onSelectColumn: (columns: string[]) => void;
38
40
  }) => JSX.Element;
@@ -81,6 +81,7 @@ export interface PluginsCustomEditorTypes {
81
81
  showSidebar?: boolean;
82
82
  showLogic?: boolean;
83
83
  showLayer?: boolean;
84
+ compact?: boolean;
84
85
  height: string;
85
86
  unsplash?: {
86
87
  clientId: string;
@@ -0,0 +1 @@
1
+ export declare const getIsLargeScreen: () => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-theme",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"