@atlaskit/portal 4.3.0 → 4.3.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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/internal/types.d.ts +3 -3
- package/dist/types/types.d.ts +1 -1
- package/package.json +11 -4
- package/types/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -2,18 +2,18 @@ import type { Layers } from '@atlaskit/theme/types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Named layers of all z-index used in the Atlassian Design System.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type LayerName = keyof Layers;
|
|
6
6
|
/**
|
|
7
7
|
* Creates a new type by reversing the key and values of the passed type
|
|
8
8
|
* @param {T} T - the generic type to be reversed. Each members of it should be a Record in key-value form
|
|
9
9
|
* @returns - The reversed type
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
type ReverseMap<T extends Record<keyof T, T[keyof T]>> = {
|
|
12
12
|
[P in T[keyof T]]: {
|
|
13
13
|
[K in keyof T]: T[K] extends P ? K : never;
|
|
14
14
|
}[keyof T];
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type ReversedLayers = ReverseMap<Layers>;
|
|
17
17
|
/**
|
|
18
18
|
* Interface for event to be fired on Atlassian Portal component mount and unmount
|
|
19
19
|
*/
|
package/dist/types/types.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ export interface PortalProps {
|
|
|
10
10
|
/**
|
|
11
11
|
* Custom event object that will be fired when Atlassian Portal component is mounted and unmounted
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type PortalEvent = CustomEvent<PortalEventDetail>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/portal",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"description": "A wrapper for rendering components in React portals.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.tsx",
|
|
17
25
|
"atlassian": {
|
|
@@ -47,7 +55,7 @@
|
|
|
47
55
|
"@atlaskit/onboarding": "^10.8.0",
|
|
48
56
|
"@atlaskit/section-message": "^6.4.0",
|
|
49
57
|
"@atlaskit/ssr": "*",
|
|
50
|
-
"@atlaskit/tokens": "^1.
|
|
58
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
51
59
|
"@atlaskit/tooltip": "^17.8.0",
|
|
52
60
|
"@atlaskit/visual-regression": "*",
|
|
53
61
|
"@atlaskit/webdriver-runner": "*",
|
|
@@ -55,10 +63,9 @@
|
|
|
55
63
|
"@emotion/react": "^11.7.1",
|
|
56
64
|
"@testing-library/react": "^12.1.5",
|
|
57
65
|
"bind-event-listener": "^2.1.1",
|
|
58
|
-
"enzyme": "^3.10.0",
|
|
59
66
|
"raf-stub": "^2.0.1",
|
|
60
67
|
"storybook-addon-performance": "^0.16.0",
|
|
61
|
-
"typescript": "4.
|
|
68
|
+
"typescript": "~4.9.5"
|
|
62
69
|
},
|
|
63
70
|
"keywords": [
|
|
64
71
|
"atlaskit",
|
package/types/package.json
CHANGED