@semcore/portal
Advanced tools
Comparing version 2.4.5 to 2.5.0
@@ -5,2 +5,8 @@ # Changelog | ||
## [2.5.0] - 2022-12-12 | ||
### Added | ||
- Design tokens based theming. | ||
## [2.4.5] - 2022-11-30 | ||
@@ -7,0 +13,0 @@ |
@@ -24,2 +24,4 @@ "use strict"; | ||
var _ThemeProvider = require("@semcore/utils/lib/ThemeProvider"); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
@@ -44,2 +46,9 @@ | ||
var containerPseudoRef = _react["default"].useMemo(function () { | ||
return { | ||
current: container | ||
}; | ||
}, [container]); | ||
(0, _ThemeProvider.useContextTheme)(containerPseudoRef); | ||
(0, _react.useEffect)(function () { | ||
@@ -46,0 +55,0 @@ if (!disablePortal) { |
@@ -7,2 +7,3 @@ 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', | ||
@@ -23,2 +24,8 @@ /*#__PURE__*/ | ||
var containerPseudoRef = React.useMemo(function () { | ||
return { | ||
current: container | ||
}; | ||
}, [container]); | ||
useContextTheme(containerPseudoRef); | ||
useEffect(function () { | ||
@@ -25,0 +32,0 @@ if (!disablePortal) { |
{ | ||
"name": "@semcore/portal", | ||
"description": "Semrush Portal Component", | ||
"version": "2.4.5", | ||
"version": "2.5.0", | ||
"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
20660
134