@arc-fusion/pb-editor-wrapper
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -37,4 +37,2 @@ "use strict"; | ||
(0, _react.useEffect)(function () { | ||
var _enterNode$nextSiblin; | ||
if (isChain) return; | ||
@@ -44,5 +42,6 @@ | ||
addMouseEventsToSiblings(enterNode); // observe enterNode with no added siblings | ||
addMouseEventsToSiblings(enterNode); | ||
var nextElement = enterNode === null || enterNode === void 0 ? void 0 : enterNode.nextSibling; // lazy load observers: check for no added siblings or a placeholder node with no children | ||
if (enterNode !== null && enterNode !== void 0 && (_enterNode$nextSiblin = enterNode.nextSibling) !== null && _enterNode$nextSiblin !== void 0 && _enterNode$nextSiblin.matches && enterNode.nextSibling.matches("[data-fusion-component=\"".concat(fingerprint, "\"]"))) { | ||
if (nextElement !== null && nextElement !== void 0 && nextElement.matches && nextElement.matches("[data-fusion-component=\"".concat(fingerprint, "\"]")) || nextElement !== null && nextElement !== void 0 && nextElement.hasChildNodes && !nextElement.hasChildNodes()) { | ||
observeBoundaries(enterNode); | ||
@@ -76,4 +75,2 @@ } | ||
addMouseEventsToSiblings(enterNode); | ||
} else { | ||
observer.disconnect(); | ||
} | ||
@@ -80,0 +77,0 @@ } |
{ | ||
"name": "@arc-fusion/pb-editor-wrapper", | ||
"description": "PageBuilder Preview Wrapper", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"module": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
10786
155