@atlaskit/popup 1.6.0 → 1.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,11 @@
1
1
  # @atlaskit/popup
2
2
 
3
+ ## 1.6.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
  ## 1.6.0
4
10
 
5
11
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popup",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popup",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/popup",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "sideEffects": false
5
5
  }
@@ -6,8 +6,8 @@ export interface TriggerProps {
6
6
  'aria-expanded': boolean;
7
7
  'aria-haspopup': boolean;
8
8
  }
9
- export declare type PopupRef = HTMLDivElement | null;
10
- export declare type TriggerRef = HTMLElement | HTMLButtonElement | null;
9
+ export type PopupRef = HTMLDivElement | null;
10
+ export type TriggerRef = HTMLElement | HTMLButtonElement | null;
11
11
  export interface ContentProps {
12
12
  /**
13
13
  * Will reposition the popup if any of the content has changed.
@@ -151,16 +151,16 @@ export interface PopupProps extends BaseProps {
151
151
  export interface PopperWrapperProps extends BaseProps {
152
152
  triggerRef: TriggerRef;
153
153
  }
154
- export declare type CloseManagerHook = Pick<PopupProps, 'isOpen' | 'onClose'> & {
154
+ export type CloseManagerHook = Pick<PopupProps, 'isOpen' | 'onClose'> & {
155
155
  popupRef: PopupRef;
156
156
  triggerRef: TriggerRef;
157
157
  shouldUseCaptureOnOutsideClick?: boolean;
158
158
  };
159
- export declare type FocusManagerHook = {
159
+ export type FocusManagerHook = {
160
160
  popupRef: PopupRef;
161
161
  initialFocusRef: HTMLElement | null;
162
162
  };
163
- export declare type RepositionOnUpdateProps = {
163
+ export type RepositionOnUpdateProps = {
164
164
  update: PopperChildrenProps['update'];
165
165
  };
166
166
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/popup",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "A popup displays brief content in an overlay.",
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
  "af:exports": {
@@ -31,7 +39,7 @@
31
39
  "@atlaskit/popper": "^5.5.0",
32
40
  "@atlaskit/portal": "^4.3.0",
33
41
  "@atlaskit/theme": "^12.5.0",
34
- "@atlaskit/tokens": "^1.3.0",
42
+ "@atlaskit/tokens": "^1.4.0",
35
43
  "@babel/runtime": "^7.0.0",
36
44
  "@emotion/react": "^11.7.1",
37
45
  "bind-event-listener": "^2.1.1",
@@ -62,7 +70,7 @@
62
70
  "raf-stub": "^2.0.1",
63
71
  "react-dom": "^16.8.0",
64
72
  "storybook-addon-performance": "^0.16.0",
65
- "typescript": "4.5.5",
73
+ "typescript": "~4.9.5",
66
74
  "wait-for-expect": "^1.2.0"
67
75
  },
68
76
  "keywords": [
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/types.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/types.d.ts"
11
+ "../dist/types-ts4.5/types.d.ts"
12
12
  ]
13
13
  }
14
14
  }