@atlaskit/portal 5.0.0 → 5.0.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 +8 -0
- package/dist/cjs/internal/utils/portal-dom-utils.js +2 -2
- package/dist/es2019/internal/utils/portal-dom-utils.js +1 -1
- package/dist/esm/internal/utils/portal-dom-utils.js +1 -1
- package/dist/types/internal/utils/portal-dom-utils.d.ts +0 -1
- package/dist/types-ts4.5/internal/utils/portal-dom-utils.d.ts +0 -1
- package/package.json +12 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/portal
|
|
2
2
|
|
|
3
|
+
## 5.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#119013](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119013)
|
|
8
|
+
[`57ff25f1ba1ff`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/57ff25f1ba1ff) -
|
|
9
|
+
Remove unused internal export and update dependencies.
|
|
10
|
+
|
|
3
11
|
## 5.0.0
|
|
4
12
|
|
|
5
13
|
### Major Changes
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.removePortalContainer = exports.
|
|
6
|
+
exports.removePortalContainer = exports.createPortalParent = exports.createContainer = exports.createAtlaskitPortal = exports.appendPortalContainerIfNotAppended = void 0;
|
|
7
7
|
var _constants = require("../constants");
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new portal container element with provided z-index and class name 'atlaskit-portal',
|
|
@@ -62,7 +62,7 @@ var appendPortalContainerIfNotAppended = exports.appendPortalContainerIfNotAppen
|
|
|
62
62
|
getPortalParent().appendChild(container);
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
var isDocumentDefined =
|
|
65
|
+
var isDocumentDefined = function isDocumentDefined() {
|
|
66
66
|
return document !== undefined;
|
|
67
67
|
};
|
|
68
68
|
var createAtlaskitPortal = exports.createAtlaskitPortal = function createAtlaskitPortal(zIndex) {
|
|
@@ -57,7 +57,7 @@ export const appendPortalContainerIfNotAppended = container => {
|
|
|
57
57
|
getPortalParent().appendChild(container);
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
const isDocumentDefined = () => {
|
|
61
61
|
return document !== undefined;
|
|
62
62
|
};
|
|
63
63
|
export const createAtlaskitPortal = zIndex => {
|
|
@@ -57,7 +57,7 @@ export var appendPortalContainerIfNotAppended = function appendPortalContainerIf
|
|
|
57
57
|
getPortalParent().appendChild(container);
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
var isDocumentDefined = function isDocumentDefined() {
|
|
61
61
|
return document !== undefined;
|
|
62
62
|
};
|
|
63
63
|
export var createAtlaskitPortal = function createAtlaskitPortal(zIndex) {
|
|
@@ -15,6 +15,5 @@ export declare const removePortalContainer: (container: HTMLDivElement) => void;
|
|
|
15
15
|
* @param {HTMLDivElement | undefined} container - portal container to be added to portal parent container
|
|
16
16
|
*/
|
|
17
17
|
export declare const appendPortalContainerIfNotAppended: (container: HTMLDivElement) => void;
|
|
18
|
-
export declare const isDocumentDefined: () => boolean;
|
|
19
18
|
export declare const createAtlaskitPortal: (zIndex: number | string) => HTMLDivElement | undefined;
|
|
20
19
|
export declare const createPortalParent: () => Element | undefined;
|
|
@@ -15,6 +15,5 @@ export declare const removePortalContainer: (container: HTMLDivElement) => void;
|
|
|
15
15
|
* @param {HTMLDivElement | undefined} container - portal container to be added to portal parent container
|
|
16
16
|
*/
|
|
17
17
|
export declare const appendPortalContainerIfNotAppended: (container: HTMLDivElement) => void;
|
|
18
|
-
export declare const isDocumentDefined: () => boolean;
|
|
19
18
|
export declare const createAtlaskitPortal: (zIndex: number | string) => HTMLDivElement | undefined;
|
|
20
19
|
export declare const createPortalParent: () => Element | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/portal",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "A wrapper for rendering components in React portals.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,10 +48,20 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@af/accessibility-testing": "*",
|
|
50
50
|
"@af/integration-testing": "*",
|
|
51
|
+
"@atlaskit/button": "^21.1.0",
|
|
52
|
+
"@atlaskit/code": "^16.0.0",
|
|
53
|
+
"@atlaskit/docs": "*",
|
|
51
54
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
55
|
+
"@atlaskit/flag": "^16.1.0",
|
|
56
|
+
"@atlaskit/icon": "^24.1.0",
|
|
57
|
+
"@atlaskit/inline-dialog": "^17.0.0",
|
|
58
|
+
"@atlaskit/link": "^3.0.0",
|
|
52
59
|
"@atlaskit/modal-dialog": "^13.0.0",
|
|
60
|
+
"@atlaskit/onboarding": "^13.0.1",
|
|
61
|
+
"@atlaskit/primitives": "^14.1.0",
|
|
62
|
+
"@atlaskit/section-message": "^8.0.0",
|
|
53
63
|
"@atlaskit/ssr": "*",
|
|
54
|
-
"@atlaskit/tokens": "^4.
|
|
64
|
+
"@atlaskit/tokens": "^4.2.0",
|
|
55
65
|
"@atlaskit/tooltip": "^20.0.0",
|
|
56
66
|
"@atlaskit/visual-regression": "*",
|
|
57
67
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
@@ -60,7 +70,6 @@
|
|
|
60
70
|
"@testing-library/react-hooks": "^8.0.1",
|
|
61
71
|
"bind-event-listener": "^3.0.0",
|
|
62
72
|
"raf-stub": "^2.0.1",
|
|
63
|
-
"storybook-addon-performance": "^0.17.3",
|
|
64
73
|
"typescript": "~5.4.2"
|
|
65
74
|
},
|
|
66
75
|
"keywords": [
|