@arc-fusion/pb-editor-wrapper
Advanced tools
Comparing version 0.0.102 to 0.0.103
@@ -18,4 +18,13 @@ "use strict"; | ||
var _excluded = ["className"], | ||
_excluded2 = ["className"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
@@ -80,14 +89,18 @@ | ||
var ChainWrapper = function ChainWrapper(_ref2) { | ||
var className = _ref2.className; | ||
return (0, _react.jsx)("editor-wrapper", { | ||
className: className, | ||
var className = _ref2.className, | ||
props = _objectWithoutProperties(_ref2, _excluded); | ||
return (0, _react.jsx)("editor-wrapper", _extends({ | ||
class: className, | ||
"data-fusion-component": fingerprint, | ||
"data-fusion-plugins": plugins | ||
}, children); | ||
}, props), children); | ||
}; | ||
var FeatureWrapper = function FeatureWrapper(_ref3) { | ||
var className = _ref3.className; | ||
return (0, _react.jsx)("editor-wrapper", { | ||
className: className, | ||
var className = _ref3.className, | ||
props = _objectWithoutProperties(_ref3, _excluded2); | ||
return (0, _react.jsx)("editor-wrapper", _extends({ | ||
class: className, | ||
onMouseEnter: onFeatureHover, | ||
@@ -99,3 +112,3 @@ onMouseLeave: function onMouseLeave() { | ||
"data-fusion-plugins": plugins | ||
}, isHovered && (0, _react.jsx)("div", { | ||
}, props), isHovered && (0, _react.jsx)("div", { | ||
css: styles.wrapper.actions | ||
@@ -102,0 +115,0 @@ }, (0, _react.jsx)("i", { |
{ | ||
"name": "@arc-fusion/pb-editor-wrapper", | ||
"description": "PageBuilder Preview Wrapper", | ||
"version": "0.0.102", | ||
"version": "0.0.103", | ||
"module": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
10323
137