@chakra-ui/portal
Advanced tools
Comparing version 1.0.0-rc.5 to 1.0.0-rc.6
@@ -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 @@ |
@@ -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 |
@@ -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
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
51273
24
477
+ Added@chakra-ui/hooks@1.0.0-rc.6(transitive)
+ Added@chakra-ui/utils@1.0.0-rc.6(transitive)
+ Addedreact@17.0.2(transitive)
+ Addedreact-dom@17.0.2(transitive)
+ Addedscheduler@0.20.2(transitive)
- Removed@chakra-ui/hooks@1.0.0-rc.5(transitive)
- Removed@chakra-ui/utils@1.0.0-rc.5(transitive)
- Removed@types/lodash.merge@4.6.6(transitive)
- Removedlodash.merge@4.6.2(transitive)
- Removedmemoize-one@5.1.1(transitive)
Updated@chakra-ui/hooks@1.0.0-rc.6
Updated@chakra-ui/utils@1.0.0-rc.6