@arc-fusion/pb-editor-wrapper
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -13,6 +13,6 @@ "use strict"; | ||
while ((_selectedNode = selectedNode) !== null && _selectedNode !== void 0 && _selectedNode.matches && !selectedNode.matches("[data-fusion-component=\"".concat(fingerprint, "\"]"))) { | ||
var _selectedNode; | ||
var _selectedNode, _selectedNode2; | ||
siblings.push(selectedNode); | ||
selectedNode = selectedNode.nextSibling; | ||
selectedNode = (_selectedNode2 = selectedNode) === null || _selectedNode2 === void 0 ? void 0 : _selectedNode2.nextSibling; | ||
} | ||
@@ -19,0 +19,0 @@ |
@@ -37,10 +37,10 @@ "use strict"; | ||
(0, _react.useEffect)(function () { | ||
var _nextElement$nextSibl; | ||
if (isChain) return; | ||
var enterNode = _reactDom.default.findDOMNode(enterRef.current); | ||
var enterNode = _reactDom.default === null || _reactDom.default === void 0 ? void 0 : _reactDom.default.findDOMNode(enterRef.current); | ||
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 | ||
var nextElement = enterNode === null || enterNode === void 0 ? void 0 : enterNode.nextSibling; // LazyLoad and React.Suspense observers: check for no siblings or a placeholder node with no children | ||
if (nextElement !== null && nextElement !== void 0 && nextElement.matches && nextElement.matches("[data-fusion-component=\"".concat(fingerprint, "\"]")) || nextElement !== null && nextElement !== void 0 && nextElement.hasChildNodes && !nextElement.hasChildNodes()) { | ||
if (nextElement !== null && nextElement !== void 0 && nextElement.matches && nextElement.matches("[data-fusion-component=\"".concat(fingerprint, "\"]")) || nextElement !== null && nextElement !== void 0 && nextElement.hasChildNodes && !nextElement.hasChildNodes() && nextElement !== null && nextElement !== void 0 && (_nextElement$nextSibl = nextElement.nextSibling) !== null && _nextElement$nextSibl !== void 0 && _nextElement$nextSibl.matches && nextElement.nextSibling.matches("[data-fusion-component=\"".concat(fingerprint, "\"]"))) { | ||
observeBoundaries(enterNode); | ||
@@ -115,3 +115,3 @@ } | ||
var siblingNodes = (0, _getSiblingNodes.getSiblingNodes)(fingerprint, enterNode); | ||
siblingNodes.forEach(function (element) { | ||
siblingNodes === null || siblingNodes === void 0 ? void 0 : siblingNodes.forEach(function (element) { | ||
element === null || element === void 0 ? void 0 : element.addEventListener('mouseenter', onFeatureHover); | ||
@@ -124,3 +124,3 @@ element === null || element === void 0 ? void 0 : element.addEventListener('mouseleave', onFeatureHoverEnd); | ||
var siblingNodes = (0, _getSiblingNodes.getSiblingNodes)(fingerprint, enterNode); | ||
siblingNodes.forEach(function (element) { | ||
siblingNodes === null || siblingNodes === void 0 ? void 0 : siblingNodes.forEach(function (element) { | ||
element === null || element === void 0 ? void 0 : element.removeEventListener('mouseenter', onFeatureHover); | ||
@@ -127,0 +127,0 @@ element === null || element === void 0 ? void 0 : element.removeEventListener('mouseleave', onFeatureHoverEnd); |
{ | ||
"name": "@arc-fusion/pb-editor-wrapper", | ||
"description": "PageBuilder Preview Wrapper", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"module": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
11389
157