@semcore/portal
Advanced tools
Comparing version 2.5.14 to 2.5.16
@@ -5,15 +5,13 @@ # Changelog | ||
## [2.5.14] - 2023-03-24 | ||
## [2.5.16] - 2023-03-24 | ||
### Changed | ||
### Removed | ||
- Version patch update due to children dependencies update (`@semcore/utils` [3.48.0 ~> 3.48.1]). | ||
- Non-working portalled local theme reapplying. | ||
## [2.5.7] - 2023-02-09 | ||
## [2.5.14] - 2023-03-24 | ||
## [2.5.6] - 2023-01-20 | ||
### Changed | ||
- Version patch update due to children dependencies update (`@semcore/utils` [3.45.0 ~> 3.46.0]). | ||
- Version patch update due to children dependencies update (`@semcore/utils` [3.48.0 ~> 3.48.1]). | ||
@@ -20,0 +18,0 @@ ## [2.5.4] - 2023-01-10 |
@@ -24,4 +24,2 @@ "use strict"; | ||
var _ThemeProvider = require("@semcore/utils/lib/ThemeProvider"); | ||
var PortalContext = _core.register.get('portal-context', | ||
@@ -42,9 +40,2 @@ /*#__PURE__*/ | ||
var containerPseudoRef = _react["default"].useMemo(function () { | ||
return { | ||
current: container | ||
}; | ||
}, [container]); | ||
(0, _ThemeProvider.useContextTheme)(containerPseudoRef); | ||
(0, _react.useEffect)(function () { | ||
@@ -51,0 +42,0 @@ if (!disablePortal) { |
@@ -7,3 +7,2 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; | ||
import { getNodeByRef } from '@semcore/utils/lib/ref'; | ||
import { useContextTheme } from '@semcore/utils/lib/ThemeProvider'; | ||
var PortalContext = register.get('portal-context', | ||
@@ -24,8 +23,2 @@ /*#__PURE__*/ | ||
var containerPseudoRef = React.useMemo(function () { | ||
return { | ||
current: container | ||
}; | ||
}, [container]); | ||
useContextTheme(containerPseudoRef); | ||
useEffect(function () { | ||
@@ -32,0 +25,0 @@ if (!disablePortal) { |
{ | ||
"name": "@semcore/portal", | ||
"description": "Semrush Portal Component", | ||
"version": "2.5.14", | ||
"version": "2.5.16", | ||
"main": "lib/cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "lib/es6/index.js", |
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
17447
110