Socket
Socket
Sign inDemoInstall

@chakra-ui/portal

Package Overview
Dependencies
Maintainers
4
Versions
320
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/portal - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

13

CHANGELOG.md
# Change Log
## 1.0.5
### Patch Changes
- [`0d620f1d`](https://github.com/chakra-ui/chakra-ui/commit/0d620f1d46b9c72c9aef3bb15a691a249ace2eb4)
[#3079](https://github.com/chakra-ui/chakra-ui/pull/3079) Thanks
[@segunadebayo](https://github.com/segunadebayo)! - Fixed issue where adding
`portalZIndex` to `ChakraProvider` makes app unusable
- Updated dependencies
[[`02855588`](https://github.com/chakra-ui/chakra-ui/commit/02855588a4ffbc6573768052e53cc538361e91ee)]:
- @chakra-ui/hooks@1.1.1
## 1.0.4

@@ -4,0 +17,0 @@

11

dist/cjs/portal.js

@@ -33,8 +33,5 @@ "use strict";

style: {
display: "inline-block",
position: "absolute",
zIndex: zIndex,
top: 0,
left: 0,
right: 0,
bottom: 0
zIndex: zIndex
}

@@ -81,3 +78,5 @@ }, children);

}, []);
var childrenToRender = manager != null && manager.zIndex ? /*#__PURE__*/React.createElement(Container, null, props.children) : props.children;
var childrenToRender = manager != null && manager.zIndex ? /*#__PURE__*/React.createElement(Container, {
zIndex: manager.zIndex
}, props.children) : props.children;
return portal.current ? /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/React.createElement(PortalContextProvider, {

@@ -84,0 +83,0 @@ value: portal.current

@@ -19,8 +19,5 @@ import { useCallbackRef, useForceUpdate, useSafeLayoutEffect } from "@chakra-ui/hooks";

style: {
display: "inline-block",
position: "absolute",
zIndex,
top: 0,
left: 0,
right: 0,
bottom: 0
zIndex
}

@@ -67,3 +64,5 @@ }, children);

}, []);
var childrenToRender = manager != null && manager.zIndex ? /*#__PURE__*/React.createElement(Container, null, props.children) : props.children;
var childrenToRender = manager != null && manager.zIndex ? /*#__PURE__*/React.createElement(Container, {
zIndex: manager.zIndex
}, props.children) : props.children;
return portal.current ? /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement(PortalContextProvider, {

@@ -70,0 +69,0 @@ value: portal.current

{
"name": "@chakra-ui/portal",
"version": "1.0.4",
"version": "1.0.5",
"description": "React component used to render children outside the DOM hierarchy of the parent component",

@@ -55,3 +55,3 @@ "keywords": [

"dependencies": {
"@chakra-ui/hooks": "1.1.0",
"@chakra-ui/hooks": "1.1.1",
"@chakra-ui/utils": "1.1.0"

@@ -58,0 +58,0 @@ },

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