@atlaskit/media-table 15.0.10 → 15.0.12

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.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 15.0.11
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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.
14
+ - Updated dependencies
15
+
3
16
  ## 15.0.10
4
17
 
5
18
  ### Patch Changes
@@ -22,19 +35,19 @@
22
35
 
23
36
  ### Patch Changes
24
37
 
25
- - [`b9355830504`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9355830504) - Opt out of peer dependency enforcement
38
+ - [#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
26
39
 
27
40
  ## 15.0.6
28
41
 
29
42
  ### Patch Changes
30
43
 
31
- - [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
44
+ - [#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
32
45
 
33
46
  ## 15.0.5
34
47
 
35
48
  ### Patch Changes
36
49
 
37
- - [`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.
50
+ - [#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.
38
51
 
39
52
  ## 15.0.4
40
53
 
@@ -46,7 +59,7 @@
46
59
 
47
60
  ### Patch Changes
48
61
 
49
- - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
62
+ - [#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
50
63
  - Updated dependencies
51
64
 
52
65
  ## 15.0.2
@@ -59,14 +72,14 @@
59
72
 
60
73
  ### Patch Changes
61
74
 
62
- - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
75
+ - [#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`
63
76
  - Updated dependencies
64
77
 
65
78
  ## 15.0.0
66
79
 
67
80
  ### Minor Changes
68
81
 
69
- - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
82
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
70
83
 
71
84
  ### Patch Changes
72
85
 
@@ -82,7 +95,7 @@
82
95
 
83
96
  ### Patch Changes
84
97
 
85
- - [`c3eba8c788d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c3eba8c788d) - Updates Media Viewer input data object
98
+ - [#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
86
99
  - Updated dependencies
87
100
 
88
101
  ## 14.1.5
@@ -119,7 +132,7 @@
119
132
 
120
133
  ### Minor Changes
121
134
 
122
- - [`2c1a0c45a0b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c1a0c45a0b) - [ux] Instrumented `@atlaskit/media-table` with the new theming package, `@atlaskit/tokens`.
135
+ - [#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`.
123
136
 
124
137
  New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
125
138
  These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
@@ -133,7 +146,7 @@
133
146
 
134
147
  ### Major Changes
135
148
 
136
- - [`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
149
+ - [#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
137
150
 
138
151
  ### Minor Changes
139
152
 
@@ -148,21 +161,21 @@
148
161
 
149
162
  ### Patch Changes
150
163
 
151
- - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
164
+ - [#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`
152
165
  - Updated dependencies
153
166
 
154
167
  ## 13.0.1
155
168
 
156
169
  ### Patch Changes
157
170
 
158
- - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
171
+ - [#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`.
159
172
  - Updated dependencies
160
173
 
161
174
  ## 13.0.0
162
175
 
163
176
  ### Major Changes
164
177
 
165
- - [`af775dcb785`](https://bitbucket.org/atlassian/atlassian-frontend/commits/af775dcb785) - [MEX-1034] Migrated from styled-components library to @emotion/react in @atlaskit/media-table
178
+ - [#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
166
179
 
167
180
  ### Patch Changes
168
181
 
@@ -184,14 +197,14 @@
184
197
 
185
198
  ### Patch Changes
186
199
 
187
- - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
200
+ - [#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
188
201
  - Updated dependencies
189
202
 
190
203
  ## 11.0.0
191
204
 
192
205
  ### Minor Changes
193
206
 
194
- - [`f862d5ae7aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f862d5ae7aa) - remove RxJs peer dependency
207
+ - [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`f862d5ae7aa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f862d5ae7aa) - remove RxJs peer dependency
195
208
  - [`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).
196
209
  It exposes subscribe method that is called with MediaObserver as an argument and returns MediaSubscription.
197
210
  MediaSubscription exposes unsubscribe method.
@@ -282,7 +295,7 @@
282
295
 
283
296
  ### Patch Changes
284
297
 
285
- - [`6a5dc78b511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a5dc78b511) - Remove dateformat from media packages
298
+ - [#19261](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19261) [`6a5dc78b511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a5dc78b511) - Remove dateformat from media packages
286
299
 
287
300
  ## 10.0.1
288
301
 
@@ -294,7 +307,7 @@
294
307
 
295
308
  ### Major Changes
296
309
 
297
- - [`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
310
+ - [#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
298
311
 
299
312
  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.
300
313
  Why change was made: As part of a coordinated upgrade effort across AF packages, as react-intl v2 is quite dated.
@@ -340,7 +353,7 @@
340
353
 
341
354
  ### Patch Changes
342
355
 
343
- - [`b85e7ce12cd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b85e7ce12cd) - Internal upgrade of memoize-one to 6.0.0
356
+ - [#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
344
357
 
345
358
  ## 9.0.2
346
359
 
@@ -352,7 +365,7 @@
352
365
 
353
366
  ### Patch Changes
354
367
 
355
- - [`b90c0237824`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b90c0237824) - Update package.jsons to remove unused dependencies.
368
+ - [#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.
356
369
  - Updated dependencies
357
370
 
358
371
  ## 9.0.0
@@ -365,14 +378,14 @@
365
378
 
366
379
  ### Patch Changes
367
380
 
368
- - [`3cd9ee2d15b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3cd9ee2d15b) - Added RxJS compatiblity notice in Media docs
381
+ - [#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
369
382
  - Updated dependencies
370
383
 
371
384
  ## 8.0.6
372
385
 
373
386
  ### Patch Changes
374
387
 
375
- - [`153f5588cab`](https://bitbucket.org/atlassian/atlassian-frontend/commits/153f5588cab) - VULN-328572 - Upgrade dateformat to address security vuln
388
+ - [#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
376
389
 
377
390
  ## 8.0.5
378
391
 
@@ -396,14 +409,14 @@
396
409
 
397
410
  ### Patch Changes
398
411
 
399
- - [`6d0d354481`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6d0d354481) - BENTO-7803 Prevent download button from opening the media preview
412
+ - [#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
400
413
  - Updated dependencies
401
414
 
402
415
  ## 8.0.1
403
416
 
404
417
  ### Patch Changes
405
418
 
406
- - [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
419
+ - [#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
407
420
  - Updated dependencies
408
421
 
409
422
  ## 8.0.0
@@ -416,7 +429,7 @@
416
429
 
417
430
  ### Major Changes
418
431
 
419
- - [`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
432
+ - [#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
420
433
 
421
434
  ### Patch Changes
422
435
 
@@ -427,7 +440,7 @@
427
440
 
428
441
  ### Patch Changes
429
442
 
430
- - [`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.
443
+ - [#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.
431
444
  This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
432
445
  Also add `typescript` to `devDependencies` to denote version that the package was built with.
433
446
  - Updated dependencies
@@ -442,7 +455,7 @@
442
455
 
443
456
  ### Minor Changes
444
457
 
445
- - [`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated to declarative entry points
458
+ - [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749) [`7d831363d9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d831363d9) - Migrated to declarative entry points
446
459
 
447
460
  ### Patch Changes
448
461
 
@@ -458,7 +471,7 @@
458
471
 
459
472
  ### Patch Changes
460
473
 
461
- - [`a7eb47bc69`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a7eb47bc69) - Add analytic channel to download button analyticsEvent
474
+ - [#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
462
475
  - [`92094dd855`](https://bitbucket.org/atlassian/atlassian-frontend/commits/92094dd855) - Remove faulty import in mediaTable
463
476
  - [`9254b203f9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9254b203f9) - Removing unused code to be published
464
477
  - Updated dependencies
@@ -467,7 +480,7 @@
467
480
 
468
481
  ### Patch Changes
469
482
 
470
- - [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
483
+ - [#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
471
484
 
472
485
  Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
473
486
  to prevent duplicates of tslib being bundled.
@@ -476,7 +489,7 @@
476
489
 
477
490
  ### Minor Changes
478
491
 
479
- - [`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.
492
+ - [#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.
480
493
  - [`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.
481
494
  - [`6c3c26f10c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c3c26f10c) - Add fixed width to download button column in media-table
482
495
 
@@ -490,13 +503,13 @@
490
503
 
491
504
  ### Patch Changes
492
505
 
493
- - [`ff9c75810c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff9c75810c) - Remove faulty import in mediaTable
506
+ - [#3892](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3892) [`ff9c75810c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff9c75810c) - Remove faulty import in mediaTable
494
507
 
495
508
  ## 5.1.0
496
509
 
497
510
  ### Minor Changes
498
511
 
499
- - [`0934ad8798`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0934ad8798) - Add onPreviewOpen and onPreviewClose props
512
+ - [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`0934ad8798`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0934ad8798) - Add onPreviewOpen and onPreviewClose props
500
513
  - [`6cf40e50ea`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6cf40e50ea) - Add UI analyticsEvent to individual row download button and table row click
501
514
  - [`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.
502
515
 
@@ -504,7 +517,7 @@
504
517
 
505
518
  ### Major Changes
506
519
 
507
- - [`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.
520
+ - [#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.
508
521
  For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
509
522
 
510
523
  ### Patch Changes
@@ -515,7 +528,7 @@
515
528
 
516
529
  ### Major Changes
517
530
 
518
- - [`198b19dcc7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/198b19dcc7) - Refactor items to take a FileIdentifier instead of string id
531
+ - [#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
519
532
 
520
533
  ### Minor Changes
521
534
 
@@ -530,14 +543,14 @@
530
543
 
531
544
  ### Patch Changes
532
545
 
533
- - [`51aa5587ef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/51aa5587ef) - bump media-client: Remove stack traces from media analytic events
546
+ - [#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
534
547
  - Updated dependencies
535
548
 
536
549
  ## 3.0.0
537
550
 
538
551
  ### Major Changes
539
552
 
540
- - [`4af9cf854d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4af9cf854d) - Refactor items to take a FileIdentifier instead of string id
553
+ - [#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
541
554
  Add i18n support to media-table
542
555
  Expose sortKey and sortOrder as props. Add props documentation
543
556
  Add isFixedSize to DynamicTableStateless prop
@@ -547,7 +560,7 @@
547
560
 
548
561
  ### Major Changes
549
562
 
550
- - [`07952b96f8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/07952b96f8) - - New implementation of MediaTable with upgraded API
563
+ - [#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
551
564
 
552
565
  **New API Requirements**
553
566
 
@@ -648,7 +661,7 @@
648
661
 
649
662
  ### Minor Changes
650
663
 
651
- - [`2c36ac5f82`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2c36ac5f82) - NOISSUE Add es2019 module to media-table package.json
664
+ - [#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
652
665
 
653
666
  ### Patch Changes
654
667
 
@@ -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.10",
3
+ "version": "15.0.12",
4
4
  "description": "Table UI component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -35,15 +35,16 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@atlaskit/analytics-next": "^9.1.0",
38
- "@atlaskit/button": "^16.10.0",
38
+ "@atlaskit/button": "^16.16.0",
39
39
  "@atlaskit/dynamic-table": "^14.11.0",
40
40
  "@atlaskit/icon": "^21.12.0",
41
- "@atlaskit/media-client": "^24.0.0",
41
+ "@atlaskit/media-client": "^25.0.0",
42
+ "@atlaskit/media-client-react": "^1.4.0",
42
43
  "@atlaskit/media-ui": "^25.0.0",
43
- "@atlaskit/media-viewer": "^48.0.0",
44
+ "@atlaskit/media-viewer": "^48.2.0",
44
45
  "@atlaskit/theme": "^12.6.0",
45
- "@atlaskit/tokens": "^1.22.0",
46
- "@atlaskit/tooltip": "^17.8.0",
46
+ "@atlaskit/tokens": "^1.28.0",
47
+ "@atlaskit/tooltip": "^18.0.0",
47
48
  "@babel/runtime": "^7.0.0",
48
49
  "memoize-one": "^6.0.0"
49
50
  },
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)