easy-email-pro-theme 1.59.8 → 1.59.10

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
@@ -2801,7 +2801,7 @@ function useApplyAiToolCalls() {
2801
2801
  return result;
2802
2802
  });
2803
2803
  }
2804
- const ElementTools$1 = ({ element, nodeElement, path: path2 }) => {
2804
+ const ElementTools$1 = ({ element, nodeElement, path: path2, hideInnerTools: hideInnerToolsProp }) => {
2805
2805
  const editor = useSlate();
2806
2806
  const { copyBlock, deleteBlock } = useElementInteract();
2807
2807
  const {
@@ -2885,7 +2885,7 @@ const ElementTools$1 = ({ element, nodeElement, path: path2 }) => {
2885
2885
  isHideBackIcon = true;
2886
2886
  }
2887
2887
  const hideAddToCollection = universalElementEditing || standaloneElementEditing || !universalElementSetting;
2888
- const hideInnerTools = NodeUtils.isPageHeaderElement(element) || NodeUtils.isPageFooterElement(element);
2888
+ const hideInnerTools = hideInnerToolsProp || NodeUtils.isPageHeaderElement(element) || NodeUtils.isPageFooterElement(element);
2889
2889
  const renderContent = /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
2890
2890
  "div",
2891
2891
  {
@@ -2977,6 +2977,7 @@ const ElementHover$1 = ({
2977
2977
  isSelected,
2978
2978
  path: path2
2979
2979
  }) => {
2980
+ const { hideHoveringActions } = useEditorProps();
2980
2981
  if (isSelected)
2981
2982
  return null;
2982
2983
  if (NodeUtils.isUnsetElement(element))
@@ -2984,7 +2985,15 @@ const ElementHover$1 = ({
2984
2985
  if ((NodeUtils.isPageHeaderElement(element) || NodeUtils.isPageFooterElement(element)) && !element.data.editable) {
2985
2986
  return null;
2986
2987
  }
2987
- const renderContent = /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(ElementTools$1, { element, nodeElement, path: path2 }), /* @__PURE__ */ React__default.createElement("style", null, styleText$f));
2988
+ const renderContent = /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
2989
+ ElementTools$1,
2990
+ {
2991
+ element,
2992
+ nodeElement,
2993
+ path: path2,
2994
+ hideInnerTools: hideHoveringActions
2995
+ }
2996
+ ), /* @__PURE__ */ React__default.createElement("style", null, styleText$f));
2988
2997
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, renderContent);
2989
2998
  };
2990
2999
  const styleText$e = "[data-slate-selected=true] .element-tools-container,\n[data-slate-hover=true] [data-slate-selected=true] .element-tools-container {\n outline: 2px solid var(--selected-color);\n}\n[data-slate-selected=true] .element-tools-container .element-tools,\n[data-slate-hover=true] [data-slate-selected=true] .element-tools-container .element-tools {\n color: #fff;\n background-color: var(--selected-color);\n}\n[data-slate-selected=true] .element-tools-container .element-drag-button,\n[data-slate-hover=true] [data-slate-selected=true] .element-tools-container .element-drag-button {\n background-color: var(--selected-color);\n}\n[data-slate-selected=true] .element-tools-container .element-tools-move-handle,\n[data-slate-hover=true] [data-slate-selected=true] .element-tools-container .element-tools-move-handle {\n background-color: var(--selected-color);\n}\n\n.element-tools-container[data-category=page] .element-tools {\n display: none;\n}\n.element-tools-container[data-category=page] .element-drag-button {\n display: none;\n}\n.element-tools-container[data-category=page] .element-tools-move-handle {\n display: none;\n}";
@@ -32435,6 +32444,12 @@ function BackgroundImage(props) {
32435
32444
  label: t("Position"),
32436
32445
  name: props.name + ".background-position"
32437
32446
  })
32447
+ ), /* @__PURE__ */ React__default.createElement(
32448
+ AttributeField.BackgroundRepeat,
32449
+ __spreadProps(__spreadValues({}, props), {
32450
+ label: t("Repeat"),
32451
+ name: props.name + ".background-repeat"
32452
+ })
32438
32453
  )));
32439
32454
  }, [
32440
32455
  enabledGradientImage,
@@ -34118,6 +34133,46 @@ function ButtonIcon(props) {
34118
34133
  ))));
34119
34134
  }, [handleChangeEnabled, isEnabledBorder, label, name, path2, props.name]);
34120
34135
  }
34136
+ const fullWidthAdapter = {
34137
+ formatter(val) {
34138
+ return Boolean(val);
34139
+ },
34140
+ normalize(val) {
34141
+ return val ? "full-width" : void 0;
34142
+ }
34143
+ };
34144
+ function FullWidth(props) {
34145
+ const { label = t("Full width") } = props;
34146
+ return useMemo(() => {
34147
+ return /* @__PURE__ */ React__default.createElement(
34148
+ AttributeField.SwitchField,
34149
+ __spreadProps(__spreadValues({}, props), {
34150
+ label,
34151
+ formItem: __spreadValues({}, fullWidthAdapter)
34152
+ })
34153
+ );
34154
+ }, [label, props]);
34155
+ }
34156
+ const backgroundRepeatAdapter = {
34157
+ formatter(val) {
34158
+ return Boolean(val === "repeat");
34159
+ },
34160
+ normalize(val) {
34161
+ return val ? "repeat" : "no-repeat";
34162
+ }
34163
+ };
34164
+ function BackgroundRepeat(props) {
34165
+ const { label = t("Background repeat") } = props;
34166
+ return useMemo(() => {
34167
+ return /* @__PURE__ */ React__default.createElement(
34168
+ AttributeField.SwitchField,
34169
+ __spreadProps(__spreadValues({}, props), {
34170
+ label,
34171
+ formItem: __spreadValues({}, backgroundRepeatAdapter)
34172
+ })
34173
+ );
34174
+ }, [label, props]);
34175
+ }
34121
34176
  const defaultAttributeFields = {
34122
34177
  // Basic Form Field
34123
34178
  WatchField,
@@ -34176,7 +34231,9 @@ const defaultAttributeFields = {
34176
34231
  RichTextField,
34177
34232
  FieldItem,
34178
34233
  GradientGeneratorField,
34179
- ButtonIcon
34234
+ ButtonIcon,
34235
+ FullWidth,
34236
+ BackgroundRepeat
34180
34237
  };
34181
34238
  const AttributeField = __spreadValues({}, defaultAttributeFields);
34182
34239
  const index$5 = "";
@@ -35802,6 +35859,13 @@ function AttributesContainer$7({
35802
35859
  path: nodePath,
35803
35860
  name: ""
35804
35861
  }
35862
+ ), /* @__PURE__ */ React__default.createElement(
35863
+ ResponsiveField,
35864
+ {
35865
+ component: AttributeField.FullWidth,
35866
+ path: nodePath,
35867
+ name: "full-width"
35868
+ }
35805
35869
  )), /* @__PURE__ */ React__default.createElement(Collapse.Item, { name: "0", header: t("Background") }, /* @__PURE__ */ React__default.createElement(
35806
35870
  ResponsiveField,
35807
35871
  {
@@ -0,0 +1,5 @@
1
+ import React, { ComponentProps } from "react";
2
+ import { AttributeField } from ".";
3
+ export declare function BackgroundRepeat(props: Omit<ComponentProps<typeof AttributeField.SwitchField>, "label" | "options"> & {
4
+ label?: React.ReactNode;
5
+ }): React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React, { ComponentProps } from "react";
2
+ import { AttributeField } from ".";
3
+ export declare function FullWidth(props: Omit<ComponentProps<typeof AttributeField.SwitchField>, "label" | "options"> & {
4
+ label?: React.ReactNode;
5
+ }): React.JSX.Element;
@@ -38,6 +38,8 @@ import { RTLDirection } from "./RTLDirection";
38
38
  import { TableLayout } from "./TableLayout";
39
39
  import { BackgroundGradient } from "./BackgroundGradient";
40
40
  import { ButtonIcon } from "./ButtonIcon";
41
+ import { FullWidth } from './FullWidth';
42
+ import { BackgroundRepeat } from './BackgroundRepeat';
41
43
  export declare const defaultAttributeFields: {
42
44
  WatchField: (props: import("../../../Form/WatchField").WatchFieldProps) => import("react").JSX.Element;
43
45
  SyncChildrenField: (props: import("../../../Form/SyncChildrenField").SyncChildrenFieldProps) => import("react").JSX.Element;
@@ -130,5 +132,7 @@ export declare const defaultAttributeFields: {
130
132
  FieldItem: typeof FieldItem;
131
133
  GradientGeneratorField: (props: import("../../../Form/enhancer").EnhancerProps & Omit<import("../../../Form/GradientGenerator").GradientGeneratorProps, "onChange" | "value">) => import("react").JSX.Element;
132
134
  ButtonIcon: typeof ButtonIcon;
135
+ FullWidth: typeof FullWidth;
136
+ BackgroundRepeat: typeof BackgroundRepeat;
133
137
  };
134
138
  export declare const AttributeField: AttributeFieldsMap;
@@ -5,4 +5,5 @@ export declare const ElementTools: React.FC<{
5
5
  element: Element;
6
6
  nodeElement: HTMLElement;
7
7
  path: Path;
8
+ hideInnerTools?: boolean;
8
9
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-theme",
3
- "version": "1.59.8",
3
+ "version": "1.59.10",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"