easy-email-pro-theme 1.26.4 → 1.26.6

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 +8 -4
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -14506,10 +14506,10 @@ function PromiseEach(promiseLikes) {
14506
14506
  }
14507
14507
  function isValidHttpUrl(str) {
14508
14508
  let url;
14509
- if (str.startsWith("mailto:")) {
14510
- return true;
14511
- }
14512
14509
  try {
14510
+ if (str.startsWith("mailto:")) {
14511
+ return true;
14512
+ }
14513
14513
  url = new URL(str);
14514
14514
  } catch (_) {
14515
14515
  return false;
@@ -18625,7 +18625,7 @@ const underLineAdapter = {
18625
18625
  },
18626
18626
  normalize(active) {
18627
18627
  if (!active)
18628
- return void 0;
18628
+ return "none";
18629
18629
  return "underline";
18630
18630
  }
18631
18631
  };
@@ -27078,6 +27078,10 @@ const BlockLayer = () => {
27078
27078
  const onSelect = useCallback$1(
27079
27079
  (item2) => {
27080
27080
  const currentPath = ReactEditor.findPath(editor, item2.data);
27081
+ const element = Node$1.get(editor, currentPath);
27082
+ if (!NodeUtils.isBlockElement(element) || NodeUtils.isUnsetElement(element)) {
27083
+ return;
27084
+ }
27081
27085
  setSelectedNodePath(currentPath);
27082
27086
  if (scrollWhenSelect) {
27083
27087
  setTimeout(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-theme",
3
- "version": "1.26.4",
3
+ "version": "1.26.6",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"