@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/portal
2
2
 
3
+ ## 4.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
8
+
3
9
  ## 4.3.0
4
10
 
5
11
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/portal",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/portal",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/portal",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "sideEffects": false
5
5
  }
@@ -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 declare type LayerName = keyof Layers;
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
- declare type ReverseMap<T extends Record<keyof T, T[keyof T]>> = {
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 declare type ReversedLayers = ReverseMap<Layers>;
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
  */
@@ -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 declare type PortalEvent = CustomEvent<PortalEventDetail>;
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.0",
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.3.0",
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.5.5"
68
+ "typescript": "~4.9.5"
62
69
  },
63
70
  "keywords": [
64
71
  "atlaskit",
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/types.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/entry-points/types.d.ts"
11
+ "../dist/types-ts4.5/entry-points/types.d.ts"
12
12
  ]
13
13
  }
14
14
  }