easy-email-pro-theme 1.50.13 → 1.50.15

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
@@ -2215,6 +2215,7 @@ const ElementTools$1 = ({ element, nodeElement, path: path2 }) => {
2215
2215
  showPreviousLevelIcon
2216
2216
  } = useEditorProps();
2217
2217
  const { open } = useUniversalContent();
2218
+ const { universalElementSetting } = useEditorProps();
2218
2219
  const { setSelectedNodePath } = useEditorActions();
2219
2220
  const selectedNodePath = useSelectedNodePath();
2220
2221
  const universalElementEditing = useUniversalElementEditing();
@@ -2286,7 +2287,7 @@ const ElementTools$1 = ({ element, nodeElement, path: path2 }) => {
2286
2287
  if (standaloneElementPath && !isChildOfStandaloneElement) {
2287
2288
  isHideBackIcon = true;
2288
2289
  }
2289
- const hideAddToCollection = universalElementEditing || standaloneElementEditing;
2290
+ const hideAddToCollection = universalElementEditing || standaloneElementEditing || !universalElementSetting;
2290
2291
  const renderContent = /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
2291
2292
  "div",
2292
2293
  {
@@ -30551,6 +30552,7 @@ function AttributesContainer$e({
30551
30552
  const { selectedNode } = useSelectedNode();
30552
30553
  const selectedNodePath = useSelectedNodePath();
30553
30554
  const { setFieldValue } = useEditorContext();
30555
+ const { hideSectionBackgroundImage } = useEditorProps();
30554
30556
  const onVerticalAlignChange = useEventCallback((value) => {
30555
30557
  let children = selectedNode == null ? void 0 : selectedNode.children;
30556
30558
  let path2 = selectedNodePath;
@@ -30603,14 +30605,14 @@ function AttributesContainer$e({
30603
30605
  type: selectedNode.type,
30604
30606
  name: ""
30605
30607
  }
30606
- )), /* @__PURE__ */ React__default.createElement(Collapse.Item, { name: "0", header: t("Background") }, /* @__PURE__ */ React__default.createElement(
30608
+ )), /* @__PURE__ */ React__default.createElement(Collapse.Item, { name: "0", header: t("Background") }, !hideSectionBackgroundImage && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
30607
30609
  ResponsiveField,
30608
30610
  {
30609
30611
  component: AttributeField.BackgroundImage,
30610
30612
  path: nodePath,
30611
30613
  name: ""
30612
30614
  }
30613
- ), /* @__PURE__ */ React__default.createElement(Divider$2, null), /* @__PURE__ */ React__default.createElement(
30615
+ ), /* @__PURE__ */ React__default.createElement(Divider$2, null)), /* @__PURE__ */ React__default.createElement(
30614
30616
  ResponsiveField,
30615
30617
  {
30616
30618
  component: AttributeField.Border,
@@ -139,6 +139,7 @@ export interface PluginsCustomEditorTypes {
139
139
  showInsertTips?: boolean;
140
140
  enabledHtmlBlockNodeAlign?: boolean;
141
141
  enabledPreviewEmailSubjectEdit?: boolean;
142
+ hideSectionBackgroundImage?: boolean;
142
143
  layerConfig?: {
143
144
  scrollWhenSelect?: boolean;
144
145
  scrollWhenHover?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-theme",
3
- "version": "1.50.13",
3
+ "version": "1.50.15",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"