react-live-chat-loader
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -49,3 +49,3 @@ "use strict"; | ||
borderStyle: 'none', | ||
transition: 'box-shadow 250ms ease 0s, opacity 0.4s ease 0s, scale 1000ms ease-in-out 0s, transform 0.2s ease-in-out 0s' | ||
transition: 'box-shadow 250ms ease 0s, opacity 0.4s ease 0s, transform 0.2s ease-in-out 0s' | ||
}, | ||
@@ -190,7 +190,2 @@ button: { | ||
var _useState = (0, _react.useState)(0), | ||
_useState2 = _slicedToArray(_useState, 2), | ||
scale = _useState2[0], | ||
setScale = _useState2[1]; | ||
var _useChat = (0, _.useChat)({ | ||
@@ -204,5 +199,2 @@ loadWhenIdle: true | ||
var windowHeight = (0, _useWindowHeight["default"])(); | ||
(0, _react.useEffect)(function () { | ||
setScale(1); | ||
}, []); | ||
if (state === _states["default"].COMPLETE) return null; | ||
@@ -214,3 +206,2 @@ return _react["default"].createElement("div", { | ||
left: horizontalPosition === 'right' ? 'auto' : windowHeight < 740 ? '20px' : '40px', | ||
transform: "scale(".concat(scale, ")"), | ||
zIndex: zIndex | ||
@@ -217,0 +208,0 @@ }) |
@@ -47,4 +47,2 @@ "use strict"; | ||
borderRadius: '50%', | ||
transition: 'transform 0.3s ease', | ||
transform: 'scale(1)', | ||
boxShadow: 'rgba(0, 0, 0, 0.0588235) 0px 1px 6px 0px, rgba(0, 0, 0, 0.156863) 0px 2px 32px 0px' | ||
@@ -122,7 +120,2 @@ }, | ||
var _useState = (0, _react.useState)(0), | ||
_useState2 = _slicedToArray(_useState, 2), | ||
scale = _useState2[0], | ||
setScale = _useState2[1]; | ||
var _useChat = (0, _.useChat)({ | ||
@@ -135,10 +128,6 @@ loadWhenIdle: true | ||
(0, _react.useEffect)(function () { | ||
setScale(1); | ||
}, []); | ||
if (state === _states["default"].COMPLETE) return null; | ||
return _react["default"].createElement("div", { | ||
style: _objectSpread({}, styles.wrapper, { | ||
background: color, | ||
transform: "scale(".concat(scale, ")") | ||
background: color | ||
}) | ||
@@ -145,0 +134,0 @@ }, _react["default"].createElement("div", { |
{ | ||
"name": "react-live-chat-loader", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "Implement live chat in your react app without taking a performance hit.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51678
776