easy-email-pro-theme 1.51.1 → 1.51.2

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
@@ -15771,7 +15771,7 @@ const paragraphIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAACKCAY
15771
15771
  const heading1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIoAAACKCAYAAAB1h9JkAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMASURBVHgB7dwtU9xQAEDR/kM8Ho/H4/F4PB6PwOFBYxn8dl5nakp2ext2m81yzswzfLwym7vJ2zTJjw0EPzYQCIVEKCRCIREKiVBIhEIiFBKhkAiFRCgkQiERColQSIRCIhQSoZAIhUQoJEIhEQqJUEiEQiIUEqGQCIVEKCRCIREKiVBIhEIiFJLFQ3l5edk8PDzMGh8fH1vnfX5+nj0vny0eyt3d3ebs7GzWeHt72zrvzc3N7Hn5bPFQxjt/bNSLi4u0EcfPjZ8fge3aozw+Ps6el8+Oao0yDkPbNuz5+fmvqOYYv7dt3vH1ufN+J0e3mB2Hk6kNOt7tXzFimJr39vZ2w98d5aeeqXf/Pg4JY6/057wWr823CmVqXqE0QhFKIpQ9hjLWV+Pv/NsnsjUSyp5C+fMT265zPGsklC+GMgKZOrlnj/IfHGMoY8P/PsV/f3//62P15eXltzm7K5QYyrbzO0JZ0LGGcnV1NTmEspC1LWaFspC1hzL+nVOzmlDGLv73OYq541Cn8IWykHppwD6GUJrVhDK+tm0xWYc9ynzWKEJJhCKURChCSYQilEQoQkmEIpREKEJJhCKURChCSYQilEQoQkmEIpTEnYIuXEpWc+/x+N/fNc17aje+H1Uo40W/vr6efOHHGN+bswHGLRW7rpgft1v867zjbx2P1tj19IVxpf6pBLN4KGPXP17sqcPCrjE2/K6brMahau6824zvzb2oavzemp+c4IlLE2ObufPt6zC3JA/7IxEKiV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duPPooCktaHSXdOY2PUMkF4F1onW9JE2JsX7ihWSdF2i9+qRF609T46gDJR7iI5DaxFNNa0+pougFFJgtPaIz/JPpyGNNhpl4jPcWn+OG0FZoG7ldtUQFFjY9cBCUGAhKLAQFFhG60d5fX0NWI6Dg4OwaIwosBAUWKijwMKIAgtBgYWgwEJQYCEosBAUWAgKLAQFFq71VGxrayvs7OyEGjCiwEJQYOFaDyyMKLAQFFgICiwEBRaCAgtBgYWgwEJQYOFaz5z29vbC5uZmWHWMKLAQFFi41gMLIwosBAUWggILQYGFoMBCUGAhKLAQFFgICiwEBRaCAgtBgYWgwEJQYCEosBAUWAgKLAQFFoICC0GBhaDAQlBgISiwEBRYCAosBAWWf5H+W8ILZAmzAAAAAElFTkSuQmCC";
15774
- const options$8 = [
15774
+ const options$9 = [
15775
15775
  {
15776
15776
  icon: paragraphIcon,
15777
15777
  get content() {
@@ -15844,7 +15844,7 @@ const TurnInto = () => {
15844
15844
  style: { minWidth: 95 },
15845
15845
  onChange,
15846
15846
  renderFormat: (option) => {
15847
- const matchItem = options$8.find((o) => o.value === (option == null ? void 0 : option.value));
15847
+ const matchItem = options$9.find((o) => o.value === (option == null ? void 0 : option.value));
15848
15848
  return /* @__PURE__ */ React__default.createElement("span", { className: "TurnInto-content" }, matchItem ? matchItem.content : "");
15849
15849
  },
15850
15850
  triggerProps: {
@@ -15852,7 +15852,7 @@ const TurnInto = () => {
15852
15852
  autoAlignPopupMinWidth: true
15853
15853
  }
15854
15854
  },
15855
- options$8.map((option, index2) => {
15855
+ options$9.map((option, index2) => {
15856
15856
  return /* @__PURE__ */ React__default.createElement(Select$1.Option, { key: index2, value: option.value }, /* @__PURE__ */ React__default.createElement("div", { className: "TurnInto-item" }, /* @__PURE__ */ React__default.createElement("img", { src: option.icon, alt: "", className: "TurnInto-icon" }), /* @__PURE__ */ React__default.createElement("span", { className: "TurnInto-content" }, option.content)));
15857
15857
  })
15858
15858
  ), /* @__PURE__ */ React__default.createElement("style", null, `.easy-email-pro-turnInto .arco-select-view { border-width: 0px !important; }`));
@@ -16028,7 +16028,7 @@ const TextAlign$1 = () => {
16028
16028
  }
16029
16029
  ));
16030
16030
  };
16031
- const options$7 = ["12px", "14px", "16px", "18px", "24px", "32px", "48px"];
16031
+ const options$8 = ["12px", "14px", "16px", "18px", "24px", "32px", "48px"];
16032
16032
  const FontSize$2 = () => {
16033
16033
  const [selectRef, setSelectRef] = useState(null);
16034
16034
  const { fontSizeList } = useEditorProps();
@@ -16054,7 +16054,7 @@ const FontSize$2 = () => {
16054
16054
  setFontSizeValue(fontSizeValue2);
16055
16055
  }, [editor, textNode, textNode == null ? void 0 : textNode.fontSize]);
16056
16056
  const optionsList = useMemo(() => {
16057
- const list = [...fontSizeList || options$7];
16057
+ const list = [...fontSizeList || options$8];
16058
16058
  if (fontSizeValue) {
16059
16059
  list.push(fontSizeValue);
16060
16060
  }
@@ -27010,7 +27010,7 @@ function EditPanelList(props) {
27010
27010
  const [activeId, setActiveId] = useState(null);
27011
27011
  const [activeItem, setActiveItem] = useState(null);
27012
27012
  const getItemId = useCallback((item2) => {
27013
- let id = idMap.get(item2);
27013
+ let id = get(item2, "id") || idMap.get(item2);
27014
27014
  if (!id) {
27015
27015
  id = +(/* @__PURE__ */ new Date()).getTime().toString() + "-" + uniqueId();
27016
27016
  idMap.set(item2, id);
@@ -27579,7 +27579,11 @@ function ImageUploader(props) {
27579
27579
  position: "relative",
27580
27580
  minHeight: 100,
27581
27581
  height: props.size === "small" ? 100 : void 0,
27582
- boxSizing: "border-box"
27582
+ boxSizing: "border-box",
27583
+ backgroundColor: "#fafafa",
27584
+ backgroundImage: image2 ? "linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0), linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0)" : void 0,
27585
+ backgroundSize: "20px 20px",
27586
+ backgroundPosition: "0 0, 10px 10px"
27583
27587
  }
27584
27588
  },
27585
27589
  content
@@ -28889,7 +28893,7 @@ function TextAndHeadingStyle(props) {
28889
28893
  [props.name, props.path]
28890
28894
  );
28891
28895
  }
28892
- const options$6 = [
28896
+ const options$7 = [
28893
28897
  {
28894
28898
  value: "normal",
28895
28899
  get label() {
@@ -28945,7 +28949,7 @@ function FontWeight(props) {
28945
28949
  SelectField,
28946
28950
  __spreadProps(__spreadValues({
28947
28951
  label: t("Font weight"),
28948
- options: options$6
28952
+ options: options$7
28949
28953
  }, props), {
28950
28954
  formItem: __spreadValues(__spreadValues({}, fontWeightAdapter), props.formItem)
28951
28955
  })
@@ -29223,7 +29227,7 @@ function LineHeight(props) {
29223
29227
  )));
29224
29228
  }, [label, onChangeUnit, props, unit]);
29225
29229
  }
29226
- const options$5 = [
29230
+ const options$6 = [
29227
29231
  {
29228
29232
  value: "left",
29229
29233
  label: /* @__PURE__ */ React__default.createElement(IconFont, { iconName: "icon-align-left" })
@@ -29243,7 +29247,7 @@ function TextAlign(props) {
29243
29247
  return /* @__PURE__ */ React__default.createElement(
29244
29248
  AttributeField.ButtonGroupField,
29245
29249
  __spreadProps(__spreadValues({}, props), {
29246
- options: options$5,
29250
+ options: options$6,
29247
29251
  label
29248
29252
  })
29249
29253
  );
@@ -30207,7 +30211,7 @@ const ConditionModal = ({
30207
30211
  /* @__PURE__ */ React__default.createElement(Form.Item, { field: "condition.enabled", noStyle: true }, /* @__PURE__ */ React__default.createElement(Input, { hidden: true }))
30208
30212
  );
30209
30213
  };
30210
- const options$4 = [
30214
+ const options$5 = [
30211
30215
  {
30212
30216
  tootip: "Truthy",
30213
30217
  label: "Truthy",
@@ -30333,7 +30337,7 @@ function ConditionItem({
30333
30337
  layout: "vertical",
30334
30338
  style: {}
30335
30339
  },
30336
- /* @__PURE__ */ React__default.createElement(Select$1, { options: options$4 }, options$4.map((item2) => {
30340
+ /* @__PURE__ */ React__default.createElement(Select$1, { options: options$5 }, options$5.map((item2) => {
30337
30341
  return /* @__PURE__ */ React__default.createElement(Select$1.Option, { key: item2.value, value: item2.value }, /* @__PURE__ */ React__default.createElement("div", null, item2.label));
30338
30342
  }))
30339
30343
  )), !hideRight && /* @__PURE__ */ React__default.createElement(Grid.Col, { span: 8, style: { paddingLeft: 5 } }, /* @__PURE__ */ React__default.createElement(
@@ -30694,7 +30698,7 @@ function Heading(props) {
30694
30698
  return /* @__PURE__ */ React__default.createElement(Form.Item, __spreadValues({ label }, props.formItem), /* @__PURE__ */ React__default.createElement(Select$1, { options: options2, value: node.type, onChange }));
30695
30699
  }, [label, node.type, onChange, options2, props.formItem]);
30696
30700
  }
30697
- const options$3 = [
30701
+ const options$4 = [
30698
30702
  {
30699
30703
  value: "top",
30700
30704
  get label() {
@@ -30720,7 +30724,7 @@ function VerticalAlign(props) {
30720
30724
  return /* @__PURE__ */ React__default.createElement(
30721
30725
  AttributeField.ButtonGroupField,
30722
30726
  __spreadProps(__spreadValues({
30723
- options: options$3
30727
+ options: options$4
30724
30728
  }, props), {
30725
30729
  label
30726
30730
  })
@@ -31037,7 +31041,7 @@ function RTLDirection(props) {
31037
31041
  )));
31038
31042
  }, [name, path2, rest]);
31039
31043
  }
31040
- const options$2 = [
31044
+ const options$3 = [
31041
31045
  {
31042
31046
  value: "auto",
31043
31047
  get label() {
@@ -31057,7 +31061,7 @@ function TableLayout(props) {
31057
31061
  return /* @__PURE__ */ React__default.createElement(
31058
31062
  AttributeField.ButtonGroupField,
31059
31063
  __spreadProps(__spreadValues({}, props), {
31060
- options: options$2,
31064
+ options: options$3,
31061
31065
  label
31062
31066
  })
31063
31067
  );
@@ -31208,6 +31212,116 @@ function BackgroundGradient(props) {
31208
31212
  t("Create gradient")
31209
31213
  )));
31210
31214
  }
31215
+ const options$2 = [
31216
+ {
31217
+ value: "left",
31218
+ label: t("Left")
31219
+ },
31220
+ {
31221
+ value: "right",
31222
+ label: t("Right")
31223
+ }
31224
+ ];
31225
+ const verticalAlignOptions = [
31226
+ {
31227
+ value: "middle",
31228
+ get label() {
31229
+ return t("Middle");
31230
+ }
31231
+ },
31232
+ {
31233
+ value: "baseline",
31234
+ get label() {
31235
+ return t("Baseline");
31236
+ }
31237
+ }
31238
+ ];
31239
+ function ButtonIcon(props) {
31240
+ const { label = t("Icon"), path: path2, name } = props;
31241
+ const { getFieldValue, setFieldValue } = useEditorContext();
31242
+ const editor = useSlateStatic();
31243
+ const isEnabledBorder = getFieldValue(path2, `${name}.icon-enabled`);
31244
+ const handleChangeEnabled = useCallback(
31245
+ (value) => {
31246
+ console.log(value);
31247
+ if (isUndefined$1(isEnabledBorder)) {
31248
+ editor.withoutNormalizing(() => {
31249
+ setFieldValue(
31250
+ path2,
31251
+ `${name}.icon-src`,
31252
+ "https://cdn.shopify.com/s/files/1/0863/8971/9346/files/xmxnt4qg5xuogsoasxrfy_image.png"
31253
+ );
31254
+ setFieldValue(path2, `${name}.icon-position`, "right");
31255
+ setFieldValue(path2, `${name}.icon-vertical-align`, "middle");
31256
+ setFieldValue(path2, `${name}.icon-width`, "12px");
31257
+ setFieldValue(path2, `${name}.icon-height`, "12px");
31258
+ });
31259
+ }
31260
+ },
31261
+ [setFieldValue, path2, name, isEnabledBorder, editor]
31262
+ );
31263
+ return useMemo(() => {
31264
+ return /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(
31265
+ AttributeField.SwitchField,
31266
+ {
31267
+ label,
31268
+ name: `${name}.icon-enabled`,
31269
+ path: path2,
31270
+ onChange: handleChangeEnabled
31271
+ }
31272
+ ), /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, isEnabledBorder && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
31273
+ AttributeField.ImageUrl,
31274
+ {
31275
+ path: path2,
31276
+ name: props.name + ".icon-src",
31277
+ formItem: { layout: "vertical" }
31278
+ }
31279
+ ), /* @__PURE__ */ React__default.createElement(
31280
+ AttributeField.Width,
31281
+ {
31282
+ label: t("Width"),
31283
+ path: path2,
31284
+ suffix: t("px"),
31285
+ name: `${name}.icon-width`,
31286
+ min: 1,
31287
+ required: true,
31288
+ fallbackValue: "12px"
31289
+ }
31290
+ ), /* @__PURE__ */ React__default.createElement(
31291
+ AttributeField.Height,
31292
+ {
31293
+ label: t("Height"),
31294
+ path: path2,
31295
+ suffix: t("px"),
31296
+ name: `${name}.icon-height`,
31297
+ min: 1,
31298
+ required: true,
31299
+ fallbackValue: "12px"
31300
+ }
31301
+ ), /* @__PURE__ */ React__default.createElement(
31302
+ AttributeField.ButtonGroupField,
31303
+ {
31304
+ path: path2,
31305
+ name: `${name}.icon-position`,
31306
+ options: options$2,
31307
+ label: t("Position")
31308
+ }
31309
+ ), /* @__PURE__ */ React__default.createElement(
31310
+ AttributeField.ButtonGroupField,
31311
+ {
31312
+ path: path2,
31313
+ name: `${name}.icon-vertical-align`,
31314
+ options: verticalAlignOptions,
31315
+ label: /* @__PURE__ */ React__default.createElement(Space, null, t("Vertical Align"), " "),
31316
+ formItem: {
31317
+ help: t(
31318
+ "This option is not available in classic Outlook and is always baseline."
31319
+ )
31320
+ }
31321
+ }
31322
+ ))));
31323
+ }, [handleChangeEnabled, isEnabledBorder, label, name, path2, props.name]);
31324
+ }
31211
31325
  const defaultAttributeFields = {
31212
31326
  // Basic Form Field
31213
31327
  WatchField,
@@ -31265,7 +31379,8 @@ const defaultAttributeFields = {
31265
31379
  WebFonts,
31266
31380
  RichTextField,
31267
31381
  FieldItem,
31268
- GradientGeneratorField
31382
+ GradientGeneratorField,
31383
+ ButtonIcon
31269
31384
  };
31270
31385
  const AttributeField = __spreadValues({}, defaultAttributeFields);
31271
31386
  const index$5 = "";
@@ -31681,12 +31796,13 @@ function AttributesContainer$d({
31681
31796
  mode
31682
31797
  }) {
31683
31798
  const { selectedNode } = useSelectedNode();
31799
+ const { enabledButtonIcon } = useEditorProps();
31684
31800
  const textPath = useMemo(() => {
31685
31801
  return [...nodePath, 0];
31686
31802
  }, [nodePath]);
31687
31803
  if (!selectedNode)
31688
31804
  return null;
31689
- return /* @__PURE__ */ React__default.createElement(CollapseWrapper$1, { defaultActiveKey: ["0", "1", "2", "3", "4"] }, /* @__PURE__ */ React__default.createElement(Collapse.Item, { name: "3", header: t("Content") }, /* @__PURE__ */ React__default.createElement(
31805
+ return /* @__PURE__ */ React__default.createElement(CollapseWrapper$1, { defaultActiveKey: ["0", "1", "2", "3", "4", "5"] }, /* @__PURE__ */ React__default.createElement(Collapse.Item, { name: "3", header: t("Content") }, /* @__PURE__ */ React__default.createElement(
31690
31806
  AttributeField.ButtonContent,
31691
31807
  {
31692
31808
  path: textPath,
@@ -31753,6 +31869,13 @@ function AttributesContainer$d({
31753
31869
  path: nodePath,
31754
31870
  name: "border-radius"
31755
31871
  }
31872
+ )), enabledButtonIcon && /* @__PURE__ */ React__default.createElement(Collapse.Item, { name: "5", header: t("Icon") }, /* @__PURE__ */ React__default.createElement(
31873
+ ResponsiveField,
31874
+ {
31875
+ component: AttributeField.ButtonIcon,
31876
+ path: nodePath,
31877
+ name: ""
31878
+ }
31756
31879
  )), /* @__PURE__ */ React__default.createElement(Collapse.Item, { name: "4", header: t("Block") }, /* @__PURE__ */ React__default.createElement(
31757
31880
  ResponsiveField,
31758
31881
  {
@@ -32092,6 +32215,13 @@ function AttributesContainer$9({
32092
32215
  type: selectedNode.type
32093
32216
  }
32094
32217
  )), /* @__PURE__ */ React__default.createElement(Collapse.Item, { name: "2", header: t("Block") }, /* @__PURE__ */ React__default.createElement(
32218
+ ResponsiveField,
32219
+ {
32220
+ component: AttributeField.BackgroundColor,
32221
+ path: nodePath,
32222
+ name: "container-background-color"
32223
+ }
32224
+ ), /* @__PURE__ */ React__default.createElement(
32095
32225
  ResponsiveField,
32096
32226
  {
32097
32227
  component: AttributeField.TextAlign,
@@ -32334,6 +32464,13 @@ function AttributesContainer$8({
32334
32464
  type: selectedNode.type
32335
32465
  }
32336
32466
  )), /* @__PURE__ */ React__default.createElement(Collapse.Item, { name: "2", header: t("Block") }, /* @__PURE__ */ React__default.createElement(
32467
+ ResponsiveField,
32468
+ {
32469
+ component: AttributeField.BackgroundColor,
32470
+ path: nodePath,
32471
+ name: "container-background-color"
32472
+ }
32473
+ ), /* @__PURE__ */ React__default.createElement(
32337
32474
  ResponsiveField,
32338
32475
  {
32339
32476
  component: AttributeField.ButtonGroupField,
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { Path } from "slate";
3
+ export declare function ButtonIcon(props: {
4
+ label?: React.ReactNode;
5
+ path: Path;
6
+ name: string;
7
+ }): React.JSX.Element;
@@ -37,6 +37,7 @@ import { ButtonContent } from "./ButtonContent";
37
37
  import { RTLDirection } from "./RTLDirection";
38
38
  import { TableLayout } from "./TableLayout";
39
39
  import { BackgroundGradient } from "./BackgroundGradient";
40
+ import { ButtonIcon } from "./ButtonIcon";
40
41
  export declare const defaultAttributeFields: {
41
42
  WatchField: (props: import("../../../Form/WatchField").WatchFieldProps) => import("react").JSX.Element;
42
43
  SyncChildrenField: (props: import("../../../Form/SyncChildrenField").SyncChildrenFieldProps) => import("react").JSX.Element;
@@ -127,5 +128,6 @@ export declare const defaultAttributeFields: {
127
128
  }, "onChange" | "value">) => import("react").JSX.Element;
128
129
  FieldItem: typeof FieldItem;
129
130
  GradientGeneratorField: (props: import("../../../Form/enhancer").EnhancerProps & Omit<import("../../../Form/GradientGenerator").GradientGeneratorProps, "onChange" | "value">) => import("react").JSX.Element;
131
+ ButtonIcon: typeof ButtonIcon;
130
132
  };
131
133
  export declare const AttributeField: AttributeFieldsMap;
@@ -154,6 +154,7 @@ export interface PluginsCustomEditorTypes {
154
154
  enabledHtmlBlockNodeAlign?: boolean;
155
155
  enabledPreviewEmailSubjectEdit?: boolean;
156
156
  enabledGradientImage?: boolean;
157
+ enabledButtonIcon?: boolean;
157
158
  hideSectionBackgroundImage?: boolean;
158
159
  layerConfig?: {
159
160
  scrollWhenSelect?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-theme",
3
- "version": "1.51.1",
3
+ "version": "1.51.2",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"