@atlaskit/media-table 15.0.16 → 15.0.18
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 +418 -298
- package/dist/cjs/component/mediaTable.js +3 -3
- package/dist/cjs/component/styles.js +23 -6
- package/dist/es2019/component/styles.js +19 -21
- package/dist/esm/component/mediaTable.js +1 -1
- package/dist/esm/component/styles.js +23 -5
- package/dist/types/component/downloadButton.d.ts +2 -2
- package/dist/types/component/mediaTable.d.ts +1 -1
- package/dist/types/component/previewButton.d.ts +2 -2
- package/dist/types-ts4.5/component/downloadButton.d.ts +2 -2
- package/dist/types-ts4.5/component/mediaTable.d.ts +1 -1
- package/dist/types-ts4.5/component/previewButton.d.ts +2 -2
- package/example-helpers/styles.tsx +2 -0
- package/package.json +17 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,693 +1,813 @@
|
|
|
1
1
|
# @atlaskit/media-table
|
|
2
2
|
|
|
3
|
+
## 15.0.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 15.0.17
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
14
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
15
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
16
|
+
|
|
3
17
|
## 15.0.16
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
6
20
|
|
|
7
|
-
-
|
|
21
|
+
- Updated dependencies
|
|
8
22
|
|
|
9
23
|
## 15.0.15
|
|
10
24
|
|
|
11
25
|
### Patch Changes
|
|
12
26
|
|
|
13
|
-
-
|
|
27
|
+
- Updated dependencies
|
|
14
28
|
|
|
15
29
|
## 15.0.14
|
|
16
30
|
|
|
17
31
|
### Patch Changes
|
|
18
32
|
|
|
19
|
-
-
|
|
33
|
+
- Updated dependencies
|
|
20
34
|
|
|
21
35
|
## 15.0.13
|
|
22
36
|
|
|
23
37
|
### Patch Changes
|
|
24
38
|
|
|
25
|
-
-
|
|
39
|
+
- Updated dependencies
|
|
26
40
|
|
|
27
41
|
## 15.0.12
|
|
28
42
|
|
|
29
43
|
### Patch Changes
|
|
30
44
|
|
|
31
|
-
-
|
|
45
|
+
- Updated dependencies
|
|
32
46
|
|
|
33
47
|
## 15.0.11
|
|
34
48
|
|
|
35
49
|
### Patch Changes
|
|
36
50
|
|
|
37
|
-
-
|
|
38
|
-
-
|
|
51
|
+
- [#41659](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41659)
|
|
52
|
+
[`a0c97a19dba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a0c97a19dba) - Remove
|
|
53
|
+
unused utils and depreciated exports in mediaClient.
|
|
54
|
+
- Updated dependencies
|
|
39
55
|
|
|
40
56
|
## 15.0.10
|
|
41
57
|
|
|
42
58
|
### Patch Changes
|
|
43
59
|
|
|
44
|
-
-
|
|
60
|
+
- Updated dependencies
|
|
45
61
|
|
|
46
62
|
## 15.0.9
|
|
47
63
|
|
|
48
64
|
### Patch Changes
|
|
49
65
|
|
|
50
|
-
-
|
|
66
|
+
- Updated dependencies
|
|
51
67
|
|
|
52
68
|
## 15.0.8
|
|
53
69
|
|
|
54
70
|
### Patch Changes
|
|
55
71
|
|
|
56
|
-
-
|
|
72
|
+
- Updated dependencies
|
|
57
73
|
|
|
58
74
|
## 15.0.7
|
|
59
75
|
|
|
60
76
|
### Patch Changes
|
|
61
77
|
|
|
62
|
-
-
|
|
78
|
+
- [#37340](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37340)
|
|
79
|
+
[`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt
|
|
80
|
+
out of peer dependency enforcement
|
|
63
81
|
|
|
64
82
|
## 15.0.6
|
|
65
83
|
|
|
66
84
|
### Patch Changes
|
|
67
85
|
|
|
68
|
-
-
|
|
86
|
+
- [#36757](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36757)
|
|
87
|
+
[`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add
|
|
88
|
+
postinstall check to enforce internal peer dependencies
|
|
69
89
|
|
|
70
90
|
## 15.0.5
|
|
71
91
|
|
|
72
92
|
### Patch Changes
|
|
73
93
|
|
|
74
|
-
-
|
|
94
|
+
- [#33728](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33728)
|
|
95
|
+
[`48e4a655534`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e4a655534) -
|
|
96
|
+
Internal change to enforce token usage for spacing properties. There is no expected visual or
|
|
97
|
+
behaviour change.
|
|
75
98
|
|
|
76
99
|
## 15.0.4
|
|
77
100
|
|
|
78
101
|
### Patch Changes
|
|
79
102
|
|
|
80
|
-
-
|
|
103
|
+
- Updated dependencies
|
|
81
104
|
|
|
82
105
|
## 15.0.3
|
|
83
106
|
|
|
84
107
|
### Patch Changes
|
|
85
108
|
|
|
86
|
-
-
|
|
87
|
-
-
|
|
109
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
110
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
111
|
+
legacy types are published for TS 4.5-4.8
|
|
112
|
+
- Updated dependencies
|
|
88
113
|
|
|
89
114
|
## 15.0.2
|
|
90
115
|
|
|
91
116
|
### Patch Changes
|
|
92
117
|
|
|
93
|
-
-
|
|
118
|
+
- Updated dependencies
|
|
94
119
|
|
|
95
120
|
## 15.0.1
|
|
96
121
|
|
|
97
122
|
### Patch Changes
|
|
98
123
|
|
|
99
|
-
-
|
|
100
|
-
-
|
|
124
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
125
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) -
|
|
126
|
+
Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
127
|
+
- Updated dependencies
|
|
101
128
|
|
|
102
129
|
## 15.0.0
|
|
103
130
|
|
|
104
131
|
### Minor Changes
|
|
105
132
|
|
|
106
|
-
-
|
|
133
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
134
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
135
|
+
minor dependency bump
|
|
107
136
|
|
|
108
137
|
### Patch Changes
|
|
109
138
|
|
|
110
|
-
-
|
|
139
|
+
- Updated dependencies
|
|
111
140
|
|
|
112
141
|
## 14.1.7
|
|
113
142
|
|
|
114
143
|
### Patch Changes
|
|
115
144
|
|
|
116
|
-
-
|
|
145
|
+
- Updated dependencies
|
|
117
146
|
|
|
118
147
|
## 14.1.6
|
|
119
148
|
|
|
120
149
|
### Patch Changes
|
|
121
150
|
|
|
122
|
-
-
|
|
123
|
-
-
|
|
151
|
+
- [#30248](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30248)
|
|
152
|
+
[`c3eba8c788d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c3eba8c788d) -
|
|
153
|
+
Updates Media Viewer input data object
|
|
154
|
+
- Updated dependencies
|
|
124
155
|
|
|
125
156
|
## 14.1.5
|
|
126
157
|
|
|
127
158
|
### Patch Changes
|
|
128
159
|
|
|
129
|
-
-
|
|
160
|
+
- Updated dependencies
|
|
130
161
|
|
|
131
162
|
## 14.1.4
|
|
132
163
|
|
|
133
164
|
### Patch Changes
|
|
134
165
|
|
|
135
|
-
-
|
|
166
|
+
- Updated dependencies
|
|
136
167
|
|
|
137
168
|
## 14.1.3
|
|
138
169
|
|
|
139
170
|
### Patch Changes
|
|
140
171
|
|
|
141
|
-
-
|
|
172
|
+
- Updated dependencies
|
|
142
173
|
|
|
143
174
|
## 14.1.2
|
|
144
175
|
|
|
145
176
|
### Patch Changes
|
|
146
177
|
|
|
147
|
-
-
|
|
178
|
+
- Updated dependencies
|
|
148
179
|
|
|
149
180
|
## 14.1.1
|
|
150
181
|
|
|
151
182
|
### Patch Changes
|
|
152
183
|
|
|
153
|
-
-
|
|
184
|
+
- Updated dependencies
|
|
154
185
|
|
|
155
186
|
## 14.1.0
|
|
156
187
|
|
|
157
188
|
### Minor Changes
|
|
158
189
|
|
|
159
|
-
-
|
|
190
|
+
- [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712)
|
|
191
|
+
[`2c1a0c45a0b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c1a0c45a0b) - [ux]
|
|
192
|
+
Instrumented `@atlaskit/media-table` with the new theming package, `@atlaskit/tokens`.
|
|
160
193
|
|
|
161
|
-
|
|
162
|
-
|
|
194
|
+
New tokens will be visible only in applications configured to use the new Tokens API (currently
|
|
195
|
+
in alpha). These changes are intended to be interoperable with the legacy theme implementation.
|
|
196
|
+
Legacy dark mode users should expect no visual or breaking changes.
|
|
163
197
|
|
|
164
198
|
### Patch Changes
|
|
165
199
|
|
|
166
|
-
-
|
|
167
|
-
|
|
200
|
+
- [`7fc3932cc78`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7fc3932cc78) - [ux]
|
|
201
|
+
Removed hover and focus state styling as the base component applies those already.
|
|
202
|
+
- Updated dependencies
|
|
168
203
|
|
|
169
204
|
## 14.0.0
|
|
170
205
|
|
|
171
206
|
### Major Changes
|
|
172
207
|
|
|
173
|
-
-
|
|
208
|
+
- [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710)
|
|
209
|
+
[`64a9be7d742`](https://bitbucket.org/atlassian/atlassian-frontend/commits/64a9be7d742) - [ux]
|
|
210
|
+
Add a preconfiguration for columns with the key 'preview' to display a media preview button
|
|
174
211
|
|
|
175
212
|
### Minor Changes
|
|
176
213
|
|
|
177
|
-
-
|
|
214
|
+
- [`692477d9854`](https://bitbucket.org/atlassian/atlassian-frontend/commits/692477d9854) - [ux]
|
|
215
|
+
Adds row selection & row highlighting to media table component
|
|
178
216
|
|
|
179
217
|
### Patch Changes
|
|
180
218
|
|
|
181
|
-
-
|
|
182
|
-
-
|
|
219
|
+
- [`153829bfcb3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/153829bfcb3) -
|
|
220
|
+
Upgrade caching algorithm library lru-fast to lru_map.
|
|
221
|
+
- Updated dependencies
|
|
183
222
|
|
|
184
223
|
## 13.0.2
|
|
185
224
|
|
|
186
225
|
### Patch Changes
|
|
187
226
|
|
|
188
|
-
-
|
|
189
|
-
-
|
|
227
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
228
|
+
[`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) -
|
|
229
|
+
Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
230
|
+
- Updated dependencies
|
|
190
231
|
|
|
191
232
|
## 13.0.1
|
|
192
233
|
|
|
193
234
|
### Patch Changes
|
|
194
235
|
|
|
195
|
-
-
|
|
196
|
-
-
|
|
236
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
237
|
+
[`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) -
|
|
238
|
+
Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
239
|
+
- Updated dependencies
|
|
197
240
|
|
|
198
241
|
## 13.0.0
|
|
199
242
|
|
|
200
243
|
### Major Changes
|
|
201
244
|
|
|
202
|
-
-
|
|
245
|
+
- [#22642](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/22642)
|
|
246
|
+
[`af775dcb785`](https://bitbucket.org/atlassian/atlassian-frontend/commits/af775dcb785) -
|
|
247
|
+
[MEX-1034] Migrated from styled-components library to @emotion/react in @atlaskit/media-table
|
|
203
248
|
|
|
204
249
|
### Patch Changes
|
|
205
250
|
|
|
206
|
-
-
|
|
251
|
+
- Updated dependencies
|
|
207
252
|
|
|
208
253
|
## 12.0.1
|
|
209
254
|
|
|
210
255
|
### Patch Changes
|
|
211
256
|
|
|
212
|
-
-
|
|
257
|
+
- Updated dependencies
|
|
213
258
|
|
|
214
259
|
## 12.0.0
|
|
215
260
|
|
|
216
261
|
### Patch Changes
|
|
217
262
|
|
|
218
|
-
-
|
|
263
|
+
- Updated dependencies
|
|
219
264
|
|
|
220
265
|
## 11.0.1
|
|
221
266
|
|
|
222
267
|
### Patch Changes
|
|
223
268
|
|
|
224
|
-
-
|
|
225
|
-
-
|
|
269
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
270
|
+
[`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) -
|
|
271
|
+
Upgrade to TypeScript 4.2.4
|
|
272
|
+
- Updated dependencies
|
|
226
273
|
|
|
227
274
|
## 11.0.0
|
|
228
275
|
|
|
229
276
|
### Minor Changes
|
|
230
277
|
|
|
231
|
-
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
278
|
+
- [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618)
|
|
279
|
+
[`f862d5ae7aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f862d5ae7aa) - remove
|
|
280
|
+
RxJs peer dependency
|
|
281
|
+
- [`118f3af101f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/118f3af101f) - Media
|
|
282
|
+
Client APIs has been updated to use MediaSubscribable which provides subscription functionality
|
|
283
|
+
(similar to RxJs observables). It exposes subscribe method that is called with MediaObserver as
|
|
284
|
+
an argument and returns MediaSubscription. MediaSubscription exposes unsubscribe method.
|
|
235
285
|
|
|
236
|
-
|
|
237
|
-
|
|
286
|
+
getFileState: The returned type of this function has changed from RxJs ReplaySubject to
|
|
287
|
+
MediaSubscribable.
|
|
238
288
|
|
|
239
|
-
|
|
240
|
-
|
|
289
|
+
```
|
|
290
|
+
import { MediaClient, MediaObserver, MediaSubscribable, MediaSubscription } from '@atlaskit/media-client';
|
|
241
291
|
|
|
242
|
-
|
|
292
|
+
const mediaClient = new MediaClient({ authProvider });
|
|
243
293
|
|
|
244
|
-
|
|
294
|
+
const fileStateSubscribable: MediaSubscribable<FileState> = mediaClient.file.getFileState(id);
|
|
245
295
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
296
|
+
const mediaObserver: MediaObserver<FileState> = {
|
|
297
|
+
next: (fileState) => {
|
|
298
|
+
nextCallback(fileState)
|
|
299
|
+
},
|
|
300
|
+
error: (error) => {
|
|
301
|
+
errorCallback(error)
|
|
302
|
+
},
|
|
303
|
+
};
|
|
254
304
|
|
|
255
|
-
|
|
305
|
+
const subscription: MediaSubscription = fileStateSubscribable.subscribe(mediaObserver);
|
|
256
306
|
|
|
257
|
-
|
|
258
|
-
|
|
307
|
+
subscription.unsubscribe();
|
|
308
|
+
```
|
|
259
309
|
|
|
260
|
-
|
|
261
|
-
|
|
310
|
+
upload: The returned type of this function has changed from RxJs ReplaySubject to
|
|
311
|
+
MediaSubscribable.
|
|
262
312
|
|
|
263
|
-
|
|
264
|
-
|
|
313
|
+
```
|
|
314
|
+
import { MediaClient, MediaObserver, MediaSubscribable, MediaSubscription } from '@atlaskit/media-client';
|
|
265
315
|
|
|
266
|
-
|
|
316
|
+
const mediaClient = new MediaClient({ authProvider });
|
|
267
317
|
|
|
268
|
-
|
|
318
|
+
const uploadFileSubscribable: MediaSubscribable<FileState> = mediaClient.file.upload(uploadableFile);
|
|
269
319
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
320
|
+
const mediaObserver: MediaObserver<FileState> = {
|
|
321
|
+
next: (fileState) => {
|
|
322
|
+
nextCallback(fileState)
|
|
323
|
+
},
|
|
324
|
+
error: (error) => {
|
|
325
|
+
errorCallback(error)
|
|
326
|
+
},
|
|
327
|
+
};
|
|
278
328
|
|
|
279
|
-
|
|
329
|
+
const subscription: MediaSubscription = uploadFileSubscribable.subscribe(mediaObserver);
|
|
280
330
|
|
|
281
|
-
|
|
282
|
-
|
|
331
|
+
subscription.unsubscribe();
|
|
332
|
+
```
|
|
283
333
|
|
|
284
|
-
|
|
285
|
-
|
|
334
|
+
getItems: The returned type of this function has changed from RxJs ReplaySubject to
|
|
335
|
+
MediaSubscribable.
|
|
286
336
|
|
|
287
|
-
|
|
288
|
-
|
|
337
|
+
```
|
|
338
|
+
import { MediaClient, MediaObserver, MediaSubscribable, MediaSubscription } from '@atlaskit/media-client';
|
|
289
339
|
|
|
290
|
-
|
|
340
|
+
const mediaClient = new MediaClient({ authProvider });
|
|
291
341
|
|
|
292
|
-
|
|
342
|
+
const collectionItemsSubscribable: MediaSubscribable<MediaCollectionItem[]> = mediaClient.collection.getItems(collectionName);
|
|
293
343
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
344
|
+
const mediaObserver: MediaObserver<MediaCollectionItem[]> = {
|
|
345
|
+
next: (items) => {
|
|
346
|
+
nextCallback(items)
|
|
347
|
+
},
|
|
348
|
+
error: (error) => {
|
|
349
|
+
errorCallback(error)
|
|
350
|
+
},
|
|
351
|
+
};
|
|
302
352
|
|
|
303
|
-
|
|
353
|
+
const subscription: MediaSubscription = collectionItemsSubscribable.subscribe(mediaObserver);
|
|
304
354
|
|
|
305
|
-
|
|
306
|
-
|
|
355
|
+
subscription.unsubscribe();
|
|
356
|
+
```
|
|
307
357
|
|
|
308
358
|
### Patch Changes
|
|
309
359
|
|
|
310
|
-
-
|
|
360
|
+
- Updated dependencies
|
|
311
361
|
|
|
312
362
|
## 10.0.3
|
|
313
363
|
|
|
314
364
|
### Patch Changes
|
|
315
365
|
|
|
316
|
-
-
|
|
366
|
+
- Updated dependencies
|
|
317
367
|
|
|
318
368
|
## 10.0.2
|
|
319
369
|
|
|
320
370
|
### Patch Changes
|
|
321
371
|
|
|
322
|
-
-
|
|
372
|
+
- [#19261](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19261)
|
|
373
|
+
[`6a5dc78b511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a5dc78b511) - Remove
|
|
374
|
+
dateformat from media packages
|
|
323
375
|
|
|
324
376
|
## 10.0.1
|
|
325
377
|
|
|
326
378
|
### Patch Changes
|
|
327
379
|
|
|
328
|
-
-
|
|
380
|
+
- Updated dependencies
|
|
329
381
|
|
|
330
382
|
## 10.0.0
|
|
331
383
|
|
|
332
384
|
### Major Changes
|
|
333
385
|
|
|
334
|
-
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
386
|
+
- [#14810](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14810)
|
|
387
|
+
[`47f58da5946`](https://bitbucket.org/atlassian/atlassian-frontend/commits/47f58da5946) -
|
|
388
|
+
ED-13322, ED-13324, ED-13326, ED-13323, ED-13204: Upgrade and support react-intl@^5.18.1
|
|
389
|
+
including breaking API changes, types and tests in atlassian-frontend packages
|
|
390
|
+
|
|
391
|
+
What changed: Upgraded our react-intl support from ^2.6.0 to ^5.18.1. This means editor packages
|
|
392
|
+
now rely on consumers installing ^5.18.1, otherwise editor usage of react-intl will mismatch
|
|
393
|
+
with actual installed react-intl APIs. Why change was made: As part of a coordinated upgrade
|
|
394
|
+
effort across AF packages, as react-intl v2 is quite dated. How consumer should update their
|
|
395
|
+
code: Ensure react-intl ^5.18.1 is installed in consuming applications.
|
|
396
|
+
|
|
397
|
+
Upgrade guide: To consume atlassian-frontend packages that use react-intl5 setup a second
|
|
398
|
+
provider for the new version, using an npm alias
|
|
399
|
+
|
|
400
|
+
```js
|
|
401
|
+
"react-intl": "^2.6.0",
|
|
402
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
```js
|
|
406
|
+
import { IntlProvider } from 'react-intl';
|
|
407
|
+
import { IntlProvider as IntlNextProvider } from 'react-intl-next';
|
|
408
|
+
|
|
409
|
+
return (
|
|
410
|
+
<IntlProvider
|
|
411
|
+
key={locale}
|
|
412
|
+
data-test-language={locale}
|
|
413
|
+
locale={locale}
|
|
414
|
+
defaultLocale={DEFAULT_LOCALE}
|
|
415
|
+
messages={messages}
|
|
416
|
+
>
|
|
417
|
+
<IntlNextProvider
|
|
418
|
+
key={locale}
|
|
419
|
+
data-test-language={locale}
|
|
420
|
+
locale={locale}
|
|
421
|
+
defaultLocale={DEFAULT_LOCALE}
|
|
422
|
+
messages={messages}
|
|
423
|
+
>
|
|
424
|
+
{children}
|
|
425
|
+
</IntlNextProvider>
|
|
426
|
+
</IntlProvider>
|
|
427
|
+
);
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
### Patch Changes
|
|
431
|
+
|
|
432
|
+
- Updated dependencies
|
|
375
433
|
|
|
376
434
|
## 9.0.3
|
|
377
435
|
|
|
378
436
|
### Patch Changes
|
|
379
437
|
|
|
380
|
-
-
|
|
438
|
+
- [#15694](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15694)
|
|
439
|
+
[`b85e7ce12cd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b85e7ce12cd) -
|
|
440
|
+
Internal upgrade of memoize-one to 6.0.0
|
|
381
441
|
|
|
382
442
|
## 9.0.2
|
|
383
443
|
|
|
384
444
|
### Patch Changes
|
|
385
445
|
|
|
386
|
-
-
|
|
446
|
+
- Updated dependencies
|
|
387
447
|
|
|
388
448
|
## 9.0.1
|
|
389
449
|
|
|
390
450
|
### Patch Changes
|
|
391
451
|
|
|
392
|
-
-
|
|
393
|
-
-
|
|
452
|
+
- [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864)
|
|
453
|
+
[`b90c0237824`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b90c0237824) - Update
|
|
454
|
+
package.jsons to remove unused dependencies.
|
|
455
|
+
- Updated dependencies
|
|
394
456
|
|
|
395
457
|
## 9.0.0
|
|
396
458
|
|
|
397
459
|
### Patch Changes
|
|
398
460
|
|
|
399
|
-
-
|
|
461
|
+
- Updated dependencies
|
|
400
462
|
|
|
401
463
|
## 8.0.7
|
|
402
464
|
|
|
403
465
|
### Patch Changes
|
|
404
466
|
|
|
405
|
-
-
|
|
406
|
-
-
|
|
467
|
+
- [#11113](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11113)
|
|
468
|
+
[`3cd9ee2d15b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3cd9ee2d15b) - Added
|
|
469
|
+
RxJS compatiblity notice in Media docs
|
|
470
|
+
- Updated dependencies
|
|
407
471
|
|
|
408
472
|
## 8.0.6
|
|
409
473
|
|
|
410
474
|
### Patch Changes
|
|
411
475
|
|
|
412
|
-
-
|
|
476
|
+
- [#10206](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10206)
|
|
477
|
+
[`153f5588cab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/153f5588cab) -
|
|
478
|
+
VULN-328572 - Upgrade dateformat to address security vuln
|
|
413
479
|
|
|
414
480
|
## 8.0.5
|
|
415
481
|
|
|
416
482
|
### Patch Changes
|
|
417
483
|
|
|
418
|
-
-
|
|
484
|
+
- Updated dependencies
|
|
419
485
|
|
|
420
486
|
## 8.0.4
|
|
421
487
|
|
|
422
488
|
### Patch Changes
|
|
423
489
|
|
|
424
|
-
-
|
|
490
|
+
- Updated dependencies
|
|
425
491
|
|
|
426
492
|
## 8.0.3
|
|
427
493
|
|
|
428
494
|
### Patch Changes
|
|
429
495
|
|
|
430
|
-
-
|
|
496
|
+
- Updated dependencies
|
|
431
497
|
|
|
432
498
|
## 8.0.2
|
|
433
499
|
|
|
434
500
|
### Patch Changes
|
|
435
501
|
|
|
436
|
-
-
|
|
437
|
-
-
|
|
502
|
+
- [#6571](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6571)
|
|
503
|
+
[`6d0d354481`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6d0d354481) -
|
|
504
|
+
BENTO-7803 Prevent download button from opening the media preview
|
|
505
|
+
- Updated dependencies
|
|
438
506
|
|
|
439
507
|
## 8.0.1
|
|
440
508
|
|
|
441
509
|
### Patch Changes
|
|
442
510
|
|
|
443
|
-
-
|
|
444
|
-
-
|
|
511
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
512
|
+
[`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) -
|
|
513
|
+
Transpile packages using babel rather than tsc
|
|
514
|
+
- Updated dependencies
|
|
445
515
|
|
|
446
516
|
## 8.0.0
|
|
447
517
|
|
|
448
518
|
### Patch Changes
|
|
449
519
|
|
|
450
|
-
-
|
|
520
|
+
- Updated dependencies
|
|
451
521
|
|
|
452
522
|
## 7.0.0
|
|
453
523
|
|
|
454
524
|
### Major Changes
|
|
455
525
|
|
|
456
|
-
-
|
|
526
|
+
- [#5516](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5516)
|
|
527
|
+
[`4fe0ee2c04`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4fe0ee2c04) - API
|
|
528
|
+
change: Move rowProps prop to each individual row item to allow different props to be applied to
|
|
529
|
+
each table row
|
|
457
530
|
|
|
458
531
|
### Patch Changes
|
|
459
532
|
|
|
460
|
-
-
|
|
461
|
-
-
|
|
533
|
+
- [`0135387fdd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0135387fdd) -
|
|
534
|
+
BENTO-7391 Add eventType in media-table DownloadButton analytics call
|
|
535
|
+
- Updated dependencies
|
|
462
536
|
|
|
463
537
|
## 6.0.2
|
|
464
538
|
|
|
465
539
|
### Patch Changes
|
|
466
540
|
|
|
467
|
-
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
541
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
542
|
+
[`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
|
|
543
|
+
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
|
|
544
|
+
compiler option. This requires version 3.8 of Typescript, read more about how we handle
|
|
545
|
+
Typescript versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
|
|
546
|
+
`devDependencies` to denote version that the package was built with.
|
|
547
|
+
- Updated dependencies
|
|
471
548
|
|
|
472
549
|
## 6.0.1
|
|
473
550
|
|
|
474
551
|
### Patch Changes
|
|
475
552
|
|
|
476
|
-
-
|
|
553
|
+
- Updated dependencies
|
|
477
554
|
|
|
478
555
|
## 6.0.0
|
|
479
556
|
|
|
480
557
|
### Minor Changes
|
|
481
558
|
|
|
482
|
-
-
|
|
559
|
+
- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749)
|
|
560
|
+
[`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated
|
|
561
|
+
to declarative entry points
|
|
483
562
|
|
|
484
563
|
### Patch Changes
|
|
485
564
|
|
|
486
|
-
-
|
|
565
|
+
- Updated dependencies
|
|
487
566
|
|
|
488
567
|
## 5.2.3
|
|
489
568
|
|
|
490
569
|
### Patch Changes
|
|
491
570
|
|
|
492
|
-
-
|
|
571
|
+
- Updated dependencies
|
|
493
572
|
|
|
494
573
|
## 5.2.2
|
|
495
574
|
|
|
496
575
|
### Patch Changes
|
|
497
576
|
|
|
498
|
-
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
-
|
|
577
|
+
- [#4424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4424)
|
|
578
|
+
[`a7eb47bc69`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a7eb47bc69) - Add
|
|
579
|
+
analytic channel to download button analyticsEvent
|
|
580
|
+
- [`92094dd855`](https://bitbucket.org/atlassian/atlassian-frontend/commits/92094dd855) - Remove
|
|
581
|
+
faulty import in mediaTable
|
|
582
|
+
- [`9254b203f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9254b203f9) - Removing
|
|
583
|
+
unused code to be published
|
|
584
|
+
- Updated dependencies
|
|
502
585
|
|
|
503
586
|
## 5.2.1
|
|
504
587
|
|
|
505
588
|
### Patch Changes
|
|
506
589
|
|
|
507
|
-
-
|
|
590
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
591
|
+
[`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
|
|
592
|
+
to TypeScript 3.9.6 and tslib to 2.0.0
|
|
508
593
|
|
|
509
|
-
|
|
510
|
-
|
|
594
|
+
Since tslib is a dependency for all our packages we recommend that products also follow this
|
|
595
|
+
tslib upgrade to prevent duplicates of tslib being bundled.
|
|
511
596
|
|
|
512
597
|
## 5.2.0
|
|
513
598
|
|
|
514
599
|
### Minor Changes
|
|
515
600
|
|
|
516
|
-
-
|
|
517
|
-
|
|
518
|
-
|
|
601
|
+
- [#3823](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3823)
|
|
602
|
+
[`c026e59e68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c026e59e68) - Move
|
|
603
|
+
truncateText helper from media-card to media-ui and expose entry point. Export optional NameCell
|
|
604
|
+
component from MediaTable.
|
|
605
|
+
- [`89a1c63251`](https://bitbucket.org/atlassian/atlassian-frontend/commits/89a1c63251) - Add the
|
|
606
|
+
rowProps property, which enables consumers to apply properties to the underlying row component.
|
|
607
|
+
Move truncateText helper from media-card to media-ui and expose entry point. Export optional
|
|
608
|
+
NameCell component from MediaTable.
|
|
609
|
+
- [`6c3c26f10c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c3c26f10c) - Add
|
|
610
|
+
fixed width to download button column in media-table
|
|
519
611
|
|
|
520
612
|
### Patch Changes
|
|
521
613
|
|
|
522
|
-
-
|
|
523
|
-
|
|
524
|
-
-
|
|
614
|
+
- [`fa6fb5dfbb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa6fb5dfbb) - Removing
|
|
615
|
+
unused code to be published
|
|
616
|
+
- [`dff687b37a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dff687b37a) - Expose
|
|
617
|
+
onKeyPress prop for dynamic-table and use it to show mediaViewer
|
|
618
|
+
- Updated dependencies
|
|
525
619
|
|
|
526
620
|
## 5.1.1
|
|
527
621
|
|
|
528
622
|
### Patch Changes
|
|
529
623
|
|
|
530
|
-
-
|
|
624
|
+
- [#3892](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3892)
|
|
625
|
+
[`ff9c75810c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff9c75810c) - Remove
|
|
626
|
+
faulty import in mediaTable
|
|
531
627
|
|
|
532
628
|
## 5.1.0
|
|
533
629
|
|
|
534
630
|
### Minor Changes
|
|
535
631
|
|
|
536
|
-
-
|
|
537
|
-
|
|
538
|
-
|
|
632
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428)
|
|
633
|
+
[`0934ad8798`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0934ad8798) - Add
|
|
634
|
+
onPreviewOpen and onPreviewClose props
|
|
635
|
+
- [`6cf40e50ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6cf40e50ea) - Add UI
|
|
636
|
+
analyticsEvent to individual row download button and table row click
|
|
637
|
+
- [`6c554b874b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c554b874b) - Remove
|
|
638
|
+
obsolete collectionName from RowData type. The collectionName should be included in the item
|
|
639
|
+
identifier if it is required.
|
|
539
640
|
|
|
540
641
|
## 5.0.0
|
|
541
642
|
|
|
542
643
|
### Major Changes
|
|
543
644
|
|
|
544
|
-
-
|
|
545
|
-
|
|
645
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
646
|
+
[`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) -
|
|
647
|
+
Officially dropping IE11 support, from this version onwards there are no warranties of the
|
|
648
|
+
package working in IE11. For more information see:
|
|
649
|
+
https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
546
650
|
|
|
547
651
|
### Patch Changes
|
|
548
652
|
|
|
549
|
-
-
|
|
653
|
+
- Updated dependencies
|
|
550
654
|
|
|
551
655
|
## 4.0.0
|
|
552
656
|
|
|
553
657
|
### Major Changes
|
|
554
658
|
|
|
555
|
-
-
|
|
659
|
+
- [#2763](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2763)
|
|
660
|
+
[`198b19dcc7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/198b19dcc7) - Refactor
|
|
661
|
+
items to take a FileIdentifier instead of string id
|
|
556
662
|
|
|
557
663
|
### Minor Changes
|
|
558
664
|
|
|
559
|
-
-
|
|
560
|
-
|
|
665
|
+
- [`f4b74d89c1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f4b74d89c1) - Add i18n
|
|
666
|
+
support to media-table
|
|
667
|
+
- [`e44e4959b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e44e4959b3) - Expose
|
|
668
|
+
sortKey and sortOrder as props. Add props documentation
|
|
561
669
|
|
|
562
670
|
### Patch Changes
|
|
563
671
|
|
|
564
|
-
-
|
|
672
|
+
- Updated dependencies
|
|
565
673
|
|
|
566
674
|
## 3.0.1
|
|
567
675
|
|
|
568
676
|
### Patch Changes
|
|
569
677
|
|
|
570
|
-
-
|
|
571
|
-
-
|
|
678
|
+
- [#2443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2443)
|
|
679
|
+
[`51aa5587ef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/51aa5587ef) - bump
|
|
680
|
+
media-client: Remove stack traces from media analytic events
|
|
681
|
+
- Updated dependencies
|
|
572
682
|
|
|
573
683
|
## 3.0.0
|
|
574
684
|
|
|
575
685
|
### Major Changes
|
|
576
686
|
|
|
577
|
-
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
687
|
+
- [#2841](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2841)
|
|
688
|
+
[`4af9cf854d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4af9cf854d) - Refactor
|
|
689
|
+
items to take a FileIdentifier instead of string id Add i18n support to media-table Expose
|
|
690
|
+
sortKey and sortOrder as props. Add props documentation Add isFixedSize to DynamicTableStateless
|
|
691
|
+
prop Add temporary workaround for FileIdentifier type
|
|
582
692
|
|
|
583
693
|
## 2.0.0
|
|
584
694
|
|
|
585
695
|
### Major Changes
|
|
586
696
|
|
|
587
|
-
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
id: 'e558199f-f982-4d23-93eb-313be5998d1b',
|
|
631
|
-
},
|
|
632
|
-
];
|
|
633
|
-
|
|
634
|
-
const columns: HeadType = {
|
|
635
|
-
cells: [
|
|
697
|
+
- [#2629](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2629)
|
|
698
|
+
[`07952b96f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07952b96f8) - - New
|
|
699
|
+
implementation of MediaTable with upgraded API
|
|
700
|
+
|
|
701
|
+
**New API Requirements**
|
|
702
|
+
|
|
703
|
+
- `items`: The content of items we want to display on each row
|
|
704
|
+
|
|
705
|
+
```
|
|
706
|
+
RowData {
|
|
707
|
+
[key: string]: React.ReactNode | string;
|
|
708
|
+
collectionName?: string;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
MediaTableItem {
|
|
712
|
+
id: string;
|
|
713
|
+
data: RowData;
|
|
714
|
+
}[]
|
|
715
|
+
```
|
|
716
|
+
|
|
717
|
+
- `columns`: The columns that we want to display for the table. If download button is
|
|
718
|
+
required, need to have the 'download' key defined in columns (MediaTable will override whats
|
|
719
|
+
in content for download).
|
|
720
|
+
|
|
721
|
+
```
|
|
722
|
+
HeadType = {
|
|
723
|
+
cells: [
|
|
724
|
+
{
|
|
725
|
+
key: string | 'download';
|
|
726
|
+
width?: number;
|
|
727
|
+
content: React.ReactNode | string;
|
|
728
|
+
isSortable: boolean;
|
|
729
|
+
}
|
|
730
|
+
]
|
|
731
|
+
}
|
|
732
|
+
```
|
|
733
|
+
|
|
734
|
+
NOTE: Objecty property key in RowData must match with the key in the columns for it to be
|
|
735
|
+
displayed in the table. E.g. Below would only render `file` data in the table, as the columns do
|
|
736
|
+
not have the `trial` key defined within the cells array.
|
|
737
|
+
|
|
738
|
+
```
|
|
739
|
+
const items: MediaTableItem[] = [
|
|
636
740
|
{
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
741
|
+
data: {
|
|
742
|
+
file: 'test1',
|
|
743
|
+
trial: 'hi',
|
|
744
|
+
},
|
|
745
|
+
id: 'e558199f-f982-4d23-93eb-313be5998d1b',
|
|
641
746
|
},
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
747
|
+
];
|
|
748
|
+
|
|
749
|
+
const columns: HeadType = {
|
|
750
|
+
cells: [
|
|
751
|
+
{
|
|
752
|
+
key: 'file',
|
|
753
|
+
width: 50,
|
|
754
|
+
content: 'File name',
|
|
755
|
+
isSortable: true,
|
|
756
|
+
},
|
|
757
|
+
],
|
|
758
|
+
};
|
|
759
|
+
```
|
|
760
|
+
|
|
761
|
+
**Example Usage**
|
|
762
|
+
|
|
763
|
+
```
|
|
764
|
+
const items: MediaTableItem[] = [
|
|
660
765
|
{
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
766
|
+
data: {
|
|
767
|
+
file: 'test1',
|
|
768
|
+
},
|
|
769
|
+
id: 'e558199f-f982-4d23-93eb-313be5998d1b',
|
|
665
770
|
},
|
|
666
|
-
]
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
771
|
+
]
|
|
772
|
+
|
|
773
|
+
const columns: HeadType = {
|
|
774
|
+
cells: [
|
|
775
|
+
{
|
|
776
|
+
key: 'file',
|
|
777
|
+
width: 50,
|
|
778
|
+
content: 'File name',
|
|
779
|
+
isSortable: true,
|
|
780
|
+
},
|
|
781
|
+
],
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
<MediaTable
|
|
785
|
+
items={items}
|
|
786
|
+
mediaClientConfig={mediaClientConfig}
|
|
787
|
+
columns={columns}
|
|
788
|
+
itemsPerPage={6}
|
|
789
|
+
totalItems={10}
|
|
790
|
+
isLoading={false}
|
|
791
|
+
/>
|
|
792
|
+
```
|
|
678
793
|
|
|
679
794
|
### Minor Changes
|
|
680
795
|
|
|
681
|
-
-
|
|
682
|
-
|
|
796
|
+
- [`07952b96f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07952b96f8) - Add
|
|
797
|
+
support for isLoading, pageNumber, onSetPage, and onSort props
|
|
798
|
+
- [`07952b96f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07952b96f8) - Add
|
|
799
|
+
support for pageNumber, itemsPerPage and totalItems props
|
|
683
800
|
|
|
684
801
|
## 1.1.0
|
|
685
802
|
|
|
686
803
|
### Minor Changes
|
|
687
804
|
|
|
688
|
-
-
|
|
805
|
+
- [#2137](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2137)
|
|
806
|
+
[`2c36ac5f82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c36ac5f82) - NOISSUE
|
|
807
|
+
Add es2019 module to media-table package.json
|
|
689
808
|
|
|
690
809
|
### Patch Changes
|
|
691
810
|
|
|
692
|
-
-
|
|
693
|
-
|
|
811
|
+
- [`98f462e2aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/98f462e2aa) - Bumping
|
|
812
|
+
use the latest version of @atlaskit/spinner
|
|
813
|
+
- Updated dependencies
|