@atlaskit/drawer 8.0.0 → 9.0.0
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 +9 -0
- package/dist/cjs/components/index.js +4 -6
- package/dist/es2019/components/index.js +4 -6
- package/dist/esm/components/index.js +4 -6
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/components/types.d.ts +0 -5
- package/dist/types-ts4.5/components/index.d.ts +1 -1
- package/dist/types-ts4.5/components/types.d.ts +0 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/drawer
|
|
2
2
|
|
|
3
|
+
## 9.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#142249](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/142249)
|
|
8
|
+
[`fee9fd211df7b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fee9fd211df7b) -
|
|
9
|
+
Remove deprecated prop `shouldUnmountOnExit` which was deprecated in version 7.1.9. This prop can
|
|
10
|
+
be safely removed from your code as it has been non-functional for several years.
|
|
11
|
+
|
|
3
12
|
## 8.0.0
|
|
4
13
|
|
|
5
14
|
### Major Changes
|
|
@@ -57,7 +57,6 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
|
|
|
57
57
|
icon = _ref2.icon,
|
|
58
58
|
closeLabel = _ref2.closeLabel,
|
|
59
59
|
scrollContentLabel = _ref2.scrollContentLabel,
|
|
60
|
-
shouldUnmountOnExit = _ref2.shouldUnmountOnExit,
|
|
61
60
|
onCloseComplete = _ref2.onCloseComplete,
|
|
62
61
|
onOpenComplete = _ref2.onOpenComplete,
|
|
63
62
|
overrides = _ref2.overrides,
|
|
@@ -74,7 +73,7 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
|
|
|
74
73
|
action: 'dismissed',
|
|
75
74
|
componentName: 'drawer',
|
|
76
75
|
packageName: "@atlaskit/drawer",
|
|
77
|
-
packageVersion: "
|
|
76
|
+
packageVersion: "9.0.0",
|
|
78
77
|
analyticsData: {
|
|
79
78
|
trigger: 'escKey'
|
|
80
79
|
}
|
|
@@ -103,7 +102,7 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
|
|
|
103
102
|
action: 'dismissed',
|
|
104
103
|
componentName: 'drawer',
|
|
105
104
|
packageName: "@atlaskit/drawer",
|
|
106
|
-
packageVersion: "
|
|
105
|
+
packageVersion: "9.0.0",
|
|
107
106
|
analyticsData: {
|
|
108
107
|
trigger: 'blanket'
|
|
109
108
|
}
|
|
@@ -115,7 +114,7 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
|
|
|
115
114
|
action: 'dismissed',
|
|
116
115
|
componentName: 'drawer',
|
|
117
116
|
packageName: "@atlaskit/drawer",
|
|
118
|
-
packageVersion: "
|
|
117
|
+
packageVersion: "9.0.0",
|
|
119
118
|
analyticsData: {
|
|
120
119
|
trigger: 'backButton'
|
|
121
120
|
}
|
|
@@ -140,8 +139,7 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
|
|
|
140
139
|
width: width,
|
|
141
140
|
enterFrom: enterFrom,
|
|
142
141
|
label: label,
|
|
143
|
-
titleId: titleId
|
|
144
|
-
shouldUnmountOnExit: shouldUnmountOnExit
|
|
142
|
+
titleId: titleId
|
|
145
143
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
146
144
|
,
|
|
147
145
|
overrides: overrides,
|
|
@@ -43,7 +43,6 @@ export const Drawer = ({
|
|
|
43
43
|
icon,
|
|
44
44
|
closeLabel,
|
|
45
45
|
scrollContentLabel,
|
|
46
|
-
shouldUnmountOnExit,
|
|
47
46
|
onCloseComplete,
|
|
48
47
|
onOpenComplete,
|
|
49
48
|
// eslint-disable-next-line @repo/internal/react/consistent-props-definitions
|
|
@@ -59,7 +58,7 @@ export const Drawer = ({
|
|
|
59
58
|
action: 'dismissed',
|
|
60
59
|
componentName: 'drawer',
|
|
61
60
|
packageName: "@atlaskit/drawer",
|
|
62
|
-
packageVersion: "
|
|
61
|
+
packageVersion: "9.0.0",
|
|
63
62
|
analyticsData: {
|
|
64
63
|
trigger: 'escKey'
|
|
65
64
|
}
|
|
@@ -86,7 +85,7 @@ export const Drawer = ({
|
|
|
86
85
|
action: 'dismissed',
|
|
87
86
|
componentName: 'drawer',
|
|
88
87
|
packageName: "@atlaskit/drawer",
|
|
89
|
-
packageVersion: "
|
|
88
|
+
packageVersion: "9.0.0",
|
|
90
89
|
analyticsData: {
|
|
91
90
|
trigger: 'blanket'
|
|
92
91
|
}
|
|
@@ -96,7 +95,7 @@ export const Drawer = ({
|
|
|
96
95
|
action: 'dismissed',
|
|
97
96
|
componentName: 'drawer',
|
|
98
97
|
packageName: "@atlaskit/drawer",
|
|
99
|
-
packageVersion: "
|
|
98
|
+
packageVersion: "9.0.0",
|
|
100
99
|
analyticsData: {
|
|
101
100
|
trigger: 'backButton'
|
|
102
101
|
}
|
|
@@ -121,8 +120,7 @@ export const Drawer = ({
|
|
|
121
120
|
width: width,
|
|
122
121
|
enterFrom: enterFrom,
|
|
123
122
|
label: label,
|
|
124
|
-
titleId: titleId
|
|
125
|
-
shouldUnmountOnExit: shouldUnmountOnExit
|
|
123
|
+
titleId: titleId
|
|
126
124
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
127
125
|
,
|
|
128
126
|
overrides: overrides,
|
|
@@ -46,7 +46,6 @@ export var Drawer = function Drawer(_ref2) {
|
|
|
46
46
|
icon = _ref2.icon,
|
|
47
47
|
closeLabel = _ref2.closeLabel,
|
|
48
48
|
scrollContentLabel = _ref2.scrollContentLabel,
|
|
49
|
-
shouldUnmountOnExit = _ref2.shouldUnmountOnExit,
|
|
50
49
|
onCloseComplete = _ref2.onCloseComplete,
|
|
51
50
|
onOpenComplete = _ref2.onOpenComplete,
|
|
52
51
|
overrides = _ref2.overrides,
|
|
@@ -63,7 +62,7 @@ export var Drawer = function Drawer(_ref2) {
|
|
|
63
62
|
action: 'dismissed',
|
|
64
63
|
componentName: 'drawer',
|
|
65
64
|
packageName: "@atlaskit/drawer",
|
|
66
|
-
packageVersion: "
|
|
65
|
+
packageVersion: "9.0.0",
|
|
67
66
|
analyticsData: {
|
|
68
67
|
trigger: 'escKey'
|
|
69
68
|
}
|
|
@@ -92,7 +91,7 @@ export var Drawer = function Drawer(_ref2) {
|
|
|
92
91
|
action: 'dismissed',
|
|
93
92
|
componentName: 'drawer',
|
|
94
93
|
packageName: "@atlaskit/drawer",
|
|
95
|
-
packageVersion: "
|
|
94
|
+
packageVersion: "9.0.0",
|
|
96
95
|
analyticsData: {
|
|
97
96
|
trigger: 'blanket'
|
|
98
97
|
}
|
|
@@ -104,7 +103,7 @@ export var Drawer = function Drawer(_ref2) {
|
|
|
104
103
|
action: 'dismissed',
|
|
105
104
|
componentName: 'drawer',
|
|
106
105
|
packageName: "@atlaskit/drawer",
|
|
107
|
-
packageVersion: "
|
|
106
|
+
packageVersion: "9.0.0",
|
|
108
107
|
analyticsData: {
|
|
109
108
|
trigger: 'backButton'
|
|
110
109
|
}
|
|
@@ -129,8 +128,7 @@ export var Drawer = function Drawer(_ref2) {
|
|
|
129
128
|
width: width,
|
|
130
129
|
enterFrom: enterFrom,
|
|
131
130
|
label: label,
|
|
132
|
-
titleId: titleId
|
|
133
|
-
shouldUnmountOnExit: shouldUnmountOnExit
|
|
131
|
+
titleId: titleId
|
|
134
132
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
135
133
|
,
|
|
136
134
|
overrides: overrides,
|
|
@@ -9,5 +9,5 @@ import { type DrawerProps } from './types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/drawer/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/drawer/usage)
|
|
11
11
|
*/
|
|
12
|
-
export declare const Drawer: ({ width, isOpen, isFocusLockEnabled, shouldReturnFocus, autoFocusFirstElem, onKeyDown, onClose, testId, children, icon, closeLabel, scrollContentLabel,
|
|
12
|
+
export declare const Drawer: ({ width, isOpen, isFocusLockEnabled, shouldReturnFocus, autoFocusFirstElem, onKeyDown, onClose, testId, children, icon, closeLabel, scrollContentLabel, onCloseComplete, onOpenComplete, overrides, zIndex, label, titleId, enterFrom, }: DrawerProps) => JSX.Element | null;
|
|
13
13
|
export default Drawer;
|
|
@@ -56,11 +56,6 @@ export interface BaseProps {
|
|
|
56
56
|
* A callback function that will be called when the drawer has finished its close transition.
|
|
57
57
|
*/
|
|
58
58
|
onCloseComplete?: (node: HTMLElement | null) => void;
|
|
59
|
-
/**
|
|
60
|
-
* @deprecated Please avoid using this prop as we intend to remove the prop completely in a future release.
|
|
61
|
-
* Boolean that controls if drawer should be retained/discarded
|
|
62
|
-
*/
|
|
63
|
-
shouldUnmountOnExit?: boolean;
|
|
64
59
|
/**
|
|
65
60
|
* Avoid overrides whenever possible. The `overrides` prop allows granular customisation of the drawer. Both the sidebar and content components can be overridden.
|
|
66
61
|
*/
|
|
@@ -9,5 +9,5 @@ import { type DrawerProps } from './types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/drawer/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/drawer/usage)
|
|
11
11
|
*/
|
|
12
|
-
export declare const Drawer: ({ width, isOpen, isFocusLockEnabled, shouldReturnFocus, autoFocusFirstElem, onKeyDown, onClose, testId, children, icon, closeLabel, scrollContentLabel,
|
|
12
|
+
export declare const Drawer: ({ width, isOpen, isFocusLockEnabled, shouldReturnFocus, autoFocusFirstElem, onKeyDown, onClose, testId, children, icon, closeLabel, scrollContentLabel, onCloseComplete, onOpenComplete, overrides, zIndex, label, titleId, enterFrom, }: DrawerProps) => JSX.Element | null;
|
|
13
13
|
export default Drawer;
|
|
@@ -56,11 +56,6 @@ export interface BaseProps {
|
|
|
56
56
|
* A callback function that will be called when the drawer has finished its close transition.
|
|
57
57
|
*/
|
|
58
58
|
onCloseComplete?: (node: HTMLElement | null) => void;
|
|
59
|
-
/**
|
|
60
|
-
* @deprecated Please avoid using this prop as we intend to remove the prop completely in a future release.
|
|
61
|
-
* Boolean that controls if drawer should be retained/discarded
|
|
62
|
-
*/
|
|
63
|
-
shouldUnmountOnExit?: boolean;
|
|
64
59
|
/**
|
|
65
60
|
* Avoid overrides whenever possible. The `overrides` prop allows granular customisation of the drawer. Both the sidebar and content components can be overridden.
|
|
66
61
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/drawer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "A drawer is a panel that slides in from the left side of the screen.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
40
40
|
"@atlaskit/blanket": "^13.3.0",
|
|
41
41
|
"@atlaskit/button": "^20.1.0",
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
42
|
+
"@atlaskit/icon": "^22.18.0",
|
|
43
43
|
"@atlaskit/layering": "^0.4.0",
|
|
44
44
|
"@atlaskit/motion": "^1.9.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
46
46
|
"@atlaskit/portal": "^4.9.0",
|
|
47
47
|
"@atlaskit/theme": "^13.0.0",
|
|
48
|
-
"@atlaskit/tokens": "^1.
|
|
48
|
+
"@atlaskit/tokens": "^1.60.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"bind-event-listener": "^3.0.0",
|