@atlaskit/portal 4.6.0 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/portal
|
|
2
2
|
|
|
3
|
+
## 4.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#113286](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113286)
|
|
8
|
+
[`5e96c34106b2e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5e96c34106b2e) -
|
|
9
|
+
DSP-19412 Add optional chaining to document.body function call to resolve type errors
|
|
10
|
+
|
|
3
11
|
## 4.6.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
@@ -33,12 +33,13 @@ var getBody = function getBody() {
|
|
|
33
33
|
var getPortalParent = function getPortalParent() {
|
|
34
34
|
var parentElement = document.querySelector(_constants.portalParentSelector);
|
|
35
35
|
if (!parentElement) {
|
|
36
|
+
var _getBody;
|
|
36
37
|
var parent = document.createElement('div');
|
|
37
38
|
parent.className = _constants.portalParentClassName;
|
|
38
39
|
// we are setting display to flex because we want each portal to create a new stacking context
|
|
39
40
|
// See https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
|
|
40
41
|
parent.style.display = 'flex';
|
|
41
|
-
getBody().appendChild(parent);
|
|
42
|
+
(_getBody = getBody()) === null || _getBody === void 0 || _getBody.appendChild(parent);
|
|
42
43
|
return parent;
|
|
43
44
|
}
|
|
44
45
|
return parentElement;
|
|
@@ -28,12 +28,13 @@ const getBody = () => {
|
|
|
28
28
|
const getPortalParent = () => {
|
|
29
29
|
const parentElement = document.querySelector(portalParentSelector);
|
|
30
30
|
if (!parentElement) {
|
|
31
|
+
var _getBody;
|
|
31
32
|
const parent = document.createElement('div');
|
|
32
33
|
parent.className = portalParentClassName;
|
|
33
34
|
// we are setting display to flex because we want each portal to create a new stacking context
|
|
34
35
|
// See https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
|
|
35
36
|
parent.style.display = 'flex';
|
|
36
|
-
getBody().appendChild(parent);
|
|
37
|
+
(_getBody = getBody()) === null || _getBody === void 0 ? void 0 : _getBody.appendChild(parent);
|
|
37
38
|
return parent;
|
|
38
39
|
}
|
|
39
40
|
return parentElement;
|
|
@@ -28,12 +28,13 @@ var getBody = function getBody() {
|
|
|
28
28
|
var getPortalParent = function getPortalParent() {
|
|
29
29
|
var parentElement = document.querySelector(portalParentSelector);
|
|
30
30
|
if (!parentElement) {
|
|
31
|
+
var _getBody;
|
|
31
32
|
var parent = document.createElement('div');
|
|
32
33
|
parent.className = portalParentClassName;
|
|
33
34
|
// we are setting display to flex because we want each portal to create a new stacking context
|
|
34
35
|
// See https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
|
|
35
36
|
parent.style.display = 'flex';
|
|
36
|
-
getBody().appendChild(parent);
|
|
37
|
+
(_getBody = getBody()) === null || _getBody === void 0 || _getBody.appendChild(parent);
|
|
37
38
|
return parent;
|
|
38
39
|
}
|
|
39
40
|
return parentElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/portal",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.1",
|
|
4
4
|
"description": "A wrapper for rendering components in React portals.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
".": "./src/index.tsx"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@atlaskit/theme": "^12.
|
|
42
|
+
"@atlaskit/theme": "^12.11.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
53
53
|
"@atlaskit/modal-dialog": "^12.14.0",
|
|
54
54
|
"@atlaskit/ssr": "*",
|
|
55
|
-
"@atlaskit/tokens": "^1.
|
|
55
|
+
"@atlaskit/tokens": "^1.53.0",
|
|
56
56
|
"@atlaskit/tooltip": "^18.5.0",
|
|
57
57
|
"@atlaskit/visual-regression": "*",
|
|
58
58
|
"@emotion/react": "^11.7.1",
|