Socket
Socket
Sign inDemoInstall

@semcore/portal

Package Overview
Dependencies
Maintainers
1
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semcore/portal - npm Package Compare versions

Comparing version 2.4.5 to 2.5.0

6

CHANGELOG.md

@@ -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) {

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc