Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@leafygreen-ui/portal

Package Overview
Dependencies
Maintainers
6
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafygreen-ui/portal - npm Package Compare versions

Comparing version 4.1.4 to 4.1.5

.turbo/turbo-build.log

9

CHANGELOG.md
# @leafygreen-ui/portal
## 4.1.5
### Patch Changes
- 215268ff: Updates build tooling. No functional changes
- Updated dependencies [215268ff]
- @leafygreen-ui/hooks@7.7.6
- @leafygreen-ui/lib@10.4.1
## 4.1.4

@@ -4,0 +13,0 @@

2

dist/index.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("prop-types"),require("@leafygreen-ui/hooks")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","prop-types","@leafygreen-ui/hooks"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@leafygreen-ui/portal"]={},e.React,e.ReactDOM,e.PropTypes,e["@leafygreen-ui/hooks"])}(this,(function(e,t,r,n,o){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(t),i=a(n);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,u,i=[],l=!0,f=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){f=!0,o=e}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e){var t=l(u.default.useState(),2),r=t[0],n=t[1];return o.useIsomorphicLayoutEffect((function(){if(!e){var t=document.createElement("div");return document.body.appendChild(t),n(t),function(){t.remove()}}n(e)}),[e]),r}function s(e){var t,n=c(null!==(t=e.container)&&void 0!==t?t:void 0);return o.useIsomorphicLayoutEffect((function(){var t;n&&!e.container&&(n.className=null!==(t=e.className)&&void 0!==t?t:"")}),[n,e.container,e.className]),n?r.createPortal(e.children,n):null}s.displayName="Portal",s.propTypes={children:i.default.node,className:i.default.string,container:i.default.oneOfType([i.default.node,i.default.object])},e.default=s,e.usePortalContainer=c,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("prop-types"),require("@leafygreen-ui/hooks")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","prop-types","@leafygreen-ui/hooks"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@leafygreen-ui/portal"]={},e.React,e["react-dom"],e.PropTypes,e["@leafygreen-ui/hooks"])}(this,(function(e,t,r,n,o){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(t),i=a(n);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,u,i=[],l=!0,f=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(i.push(n.value),i.length!==t);l=!0);}catch(e){f=!0,o=e}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(f)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e){var t=l(u.default.useState(),2),r=t[0],n=t[1];return o.useIsomorphicLayoutEffect((function(){if(!e){var t=document.createElement("div");return document.body.appendChild(t),n(t),function(){t.remove()}}n(e)}),[e]),r}function s(e){var t,n=c(null!==(t=e.container)&&void 0!==t?t:void 0);return o.useIsomorphicLayoutEffect((function(){var t;n&&!e.container&&(n.className=null!==(t=e.className)&&void 0!==t?t:"")}),[n,e.container,e.className]),n?r.createPortal(e.children,n):null}s.displayName="Portal",s.propTypes={children:i.default.node,className:i.default.string,container:i.default.oneOfType([i.default.node,i.default.object])},e.default=s,e.usePortalContainer=c,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=index.js.map
{
"name": "@leafygreen-ui/portal",
"version": "4.1.4",
"version": "4.1.5",
"description": "LeafyGreen UI Kit Portal",

@@ -16,3 +16,5 @@ "main": "./dist/index.js",

"scripts": {
"build": "../../node_modules/.bin/rollup --config ../../rollup.config.js"
"build": "lg build-package",
"tsc": "lg build-ts",
"docs": "lg build-tsdoc"
},

@@ -27,4 +29,4 @@ "license": "Apache-2.0",

"dependencies": {
"@leafygreen-ui/hooks": "^7.7.5",
"@leafygreen-ui/lib": "^10.4.0"
"@leafygreen-ui/hooks": "^7.7.6",
"@leafygreen-ui/lib": "^10.4.1"
},

@@ -41,4 +43,4 @@ "gitHead": "dd71a2d404218ccec2e657df9c0263dc1c15b9e0",

"devDependencies": {
"@leafygreen-ui/emotion": "^4.0.4"
"@leafygreen-ui/emotion": "^4.0.5"
}
}
}
{
"extends": "../../package.tsconfig.json",
"compilerOptions": {
"extends": "@lg-tools/build/config/package.tsconfig.json",
"compilerOptions": {
"declarationDir": "dist",
"outDir": "dist",
"rootDir": "src"
"rootDir": "src",
"baseUrl": ".",
"paths": {
"@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"],
"@leafygreen-ui/*": ["../*/src"]
}
},

@@ -11,2 +16,3 @@ "include": [

],
"exclude": ["**/*.spec.*", "**/*.story.*"],
"references": [

@@ -13,0 +19,0 @@ {

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