@arc-fusion/pb-editor-wrapper
Advanced tools
Comparing version 0.0.262 to 0.0.263
@@ -32,4 +32,4 @@ "use strict"; | ||
var FeatureWrapper = /*#__PURE__*/function (_Component) { | ||
_inherits(FeatureWrapper, _Component); | ||
var FeatureWrapper = /*#__PURE__*/function (_PureComponent) { | ||
_inherits(FeatureWrapper, _PureComponent); | ||
@@ -58,3 +58,7 @@ var _super = _createSuper(FeatureWrapper); | ||
}), React.Children.map(children, function (child) { | ||
console.log('CHILDDDD', child); | ||
return React.cloneElement(child, { | ||
onClick: function onClick() { | ||
return alert('This replaced the original onClick prop'); | ||
}, | ||
onMouseEnter: function onMouseEnter() { | ||
@@ -75,5 +79,5 @@ console.log('onMouseEnter'); | ||
return FeatureWrapper; | ||
}(_react.Component); | ||
}(_react.PureComponent); | ||
var _default = FeatureWrapper; | ||
exports.default = _default; |
{ | ||
"name": "@arc-fusion/pb-editor-wrapper", | ||
"description": "PageBuilder Preview Wrapper", | ||
"version": "0.0.262", | ||
"version": "0.0.263", | ||
"module": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
7043
76