@arc-fusion/pb-editor-wrapper
Advanced tools
Comparing version 0.0.361 to 0.0.362
@@ -15,3 +15,4 @@ "use strict"; | ||
console.log('SELECTED', selectedNode, selectedNode.nextSibling); | ||
return selectedNode.nextSibling; | ||
} |
@@ -43,3 +43,3 @@ "use strict"; | ||
addMouseEventsToSiblings(enterNode); | ||
addMouseEventsToSiblings(fingerprint, enterNode); | ||
observeBoundaries(enterNode); | ||
@@ -71,5 +71,6 @@ return function () { | ||
var exitBoundary = (0, _getExitBoundaryNode.getExitBoundaryNode)(mutation === null || mutation === void 0 ? void 0 : mutation.addedNodes[0]); | ||
console.log('EXIT BOUNDARY', exitBoundary, exitBoundary === null || exitBoundary === void 0 ? void 0 : exitBoundary.getAttribute('data-fusion-component')); | ||
if (fingerprint === (exitBoundary === null || exitBoundary === void 0 ? void 0 : exitBoundary.getAttribute('data-fusion-component'))) { | ||
console.log('RE-ADD WRAPPER'); | ||
console.log('RE-ADD WRAPPER', mutation.target, enterNode); | ||
addMouseEventsToSiblings(enterNode); | ||
@@ -81,3 +82,2 @@ } else { | ||
} else { | ||
console.log('DISCONNECT OUTSIDE'); | ||
observer.disconnect(); | ||
@@ -84,0 +84,0 @@ } |
{ | ||
"name": "@arc-fusion/pb-editor-wrapper", | ||
"description": "PageBuilder Preview Wrapper", | ||
"version": "0.0.361", | ||
"version": "0.0.362", | ||
"module": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
11444
173