@semcore/portal
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -5,2 +5,8 @@ # Changelog | ||
## [2.1.0] - 2020-12-17 | ||
### Added | ||
- Added supported react@17. | ||
## [2.0.0] - 2020-06-01 | ||
@@ -7,0 +13,0 @@ |
@@ -24,3 +24,6 @@ "use strict"; | ||
var PortalContext = _core.register.get('portal-context', /*#__PURE__*/_react["default"].createContext((0, _canUseDOM["default"])() ? document.body : null)); | ||
var PortalContext = _core.register.get('portal-context', | ||
/*#__PURE__*/ | ||
// eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope | ||
_react["default"].createContext((0, _canUseDOM["default"])() ? document.body : null)); | ||
@@ -27,0 +30,0 @@ function Portal(props) { |
@@ -7,3 +7,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; | ||
import { getNodeByRef } from '@semcore/utils/lib/ref'; | ||
var PortalContext = register.get('portal-context', /*#__PURE__*/React.createContext(canUseDOM() ? document.body : null)); | ||
var PortalContext = register.get('portal-context', | ||
/*#__PURE__*/ | ||
// eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope | ||
React.createContext(canUseDOM() ? document.body : null)); | ||
@@ -10,0 +13,0 @@ function Portal(props) { |
{ | ||
"name": "@semcore/portal", | ||
"description": "SEMRush Portal Component", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"main": "lib/cjs/index.js", | ||
@@ -19,3 +19,3 @@ "module": "lib/es6/index.js", | ||
"@semcore/core": "^1", | ||
"react": "^16.8", | ||
"react": "16.8 - 17", | ||
"react-dom": "^16.8" | ||
@@ -22,0 +22,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
13534
145