@arc-fusion/pb-editor-wrapper
Advanced tools
Comparing version 0.0.105 to 0.0.106
@@ -18,13 +18,4 @@ "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(); } | ||
@@ -60,2 +51,3 @@ | ||
position: 'relative', | ||
display: 'block', | ||
highlighted: { | ||
@@ -66,3 +58,4 @@ margin: '2px', | ||
boxShadow: '0 0 0 2px #3760ff', | ||
transition: 'all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1)' | ||
transition: 'all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1)', | ||
display: 'block' | ||
}, | ||
@@ -93,17 +86,13 @@ actions: { | ||
var ChainWrapper = function ChainWrapper(_ref2) { | ||
var className = _ref2.className, | ||
props = _objectWithoutProperties(_ref2, _excluded); | ||
return (0, _react.jsx)("editor-wrapper", _extends({ | ||
var className = _ref2.className; | ||
return (0, _react.jsx)("editor-wrapper", { | ||
class: className, | ||
"data-fusion-component": fingerprint, | ||
"data-fusion-plugins": plugins | ||
}, props), children); | ||
}, children); | ||
}; | ||
var FeatureWrapper = function FeatureWrapper(_ref3) { | ||
var className = _ref3.className, | ||
props = _objectWithoutProperties(_ref3, _excluded2); | ||
return (0, _react.jsx)("editor-wrapper", _extends({ | ||
var className = _ref3.className; | ||
return (0, _react.jsx)("editor-wrapper", { | ||
class: className, | ||
@@ -116,3 +105,3 @@ onMouseEnter: onFeatureHover, | ||
"data-fusion-plugins": plugins | ||
}, props), isHovered && (0, _react.jsx)("div", { | ||
}, isHovered && (0, _react.jsx)("div", { | ||
style: styles.wrapper.actions | ||
@@ -142,5 +131,5 @@ }, (0, _react.jsx)("i", { | ||
return isChain ? (0, _react.jsx)(ChainWrapper, { | ||
css: isHovered ? styles.wrapper : styles.wrapper.highlighted | ||
css: isHovered ? styles.wrapper.highlighted : styles.wrapper | ||
}) : (0, _react.jsx)(FeatureWrapper, { | ||
css: isHovered ? styles.wrapper : styles.wrapper.highlighted | ||
css: isHovered ? styles.wrapper.highlighted : styles.wrapper | ||
}); | ||
@@ -147,0 +136,0 @@ }; |
{ | ||
"name": "@arc-fusion/pb-editor-wrapper", | ||
"description": "PageBuilder Preview Wrapper", | ||
"version": "0.0.105", | ||
"version": "0.0.106", | ||
"module": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
9081
131