@arc-fusion/pb-editor-wrapper
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -119,3 +119,4 @@ "use strict"; | ||
onHoverEnd = _ref.onHoverEnd, | ||
onAdd = _ref.onAdd, | ||
onAddTop = _ref.onAddTop, | ||
onAddBottom = _ref.onAddBottom, | ||
onEdit = _ref.onEdit, | ||
@@ -133,3 +134,3 @@ onDelete = _ref.onDelete, | ||
(0, _react2.useEffect)(function () { | ||
return isHovered ? onHover && onHover(fingerprint) : onHoverEnd && onHoverEnd(fingerprint); | ||
return isHovered ? onHover && onHover() : onHoverEnd && onHoverEnd(); | ||
}, [isHovered]); | ||
@@ -155,5 +156,3 @@ | ||
css: styles.wrapper.buttonTop, | ||
onClick: function onClick() { | ||
return onAdd(fingerprint, 'top'); | ||
} | ||
onClick: onAddTop | ||
}, (0, _react.jsx)("i", null, (0, _react.jsx)("img", { | ||
@@ -164,5 +163,3 @@ css: styles.wrapper.buttonIcon, | ||
css: styles.wrapper.buttonBottom, | ||
onClick: function onClick() { | ||
return onAdd(fingerprint, 'bottom'); | ||
} | ||
onClick: onAddBottom | ||
}, (0, _react.jsx)("i", null, (0, _react.jsx)("img", { | ||
@@ -174,5 +171,3 @@ css: styles.wrapper.buttonIcon, | ||
}, plugins && (0, _react.jsx)("i", { | ||
onClick: function onClick() { | ||
return onPluginLoad(fingerprint, plugins); | ||
} | ||
onClick: onPluginLoad | ||
}, (0, _react.jsx)("img", { | ||
@@ -182,5 +177,3 @@ src: _plugin.default, | ||
})), (0, _react.jsx)("i", { | ||
onClick: function onClick() { | ||
return onEdit(fingerprint); | ||
} | ||
onClick: onEdit | ||
}, (0, _react.jsx)("img", { | ||
@@ -190,5 +183,3 @@ src: _pencil.default, | ||
})), (0, _react.jsx)("i", { | ||
onClick: function onClick() { | ||
return onLocate(fingerprint); | ||
} | ||
onClick: onLocate | ||
}, (0, _react.jsx)("img", { | ||
@@ -198,5 +189,3 @@ src: _locator.default, | ||
})), (0, _react.jsx)("i", { | ||
onClick: function onClick() { | ||
return onDelete(fingerprint); | ||
} | ||
onClick: onDelete | ||
}, (0, _react.jsx)("img", { | ||
@@ -203,0 +192,0 @@ src: _trash.default, |
{ | ||
"name": "@arc-fusion/pb-editor-wrapper", | ||
"description": "PageBuilder Preview Wrapper", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"module": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
11731
189