@semcore/portal
Advanced tools
Comparing version 2.3.3 to 2.3.4
@@ -5,2 +5,8 @@ # Changelog | ||
## [2.3.4] - 2022-05-19 | ||
### Changed | ||
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.0 ~> 3.32.1]). | ||
## [2.3.3] - 2022-03-14 | ||
@@ -7,0 +13,0 @@ |
@@ -28,5 +28,3 @@ "use strict"; | ||
var PortalContext = _core.register.get('portal-context', | ||
/*#__PURE__*/ | ||
// eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope | ||
var PortalContext = _core.register.get('portal-context', // eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope | ||
_react["default"].createContext((0, _canUseDOM["default"])() ? document.body : null)); | ||
@@ -54,3 +52,3 @@ | ||
return mountNode ? /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/_react["default"].createElement(Children, null), mountNode) : null; | ||
return mountNode ? (0, _reactDom.createPortal)( /*#__PURE__*/_react["default"].createElement(Children, null), mountNode) : null; | ||
} | ||
@@ -57,0 +55,0 @@ |
@@ -7,5 +7,3 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; | ||
import { getNodeByRef } from '@semcore/utils/lib/ref'; | ||
var PortalContext = register.get('portal-context', | ||
/*#__PURE__*/ | ||
// eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope | ||
var PortalContext = register.get('portal-context', // eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope | ||
React.createContext(canUseDOM() ? document.body : null)); | ||
@@ -33,3 +31,3 @@ | ||
return mountNode ? /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement(Children, null), mountNode) : null; | ||
return mountNode ? createPortal( /*#__PURE__*/React.createElement(Children, null), mountNode) : null; | ||
} | ||
@@ -36,0 +34,0 @@ |
{ | ||
"name": "@semcore/portal", | ||
"description": "SEMRush Portal Component", | ||
"version": "2.3.3", | ||
"version": "2.3.4", | ||
"main": "lib/cjs/index.js", | ||
@@ -30,3 +30,6 @@ "module": "lib/es6/index.js", | ||
"directory": "semcore/portal" | ||
}, | ||
"devDependencies": { | ||
"@semcore/jest-preset-ui": "1.0.0" | ||
} | ||
} |
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
16859
1
152