@atlaskit/tabs 16.1.0 → 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 +834 -829
- 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,1558 +1,1563 @@
|
|
|
1
1
|
# @atlaskit/tabs
|
|
2
2
|
|
|
3
|
+
## 16.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 16.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 16.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
6
18
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
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.
|
|
10
22
|
|
|
11
23
|
## 16.0.0
|
|
12
24
|
|
|
13
25
|
### Major Changes
|
|
14
26
|
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
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`.
|
|
18
30
|
|
|
19
31
|
## 15.0.0
|
|
20
32
|
|
|
21
33
|
### Major Changes
|
|
22
34
|
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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.
|
|
29
41
|
|
|
30
42
|
## 14.1.0
|
|
31
43
|
|
|
32
44
|
### Minor Changes
|
|
33
45
|
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
|
37
49
|
|
|
38
50
|
## 14.0.5
|
|
39
51
|
|
|
40
52
|
### Patch Changes
|
|
41
53
|
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
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`
|
|
45
57
|
|
|
46
58
|
## 14.0.4
|
|
47
59
|
|
|
48
60
|
### Patch Changes
|
|
49
61
|
|
|
50
|
-
-
|
|
62
|
+
- Updated dependencies
|
|
51
63
|
|
|
52
64
|
## 14.0.3
|
|
53
65
|
|
|
54
66
|
### Patch Changes
|
|
55
67
|
|
|
56
|
-
-
|
|
68
|
+
- Updated dependencies
|
|
57
69
|
|
|
58
70
|
## 14.0.2
|
|
59
71
|
|
|
60
72
|
### Patch Changes
|
|
61
73
|
|
|
62
|
-
-
|
|
74
|
+
- Updated dependencies
|
|
63
75
|
|
|
64
76
|
## 14.0.1
|
|
65
77
|
|
|
66
78
|
### Patch Changes
|
|
67
79
|
|
|
68
|
-
-
|
|
80
|
+
- Updated dependencies
|
|
69
81
|
|
|
70
82
|
## 14.0.0
|
|
71
83
|
|
|
72
84
|
### Major Changes
|
|
73
85
|
|
|
74
|
-
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
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.
|
|
78
89
|
|
|
79
90
|
## 13.4.9
|
|
80
91
|
|
|
81
92
|
### Patch Changes
|
|
82
93
|
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
|
|
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.
|
|
86
97
|
|
|
87
98
|
## 13.4.8
|
|
88
99
|
|
|
89
100
|
### Patch Changes
|
|
90
101
|
|
|
91
|
-
-
|
|
102
|
+
- Updated dependencies
|
|
92
103
|
|
|
93
104
|
## 13.4.7
|
|
94
105
|
|
|
95
106
|
### Patch Changes
|
|
96
107
|
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
|
|
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.
|
|
100
111
|
|
|
101
112
|
## 13.4.6
|
|
102
113
|
|
|
103
114
|
### Patch Changes
|
|
104
115
|
|
|
105
|
-
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
|
108
119
|
|
|
109
120
|
## 13.4.5
|
|
110
121
|
|
|
111
122
|
### Patch Changes
|
|
112
123
|
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
-
|
|
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
|
|
117
128
|
|
|
118
129
|
## 13.4.4
|
|
119
130
|
|
|
120
131
|
### Patch Changes
|
|
121
132
|
|
|
122
|
-
-
|
|
123
|
-
|
|
124
|
-
|
|
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
|
|
125
136
|
|
|
126
137
|
## 13.4.3
|
|
127
138
|
|
|
128
139
|
### Patch Changes
|
|
129
140
|
|
|
130
|
-
-
|
|
131
|
-
|
|
132
|
-
|
|
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.
|
|
133
144
|
|
|
134
145
|
## 13.4.2
|
|
135
146
|
|
|
136
147
|
### Patch Changes
|
|
137
148
|
|
|
138
|
-
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
|
141
152
|
|
|
142
153
|
## 13.4.1
|
|
143
154
|
|
|
144
155
|
### Patch Changes
|
|
145
156
|
|
|
146
|
-
-
|
|
147
|
-
|
|
148
|
-
|
|
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`
|
|
149
160
|
|
|
150
161
|
## 13.4.0
|
|
151
162
|
|
|
152
163
|
### Minor Changes
|
|
153
164
|
|
|
154
|
-
-
|
|
155
|
-
|
|
156
|
-
|
|
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
|
|
157
168
|
|
|
158
169
|
### Patch Changes
|
|
159
170
|
|
|
160
|
-
-
|
|
171
|
+
- Updated dependencies
|
|
161
172
|
|
|
162
173
|
## 13.3.13
|
|
163
174
|
|
|
164
175
|
### Patch Changes
|
|
165
176
|
|
|
166
|
-
-
|
|
167
|
-
|
|
168
|
-
|
|
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.
|
|
169
180
|
|
|
170
181
|
## 13.3.12
|
|
171
182
|
|
|
172
183
|
### Patch Changes
|
|
173
184
|
|
|
174
|
-
-
|
|
185
|
+
- Updated dependencies
|
|
175
186
|
|
|
176
187
|
## 13.3.11
|
|
177
188
|
|
|
178
189
|
### Patch Changes
|
|
179
190
|
|
|
180
|
-
-
|
|
191
|
+
- Updated dependencies
|
|
181
192
|
|
|
182
193
|
## 13.3.10
|
|
183
194
|
|
|
184
195
|
### Patch Changes
|
|
185
196
|
|
|
186
|
-
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
-
|
|
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
|
|
191
202
|
|
|
192
203
|
## 13.3.9
|
|
193
204
|
|
|
194
205
|
### Patch Changes
|
|
195
206
|
|
|
196
|
-
-
|
|
197
|
-
|
|
198
|
-
|
|
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.
|
|
199
210
|
|
|
200
211
|
## 13.3.8
|
|
201
212
|
|
|
202
213
|
### Patch Changes
|
|
203
214
|
|
|
204
|
-
-
|
|
215
|
+
- Updated dependencies
|
|
205
216
|
|
|
206
217
|
## 13.3.7
|
|
207
218
|
|
|
208
219
|
### Patch Changes
|
|
209
220
|
|
|
210
|
-
-
|
|
221
|
+
- Updated dependencies
|
|
211
222
|
|
|
212
223
|
## 13.3.6
|
|
213
224
|
|
|
214
225
|
### Patch Changes
|
|
215
226
|
|
|
216
|
-
-
|
|
227
|
+
- Updated dependencies
|
|
217
228
|
|
|
218
229
|
## 13.3.5
|
|
219
230
|
|
|
220
231
|
### Patch Changes
|
|
221
232
|
|
|
222
|
-
-
|
|
223
|
-
|
|
224
|
-
|
|
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.
|
|
225
236
|
|
|
226
237
|
## 13.3.4
|
|
227
238
|
|
|
228
239
|
### Patch Changes
|
|
229
240
|
|
|
230
|
-
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
-
|
|
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
|
|
234
245
|
|
|
235
246
|
## 13.3.3
|
|
236
247
|
|
|
237
248
|
### Patch Changes
|
|
238
249
|
|
|
239
|
-
-
|
|
240
|
-
|
|
241
|
-
|
|
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.
|
|
242
253
|
|
|
243
254
|
## 13.3.2
|
|
244
255
|
|
|
245
256
|
### Patch Changes
|
|
246
257
|
|
|
247
|
-
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
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.
|
|
251
261
|
|
|
252
262
|
## 13.3.1
|
|
253
263
|
|
|
254
264
|
### Patch Changes
|
|
255
265
|
|
|
256
|
-
-
|
|
257
|
-
|
|
258
|
-
|
|
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`
|
|
259
269
|
|
|
260
270
|
## 13.3.0
|
|
261
271
|
|
|
262
272
|
### Minor Changes
|
|
263
273
|
|
|
264
|
-
-
|
|
265
|
-
|
|
266
|
-
|
|
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.
|
|
267
277
|
|
|
268
278
|
### Patch Changes
|
|
269
279
|
|
|
270
|
-
-
|
|
280
|
+
- Updated dependencies
|
|
271
281
|
|
|
272
282
|
## 13.2.13
|
|
273
283
|
|
|
274
284
|
### Patch Changes
|
|
275
285
|
|
|
276
|
-
-
|
|
277
|
-
|
|
278
|
-
|
|
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`.
|
|
279
289
|
|
|
280
290
|
## 13.2.12
|
|
281
291
|
|
|
282
292
|
### Patch Changes
|
|
283
293
|
|
|
284
|
-
-
|
|
285
|
-
|
|
286
|
-
|
|
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.
|
|
287
297
|
|
|
288
298
|
## 13.2.11
|
|
289
299
|
|
|
290
300
|
### Patch Changes
|
|
291
301
|
|
|
292
|
-
-
|
|
302
|
+
- Updated dependencies
|
|
293
303
|
|
|
294
304
|
## 13.2.10
|
|
295
305
|
|
|
296
306
|
### Patch Changes
|
|
297
307
|
|
|
298
|
-
-
|
|
299
|
-
|
|
300
|
-
|
|
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
|
|
301
311
|
|
|
302
312
|
## 13.2.9
|
|
303
313
|
|
|
304
314
|
### Patch Changes
|
|
305
315
|
|
|
306
|
-
-
|
|
316
|
+
- Updated dependencies
|
|
307
317
|
|
|
308
318
|
## 13.2.8
|
|
309
319
|
|
|
310
320
|
### Patch Changes
|
|
311
321
|
|
|
312
|
-
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
-
|
|
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
|
|
317
327
|
|
|
318
328
|
## 13.2.7
|
|
319
329
|
|
|
320
330
|
### Patch Changes
|
|
321
331
|
|
|
322
|
-
-
|
|
332
|
+
- Updated dependencies
|
|
323
333
|
|
|
324
334
|
## 13.2.6
|
|
325
335
|
|
|
326
336
|
### Patch Changes
|
|
327
337
|
|
|
328
|
-
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
-
|
|
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
|
|
333
343
|
|
|
334
344
|
## 13.2.5
|
|
335
345
|
|
|
336
346
|
### Patch Changes
|
|
337
347
|
|
|
338
|
-
-
|
|
348
|
+
- Updated dependencies
|
|
339
349
|
|
|
340
350
|
## 13.2.4
|
|
341
351
|
|
|
342
352
|
### Patch Changes
|
|
343
353
|
|
|
344
|
-
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
-
|
|
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
|
|
349
359
|
|
|
350
360
|
## 13.2.3
|
|
351
361
|
|
|
352
362
|
### Patch Changes
|
|
353
363
|
|
|
354
|
-
-
|
|
364
|
+
- Updated dependencies
|
|
355
365
|
|
|
356
366
|
## 13.2.2
|
|
357
367
|
|
|
358
368
|
### Patch Changes
|
|
359
369
|
|
|
360
|
-
-
|
|
370
|
+
- Updated dependencies
|
|
361
371
|
|
|
362
372
|
## 13.2.1
|
|
363
373
|
|
|
364
374
|
### Patch Changes
|
|
365
375
|
|
|
366
|
-
-
|
|
376
|
+
- Updated dependencies
|
|
367
377
|
|
|
368
378
|
## 13.2.0
|
|
369
379
|
|
|
370
380
|
### Minor Changes
|
|
371
381
|
|
|
372
|
-
-
|
|
373
|
-
|
|
374
|
-
|
|
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`.
|
|
375
385
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
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.
|
|
379
389
|
|
|
380
390
|
### Patch Changes
|
|
381
391
|
|
|
382
|
-
-
|
|
383
|
-
|
|
384
|
-
-
|
|
392
|
+
- [`af4bca32ad4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/af4bca32ad4) - Internal
|
|
393
|
+
changes to supress eslint rules.
|
|
394
|
+
- Updated dependencies
|
|
385
395
|
|
|
386
396
|
## 13.1.4
|
|
387
397
|
|
|
388
398
|
### Patch Changes
|
|
389
399
|
|
|
390
|
-
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
-
|
|
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
|
|
394
404
|
|
|
395
405
|
## 13.1.3
|
|
396
406
|
|
|
397
407
|
### Patch Changes
|
|
398
408
|
|
|
399
|
-
-
|
|
400
|
-
|
|
401
|
-
|
|
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`.
|
|
402
412
|
|
|
403
413
|
## 13.1.2
|
|
404
414
|
|
|
405
415
|
### Patch Changes
|
|
406
416
|
|
|
407
|
-
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
-
|
|
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
|
|
411
421
|
|
|
412
422
|
## 13.1.1
|
|
413
423
|
|
|
414
424
|
### Patch Changes
|
|
415
425
|
|
|
416
|
-
-
|
|
417
|
-
|
|
418
|
-
|
|
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`
|
|
419
429
|
|
|
420
430
|
## 13.1.0
|
|
421
431
|
|
|
422
432
|
### Minor Changes
|
|
423
433
|
|
|
424
|
-
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
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
|
|
429
439
|
|
|
430
440
|
### Patch Changes
|
|
431
441
|
|
|
432
|
-
-
|
|
442
|
+
- Updated dependencies
|
|
433
443
|
|
|
434
444
|
## 13.0.1
|
|
435
445
|
|
|
436
446
|
### Patch Changes
|
|
437
447
|
|
|
438
|
-
-
|
|
448
|
+
- Updated dependencies
|
|
439
449
|
|
|
440
450
|
## 13.0.0
|
|
441
451
|
|
|
442
452
|
### Major Changes
|
|
443
453
|
|
|
444
|
-
-
|
|
445
|
-
|
|
446
|
-
|
|
454
|
+
- [#9756](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9756)
|
|
455
|
+
[`c17fe6144f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c17fe6144f8) - ###
|
|
456
|
+
Major Changes
|
|
447
457
|
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
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.
|
|
451
461
|
|
|
452
|
-
|
|
462
|
+
### Composable API
|
|
453
463
|
|
|
454
|
-
|
|
464
|
+
The old version of `Tabs` had a `tabs` prop that would map to `TabItem`'s and `TabContent`'s.
|
|
455
465
|
|
|
456
|
-
|
|
457
|
-
|
|
466
|
+
```
|
|
467
|
+
import Tabs from '@atlaskit/tabs';
|
|
458
468
|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
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
|
+
```
|
|
467
477
|
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
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.
|
|
471
481
|
|
|
472
|
-
|
|
473
|
-
|
|
482
|
+
```
|
|
483
|
+
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
474
484
|
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
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}
|
|
478
563
|
>
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
<Tab>Tab 2</Tab>
|
|
482
|
-
<Tab>Tab 3</Tab>
|
|
483
|
-
</TabList>
|
|
484
|
-
<TabPanel>
|
|
485
|
-
One
|
|
486
|
-
</TabPanel>
|
|
487
|
-
<TabPanel>
|
|
488
|
-
Two
|
|
489
|
-
</TabPanel>
|
|
490
|
-
<TabPanel>
|
|
491
|
-
Three
|
|
492
|
-
</TabPanel>
|
|
493
|
-
</Tabs>
|
|
564
|
+
{label}
|
|
565
|
+
</div>
|
|
494
566
|
);
|
|
495
|
-
|
|
567
|
+
};
|
|
568
|
+
```
|
|
496
569
|
|
|
497
|
-
|
|
570
|
+
Likewise, to create a custom `TabPanel`, call `useTabPanel` and spread those attributes onto the
|
|
571
|
+
custom tab panel.
|
|
498
572
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
573
|
+
```
|
|
574
|
+
import { useTabPanel } from '@atlaskit/tabs';
|
|
502
575
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
<Tab>{label}</Tab>
|
|
506
|
-
</Tooltip>
|
|
507
|
-
);
|
|
576
|
+
const CustomTabPanel = ({ body }: { body: string }) => {
|
|
577
|
+
const tabPanelAttributes = useTabPanel();
|
|
508
578
|
|
|
509
|
-
|
|
510
|
-
<
|
|
511
|
-
|
|
579
|
+
return (
|
|
580
|
+
<div
|
|
581
|
+
css={css`
|
|
582
|
+
margin: 12px;
|
|
583
|
+
`}
|
|
584
|
+
{...tabPanelAttributes}
|
|
512
585
|
>
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
<TooltipTab label="Tab 2" tooltip="Tooltip for tab 2" />
|
|
516
|
-
<TooltipTab label="Tab 3" tooltip="Tooltip for tab 3" />
|
|
517
|
-
</TabList>
|
|
518
|
-
<TabPanel>
|
|
519
|
-
One
|
|
520
|
-
</TabPanel>
|
|
521
|
-
<TabPanel>
|
|
522
|
-
Two
|
|
523
|
-
</TabPanel>
|
|
524
|
-
<TabPanel>
|
|
525
|
-
Three
|
|
526
|
-
</TabPanel>
|
|
527
|
-
</Tabs>
|
|
586
|
+
{body}
|
|
587
|
+
</div>
|
|
528
588
|
);
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
const tabAttributes = useTab();
|
|
546
|
-
|
|
547
|
-
return (
|
|
548
|
-
<div
|
|
549
|
-
css={css`
|
|
550
|
-
font-size: 16px;
|
|
551
|
-
`}
|
|
552
|
-
{...tabAttributes}
|
|
553
|
-
>
|
|
554
|
-
{label}
|
|
555
|
-
</div>
|
|
556
|
-
);
|
|
557
|
-
};
|
|
558
|
-
```
|
|
559
|
-
|
|
560
|
-
Likewise, to create a custom `TabPanel`, call `useTabPanel` and spread those attributes onto the
|
|
561
|
-
custom tab panel.
|
|
562
|
-
|
|
563
|
-
```
|
|
564
|
-
import { useTabPanel } from '@atlaskit/tabs';
|
|
565
|
-
|
|
566
|
-
const CustomTabPanel = ({ body }: { body: string }) => {
|
|
567
|
-
const tabPanelAttributes = useTabPanel();
|
|
568
|
-
|
|
569
|
-
return (
|
|
570
|
-
<div
|
|
571
|
-
css={css`
|
|
572
|
-
margin: 12px;
|
|
573
|
-
`}
|
|
574
|
-
{...tabPanelAttributes}
|
|
575
|
-
>
|
|
576
|
-
{body}
|
|
577
|
-
</div>
|
|
578
|
-
);
|
|
579
|
-
};
|
|
580
|
-
```
|
|
581
|
-
|
|
582
|
-
### onSelect -> onChange
|
|
583
|
-
|
|
584
|
-
The `onSelect` prop has been renamed to `onChange` to be consistent with other design system
|
|
585
|
-
components. Internal state has now changed to keep track of the selected index. Previously the
|
|
586
|
-
object in the `tabs` prop array of type `TabData` was passed as well as the index. If you were
|
|
587
|
-
using this object you will have to change to use the index.
|
|
588
|
-
|
|
589
|
-
The type has changed from
|
|
590
|
-
`(selected: TabData, selectedIndex: number, analyticsEvent: UIAnalyticsEvent) => void;` to
|
|
591
|
-
`(index: number, analyticsEvent: UIAnalyticsEvent) => void;`
|
|
592
|
-
|
|
593
|
-
This also means if you are using the `selected` prop you will have to ensure you are using the
|
|
594
|
-
index of the selected tab instead of the object of type `TabData`.
|
|
595
|
-
|
|
596
|
-
### isSelectedTest
|
|
597
|
-
|
|
598
|
-
Previously you could provide the prop `isSelectedTest` to `Tabs` and it would determine what tab
|
|
599
|
-
is selected by seeing what tab returns true when `isSelectedTest` is called. This is a messy API
|
|
600
|
-
that effectively means there were two ways of making `Tabs` controlled. If you are using
|
|
601
|
-
`isSelectedTest` you should swap to using the `selected` prop to indicate that a tab is
|
|
602
|
-
selected.
|
|
603
|
-
|
|
604
|
-
### Accessibility and required ID
|
|
605
|
-
|
|
606
|
-
According to the w3 spec each tab should be linked to its corresponding tab panel. We have added
|
|
607
|
-
the `aria-controls` attribute to tabs and the `aria-labelledby` attribute to tab panels. In
|
|
608
|
-
order to do this we needed to generate a unique id for each tab and tab panel. To ensure these
|
|
609
|
-
id's are unique if there are multiple `Tabs` components on the same page there is now a required
|
|
610
|
-
`id` prop.
|
|
611
|
-
|
|
612
|
-
### shouldUnmountTabPanelOnChange
|
|
613
|
-
|
|
614
|
-
There was previously a prop `isContentPersisted` which defaults to false. When true it would
|
|
615
|
-
render all tab panels. The new default behaviour of `Tabs` is to leave each tab panel mounted on
|
|
616
|
-
the page after it has been selected. This means that tab panels will only mount if selected and
|
|
617
|
-
will not unmount and remount when changing tabs. In light of this change, `isContentPersisted`
|
|
618
|
-
has been removed and `shouldUnmountTabPanelOnChange` has been introduced. It defaults to false
|
|
619
|
-
and if it is set to true it will unmount a `TabPanel` when it is not selected. Effectively
|
|
620
|
-
`shouldUnmountTabPanelOnChange` is the inverse of `isContentPersisted`.
|
|
621
|
-
|
|
622
|
-
### Other changes
|
|
623
|
-
|
|
624
|
-
- Remove `TabItem` and `TabContent` export.
|
|
625
|
-
- Remove the types: `TabItemElementProps`, `TabItemComponentProvided`,
|
|
626
|
-
`TabContentComponentProvided`, `TabItemType`, `TabContentType`, `SelectedProp`,
|
|
627
|
-
`IsSelectedTestFunction`, `OnSelectCallback`, `TabsState`, `TabsNavigationProps` and `Mode`.
|
|
628
|
-
|
|
629
|
-
### 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`.
|
|
630
605
|
|
|
631
|
-
|
|
632
|
-
your usage, you will most likely have to do a manual step as this is a fairly big change in API.
|
|
633
|
-
The codemod will do its best job at making sure everything functions but you may want to clean
|
|
634
|
-
up your usage of `@atlaskit/tabs`. It does these following changes:
|
|
635
|
-
|
|
636
|
-
- Adds a randomly generated ID
|
|
637
|
-
- Changes `onSelect` to `onChange` and defines a new inline function that will functionally
|
|
638
|
-
work the same as it used to. It is however a messy solution and you may want to change the
|
|
639
|
-
function to only use the selected index.
|
|
640
|
-
- Remove the `TabItem` and `TabContent` imports.
|
|
641
|
-
- Map the array you supplied as a `tabs` prop to create `Tab`'s and `TabPanel`'s.
|
|
642
|
-
- Remove the `component` and `isSelectedTest` prop.
|
|
643
|
-
- Removes types that no longer exist.
|
|
644
|
-
- Migrates your usage of `isContentPersisted` to one of `shouldUnmountTabPanelOnChange`.
|
|
645
|
-
|
|
646
|
-
To run the codemod: **You first need to have the latest version installed**
|
|
647
|
-
|
|
648
|
-
```bash
|
|
649
|
-
yarn upgrade @atlaskit/tabs@^13.0.0
|
|
650
|
-
```
|
|
651
|
-
|
|
652
|
-
Once upgraded, use `@atlaskit/codemod-cli`:
|
|
653
|
-
|
|
654
|
-
```bash
|
|
655
|
-
npx @atlaskit/codemod-cli --parser babel --extensions ts,tsx,js [relativePath]
|
|
656
|
-
```
|
|
606
|
+
### isSelectedTest
|
|
657
607
|
|
|
658
|
-
|
|
659
|
-
|
|
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.
|
|
660
612
|
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
613
|
+
### Accessibility and required ID
|
|
614
|
+
|
|
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.
|
|
619
|
+
|
|
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.
|
|
664
672
|
|
|
665
673
|
### Patch Changes
|
|
666
674
|
|
|
667
|
-
-
|
|
668
|
-
|
|
669
|
-
-
|
|
670
|
-
|
|
671
|
-
-
|
|
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
|
|
672
680
|
|
|
673
681
|
## 12.1.3
|
|
674
682
|
|
|
675
683
|
### Patch Changes
|
|
676
684
|
|
|
677
|
-
-
|
|
678
|
-
|
|
679
|
-
|
|
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.
|
|
680
688
|
|
|
681
689
|
## 12.1.2
|
|
682
690
|
|
|
683
691
|
### Patch Changes
|
|
684
692
|
|
|
685
|
-
-
|
|
686
|
-
|
|
687
|
-
|
|
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.
|
|
688
696
|
|
|
689
697
|
## 12.1.1
|
|
690
698
|
|
|
691
699
|
### Patch Changes
|
|
692
700
|
|
|
693
|
-
-
|
|
694
|
-
|
|
695
|
-
|
|
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
|
|
696
704
|
|
|
697
705
|
## 12.1.0
|
|
698
706
|
|
|
699
707
|
### Minor Changes
|
|
700
708
|
|
|
701
|
-
-
|
|
702
|
-
|
|
703
|
-
|
|
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
|
|
704
712
|
|
|
705
713
|
## 12.0.6
|
|
706
714
|
|
|
707
715
|
### Patch Changes
|
|
708
716
|
|
|
709
|
-
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
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.
|
|
715
723
|
|
|
716
724
|
## 12.0.5
|
|
717
725
|
|
|
718
726
|
### Patch Changes
|
|
719
727
|
|
|
720
|
-
-
|
|
728
|
+
- Updated dependencies
|
|
721
729
|
|
|
722
730
|
## 12.0.4
|
|
723
731
|
|
|
724
732
|
### Patch Changes
|
|
725
733
|
|
|
726
|
-
-
|
|
727
|
-
|
|
728
|
-
|
|
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
|
|
729
737
|
|
|
730
738
|
## 12.0.3
|
|
731
739
|
|
|
732
740
|
### Patch Changes
|
|
733
741
|
|
|
734
|
-
-
|
|
735
|
-
|
|
736
|
-
|
|
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
|
|
737
745
|
|
|
738
|
-
|
|
739
|
-
|
|
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.
|
|
740
748
|
|
|
741
749
|
## 12.0.2
|
|
742
750
|
|
|
743
751
|
### Patch Changes
|
|
744
752
|
|
|
745
|
-
-
|
|
746
|
-
|
|
747
|
-
|
|
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.
|
|
748
756
|
|
|
749
757
|
## 12.0.1
|
|
750
758
|
|
|
751
759
|
### Patch Changes
|
|
752
760
|
|
|
753
|
-
-
|
|
754
|
-
|
|
755
|
-
|
|
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
|
|
756
764
|
|
|
757
765
|
## 12.0.0
|
|
758
766
|
|
|
759
767
|
### Major Changes
|
|
760
768
|
|
|
761
|
-
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
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
|
|
766
774
|
|
|
767
775
|
### Patch Changes
|
|
768
776
|
|
|
769
|
-
-
|
|
777
|
+
- Updated dependencies
|
|
770
778
|
|
|
771
779
|
## 11.2.11
|
|
772
780
|
|
|
773
781
|
### Patch Changes
|
|
774
782
|
|
|
775
|
-
-
|
|
776
|
-
|
|
777
|
-
|
|
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
|
|
778
786
|
|
|
779
787
|
## 11.2.10
|
|
780
788
|
|
|
781
789
|
### Patch Changes
|
|
782
790
|
|
|
783
|
-
-
|
|
784
|
-
|
|
785
|
-
|
|
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
|
|
786
794
|
|
|
787
795
|
## 11.2.9
|
|
788
796
|
|
|
789
797
|
### Patch Changes
|
|
790
798
|
|
|
791
|
-
-
|
|
799
|
+
- Updated dependencies
|
|
792
800
|
|
|
793
801
|
## 11.2.8
|
|
794
802
|
|
|
795
803
|
### Patch Changes
|
|
796
804
|
|
|
797
|
-
-
|
|
805
|
+
- [patch][b41c0887cd](https://bitbucket.org/atlassian/atlassian-frontend/commits/b41c0887cd):
|
|
798
806
|
|
|
799
|
-
|
|
800
|
-
|
|
807
|
+
Change imports to comply with Atlassian conventions- Updated dependencies
|
|
808
|
+
[3940bd71f1](https://bitbucket.org/atlassian/atlassian-frontend/commits/3940bd71f1):
|
|
801
809
|
|
|
802
|
-
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
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
|
|
806
814
|
|
|
807
815
|
## 11.2.7
|
|
808
816
|
|
|
809
817
|
### Patch Changes
|
|
810
818
|
|
|
811
|
-
-
|
|
812
|
-
|
|
813
|
-
-
|
|
814
|
-
|
|
815
|
-
-
|
|
816
|
-
|
|
817
|
-
-
|
|
818
|
-
|
|
819
|
-
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
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
|
|
825
833
|
|
|
826
834
|
## 11.2.6
|
|
827
835
|
|
|
828
836
|
### Patch Changes
|
|
829
837
|
|
|
830
|
-
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
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
|
|
835
843
|
|
|
836
844
|
## 11.2.5
|
|
837
845
|
|
|
838
846
|
### Patch Changes
|
|
839
847
|
|
|
840
|
-
-
|
|
848
|
+
- [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
841
849
|
|
|
842
|
-
|
|
843
|
-
|
|
850
|
+
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
851
|
+
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
844
852
|
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
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
|
|
851
859
|
|
|
852
860
|
## 11.2.4
|
|
853
861
|
|
|
854
862
|
### Patch Changes
|
|
855
863
|
|
|
856
|
-
-
|
|
864
|
+
- [patch][4a223473c5](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a223473c5):
|
|
857
865
|
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
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):
|
|
861
869
|
|
|
862
|
-
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
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
|
|
867
875
|
|
|
868
876
|
## 11.2.3
|
|
869
877
|
|
|
870
878
|
### Patch Changes
|
|
871
879
|
|
|
872
|
-
-
|
|
880
|
+
- [patch][36f6e99c5b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/36f6e99c5b):
|
|
873
881
|
|
|
874
|
-
|
|
882
|
+
Fix type errors caused when generating declaration files
|
|
875
883
|
|
|
876
884
|
## 11.2.2
|
|
877
885
|
|
|
878
886
|
### Patch Changes
|
|
879
887
|
|
|
880
|
-
-
|
|
888
|
+
- [patch][d222c2b987](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d222c2b987):
|
|
881
889
|
|
|
882
|
-
|
|
883
|
-
|
|
890
|
+
Theme has been converted to Typescript. Typescript consumers will now get static type safety. Flow
|
|
891
|
+
types are no longer provided.
|
|
884
892
|
|
|
885
|
-
|
|
893
|
+
### Breaking
|
|
886
894
|
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
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:
|
|
890
898
|
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
899
|
+
```javascript
|
|
900
|
+
<CustomTheme.Provider
|
|
901
|
+
value={t => ({ ...t(), backgroundColor: '#333'})}
|
|
902
|
+
>
|
|
903
|
+
```
|
|
896
904
|
|
|
897
|
-
|
|
905
|
+
becomes:
|
|
898
906
|
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
907
|
+
```javascript
|
|
908
|
+
<CustomTheme.Provider
|
|
909
|
+
value={t => ({ ...t({}), backgroundColor: '#333'})}
|
|
910
|
+
>
|
|
911
|
+
```
|
|
904
912
|
|
|
905
|
-
|
|
906
|
-
|
|
913
|
+
** Color palette changes ** Color palettes have been moved into their own file. Users will need to
|
|
914
|
+
update imports from this:
|
|
907
915
|
|
|
908
|
-
|
|
909
|
-
|
|
916
|
+
```javascript
|
|
917
|
+
import { colors } from '@atlaskit/theme';
|
|
910
918
|
|
|
911
|
-
|
|
912
|
-
|
|
919
|
+
colors.colorPalette('8');
|
|
920
|
+
```
|
|
913
921
|
|
|
914
|
-
|
|
922
|
+
to this:
|
|
915
923
|
|
|
916
|
-
|
|
917
|
-
|
|
924
|
+
```javascript
|
|
925
|
+
import { colorPalette } from '@atlaskit/theme';
|
|
918
926
|
|
|
919
|
-
|
|
920
|
-
|
|
927
|
+
colorPalette.colorPalette('8');
|
|
928
|
+
```
|
|
921
929
|
|
|
922
|
-
|
|
930
|
+
or for multi entry-point users:
|
|
923
931
|
|
|
924
|
-
|
|
925
|
-
|
|
932
|
+
```javascript
|
|
933
|
+
import * as colors from '@atlaskit/theme/colors';
|
|
926
934
|
|
|
927
|
-
|
|
928
|
-
|
|
935
|
+
colors.colorPalette('8');
|
|
936
|
+
```
|
|
929
937
|
|
|
930
|
-
|
|
938
|
+
to this:
|
|
931
939
|
|
|
932
|
-
|
|
933
|
-
|
|
940
|
+
```javascript
|
|
941
|
+
import * as colorPalettes from '@atlaskit/theme/color-palette';
|
|
934
942
|
|
|
935
|
-
|
|
936
|
-
|
|
943
|
+
colorPalettes.colorPalette('8');
|
|
944
|
+
```
|
|
937
945
|
|
|
938
946
|
## 11.2.1
|
|
939
947
|
|
|
940
948
|
### Patch Changes
|
|
941
949
|
|
|
942
|
-
-
|
|
950
|
+
- [patch][35d2229b2a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/35d2229b2a):
|
|
943
951
|
|
|
944
|
-
|
|
952
|
+
Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.
|
|
945
953
|
|
|
946
954
|
## 11.2.0
|
|
947
955
|
|
|
948
956
|
### Minor Changes
|
|
949
957
|
|
|
950
|
-
-
|
|
958
|
+
- [minor][99957d4a20](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/99957d4a20):
|
|
951
959
|
|
|
952
|
-
|
|
953
|
-
|
|
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.
|
|
954
962
|
|
|
955
963
|
## 11.1.1
|
|
956
964
|
|
|
957
965
|
### Patch Changes
|
|
958
966
|
|
|
959
|
-
-
|
|
967
|
+
- [patch][a2d0043716](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a2d0043716):
|
|
960
968
|
|
|
961
|
-
|
|
969
|
+
Updated version of analytics-next to fix potential incompatibilities with TS 3.6
|
|
962
970
|
|
|
963
971
|
## 11.1.0
|
|
964
972
|
|
|
965
973
|
### Minor Changes
|
|
966
974
|
|
|
967
|
-
-
|
|
975
|
+
- [minor][c6efb2f5b6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c6efb2f5b6):
|
|
968
976
|
|
|
969
|
-
|
|
977
|
+
Prefix the legacy lifecycle methods with UNSAFE\_\* to avoid warning in React 16.9+
|
|
970
978
|
|
|
971
|
-
|
|
972
|
-
|
|
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
|
|
973
981
|
|
|
974
982
|
## 11.0.9
|
|
975
983
|
|
|
976
984
|
### Patch Changes
|
|
977
985
|
|
|
978
|
-
-
|
|
986
|
+
- [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
|
|
979
987
|
|
|
980
|
-
|
|
981
|
-
|
|
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
|
|
982
990
|
|
|
983
991
|
## 11.0.8
|
|
984
992
|
|
|
985
993
|
### Patch Changes
|
|
986
994
|
|
|
987
|
-
-
|
|
995
|
+
- [patch][ecca4d1dbb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ecca4d1dbb):
|
|
988
996
|
|
|
989
|
-
|
|
997
|
+
Upgraded Typescript to 3.3.x
|
|
990
998
|
|
|
991
999
|
## 11.0.7
|
|
992
1000
|
|
|
993
1001
|
### Patch Changes
|
|
994
1002
|
|
|
995
|
-
-
|
|
1003
|
+
- [patch][708028db86](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/708028db86):
|
|
996
1004
|
|
|
997
|
-
|
|
1005
|
+
Change all the imports to theme in Core to use multi entry points
|
|
998
1006
|
|
|
999
1007
|
## 11.0.6
|
|
1000
1008
|
|
|
1001
1009
|
### Patch Changes
|
|
1002
1010
|
|
|
1003
|
-
-
|
|
1011
|
+
- [patch][de35ce8c67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/de35ce8c67):
|
|
1004
1012
|
|
|
1005
|
-
|
|
1013
|
+
Updates component maintainers
|
|
1006
1014
|
|
|
1007
1015
|
## 11.0.5
|
|
1008
1016
|
|
|
1009
1017
|
### Patch Changes
|
|
1010
1018
|
|
|
1011
|
-
-
|
|
1019
|
+
- [patch][926b43142b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/926b43142b):
|
|
1012
1020
|
|
|
1013
|
-
|
|
1014
|
-
|
|
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.
|
|
1015
1023
|
|
|
1016
|
-
|
|
1024
|
+
**Breaking changes**
|
|
1017
1025
|
|
|
1018
|
-
|
|
1019
|
-
|
|
1026
|
+
- `withAnalyticsForSumTypeProps` alias has been removed, please use `withAnalyticsEvents`
|
|
1027
|
+
- `AnalyticsContextWrappedComp` alias has been removed, please use `withAnalyticsContext`
|
|
1020
1028
|
|
|
1021
|
-
|
|
1029
|
+
**Breaking changes to TypeScript annotations**
|
|
1022
1030
|
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
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
|
|
1039
1047
|
|
|
1040
1048
|
## 11.0.4
|
|
1041
1049
|
|
|
1042
1050
|
### Patch Changes
|
|
1043
1051
|
|
|
1044
|
-
-
|
|
1052
|
+
- [patch][3342f64d5e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3342f64d5e):
|
|
1045
1053
|
|
|
1046
|
-
|
|
1054
|
+
Removed unused dependencies from package.json for tabs: keycode was unused.
|
|
1047
1055
|
|
|
1048
1056
|
## 11.0.3
|
|
1049
1057
|
|
|
1050
1058
|
### Patch Changes
|
|
1051
1059
|
|
|
1052
|
-
-
|
|
1060
|
+
- [patch][f34776be97](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f34776be97):
|
|
1053
1061
|
|
|
1054
|
-
|
|
1062
|
+
Type definition files are now referenced in package.json
|
|
1055
1063
|
|
|
1056
1064
|
## 11.0.2
|
|
1057
1065
|
|
|
1058
1066
|
### Patch Changes
|
|
1059
1067
|
|
|
1060
|
-
-
|
|
1068
|
+
- [patch][9f8ab1084b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9f8ab1084b):
|
|
1061
1069
|
|
|
1062
|
-
|
|
1070
|
+
Consume analytics-next ts type definitions as an ambient declaration.
|
|
1063
1071
|
|
|
1064
1072
|
## 11.0.1
|
|
1065
1073
|
|
|
1066
1074
|
### Patch Changes
|
|
1067
1075
|
|
|
1068
|
-
-
|
|
1076
|
+
- [patch][d0db01b410](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d0db01b410):
|
|
1069
1077
|
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
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.
|
|
1073
1081
|
|
|
1074
|
-
|
|
1082
|
+
Before:
|
|
1075
1083
|
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1084
|
+
```typescript
|
|
1085
|
+
withAnalyticsEvents()(Button) as ComponentClass<Props>;
|
|
1086
|
+
```
|
|
1079
1087
|
|
|
1080
|
-
|
|
1088
|
+
After:
|
|
1081
1089
|
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1090
|
+
```typescript
|
|
1091
|
+
withAnalyticsEvents<Props>()(Button);
|
|
1092
|
+
```
|
|
1085
1093
|
|
|
1086
1094
|
## 11.0.0
|
|
1087
1095
|
|
|
1088
1096
|
### Major Changes
|
|
1089
1097
|
|
|
1090
|
-
-
|
|
1098
|
+
- [major][61a919319a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/61a919319a):
|
|
1091
1099
|
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
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.
|
|
1095
1103
|
|
|
1096
1104
|
## 10.0.4
|
|
1097
1105
|
|
|
1098
1106
|
### Patch Changes
|
|
1099
1107
|
|
|
1100
|
-
-
|
|
1108
|
+
- [patch][4615439434](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4615439434):
|
|
1101
1109
|
|
|
1102
|
-
|
|
1110
|
+
index.ts will now be ignored when publishing to npm
|
|
1103
1111
|
|
|
1104
1112
|
## 10.0.3
|
|
1105
1113
|
|
|
1106
|
-
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1114
|
+
- Updated dependencies
|
|
1115
|
+
[67f06f58dd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/67f06f58dd):
|
|
1116
|
+
- @atlaskit/tooltip@15.0.0
|
|
1109
1117
|
|
|
1110
1118
|
## 10.0.2
|
|
1111
1119
|
|
|
1112
|
-
-
|
|
1120
|
+
- [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
|
|
1113
1121
|
|
|
1114
|
-
|
|
1115
|
-
|
|
1122
|
+
- This is just a safety release in case anything strange happened in in the previous one. See Pull
|
|
1123
|
+
Request #5942 for details
|
|
1116
1124
|
|
|
1117
1125
|
## 10.0.1
|
|
1118
1126
|
|
|
1119
|
-
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1127
|
+
- Updated dependencies
|
|
1128
|
+
[215688984e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/215688984e):
|
|
1129
|
+
- @atlaskit/spinner@12.0.0
|
|
1122
1130
|
|
|
1123
1131
|
## 10.0.0
|
|
1124
1132
|
|
|
1125
|
-
-
|
|
1133
|
+
- [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
1126
1134
|
|
|
1127
|
-
|
|
1128
|
-
|
|
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.
|
|
1129
1137
|
|
|
1130
1138
|
## 9.0.1
|
|
1131
1139
|
|
|
1132
|
-
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
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
|
|
1138
1146
|
|
|
1139
1147
|
## 9.0.0
|
|
1140
1148
|
|
|
1141
|
-
-
|
|
1149
|
+
- [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
|
|
1142
1150
|
|
|
1143
|
-
|
|
1151
|
+
- Drop ES5 from all the flow modules
|
|
1144
1152
|
|
|
1145
|
-
|
|
1153
|
+
### Dropping CJS support in all @atlaskit packages
|
|
1146
1154
|
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
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.
|
|
1150
1158
|
|
|
1151
|
-
|
|
1152
|
-
e.g:
|
|
1159
|
+
The major reason for doing this is to allow us to support multiple entry points in packages, e.g:
|
|
1153
1160
|
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1161
|
+
```js
|
|
1162
|
+
import colors from `@atlaskit/theme/colors`;
|
|
1163
|
+
```
|
|
1157
1164
|
|
|
1158
|
-
|
|
1165
|
+
Previously this was sort of possible for consumers by doing something like:
|
|
1159
1166
|
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1167
|
+
```js
|
|
1168
|
+
import colors from `@atlaskit/theme/dist/esm/colors`;
|
|
1169
|
+
```
|
|
1163
1170
|
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
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.
|
|
1169
1176
|
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
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.
|
|
1173
1180
|
|
|
1174
|
-
|
|
1175
|
-
|
|
1181
|
+
ES Modules are widely supported by all modern bundlers and can be worked around in node
|
|
1182
|
+
environments.
|
|
1176
1183
|
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
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.
|
|
1180
1187
|
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
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.
|
|
1184
1191
|
|
|
1185
1192
|
## 8.0.11
|
|
1186
1193
|
|
|
1187
|
-
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
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
|
|
1193
1200
|
|
|
1194
1201
|
## 8.0.10
|
|
1195
1202
|
|
|
1196
|
-
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
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
|
|
1201
1208
|
|
|
1202
1209
|
## 8.0.9
|
|
1203
1210
|
|
|
1204
|
-
-
|
|
1205
|
-
|
|
1211
|
+
- [patch] Adds missing implicit @babel/runtime dependency
|
|
1212
|
+
[b71751b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b71751b)
|
|
1206
1213
|
|
|
1207
1214
|
## 8.0.8
|
|
1208
1215
|
|
|
1209
|
-
-
|
|
1210
|
-
|
|
1216
|
+
- [patch] Adds sideEffects: false to allow proper tree shaking
|
|
1217
|
+
[b5d6d04](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b5d6d04)
|
|
1211
1218
|
|
|
1212
1219
|
## 8.0.6
|
|
1213
1220
|
|
|
1214
|
-
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
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
|
|
1220
1227
|
|
|
1221
1228
|
## 8.0.5
|
|
1222
1229
|
|
|
1223
|
-
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
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
|
|
1232
1239
|
|
|
1233
1240
|
## 8.0.4
|
|
1234
1241
|
|
|
1235
|
-
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
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
|
|
1242
1249
|
|
|
1243
1250
|
## 8.0.3
|
|
1244
1251
|
|
|
1245
|
-
-
|
|
1246
|
-
|
|
1247
|
-
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
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
|
|
1253
1260
|
|
|
1254
1261
|
## 8.0.2
|
|
1255
1262
|
|
|
1256
|
-
-
|
|
1257
|
-
|
|
1258
|
-
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
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
|
|
1264
1271
|
|
|
1265
1272
|
## 8.0.1
|
|
1266
1273
|
|
|
1267
|
-
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1274
|
+
- [patch] Updated dependencies
|
|
1275
|
+
[e6b1985](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e6b1985)
|
|
1276
|
+
- @atlaskit/tooltip@12.0.0
|
|
1270
1277
|
|
|
1271
1278
|
## 8.0.0
|
|
1272
1279
|
|
|
1273
|
-
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
-
|
|
1279
|
-
|
|
1280
|
-
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
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
|
|
1294
1301
|
|
|
1295
1302
|
## 7.1.3
|
|
1296
1303
|
|
|
1297
|
-
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1304
|
+
- [patch] Updated dependencies
|
|
1305
|
+
[cdba8b3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cdba8b3)
|
|
1306
|
+
- @atlaskit/spinner@8.0.0
|
|
1300
1307
|
|
|
1301
1308
|
## 7.1.2
|
|
1302
1309
|
|
|
1303
|
-
-
|
|
1304
|
-
|
|
1305
|
-
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
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
|
|
1310
1317
|
|
|
1311
1318
|
## 7.1.1
|
|
1312
1319
|
|
|
1313
|
-
-
|
|
1314
|
-
|
|
1315
|
-
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
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
|
|
1320
1327
|
|
|
1321
1328
|
## 7.1.0
|
|
1322
1329
|
|
|
1323
|
-
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
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
|
|
1329
1336
|
|
|
1330
1337
|
## 7.0.1
|
|
1331
1338
|
|
|
1332
|
-
-
|
|
1333
|
-
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
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
|
|
1339
1346
|
|
|
1340
1347
|
## 7.0.0
|
|
1341
1348
|
|
|
1342
|
-
-
|
|
1343
|
-
|
|
1344
|
-
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
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
|
|
1350
1357
|
|
|
1351
1358
|
## 6.0.3
|
|
1352
1359
|
|
|
1353
|
-
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
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
|
|
1359
1366
|
|
|
1360
1367
|
## 6.0.1
|
|
1361
1368
|
|
|
1362
|
-
-
|
|
1369
|
+
- [patch] Update types [0073768](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0073768)
|
|
1363
1370
|
|
|
1364
1371
|
## 6.0.0
|
|
1365
1372
|
|
|
1366
|
-
-
|
|
1367
|
-
|
|
1373
|
+
- [major] Bump to React 16.3.
|
|
1374
|
+
[4251858](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4251858)
|
|
1368
1375
|
|
|
1369
1376
|
## 5.2.1
|
|
1370
1377
|
|
|
1371
|
-
-
|
|
1372
|
-
|
|
1378
|
+
- [patch] Re-releasing due to potentially broken babel release
|
|
1379
|
+
[9ed0bba](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9ed0bba)
|
|
1373
1380
|
|
|
1374
1381
|
## 5.2.0
|
|
1375
1382
|
|
|
1376
|
-
-
|
|
1377
|
-
|
|
1383
|
+
- [minor] Update styled-components dependency to support versions 1.4.6 - 3
|
|
1384
|
+
[ceccf30](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ceccf30)
|
|
1378
1385
|
|
|
1379
1386
|
## 5.1.3
|
|
1380
1387
|
|
|
1381
|
-
-
|
|
1382
|
-
|
|
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)
|
|
1383
1390
|
|
|
1384
1391
|
## 5.1.2
|
|
1385
1392
|
|
|
1386
|
-
-
|
|
1387
|
-
|
|
1388
|
-
[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)
|
|
1389
1395
|
|
|
1390
1396
|
## 5.1.1
|
|
1391
1397
|
|
|
1392
|
-
-
|
|
1393
|
-
|
|
1398
|
+
- [patch] Packages Flow types for elements components
|
|
1399
|
+
[3111e74](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3111e74)
|
|
1394
1400
|
|
|
1395
1401
|
## 5.1.0
|
|
1396
1402
|
|
|
1397
|
-
-
|
|
1398
|
-
|
|
1403
|
+
- [minor] Add React 16 support.
|
|
1404
|
+
[12ea6e4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/12ea6e4)
|
|
1399
1405
|
|
|
1400
1406
|
## 5.0.1
|
|
1401
1407
|
|
|
1402
|
-
-
|
|
1403
|
-
|
|
1408
|
+
- [patch] fix tabs so that it re-renders when content props update
|
|
1409
|
+
[9b039dd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9b039dd)
|
|
1404
1410
|
|
|
1405
1411
|
## 5.0.0
|
|
1406
1412
|
|
|
1407
|
-
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
[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)
|
|
1416
1421
|
|
|
1417
1422
|
## 4.1.0
|
|
1418
1423
|
|
|
1419
|
-
-
|
|
1420
|
-
|
|
1424
|
+
- [minor] Update type for label to accept string
|
|
1425
|
+
[0d0ca5f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0d0ca5f)
|
|
1421
1426
|
|
|
1422
1427
|
## 4.0.5
|
|
1423
1428
|
|
|
1424
|
-
-
|
|
1425
|
-
|
|
1429
|
+
- [patch] Migrate to ak-mk-2
|
|
1430
|
+
[4c679a0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4c679a0)
|
|
1426
1431
|
|
|
1427
1432
|
## 4.0.4 (2017-11-17)
|
|
1428
1433
|
|
|
1429
|
-
-
|
|
1430
|
-
|
|
1434
|
+
- bug fix; bumping internal dependencies to latest version
|
|
1435
|
+
([f87bb04](https://bitbucket.org/atlassian/atlaskit/commits/f87bb04))
|
|
1431
1436
|
|
|
1432
1437
|
## 4.0.3 (2017-10-26)
|
|
1433
1438
|
|
|
1434
|
-
-
|
|
1435
|
-
|
|
1439
|
+
- bug fix; fix to rebuild stories
|
|
1440
|
+
([793b2a7](https://bitbucket.org/atlassian/atlaskit/commits/793b2a7))
|
|
1436
1441
|
|
|
1437
1442
|
## 4.0.2 (2017-10-22)
|
|
1438
1443
|
|
|
1439
|
-
-
|
|
1440
|
-
|
|
1444
|
+
- bug fix; update styled-components dep and react peerDep
|
|
1445
|
+
([6a67bf8](https://bitbucket.org/atlassian/atlaskit/commits/6a67bf8))
|
|
1441
1446
|
|
|
1442
1447
|
## 4.0.1 (2017-10-04)
|
|
1443
1448
|
|
|
1444
|
-
-
|
|
1445
|
-
|
|
1449
|
+
- bug fix; tabs now hide overflow, and ellipsis text-overflow (issues closed: #ak3519)
|
|
1450
|
+
([aa91734](https://bitbucket.org/atlassian/atlaskit/commits/aa91734))
|
|
1446
1451
|
|
|
1447
1452
|
## 4.0.0 (2017-08-11)
|
|
1448
1453
|
|
|
1449
|
-
-
|
|
1450
|
-
|
|
1451
|
-
-
|
|
1452
|
-
|
|
1453
|
-
-
|
|
1454
|
-
|
|
1455
|
-
-
|
|
1456
|
-
-
|
|
1457
|
-
|
|
1458
|
-
-
|
|
1459
|
-
|
|
1460
|
-
-
|
|
1461
|
-
|
|
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))
|
|
1462
1467
|
|
|
1463
1468
|
## 3.0.0 (2017-08-11)
|
|
1464
1469
|
|
|
1465
|
-
-
|
|
1466
|
-
|
|
1467
|
-
-
|
|
1468
|
-
|
|
1469
|
-
-
|
|
1470
|
-
-
|
|
1471
|
-
|
|
1472
|
-
-
|
|
1473
|
-
|
|
1474
|
-
-
|
|
1475
|
-
|
|
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))
|
|
1476
1481
|
|
|
1477
1482
|
## 2.4.2 (2017-07-27)
|
|
1478
1483
|
|
|
1479
|
-
-
|
|
1480
|
-
|
|
1484
|
+
- fix; rename jsnext:main to jsnext:experimental:main temporarily
|
|
1485
|
+
([c7508e0](https://bitbucket.org/atlassian/atlaskit/commits/c7508e0))
|
|
1481
1486
|
|
|
1482
1487
|
## 2.4.1 (2017-07-25)
|
|
1483
1488
|
|
|
1484
|
-
-
|
|
1485
|
-
|
|
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))
|
|
1486
1491
|
|
|
1487
1492
|
## 2.1.0 (2017-07-17)
|
|
1488
1493
|
|
|
1489
|
-
-
|
|
1490
|
-
|
|
1494
|
+
- fix; rerelease, failed prepublish scripts
|
|
1495
|
+
([5fd82f8](https://bitbucket.org/atlassian/atlaskit/commits/5fd82f8))
|
|
1491
1496
|
|
|
1492
1497
|
## 2.1.0 (2017-07-17)
|
|
1493
1498
|
|
|
1494
|
-
-
|
|
1495
|
-
|
|
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))
|
|
1496
1501
|
|
|
1497
1502
|
## 2.0.0 (2017-05-30)
|
|
1498
1503
|
|
|
1499
|
-
-
|
|
1500
|
-
|
|
1501
|
-
-
|
|
1502
|
-
-
|
|
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
|
|
1503
1508
|
|
|
1504
1509
|
## 1.3.3 (2017-05-26)
|
|
1505
1510
|
|
|
1506
|
-
-
|
|
1507
|
-
|
|
1508
|
-
-
|
|
1509
|
-
|
|
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))
|
|
1510
1515
|
|
|
1511
1516
|
## 1.3.2 (2017-04-27)
|
|
1512
1517
|
|
|
1513
|
-
-
|
|
1514
|
-
|
|
1518
|
+
- fix; update legal copy to be more clear. Not all modules include ADG license.
|
|
1519
|
+
([f3a945e](https://bitbucket.org/atlassian/atlaskit/commits/f3a945e))
|
|
1515
1520
|
|
|
1516
1521
|
## 1.3.1 (2017-04-26)
|
|
1517
1522
|
|
|
1518
|
-
-
|
|
1519
|
-
|
|
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))
|
|
1520
1525
|
|
|
1521
1526
|
## 1.3.0 (2017-04-20)
|
|
1522
1527
|
|
|
1523
|
-
-
|
|
1524
|
-
|
|
1528
|
+
- feature; removed explicit style! imports, set style-loader in webpack config
|
|
1529
|
+
([891fc3c](https://bitbucket.org/atlassian/atlaskit/commits/891fc3c))
|
|
1525
1530
|
|
|
1526
1531
|
## 1.2.8 (2017-03-23)
|
|
1527
1532
|
|
|
1528
|
-
-
|
|
1529
|
-
|
|
1533
|
+
- fix; empty commit to force release of tabs
|
|
1534
|
+
([47d958e](https://bitbucket.org/atlassian/atlaskit/commits/47d958e))
|
|
1530
1535
|
|
|
1531
1536
|
## 1.2.6 (2017-03-21)
|
|
1532
1537
|
|
|
1533
|
-
-
|
|
1534
|
-
|
|
1538
|
+
- fix; maintainers for all the packages were added
|
|
1539
|
+
([261d00a](https://bitbucket.org/atlassian/atlaskit/commits/261d00a))
|
|
1535
1540
|
|
|
1536
1541
|
## 1.2.5 (2017-02-22)
|
|
1537
1542
|
|
|
1538
|
-
-
|
|
1539
|
-
|
|
1543
|
+
- fix; trigger onSelect prop on keyboard nav
|
|
1544
|
+
([71bb315](https://bitbucket.org/atlassian/atlaskit/commits/71bb315))
|
|
1540
1545
|
|
|
1541
1546
|
## 1.2.4 (2017-02-10)
|
|
1542
1547
|
|
|
1543
|
-
-
|
|
1544
|
-
|
|
1548
|
+
- fix; render tabs with flex content correctly in FF and IE11
|
|
1549
|
+
([dc181da](https://bitbucket.org/atlassian/atlaskit/commits/dc181da))
|
|
1545
1550
|
|
|
1546
1551
|
## 1.2.2 (2017-02-07)
|
|
1547
1552
|
|
|
1548
|
-
-
|
|
1549
|
-
|
|
1550
|
-
-
|
|
1551
|
-
|
|
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))
|
|
1552
1557
|
|
|
1553
1558
|
## 1.2.0 (2017-02-03)
|
|
1554
1559
|
|
|
1555
|
-
-
|
|
1556
|
-
|
|
1557
|
-
-
|
|
1558
|
-
|
|
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))
|