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

@atlaskit/portal

Package Overview
Dependencies
Maintainers
0
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/portal - npm Package Compare versions

Comparing version 4.6.0 to 4.6.1

8

CHANGELOG.md
# @atlaskit/portal
## 4.6.1
### Patch Changes
- [#113286](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113286)
[`5e96c34106b2e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5e96c34106b2e) -
DSP-19412 Add optional chaining to document.body function call to resolve type errors
## 4.6.0

@@ -4,0 +12,0 @@

3

dist/cjs/internal/utils/portal-dom-utils.js

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

if (!parentElement) {
var _getBody;
var parent = document.createElement('div');

@@ -42,3 +43,3 @@ parent.className = _constants.portalParentClassName;

parent.style.display = 'flex';
getBody().appendChild(parent);
(_getBody = getBody()) === null || _getBody === void 0 || _getBody.appendChild(parent);
return parent;

@@ -45,0 +46,0 @@ }

@@ -31,2 +31,3 @@ import { portalClassName, portalParentClassName, portalParentSelector } from '../constants';

if (!parentElement) {
var _getBody;
const parent = document.createElement('div');

@@ -37,3 +38,3 @@ parent.className = portalParentClassName;

parent.style.display = 'flex';
getBody().appendChild(parent);
(_getBody = getBody()) === null || _getBody === void 0 ? void 0 : _getBody.appendChild(parent);
return parent;

@@ -40,0 +41,0 @@ }

@@ -31,2 +31,3 @@ import { portalClassName, portalParentClassName, portalParentSelector } from '../constants';

if (!parentElement) {
var _getBody;
var parent = document.createElement('div');

@@ -37,3 +38,3 @@ parent.className = portalParentClassName;

parent.style.display = 'flex';
getBody().appendChild(parent);
(_getBody = getBody()) === null || _getBody === void 0 || _getBody.appendChild(parent);
return parent;

@@ -40,0 +41,0 @@ }

{
"name": "@atlaskit/portal",
"version": "4.6.0",
"version": "4.6.1",
"description": "A wrapper for rendering components in React portals.",

@@ -42,3 +42,3 @@ "publishConfig": {

"dependencies": {
"@atlaskit/theme": "^12.10.0",
"@atlaskit/theme": "^12.11.0",
"@babel/runtime": "^7.0.0"

@@ -56,3 +56,3 @@ },

"@atlaskit/ssr": "*",
"@atlaskit/tokens": "^1.51.0",
"@atlaskit/tokens": "^1.53.0",
"@atlaskit/tooltip": "^18.5.0",

@@ -59,0 +59,0 @@ "@atlaskit/visual-regression": "*",

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