@arc-fusion/pb-editor-wrapper
Advanced tools
Comparing version 0.0.350 to 0.0.352
@@ -72,3 +72,3 @@ "use strict"; | ||
addMouseEvents(siblingNodes); | ||
observeFeatureNodeForUpdate(enterNode); | ||
observeNode(enterNode); | ||
return function () { | ||
@@ -79,3 +79,3 @@ removeMouseEvents(siblingNodes); | ||
function observeFeatureNodeForUpdate(enterNode) { | ||
function observeNode(enterNode) { | ||
var parentNode = enterNode.parentNode; | ||
@@ -100,7 +100,12 @@ var config = { | ||
var selectedNode = mutation.target; | ||
if (isChain || selectedNode.id === 'fusion-app') observer.disconnect(); | ||
console.log('SELECTED', selectedNode); | ||
var siblingNodes = (0, _getSiblingNodes.getSiblingNodes)(fingerprint, enterNode); | ||
addMouseEvents(siblingNodes); | ||
observer.disconnect(); | ||
if (isChain || selectedNode.id === 'fusion-app') { | ||
observer.disconnect(); | ||
console.log('NO WRAPPER NEEDED'); | ||
} else { | ||
console.log('ADD WRAPPER'); | ||
var siblingNodes = (0, _getSiblingNodes.getSiblingNodes)(fingerprint, enterNode); | ||
addMouseEvents(siblingNodes); | ||
observer.disconnect(); | ||
} | ||
} | ||
@@ -107,0 +112,0 @@ } |
{ | ||
"name": "@arc-fusion/pb-editor-wrapper", | ||
"description": "PageBuilder Preview Wrapper", | ||
"version": "0.0.350", | ||
"version": "0.0.352", | ||
"module": "dist/index.js", | ||
@@ -31,6 +31,3 @@ "files": [ | ||
"yalc": "*" | ||
}, | ||
"dependencies": { | ||
"rooks": "^5.10.0" | ||
} | ||
} |
10253
2
159
- Removedrooks@^5.10.0
- Removedlodash.debounce@4.0.8(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedraf@3.4.1(transitive)
- Removedrooks@5.14.1(transitive)