easy-email-pro-theme 1.7.1 → 1.7.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.
Files changed (2) hide show
  1. package/lib/index.js +36 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1662,6 +1662,7 @@ const ElementTools$1 = ({ element, nodeElement, path: path2 }) => {
1662
1662
  const isSectionCategory = BlockManager.getBlockByType(
1663
1663
  element.type
1664
1664
  ).category.includes(ElementCategory.SECTION);
1665
+ const isHroCategory = NodeUtils.isHeroElement(element);
1665
1666
  const isWrapperCategory = BlockManager.getBlockByType(
1666
1667
  element.type
1667
1668
  ).category.includes(ElementCategory.WRAPPER);
@@ -1674,6 +1675,7 @@ const ElementTools$1 = ({ element, nodeElement, path: path2 }) => {
1674
1675
  {
1675
1676
  contentEditable: false,
1676
1677
  className: "element-tools-container",
1678
+ "data-is-hero-category": isHroCategory,
1677
1679
  "data-is-section-category": isSectionCategory,
1678
1680
  "data-is-wrapper-category": isWrapperCategory,
1679
1681
  "data-is-full-width": isFullWidth
@@ -1743,7 +1745,7 @@ const ElementSelected$1 = ({ element, nodeElement, path: path2 }) => {
1743
1745
  nodeElement
1744
1746
  ));
1745
1747
  };
1746
- const styleText$8 = "[data-slate-block=page] {\n --sectionElementOffset: 100px ;\n}\n\n@media screen and (max-width: 850px) {\n [data-slate-block=page] {\n --sectionElementOffset: 70px ;\n }\n}\n.section-category-hover {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n[data-is-full-width=true].section-category-hover {\n width: calc(100% - 4px);\n transform: none;\n}\n\n[data-is-section-category=true].element-tools-container {\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n[data-is-section-category=true][data-is-full-width=true].element-tools-container {\n width: calc(100% - 4px);\n transform: none;\n}\n\n.wrapper-category-hover {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n[data-is-full-width=true].wrapper-category-hover {\n width: calc(100% - 4px);\n transform: none;\n}\n\n[data-is-wrapper-category=true].element-tools-container {\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n position: absolute;\n}\n\n[data-is-wrapper-category=true][data-is-full-width=true].element-tools-container {\n width: calc(100% - 4px);\n transform: none;\n}\n\n.wrapper-category-hover {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n[data-is-wrapper-category=true].element-tools-container {\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n position: absolute;\n}";
1748
+ const styleText$8 = "[data-slate-block=page] {\n --sectionElementOffset: 100px ;\n}\n\n@media screen and (max-width: 850px) {\n [data-slate-block=page] {\n --sectionElementOffset: 70px ;\n }\n}\n.section-category-hover {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n.hero-category-hover {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n[data-is-full-width=true].section-category-hover {\n width: calc(100% - 4px);\n transform: none;\n}\n\n[data-is-hero-category=true].element-tools-container {\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n[data-is-section-category=true].element-tools-container {\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n[data-is-section-category=true][data-is-full-width=true].element-tools-container {\n width: calc(100% - 4px);\n transform: none;\n}\n\n.wrapper-category-hover {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n[data-is-full-width=true].wrapper-category-hover {\n width: calc(100% - 4px);\n transform: none;\n}\n\n[data-is-wrapper-category=true].element-tools-container {\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n position: absolute;\n}\n\n[data-is-wrapper-category=true][data-is-full-width=true].element-tools-container {\n width: calc(100% - 4px);\n transform: none;\n}\n\n.wrapper-category-hover {\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n}\n\n[data-is-wrapper-category=true].element-tools-container {\n width: calc(100% + 2 * var(--sectionElementOffset));\n transform: translate(calc(-1 * var(--sectionElementOffset)), 0);\n position: absolute;\n}";
1747
1749
  const ElementPlaceholder$1 = ({ element, nodeElement, isSelected, isHover, path: path2 }) => {
1748
1750
  const { deleteBlock } = useElementInteract();
1749
1751
  const onPointerDown = (ev) => {
@@ -1752,6 +1754,7 @@ const ElementPlaceholder$1 = ({ element, nodeElement, isSelected, isHover, path:
1752
1754
  deleteBlock(Path.parent(path2));
1753
1755
  };
1754
1756
  const isSectionCategory = NodeUtils.isSectionElement(element);
1757
+ const isHeroCategory = NodeUtils.isHeroElement(element);
1755
1758
  const isWrapperCategory = NodeUtils.isWrapperElement(element);
1756
1759
  let renderContent = null;
1757
1760
  if (isSectionCategory) {
@@ -1763,6 +1766,9 @@ const ElementPlaceholder$1 = ({ element, nodeElement, isSelected, isHover, path:
1763
1766
  className: "section-category-hover"
1764
1767
  }
1765
1768
  ));
1769
+ }
1770
+ if (isHeroCategory) {
1771
+ renderContent = /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: "hero-category-hover" }));
1766
1772
  } else if (isWrapperCategory) {
1767
1773
  const isFullWidth = get(element.attributes, "full-width") == "full-width";
1768
1774
  renderContent = /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, isFullWidth ? /* @__PURE__ */ React__default.createElement("tbody", null, /* @__PURE__ */ React__default.createElement("tr", null, /* @__PURE__ */ React__default.createElement("td", null, /* @__PURE__ */ React__default.createElement(
@@ -20321,7 +20327,11 @@ function AttributesContainer$3({
20321
20327
  component: AttributeField.Height,
20322
20328
  path: nodePath,
20323
20329
  name: "height",
20324
- label: t("Height")
20330
+ label: t("Height"),
20331
+ formItem: {
20332
+ required: true,
20333
+ requiredSymbol: true
20334
+ }
20325
20335
  }
20326
20336
  ), /* @__PURE__ */ React__default.createElement(
20327
20337
  ResponsiveField,
@@ -20338,12 +20348,33 @@ function AttributesContainer$3({
20338
20348
  hideBackgroundSize: true,
20339
20349
  name: ""
20340
20350
  }
20351
+ ), /* @__PURE__ */ React__default.createElement(
20352
+ ResponsiveField,
20353
+ {
20354
+ component: AttributeField.Width,
20355
+ path: nodePath,
20356
+ name: "background-width",
20357
+ formItem: {
20358
+ required: true,
20359
+ requiredSymbol: true,
20360
+ help: t(
20361
+ `The width of the image used is required for Outlook compatibility.`
20362
+ )
20363
+ }
20364
+ }
20341
20365
  ), /* @__PURE__ */ React__default.createElement(
20342
20366
  ResponsiveField,
20343
20367
  {
20344
20368
  component: AttributeField.Height,
20345
20369
  path: nodePath,
20346
- name: "background-height"
20370
+ name: "background-height",
20371
+ formItem: {
20372
+ required: true,
20373
+ requiredSymbol: true,
20374
+ help: t(
20375
+ `The height of the image used is required for Outlook compatibility.`
20376
+ )
20377
+ }
20347
20378
  }
20348
20379
  ), /* @__PURE__ */ React__default.createElement(Divider$1, null), /* @__PURE__ */ React__default.createElement(
20349
20380
  ResponsiveField,
@@ -39488,6 +39519,7 @@ const ElementTools = ({ element, nodeElement, path: path2 }) => {
39488
39519
  const isSectionCategory = BlockManager.getBlockByType(
39489
39520
  element.type
39490
39521
  ).category.includes(ElementCategory.SECTION);
39522
+ const isHroCategory = NodeUtils.isHeroElement(element);
39491
39523
  const isWrapperCategory = BlockManager.getBlockByType(
39492
39524
  element.type
39493
39525
  ).category.includes(ElementCategory.WRAPPER);
@@ -39525,6 +39557,7 @@ const ElementTools = ({ element, nodeElement, path: path2 }) => {
39525
39557
  contentEditable: false,
39526
39558
  className: "element-tools-container",
39527
39559
  "data-is-section-category": isSectionCategory,
39560
+ "data-is-hero-category": isHroCategory,
39528
39561
  "data-is-wrapper-category": isWrapperCategory,
39529
39562
  "data-is-full-width": isFullWidth
39530
39563
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-theme",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"