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

@leafygreen-ui/portal

Package Overview
Dependencies
Maintainers
3
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 1.1.8 to 2.0.0

dist/index.node.js

11

CHANGELOG.md
# @leafygreen-ui/portal
## 2.0.0
### Major Changes
- 464c09d: Introduces SSR compatibility though a change to our build process and files
### Patch Changes
- Updated dependencies [464c09d]
- @leafygreen-ui/lib@4.0.0
## 1.1.8

@@ -4,0 +15,0 @@

2

dist/Portal.d.ts

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

/// <reference types="@storybook/theming/node_modules/@emotion/core" />
/// <reference types="@emotion/core" />
import { Component } from 'react';

@@ -3,0 +3,0 @@ import PropTypes from 'prop-types';

{
"name": "@leafygreen-ui/portal",
"version": "1.1.8",
"version": "2.0.0",
"description": "LeafyGreen UI Kit Portal",
"main": "./dist/index.js",
"browser": "./dist/index.web.js",
"main": "./dist/index.node.js",
"types": "./dist/index.d.ts",

@@ -18,5 +19,5 @@ "scripts": {

"dependencies": {
"@leafygreen-ui/lib": "^3.1.0"
"@leafygreen-ui/lib": "^4.0.0"
},
"gitHead": "dd71a2d404218ccec2e657df9c0263dc1c15b9e0"
}

@@ -30,16 +30,5 @@ # Portal

### container
**Type:** `DOM Node`
**Default:** `document.createElement('div')`
Sets the container node, which will contain all of the portaled content. If no container is supplied, a div will be created and appened to the end of the `document.body`.
### children
**Type:** `Node`
**Default:** `null`
The children will be rendered inside of the portaled container.
| Prop | Type | Description | Default |
| ----------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| `container` | `DOM Node` | Sets the container node, which will contain all of the portaled content. If no container is supplied, a div will be created and apened to the end of the `document.body`. | `document.createElement('div')` |
| `children` | `node` | The children will be rendered inside of the portaled container. | |

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