easy-email-pro-theme 1.50.7 → 1.50.8

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.
Files changed (2) hide show
  1. package/lib/index.js +65 -44
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -16017,6 +16017,13 @@ const Image$5 = () => {
16017
16017
  const [from] = Form.useForm();
16018
16018
  const onSubmit = (values) => {
16019
16019
  var _a;
16020
+ let style = `max-width:100%;display:inline-block;`;
16021
+ if (values.width) {
16022
+ style += `width:${values.width};`;
16023
+ }
16024
+ if (values.height) {
16025
+ style += `height:${values.height};`;
16026
+ }
16020
16027
  const imageNode = BlockManager.getBlockByType(ElementType.HTML_NODE).create(
16021
16028
  {
16022
16029
  type: ElementType.HTML_NODE,
@@ -16027,9 +16034,9 @@ const Image$5 = () => {
16027
16034
  attributes: {
16028
16035
  src: values.src,
16029
16036
  alt: values.alt,
16030
- width: values.width,
16031
- height: values.height,
16032
- style: `max-width:100%;display:inline-block;`
16037
+ width: values.width ? values.width.replace("px", "") : "",
16038
+ height: values.height ? values.height.replace("px", "") : "",
16039
+ style
16033
16040
  }
16034
16041
  }
16035
16042
  );
@@ -31709,6 +31716,7 @@ const HTMLEditor = ({
31709
31716
  children,
31710
31717
  wrapper
31711
31718
  }) => {
31719
+ useState(null);
31712
31720
  const [value, setValue] = useState(initialValue);
31713
31721
  const [visible, setVisible] = useState(false);
31714
31722
  const onSave = () => {
@@ -31735,65 +31743,78 @@ const HTMLEditor = ({
31735
31743
  width: "100vw",
31736
31744
  visible,
31737
31745
  footer: null,
31746
+ zIndex: 1e4,
31747
+ style: { width: "100vw", height: "100vh" },
31738
31748
  bodyStyle: { padding: 0, overflow: "hidden" }
31739
31749
  },
31740
- /* @__PURE__ */ React__default.createElement("div", { style: { display: "flex", height: "100%" } }, /* @__PURE__ */ React__default.createElement("div", { style: { flex: 1, height: "100%" } }, /* @__PURE__ */ React__default.createElement(
31741
- Suspense,
31742
- {
31743
- fallback: /* @__PURE__ */ React__default.createElement(
31744
- "div",
31745
- {
31746
- style: {
31747
- height: "100%",
31748
- width: "100%",
31749
- display: "flex",
31750
- alignItems: "center",
31751
- backgroundColor: "#263238",
31752
- justifyContent: "center",
31753
- fontSize: 24,
31754
- color: "#fff"
31755
- }
31756
- },
31757
- t("Editor Loading...")
31758
- )
31759
- },
31760
- /* @__PURE__ */ React__default.createElement(
31761
- HTMLEditorEditorContent,
31762
- {
31763
- initialValue,
31764
- onChange: setValue
31765
- }
31766
- )
31767
- )), /* @__PURE__ */ React__default.createElement(
31750
+ /* @__PURE__ */ React__default.createElement(
31768
31751
  "div",
31769
31752
  {
31770
31753
  style: {
31771
- flex: 1,
31754
+ display: "flex",
31772
31755
  height: "100%",
31773
- overflow: "auto",
31774
- marginRight: 10,
31775
- textAlign: "center"
31756
+ pointerEvents: "auto"
31776
31757
  }
31777
31758
  },
31759
+ /* @__PURE__ */ React__default.createElement("div", { style: { flex: 1, height: "100%" } }, /* @__PURE__ */ React__default.createElement(
31760
+ Suspense,
31761
+ {
31762
+ fallback: /* @__PURE__ */ React__default.createElement(
31763
+ "div",
31764
+ {
31765
+ style: {
31766
+ height: "100%",
31767
+ width: "100%",
31768
+ display: "flex",
31769
+ alignItems: "center",
31770
+ backgroundColor: "#263238",
31771
+ justifyContent: "center",
31772
+ fontSize: 24,
31773
+ color: "#fff"
31774
+ }
31775
+ },
31776
+ t("Editor Loading...")
31777
+ )
31778
+ },
31779
+ /* @__PURE__ */ React__default.createElement(
31780
+ HTMLEditorEditorContent,
31781
+ {
31782
+ initialValue,
31783
+ onChange: setValue
31784
+ }
31785
+ )
31786
+ )),
31778
31787
  /* @__PURE__ */ React__default.createElement(
31779
- IframeComponent,
31788
+ "div",
31780
31789
  {
31781
31790
  style: {
31782
- width: "600px",
31783
- margin: "auto",
31784
- minHeight: `calc(100vh - 60px)`
31791
+ flex: 1,
31792
+ height: "100%",
31793
+ overflow: "auto",
31794
+ marginRight: 10,
31795
+ textAlign: "center"
31785
31796
  }
31786
31797
  },
31787
31798
  /* @__PURE__ */ React__default.createElement(
31788
- "div",
31799
+ IframeComponent,
31789
31800
  {
31790
- dangerouslySetInnerHTML: {
31791
- __html: wrapper ? wrapper(value) : value
31801
+ style: {
31802
+ width: "600px",
31803
+ margin: "auto",
31804
+ minHeight: `calc(100vh - 60px)`
31792
31805
  }
31793
- }
31806
+ },
31807
+ /* @__PURE__ */ React__default.createElement(
31808
+ "div",
31809
+ {
31810
+ dangerouslySetInnerHTML: {
31811
+ __html: wrapper ? wrapper(value) : value
31812
+ }
31813
+ }
31814
+ )
31794
31815
  )
31795
31816
  )
31796
- ))
31817
+ )
31797
31818
  ), /* @__PURE__ */ React__default.createElement("div", { onClick: () => setVisible(true) }, children));
31798
31819
  };
31799
31820
  const Code = ({ nodePath }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-theme",
3
- "version": "1.50.7",
3
+ "version": "1.50.8",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"