@atlaskit/popup 1.5.5 → 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 +16 -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/types.d.ts +5 -5
- package/package.json +27 -18
- package/types/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
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
|
+
|
|
9
|
+
## 1.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 1.5.5
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/dist/types/types.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export interface TriggerProps {
|
|
|
6
6
|
'aria-expanded': boolean;
|
|
7
7
|
'aria-haspopup': boolean;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
10
|
-
export
|
|
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
|
|
154
|
+
export type CloseManagerHook = Pick<PopupProps, 'isOpen' | 'onClose'> & {
|
|
155
155
|
popupRef: PopupRef;
|
|
156
156
|
triggerRef: TriggerRef;
|
|
157
157
|
shouldUseCaptureOnOutsideClick?: boolean;
|
|
158
158
|
};
|
|
159
|
-
export
|
|
159
|
+
export type FocusManagerHook = {
|
|
160
160
|
popupRef: PopupRef;
|
|
161
161
|
initialFocusRef: HTMLElement | null;
|
|
162
162
|
};
|
|
163
|
-
export
|
|
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.
|
|
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": {
|
|
@@ -19,7 +27,6 @@
|
|
|
19
27
|
"./types": "./src/types.tsx"
|
|
20
28
|
},
|
|
21
29
|
"atlassian": {
|
|
22
|
-
"disableProductCI": true,
|
|
23
30
|
"team": "Design System Team",
|
|
24
31
|
"releaseModel": "scheduled",
|
|
25
32
|
"website": {
|
|
@@ -28,11 +35,11 @@
|
|
|
28
35
|
}
|
|
29
36
|
},
|
|
30
37
|
"dependencies": {
|
|
31
|
-
"@atlaskit/ds-lib": "^2.
|
|
32
|
-
"@atlaskit/popper": "^5.
|
|
33
|
-
"@atlaskit/portal": "^4.
|
|
34
|
-
"@atlaskit/theme": "^12.
|
|
35
|
-
"@atlaskit/tokens": "^1.
|
|
38
|
+
"@atlaskit/ds-lib": "^2.2.0",
|
|
39
|
+
"@atlaskit/popper": "^5.5.0",
|
|
40
|
+
"@atlaskit/portal": "^4.3.0",
|
|
41
|
+
"@atlaskit/theme": "^12.5.0",
|
|
42
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
36
43
|
"@babel/runtime": "^7.0.0",
|
|
37
44
|
"@emotion/react": "^11.7.1",
|
|
38
45
|
"bind-event-listener": "^2.1.1",
|
|
@@ -43,16 +50,16 @@
|
|
|
43
50
|
"react-dom": "^16.8.0"
|
|
44
51
|
},
|
|
45
52
|
"devDependencies": {
|
|
46
|
-
"@atlaskit/button": "^16.
|
|
53
|
+
"@atlaskit/button": "^16.7.0",
|
|
47
54
|
"@atlaskit/docs": "*",
|
|
48
|
-
"@atlaskit/icon": "^21.
|
|
49
|
-
"@atlaskit/menu": "^1.
|
|
50
|
-
"@atlaskit/radio": "^5.
|
|
51
|
-
"@atlaskit/section-message": "^6.
|
|
52
|
-
"@atlaskit/select": "^16.
|
|
55
|
+
"@atlaskit/icon": "^21.12.0",
|
|
56
|
+
"@atlaskit/menu": "^1.6.0",
|
|
57
|
+
"@atlaskit/radio": "^5.5.0",
|
|
58
|
+
"@atlaskit/section-message": "^6.4.0",
|
|
59
|
+
"@atlaskit/select": "^16.2.0",
|
|
53
60
|
"@atlaskit/ssr": "*",
|
|
54
|
-
"@atlaskit/textfield": "^5.
|
|
55
|
-
"@atlaskit/toggle": "^12.
|
|
61
|
+
"@atlaskit/textfield": "^5.4.0",
|
|
62
|
+
"@atlaskit/toggle": "^12.6.0",
|
|
56
63
|
"@atlaskit/visual-regression": "*",
|
|
57
64
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
58
65
|
"@testing-library/dom": "^8.17.1",
|
|
@@ -63,7 +70,7 @@
|
|
|
63
70
|
"raf-stub": "^2.0.1",
|
|
64
71
|
"react-dom": "^16.8.0",
|
|
65
72
|
"storybook-addon-performance": "^0.16.0",
|
|
66
|
-
"typescript": "4.
|
|
73
|
+
"typescript": "~4.9.5",
|
|
67
74
|
"wait-for-expect": "^1.2.0"
|
|
68
75
|
},
|
|
69
76
|
"keywords": [
|
|
@@ -80,8 +87,10 @@
|
|
|
80
87
|
"design-system": "v1",
|
|
81
88
|
"ui-components": "lite-mode",
|
|
82
89
|
"analytics": "analytics-next",
|
|
83
|
-
"design-tokens":
|
|
84
|
-
|
|
90
|
+
"design-tokens": [
|
|
91
|
+
"color",
|
|
92
|
+
"spacing"
|
|
93
|
+
],
|
|
85
94
|
"deprecation": "no-deprecated-imports",
|
|
86
95
|
"styling": [
|
|
87
96
|
"static",
|