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.0-rc.5 to 1.0.0-rc.6

dist/cjs/stack-context.js

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# 1.0.0-rc.6 (2020-10-25)
**Note:** Version bump only for package @chakra-ui/portal
# 1.0.0-rc.5 (2020-09-27)

@@ -8,0 +16,0 @@

2

dist/cjs/index.js

@@ -9,2 +9,3 @@ "use strict";

if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _portalManager[key]) return;
exports[key] = _portalManager[key];

@@ -17,4 +18,5 @@ });

if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _portal[key]) return;
exports[key] = _portal[key];
});
//# sourceMappingURL=index.js.map

11

dist/cjs/portal.js

@@ -6,2 +6,4 @@ "use strict";

var _hooks = require("@chakra-ui/hooks");
var _utils = require("@chakra-ui/utils");

@@ -15,4 +17,2 @@

var _hooks = require("@chakra-ui/hooks");
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }

@@ -106,4 +106,3 @@

}, [getContainer, portal, parentPortal, onMount, onUnmount, manager == null ? void 0 : manager.node, append]);
var _children = (manager == null ? void 0 : manager.zIndex) ? /*#__PURE__*/React.createElement("div", {
var portalChildren = (manager == null ? void 0 : manager.zIndex) ? /*#__PURE__*/React.createElement("div", {
className: "chakra-portal-zIndex",

@@ -118,3 +117,3 @@ style: {

if (!portal) {
return /*#__PURE__*/React.createElement(React.Fragment, null, _children);
return /*#__PURE__*/React.createElement(React.Fragment, null, portalChildren);
}

@@ -124,3 +123,3 @@

value: portal
}, _children), portal);
}, portalChildren), portal);
};

@@ -127,0 +126,0 @@

@@ -0,1 +1,2 @@

import { useSafeLayoutEffect } from "@chakra-ui/hooks";
import { createContext, isBrowser, __DEV__ } from "@chakra-ui/utils";

@@ -5,3 +6,2 @@ import * as React from "react";

import { usePortalManager } from "./portal-manager";
import { useSafeLayoutEffect } from "@chakra-ui/hooks";
var [PortalContextProvider, usePortalContext] = createContext({

@@ -89,4 +89,3 @@ strict: false,

}, [getContainer, portal, parentPortal, onMount, onUnmount, manager == null ? void 0 : manager.node, append]);
var _children = (manager == null ? void 0 : manager.zIndex) ? /*#__PURE__*/React.createElement("div", {
var portalChildren = (manager == null ? void 0 : manager.zIndex) ? /*#__PURE__*/React.createElement("div", {
className: "chakra-portal-zIndex",

@@ -101,3 +100,3 @@ style: {

if (!portal) {
return /*#__PURE__*/React.createElement(React.Fragment, null, _children);
return /*#__PURE__*/React.createElement(React.Fragment, null, portalChildren);
}

@@ -107,3 +106,3 @@

value: portal
}, _children), portal);
}, portalChildren), portal);
};

@@ -110,0 +109,0 @@

{
"name": "@chakra-ui/portal",
"version": "1.0.0-rc.5",
"version": "1.0.0-rc.6",
"description": "React component used to render children outside the DOM hierarchy of the parent component",

@@ -21,2 +21,8 @@ "keywords": [

"typings": "dist/types/index.d.ts",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"default": "./dist/esm/index.js"
}
},
"files": [

@@ -50,10 +56,10 @@ "dist"

"dependencies": {
"@chakra-ui/hooks": "1.0.0-rc.5",
"@chakra-ui/utils": "1.0.0-rc.5"
"@chakra-ui/hooks": "1.0.0-rc.6",
"@chakra-ui/utils": "1.0.0-rc.6"
},
"peerDependencies": {
"react": "16.x",
"react-dom": "16.x"
"react": "16.x || 17.x",
"react-dom": "16.x || 17.x"
},
"gitHead": "b5c8482b778b19f27ea1d6c8ab6d5ed39c664afa"
"gitHead": "e55b45840d1edc821ad0bb45632535333be5bb86"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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