@arc-fusion/pb-editor-wrapper
Advanced tools
Comparing version 0.0.255 to 0.0.256
@@ -16,7 +16,2 @@ "use strict"; | ||
children = _ref.children; | ||
var clonedElement = React.cloneElement(children, { | ||
onMouseEnter: function onMouseEnter() { | ||
console.log(fingerprint); | ||
} | ||
}); | ||
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("fusion-enter", { | ||
@@ -28,3 +23,12 @@ "data-fusion-component": fingerprint, | ||
} | ||
}), clonedElement, /*#__PURE__*/React.createElement("fusion-exit", { | ||
}), React.Children.map(children, function (element) { | ||
return React.cloneElement(element, { | ||
onMouseEnter: function onMouseEnter() { | ||
return console.log(fingerprint); | ||
}, | ||
onClick: function onClick() { | ||
return console.log('click'); | ||
} | ||
}); | ||
}), /*#__PURE__*/React.createElement("fusion-exit", { | ||
"data-fusion-component": fingerprint, | ||
@@ -31,0 +35,0 @@ "data-fusion-plugins": plugins, |
{ | ||
"name": "@arc-fusion/pb-editor-wrapper", | ||
"description": "PageBuilder Preview Wrapper", | ||
"version": "0.0.255", | ||
"version": "0.0.256", | ||
"module": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
3574
50