@atlaskit/media-table 15.0.9 → 15.0.11

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,5 +1,18 @@
1
1
  # @atlaskit/media-table
2
2
 
3
+ ## 15.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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.
8
+ - Updated dependencies
9
+
10
+ ## 15.0.10
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 15.0.9
4
17
 
5
18
  ### Patch Changes
@@ -16,19 +29,19 @@
16
29
 
17
30
  ### Patch Changes
18
31
 
19
- - [`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt out of peer dependency enforcement
32
+ - [#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
20
33
 
21
34
  ## 15.0.6
22
35
 
23
36
  ### Patch Changes
24
37
 
25
- - [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
38
+ - [#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
26
39
 
27
40
  ## 15.0.5
28
41
 
29
42
  ### Patch Changes
30
43
 
31
- - [`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.
44
+ - [#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.
32
45
 
33
46
  ## 15.0.4
34
47
 
@@ -40,7 +53,7 @@
40
53
 
41
54
  ### Patch Changes
42
55
 
43
- - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
56
+ - [#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
44
57
  - Updated dependencies
45
58
 
46
59
  ## 15.0.2
@@ -53,14 +66,14 @@
53
66
 
54
67
  ### Patch Changes
55
68
 
56
- - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
69
+ - [#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`
57
70
  - Updated dependencies
58
71
 
59
72
  ## 15.0.0
60
73
 
61
74
  ### Minor Changes
62
75
 
63
- - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
76
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
64
77
 
65
78
  ### Patch Changes
66
79
 
@@ -76,7 +89,7 @@
76
89
 
77
90
  ### Patch Changes
78
91
 
79
- - [`c3eba8c788d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c3eba8c788d) - Updates Media Viewer input data object
92
+ - [#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
80
93
  - Updated dependencies
81
94
 
82
95
  ## 14.1.5
@@ -113,7 +126,7 @@
113
126
 
114
127
  ### Minor Changes
115
128
 
116
- - [`2c1a0c45a0b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c1a0c45a0b) - [ux] Instrumented `@atlaskit/media-table` with the new theming package, `@atlaskit/tokens`.
129
+ - [#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`.
117
130
 
118
131
  New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
119
132
  These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
@@ -127,7 +140,7 @@
127
140
 
128
141
  ### Major Changes
129
142
 
130
- - [`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
143
+ - [#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
131
144
 
132
145
  ### Minor Changes
133
146
 
@@ -142,21 +155,21 @@
142
155
 
143
156
  ### Patch Changes
144
157
 
145
- - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
158
+ - [#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`
146
159
  - Updated dependencies
147
160
 
148
161
  ## 13.0.1
149
162
 
150
163
  ### Patch Changes
151
164
 
152
- - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
165
+ - [#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`.
153
166
  - Updated dependencies
154
167
 
155
168
  ## 13.0.0
156
169
 
157
170
  ### Major Changes
158
171
 
159
- - [`af775dcb785`](https://bitbucket.org/atlassian/atlassian-frontend/commits/af775dcb785) - [MEX-1034] Migrated from styled-components library to @emotion/react in @atlaskit/media-table
172
+ - [#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
160
173
 
161
174
  ### Patch Changes
162
175
 
@@ -178,14 +191,14 @@
178
191
 
179
192
  ### Patch Changes
180
193
 
181
- - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
194
+ - [#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
182
195
  - Updated dependencies
183
196
 
184
197
  ## 11.0.0
185
198
 
186
199
  ### Minor Changes
187
200
 
188
- - [`f862d5ae7aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f862d5ae7aa) - remove RxJs peer dependency
201
+ - [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`f862d5ae7aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f862d5ae7aa) - remove RxJs peer dependency
189
202
  - [`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).
190
203
  It exposes subscribe method that is called with MediaObserver as an argument and returns MediaSubscription.
191
204
  MediaSubscription exposes unsubscribe method.
@@ -276,7 +289,7 @@
276
289
 
277
290
  ### Patch Changes
278
291
 
279
- - [`6a5dc78b511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a5dc78b511) - Remove dateformat from media packages
292
+ - [#19261](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19261) [`6a5dc78b511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a5dc78b511) - Remove dateformat from media packages
280
293
 
281
294
  ## 10.0.1
282
295
 
@@ -288,7 +301,7 @@
288
301
 
289
302
  ### Major Changes
290
303
 
291
- - [`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
304
+ - [#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
292
305
 
293
306
  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.
294
307
  Why change was made: As part of a coordinated upgrade effort across AF packages, as react-intl v2 is quite dated.
@@ -334,7 +347,7 @@
334
347
 
335
348
  ### Patch Changes
336
349
 
337
- - [`b85e7ce12cd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b85e7ce12cd) - Internal upgrade of memoize-one to 6.0.0
350
+ - [#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
338
351
 
339
352
  ## 9.0.2
340
353
 
@@ -346,7 +359,7 @@
346
359
 
347
360
  ### Patch Changes
348
361
 
349
- - [`b90c0237824`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b90c0237824) - Update package.jsons to remove unused dependencies.
362
+ - [#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.
350
363
  - Updated dependencies
351
364
 
352
365
  ## 9.0.0
@@ -359,14 +372,14 @@
359
372
 
360
373
  ### Patch Changes
361
374
 
362
- - [`3cd9ee2d15b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3cd9ee2d15b) - Added RxJS compatiblity notice in Media docs
375
+ - [#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
363
376
  - Updated dependencies
364
377
 
365
378
  ## 8.0.6
366
379
 
367
380
  ### Patch Changes
368
381
 
369
- - [`153f5588cab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/153f5588cab) - VULN-328572 - Upgrade dateformat to address security vuln
382
+ - [#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
370
383
 
371
384
  ## 8.0.5
372
385
 
@@ -390,14 +403,14 @@
390
403
 
391
404
  ### Patch Changes
392
405
 
393
- - [`6d0d354481`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6d0d354481) - BENTO-7803 Prevent download button from opening the media preview
406
+ - [#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
394
407
  - Updated dependencies
395
408
 
396
409
  ## 8.0.1
397
410
 
398
411
  ### Patch Changes
399
412
 
400
- - [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
413
+ - [#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
401
414
  - Updated dependencies
402
415
 
403
416
  ## 8.0.0
@@ -410,7 +423,7 @@
410
423
 
411
424
  ### Major Changes
412
425
 
413
- - [`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
426
+ - [#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
414
427
 
415
428
  ### Patch Changes
416
429
 
@@ -421,7 +434,7 @@
421
434
 
422
435
  ### Patch Changes
423
436
 
424
- - [`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.
437
+ - [#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.
425
438
  This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
426
439
  Also add `typescript` to `devDependencies` to denote version that the package was built with.
427
440
  - Updated dependencies
@@ -436,7 +449,7 @@
436
449
 
437
450
  ### Minor Changes
438
451
 
439
- - [`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated to declarative entry points
452
+ - [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749) [`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated to declarative entry points
440
453
 
441
454
  ### Patch Changes
442
455
 
@@ -452,7 +465,7 @@
452
465
 
453
466
  ### Patch Changes
454
467
 
455
- - [`a7eb47bc69`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a7eb47bc69) - Add analytic channel to download button analyticsEvent
468
+ - [#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
456
469
  - [`92094dd855`](https://bitbucket.org/atlassian/atlassian-frontend/commits/92094dd855) - Remove faulty import in mediaTable
457
470
  - [`9254b203f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9254b203f9) - Removing unused code to be published
458
471
  - Updated dependencies
@@ -461,7 +474,7 @@
461
474
 
462
475
  ### Patch Changes
463
476
 
464
- - [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
477
+ - [#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
465
478
 
466
479
  Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
467
480
  to prevent duplicates of tslib being bundled.
@@ -470,7 +483,7 @@
470
483
 
471
484
  ### Minor Changes
472
485
 
473
- - [`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.
486
+ - [#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.
474
487
  - [`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.
475
488
  - [`6c3c26f10c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c3c26f10c) - Add fixed width to download button column in media-table
476
489
 
@@ -484,13 +497,13 @@
484
497
 
485
498
  ### Patch Changes
486
499
 
487
- - [`ff9c75810c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff9c75810c) - Remove faulty import in mediaTable
500
+ - [#3892](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3892) [`ff9c75810c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff9c75810c) - Remove faulty import in mediaTable
488
501
 
489
502
  ## 5.1.0
490
503
 
491
504
  ### Minor Changes
492
505
 
493
- - [`0934ad8798`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0934ad8798) - Add onPreviewOpen and onPreviewClose props
506
+ - [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`0934ad8798`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0934ad8798) - Add onPreviewOpen and onPreviewClose props
494
507
  - [`6cf40e50ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6cf40e50ea) - Add UI analyticsEvent to individual row download button and table row click
495
508
  - [`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.
496
509
 
@@ -498,7 +511,7 @@
498
511
 
499
512
  ### Major Changes
500
513
 
501
- - [`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.
514
+ - [#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.
502
515
  For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
503
516
 
504
517
  ### Patch Changes
@@ -509,7 +522,7 @@
509
522
 
510
523
  ### Major Changes
511
524
 
512
- - [`198b19dcc7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/198b19dcc7) - Refactor items to take a FileIdentifier instead of string id
525
+ - [#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
513
526
 
514
527
  ### Minor Changes
515
528
 
@@ -524,14 +537,14 @@
524
537
 
525
538
  ### Patch Changes
526
539
 
527
- - [`51aa5587ef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/51aa5587ef) - bump media-client: Remove stack traces from media analytic events
540
+ - [#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
528
541
  - Updated dependencies
529
542
 
530
543
  ## 3.0.0
531
544
 
532
545
  ### Major Changes
533
546
 
534
- - [`4af9cf854d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4af9cf854d) - Refactor items to take a FileIdentifier instead of string id
547
+ - [#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
535
548
  Add i18n support to media-table
536
549
  Expose sortKey and sortOrder as props. Add props documentation
537
550
  Add isFixedSize to DynamicTableStateless prop
@@ -541,7 +554,7 @@
541
554
 
542
555
  ### Major Changes
543
556
 
544
- - [`07952b96f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07952b96f8) - - New implementation of MediaTable with upgraded API
557
+ - [#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
545
558
 
546
559
  **New API Requirements**
547
560
 
@@ -642,7 +655,7 @@
642
655
 
643
656
  ### Minor Changes
644
657
 
645
- - [`2c36ac5f82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c36ac5f82) - NOISSUE Add es2019 module to media-table package.json
658
+ - [#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
646
659
 
647
660
  ### Patch Changes
648
661
 
@@ -50,5 +50,4 @@ var MediaDownloadButton = function MediaDownloadButton(props) {
50
50
  }
51
51
  });
52
52
  };
53
- var _default = (0, _reactIntlNext.injectIntl)(MediaDownloadButton);
54
- exports.default = _default;
53
+ var _default = exports.default = (0, _reactIntlNext.injectIntl)(MediaDownloadButton);
@@ -21,6 +21,7 @@ var _reactDom = _interopRequireDefault(require("react-dom"));
21
21
  var _reactIntlNext = require("react-intl-next");
22
22
  var _dynamicTable = require("@atlaskit/dynamic-table");
23
23
  var _mediaClient = require("@atlaskit/media-client");
24
+ var _mediaClientReact = require("@atlaskit/media-client-react");
24
25
  var _mediaViewer = require("@atlaskit/media-viewer");
25
26
  var _styles = require("./styles");
26
27
  var _downloadButton = _interopRequireDefault(require("./downloadButton"));
@@ -33,7 +34,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
33
34
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
34
35
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
35
36
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /**@jsx jsx */ // eslint-disable-next-line import/no-extraneous-dependencies
36
- var MediaTable = /*#__PURE__*/function (_Component) {
37
+ var MediaTable = exports.MediaTable = /*#__PURE__*/function (_Component) {
37
38
  (0, _inherits2.default)(MediaTable, _Component);
38
39
  var _super = _createSuper(MediaTable);
39
40
  function MediaTable() {
@@ -294,8 +295,6 @@ var MediaTable = /*#__PURE__*/function (_Component) {
294
295
  }]);
295
296
  return MediaTable;
296
297
  }(_react2.Component);
297
- exports.MediaTable = MediaTable;
298
- var _default = (0, _mediaClient.withMediaClient)((0, _analyticsNext.withAnalyticsEvents)()((0, _reactIntlNext.injectIntl)(MediaTable, {
298
+ var _default = exports.default = (0, _mediaClientReact.withMediaClient)((0, _analyticsNext.withAnalyticsEvents)()((0, _reactIntlNext.injectIntl)(MediaTable, {
299
299
  enforceContext: false
300
- })));
301
- exports.default = _default;
300
+ })));
@@ -14,7 +14,7 @@ var _mediaTypeIcon = require("@atlaskit/media-ui/media-type-icon");
14
14
  var _styles = require("./styles");
15
15
  var _excluded = ["mediaType", "text"];
16
16
  /**@jsx jsx */
17
- var NameCell = function NameCell(props) {
17
+ var NameCell = exports.NameCell = function NameCell(props) {
18
18
  var mediaType = props.mediaType,
19
19
  text = props.text,
20
20
  rest = (0, _objectWithoutProperties2.default)(props, _excluded);
@@ -29,5 +29,4 @@ var NameCell = function NameCell(props) {
29
29
  }, (0, _react.jsx)(_truncateText.Truncate, (0, _extends2.default)({
30
30
  text: text
31
31
  }, rest)))));
32
- };
33
- exports.NameCell = NameCell;
32
+ };
@@ -46,5 +46,4 @@ var MediaPreviewButton = function MediaPreviewButton(props) {
46
46
  }
47
47
  });
48
48
  };
49
- var _default = (0, _reactIntlNext.injectIntl)(MediaPreviewButton);
50
- exports.default = _default;
49
+ var _default = exports.default = (0, _reactIntlNext.injectIntl)(MediaPreviewButton);
@@ -8,9 +8,6 @@ exports.truncateWrapperStyles = exports.nameCellWrapperStyles = exports.mediaTab
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _templateObject, _templateObject2, _templateObject3;
11
- var nameCellWrapperStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-content: center;\n align-items: center;\n"])));
12
- exports.nameCellWrapperStyles = nameCellWrapperStyles;
13
- var truncateWrapperStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n min-width: 0;\n width: 100%;\n margin-left: ", ";\n\n span:first-of-type {\n &::first-letter {\n text-transform: capitalize;\n }\n }\n"])), "var(--ds-space-050, 4px)");
14
- exports.truncateWrapperStyles = truncateWrapperStyles;
15
- var mediaTableWrapperStyles = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n tr {\n cursor: pointer;\n\n td:empty {\n padding: 0;\n }\n }\n"])));
16
- exports.mediaTableWrapperStyles = mediaTableWrapperStyles;
11
+ var nameCellWrapperStyles = exports.nameCellWrapperStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-content: center;\n align-items: center;\n"])));
12
+ var truncateWrapperStyles = exports.truncateWrapperStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n min-width: 0;\n width: 100%;\n margin-left: ", ";\n\n span:first-of-type {\n &::first-letter {\n text-transform: capitalize;\n }\n }\n"])), "var(--ds-space-050, 4px)");
13
+ var mediaTableWrapperStyles = exports.mediaTableWrapperStyles = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n tr {\n cursor: pointer;\n\n td:empty {\n padding: 0;\n }\n }\n"])));
@@ -4,9 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CELL_KEY_PREVIEW = exports.CELL_KEY_DOWNLOAD = exports.ANALYTICS_MEDIA_CHANNEL = void 0;
7
- var CELL_KEY_DOWNLOAD = 'download';
8
- exports.CELL_KEY_DOWNLOAD = CELL_KEY_DOWNLOAD;
9
- var CELL_KEY_PREVIEW = 'preview';
10
- exports.CELL_KEY_PREVIEW = CELL_KEY_PREVIEW;
11
- var ANALYTICS_MEDIA_CHANNEL = 'media';
12
- exports.ANALYTICS_MEDIA_CHANNEL = ANALYTICS_MEDIA_CHANNEL;
7
+ var CELL_KEY_DOWNLOAD = exports.CELL_KEY_DOWNLOAD = 'download';
8
+ var CELL_KEY_PREVIEW = exports.CELL_KEY_PREVIEW = 'preview';
9
+ var ANALYTICS_MEDIA_CHANNEL = exports.ANALYTICS_MEDIA_CHANNEL = 'media';
@@ -21,5 +21,4 @@ var generateHeadValues = (0, _memoizeOne.default)(function (columns) {
21
21
  })
22
22
  };
23
23
  });
24
- var _default = (0, _memoizeOne.default)(generateHeadValues);
25
- exports.default = _default;
24
+ var _default = exports.default = (0, _memoizeOne.default)(generateHeadValues);
@@ -21,7 +21,7 @@ function generateEmptyRows(emptyCells, length) {
21
21
  };
22
22
  });
23
23
  }
24
- var generateEmptyRow = (0, _memoizeOne.default)(function (headerCells) {
24
+ var generateEmptyRow = exports.generateEmptyRow = (0, _memoizeOne.default)(function (headerCells) {
25
25
  return headerCells.map(function (cell) {
26
26
  return {
27
27
  key: cell.key,
@@ -29,16 +29,14 @@ var generateEmptyRow = (0, _memoizeOne.default)(function (headerCells) {
29
29
  };
30
30
  });
31
31
  });
32
- exports.generateEmptyRow = generateEmptyRow;
33
- var prependRows = (0, _memoizeOne.default)(function (emptyCells, itemsPerPage, pageNumber) {
32
+ var prependRows = exports.prependRows = (0, _memoizeOne.default)(function (emptyCells, itemsPerPage, pageNumber) {
34
33
  if (!itemsPerPage || !pageNumber) {
35
34
  return [];
36
35
  }
37
36
  var itemsCount = (pageNumber - 1) * itemsPerPage;
38
37
  return generateEmptyRows(emptyCells, itemsCount);
39
38
  });
40
- exports.prependRows = prependRows;
41
- var appendRows = (0, _memoizeOne.default)(function (emptyCells, rowsLength, itemsPerPage, pageNumber, totalItems) {
39
+ var appendRows = exports.appendRows = (0, _memoizeOne.default)(function (emptyCells, rowsLength, itemsPerPage, pageNumber, totalItems) {
42
40
  if (!itemsPerPage || !pageNumber || !totalItems) {
43
41
  return [];
44
42
  }
@@ -46,7 +44,6 @@ var appendRows = (0, _memoizeOne.default)(function (emptyCells, rowsLength, item
46
44
  var itemsCount = (Math.ceil(totalItems / itemsPerPage) - pageNumber) * itemsPerPage - rowsDiff;
47
45
  return generateEmptyRows(emptyCells, itemsCount);
48
46
  });
49
- exports.appendRows = appendRows;
50
47
  function generateRowValues(_ref) {
51
48
  var itemsPerPage = _ref.itemsPerPage,
52
49
  pageNumber = _ref.pageNumber,
@@ -41,5 +41,4 @@ var getValidTableProps = function getValidTableProps(itemsCount, itemsPerPage, p
41
41
  validItemsPerPage: validItemsPerPage
42
42
  };
43
43
  };
44
- var _default = (0, _memoizeOne.default)(getValidTableProps);
45
- exports.default = _default;
44
+ var _default = exports.default = (0, _memoizeOne.default)(getValidTableProps);
@@ -6,7 +6,8 @@ import ReactDOM from 'react-dom';
6
6
  // eslint-disable-next-line import/no-extraneous-dependencies
7
7
  import { IntlProvider, injectIntl } from 'react-intl-next';
8
8
  import { DynamicTableStateless } from '@atlaskit/dynamic-table';
9
- import { isFileIdentifier, withMediaClient, isProcessedFileState } from '@atlaskit/media-client';
9
+ import { isFileIdentifier, isProcessedFileState } from '@atlaskit/media-client';
10
+ import { withMediaClient } from '@atlaskit/media-client-react';
10
11
  import { MediaViewer } from '@atlaskit/media-viewer';
11
12
  import { mediaTableWrapperStyles } from './styles';
12
13
  import DownloadButton from './downloadButton';
@@ -18,7 +18,8 @@ import ReactDOM from 'react-dom';
18
18
  // eslint-disable-next-line import/no-extraneous-dependencies
19
19
  import { IntlProvider, injectIntl } from 'react-intl-next';
20
20
  import { DynamicTableStateless } from '@atlaskit/dynamic-table';
21
- import { isFileIdentifier, withMediaClient, isProcessedFileState } from '@atlaskit/media-client';
21
+ import { isFileIdentifier, isProcessedFileState } from '@atlaskit/media-client';
22
+ import { withMediaClient } from '@atlaskit/media-client-react';
22
23
  import { MediaViewer } from '@atlaskit/media-viewer';
23
24
  import { mediaTableWrapperStyles } from './styles';
24
25
  import DownloadButton from './downloadButton';
@@ -24,5 +24,5 @@ export declare class MediaTable extends Component<MediaTableProps & WrappedCompo
24
24
  private renderMediaViewer;
25
25
  render(): jsx.JSX.Element;
26
26
  }
27
- declare const _default: React.ComponentType<import("@atlaskit/media-client").WithMediaClientConfigProps<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<MediaTableProps & WrappedComponentProps<"intl">>>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>>;
27
+ declare const _default: React.ComponentType<import("@atlaskit/media-client-react").WithMediaClientConfigProps<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<MediaTableProps & WrappedComponentProps<"intl">>>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>>;
28
28
  export default _default;
@@ -24,5 +24,5 @@ export declare class MediaTable extends Component<MediaTableProps & WrappedCompo
24
24
  private renderMediaViewer;
25
25
  render(): jsx.JSX.Element;
26
26
  }
27
- declare const _default: React.ComponentType<import("@atlaskit/media-client").WithMediaClientConfigProps<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<MediaTableProps & WrappedComponentProps<"intl">>>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>>;
27
+ declare const _default: React.ComponentType<import("@atlaskit/media-client-react").WithMediaClientConfigProps<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<MediaTableProps & WrappedComponentProps<"intl">>>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>>;
28
28
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-table",
3
- "version": "15.0.9",
3
+ "version": "15.0.11",
4
4
  "description": "Table UI component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,14 +35,15 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@atlaskit/analytics-next": "^9.1.0",
38
- "@atlaskit/button": "^16.9.0",
38
+ "@atlaskit/button": "^16.11.0",
39
39
  "@atlaskit/dynamic-table": "^14.11.0",
40
40
  "@atlaskit/icon": "^21.12.0",
41
- "@atlaskit/media-client": "^24.0.0",
42
- "@atlaskit/media-ui": "^24.0.0",
43
- "@atlaskit/media-viewer": "^48.0.0",
41
+ "@atlaskit/media-client": "^25.0.0",
42
+ "@atlaskit/media-client-react": "^1.3.0",
43
+ "@atlaskit/media-ui": "^25.0.0",
44
+ "@atlaskit/media-viewer": "^48.1.0",
44
45
  "@atlaskit/theme": "^12.6.0",
45
- "@atlaskit/tokens": "^1.20.0",
46
+ "@atlaskit/tokens": "^1.28.0",
46
47
  "@atlaskit/tooltip": "^17.8.0",
47
48
  "@babel/runtime": "^7.0.0",
48
49
  "memoize-one": "^6.0.0"
package/report.api.md CHANGED
@@ -28,7 +28,7 @@ import { SortOrderType } from '@atlaskit/dynamic-table/types';
28
28
  import { TruncateProps } from '@atlaskit/media-ui/truncateText';
29
29
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
30
30
  import { WithIntlProps } from 'react-intl-next';
31
- import { WithMediaClientConfigProps } from '@atlaskit/media-client';
31
+ import { WithMediaClientConfigProps } from '@atlaskit/media-client-react';
32
32
  import { WrappedComponentProps } from 'react-intl-next';
33
33
 
34
34
  // @public (undocumented)
@@ -17,7 +17,7 @@ import { SortOrderType } from '@atlaskit/dynamic-table/types';
17
17
  import { TruncateProps } from '@atlaskit/media-ui/truncateText';
18
18
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
19
19
  import { WithIntlProps } from 'react-intl-next';
20
- import { WithMediaClientConfigProps } from '@atlaskit/media-client';
20
+ import { WithMediaClientConfigProps } from '@atlaskit/media-client-react';
21
21
  import { WrappedComponentProps } from 'react-intl-next';
22
22
 
23
23
  // @public (undocumented)