@atlaskit/portal
Advanced tools
Comparing version 4.6.0 to 4.6.1
# @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 @@ |
@@ -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": "*", |
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
67860
801
Updated@atlaskit/theme@^12.11.0