@atlaskit/media-table 15.0.18 → 15.0.20

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