easy-email-pro-theme 1.7.3 → 1.7.4

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
@@ -16292,6 +16292,7 @@ function ImageUploader(props) {
16292
16292
  const uploadHandlerRef = useRef(
16293
16293
  props.uploadHandler
16294
16294
  );
16295
+ const { enablePreview = true } = props;
16295
16296
  const initialVal = useRef(props.value);
16296
16297
  const unsplashClientId = unsplash == null ? void 0 : unsplash.clientId;
16297
16298
  const [imgDetail, setImgDetail] = useState({
@@ -16513,7 +16514,7 @@ function ImageUploader(props) {
16513
16514
  },
16514
16515
  t("Export free images")
16515
16516
  )
16516
- ) : /* @__PURE__ */ React__default.createElement("span", { className: styles$3.actionItem, onClick: onUpload }, t("Replace")), /* @__PURE__ */ React__default.createElement("span", null, " ∙ "), /* @__PURE__ */ React__default.createElement(
16517
+ ) : /* @__PURE__ */ React__default.createElement("span", { className: styles$3.actionItem, onClick: onUpload }, t("Replace")), enablePreview && /* @__PURE__ */ React__default.createElement("span", null, " ∙ "), enablePreview && /* @__PURE__ */ React__default.createElement(
16517
16518
  "span",
16518
16519
  {
16519
16520
  className: styles$3.actionItem,
@@ -17,5 +17,6 @@ export interface ImageUploaderProps {
17
17
  hideInput?: boolean;
18
18
  theme?: MenuProps["theme"];
19
19
  size?: "small";
20
+ enablePreview?: boolean;
20
21
  }
21
22
  export declare const ImageUploaderField: (props: import("../enhancer").EnhancerProps & Omit<ImageUploaderProps, "onChange" | "value">) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-theme",
3
- "version": "1.7.3",
3
+ "version": "1.7.4",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"