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

@radix-ui/react-portal

Package Overview
Dependencies
Maintainers
8
Versions
197
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-portal - npm Package Compare versions

Comparing version 0.1.2-rc.11 to 0.1.2-rc.12

2

dist/index.js

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

var e,t,r=require("@radix-ui/react-primitive").Primitive,o=require("@radix-ui/react-use-layout-effect").useLayoutEffect,l=a(require("react-dom")),i=(e={},t=require("react"),Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})})),e),n=a(require("@babel/runtime/helpers/extends"));function a(e){return e&&e.__esModule?e.default:e}const u=/*#__PURE__*/i.forwardRef(((e,t)=>{var a,u;const{containerRef:d,style:c,...s}=e,b=null!==(a=null==d?void 0:d.current)&&void 0!==a?a:null===globalThis||void 0===globalThis||null===(u=globalThis.document)||void 0===u?void 0:u.body,[,f]=i.useState({});return o((()=>{f({})}),[]),b?/*#__PURE__*/l.createPortal(/*#__PURE__*/i.createElement(r.div,n({"data-radix-portal":""},s,{ref:t,style:b===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...c}:void 0})),b):null}));exports.Portal=u;exports.UnstablePortal=e=>{var t;const{container:r=(null===globalThis||void 0===globalThis||null===(t=globalThis.document)||void 0===t?void 0:t.body),children:o}=e;return r?/*#__PURE__*/l.createPortal(/*#__PURE__*/i.createElement(i.Fragment,null,o),r):null};const d=u;exports.Root=d;
var e,t,r=require("@radix-ui/react-primitive").Primitive,o=require("@radix-ui/react-use-layout-effect").useLayoutEffect,l=a(require("react-dom")),n=(e={},t=require("react"),Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})})),e),i=a(require("@babel/runtime/helpers/extends"));function a(e){return e&&e.__esModule?e.default:e}const u=/*#__PURE__*/n.forwardRef(((e,t)=>{var a,u;const{containerRef:d,style:c,...s}=e,b=null!==(a=null==d?void 0:d.current)&&void 0!==a?a:null===globalThis||void 0===globalThis||null===(u=globalThis.document)||void 0===u?void 0:u.body,[,f]=n.useState({});return o((()=>{f({})}),[]),b?/*#__PURE__*/l.createPortal(/*#__PURE__*/n.createElement(r.div,i({"data-radix-portal":""},s,{ref:t,style:b===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...c}:void 0})),b):null}));exports.Portal=u;const d=e=>{var t;const{container:r=(null===globalThis||void 0===globalThis||null===(t=globalThis.document)||void 0===t?void 0:t.body),children:o}=e;return r?/*#__PURE__*/l.createPortal(/*#__PURE__*/n.createElement(n.Fragment,null,o),r):null};exports.UnstablePortal=d;const c=u;exports.Root=c;
//# sourceMappingURL=index.js.map
{
"name": "@radix-ui/react-portal",
"version": "0.1.2-rc.11",
"version": "0.1.2-rc.12",
"license": "MIT",

@@ -5,0 +5,0 @@ "source": "src/index.ts",

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