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.5 to 1.0.6

13

CHANGELOG.md
# Change Log
## 1.0.6
### Patch Changes
- [`31881da7`](https://github.com/chakra-ui/chakra-ui/commit/31881da7314c9c464d080b7dd83edd59d8786b7c)
[#3126](https://github.com/chakra-ui/chakra-ui/pull/3126) Thanks
[@segunadebayo](https://github.com/segunadebayo)! - fix(portal-manager):
portal z-index wrapper squashing portaled elements
- Updated dependencies
[[`002a4361`](https://github.com/chakra-ui/chakra-ui/commit/002a4361bd738bef49e021a2fff2b9b6a9af5815)]:
- @chakra-ui/hooks@1.1.2
## 1.0.5

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

11

dist/cjs/portal.js

@@ -33,4 +33,3 @@ "use strict";

style: {
display: "inline-block",
position: "absolute",
position: "relative",
zIndex: zIndex

@@ -63,5 +62,11 @@ }

var doc = tempNode.current.ownerDocument;
var host = (_ref = (_getContainer = getContainer()) != null ? _getContainer : parentPortal) != null ? _ref : doc.body;
/**
* host may be `null` when a hot-loader
* replaces components on the page
*/
if (!host) return;
portal.current = doc.createElement("div");
portal.current.className = Portal.className;
var host = (_ref = (_getContainer = getContainer()) != null ? _getContainer : parentPortal) != null ? _ref : doc.body;
host.appendChild(portal.current);

@@ -68,0 +73,0 @@ forceUpdate();

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

style: {
display: "inline-block",
position: "absolute",
position: "relative",
zIndex

@@ -49,5 +48,11 @@ }

var doc = tempNode.current.ownerDocument;
var host = (_ref = (_getContainer = getContainer()) != null ? _getContainer : parentPortal) != null ? _ref : doc.body;
/**
* host may be `null` when a hot-loader
* replaces components on the page
*/
if (!host) return;
portal.current = doc.createElement("div");
portal.current.className = Portal.className;
var host = (_ref = (_getContainer = getContainer()) != null ? _getContainer : parentPortal) != null ? _ref : doc.body;
host.appendChild(portal.current);

@@ -54,0 +59,0 @@ forceUpdate();

{
"name": "@chakra-ui/portal",
"version": "1.0.5",
"version": "1.0.6",
"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.1",
"@chakra-ui/hooks": "1.1.2",
"@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