@atlaskit/media-picker 70.0.6 → 70.0.8
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 +12 -44
- package/compass.yml +7 -14
- package/dist/cjs/service/uploadServiceImpl.js +4 -0
- package/dist/es2019/service/uploadServiceImpl.js +3 -0
- package/dist/esm/service/uploadServiceImpl.js +3 -0
- package/example-helpers/NativeMediaViewer.tsx +3 -3
- package/example-helpers/stylesWrapper.tsx +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/media-picker
|
|
2
2
|
|
|
3
|
+
## 70.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 70.0.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 70.0.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1953,7 +1965,6 @@
|
|
|
1953
1965
|
|
|
1954
1966
|
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
1955
1967
|
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
1956
|
-
|
|
1957
1968
|
- @atlaskit/docs@8.3.2
|
|
1958
1969
|
- @atlaskit/analytics-next@6.3.5
|
|
1959
1970
|
- @atlaskit/button@13.3.7
|
|
@@ -2364,7 +2375,6 @@
|
|
|
2364
2375
|
> remove deprecated "context" property from media components in favor of "mediaClientConfig"
|
|
2365
2376
|
|
|
2366
2377
|
This affects all public media UI components:
|
|
2367
|
-
|
|
2368
2378
|
- Card
|
|
2369
2379
|
- Filmstrip
|
|
2370
2380
|
- SmartMediaEditor
|
|
@@ -2609,7 +2619,6 @@ https://product-fabric.atlassian.net/browse/FM-2393
|
|
|
2609
2619
|
- Fixed bug where editor crashes after unmounting react component.
|
|
2610
2620
|
- https://product-fabric.atlassian.net/browse/ED-7318
|
|
2611
2621
|
- Fixed bug where custom emojis are not been showed on the editor
|
|
2612
|
-
|
|
2613
2622
|
- https://product-fabric.atlassian.net/browse/ED-7726
|
|
2614
2623
|
|
|
2615
2624
|
- [patch][3addfe526a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3addfe526a):
|
|
@@ -3236,7 +3245,6 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3236
3245
|
## 42.0.2
|
|
3237
3246
|
|
|
3238
3247
|
- [patch][168df43047](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/168df43047):
|
|
3239
|
-
|
|
3240
3248
|
- Fix clipboard component deactivation logic when used in multiple contexts.
|
|
3241
3249
|
|
|
3242
3250
|
## 42.0.1
|
|
@@ -3254,7 +3262,6 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3254
3262
|
## 42.0.0
|
|
3255
3263
|
|
|
3256
3264
|
- [major][59cce82fd1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/59cce82fd1):
|
|
3257
|
-
|
|
3258
3265
|
- Remove Binary component from MediaPicker
|
|
3259
3266
|
|
|
3260
3267
|
If you want to upload a file (string or blob) to media, you should instead use
|
|
@@ -3277,13 +3284,11 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3277
3284
|
## 41.0.1
|
|
3278
3285
|
|
|
3279
3286
|
- [patch][5cfa2ddf93](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5cfa2ddf93):
|
|
3280
|
-
|
|
3281
3287
|
- add clipboard support to MediaPicker
|
|
3282
3288
|
|
|
3283
3289
|
## 41.0.0
|
|
3284
3290
|
|
|
3285
3291
|
- [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
3286
|
-
|
|
3287
3292
|
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
|
|
3288
3293
|
this package, please ensure you use at least this version of react and react-dom.
|
|
3289
3294
|
|
|
@@ -3314,7 +3319,6 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3314
3319
|
## 40.0.0
|
|
3315
3320
|
|
|
3316
3321
|
- [patch][6ffa3eaae9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6ffa3eaae9):
|
|
3317
|
-
|
|
3318
3322
|
- Emit file-added events in the tenant context
|
|
3319
3323
|
|
|
3320
3324
|
- Updated dependencies
|
|
@@ -3360,7 +3364,6 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3360
3364
|
## 38.1.5
|
|
3361
3365
|
|
|
3362
3366
|
- [patch][3f28e6443c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f28e6443c):
|
|
3363
|
-
|
|
3364
3367
|
- @atlaskit/analytics-next-types is deprecated. Now you can use types for @atlaskit/analytics-next
|
|
3365
3368
|
supplied from itself.
|
|
3366
3369
|
|
|
@@ -3391,7 +3394,6 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3391
3394
|
## 38.1.3
|
|
3392
3395
|
|
|
3393
3396
|
- [patch][0ff405bd0f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0ff405bd0f):
|
|
3394
|
-
|
|
3395
3397
|
- Removed CardView and CardViewLoader from public APIs and replaced it with light-weight and
|
|
3396
3398
|
stateless CardLoading and CardError components. Handling of external images is now done by Card
|
|
3397
3399
|
component itself using ExternalImageIdentifier interface.
|
|
@@ -3436,19 +3438,16 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3436
3438
|
## 38.1.2
|
|
3437
3439
|
|
|
3438
3440
|
- [patch][d13fad66df](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13fad66df):
|
|
3439
|
-
|
|
3440
3441
|
- Enable esModuleInterop for typescript, this allows correct use of default exports
|
|
3441
3442
|
|
|
3442
3443
|
## 38.1.1
|
|
3443
3444
|
|
|
3444
3445
|
- [patch][60a89f843f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/60a89f843f):
|
|
3445
|
-
|
|
3446
3446
|
- cleanup DOM elements on teardown and deactivate
|
|
3447
3447
|
|
|
3448
3448
|
## 38.1.0
|
|
3449
3449
|
|
|
3450
3450
|
- [minor][e36f791fd6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e36f791fd6):
|
|
3451
|
-
|
|
3452
3451
|
- Improve types
|
|
3453
3452
|
|
|
3454
3453
|
## 38.0.0
|
|
@@ -3476,19 +3475,16 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3476
3475
|
## 37.0.2
|
|
3477
3476
|
|
|
3478
3477
|
- [patch][b3c60e3c9c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b3c60e3c9c):
|
|
3479
|
-
|
|
3480
3478
|
- Update media-editor dependency
|
|
3481
3479
|
|
|
3482
3480
|
## 37.0.1
|
|
3483
3481
|
|
|
3484
3482
|
- [patch][1bcaa1b991](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1bcaa1b991):
|
|
3485
|
-
|
|
3486
3483
|
- Add npmignore for index.ts to prevent some jest tests from resolving that instead of index.js
|
|
3487
3484
|
|
|
3488
3485
|
## 37.0.0
|
|
3489
3486
|
|
|
3490
3487
|
- [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
|
|
3491
|
-
|
|
3492
3488
|
- Dropped ES5 distributables from the typescript packages
|
|
3493
3489
|
|
|
3494
3490
|
- Updated dependencies
|
|
@@ -3530,7 +3526,6 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3530
3526
|
## 35.0.2
|
|
3531
3527
|
|
|
3532
3528
|
- [patch][ff3f40bc38](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ff3f40bc38):
|
|
3533
|
-
|
|
3534
3529
|
- Fix remove from cache function, which fixes issue when user is deleting recent image in media
|
|
3535
3530
|
picker
|
|
3536
3531
|
|
|
@@ -3563,7 +3558,6 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3563
3558
|
## 35.0.0
|
|
3564
3559
|
|
|
3565
3560
|
- [patch][6bd4c428e2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6bd4c428e2):
|
|
3566
|
-
|
|
3567
3561
|
- load image preview as soon representation is present instead of waiting for file status to be
|
|
3568
3562
|
processed
|
|
3569
3563
|
|
|
@@ -3579,13 +3573,11 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3579
3573
|
## 34.1.0
|
|
3580
3574
|
|
|
3581
3575
|
- [minor][f1b46bcb42](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f1b46bcb42):
|
|
3582
|
-
|
|
3583
3576
|
- ED-6259 Enable stricter types for media packages
|
|
3584
3577
|
|
|
3585
3578
|
## 34.0.0
|
|
3586
3579
|
|
|
3587
3580
|
- [patch][2e676676ba](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2e676676ba):
|
|
3588
|
-
|
|
3589
3581
|
- Use Identifier from media-core instead of media-card
|
|
3590
3582
|
|
|
3591
3583
|
- Updated dependencies
|
|
@@ -3633,19 +3625,16 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3633
3625
|
## 33.0.1
|
|
3634
3626
|
|
|
3635
3627
|
- [patch][ef469cbb0b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ef469cbb0b):
|
|
3636
|
-
|
|
3637
3628
|
- MS-357 replaced @atlaskit/util-shared-styles from media components by @atlaskit/theme
|
|
3638
3629
|
|
|
3639
3630
|
## 33.0.0
|
|
3640
3631
|
|
|
3641
3632
|
- [major][65b73cc466](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/65b73cc466):
|
|
3642
|
-
|
|
3643
3633
|
- Code split media-picker: make MediaPicker factory async and make editor use it
|
|
3644
3634
|
|
|
3645
3635
|
## 32.0.1
|
|
3646
3636
|
|
|
3647
3637
|
- [patch][6ead14f4eb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6ead14f4eb):
|
|
3648
|
-
|
|
3649
3638
|
- Move Async module loading of EditorView into media-editor component.
|
|
3650
3639
|
|
|
3651
3640
|
- Updated dependencies
|
|
@@ -3655,11 +3644,9 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3655
3644
|
## 32.0.0
|
|
3656
3645
|
|
|
3657
3646
|
- [minor][4e82fedc90](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4e82fedc90):
|
|
3658
|
-
|
|
3659
3647
|
- Expose real id upfront for remote files in MediaPicker
|
|
3660
3648
|
|
|
3661
3649
|
- [major][9d881f1eb8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d881f1eb8):
|
|
3662
|
-
|
|
3663
3650
|
- Use real id upfront for remote files + remove PublicMediaFile interface + now integrators can
|
|
3664
3651
|
just use file.id from public events
|
|
3665
3652
|
|
|
@@ -3675,7 +3662,6 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3675
3662
|
## 31.0.2
|
|
3676
3663
|
|
|
3677
3664
|
- [patch][07a187bb30](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/07a187bb30):
|
|
3678
|
-
|
|
3679
3665
|
- Fetch cloud accounts only on cloud folder opening
|
|
3680
3666
|
|
|
3681
3667
|
## 31.0.1
|
|
@@ -3710,7 +3696,6 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3710
3696
|
## 30.0.0
|
|
3711
3697
|
|
|
3712
3698
|
- [patch][6da174b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6da174b):
|
|
3713
|
-
|
|
3714
3699
|
- Implementation of MediaEditor is partially moved to media-editor
|
|
3715
3700
|
|
|
3716
3701
|
- Updated dependencies [dadef80](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dadef80):
|
|
@@ -3727,25 +3712,21 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3727
3712
|
## 29.0.3
|
|
3728
3713
|
|
|
3729
3714
|
- [patch][e6516fb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e6516fb):
|
|
3730
|
-
|
|
3731
3715
|
- Move media mocks into right location to prevent them to be included in dist
|
|
3732
3716
|
|
|
3733
3717
|
## 29.0.2
|
|
3734
3718
|
|
|
3735
3719
|
- [patch][a55e4e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a55e4e6):
|
|
3736
|
-
|
|
3737
3720
|
- Remove Axios dependency from media-picker
|
|
3738
3721
|
|
|
3739
3722
|
## 29.0.1
|
|
3740
3723
|
|
|
3741
3724
|
- [patch][c91adfe](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c91adfe):
|
|
3742
|
-
|
|
3743
3725
|
- remove customVideoPlayer featureFlag prop and enable by default
|
|
3744
3726
|
|
|
3745
3727
|
## 29.0.0
|
|
3746
3728
|
|
|
3747
3729
|
- [patch][cbb8cb5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cbb8cb5):
|
|
3748
|
-
|
|
3749
3730
|
- Remove redundant fileStreamCache createKey() method and replace the cache key with id everywhere
|
|
3750
3731
|
|
|
3751
3732
|
- Updated dependencies [cbb8cb5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cbb8cb5):
|
|
@@ -3768,20 +3749,17 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3768
3749
|
## 27.0.5
|
|
3769
3750
|
|
|
3770
3751
|
- [patch][8314694](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8314694):
|
|
3771
|
-
|
|
3772
3752
|
- Support uploading + processing files in MediaViewer
|
|
3773
3753
|
|
|
3774
3754
|
## 27.0.4
|
|
3775
3755
|
|
|
3776
3756
|
- [patch][442821a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/442821a):
|
|
3777
|
-
|
|
3778
3757
|
- Fix the issue with being unable to save image inserted into the editor: pass collection to
|
|
3779
3758
|
tenant auth for file polling
|
|
3780
3759
|
|
|
3781
3760
|
## 27.0.3
|
|
3782
3761
|
|
|
3783
3762
|
- [patch][b677631](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b677631):
|
|
3784
|
-
|
|
3785
3763
|
- Add new example and ensure occurrenceKey is set for all copy/withToken calls
|
|
3786
3764
|
|
|
3787
3765
|
## 27.0.2
|
|
@@ -3795,13 +3773,11 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3795
3773
|
## 27.0.1
|
|
3796
3774
|
|
|
3797
3775
|
- [patch][ca16fa9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ca16fa9):
|
|
3798
|
-
|
|
3799
3776
|
- Add SSR support to media components
|
|
3800
3777
|
|
|
3801
3778
|
## 27.0.0
|
|
3802
3779
|
|
|
3803
3780
|
- [major][6cb6696](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6cb6696):
|
|
3804
|
-
|
|
3805
3781
|
- All file ids returned in any of the triggered events (including syncronouse one like
|
|
3806
3782
|
uploads-start) are real file IDs and not a temp. one;
|
|
3807
3783
|
|
|
@@ -3825,14 +3801,12 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3825
3801
|
## 25.0.8
|
|
3826
3802
|
|
|
3827
3803
|
- [patch][ff8b31d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ff8b31d):
|
|
3828
|
-
|
|
3829
3804
|
- Pass uploadParams to createStore when initializing MediaPicker popup. This fixes an issue when
|
|
3830
3805
|
calling /copy/withToken endpoint
|
|
3831
3806
|
|
|
3832
3807
|
## 25.0.7
|
|
3833
3808
|
|
|
3834
3809
|
- [patch][5f12909](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5f12909):
|
|
3835
|
-
|
|
3836
3810
|
- remove tenant property from MediaPicker + make show() faster
|
|
3837
3811
|
|
|
3838
3812
|
## 25.0.6
|
|
@@ -3858,7 +3832,6 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3858
3832
|
## 25.0.5
|
|
3859
3833
|
|
|
3860
3834
|
- [patch][92a6240](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/92a6240):
|
|
3861
|
-
|
|
3862
3835
|
- Picking video file will now send dimensions same way as image would
|
|
3863
3836
|
|
|
3864
3837
|
## 25.0.4
|
|
@@ -3905,13 +3878,11 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3905
3878
|
## 25.0.1
|
|
3906
3879
|
|
|
3907
3880
|
- [patch][b9d9e9a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b9d9e9a):
|
|
3908
|
-
|
|
3909
3881
|
- Support advanced i18n mode in MediaPicker
|
|
3910
3882
|
|
|
3911
3883
|
## 25.0.0
|
|
3912
3884
|
|
|
3913
3885
|
- [minor][801fd18](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/801fd18):
|
|
3914
|
-
|
|
3915
3886
|
- Ability to delete file from recents has been added; MediaFile now has optional fields
|
|
3916
3887
|
userUpfrontId and userOccurrenceKey;
|
|
3917
3888
|
|
|
@@ -3924,11 +3895,9 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
3924
3895
|
## 24.0.1
|
|
3925
3896
|
|
|
3926
3897
|
- [patch][e151c1a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e151c1a):
|
|
3927
|
-
|
|
3928
3898
|
- Removes dependency on @atlaskit/layer-manager
|
|
3929
3899
|
|
|
3930
3900
|
As of component versions:
|
|
3931
|
-
|
|
3932
3901
|
- \`@atlaskit/modal-dialog@7.0.0\`
|
|
3933
3902
|
- \`@atlaskit/tooltip@12.0.2\`
|
|
3934
3903
|
- \`@atlaskit/flag@9.0.6\`
|
|
@@ -4458,7 +4427,6 @@ https://product-fabric.atlassian.net/browse/MS-1942
|
|
|
4458
4427
|
|
|
4459
4428
|
- [patch] Updated dependencies
|
|
4460
4429
|
[9d20f54](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d20f54)
|
|
4461
|
-
|
|
4462
4430
|
- @atlaskit/spinner@7.0.0
|
|
4463
4431
|
- @atlaskit/media-card@29.1.0
|
|
4464
4432
|
- @atlaskit/modal-dialog@5.1.0
|
package/compass.yml
CHANGED
|
@@ -3,26 +3,19 @@ id: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3
|
|
|
3
3
|
description: Library for handling file uploads
|
|
4
4
|
configVersion: 1
|
|
5
5
|
typeId: UI_ELEMENT
|
|
6
|
-
ownerId: 'ari:cloud:teams::team/
|
|
6
|
+
ownerId: 'ari:cloud:teams::team/3bee892f-cb1b-496c-b866-0f08d9e0296c'
|
|
7
7
|
fields:
|
|
8
8
|
lifecycle: Active
|
|
9
9
|
tier: 4
|
|
10
10
|
labels:
|
|
11
11
|
- atlassian-platform
|
|
12
|
-
customFields:
|
|
13
|
-
- name: Dev Owner
|
|
14
|
-
type: user
|
|
15
|
-
value: null
|
|
16
|
-
- name: Product
|
|
17
|
-
type: text
|
|
18
|
-
value: null
|
|
19
|
-
- name: Test
|
|
20
|
-
type: text
|
|
21
|
-
value: null
|
|
22
12
|
links:
|
|
13
|
+
- name: Root Repository
|
|
14
|
+
type: REPOSITORY
|
|
15
|
+
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
|
|
23
16
|
- name: ''
|
|
24
17
|
type: REPOSITORY
|
|
25
|
-
url: 'https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/media/media-picker/'
|
|
18
|
+
url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/media/media-picker/'
|
|
26
19
|
- name: ''
|
|
27
20
|
type: DOCUMENT
|
|
28
21
|
url: 'https://atlaskit.atlassian.com/packages/media/media-picker'
|
|
@@ -34,13 +27,13 @@ links:
|
|
|
34
27
|
url: 'https://atlassian.signalfx.com/#/dashboard/E-vk3wqAwAA?groupId=E-vkzo1AwAA&configId=E-vk5fsAwAA&startTime=-7d&endTime=Now'
|
|
35
28
|
- name: ''
|
|
36
29
|
type: CHAT_CHANNEL
|
|
37
|
-
url: 'https://atlassian.slack.com/archives/
|
|
30
|
+
url: 'https://atlassian.slack.com/archives/C05J5GNHPLN'
|
|
38
31
|
- name: ''
|
|
39
32
|
type: ON_CALL
|
|
40
33
|
url: 'https://atlassian.app.opsgenie.com/settings/schedule/detail/b62291ff-4029-4f26-b7fc-d75d46d7aebc'
|
|
41
34
|
- name: ''
|
|
42
35
|
type: PROJECT
|
|
43
|
-
url: 'https://product-fabric.atlassian.net/jira/software/c/projects/
|
|
36
|
+
url: 'https://product-fabric.atlassian.net/jira/software/c/projects/BMPT/boards/5090'
|
|
44
37
|
relationships:
|
|
45
38
|
DEPENDS_ON:
|
|
46
39
|
- 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/652381b6-c323-4b50-bf31-c94941a0b6ef'
|
|
@@ -18,6 +18,8 @@ var _getPreviewFromImage = require("../util/getPreviewFromImage");
|
|
|
18
18
|
var _types = require("../service/types");
|
|
19
19
|
var _getPreviewFromBlob = require("../util/getPreviewFromBlob");
|
|
20
20
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
21
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
22
|
+
|
|
21
23
|
var generateTraceContext = function generateTraceContext() {
|
|
22
24
|
return {
|
|
23
25
|
traceId: (0, _mediaCommon.getRandomTelemetryId)()
|
|
@@ -205,7 +207,9 @@ var UploadServiceImpl = exports.UploadServiceImpl = /*#__PURE__*/function () {
|
|
|
205
207
|
for (i = 0; i < files.length; i++) {
|
|
206
208
|
_files$i = files[i], replaceFileId = _files$i.replaceFileId, file = _files$i.file;
|
|
207
209
|
touchFileDescriptors.push({
|
|
210
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
208
211
|
fileId: replaceFileId || (0, _v.default)(),
|
|
212
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
209
213
|
occurrenceKey: (0, _v.default)(),
|
|
210
214
|
collection: collection,
|
|
211
215
|
size: file.size,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
2
3
|
import uuidV4 from 'uuid/v4';
|
|
3
4
|
import { UploadController, globalMediaEventEmitter, RequestError } from '@atlaskit/media-client';
|
|
4
5
|
import { RECENTS_COLLECTION } from '@atlaskit/media-client/constants';
|
|
@@ -133,7 +134,9 @@ export class UploadServiceImpl {
|
|
|
133
134
|
file
|
|
134
135
|
} = files[i];
|
|
135
136
|
touchFileDescriptors.push({
|
|
137
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
136
138
|
fileId: replaceFileId || uuidV4(),
|
|
139
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
137
140
|
occurrenceKey: uuidV4(),
|
|
138
141
|
collection,
|
|
139
142
|
size: file.size,
|
|
@@ -3,6 +3,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
6
7
|
import uuidV4 from 'uuid/v4';
|
|
7
8
|
import { UploadController, globalMediaEventEmitter, RequestError } from '@atlaskit/media-client';
|
|
8
9
|
import { RECENTS_COLLECTION } from '@atlaskit/media-client/constants';
|
|
@@ -198,7 +199,9 @@ export var UploadServiceImpl = /*#__PURE__*/function () {
|
|
|
198
199
|
for (i = 0; i < files.length; i++) {
|
|
199
200
|
_files$i = files[i], replaceFileId = _files$i.replaceFileId, file = _files$i.file;
|
|
200
201
|
touchFileDescriptors.push({
|
|
202
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
201
203
|
fileId: replaceFileId || uuidV4(),
|
|
204
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
202
205
|
occurrenceKey: uuidV4(),
|
|
203
206
|
collection: collection,
|
|
204
207
|
size: file.size,
|
|
@@ -73,13 +73,13 @@ export const NativeMediaViewer = ({ id, mediaClient }: NativeMediaViewerProps) =
|
|
|
73
73
|
|
|
74
74
|
switch (mediaType) {
|
|
75
75
|
case 'image':
|
|
76
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop,
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlassian/a11y/alt-text -- Ignored via go/DSP-18766
|
|
77
77
|
return <img style={{ width: '100%' }} src={url} />;
|
|
78
78
|
case 'video':
|
|
79
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop,
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlassian/a11y/media-has-caption -- Ignored via go/DSP-18766
|
|
80
80
|
return <video style={{ width: '100%' }} src={url} />;
|
|
81
81
|
case 'audio':
|
|
82
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop,
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlassian/a11y/media-has-caption -- Ignored via go/DSP-18766
|
|
83
83
|
return <audio style={{ width: '100%' }} src={url} />;
|
|
84
84
|
case 'doc':
|
|
85
85
|
return (
|
|
@@ -102,6 +102,6 @@ type PastedImageProps = {
|
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
export const PastedImage = ({ src, style, title }: PastedImageProps) => {
|
|
105
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values,
|
|
105
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlassian/a11y/alt-text -- Ignored via go/DSP-18766
|
|
106
106
|
return <img src={src} title={title} css={pastedImageStyles(style)} />;
|
|
107
107
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-picker",
|
|
3
|
-
"version": "70.0.
|
|
3
|
+
"version": "70.0.8",
|
|
4
4
|
"description": "Library for handling file uploads",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
33
|
-
"@atlaskit/flag": "^17.
|
|
34
|
-
"@atlaskit/icon": "^28.
|
|
35
|
-
"@atlaskit/media-client": "^35.
|
|
33
|
+
"@atlaskit/flag": "^17.5.0",
|
|
34
|
+
"@atlaskit/icon": "^28.5.0",
|
|
35
|
+
"@atlaskit/media-client": "^35.5.0",
|
|
36
36
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
37
37
|
"@atlaskit/media-common": "^12.3.0",
|
|
38
|
-
"@atlaskit/media-ui": "^28.
|
|
38
|
+
"@atlaskit/media-ui": "^28.7.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
40
|
"@atlaskit/theme": "^21.0.0",
|
|
41
|
-
"@atlaskit/tokens": "^
|
|
41
|
+
"@atlaskit/tokens": "^8.0.0",
|
|
42
42
|
"@atlaskit/ufo": "^0.4.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"eventemitter2": "^4.1.0",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@atlaskit/analytics-listeners": "^9.
|
|
58
|
-
"@atlaskit/analytics-namespaced-context": "^7.
|
|
59
|
-
"@atlaskit/button": "^23.
|
|
57
|
+
"@atlaskit/analytics-listeners": "^9.1.0",
|
|
58
|
+
"@atlaskit/analytics-namespaced-context": "^7.1.0",
|
|
59
|
+
"@atlaskit/button": "^23.6.0",
|
|
60
60
|
"@atlaskit/media-core": "^37.0.0",
|
|
61
61
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
62
62
|
"@atlaskit/ssr": "workspace:^",
|