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