@atlaskit/tabs 16.1.1 → 16.1.2
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 +829 -830
- package/codemods/13.0.0-lite-mode.tsx +2 -2
- package/codemods/migrations/add-id-prop.tsx +7 -2
- package/codemods/migrations/map-tabs-prop.tsx +7 -2
- package/codemods/migrations/on-select-to-on-change.tsx +6 -2
- package/codemods/migrations/remove-tab-item-tab-content.tsx +7 -2
- package/codemods/migrations/remove-types.tsx +7 -2
- package/codemods/migrations/rename-is-content-persisted-to-should-unmount-tab-panel-on-change.tsx +7 -2
- package/codemods/utils.tsx +2 -2
- package/dist/cjs/components/tabs.js +1 -1
- package/dist/es2019/components/tabs.js +1 -1
- package/dist/esm/components/tabs.js +1 -1
- package/dist/types/components/tab-list.d.ts +1 -1
- package/dist/types/components/tab-panel.d.ts +1 -1
- package/dist/types/components/tab.d.ts +1 -1
- package/dist/types/components/tabs.d.ts +1 -1
- package/dist/types/internal/context.d.ts +1 -1
- package/dist/types/internal/styles.d.ts +1 -1
- package/dist/types/types.d.ts +3 -3
- package/dist/types-ts4.5/components/tab-list.d.ts +1 -1
- package/dist/types-ts4.5/components/tab-panel.d.ts +1 -1
- package/dist/types-ts4.5/components/tab.d.ts +1 -1
- package/dist/types-ts4.5/components/tabs.d.ts +1 -1
- package/dist/types-ts4.5/internal/context.d.ts +1 -1
- package/dist/types-ts4.5/internal/styles.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +3 -3
- package/extract-react-types/tab-attributes.tsx +1 -1
- package/extract-react-types/tab-panel-attributes.tsx +1 -1
- package/package.json +6 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,1564 +1,1563 @@
|
|
|
1
1
|
# @atlaskit/tabs
|
|
2
2
|
|
|
3
|
+
## 16.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
3
9
|
## 16.1.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
-
|
|
13
|
+
- Updated dependencies
|
|
8
14
|
|
|
9
15
|
## 16.1.0
|
|
10
16
|
|
|
11
17
|
### Minor Changes
|
|
12
18
|
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
- [#96791](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96791)
|
|
20
|
+
[`d85b0f65d608`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d85b0f65d608) -
|
|
21
|
+
Add support for React 18.
|
|
16
22
|
|
|
17
23
|
## 16.0.0
|
|
18
24
|
|
|
19
25
|
### Major Changes
|
|
20
26
|
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
- [#92009](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92009)
|
|
28
|
+
[`ef3d43779d3a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ef3d43779d3a) -
|
|
29
|
+
Removed `onMouseDown` prop from `Tab` and `TabPanel`.
|
|
24
30
|
|
|
25
31
|
## 15.0.0
|
|
26
32
|
|
|
27
33
|
### Major Changes
|
|
28
34
|
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
- [#91586](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91586)
|
|
36
|
+
[`e229d87eecd0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e229d87eecd0) - -
|
|
37
|
+
[ux] Removed horizontal padding from Tab container to ensure Tab labels and panel content align
|
|
38
|
+
with other elements on the page. Tab label hit-boxes remain the same.
|
|
39
|
+
- Adjusted line height and overall Tab label height to be consistent with the Atlassian Design
|
|
40
|
+
System.
|
|
35
41
|
|
|
36
42
|
## 14.1.0
|
|
37
43
|
|
|
38
44
|
### Minor Changes
|
|
39
45
|
|
|
40
|
-
-
|
|
41
|
-
|
|
42
|
-
|
|
46
|
+
- [#90584](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/90584)
|
|
47
|
+
[`fccb64237f6c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fccb64237f6c) -
|
|
48
|
+
[ux] Internal changes to focus styles
|
|
43
49
|
|
|
44
50
|
## 14.0.5
|
|
45
51
|
|
|
46
52
|
### Patch Changes
|
|
47
53
|
|
|
48
|
-
-
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
55
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
56
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
51
57
|
|
|
52
58
|
## 14.0.4
|
|
53
59
|
|
|
54
60
|
### Patch Changes
|
|
55
61
|
|
|
56
|
-
-
|
|
62
|
+
- Updated dependencies
|
|
57
63
|
|
|
58
64
|
## 14.0.3
|
|
59
65
|
|
|
60
66
|
### Patch Changes
|
|
61
67
|
|
|
62
|
-
-
|
|
68
|
+
- Updated dependencies
|
|
63
69
|
|
|
64
70
|
## 14.0.2
|
|
65
71
|
|
|
66
72
|
### Patch Changes
|
|
67
73
|
|
|
68
|
-
-
|
|
74
|
+
- Updated dependencies
|
|
69
75
|
|
|
70
76
|
## 14.0.1
|
|
71
77
|
|
|
72
78
|
### Patch Changes
|
|
73
79
|
|
|
74
|
-
-
|
|
80
|
+
- Updated dependencies
|
|
75
81
|
|
|
76
82
|
## 14.0.0
|
|
77
83
|
|
|
78
84
|
### Major Changes
|
|
79
85
|
|
|
80
|
-
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
tokens.
|
|
86
|
+
- [#41866](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41866)
|
|
87
|
+
[`ed8b6957789`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ed8b6957789) - Removes
|
|
88
|
+
any usage of deprecated legacy theming APIs. These have been superseeded by design tokens.
|
|
84
89
|
|
|
85
90
|
## 13.4.9
|
|
86
91
|
|
|
87
92
|
### Patch Changes
|
|
88
93
|
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
|
|
94
|
+
- [#40650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40650)
|
|
95
|
+
[`07aa588c8a4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07aa588c8a4) - Reverts
|
|
96
|
+
the fix to text descender cut-off, due to incompatibilities with Firefox and Safari.
|
|
92
97
|
|
|
93
98
|
## 13.4.8
|
|
94
99
|
|
|
95
100
|
### Patch Changes
|
|
96
101
|
|
|
97
|
-
-
|
|
102
|
+
- Updated dependencies
|
|
98
103
|
|
|
99
104
|
## 13.4.7
|
|
100
105
|
|
|
101
106
|
### Patch Changes
|
|
102
107
|
|
|
103
|
-
-
|
|
104
|
-
|
|
105
|
-
|
|
108
|
+
- [#40919](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40919)
|
|
109
|
+
[`0cd2364f0ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0cd2364f0ec) - This
|
|
110
|
+
package is now onboarded onto the product push model.
|
|
106
111
|
|
|
107
112
|
## 13.4.6
|
|
108
113
|
|
|
109
114
|
### Patch Changes
|
|
110
115
|
|
|
111
|
-
-
|
|
112
|
-
|
|
113
|
-
|
|
116
|
+
- [#39749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39749)
|
|
117
|
+
[`e6b69f455c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e6b69f455c3) - Connect
|
|
118
|
+
yarn changeset to packages, upgrade adf-schema
|
|
114
119
|
|
|
115
120
|
## 13.4.5
|
|
116
121
|
|
|
117
122
|
### Patch Changes
|
|
118
123
|
|
|
119
|
-
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
-
|
|
124
|
+
- [#38753](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38753)
|
|
125
|
+
[`e7f99a81404`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7f99a81404) - Update
|
|
126
|
+
to use `xcss` where possible. There should be no difference in behaviour.
|
|
127
|
+
- Updated dependencies
|
|
123
128
|
|
|
124
129
|
## 13.4.4
|
|
125
130
|
|
|
126
131
|
### Patch Changes
|
|
127
132
|
|
|
128
|
-
-
|
|
129
|
-
|
|
130
|
-
|
|
133
|
+
- [#38209](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38209)
|
|
134
|
+
[`56b444b56a8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56b444b56a8) - Fix a
|
|
135
|
+
bug where text descenders were cut off at high zoom levels on Windows
|
|
131
136
|
|
|
132
137
|
## 13.4.3
|
|
133
138
|
|
|
134
139
|
### Patch Changes
|
|
135
140
|
|
|
136
|
-
-
|
|
137
|
-
|
|
138
|
-
|
|
141
|
+
- [#35441](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35441)
|
|
142
|
+
[`599bfe90ee3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/599bfe90ee3) - Internal
|
|
143
|
+
change to use shape tokens. There is no expected visual change.
|
|
139
144
|
|
|
140
145
|
## 13.4.2
|
|
141
146
|
|
|
142
147
|
### Patch Changes
|
|
143
148
|
|
|
144
|
-
-
|
|
145
|
-
|
|
146
|
-
|
|
149
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
150
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
151
|
+
legacy types are published for TS 4.5-4.8
|
|
147
152
|
|
|
148
153
|
## 13.4.1
|
|
149
154
|
|
|
150
155
|
### Patch Changes
|
|
151
156
|
|
|
152
|
-
-
|
|
153
|
-
|
|
154
|
-
|
|
157
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
158
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
|
|
159
|
+
Typescript from `4.5.5` to `4.9.5`
|
|
155
160
|
|
|
156
161
|
## 13.4.0
|
|
157
162
|
|
|
158
163
|
### Minor Changes
|
|
159
164
|
|
|
160
|
-
-
|
|
161
|
-
|
|
162
|
-
|
|
165
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
166
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
167
|
+
minor dependency bump
|
|
163
168
|
|
|
164
169
|
### Patch Changes
|
|
165
170
|
|
|
166
|
-
-
|
|
171
|
+
- Updated dependencies
|
|
167
172
|
|
|
168
173
|
## 13.3.13
|
|
169
174
|
|
|
170
175
|
### Patch Changes
|
|
171
176
|
|
|
172
|
-
-
|
|
173
|
-
|
|
174
|
-
|
|
177
|
+
- [#30849](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30849)
|
|
178
|
+
[`7156bd737b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7156bd737b4) - Internal
|
|
179
|
+
changes to some tokens. Should be a no-op.
|
|
175
180
|
|
|
176
181
|
## 13.3.12
|
|
177
182
|
|
|
178
183
|
### Patch Changes
|
|
179
184
|
|
|
180
|
-
-
|
|
185
|
+
- Updated dependencies
|
|
181
186
|
|
|
182
187
|
## 13.3.11
|
|
183
188
|
|
|
184
189
|
### Patch Changes
|
|
185
190
|
|
|
186
|
-
-
|
|
191
|
+
- Updated dependencies
|
|
187
192
|
|
|
188
193
|
## 13.3.10
|
|
189
194
|
|
|
190
195
|
### Patch Changes
|
|
191
196
|
|
|
192
|
-
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
-
|
|
197
|
+
- [#27891](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27891)
|
|
198
|
+
[`eadbf13d8c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eadbf13d8c0) - Updated
|
|
199
|
+
usages of `Text`, `Box`, `Stack`, and `Inline` primitives to reflect their updated APIs. There are
|
|
200
|
+
no visual or behaviour changes.
|
|
201
|
+
- Updated dependencies
|
|
197
202
|
|
|
198
203
|
## 13.3.9
|
|
199
204
|
|
|
200
205
|
### Patch Changes
|
|
201
206
|
|
|
202
|
-
-
|
|
203
|
-
|
|
204
|
-
|
|
207
|
+
- [#28064](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28064)
|
|
208
|
+
[`b0f6dd0bc35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b0f6dd0bc35) - Updated
|
|
209
|
+
to use typography tokens. There is no expected behaviour or visual change.
|
|
205
210
|
|
|
206
211
|
## 13.3.8
|
|
207
212
|
|
|
208
213
|
### Patch Changes
|
|
209
214
|
|
|
210
|
-
-
|
|
215
|
+
- Updated dependencies
|
|
211
216
|
|
|
212
217
|
## 13.3.7
|
|
213
218
|
|
|
214
219
|
### Patch Changes
|
|
215
220
|
|
|
216
|
-
-
|
|
221
|
+
- Updated dependencies
|
|
217
222
|
|
|
218
223
|
## 13.3.6
|
|
219
224
|
|
|
220
225
|
### Patch Changes
|
|
221
226
|
|
|
222
|
-
-
|
|
227
|
+
- Updated dependencies
|
|
223
228
|
|
|
224
229
|
## 13.3.5
|
|
225
230
|
|
|
226
231
|
### Patch Changes
|
|
227
232
|
|
|
228
|
-
-
|
|
229
|
-
|
|
230
|
-
|
|
233
|
+
- [#25984](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25984)
|
|
234
|
+
[`0637c50e226`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0637c50e226) - Updated
|
|
235
|
+
Tabs compnent to prefer to use focus-visible over focus css selectors.
|
|
231
236
|
|
|
232
237
|
## 13.3.4
|
|
233
238
|
|
|
234
239
|
### Patch Changes
|
|
235
240
|
|
|
236
|
-
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
-
|
|
241
|
+
- [#25860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25860)
|
|
242
|
+
[`e35fc41dc33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e35fc41dc33) - Internal
|
|
243
|
+
change to use updated primtive spacing prop values. No expected behaviour change.
|
|
244
|
+
- Updated dependencies
|
|
240
245
|
|
|
241
246
|
## 13.3.3
|
|
242
247
|
|
|
243
248
|
### Patch Changes
|
|
244
249
|
|
|
245
|
-
-
|
|
246
|
-
|
|
247
|
-
|
|
250
|
+
- [#26303](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26303)
|
|
251
|
+
[`9827dcb82b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9827dcb82b8) - No-op
|
|
252
|
+
change to introduce spacing tokens to design system components.
|
|
248
253
|
|
|
249
254
|
## 13.3.2
|
|
250
255
|
|
|
251
256
|
### Patch Changes
|
|
252
257
|
|
|
253
|
-
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
consumers.
|
|
258
|
+
- [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710)
|
|
259
|
+
[`0d42cd1c926`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0d42cd1c926) - Internal
|
|
260
|
+
changes to the way styles are applied. There should be no noticeable changes to consumers.
|
|
257
261
|
|
|
258
262
|
## 13.3.1
|
|
259
263
|
|
|
260
264
|
### Patch Changes
|
|
261
265
|
|
|
262
|
-
-
|
|
263
|
-
|
|
264
|
-
|
|
266
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
267
|
+
[`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade
|
|
268
|
+
Typescript from `4.3.5` to `4.5.5`
|
|
265
269
|
|
|
266
270
|
## 13.3.0
|
|
267
271
|
|
|
268
272
|
### Minor Changes
|
|
269
273
|
|
|
270
|
-
-
|
|
271
|
-
|
|
272
|
-
|
|
274
|
+
- [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004)
|
|
275
|
+
[`7ec1c1a023f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7ec1c1a023f) - Updates
|
|
276
|
+
`@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
273
277
|
|
|
274
278
|
### Patch Changes
|
|
275
279
|
|
|
276
|
-
-
|
|
280
|
+
- Updated dependencies
|
|
277
281
|
|
|
278
282
|
## 13.2.13
|
|
279
283
|
|
|
280
284
|
### Patch Changes
|
|
281
285
|
|
|
282
|
-
-
|
|
283
|
-
|
|
284
|
-
|
|
286
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
287
|
+
[`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade
|
|
288
|
+
Typescript from `4.2.4` to `4.3.5`.
|
|
285
289
|
|
|
286
290
|
## 13.2.12
|
|
287
291
|
|
|
288
292
|
### Patch Changes
|
|
289
293
|
|
|
290
|
-
-
|
|
291
|
-
|
|
292
|
-
|
|
294
|
+
- [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381)
|
|
295
|
+
[`f0056770cce`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f0056770cce) - Internal
|
|
296
|
+
code change turning on new linting rules.
|
|
293
297
|
|
|
294
298
|
## 13.2.11
|
|
295
299
|
|
|
296
300
|
### Patch Changes
|
|
297
301
|
|
|
298
|
-
-
|
|
302
|
+
- Updated dependencies
|
|
299
303
|
|
|
300
304
|
## 13.2.10
|
|
301
305
|
|
|
302
306
|
### Patch Changes
|
|
303
307
|
|
|
304
|
-
-
|
|
305
|
-
|
|
306
|
-
|
|
308
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
309
|
+
[`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade
|
|
310
|
+
to TypeScript 4.2.4
|
|
307
311
|
|
|
308
312
|
## 13.2.9
|
|
309
313
|
|
|
310
314
|
### Patch Changes
|
|
311
315
|
|
|
312
|
-
-
|
|
316
|
+
- Updated dependencies
|
|
313
317
|
|
|
314
318
|
## 13.2.8
|
|
315
319
|
|
|
316
320
|
### Patch Changes
|
|
317
321
|
|
|
318
|
-
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
-
|
|
322
|
+
- [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618)
|
|
323
|
+
[`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates
|
|
324
|
+
all usage of brand tokens to either selected or information tokens. This change is purely for
|
|
325
|
+
semantic reasons, there are no visual or behavioural changes.
|
|
326
|
+
- Updated dependencies
|
|
323
327
|
|
|
324
328
|
## 13.2.7
|
|
325
329
|
|
|
326
330
|
### Patch Changes
|
|
327
331
|
|
|
328
|
-
-
|
|
332
|
+
- Updated dependencies
|
|
329
333
|
|
|
330
334
|
## 13.2.6
|
|
331
335
|
|
|
332
336
|
### Patch Changes
|
|
333
337
|
|
|
334
|
-
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
-
|
|
338
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752)
|
|
339
|
+
[`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The
|
|
340
|
+
no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when
|
|
341
|
+
auto-fixing by correctly formatting token ids.
|
|
342
|
+
- Updated dependencies
|
|
339
343
|
|
|
340
344
|
## 13.2.5
|
|
341
345
|
|
|
342
346
|
### Patch Changes
|
|
343
347
|
|
|
344
|
-
-
|
|
348
|
+
- Updated dependencies
|
|
345
349
|
|
|
346
350
|
## 13.2.4
|
|
347
351
|
|
|
348
352
|
### Patch Changes
|
|
349
353
|
|
|
350
|
-
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
-
|
|
354
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998)
|
|
355
|
+
[`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds
|
|
356
|
+
for this package now pass through a tokens babel plugin, removing runtime invocations of the
|
|
357
|
+
tokens() function and improving bundle size.
|
|
358
|
+
- Updated dependencies
|
|
355
359
|
|
|
356
360
|
## 13.2.3
|
|
357
361
|
|
|
358
362
|
### Patch Changes
|
|
359
363
|
|
|
360
|
-
-
|
|
364
|
+
- Updated dependencies
|
|
361
365
|
|
|
362
366
|
## 13.2.2
|
|
363
367
|
|
|
364
368
|
### Patch Changes
|
|
365
369
|
|
|
366
|
-
-
|
|
370
|
+
- Updated dependencies
|
|
367
371
|
|
|
368
372
|
## 13.2.1
|
|
369
373
|
|
|
370
374
|
### Patch Changes
|
|
371
375
|
|
|
372
|
-
-
|
|
376
|
+
- Updated dependencies
|
|
373
377
|
|
|
374
378
|
## 13.2.0
|
|
375
379
|
|
|
376
380
|
### Minor Changes
|
|
377
381
|
|
|
378
|
-
-
|
|
379
|
-
|
|
380
|
-
|
|
382
|
+
- [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302)
|
|
383
|
+
[`cc54bf994d6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc54bf994d6) -
|
|
384
|
+
Instrumented Tabs with the new theming package, `@atlaskit/tokens`.
|
|
381
385
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
386
|
+
New tokens will be visible only in applications configured to use the new Tokens API (currently in
|
|
387
|
+
alpha). These changes are intended to be interoperable with the legacy theme implementation.
|
|
388
|
+
Legacy dark mode users should expect no visual or breaking changes.
|
|
385
389
|
|
|
386
390
|
### Patch Changes
|
|
387
391
|
|
|
388
|
-
-
|
|
389
|
-
|
|
390
|
-
-
|
|
392
|
+
- [`af4bca32ad4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/af4bca32ad4) - Internal
|
|
393
|
+
changes to supress eslint rules.
|
|
394
|
+
- Updated dependencies
|
|
391
395
|
|
|
392
396
|
## 13.1.4
|
|
393
397
|
|
|
394
398
|
### Patch Changes
|
|
395
399
|
|
|
396
|
-
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
-
|
|
400
|
+
- [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837)
|
|
401
|
+
[`9a84a3ceb82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a84a3ceb82) - Internal
|
|
402
|
+
code changes.
|
|
403
|
+
- Updated dependencies
|
|
400
404
|
|
|
401
405
|
## 13.1.3
|
|
402
406
|
|
|
403
407
|
### Patch Changes
|
|
404
408
|
|
|
405
|
-
-
|
|
406
|
-
|
|
407
|
-
|
|
409
|
+
- [#12880](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12880)
|
|
410
|
+
[`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump
|
|
411
|
+
`@atlaskit/theme` to version `^11.3.0`.
|
|
408
412
|
|
|
409
413
|
## 13.1.2
|
|
410
414
|
|
|
411
415
|
### Patch Changes
|
|
412
416
|
|
|
413
|
-
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
-
|
|
417
|
+
- [#12328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12328)
|
|
418
|
+
[`ecbf4a3267f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ecbf4a3267f) - [ux] Fix
|
|
419
|
+
tabs focus ring in the windows high contrast mode
|
|
420
|
+
- Updated dependencies
|
|
417
421
|
|
|
418
422
|
## 13.1.1
|
|
419
423
|
|
|
420
424
|
### Patch Changes
|
|
421
425
|
|
|
422
|
-
-
|
|
423
|
-
|
|
424
|
-
|
|
426
|
+
- [#12167](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12167)
|
|
427
|
+
[`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates
|
|
428
|
+
to development dependency `storybook-addon-performance`
|
|
425
429
|
|
|
426
430
|
## 13.1.0
|
|
427
431
|
|
|
428
432
|
### Minor Changes
|
|
429
433
|
|
|
430
|
-
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
434
|
+
- [#10569](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10569)
|
|
435
|
+
[`4f40ecb4471`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4f40ecb4471) - [ux]
|
|
436
|
+
Added `Home` and `End` keys handlers for tablist. Changed arrow keys handlers to make tabs cycled.
|
|
437
|
+
Now when you press the left arrow key on the first tab the last tab will be selected and when you
|
|
438
|
+
press right arrow key on the last tab the first tab will be selected
|
|
435
439
|
|
|
436
440
|
### Patch Changes
|
|
437
441
|
|
|
438
|
-
-
|
|
442
|
+
- Updated dependencies
|
|
439
443
|
|
|
440
444
|
## 13.0.1
|
|
441
445
|
|
|
442
446
|
### Patch Changes
|
|
443
447
|
|
|
444
|
-
-
|
|
448
|
+
- Updated dependencies
|
|
445
449
|
|
|
446
450
|
## 13.0.0
|
|
447
451
|
|
|
448
452
|
### Major Changes
|
|
449
453
|
|
|
450
|
-
-
|
|
451
|
-
|
|
452
|
-
|
|
454
|
+
- [#9756](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9756)
|
|
455
|
+
[`c17fe6144f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c17fe6144f8) - ###
|
|
456
|
+
Major Changes
|
|
453
457
|
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
458
|
+
In this version, `Tabs` has had a pretty substantial rewrite. As well as now being dramatically
|
|
459
|
+
faster and more lightweight, it has a brand new flexible composable API and a bunch of
|
|
460
|
+
accessibility improvements.
|
|
457
461
|
|
|
458
|
-
|
|
462
|
+
### Composable API
|
|
459
463
|
|
|
460
|
-
|
|
464
|
+
The old version of `Tabs` had a `tabs` prop that would map to `TabItem`'s and `TabContent`'s.
|
|
461
465
|
|
|
462
|
-
|
|
463
|
-
|
|
466
|
+
```
|
|
467
|
+
import Tabs from '@atlaskit/tabs';
|
|
464
468
|
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
469
|
+
const ComponentUsingTabs = () => (
|
|
470
|
+
<Tabs tabs={
|
|
471
|
+
{ label: 'Tab 1', content: 'One' },
|
|
472
|
+
{ label: 'Tab 2', content: 'Two' },
|
|
473
|
+
{ label: 'Tab 3', content: 'Three' },
|
|
474
|
+
]} />
|
|
475
|
+
);
|
|
476
|
+
```
|
|
473
477
|
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
478
|
+
We've changed the language to match the W3 spec so a `TabItem` is now a `Tab` and a `TabContent`
|
|
479
|
+
is a `TabPanel`. We now export these components as well as a `TabList` so consumers use a
|
|
480
|
+
composable API that matches the DOM structure.
|
|
477
481
|
|
|
478
|
-
|
|
479
|
-
|
|
482
|
+
```
|
|
483
|
+
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
480
484
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
485
|
+
const ComponentUsingTabs = () => (
|
|
486
|
+
<Tabs
|
|
487
|
+
id="component-using-tabs"
|
|
488
|
+
>
|
|
489
|
+
<TabList>
|
|
490
|
+
<Tab>Tab 1</Tab>
|
|
491
|
+
<Tab>Tab 2</Tab>
|
|
492
|
+
<Tab>Tab 3</Tab>
|
|
493
|
+
</TabList>
|
|
494
|
+
<TabPanel>
|
|
495
|
+
One
|
|
496
|
+
</TabPanel>
|
|
497
|
+
<TabPanel>
|
|
498
|
+
Two
|
|
499
|
+
</TabPanel>
|
|
500
|
+
<TabPanel>
|
|
501
|
+
Three
|
|
502
|
+
</TabPanel>
|
|
503
|
+
</Tabs>
|
|
504
|
+
);
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
This allows you to easily customise your usage, for example if you want to add a tooltip.
|
|
508
|
+
|
|
509
|
+
```
|
|
510
|
+
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
511
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
512
|
+
|
|
513
|
+
const TooltipTab = ({ label, tooltip }: { label: string; tooltip: string }) => (
|
|
514
|
+
<Tooltip content={tooltip}>
|
|
515
|
+
<Tab>{label}</Tab>
|
|
516
|
+
</Tooltip>
|
|
517
|
+
);
|
|
518
|
+
|
|
519
|
+
const ComponentUsingTabs = () => (
|
|
520
|
+
<Tabs
|
|
521
|
+
id="component-using-tabs"
|
|
522
|
+
>
|
|
523
|
+
<TabList>
|
|
524
|
+
<TooltipTab label="Tab 1" tooltip="Tooltip for tab 1" />
|
|
525
|
+
<TooltipTab label="Tab 2" tooltip="Tooltip for tab 2" />
|
|
526
|
+
<TooltipTab label="Tab 3" tooltip="Tooltip for tab 3" />
|
|
527
|
+
</TabList>
|
|
528
|
+
<TabPanel>
|
|
529
|
+
One
|
|
530
|
+
</TabPanel>
|
|
531
|
+
<TabPanel>
|
|
532
|
+
Two
|
|
533
|
+
</TabPanel>
|
|
534
|
+
<TabPanel>
|
|
535
|
+
Three
|
|
536
|
+
</TabPanel>
|
|
537
|
+
</Tabs>
|
|
538
|
+
);
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
### Hooks replacing Component prop
|
|
542
|
+
|
|
543
|
+
The `component` prop allowed you to customise the `Tab` and `TabPanel`. This approach seemed
|
|
544
|
+
counter-intuitive and had a performance impact regardless of whether you were using it. Instead
|
|
545
|
+
with composability we have have added two hooks, `useTab` and `useTabPanel`.
|
|
546
|
+
|
|
547
|
+
To create a custom `Tab`, call `useTab` and spread those attributes onto the custom tab. From
|
|
548
|
+
there you can use it in place of a `Tab`. For example if you want to change the font size you
|
|
549
|
+
would do so like this.
|
|
550
|
+
|
|
551
|
+
```
|
|
552
|
+
import { useTab } from '@atlaskit/tabs';
|
|
553
|
+
|
|
554
|
+
const CustomTab = ({ label }: { label: string }) => {
|
|
555
|
+
const tabAttributes = useTab();
|
|
556
|
+
|
|
557
|
+
return (
|
|
558
|
+
<div
|
|
559
|
+
css={css`
|
|
560
|
+
font-size: 16px;
|
|
561
|
+
`}
|
|
562
|
+
{...tabAttributes}
|
|
484
563
|
>
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
<Tab>Tab 2</Tab>
|
|
488
|
-
<Tab>Tab 3</Tab>
|
|
489
|
-
</TabList>
|
|
490
|
-
<TabPanel>
|
|
491
|
-
One
|
|
492
|
-
</TabPanel>
|
|
493
|
-
<TabPanel>
|
|
494
|
-
Two
|
|
495
|
-
</TabPanel>
|
|
496
|
-
<TabPanel>
|
|
497
|
-
Three
|
|
498
|
-
</TabPanel>
|
|
499
|
-
</Tabs>
|
|
564
|
+
{label}
|
|
565
|
+
</div>
|
|
500
566
|
);
|
|
501
|
-
|
|
567
|
+
};
|
|
568
|
+
```
|
|
502
569
|
|
|
503
|
-
|
|
570
|
+
Likewise, to create a custom `TabPanel`, call `useTabPanel` and spread those attributes onto the
|
|
571
|
+
custom tab panel.
|
|
504
572
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
573
|
+
```
|
|
574
|
+
import { useTabPanel } from '@atlaskit/tabs';
|
|
508
575
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
<Tab>{label}</Tab>
|
|
512
|
-
</Tooltip>
|
|
513
|
-
);
|
|
576
|
+
const CustomTabPanel = ({ body }: { body: string }) => {
|
|
577
|
+
const tabPanelAttributes = useTabPanel();
|
|
514
578
|
|
|
515
|
-
|
|
516
|
-
<
|
|
517
|
-
|
|
579
|
+
return (
|
|
580
|
+
<div
|
|
581
|
+
css={css`
|
|
582
|
+
margin: 12px;
|
|
583
|
+
`}
|
|
584
|
+
{...tabPanelAttributes}
|
|
518
585
|
>
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
<TooltipTab label="Tab 2" tooltip="Tooltip for tab 2" />
|
|
522
|
-
<TooltipTab label="Tab 3" tooltip="Tooltip for tab 3" />
|
|
523
|
-
</TabList>
|
|
524
|
-
<TabPanel>
|
|
525
|
-
One
|
|
526
|
-
</TabPanel>
|
|
527
|
-
<TabPanel>
|
|
528
|
-
Two
|
|
529
|
-
</TabPanel>
|
|
530
|
-
<TabPanel>
|
|
531
|
-
Three
|
|
532
|
-
</TabPanel>
|
|
533
|
-
</Tabs>
|
|
586
|
+
{body}
|
|
587
|
+
</div>
|
|
534
588
|
);
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
{...tabAttributes}
|
|
559
|
-
>
|
|
560
|
-
{label}
|
|
561
|
-
</div>
|
|
562
|
-
);
|
|
563
|
-
};
|
|
564
|
-
```
|
|
565
|
-
|
|
566
|
-
Likewise, to create a custom `TabPanel`, call `useTabPanel` and spread those attributes onto the
|
|
567
|
-
custom tab panel.
|
|
568
|
-
|
|
569
|
-
```
|
|
570
|
-
import { useTabPanel } from '@atlaskit/tabs';
|
|
571
|
-
|
|
572
|
-
const CustomTabPanel = ({ body }: { body: string }) => {
|
|
573
|
-
const tabPanelAttributes = useTabPanel();
|
|
574
|
-
|
|
575
|
-
return (
|
|
576
|
-
<div
|
|
577
|
-
css={css`
|
|
578
|
-
margin: 12px;
|
|
579
|
-
`}
|
|
580
|
-
{...tabPanelAttributes}
|
|
581
|
-
>
|
|
582
|
-
{body}
|
|
583
|
-
</div>
|
|
584
|
-
);
|
|
585
|
-
};
|
|
586
|
-
```
|
|
587
|
-
|
|
588
|
-
### onSelect -> onChange
|
|
589
|
-
|
|
590
|
-
The `onSelect` prop has been renamed to `onChange` to be consistent with other design system
|
|
591
|
-
components. Internal state has now changed to keep track of the selected index. Previously the
|
|
592
|
-
object in the `tabs` prop array of type `TabData` was passed as well as the index. If you were
|
|
593
|
-
using this object you will have to change to use the index.
|
|
594
|
-
|
|
595
|
-
The type has changed from
|
|
596
|
-
`(selected: TabData, selectedIndex: number, analyticsEvent: UIAnalyticsEvent) => void;` to
|
|
597
|
-
`(index: number, analyticsEvent: UIAnalyticsEvent) => void;`
|
|
598
|
-
|
|
599
|
-
This also means if you are using the `selected` prop you will have to ensure you are using the
|
|
600
|
-
index of the selected tab instead of the object of type `TabData`.
|
|
601
|
-
|
|
602
|
-
### isSelectedTest
|
|
603
|
-
|
|
604
|
-
Previously you could provide the prop `isSelectedTest` to `Tabs` and it would determine what tab
|
|
605
|
-
is selected by seeing what tab returns true when `isSelectedTest` is called. This is a messy API
|
|
606
|
-
that effectively means there were two ways of making `Tabs` controlled. If you are using
|
|
607
|
-
`isSelectedTest` you should swap to using the `selected` prop to indicate that a tab is
|
|
608
|
-
selected.
|
|
609
|
-
|
|
610
|
-
### Accessibility and required ID
|
|
611
|
-
|
|
612
|
-
According to the w3 spec each tab should be linked to its corresponding tab panel. We have added
|
|
613
|
-
the `aria-controls` attribute to tabs and the `aria-labelledby` attribute to tab panels. In
|
|
614
|
-
order to do this we needed to generate a unique id for each tab and tab panel. To ensure these
|
|
615
|
-
id's are unique if there are multiple `Tabs` components on the same page there is now a required
|
|
616
|
-
`id` prop.
|
|
617
|
-
|
|
618
|
-
### shouldUnmountTabPanelOnChange
|
|
619
|
-
|
|
620
|
-
There was previously a prop `isContentPersisted` which defaults to false. When true it would
|
|
621
|
-
render all tab panels. The new default behaviour of `Tabs` is to leave each tab panel mounted on
|
|
622
|
-
the page after it has been selected. This means that tab panels will only mount if selected and
|
|
623
|
-
will not unmount and remount when changing tabs. In light of this change, `isContentPersisted`
|
|
624
|
-
has been removed and `shouldUnmountTabPanelOnChange` has been introduced. It defaults to false
|
|
625
|
-
and if it is set to true it will unmount a `TabPanel` when it is not selected. Effectively
|
|
626
|
-
`shouldUnmountTabPanelOnChange` is the inverse of `isContentPersisted`.
|
|
627
|
-
|
|
628
|
-
### Other changes
|
|
629
|
-
|
|
630
|
-
- Remove `TabItem` and `TabContent` export.
|
|
631
|
-
- Remove the types: `TabItemElementProps`, `TabItemComponentProvided`,
|
|
632
|
-
`TabContentComponentProvided`, `TabItemType`, `TabContentType`, `SelectedProp`,
|
|
633
|
-
`IsSelectedTestFunction`, `OnSelectCallback`, `TabsState`, `TabsNavigationProps` and `Mode`.
|
|
634
|
-
|
|
635
|
-
### Automatic upgrading
|
|
589
|
+
};
|
|
590
|
+
```
|
|
591
|
+
|
|
592
|
+
### onSelect -> onChange
|
|
593
|
+
|
|
594
|
+
The `onSelect` prop has been renamed to `onChange` to be consistent with other design system
|
|
595
|
+
components. Internal state has now changed to keep track of the selected index. Previously the
|
|
596
|
+
object in the `tabs` prop array of type `TabData` was passed as well as the index. If you were
|
|
597
|
+
using this object you will have to change to use the index.
|
|
598
|
+
|
|
599
|
+
The type has changed from
|
|
600
|
+
`(selected: TabData, selectedIndex: number, analyticsEvent: UIAnalyticsEvent) => void;` to
|
|
601
|
+
`(index: number, analyticsEvent: UIAnalyticsEvent) => void;`
|
|
602
|
+
|
|
603
|
+
This also means if you are using the `selected` prop you will have to ensure you are using the
|
|
604
|
+
index of the selected tab instead of the object of type `TabData`.
|
|
605
|
+
|
|
606
|
+
### isSelectedTest
|
|
607
|
+
|
|
608
|
+
Previously you could provide the prop `isSelectedTest` to `Tabs` and it would determine what tab
|
|
609
|
+
is selected by seeing what tab returns true when `isSelectedTest` is called. This is a messy API
|
|
610
|
+
that effectively means there were two ways of making `Tabs` controlled. If you are using
|
|
611
|
+
`isSelectedTest` you should swap to using the `selected` prop to indicate that a tab is selected.
|
|
636
612
|
|
|
637
|
-
|
|
638
|
-
your usage, you will most likely have to do a manual step as this is a fairly big change in API.
|
|
639
|
-
The codemod will do its best job at making sure everything functions but you may want to clean
|
|
640
|
-
up your usage of `@atlaskit/tabs`. It does these following changes:
|
|
641
|
-
|
|
642
|
-
- Adds a randomly generated ID
|
|
643
|
-
- Changes `onSelect` to `onChange` and defines a new inline function that will functionally
|
|
644
|
-
work the same as it used to. It is however a messy solution and you may want to change the
|
|
645
|
-
function to only use the selected index.
|
|
646
|
-
- Remove the `TabItem` and `TabContent` imports.
|
|
647
|
-
- Map the array you supplied as a `tabs` prop to create `Tab`'s and `TabPanel`'s.
|
|
648
|
-
- Remove the `component` and `isSelectedTest` prop.
|
|
649
|
-
- Removes types that no longer exist.
|
|
650
|
-
- Migrates your usage of `isContentPersisted` to one of `shouldUnmountTabPanelOnChange`.
|
|
651
|
-
|
|
652
|
-
To run the codemod: **You first need to have the latest version installed**
|
|
653
|
-
|
|
654
|
-
```bash
|
|
655
|
-
yarn upgrade @atlaskit/tabs@^13.0.0
|
|
656
|
-
```
|
|
657
|
-
|
|
658
|
-
Once upgraded, use `@atlaskit/codemod-cli`:
|
|
659
|
-
|
|
660
|
-
```bash
|
|
661
|
-
npx @atlaskit/codemod-cli --parser babel --extensions ts,tsx,js [relativePath]
|
|
662
|
-
```
|
|
613
|
+
### Accessibility and required ID
|
|
663
614
|
|
|
664
|
-
|
|
665
|
-
|
|
615
|
+
According to the w3 spec each tab should be linked to its corresponding tab panel. We have added
|
|
616
|
+
the `aria-controls` attribute to tabs and the `aria-labelledby` attribute to tab panels. In order
|
|
617
|
+
to do this we needed to generate a unique id for each tab and tab panel. To ensure these id's are
|
|
618
|
+
unique if there are multiple `Tabs` components on the same page there is now a required `id` prop.
|
|
666
619
|
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
620
|
+
### shouldUnmountTabPanelOnChange
|
|
621
|
+
|
|
622
|
+
There was previously a prop `isContentPersisted` which defaults to false. When true it would
|
|
623
|
+
render all tab panels. The new default behaviour of `Tabs` is to leave each tab panel mounted on
|
|
624
|
+
the page after it has been selected. This means that tab panels will only mount if selected and
|
|
625
|
+
will not unmount and remount when changing tabs. In light of this change, `isContentPersisted` has
|
|
626
|
+
been removed and `shouldUnmountTabPanelOnChange` has been introduced. It defaults to false and if
|
|
627
|
+
it is set to true it will unmount a `TabPanel` when it is not selected. Effectively
|
|
628
|
+
`shouldUnmountTabPanelOnChange` is the inverse of `isContentPersisted`.
|
|
629
|
+
|
|
630
|
+
### Other changes
|
|
631
|
+
|
|
632
|
+
- Remove `TabItem` and `TabContent` export.
|
|
633
|
+
- Remove the types: `TabItemElementProps`, `TabItemComponentProvided`,
|
|
634
|
+
`TabContentComponentProvided`, `TabItemType`, `TabContentType`, `SelectedProp`,
|
|
635
|
+
`IsSelectedTestFunction`, `OnSelectCallback`, `TabsState`, `TabsNavigationProps` and `Mode`.
|
|
636
|
+
|
|
637
|
+
### Automatic upgrading
|
|
638
|
+
|
|
639
|
+
There is a codemod that assists you in upgrading most of the changes from above. Depending on your
|
|
640
|
+
usage, you will most likely have to do a manual step as this is a fairly big change in API. The
|
|
641
|
+
codemod will do its best job at making sure everything functions but you may want to clean up your
|
|
642
|
+
usage of `@atlaskit/tabs`. It does these following changes:
|
|
643
|
+
|
|
644
|
+
- Adds a randomly generated ID
|
|
645
|
+
- Changes `onSelect` to `onChange` and defines a new inline function that will functionally work
|
|
646
|
+
the same as it used to. It is however a messy solution and you may want to change the function
|
|
647
|
+
to only use the selected index.
|
|
648
|
+
- Remove the `TabItem` and `TabContent` imports.
|
|
649
|
+
- Map the array you supplied as a `tabs` prop to create `Tab`'s and `TabPanel`'s.
|
|
650
|
+
- Remove the `component` and `isSelectedTest` prop.
|
|
651
|
+
- Removes types that no longer exist.
|
|
652
|
+
- Migrates your usage of `isContentPersisted` to one of `shouldUnmountTabPanelOnChange`.
|
|
653
|
+
|
|
654
|
+
To run the codemod: **You first need to have the latest version installed**
|
|
655
|
+
|
|
656
|
+
```bash
|
|
657
|
+
yarn upgrade @atlaskit/tabs@^13.0.0
|
|
658
|
+
```
|
|
659
|
+
|
|
660
|
+
Once upgraded, use `@atlaskit/codemod-cli`:
|
|
661
|
+
|
|
662
|
+
```bash
|
|
663
|
+
npx @atlaskit/codemod-cli --parser babel --extensions ts,tsx,js [relativePath]
|
|
664
|
+
```
|
|
665
|
+
|
|
666
|
+
The CLI will show a list of components and versions so select `@atlaskit/tabs@^13.0.0` and you
|
|
667
|
+
will automatically be upgraded.
|
|
668
|
+
|
|
669
|
+
Run `npx @atlaskit/codemod-cli -h` for more details on usage. For Atlassians, refer to the
|
|
670
|
+
[documentation](https://hello.atlassian.net/wiki/spaces/AF/pages/2627171992/Codemods) for more
|
|
671
|
+
details on the codemod CLI.
|
|
670
672
|
|
|
671
673
|
### Patch Changes
|
|
672
674
|
|
|
673
|
-
-
|
|
674
|
-
|
|
675
|
-
-
|
|
676
|
-
|
|
677
|
-
-
|
|
675
|
+
- [`4a969d5c40f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a969d5c40f) - Fix a
|
|
676
|
+
bug where the active element is blurred instead of the current element when clicked.
|
|
677
|
+
- [`1adf9a493f5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1adf9a493f5) - Fix
|
|
678
|
+
codemod issue
|
|
679
|
+
- Updated dependencies
|
|
678
680
|
|
|
679
681
|
## 12.1.3
|
|
680
682
|
|
|
681
683
|
### Patch Changes
|
|
682
684
|
|
|
683
|
-
-
|
|
684
|
-
|
|
685
|
-
|
|
685
|
+
- [#8644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8644)
|
|
686
|
+
[`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use
|
|
687
|
+
injected package name and version for analytics instead of version.json.
|
|
686
688
|
|
|
687
689
|
## 12.1.2
|
|
688
690
|
|
|
689
691
|
### Patch Changes
|
|
690
692
|
|
|
691
|
-
-
|
|
692
|
-
|
|
693
|
-
|
|
693
|
+
- [#6930](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6930)
|
|
694
|
+
[`e795d0a849`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e795d0a849) - The `Tabs`
|
|
695
|
+
component now uses emotion instead of styled-components for it's internal styling.
|
|
694
696
|
|
|
695
697
|
## 12.1.1
|
|
696
698
|
|
|
697
699
|
### Patch Changes
|
|
698
700
|
|
|
699
|
-
-
|
|
700
|
-
|
|
701
|
-
|
|
701
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
702
|
+
[`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile
|
|
703
|
+
packages using babel rather than tsc
|
|
702
704
|
|
|
703
705
|
## 12.1.0
|
|
704
706
|
|
|
705
707
|
### Minor Changes
|
|
706
708
|
|
|
707
|
-
-
|
|
708
|
-
|
|
709
|
-
|
|
709
|
+
- [#6228](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6228)
|
|
710
|
+
[`98c957d889`](https://bitbucket.org/atlassian/atlassian-frontend/commits/98c957d889) - [ux]
|
|
711
|
+
Content of tabs will be preserved on the DOM while switching between tabs
|
|
710
712
|
|
|
711
713
|
## 12.0.6
|
|
712
714
|
|
|
713
715
|
### Patch Changes
|
|
714
716
|
|
|
715
|
-
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
717
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
718
|
+
[`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
|
|
719
|
+
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
|
|
720
|
+
compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript
|
|
721
|
+
versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
|
|
722
|
+
`devDependencies` to denote version that the package was built with.
|
|
721
723
|
|
|
722
724
|
## 12.0.5
|
|
723
725
|
|
|
724
726
|
### Patch Changes
|
|
725
727
|
|
|
726
|
-
-
|
|
728
|
+
- Updated dependencies
|
|
727
729
|
|
|
728
730
|
## 12.0.4
|
|
729
731
|
|
|
730
732
|
### Patch Changes
|
|
731
733
|
|
|
732
|
-
-
|
|
733
|
-
|
|
734
|
-
|
|
734
|
+
- [#4707](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4707)
|
|
735
|
+
[`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable
|
|
736
|
+
integration tests for Edge browser
|
|
735
737
|
|
|
736
738
|
## 12.0.3
|
|
737
739
|
|
|
738
740
|
### Patch Changes
|
|
739
741
|
|
|
740
|
-
-
|
|
741
|
-
|
|
742
|
-
|
|
742
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
743
|
+
[`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
|
|
744
|
+
to TypeScript 3.9.6 and tslib to 2.0.0
|
|
743
745
|
|
|
744
|
-
|
|
745
|
-
|
|
746
|
+
Since tslib is a dependency for all our packages we recommend that products also follow this tslib
|
|
747
|
+
upgrade to prevent duplicates of tslib being bundled.
|
|
746
748
|
|
|
747
749
|
## 12.0.2
|
|
748
750
|
|
|
749
751
|
### Patch Changes
|
|
750
752
|
|
|
751
|
-
-
|
|
752
|
-
|
|
753
|
-
|
|
753
|
+
- [#3293](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3293)
|
|
754
|
+
[`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme
|
|
755
|
+
and package information has been updated to point to the new design system website.
|
|
754
756
|
|
|
755
757
|
## 12.0.1
|
|
756
758
|
|
|
757
759
|
### Patch Changes
|
|
758
760
|
|
|
759
|
-
-
|
|
760
|
-
|
|
761
|
-
|
|
761
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428)
|
|
762
|
+
[`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update all
|
|
763
|
+
the theme imports to be tree-shakable
|
|
762
764
|
|
|
763
765
|
## 12.0.0
|
|
764
766
|
|
|
765
767
|
### Major Changes
|
|
766
768
|
|
|
767
|
-
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
769
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
770
|
+
[`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially
|
|
771
|
+
dropping IE11 support, from this version onwards there are no warranties of the package working in
|
|
772
|
+
IE11. For more information see:
|
|
773
|
+
https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
772
774
|
|
|
773
775
|
### Patch Changes
|
|
774
776
|
|
|
775
|
-
-
|
|
777
|
+
- Updated dependencies
|
|
776
778
|
|
|
777
779
|
## 11.2.11
|
|
778
780
|
|
|
779
781
|
### Patch Changes
|
|
780
782
|
|
|
781
|
-
-
|
|
782
|
-
|
|
783
|
-
|
|
783
|
+
- [#2866](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2866)
|
|
784
|
+
[`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and
|
|
785
|
+
supporting files will no longer be published to npm
|
|
784
786
|
|
|
785
787
|
## 11.2.10
|
|
786
788
|
|
|
787
789
|
### Patch Changes
|
|
788
790
|
|
|
789
|
-
-
|
|
790
|
-
|
|
791
|
-
|
|
791
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137)
|
|
792
|
+
[`54d82b49f0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54d82b49f0) - Remove
|
|
793
|
+
unused dependencies
|
|
792
794
|
|
|
793
795
|
## 11.2.9
|
|
794
796
|
|
|
795
797
|
### Patch Changes
|
|
796
798
|
|
|
797
|
-
-
|
|
799
|
+
- Updated dependencies
|
|
798
800
|
|
|
799
801
|
## 11.2.8
|
|
800
802
|
|
|
801
803
|
### Patch Changes
|
|
802
804
|
|
|
803
|
-
-
|
|
805
|
+
- [patch][b41c0887cd](https://bitbucket.org/atlassian/atlassian-frontend/commits/b41c0887cd):
|
|
804
806
|
|
|
805
|
-
|
|
806
|
-
|
|
807
|
+
Change imports to comply with Atlassian conventions- Updated dependencies
|
|
808
|
+
[3940bd71f1](https://bitbucket.org/atlassian/atlassian-frontend/commits/3940bd71f1):
|
|
807
809
|
|
|
808
|
-
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
810
|
+
- Updated dependencies
|
|
811
|
+
[fd41d77c29](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd41d77c29):
|
|
812
|
+
- @atlaskit/tooltip@15.2.6
|
|
813
|
+
- @atlaskit/webdriver-runner@0.3.4
|
|
812
814
|
|
|
813
815
|
## 11.2.7
|
|
814
816
|
|
|
815
817
|
### Patch Changes
|
|
816
818
|
|
|
817
|
-
-
|
|
818
|
-
|
|
819
|
-
-
|
|
820
|
-
|
|
821
|
-
-
|
|
822
|
-
|
|
823
|
-
-
|
|
824
|
-
|
|
825
|
-
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
819
|
+
- Updated dependencies
|
|
820
|
+
[66dcced7a0](https://bitbucket.org/atlassian/atlassian-frontend/commits/66dcced7a0):
|
|
821
|
+
- Updated dependencies
|
|
822
|
+
[64fb94fb1e](https://bitbucket.org/atlassian/atlassian-frontend/commits/64fb94fb1e):
|
|
823
|
+
- Updated dependencies
|
|
824
|
+
[eea5e9bd8c](https://bitbucket.org/atlassian/atlassian-frontend/commits/eea5e9bd8c):
|
|
825
|
+
- Updated dependencies
|
|
826
|
+
[109c1a2c0a](https://bitbucket.org/atlassian/atlassian-frontend/commits/109c1a2c0a):
|
|
827
|
+
- Updated dependencies
|
|
828
|
+
[c57bb32f6d](https://bitbucket.org/atlassian/atlassian-frontend/commits/c57bb32f6d):
|
|
829
|
+
- @atlaskit/docs@8.4.0
|
|
830
|
+
- @atlaskit/webdriver-runner@0.3.0
|
|
831
|
+
- @atlaskit/spinner@12.1.6
|
|
832
|
+
- @atlaskit/tooltip@15.2.5
|
|
831
833
|
|
|
832
834
|
## 11.2.6
|
|
833
835
|
|
|
834
836
|
### Patch Changes
|
|
835
837
|
|
|
836
|
-
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
838
|
+
- Updated dependencies
|
|
839
|
+
[e3f01787dd](https://bitbucket.org/atlassian/atlassian-frontend/commits/e3f01787dd):
|
|
840
|
+
- @atlaskit/webdriver-runner@0.2.0
|
|
841
|
+
- @atlaskit/spinner@12.1.5
|
|
842
|
+
- @atlaskit/tooltip@15.2.4
|
|
841
843
|
|
|
842
844
|
## 11.2.5
|
|
843
845
|
|
|
844
846
|
### Patch Changes
|
|
845
847
|
|
|
846
|
-
-
|
|
848
|
+
- [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
847
849
|
|
|
848
|
-
|
|
849
|
-
|
|
850
|
+
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
851
|
+
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
850
852
|
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
853
|
+
- @atlaskit/docs@8.3.2
|
|
854
|
+
- @atlaskit/visual-regression@0.1.9
|
|
855
|
+
- @atlaskit/analytics-next@6.3.5
|
|
856
|
+
- @atlaskit/spinner@12.1.4
|
|
857
|
+
- @atlaskit/theme@9.5.1
|
|
858
|
+
- @atlaskit/tooltip@15.2.3
|
|
857
859
|
|
|
858
860
|
## 11.2.4
|
|
859
861
|
|
|
860
862
|
### Patch Changes
|
|
861
863
|
|
|
862
|
-
-
|
|
864
|
+
- [patch][4a223473c5](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a223473c5):
|
|
863
865
|
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
866
|
+
Removes babel/runtime from dependencies. Users should see a smaller bundlesize as a result-
|
|
867
|
+
Updated dependencies
|
|
868
|
+
[82747f2922](https://bitbucket.org/atlassian/atlassian-frontend/commits/82747f2922):
|
|
867
869
|
|
|
868
|
-
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
870
|
+
- Updated dependencies
|
|
871
|
+
[4a223473c5](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a223473c5):
|
|
872
|
+
- @atlaskit/theme@9.5.0
|
|
873
|
+
- @atlaskit/spinner@12.1.3
|
|
874
|
+
- @atlaskit/tooltip@15.2.1
|
|
873
875
|
|
|
874
876
|
## 11.2.3
|
|
875
877
|
|
|
876
878
|
### Patch Changes
|
|
877
879
|
|
|
878
|
-
-
|
|
880
|
+
- [patch][36f6e99c5b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/36f6e99c5b):
|
|
879
881
|
|
|
880
|
-
|
|
882
|
+
Fix type errors caused when generating declaration files
|
|
881
883
|
|
|
882
884
|
## 11.2.2
|
|
883
885
|
|
|
884
886
|
### Patch Changes
|
|
885
887
|
|
|
886
|
-
-
|
|
888
|
+
- [patch][d222c2b987](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d222c2b987):
|
|
887
889
|
|
|
888
|
-
|
|
889
|
-
|
|
890
|
+
Theme has been converted to Typescript. Typescript consumers will now get static type safety. Flow
|
|
891
|
+
types are no longer provided.
|
|
890
892
|
|
|
891
|
-
|
|
893
|
+
### Breaking
|
|
892
894
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
895
|
+
** getTokens props changes ** When defining the value function passed into a ThemeProvider, the
|
|
896
|
+
getTokens parameter cannot be called without props; if no props are provided an empty object `{}`
|
|
897
|
+
must be passed in:
|
|
896
898
|
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
899
|
+
```javascript
|
|
900
|
+
<CustomTheme.Provider
|
|
901
|
+
value={t => ({ ...t(), backgroundColor: '#333'})}
|
|
902
|
+
>
|
|
903
|
+
```
|
|
902
904
|
|
|
903
|
-
|
|
905
|
+
becomes:
|
|
904
906
|
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
907
|
+
```javascript
|
|
908
|
+
<CustomTheme.Provider
|
|
909
|
+
value={t => ({ ...t({}), backgroundColor: '#333'})}
|
|
910
|
+
>
|
|
911
|
+
```
|
|
910
912
|
|
|
911
|
-
|
|
912
|
-
|
|
913
|
+
** Color palette changes ** Color palettes have been moved into their own file. Users will need to
|
|
914
|
+
update imports from this:
|
|
913
915
|
|
|
914
|
-
|
|
915
|
-
|
|
916
|
+
```javascript
|
|
917
|
+
import { colors } from '@atlaskit/theme';
|
|
916
918
|
|
|
917
|
-
|
|
918
|
-
|
|
919
|
+
colors.colorPalette('8');
|
|
920
|
+
```
|
|
919
921
|
|
|
920
|
-
|
|
922
|
+
to this:
|
|
921
923
|
|
|
922
|
-
|
|
923
|
-
|
|
924
|
+
```javascript
|
|
925
|
+
import { colorPalette } from '@atlaskit/theme';
|
|
924
926
|
|
|
925
|
-
|
|
926
|
-
|
|
927
|
+
colorPalette.colorPalette('8');
|
|
928
|
+
```
|
|
927
929
|
|
|
928
|
-
|
|
930
|
+
or for multi entry-point users:
|
|
929
931
|
|
|
930
|
-
|
|
931
|
-
|
|
932
|
+
```javascript
|
|
933
|
+
import * as colors from '@atlaskit/theme/colors';
|
|
932
934
|
|
|
933
|
-
|
|
934
|
-
|
|
935
|
+
colors.colorPalette('8');
|
|
936
|
+
```
|
|
935
937
|
|
|
936
|
-
|
|
938
|
+
to this:
|
|
937
939
|
|
|
938
|
-
|
|
939
|
-
|
|
940
|
+
```javascript
|
|
941
|
+
import * as colorPalettes from '@atlaskit/theme/color-palette';
|
|
940
942
|
|
|
941
|
-
|
|
942
|
-
|
|
943
|
+
colorPalettes.colorPalette('8');
|
|
944
|
+
```
|
|
943
945
|
|
|
944
946
|
## 11.2.1
|
|
945
947
|
|
|
946
948
|
### Patch Changes
|
|
947
949
|
|
|
948
|
-
-
|
|
950
|
+
- [patch][35d2229b2a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/35d2229b2a):
|
|
949
951
|
|
|
950
|
-
|
|
952
|
+
Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.
|
|
951
953
|
|
|
952
954
|
## 11.2.0
|
|
953
955
|
|
|
954
956
|
### Minor Changes
|
|
955
957
|
|
|
956
|
-
-
|
|
958
|
+
- [minor][99957d4a20](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/99957d4a20):
|
|
957
959
|
|
|
958
|
-
|
|
959
|
-
|
|
960
|
+
Adding an optional prop `testId` that will set the attribute value `data-testid`. It will help
|
|
961
|
+
products to write better integration and end to end tests.
|
|
960
962
|
|
|
961
963
|
## 11.1.1
|
|
962
964
|
|
|
963
965
|
### Patch Changes
|
|
964
966
|
|
|
965
|
-
-
|
|
967
|
+
- [patch][a2d0043716](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a2d0043716):
|
|
966
968
|
|
|
967
|
-
|
|
969
|
+
Updated version of analytics-next to fix potential incompatibilities with TS 3.6
|
|
968
970
|
|
|
969
971
|
## 11.1.0
|
|
970
972
|
|
|
971
973
|
### Minor Changes
|
|
972
974
|
|
|
973
|
-
-
|
|
975
|
+
- [minor][c6efb2f5b6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c6efb2f5b6):
|
|
974
976
|
|
|
975
|
-
|
|
977
|
+
Prefix the legacy lifecycle methods with UNSAFE\_\* to avoid warning in React 16.9+
|
|
976
978
|
|
|
977
|
-
|
|
978
|
-
|
|
979
|
+
More information about the deprecation of lifecycles methods can be found here:
|
|
980
|
+
https://reactjs.org/blog/2018/03/29/react-v-16-3.html#component-lifecycle-changes
|
|
979
981
|
|
|
980
982
|
## 11.0.9
|
|
981
983
|
|
|
982
984
|
### Patch Changes
|
|
983
985
|
|
|
984
|
-
-
|
|
986
|
+
- [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
|
|
985
987
|
|
|
986
|
-
|
|
987
|
-
|
|
988
|
+
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
|
|
989
|
+
non-relative imports as relative imports
|
|
988
990
|
|
|
989
991
|
## 11.0.8
|
|
990
992
|
|
|
991
993
|
### Patch Changes
|
|
992
994
|
|
|
993
|
-
-
|
|
995
|
+
- [patch][ecca4d1dbb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ecca4d1dbb):
|
|
994
996
|
|
|
995
|
-
|
|
997
|
+
Upgraded Typescript to 3.3.x
|
|
996
998
|
|
|
997
999
|
## 11.0.7
|
|
998
1000
|
|
|
999
1001
|
### Patch Changes
|
|
1000
1002
|
|
|
1001
|
-
-
|
|
1003
|
+
- [patch][708028db86](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/708028db86):
|
|
1002
1004
|
|
|
1003
|
-
|
|
1005
|
+
Change all the imports to theme in Core to use multi entry points
|
|
1004
1006
|
|
|
1005
1007
|
## 11.0.6
|
|
1006
1008
|
|
|
1007
1009
|
### Patch Changes
|
|
1008
1010
|
|
|
1009
|
-
-
|
|
1011
|
+
- [patch][de35ce8c67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/de35ce8c67):
|
|
1010
1012
|
|
|
1011
|
-
|
|
1013
|
+
Updates component maintainers
|
|
1012
1014
|
|
|
1013
1015
|
## 11.0.5
|
|
1014
1016
|
|
|
1015
1017
|
### Patch Changes
|
|
1016
1018
|
|
|
1017
|
-
-
|
|
1019
|
+
- [patch][926b43142b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/926b43142b):
|
|
1018
1020
|
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
+
Analytics-next has been converted to Typescript. Typescript consumers will now get static type
|
|
1022
|
+
safety. Flow types are no longer provided. No behavioural changes.
|
|
1021
1023
|
|
|
1022
|
-
|
|
1024
|
+
**Breaking changes**
|
|
1023
1025
|
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
+
- `withAnalyticsForSumTypeProps` alias has been removed, please use `withAnalyticsEvents`
|
|
1027
|
+
- `AnalyticsContextWrappedComp` alias has been removed, please use `withAnalyticsContext`
|
|
1026
1028
|
|
|
1027
|
-
|
|
1029
|
+
**Breaking changes to TypeScript annotations**
|
|
1028
1030
|
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1031
|
+
- `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide
|
|
1032
|
+
props as a generic type.
|
|
1033
|
+
- `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide
|
|
1034
|
+
props as a generic type.
|
|
1035
|
+
- Type `WithAnalyticsEventProps` has been renamed to `WithAnalyticsEventsProps` to match source
|
|
1036
|
+
code
|
|
1037
|
+
- Type `CreateUIAnalyticsEventSignature` has been renamed to `CreateUIAnalyticsEvent` to match
|
|
1038
|
+
source code
|
|
1039
|
+
- Type `UIAnalyticsEventHandlerSignature` has been renamed to `UIAnalyticsEventHandler` to match
|
|
1040
|
+
source code
|
|
1041
|
+
- Type `AnalyticsEventsPayload` has been renamed to `AnalyticsEventPayload`
|
|
1042
|
+
- Type `ObjectType` has been removed, please use `Record<string, any>` or `[key: string]: any`
|
|
1043
|
+
- Type `UIAnalyticsEventInterface` has been removed, please use `UIAnalyticsEvent`
|
|
1044
|
+
- Type `AnalyticsEventInterface` has been removed, please use `AnalyticsEvent`
|
|
1045
|
+
- Type `CreateAndFireEventFunction` removed and should now be inferred by TypeScript
|
|
1046
|
+
- Type `AnalyticsEventUpdater` removed and should now be inferred by TypeScript
|
|
1045
1047
|
|
|
1046
1048
|
## 11.0.4
|
|
1047
1049
|
|
|
1048
1050
|
### Patch Changes
|
|
1049
1051
|
|
|
1050
|
-
-
|
|
1052
|
+
- [patch][3342f64d5e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3342f64d5e):
|
|
1051
1053
|
|
|
1052
|
-
|
|
1054
|
+
Removed unused dependencies from package.json for tabs: keycode was unused.
|
|
1053
1055
|
|
|
1054
1056
|
## 11.0.3
|
|
1055
1057
|
|
|
1056
1058
|
### Patch Changes
|
|
1057
1059
|
|
|
1058
|
-
-
|
|
1060
|
+
- [patch][f34776be97](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f34776be97):
|
|
1059
1061
|
|
|
1060
|
-
|
|
1062
|
+
Type definition files are now referenced in package.json
|
|
1061
1063
|
|
|
1062
1064
|
## 11.0.2
|
|
1063
1065
|
|
|
1064
1066
|
### Patch Changes
|
|
1065
1067
|
|
|
1066
|
-
-
|
|
1068
|
+
- [patch][9f8ab1084b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9f8ab1084b):
|
|
1067
1069
|
|
|
1068
|
-
|
|
1070
|
+
Consume analytics-next ts type definitions as an ambient declaration.
|
|
1069
1071
|
|
|
1070
1072
|
## 11.0.1
|
|
1071
1073
|
|
|
1072
1074
|
### Patch Changes
|
|
1073
1075
|
|
|
1074
|
-
-
|
|
1076
|
+
- [patch][d0db01b410](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d0db01b410):
|
|
1075
1077
|
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1078
|
+
TypeScript users of withAnalyticsEvents and withAnalyticsContext are now required to provide props
|
|
1079
|
+
as a generic type. This is so that TypeScript can correctly calculate the props and defaultProps
|
|
1080
|
+
of the returned component.
|
|
1079
1081
|
|
|
1080
|
-
|
|
1082
|
+
Before:
|
|
1081
1083
|
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1084
|
+
```typescript
|
|
1085
|
+
withAnalyticsEvents()(Button) as ComponentClass<Props>;
|
|
1086
|
+
```
|
|
1085
1087
|
|
|
1086
|
-
|
|
1088
|
+
After:
|
|
1087
1089
|
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1090
|
+
```typescript
|
|
1091
|
+
withAnalyticsEvents<Props>()(Button);
|
|
1092
|
+
```
|
|
1091
1093
|
|
|
1092
1094
|
## 11.0.0
|
|
1093
1095
|
|
|
1094
1096
|
### Major Changes
|
|
1095
1097
|
|
|
1096
|
-
-
|
|
1098
|
+
- [major][61a919319a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/61a919319a):
|
|
1097
1099
|
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1100
|
+
@atlaskit/tabs has been converted to Typescript. Typescript consumers will now get static type
|
|
1101
|
+
safety. Flow types are no longer provided. No API or behavioural changes. tabIndex now only
|
|
1102
|
+
accepts type number.
|
|
1101
1103
|
|
|
1102
1104
|
## 10.0.4
|
|
1103
1105
|
|
|
1104
1106
|
### Patch Changes
|
|
1105
1107
|
|
|
1106
|
-
-
|
|
1108
|
+
- [patch][4615439434](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4615439434):
|
|
1107
1109
|
|
|
1108
|
-
|
|
1110
|
+
index.ts will now be ignored when publishing to npm
|
|
1109
1111
|
|
|
1110
1112
|
## 10.0.3
|
|
1111
1113
|
|
|
1112
|
-
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1114
|
+
- Updated dependencies
|
|
1115
|
+
[67f06f58dd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/67f06f58dd):
|
|
1116
|
+
- @atlaskit/tooltip@15.0.0
|
|
1115
1117
|
|
|
1116
1118
|
## 10.0.2
|
|
1117
1119
|
|
|
1118
|
-
-
|
|
1120
|
+
- [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
|
|
1119
1121
|
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
+
- This is just a safety release in case anything strange happened in in the previous one. See Pull
|
|
1123
|
+
Request #5942 for details
|
|
1122
1124
|
|
|
1123
1125
|
## 10.0.1
|
|
1124
1126
|
|
|
1125
|
-
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1127
|
+
- Updated dependencies
|
|
1128
|
+
[215688984e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/215688984e):
|
|
1129
|
+
- @atlaskit/spinner@12.0.0
|
|
1128
1130
|
|
|
1129
1131
|
## 10.0.0
|
|
1130
1132
|
|
|
1131
|
-
-
|
|
1133
|
+
- [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
1132
1134
|
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
+
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
|
|
1136
|
+
this package, please ensure you use at least this version of react and react-dom.
|
|
1135
1137
|
|
|
1136
1138
|
## 9.0.1
|
|
1137
1139
|
|
|
1138
|
-
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1140
|
+
- Updated dependencies
|
|
1141
|
+
[9c0b4744be](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9c0b4744be):
|
|
1142
|
+
- @atlaskit/docs@7.0.3
|
|
1143
|
+
- @atlaskit/spinner@10.0.7
|
|
1144
|
+
- @atlaskit/tooltip@13.0.4
|
|
1145
|
+
- @atlaskit/theme@8.1.7
|
|
1144
1146
|
|
|
1145
1147
|
## 9.0.0
|
|
1146
1148
|
|
|
1147
|
-
-
|
|
1149
|
+
- [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
|
|
1148
1150
|
|
|
1149
|
-
|
|
1151
|
+
- Drop ES5 from all the flow modules
|
|
1150
1152
|
|
|
1151
|
-
|
|
1153
|
+
### Dropping CJS support in all @atlaskit packages
|
|
1152
1154
|
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1155
|
+
As a breaking change, all @atlaskit packages will be dropping cjs distributions and will only
|
|
1156
|
+
distribute esm. This means all distributed code will be transpiled, but will still contain
|
|
1157
|
+
`import` and `export` declarations.
|
|
1156
1158
|
|
|
1157
|
-
|
|
1158
|
-
e.g:
|
|
1159
|
+
The major reason for doing this is to allow us to support multiple entry points in packages, e.g:
|
|
1159
1160
|
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1161
|
+
```js
|
|
1162
|
+
import colors from `@atlaskit/theme/colors`;
|
|
1163
|
+
```
|
|
1163
1164
|
|
|
1164
|
-
|
|
1165
|
+
Previously this was sort of possible for consumers by doing something like:
|
|
1165
1166
|
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1167
|
+
```js
|
|
1168
|
+
import colors from `@atlaskit/theme/dist/esm/colors`;
|
|
1169
|
+
```
|
|
1169
1170
|
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1171
|
+
This has a couple of issues. 1, it treats the file system as API making internal refactors harder,
|
|
1172
|
+
we have to worry about how consumers might be using things that aren't _actually_ supposed to be
|
|
1173
|
+
used. 2. We are unable to do this _internally_ in @atlaskit packages. This leads to lots of
|
|
1174
|
+
packages bundling all of theme, just to use a single color, especially in situations where tree
|
|
1175
|
+
shaking fails.
|
|
1175
1176
|
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1177
|
+
To support being able to use multiple entrypoints internally, we unfortunately cannot have
|
|
1178
|
+
multiple distributions as they would need to have very different imports from of their own
|
|
1179
|
+
internal dependencies.
|
|
1179
1180
|
|
|
1180
|
-
|
|
1181
|
-
|
|
1181
|
+
ES Modules are widely supported by all modern bundlers and can be worked around in node
|
|
1182
|
+
environments.
|
|
1182
1183
|
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1184
|
+
We may choose to revisit this solution in the future if we find any unintended condequences, but
|
|
1185
|
+
we see this as a pretty sane path forward which should lead to some major bundle size decreases,
|
|
1186
|
+
saner API's and simpler package architecture.
|
|
1186
1187
|
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1188
|
+
Please reach out to #fabric-build (if in Atlassian) or create an issue in
|
|
1189
|
+
[Design System Support](https://ecosystem.atlassian.net/secure/CreateIssue.jspa?pid=24670) (for
|
|
1190
|
+
external) if you have any questions or queries about this.
|
|
1190
1191
|
|
|
1191
1192
|
## 8.0.11
|
|
1192
1193
|
|
|
1193
|
-
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1194
|
+
- Updated dependencies [58b84fa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/58b84fa):
|
|
1195
|
+
- @atlaskit/analytics-next@3.1.2
|
|
1196
|
+
- @atlaskit/spinner@9.0.13
|
|
1197
|
+
- @atlaskit/theme@7.0.1
|
|
1198
|
+
- @atlaskit/tooltip@12.1.13
|
|
1199
|
+
- @atlaskit/docs@6.0.0
|
|
1199
1200
|
|
|
1200
1201
|
## 8.0.10
|
|
1201
1202
|
|
|
1202
|
-
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1203
|
+
- Updated dependencies [d13242d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13242d):
|
|
1204
|
+
- @atlaskit/docs@5.2.3
|
|
1205
|
+
- @atlaskit/spinner@9.0.12
|
|
1206
|
+
- @atlaskit/tooltip@12.1.12
|
|
1207
|
+
- @atlaskit/theme@7.0.0
|
|
1207
1208
|
|
|
1208
1209
|
## 8.0.9
|
|
1209
1210
|
|
|
1210
|
-
-
|
|
1211
|
-
|
|
1211
|
+
- [patch] Adds missing implicit @babel/runtime dependency
|
|
1212
|
+
[b71751b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b71751b)
|
|
1212
1213
|
|
|
1213
1214
|
## 8.0.8
|
|
1214
1215
|
|
|
1215
|
-
-
|
|
1216
|
-
|
|
1216
|
+
- [patch] Adds sideEffects: false to allow proper tree shaking
|
|
1217
|
+
[b5d6d04](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b5d6d04)
|
|
1217
1218
|
|
|
1218
1219
|
## 8.0.6
|
|
1219
1220
|
|
|
1220
|
-
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1221
|
+
- [patch] Updated dependencies
|
|
1222
|
+
[df22ad8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/df22ad8)
|
|
1223
|
+
- @atlaskit/theme@6.0.0
|
|
1224
|
+
- @atlaskit/tooltip@12.0.9
|
|
1225
|
+
- @atlaskit/spinner@9.0.6
|
|
1226
|
+
- @atlaskit/docs@5.0.6
|
|
1226
1227
|
|
|
1227
1228
|
## 8.0.5
|
|
1228
1229
|
|
|
1229
|
-
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1230
|
+
- [patch] update the dependency of react-dom to 16.4.2 due to vulnerability in previous versions
|
|
1231
|
+
read https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html for details
|
|
1232
|
+
[a4bd557](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a4bd557)
|
|
1233
|
+
- [none] Updated dependencies
|
|
1234
|
+
[a4bd557](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a4bd557)
|
|
1235
|
+
- @atlaskit/tooltip@12.0.5
|
|
1236
|
+
- @atlaskit/analytics-next@3.0.4
|
|
1237
|
+
- @atlaskit/theme@5.1.3
|
|
1238
|
+
- @atlaskit/spinner@9.0.5
|
|
1238
1239
|
|
|
1239
1240
|
## 8.0.4
|
|
1240
1241
|
|
|
1241
|
-
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1242
|
+
- [patch] Updated dependencies
|
|
1243
|
+
[acd86a1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/acd86a1)
|
|
1244
|
+
- @atlaskit/tooltip@12.0.4
|
|
1245
|
+
- @atlaskit/theme@5.1.2
|
|
1246
|
+
- @atlaskit/spinner@9.0.4
|
|
1247
|
+
- @atlaskit/analytics-next@3.0.3
|
|
1248
|
+
- @atlaskit/docs@5.0.2
|
|
1248
1249
|
|
|
1249
1250
|
## 8.0.3
|
|
1250
1251
|
|
|
1251
|
-
-
|
|
1252
|
-
|
|
1253
|
-
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1252
|
+
- [patch] Add a SSR test for every package, add react-dom and build-utils in devDependencies
|
|
1253
|
+
[7e331b5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7e331b5)
|
|
1254
|
+
- [none] Updated dependencies
|
|
1255
|
+
[7e331b5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7e331b5)
|
|
1256
|
+
- @atlaskit/tooltip@12.0.3
|
|
1257
|
+
- @atlaskit/analytics-next@3.0.2
|
|
1258
|
+
- @atlaskit/theme@5.1.1
|
|
1259
|
+
- @atlaskit/spinner@9.0.3
|
|
1259
1260
|
|
|
1260
1261
|
## 8.0.2
|
|
1261
1262
|
|
|
1262
|
-
-
|
|
1263
|
-
|
|
1264
|
-
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1263
|
+
- [patch] Move analytics tests and replace elements to core
|
|
1264
|
+
[49d4ab4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/49d4ab4)
|
|
1265
|
+
- [none] Updated dependencies
|
|
1266
|
+
[49d4ab4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/49d4ab4)
|
|
1267
|
+
- @atlaskit/tooltip@12.0.1
|
|
1268
|
+
- @atlaskit/analytics-next@3.0.1
|
|
1269
|
+
- @atlaskit/spinner@9.0.2
|
|
1270
|
+
- @atlaskit/docs@5.0.1
|
|
1270
1271
|
|
|
1271
1272
|
## 8.0.1
|
|
1272
1273
|
|
|
1273
|
-
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1274
|
+
- [patch] Updated dependencies
|
|
1275
|
+
[e6b1985](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e6b1985)
|
|
1276
|
+
- @atlaskit/tooltip@12.0.0
|
|
1276
1277
|
|
|
1277
1278
|
## 8.0.0
|
|
1278
1279
|
|
|
1279
|
-
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
-
|
|
1285
|
-
|
|
1286
|
-
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1280
|
+
- [major] Provides analytics for common component interations. See the
|
|
1281
|
+
[Instrumented Components](https://atlaskit.atlassian.com/packages/core/analytics-next) section for
|
|
1282
|
+
more details. If you are using enzyme for testing you will have to use
|
|
1283
|
+
[our forked version of the library](https://atlaskit.atlassian.com/docs/guides/testing#we-use-a-forked-version-of-enzyme).
|
|
1284
|
+
[563a7eb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/563a7eb)
|
|
1285
|
+
- [major] Updates to React ^16.4.0
|
|
1286
|
+
[7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866)
|
|
1287
|
+
- [major] Updated dependencies
|
|
1288
|
+
[563a7eb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/563a7eb)
|
|
1289
|
+
- @atlaskit/tooltip@11.0.0
|
|
1290
|
+
- @atlaskit/analytics-next@3.0.0
|
|
1291
|
+
- @atlaskit/theme@5.0.0
|
|
1292
|
+
- @atlaskit/spinner@9.0.0
|
|
1293
|
+
- @atlaskit/docs@5.0.0
|
|
1294
|
+
- [major] Updated dependencies
|
|
1295
|
+
[7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866)
|
|
1296
|
+
- @atlaskit/tooltip@11.0.0
|
|
1297
|
+
- @atlaskit/analytics-next@3.0.0
|
|
1298
|
+
- @atlaskit/theme@5.0.0
|
|
1299
|
+
- @atlaskit/spinner@9.0.0
|
|
1300
|
+
- @atlaskit/docs@5.0.0
|
|
1300
1301
|
|
|
1301
1302
|
## 7.1.3
|
|
1302
1303
|
|
|
1303
|
-
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1304
|
+
- [patch] Updated dependencies
|
|
1305
|
+
[cdba8b3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cdba8b3)
|
|
1306
|
+
- @atlaskit/spinner@8.0.0
|
|
1306
1307
|
|
|
1307
1308
|
## 7.1.2
|
|
1308
1309
|
|
|
1309
|
-
-
|
|
1310
|
-
|
|
1311
|
-
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1310
|
+
- [patch] Clean Changelogs - remove duplicates and empty entries
|
|
1311
|
+
[e7756cd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e7756cd)
|
|
1312
|
+
- [none] Updated dependencies
|
|
1313
|
+
[e7756cd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e7756cd)
|
|
1314
|
+
- @atlaskit/tooltip@10.2.1
|
|
1315
|
+
- @atlaskit/theme@4.0.4
|
|
1316
|
+
- @atlaskit/spinner@7.0.2
|
|
1316
1317
|
|
|
1317
1318
|
## 7.1.1
|
|
1318
1319
|
|
|
1319
|
-
-
|
|
1320
|
-
|
|
1321
|
-
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1320
|
+
- [patch] Update changelogs to remove duplicate
|
|
1321
|
+
[cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
|
|
1322
|
+
- [none] Updated dependencies
|
|
1323
|
+
[cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
|
|
1324
|
+
- @atlaskit/theme@4.0.3
|
|
1325
|
+
- @atlaskit/spinner@7.0.1
|
|
1326
|
+
- @atlaskit/docs@4.1.1
|
|
1326
1327
|
|
|
1327
1328
|
## 7.1.0
|
|
1328
1329
|
|
|
1329
|
-
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1330
|
+
- [patch] Updated dependencies
|
|
1331
|
+
[9d20f54](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d20f54)
|
|
1332
|
+
- @atlaskit/spinner@7.0.0
|
|
1333
|
+
- @atlaskit/tooltip@10.2.0
|
|
1334
|
+
- @atlaskit/docs@4.1.0
|
|
1335
|
+
- @atlaskit/theme@4.0.2
|
|
1335
1336
|
|
|
1336
1337
|
## 7.0.1
|
|
1337
1338
|
|
|
1338
|
-
-
|
|
1339
|
-
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1339
|
+
- [patch] Update readme's [223cd67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/223cd67)
|
|
1340
|
+
- [patch] Updated dependencies
|
|
1341
|
+
[223cd67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/223cd67)
|
|
1342
|
+
- @atlaskit/tooltip@10.0.1
|
|
1343
|
+
- @atlaskit/theme@4.0.1
|
|
1344
|
+
- @atlaskit/spinner@6.0.1
|
|
1345
|
+
- @atlaskit/docs@4.0.1
|
|
1345
1346
|
|
|
1346
1347
|
## 7.0.0
|
|
1347
1348
|
|
|
1348
|
-
-
|
|
1349
|
-
|
|
1350
|
-
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1349
|
+
- [major] makes styled-components a peer dependency and upgrades version range from 1.4.6 - 3 to
|
|
1350
|
+
^3.2.6 [1e80619](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e80619)
|
|
1351
|
+
- [patch] Updated dependencies
|
|
1352
|
+
[1e80619](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e80619)
|
|
1353
|
+
- @atlaskit/tooltip@10.0.0
|
|
1354
|
+
- @atlaskit/theme@4.0.0
|
|
1355
|
+
- @atlaskit/spinner@6.0.0
|
|
1356
|
+
- @atlaskit/docs@4.0.0
|
|
1356
1357
|
|
|
1357
1358
|
## 6.0.3
|
|
1358
1359
|
|
|
1359
|
-
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1360
|
+
- [patch] Updated dependencies
|
|
1361
|
+
[d662caa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d662caa)
|
|
1362
|
+
- @atlaskit/tooltip@9.2.1
|
|
1363
|
+
- @atlaskit/theme@3.2.2
|
|
1364
|
+
- @atlaskit/spinner@5.0.2
|
|
1365
|
+
- @atlaskit/docs@3.0.4
|
|
1365
1366
|
|
|
1366
1367
|
## 6.0.1
|
|
1367
1368
|
|
|
1368
|
-
-
|
|
1369
|
+
- [patch] Update types [0073768](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0073768)
|
|
1369
1370
|
|
|
1370
1371
|
## 6.0.0
|
|
1371
1372
|
|
|
1372
|
-
-
|
|
1373
|
-
|
|
1373
|
+
- [major] Bump to React 16.3.
|
|
1374
|
+
[4251858](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4251858)
|
|
1374
1375
|
|
|
1375
1376
|
## 5.2.1
|
|
1376
1377
|
|
|
1377
|
-
-
|
|
1378
|
-
|
|
1378
|
+
- [patch] Re-releasing due to potentially broken babel release
|
|
1379
|
+
[9ed0bba](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9ed0bba)
|
|
1379
1380
|
|
|
1380
1381
|
## 5.2.0
|
|
1381
1382
|
|
|
1382
|
-
-
|
|
1383
|
-
|
|
1383
|
+
- [minor] Update styled-components dependency to support versions 1.4.6 - 3
|
|
1384
|
+
[ceccf30](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ceccf30)
|
|
1384
1385
|
|
|
1385
1386
|
## 5.1.3
|
|
1386
1387
|
|
|
1387
|
-
-
|
|
1388
|
-
|
|
1388
|
+
- [patch] updated the repository url to https://bitbucket.org/atlassian/atlaskit-mk-2
|
|
1389
|
+
[1e57e5a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e57e5a)
|
|
1389
1390
|
|
|
1390
1391
|
## 5.1.2
|
|
1391
1392
|
|
|
1392
|
-
-
|
|
1393
|
-
|
|
1394
|
-
[3facabc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3facabc)
|
|
1393
|
+
- [patch] Tabs now abide by selected prop when tabs and selected props both change, instead of using
|
|
1394
|
+
internal selected state [3facabc](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3facabc)
|
|
1395
1395
|
|
|
1396
1396
|
## 5.1.1
|
|
1397
1397
|
|
|
1398
|
-
-
|
|
1399
|
-
|
|
1398
|
+
- [patch] Packages Flow types for elements components
|
|
1399
|
+
[3111e74](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3111e74)
|
|
1400
1400
|
|
|
1401
1401
|
## 5.1.0
|
|
1402
1402
|
|
|
1403
|
-
-
|
|
1404
|
-
|
|
1403
|
+
- [minor] Add React 16 support.
|
|
1404
|
+
[12ea6e4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/12ea6e4)
|
|
1405
1405
|
|
|
1406
1406
|
## 5.0.1
|
|
1407
1407
|
|
|
1408
|
-
-
|
|
1409
|
-
|
|
1408
|
+
- [patch] fix tabs so that it re-renders when content props update
|
|
1409
|
+
[9b039dd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9b039dd)
|
|
1410
1410
|
|
|
1411
1411
|
## 5.0.0
|
|
1412
1412
|
|
|
1413
|
-
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
[10a5a5a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/10a5a5a)
|
|
1413
|
+
- [major] Re-write tabs to provide a more flexible API. Breaking changes: 1) The package no longer
|
|
1414
|
+
exports TabsStateless. The Tabs component manages its own state by default, but will behave as a
|
|
1415
|
+
controlled component if the selectedTab prop is set. 2) The component no longer recognises the
|
|
1416
|
+
defaultSelected property on individual tab objects. Tabs now takes a defaultSelectedTab prop which
|
|
1417
|
+
accepts either a tab object or tab index. 3) The tabs prop is now required - the component will
|
|
1418
|
+
not render if this prop is not set. 4) It is no longer possible to render Tabs without a tab being
|
|
1419
|
+
selected. If the defaultSelectedTab and selectedTab props are not set the first tab will be
|
|
1420
|
+
selected by default. [10a5a5a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/10a5a5a)
|
|
1422
1421
|
|
|
1423
1422
|
## 4.1.0
|
|
1424
1423
|
|
|
1425
|
-
-
|
|
1426
|
-
|
|
1424
|
+
- [minor] Update type for label to accept string
|
|
1425
|
+
[0d0ca5f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0d0ca5f)
|
|
1427
1426
|
|
|
1428
1427
|
## 4.0.5
|
|
1429
1428
|
|
|
1430
|
-
-
|
|
1431
|
-
|
|
1429
|
+
- [patch] Migrate to ak-mk-2
|
|
1430
|
+
[4c679a0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4c679a0)
|
|
1432
1431
|
|
|
1433
1432
|
## 4.0.4 (2017-11-17)
|
|
1434
1433
|
|
|
1435
|
-
-
|
|
1436
|
-
|
|
1434
|
+
- bug fix; bumping internal dependencies to latest version
|
|
1435
|
+
([f87bb04](https://bitbucket.org/atlassian/atlaskit/commits/f87bb04))
|
|
1437
1436
|
|
|
1438
1437
|
## 4.0.3 (2017-10-26)
|
|
1439
1438
|
|
|
1440
|
-
-
|
|
1441
|
-
|
|
1439
|
+
- bug fix; fix to rebuild stories
|
|
1440
|
+
([793b2a7](https://bitbucket.org/atlassian/atlaskit/commits/793b2a7))
|
|
1442
1441
|
|
|
1443
1442
|
## 4.0.2 (2017-10-22)
|
|
1444
1443
|
|
|
1445
|
-
-
|
|
1446
|
-
|
|
1444
|
+
- bug fix; update styled-components dep and react peerDep
|
|
1445
|
+
([6a67bf8](https://bitbucket.org/atlassian/atlaskit/commits/6a67bf8))
|
|
1447
1446
|
|
|
1448
1447
|
## 4.0.1 (2017-10-04)
|
|
1449
1448
|
|
|
1450
|
-
-
|
|
1451
|
-
|
|
1449
|
+
- bug fix; tabs now hide overflow, and ellipsis text-overflow (issues closed: #ak3519)
|
|
1450
|
+
([aa91734](https://bitbucket.org/atlassian/atlaskit/commits/aa91734))
|
|
1452
1451
|
|
|
1453
1452
|
## 4.0.0 (2017-08-11)
|
|
1454
1453
|
|
|
1455
|
-
-
|
|
1456
|
-
|
|
1457
|
-
-
|
|
1458
|
-
|
|
1459
|
-
-
|
|
1460
|
-
|
|
1461
|
-
-
|
|
1462
|
-
-
|
|
1463
|
-
|
|
1464
|
-
-
|
|
1465
|
-
|
|
1466
|
-
-
|
|
1467
|
-
|
|
1454
|
+
- bug fix; fix the theme-dependency
|
|
1455
|
+
([db90333](https://bitbucket.org/atlassian/atlaskit/commits/db90333))
|
|
1456
|
+
- breaking; affects internal styled-components implementation
|
|
1457
|
+
([d14522a](https://bitbucket.org/atlassian/atlaskit/commits/d14522a))
|
|
1458
|
+
- breaking; implement dark mode theme
|
|
1459
|
+
([d14522a](https://bitbucket.org/atlassian/atlaskit/commits/d14522a))
|
|
1460
|
+
- bug fix; fix prop types ([8abfd3c](https://bitbucket.org/atlassian/atlaskit/commits/8abfd3c))
|
|
1461
|
+
- bug fix; make tab types clearer
|
|
1462
|
+
([3071418](https://bitbucket.org/atlassian/atlaskit/commits/3071418))
|
|
1463
|
+
- bug fix; move babel-plugin-react-flow-props-to-prop-types to devDep
|
|
1464
|
+
([e1cd3aa](https://bitbucket.org/atlassian/atlaskit/commits/e1cd3aa))
|
|
1465
|
+
- feature; dark mode for Tabs, plus a bunch of cleanup for the component and its docs
|
|
1466
|
+
([a111cf2](https://bitbucket.org/atlassian/atlaskit/commits/a111cf2))
|
|
1468
1467
|
|
|
1469
1468
|
## 3.0.0 (2017-08-11)
|
|
1470
1469
|
|
|
1471
|
-
-
|
|
1472
|
-
|
|
1473
|
-
-
|
|
1474
|
-
|
|
1475
|
-
-
|
|
1476
|
-
-
|
|
1477
|
-
|
|
1478
|
-
-
|
|
1479
|
-
|
|
1480
|
-
-
|
|
1481
|
-
|
|
1470
|
+
- breaking; affects internal styled-components implementation
|
|
1471
|
+
([d14522a](https://bitbucket.org/atlassian/atlaskit/commits/d14522a))
|
|
1472
|
+
- breaking; implement dark mode theme
|
|
1473
|
+
([d14522a](https://bitbucket.org/atlassian/atlaskit/commits/d14522a))
|
|
1474
|
+
- bug fix; fix prop types ([8abfd3c](https://bitbucket.org/atlassian/atlaskit/commits/8abfd3c))
|
|
1475
|
+
- bug fix; make tab types clearer
|
|
1476
|
+
([3071418](https://bitbucket.org/atlassian/atlaskit/commits/3071418))
|
|
1477
|
+
- bug fix; move babel-plugin-react-flow-props-to-prop-types to devDep
|
|
1478
|
+
([e1cd3aa](https://bitbucket.org/atlassian/atlaskit/commits/e1cd3aa))
|
|
1479
|
+
- feature; dark mode for Tabs, plus a bunch of cleanup for the component and its docs
|
|
1480
|
+
([a111cf2](https://bitbucket.org/atlassian/atlaskit/commits/a111cf2))
|
|
1482
1481
|
|
|
1483
1482
|
## 2.4.2 (2017-07-27)
|
|
1484
1483
|
|
|
1485
|
-
-
|
|
1486
|
-
|
|
1484
|
+
- fix; rename jsnext:main to jsnext:experimental:main temporarily
|
|
1485
|
+
([c7508e0](https://bitbucket.org/atlassian/atlaskit/commits/c7508e0))
|
|
1487
1486
|
|
|
1488
1487
|
## 2.4.1 (2017-07-25)
|
|
1489
1488
|
|
|
1490
|
-
-
|
|
1491
|
-
|
|
1489
|
+
- fix; use class transform in loose mode in babel to improve load performance in apps
|
|
1490
|
+
([fde719a](https://bitbucket.org/atlassian/atlaskit/commits/fde719a))
|
|
1492
1491
|
|
|
1493
1492
|
## 2.1.0 (2017-07-17)
|
|
1494
1493
|
|
|
1495
|
-
-
|
|
1496
|
-
|
|
1494
|
+
- fix; rerelease, failed prepublish scripts
|
|
1495
|
+
([5fd82f8](https://bitbucket.org/atlassian/atlaskit/commits/5fd82f8))
|
|
1497
1496
|
|
|
1498
1497
|
## 2.1.0 (2017-07-17)
|
|
1499
1498
|
|
|
1500
|
-
-
|
|
1501
|
-
|
|
1499
|
+
- feature; added ES module builds to dist and add jsnext:main to most ADG packages
|
|
1500
|
+
([ea76507](https://bitbucket.org/atlassian/atlaskit/commits/ea76507))
|
|
1502
1501
|
|
|
1503
1502
|
## 2.0.0 (2017-05-30)
|
|
1504
1503
|
|
|
1505
|
-
-
|
|
1506
|
-
|
|
1507
|
-
-
|
|
1508
|
-
-
|
|
1504
|
+
- refactor tabs to styled-components. Rename StatelessTabs named export to TabsSta
|
|
1505
|
+
([b77172d](https://bitbucket.org/atlassian/atlaskit/commits/b77172d))
|
|
1506
|
+
- breaking; Rename StatelessTabs named export to TabsStateless for consistency.
|
|
1507
|
+
- ISSUES CLOSED: #AK-2396
|
|
1509
1508
|
|
|
1510
1509
|
## 1.3.3 (2017-05-26)
|
|
1511
1510
|
|
|
1512
|
-
-
|
|
1513
|
-
|
|
1514
|
-
-
|
|
1515
|
-
|
|
1511
|
+
- fix; add prop-types as a dependency to avoid React 15.x warnings
|
|
1512
|
+
([92598eb](https://bitbucket.org/atlassian/atlaskit/commits/92598eb))
|
|
1513
|
+
- fix; pin react-lorem-component version to avoid newly released broken version
|
|
1514
|
+
([6f3d9c6](https://bitbucket.org/atlassian/atlaskit/commits/6f3d9c6))
|
|
1516
1515
|
|
|
1517
1516
|
## 1.3.2 (2017-04-27)
|
|
1518
1517
|
|
|
1519
|
-
-
|
|
1520
|
-
|
|
1518
|
+
- fix; update legal copy to be more clear. Not all modules include ADG license.
|
|
1519
|
+
([f3a945e](https://bitbucket.org/atlassian/atlaskit/commits/f3a945e))
|
|
1521
1520
|
|
|
1522
1521
|
## 1.3.1 (2017-04-26)
|
|
1523
1522
|
|
|
1524
|
-
-
|
|
1525
|
-
|
|
1523
|
+
- fix; update legal copy and fix broken links for component README on npm. New contribution and
|
|
1524
|
+
([0b3e454](https://bitbucket.org/atlassian/atlaskit/commits/0b3e454))
|
|
1526
1525
|
|
|
1527
1526
|
## 1.3.0 (2017-04-20)
|
|
1528
1527
|
|
|
1529
|
-
-
|
|
1530
|
-
|
|
1528
|
+
- feature; removed explicit style! imports, set style-loader in webpack config
|
|
1529
|
+
([891fc3c](https://bitbucket.org/atlassian/atlaskit/commits/891fc3c))
|
|
1531
1530
|
|
|
1532
1531
|
## 1.2.8 (2017-03-23)
|
|
1533
1532
|
|
|
1534
|
-
-
|
|
1535
|
-
|
|
1533
|
+
- fix; empty commit to force release of tabs
|
|
1534
|
+
([47d958e](https://bitbucket.org/atlassian/atlaskit/commits/47d958e))
|
|
1536
1535
|
|
|
1537
1536
|
## 1.2.6 (2017-03-21)
|
|
1538
1537
|
|
|
1539
|
-
-
|
|
1540
|
-
|
|
1538
|
+
- fix; maintainers for all the packages were added
|
|
1539
|
+
([261d00a](https://bitbucket.org/atlassian/atlaskit/commits/261d00a))
|
|
1541
1540
|
|
|
1542
1541
|
## 1.2.5 (2017-02-22)
|
|
1543
1542
|
|
|
1544
|
-
-
|
|
1545
|
-
|
|
1543
|
+
- fix; trigger onSelect prop on keyboard nav
|
|
1544
|
+
([71bb315](https://bitbucket.org/atlassian/atlaskit/commits/71bb315))
|
|
1546
1545
|
|
|
1547
1546
|
## 1.2.4 (2017-02-10)
|
|
1548
1547
|
|
|
1549
|
-
-
|
|
1550
|
-
|
|
1548
|
+
- fix; render tabs with flex content correctly in FF and IE11
|
|
1549
|
+
([dc181da](https://bitbucket.org/atlassian/atlaskit/commits/dc181da))
|
|
1551
1550
|
|
|
1552
1551
|
## 1.2.2 (2017-02-07)
|
|
1553
1552
|
|
|
1554
|
-
-
|
|
1555
|
-
|
|
1556
|
-
-
|
|
1557
|
-
|
|
1553
|
+
- fix; Updates docs to use https to load demo image
|
|
1554
|
+
([0468d4d](https://bitbucket.org/atlassian/atlaskit/commits/0468d4d))
|
|
1555
|
+
- fix; small design fixes for tabs
|
|
1556
|
+
([d3a6666](https://bitbucket.org/atlassian/atlaskit/commits/d3a6666))
|
|
1558
1557
|
|
|
1559
1558
|
## 1.2.0 (2017-02-03)
|
|
1560
1559
|
|
|
1561
|
-
-
|
|
1562
|
-
|
|
1563
|
-
-
|
|
1564
|
-
|
|
1560
|
+
- fix; support centering of tab flex children
|
|
1561
|
+
([87fe198](https://bitbucket.org/atlassian/atlaskit/commits/87fe198))
|
|
1562
|
+
- feature; support fitting tabs inside a flex box container
|
|
1563
|
+
([4158cd8](https://bitbucket.org/atlassian/atlaskit/commits/4158cd8))
|