@atlaskit/drawer 7.6.0 → 7.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 +50 -44
- package/dist/cjs/components/blanket.js +1 -2
- package/dist/cjs/components/index.js +4 -6
- package/dist/cjs/components/primitives/content.js +2 -3
- package/dist/cjs/components/primitives/drawer-wrapper.js +2 -4
- package/dist/cjs/components/primitives/focus-lock.js +1 -2
- package/dist/cjs/components/primitives/icon-button.js +1 -2
- package/dist/cjs/components/primitives/index.js +3 -4
- package/dist/cjs/components/primitives/sidebar.js +2 -3
- package/dist/cjs/components/utils.js +2 -3
- package/dist/cjs/constants.js +7 -13
- package/dist/es2019/components/index.js +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/primitives/index.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,48 +1,54 @@
|
|
|
1
1
|
# @atlaskit/drawer
|
|
2
2
|
|
|
3
|
+
## 7.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#40647](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40647) [`0de92f17021`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0de92f17021) - Bump react-focus-lock to latest version
|
|
8
|
+
|
|
3
9
|
## 7.6.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
6
12
|
|
|
7
|
-
- [`288b53175c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/288b53175c0) - [ux] We are testing focus trap behavior for drawer in screen reader mode behind a feature flag. Now focus is set to first element and does not go beyond the content of the modal dialog. If this fix is successful, it will be available in a later release.
|
|
13
|
+
- [#38517](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38517) [`288b53175c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/288b53175c0) - [ux] We are testing focus trap behavior for drawer in screen reader mode behind a feature flag. Now focus is set to first element and does not go beyond the content of the modal dialog. If this fix is successful, it will be available in a later release.
|
|
8
14
|
|
|
9
15
|
## 7.5.5
|
|
10
16
|
|
|
11
17
|
### Patch Changes
|
|
12
18
|
|
|
13
|
-
- [`ddb06fae577`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ddb06fae577) - Adds support for surface detection when using design tokens. Enabling children to be styled with the surface color of the drawer when using the `utility.elevation.surface.current` design token.
|
|
19
|
+
- [#39278](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39278) [`ddb06fae577`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ddb06fae577) - Adds support for surface detection when using design tokens. Enabling children to be styled with the surface color of the drawer when using the `utility.elevation.surface.current` design token.
|
|
14
20
|
- Updated dependencies
|
|
15
21
|
|
|
16
22
|
## 7.5.4
|
|
17
23
|
|
|
18
24
|
### Patch Changes
|
|
19
25
|
|
|
20
|
-
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
26
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
21
27
|
- Updated dependencies
|
|
22
28
|
|
|
23
29
|
## 7.5.3
|
|
24
30
|
|
|
25
31
|
### Patch Changes
|
|
26
32
|
|
|
27
|
-
- [`779727e307a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/779727e307a) - Internal change only. Replace all instances of Box with stable @atlaskit/primitives version.
|
|
33
|
+
- [#34922](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34922) [`779727e307a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/779727e307a) - Internal change only. Replace all instances of Box with stable @atlaskit/primitives version.
|
|
28
34
|
|
|
29
35
|
## 7.5.2
|
|
30
36
|
|
|
31
37
|
### Patch Changes
|
|
32
38
|
|
|
33
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
39
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
34
40
|
|
|
35
41
|
## 7.5.1
|
|
36
42
|
|
|
37
43
|
### Patch Changes
|
|
38
44
|
|
|
39
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
45
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
40
46
|
|
|
41
47
|
## 7.5.0
|
|
42
48
|
|
|
43
49
|
### Minor Changes
|
|
44
50
|
|
|
45
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
51
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
46
52
|
|
|
47
53
|
### Patch Changes
|
|
48
54
|
|
|
@@ -52,26 +58,26 @@
|
|
|
52
58
|
|
|
53
59
|
### Patch Changes
|
|
54
60
|
|
|
55
|
-
- [`4ba10567310`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ba10567310) - Internal changes.
|
|
61
|
+
- [#32211](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32211) [`4ba10567310`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ba10567310) - Internal changes.
|
|
56
62
|
|
|
57
63
|
## 7.4.13
|
|
58
64
|
|
|
59
65
|
### Patch Changes
|
|
60
66
|
|
|
61
|
-
- [`e0460d5d989`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e0460d5d989) - Usages of `process` are now guarded by a `typeof` check.
|
|
67
|
+
- [#32294](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32294) [`e0460d5d989`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e0460d5d989) - Usages of `process` are now guarded by a `typeof` check.
|
|
62
68
|
|
|
63
69
|
## 7.4.12
|
|
64
70
|
|
|
65
71
|
### Patch Changes
|
|
66
72
|
|
|
67
|
-
- [`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) - Upgrades component types to support React 18.
|
|
73
|
+
- [#31206](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31206) [`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) - Upgrades component types to support React 18.
|
|
68
74
|
- Updated dependencies
|
|
69
75
|
|
|
70
76
|
## 7.4.11
|
|
71
77
|
|
|
72
78
|
### Patch Changes
|
|
73
79
|
|
|
74
|
-
- [`74c1b81a476`](https://bitbucket.org/atlassian/atlassian-frontend/commits/74c1b81a476) - Replaces use of `gridSize` with space tokens. There is no expected visual change.
|
|
80
|
+
- [#31338](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31338) [`74c1b81a476`](https://bitbucket.org/atlassian/atlassian-frontend/commits/74c1b81a476) - Replaces use of `gridSize` with space tokens. There is no expected visual change.
|
|
75
81
|
|
|
76
82
|
## 7.4.10
|
|
77
83
|
|
|
@@ -89,13 +95,13 @@
|
|
|
89
95
|
|
|
90
96
|
### Patch Changes
|
|
91
97
|
|
|
92
|
-
- [`18aeca8c199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18aeca8c199) - Internal change to update token references. There is no expected behaviour or visual change.
|
|
98
|
+
- [#29390](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29390) [`18aeca8c199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18aeca8c199) - Internal change to update token references. There is no expected behaviour or visual change.
|
|
93
99
|
|
|
94
100
|
## 7.4.7
|
|
95
101
|
|
|
96
102
|
### Patch Changes
|
|
97
103
|
|
|
98
|
-
- [`4ee60bafc6d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ee60bafc6d) - ED-16603: Remove tooltips from VR tests and make them opt in. To opt-in, add `allowedSideEffects` when loading the page.
|
|
104
|
+
- [#29227](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29227) [`4ee60bafc6d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ee60bafc6d) - ED-16603: Remove tooltips from VR tests and make them opt in. To opt-in, add `allowedSideEffects` when loading the page.
|
|
99
105
|
|
|
100
106
|
## 7.4.6
|
|
101
107
|
|
|
@@ -107,7 +113,7 @@
|
|
|
107
113
|
|
|
108
114
|
### Patch Changes
|
|
109
115
|
|
|
110
|
-
- [`021eea6cdc6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/021eea6cdc6) - Remove unnecessary styles. There is no expected behaviour change for consumers.
|
|
116
|
+
- [#28575](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28575) [`021eea6cdc6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/021eea6cdc6) - Remove unnecessary styles. There is no expected behaviour change for consumers.
|
|
111
117
|
|
|
112
118
|
## 7.4.4
|
|
113
119
|
|
|
@@ -125,7 +131,7 @@
|
|
|
125
131
|
|
|
126
132
|
### Patch Changes
|
|
127
133
|
|
|
128
|
-
- [`5bd499c254f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5bd499c254f) - Fix zIndex stacking of internal Blanket component during css transition
|
|
134
|
+
- [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712) [`5bd499c254f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5bd499c254f) - Fix zIndex stacking of internal Blanket component during css transition
|
|
129
135
|
|
|
130
136
|
## 7.4.1
|
|
131
137
|
|
|
@@ -137,7 +143,7 @@
|
|
|
137
143
|
|
|
138
144
|
### Minor Changes
|
|
139
145
|
|
|
140
|
-
- [`3d5675d420e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3d5675d420e) - [ux] Prevents the background from being scrollable while a drawer is open.
|
|
146
|
+
- [#25860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25860) [`3d5675d420e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3d5675d420e) - [ux] Prevents the background from being scrollable while a drawer is open.
|
|
141
147
|
|
|
142
148
|
### Patch Changes
|
|
143
149
|
|
|
@@ -147,19 +153,19 @@
|
|
|
147
153
|
|
|
148
154
|
### Patch Changes
|
|
149
155
|
|
|
150
|
-
- [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
|
|
156
|
+
- [#26488](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26488) [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
|
|
151
157
|
|
|
152
158
|
## 7.3.1
|
|
153
159
|
|
|
154
160
|
### Patch Changes
|
|
155
161
|
|
|
156
|
-
- [`9de88fa1e1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9de88fa1e1e) - Internal changes to include spacing tokens in component implementations.
|
|
162
|
+
- [#26408](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26408) [`9de88fa1e1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9de88fa1e1e) - Internal changes to include spacing tokens in component implementations.
|
|
157
163
|
|
|
158
164
|
## 7.3.0
|
|
159
165
|
|
|
160
166
|
### Minor Changes
|
|
161
167
|
|
|
162
|
-
- [`b975291711b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b975291711b) - Add zindex as prop to drawer
|
|
168
|
+
- [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710) [`b975291711b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b975291711b) - Add zindex as prop to drawer
|
|
163
169
|
|
|
164
170
|
### Patch Changes
|
|
165
171
|
|
|
@@ -170,13 +176,13 @@
|
|
|
170
176
|
|
|
171
177
|
### Patch Changes
|
|
172
178
|
|
|
173
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
179
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
174
180
|
|
|
175
181
|
## 7.2.0
|
|
176
182
|
|
|
177
183
|
### Minor Changes
|
|
178
184
|
|
|
179
|
-
- [`cc4fe7bdf0c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc4fe7bdf0c) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
185
|
+
- [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004) [`cc4fe7bdf0c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc4fe7bdf0c) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
180
186
|
|
|
181
187
|
### Patch Changes
|
|
182
188
|
|
|
@@ -187,13 +193,13 @@
|
|
|
187
193
|
|
|
188
194
|
### Patch Changes
|
|
189
195
|
|
|
190
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
196
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
191
197
|
|
|
192
198
|
## 7.1.11
|
|
193
199
|
|
|
194
200
|
### Patch Changes
|
|
195
201
|
|
|
196
|
-
- [`fd86b8e4c63`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd86b8e4c63) - Internal code change turning on new linting rules.
|
|
202
|
+
- [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`fd86b8e4c63`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd86b8e4c63) - Internal code change turning on new linting rules.
|
|
197
203
|
|
|
198
204
|
## 7.1.10
|
|
199
205
|
|
|
@@ -205,13 +211,13 @@
|
|
|
205
211
|
|
|
206
212
|
### Patch Changes
|
|
207
213
|
|
|
208
|
-
- [`45e0af67ad3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/45e0af67ad3) - Internal change to make styles statically analyzable
|
|
214
|
+
- [#20721](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20721) [`45e0af67ad3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/45e0af67ad3) - Internal change to make styles statically analyzable
|
|
209
215
|
|
|
210
216
|
## 7.1.8
|
|
211
217
|
|
|
212
218
|
### Patch Changes
|
|
213
219
|
|
|
214
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
220
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
215
221
|
|
|
216
222
|
## 7.1.7
|
|
217
223
|
|
|
@@ -223,7 +229,7 @@
|
|
|
223
229
|
|
|
224
230
|
### Patch Changes
|
|
225
231
|
|
|
226
|
-
- [`ac9343c3ed4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac9343c3ed4) - Replaces usage of deprecated design tokens. No visual or functional changes
|
|
232
|
+
- [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`ac9343c3ed4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac9343c3ed4) - Replaces usage of deprecated design tokens. No visual or functional changes
|
|
227
233
|
- Updated dependencies
|
|
228
234
|
|
|
229
235
|
## 7.1.5
|
|
@@ -236,13 +242,13 @@
|
|
|
236
242
|
|
|
237
243
|
### Patch Changes
|
|
238
244
|
|
|
239
|
-
- [`e9210b8a098`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e9210b8a098) - Updates Drawer with deprecated status for `cssFn`/`overrides APIs.
|
|
245
|
+
- [#18526](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18526) [`e9210b8a098`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e9210b8a098) - Updates Drawer with deprecated status for `cssFn`/`overrides APIs.
|
|
240
246
|
|
|
241
247
|
## 7.1.3
|
|
242
248
|
|
|
243
249
|
### Patch Changes
|
|
244
250
|
|
|
245
|
-
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Bump dependency tiny-invariant to latest"
|
|
251
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Bump dependency tiny-invariant to latest"
|
|
246
252
|
- Updated dependencies
|
|
247
253
|
|
|
248
254
|
## 7.1.2
|
|
@@ -255,13 +261,13 @@
|
|
|
255
261
|
|
|
256
262
|
### Patch Changes
|
|
257
263
|
|
|
258
|
-
- [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
264
|
+
- [#17475](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17475) [`c55c736ecea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c55c736ecea) - Patch VULN AFP-3486 AFP-3487 AFP-3488 AFP-3489
|
|
259
265
|
|
|
260
266
|
## 7.1.0
|
|
261
267
|
|
|
262
268
|
### Minor Changes
|
|
263
269
|
|
|
264
|
-
- [`d19fa028010`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d19fa028010) - Instrumented `@atlaskit/drawer` with the new theming package, `@atlaskit/tokens`.
|
|
270
|
+
- [#16753](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16753) [`d19fa028010`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d19fa028010) - Instrumented `@atlaskit/drawer` with the new theming package, `@atlaskit/tokens`.
|
|
265
271
|
|
|
266
272
|
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha). These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
267
273
|
|
|
@@ -269,13 +275,13 @@
|
|
|
269
275
|
|
|
270
276
|
### Patch Changes
|
|
271
277
|
|
|
272
|
-
- [`3fced6aa641`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fced6aa641) - Bumped `react-focus-lock` to version `^2.2.1`.
|
|
278
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`3fced6aa641`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fced6aa641) - Bumped `react-focus-lock` to version `^2.2.1`.
|
|
273
279
|
|
|
274
280
|
## 7.0.0
|
|
275
281
|
|
|
276
282
|
### Major Changes
|
|
277
283
|
|
|
278
|
-
- [`cf853e39278`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf853e39278) - [ux] Breaking changes:
|
|
284
|
+
- [#14319](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14319) [`cf853e39278`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf853e39278) - [ux] Breaking changes:
|
|
279
285
|
|
|
280
286
|
The following components have been removed from `@atlaskit/drawer`:
|
|
281
287
|
|
|
@@ -306,7 +312,7 @@
|
|
|
306
312
|
|
|
307
313
|
### Patch Changes
|
|
308
314
|
|
|
309
|
-
- [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
315
|
+
- [#12880](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12880) [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
310
316
|
|
|
311
317
|
## 6.0.9
|
|
312
318
|
|
|
@@ -318,20 +324,20 @@
|
|
|
318
324
|
|
|
319
325
|
### Patch Changes
|
|
320
326
|
|
|
321
|
-
- [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
|
|
327
|
+
- [#8644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8644) [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json.
|
|
322
328
|
- Updated dependencies
|
|
323
329
|
|
|
324
330
|
## 6.0.7
|
|
325
331
|
|
|
326
332
|
### Patch Changes
|
|
327
333
|
|
|
328
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
334
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
329
335
|
|
|
330
336
|
## 6.0.6
|
|
331
337
|
|
|
332
338
|
### Patch Changes
|
|
333
339
|
|
|
334
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
340
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
335
341
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
336
342
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
337
343
|
|
|
@@ -345,13 +351,13 @@
|
|
|
345
351
|
|
|
346
352
|
### Patch Changes
|
|
347
353
|
|
|
348
|
-
- [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
|
|
354
|
+
- [#4707](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4707) [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
|
|
349
355
|
|
|
350
356
|
## 6.0.3
|
|
351
357
|
|
|
352
358
|
### Patch Changes
|
|
353
359
|
|
|
354
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
360
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
355
361
|
|
|
356
362
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
357
363
|
to prevent duplicates of tslib being bundled.
|
|
@@ -360,20 +366,20 @@
|
|
|
360
366
|
|
|
361
367
|
### Patch Changes
|
|
362
368
|
|
|
363
|
-
- [`6262f382de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6262f382de) - Use the 'lodash' package instead of single-function 'lodash.\*' packages
|
|
369
|
+
- [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823) [`6262f382de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6262f382de) - Use the 'lodash' package instead of single-function 'lodash.\*' packages
|
|
364
370
|
|
|
365
371
|
## 6.0.1
|
|
366
372
|
|
|
367
373
|
### Patch Changes
|
|
368
374
|
|
|
369
|
-
- [`60dd4ecc69`](https://bitbucket.org/atlassian/atlassian-frontend/commits/60dd4ecc69) - Changed export all to export individual components in index
|
|
375
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`60dd4ecc69`](https://bitbucket.org/atlassian/atlassian-frontend/commits/60dd4ecc69) - Changed export all to export individual components in index
|
|
370
376
|
- Updated dependencies
|
|
371
377
|
|
|
372
378
|
## 6.0.0
|
|
373
379
|
|
|
374
380
|
### Major Changes
|
|
375
381
|
|
|
376
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
382
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
377
383
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
378
384
|
|
|
379
385
|
### Patch Changes
|
|
@@ -384,19 +390,19 @@
|
|
|
384
390
|
|
|
385
391
|
### Patch Changes
|
|
386
392
|
|
|
387
|
-
- [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
393
|
+
- [#2866](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2866) [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
388
394
|
|
|
389
395
|
## 5.3.9
|
|
390
396
|
|
|
391
397
|
### Patch Changes
|
|
392
398
|
|
|
393
|
-
- [`4560b65a4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4560b65a4f) - upgrade react-transition-group to latest
|
|
399
|
+
- [#2677](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2677) [`4560b65a4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4560b65a4f) - upgrade react-transition-group to latest
|
|
394
400
|
|
|
395
401
|
## 5.3.8
|
|
396
402
|
|
|
397
403
|
### Patch Changes
|
|
398
404
|
|
|
399
|
-
- [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
|
|
405
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137) [`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove unused dependencies
|
|
400
406
|
- [`baaad91b65`](https://bitbucket.org/atlassian/atlassian-frontend/commits/baaad91b65) - Updated to use the latest and more performant version of `@atlaskit/avatar`
|
|
401
407
|
- Updated dependencies
|
|
402
408
|
|
|
@@ -27,7 +27,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
27
27
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
28
28
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */
|
|
29
29
|
var packageName = "@atlaskit/drawer";
|
|
30
|
-
var packageVersion = "7.6.
|
|
30
|
+
var packageVersion = "7.6.1";
|
|
31
31
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
32
32
|
var createAndFireOnClick = function createAndFireOnClick(createAnalyticsEvent, trigger) {
|
|
33
33
|
return createAndFireEventOnAtlaskit({
|
|
@@ -41,7 +41,7 @@ var createAndFireOnClick = function createAndFireOnClick(createAnalyticsEvent, t
|
|
|
41
41
|
}
|
|
42
42
|
})(createAnalyticsEvent);
|
|
43
43
|
};
|
|
44
|
-
var DrawerBase = /*#__PURE__*/function (_Component) {
|
|
44
|
+
var DrawerBase = exports.DrawerBase = /*#__PURE__*/function (_Component) {
|
|
45
45
|
(0, _inherits2.default)(DrawerBase, _Component);
|
|
46
46
|
var _super = _createSuper(DrawerBase);
|
|
47
47
|
function DrawerBase() {
|
|
@@ -159,13 +159,11 @@ var DrawerBase = /*#__PURE__*/function (_Component) {
|
|
|
159
159
|
}]);
|
|
160
160
|
return DrawerBase;
|
|
161
161
|
}(_react.Component);
|
|
162
|
-
exports.DrawerBase = DrawerBase;
|
|
163
162
|
(0, _defineProperty2.default)(DrawerBase, "defaultProps", _objectSpread({
|
|
164
163
|
width: 'narrow'
|
|
165
164
|
}, _constants.defaultFocusLockSettings));
|
|
166
|
-
var _default = (0, _analyticsNext.withAnalyticsContext)({
|
|
165
|
+
var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
|
|
167
166
|
componentName: 'drawer',
|
|
168
167
|
packageName: packageName,
|
|
169
168
|
packageVersion: packageVersion
|
|
170
|
-
})((0, _analyticsNext.withAnalyticsEvents)()(DrawerBase));
|
|
171
|
-
exports.default = _default;
|
|
169
|
+
})((0, _analyticsNext.withAnalyticsEvents)()(DrawerBase));
|
|
@@ -16,7 +16,7 @@ var _tokens = require("@atlaskit/tokens");
|
|
|
16
16
|
var _usePreventProgrammaticScroll = _interopRequireDefault(require("./hooks/use-prevent-programmatic-scroll"));
|
|
17
17
|
var _css;
|
|
18
18
|
/** @jsx jsx */
|
|
19
|
-
var wrapperWidth = {
|
|
19
|
+
var wrapperWidth = exports.wrapperWidth = {
|
|
20
20
|
full: {
|
|
21
21
|
width: '100vw'
|
|
22
22
|
},
|
|
@@ -33,7 +33,6 @@ var wrapperWidth = {
|
|
|
33
33
|
width: 600
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
exports.wrapperWidth = wrapperWidth;
|
|
37
36
|
var wrapperStyles = (0, _react2.css)((_css = {
|
|
38
37
|
display: 'flex',
|
|
39
38
|
height: '100vh',
|
|
@@ -85,5 +84,4 @@ var DrawerWrapper = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, scrollRe
|
|
|
85
84
|
ref: ref
|
|
86
85
|
}, modalDialogAttributes), children);
|
|
87
86
|
});
|
|
88
|
-
var _default = DrawerWrapper;
|
|
89
|
-
exports.default = _default;
|
|
87
|
+
var _default = exports.default = DrawerWrapper;
|
|
@@ -25,7 +25,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
26
26
|
// Thin wrapper over react-focus-lock. This wrapper only exists to ensure API compatibility.
|
|
27
27
|
// This component should be deleted during https://ecosystem.atlassian.net/browse/AK-5658
|
|
28
|
-
var FocusLock = /*#__PURE__*/function (_Component) {
|
|
28
|
+
var FocusLock = exports.default = /*#__PURE__*/function (_Component) {
|
|
29
29
|
(0, _inherits2.default)(FocusLock, _Component);
|
|
30
30
|
var _super = _createSuper(FocusLock);
|
|
31
31
|
function FocusLock() {
|
|
@@ -65,5 +65,4 @@ var FocusLock = /*#__PURE__*/function (_Component) {
|
|
|
65
65
|
}]);
|
|
66
66
|
return FocusLock;
|
|
67
67
|
}(_react.Component);
|
|
68
|
-
exports.default = FocusLock;
|
|
69
68
|
(0, _defineProperty2.default)(FocusLock, "defaultProps", _objectSpread({}, _constants.defaultFocusLockSettings));
|
|
@@ -80,9 +80,9 @@ var DrawerPrimitive = function DrawerPrimitive(_ref2) {
|
|
|
80
80
|
var drawerRef = (0, _react.useRef)(null);
|
|
81
81
|
var onFinish = (0, _react.useCallback)(function (state) {
|
|
82
82
|
if (state === 'entering') {
|
|
83
|
-
onOpenComplete === null || onOpenComplete === void 0
|
|
83
|
+
onOpenComplete === null || onOpenComplete === void 0 || onOpenComplete(drawerRef.current);
|
|
84
84
|
} else if (state === 'exiting') {
|
|
85
|
-
onCloseComplete === null || onCloseComplete === void 0
|
|
85
|
+
onCloseComplete === null || onCloseComplete === void 0 || onCloseComplete(drawerRef.current);
|
|
86
86
|
}
|
|
87
87
|
}, [onCloseComplete, onOpenComplete]);
|
|
88
88
|
return (0, _react2.jsx)(_motion.ExitingPersistence, {
|
|
@@ -114,5 +114,4 @@ var DrawerPrimitive = function DrawerPrimitive(_ref2) {
|
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
117
|
-
var _default = DrawerPrimitive;
|
|
118
|
-
exports.default = _default;
|
|
117
|
+
var _default = exports.default = DrawerPrimitive;
|
|
@@ -9,7 +9,7 @@ exports.createExtender = void 0;
|
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated Please avoid using this function as we intend to remote it in a future release. See DSP-2673 for more information.
|
|
11
11
|
*/
|
|
12
|
-
var createExtender = function createExtender(defaults) {
|
|
12
|
+
var createExtender = exports.createExtender = function createExtender(defaults) {
|
|
13
13
|
var overrides = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Object.create(Object.prototype);
|
|
14
14
|
if (!defaults) {
|
|
15
15
|
throw new Error('a default set of overrides *must* be passed in as the first argument');
|
|
@@ -35,5 +35,4 @@ var createExtender = function createExtender(defaults) {
|
|
|
35
35
|
component: customComponent || defaultComponent
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
};
|
|
39
|
-
exports.createExtender = createExtender;
|
|
38
|
+
};
|
package/dist/cjs/constants.js
CHANGED
|
@@ -6,21 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.widths = exports.transitionTimingFunction = exports.transitionDurationMs = exports.transitionDuration = exports.defaultFocusLockSettings = exports.animationTimingFunction = void 0;
|
|
7
7
|
var _curves = require("@atlaskit/motion/curves");
|
|
8
8
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
|
-
var transitionDuration = '0.22s';
|
|
10
|
-
exports.
|
|
11
|
-
var
|
|
12
|
-
exports.
|
|
13
|
-
var
|
|
14
|
-
exports.transitionTimingFunction = transitionTimingFunction;
|
|
15
|
-
var widths = ['narrow', 'medium', 'wide', 'extended', 'full'];
|
|
16
|
-
exports.widths = widths;
|
|
17
|
-
var animationTimingFunction = function animationTimingFunction() {
|
|
9
|
+
var transitionDuration = exports.transitionDuration = '0.22s';
|
|
10
|
+
var transitionDurationMs = exports.transitionDurationMs = 220;
|
|
11
|
+
var transitionTimingFunction = exports.transitionTimingFunction = _curves.easeOut;
|
|
12
|
+
var widths = exports.widths = ['narrow', 'medium', 'wide', 'extended', 'full'];
|
|
13
|
+
var animationTimingFunction = exports.animationTimingFunction = function animationTimingFunction() {
|
|
18
14
|
return _curves.easeOut;
|
|
19
15
|
};
|
|
20
|
-
exports.
|
|
21
|
-
var defaultFocusLockSettings = {
|
|
16
|
+
var defaultFocusLockSettings = exports.defaultFocusLockSettings = {
|
|
22
17
|
isFocusLockEnabled: true,
|
|
23
18
|
shouldReturnFocus: true,
|
|
24
19
|
autoFocusFirstElem: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.drawer-screen-reader-focus-trap-refactor_hfuxc') || false
|
|
25
|
-
};
|
|
26
|
-
exports.defaultFocusLockSettings = defaultFocusLockSettings;
|
|
20
|
+
};
|
|
@@ -8,7 +8,7 @@ import { defaultFocusLockSettings } from '../constants';
|
|
|
8
8
|
import Blanket from './blanket';
|
|
9
9
|
import DrawerPrimitive from './primitives';
|
|
10
10
|
const packageName = "@atlaskit/drawer";
|
|
11
|
-
const packageVersion = "7.6.
|
|
11
|
+
const packageVersion = "7.6.1";
|
|
12
12
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
13
13
|
const createAndFireOnClick = (createAnalyticsEvent, trigger) => createAndFireEventOnAtlaskit({
|
|
14
14
|
action: 'dismissed',
|
|
@@ -18,7 +18,7 @@ import { defaultFocusLockSettings } from '../constants';
|
|
|
18
18
|
import Blanket from './blanket';
|
|
19
19
|
import DrawerPrimitive from './primitives';
|
|
20
20
|
var packageName = "@atlaskit/drawer";
|
|
21
|
-
var packageVersion = "7.6.
|
|
21
|
+
var packageVersion = "7.6.1";
|
|
22
22
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
23
23
|
var createAndFireOnClick = function createAndFireOnClick(createAnalyticsEvent, trigger) {
|
|
24
24
|
return createAndFireEventOnAtlaskit({
|
|
@@ -76,9 +76,9 @@ var DrawerPrimitive = function DrawerPrimitive(_ref2) {
|
|
|
76
76
|
var drawerRef = useRef(null);
|
|
77
77
|
var onFinish = useCallback(function (state) {
|
|
78
78
|
if (state === 'entering') {
|
|
79
|
-
onOpenComplete === null || onOpenComplete === void 0
|
|
79
|
+
onOpenComplete === null || onOpenComplete === void 0 || onOpenComplete(drawerRef.current);
|
|
80
80
|
} else if (state === 'exiting') {
|
|
81
|
-
onCloseComplete === null || onCloseComplete === void 0
|
|
81
|
+
onCloseComplete === null || onCloseComplete === void 0 || onCloseComplete(drawerRef.current);
|
|
82
82
|
}
|
|
83
83
|
}, [onCloseComplete, onOpenComplete]);
|
|
84
84
|
return jsx(ExitingPersistence, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/drawer",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.1",
|
|
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/"
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
37
37
|
"@atlaskit/blanket": "^12.4.0",
|
|
38
38
|
"@atlaskit/icon": "^21.12.0",
|
|
39
|
-
"@atlaskit/motion": "^1.
|
|
39
|
+
"@atlaskit/motion": "^1.5.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
41
41
|
"@atlaskit/portal": "^4.3.0",
|
|
42
42
|
"@atlaskit/theme": "^12.6.0",
|
|
43
|
-
"@atlaskit/tokens": "^1.
|
|
43
|
+
"@atlaskit/tokens": "^1.25.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1",
|
|
46
46
|
"bind-event-listener": "^2.1.1",
|
|
47
47
|
"exenv": "^1.2.2",
|
|
48
|
-
"react-focus-lock": "^2.5
|
|
48
|
+
"react-focus-lock": "^2.9.5",
|
|
49
49
|
"react-scrolllock": "^5.0.1",
|
|
50
50
|
"tiny-invariant": "^1.2.0",
|
|
51
51
|
"use-callback-ref": "^1.2.3"
|