easy-email-pro-theme 1.59.9 → 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}";
@@ -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.9",
3
+ "version": "1.59.10",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"