@atlaskit/media-card 79.5.12 → 79.5.14
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 +15 -55
- package/compass.yml +1 -11
- package/dist/cjs/card/inlinePlayerWrapper-emotion.js +1 -1
- package/dist/cjs/card/ui/actionsBar/actionsBarWrapper-emotion.js +1 -1
- package/dist/cjs/card/ui/imageRenderer/imageRendererV2.js +1 -0
- package/dist/cjs/card/ui/titleBox/titleBox.js +0 -1
- package/dist/cjs/card/ui/unhandledErrorCard/unhandledErrorCard-emotion.js +1 -1
- package/dist/cjs/card/ui/wrapper/wrapper-compiled.compiled.css +0 -2
- package/dist/cjs/card/ui/wrapper/wrapper-compiled.js +5 -7
- package/dist/cjs/card/ui/wrapper/wrapper-emotion.js +4 -2
- package/dist/es2019/card/inlinePlayerWrapper-emotion.js +1 -1
- package/dist/es2019/card/ui/actionsBar/actionsBarWrapper-emotion.js +1 -1
- package/dist/es2019/card/ui/imageRenderer/imageRendererV2.js +1 -0
- package/dist/es2019/card/ui/titleBox/titleBox.js +0 -1
- package/dist/es2019/card/ui/unhandledErrorCard/unhandledErrorCard-emotion.js +1 -1
- package/dist/es2019/card/ui/wrapper/wrapper-compiled.compiled.css +0 -2
- package/dist/es2019/card/ui/wrapper/wrapper-compiled.js +5 -6
- package/dist/es2019/card/ui/wrapper/wrapper-emotion.js +4 -2
- package/dist/esm/card/inlinePlayerWrapper-emotion.js +1 -1
- package/dist/esm/card/ui/actionsBar/actionsBarWrapper-emotion.js +1 -1
- package/dist/esm/card/ui/imageRenderer/imageRendererV2.js +1 -0
- package/dist/esm/card/ui/titleBox/titleBox.js +0 -1
- package/dist/esm/card/ui/unhandledErrorCard/unhandledErrorCard-emotion.js +1 -1
- package/dist/esm/card/ui/wrapper/wrapper-compiled.compiled.css +0 -2
- package/dist/esm/card/ui/wrapper/wrapper-compiled.js +5 -7
- package/dist/esm/card/ui/wrapper/wrapper-emotion.js +4 -2
- package/dist/types/types.d.ts +1 -0
- package/dist/types-ts4.5/types.d.ts +1 -0
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/media-card
|
|
2
2
|
|
|
3
|
+
## 79.5.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`eec573b4a7a6a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/eec573b4a7a6a) -
|
|
8
|
+
Moving the cursor styles from class based to inline styles to avoid VC offense and removing hidden
|
|
9
|
+
Titlebox hack implemented previously for VC removal
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 79.5.13
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 79.5.12
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -921,7 +936,6 @@
|
|
|
921
936
|
- [#141583](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141583)
|
|
922
937
|
[`ba6def6b9d3ce`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ba6def6b9d3ce) -
|
|
923
938
|
Updated Media card and UI to avoid contributing to TTVC metrics
|
|
924
|
-
|
|
925
939
|
- Media card will always render the `img`, even while it is still loading (in that case, the `img`
|
|
926
940
|
will just be hidden). It will also use a custom loading spinner with no interaction context.
|
|
927
941
|
- Media image will allow a null value for the image source. It will also always render the `img`
|
|
@@ -3014,7 +3028,6 @@
|
|
|
3014
3028
|
- [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749)
|
|
3015
3029
|
[`ae50a98f18`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ae50a98f18) - ED-9125
|
|
3016
3030
|
ED-8837 Update styles for selected media cards
|
|
3017
|
-
|
|
3018
3031
|
- Use editor selection styles from @atlaskit/editor-shared-styles
|
|
3019
3032
|
- Update UI for selected items in media group to no longer set blue background and tick in corner
|
|
3020
3033
|
- No longer set set text selection over filename, filesize etc. for media group cards when
|
|
@@ -3616,7 +3629,6 @@
|
|
|
3616
3629
|
|
|
3617
3630
|
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
3618
3631
|
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
3619
|
-
|
|
3620
3632
|
- @atlaskit/docs@8.3.2
|
|
3621
3633
|
- @atlaskit/analytics-next@6.3.5
|
|
3622
3634
|
- @atlaskit/button@13.3.7
|
|
@@ -3801,7 +3813,6 @@
|
|
|
3801
3813
|
|
|
3802
3814
|
ED-4359 fix focus being reset on remove mediagroup- Updated dependencies
|
|
3803
3815
|
[768bac6d81](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/768bac6d81):
|
|
3804
|
-
|
|
3805
3816
|
- @atlaskit/analytics-next@6.3.2
|
|
3806
3817
|
|
|
3807
3818
|
## 66.1.0
|
|
@@ -3906,7 +3917,6 @@
|
|
|
3906
3917
|
> remove deprecated "context" property from media components in favor of "mediaClientConfig"
|
|
3907
3918
|
|
|
3908
3919
|
This affects all public media UI components:
|
|
3909
|
-
|
|
3910
3920
|
- Card
|
|
3911
3921
|
- Filmstrip
|
|
3912
3922
|
- SmartMediaEditor
|
|
@@ -4410,7 +4420,6 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4410
4420
|
### Patch Changes
|
|
4411
4421
|
|
|
4412
4422
|
- [patch][0a313cd541](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a313cd541):
|
|
4413
|
-
|
|
4414
4423
|
- rename AsyncCardState
|
|
4415
4424
|
|
|
4416
4425
|
## 63.1.2
|
|
@@ -4426,14 +4435,12 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4426
4435
|
## 63.1.1
|
|
4427
4436
|
|
|
4428
4437
|
- [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
|
|
4429
|
-
|
|
4430
4438
|
- This is just a safety release in case anything strange happened in in the previous one. See Pull
|
|
4431
4439
|
Request #5942 for details
|
|
4432
4440
|
|
|
4433
4441
|
## 63.1.0
|
|
4434
4442
|
|
|
4435
4443
|
- [minor][a02cbd46c0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a02cbd46c0):
|
|
4436
|
-
|
|
4437
4444
|
- Now you can provide `MediaClientConfig` as `mediaClientConfig` prop to a Card as an alternative
|
|
4438
4445
|
to Context. This is preferential, since Context prop will be dropped very soon.
|
|
4439
4446
|
|
|
@@ -4452,13 +4459,11 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4452
4459
|
## 63.0.4
|
|
4453
4460
|
|
|
4454
4461
|
- [patch][b91590107b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b91590107b):
|
|
4455
|
-
|
|
4456
4462
|
- ED-6178 Fix media wrapper having a transparent background for images
|
|
4457
4463
|
|
|
4458
4464
|
## 63.0.3
|
|
4459
4465
|
|
|
4460
4466
|
- [patch][a6f27f106a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a6f27f106a):
|
|
4461
|
-
|
|
4462
4467
|
- use componentDidMount in CardLoader to make it SSR hydrate friendly
|
|
4463
4468
|
|
|
4464
4469
|
## 63.0.2
|
|
@@ -4474,13 +4479,11 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4474
4479
|
## 63.0.1
|
|
4475
4480
|
|
|
4476
4481
|
- [patch][cbc9ff5b6a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cbc9ff5b6a):
|
|
4477
|
-
|
|
4478
4482
|
- Fix support for exif orientation when dropping a picture
|
|
4479
4483
|
|
|
4480
4484
|
## 63.0.0
|
|
4481
4485
|
|
|
4482
4486
|
- [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
|
|
4483
|
-
|
|
4484
4487
|
- Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
|
|
4485
4488
|
this package, please ensure you use at least this version of react and react-dom.
|
|
4486
4489
|
|
|
@@ -4525,19 +4528,16 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4525
4528
|
## 60.0.6
|
|
4526
4529
|
|
|
4527
4530
|
- [patch][d3cad2622e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d3cad2622e):
|
|
4528
|
-
|
|
4529
4531
|
- Removes babel-runtime in favour of @babel/runtime
|
|
4530
4532
|
|
|
4531
4533
|
## 60.0.5
|
|
4532
4534
|
|
|
4533
4535
|
- [patch][8f17450f46](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8f17450f46):
|
|
4534
|
-
|
|
4535
4536
|
- Fix media-card code split from 82kB to 10kB
|
|
4536
4537
|
|
|
4537
4538
|
## 60.0.4
|
|
4538
4539
|
|
|
4539
4540
|
- [patch][0a4ccaafae](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0a4ccaafae):
|
|
4540
|
-
|
|
4541
4541
|
- Bump tslib
|
|
4542
4542
|
|
|
4543
4543
|
## 60.0.3
|
|
@@ -4561,7 +4561,6 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4561
4561
|
## 60.0.2
|
|
4562
4562
|
|
|
4563
4563
|
- [patch][3f28e6443c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f28e6443c):
|
|
4564
|
-
|
|
4565
4564
|
- @atlaskit/analytics-next-types is deprecated. Now you can use types for @atlaskit/analytics-next
|
|
4566
4565
|
supplied from itself.
|
|
4567
4566
|
|
|
@@ -4589,7 +4588,6 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4589
4588
|
## 60.0.0
|
|
4590
4589
|
|
|
4591
4590
|
- [major][0ff405bd0f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0ff405bd0f):
|
|
4592
|
-
|
|
4593
4591
|
- Removed CardView and CardViewLoader from public APIs and replaced it with light-weight and
|
|
4594
4592
|
stateless CardLoading and CardError components. Handling of external images is now done by Card
|
|
4595
4593
|
component itself using ExternalImageIdentifier interface.
|
|
@@ -4634,13 +4632,11 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4634
4632
|
## 59.1.1
|
|
4635
4633
|
|
|
4636
4634
|
- [patch][d13fad66df](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13fad66df):
|
|
4637
|
-
|
|
4638
4635
|
- Enable esModuleInterop for typescript, this allows correct use of default exports
|
|
4639
4636
|
|
|
4640
4637
|
## 59.1.0
|
|
4641
4638
|
|
|
4642
4639
|
- [minor][e1c1fa454a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e1c1fa454a):
|
|
4643
|
-
|
|
4644
4640
|
- Support external image identifier in MediaViewer
|
|
4645
4641
|
|
|
4646
4642
|
## 59.0.0
|
|
@@ -4655,37 +4651,31 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4655
4651
|
## 58.0.1
|
|
4656
4652
|
|
|
4657
4653
|
- [patch][106d046114](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/106d046114):
|
|
4658
|
-
|
|
4659
4654
|
- Fix issue with media-viewer opening in CC on inline video player controlls clicked
|
|
4660
4655
|
|
|
4661
4656
|
## 58.0.0
|
|
4662
4657
|
|
|
4663
4658
|
- [major][9c316bd8aa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9c316bd8aa):
|
|
4664
|
-
|
|
4665
4659
|
- Exported MediaImage component is removed from media-card and moved to @atlaskit/media-ui
|
|
4666
4660
|
|
|
4667
4661
|
## 57.0.3
|
|
4668
4662
|
|
|
4669
4663
|
- [patch][d402fdb775](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d402fdb775):
|
|
4670
|
-
|
|
4671
4664
|
- FIX ED-6584: Keep card dataURI regardless of previus state
|
|
4672
4665
|
|
|
4673
4666
|
## 57.0.2
|
|
4674
4667
|
|
|
4675
4668
|
- [patch][1bcaa1b991](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1bcaa1b991):
|
|
4676
|
-
|
|
4677
4669
|
- Add npmignore for index.ts to prevent some jest tests from resolving that instead of index.js
|
|
4678
4670
|
|
|
4679
4671
|
## 57.0.1
|
|
4680
4672
|
|
|
4681
4673
|
- [patch][9192df506a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9192df506a):
|
|
4682
|
-
|
|
4683
4674
|
- Do not call given onClick if it's a video file and inline video player is enabled
|
|
4684
4675
|
|
|
4685
4676
|
## 57.0.0
|
|
4686
4677
|
|
|
4687
4678
|
- [major][9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
|
|
4688
|
-
|
|
4689
4679
|
- Dropped ES5 distributables from the typescript packages
|
|
4690
4680
|
|
|
4691
4681
|
- Updated dependencies
|
|
@@ -4721,14 +4711,12 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4721
4711
|
## 55.0.4
|
|
4722
4712
|
|
|
4723
4713
|
- [patch][ff3f40bc38](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ff3f40bc38):
|
|
4724
|
-
|
|
4725
4714
|
- Fix remove from cache function, which fixes issue when user is deleting recent image in media
|
|
4726
4715
|
picker
|
|
4727
4716
|
|
|
4728
4717
|
## 55.0.3
|
|
4729
4718
|
|
|
4730
4719
|
- [patch][3591859b2f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3591859b2f):
|
|
4731
|
-
|
|
4732
4720
|
- use ReactDOM.createPortal to render MediaViewer when shouldOpenMediaViewer=true
|
|
4733
4721
|
|
|
4734
4722
|
## 55.0.2
|
|
@@ -4756,13 +4744,11 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4756
4744
|
## 55.0.1
|
|
4757
4745
|
|
|
4758
4746
|
- [patch][d18b085e2a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d18b085e2a):
|
|
4759
|
-
|
|
4760
4747
|
- Integrating truly upfront ID
|
|
4761
4748
|
|
|
4762
4749
|
## 55.0.0
|
|
4763
4750
|
|
|
4764
4751
|
- [patch][6bd4c428e2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6bd4c428e2):
|
|
4765
|
-
|
|
4766
4752
|
- load image preview as soon representation is present instead of waiting for file status to be
|
|
4767
4753
|
processed
|
|
4768
4754
|
|
|
@@ -4775,14 +4761,12 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4775
4761
|
## 54.1.0
|
|
4776
4762
|
|
|
4777
4763
|
- [minor][eda74c4dce](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/eda74c4dce):
|
|
4778
|
-
|
|
4779
4764
|
- Add shouldOpenMediaViewer + mediaViewerDataSource optional props to Card api to simplify
|
|
4780
4765
|
MediaViewer integration
|
|
4781
4766
|
|
|
4782
4767
|
## 54.0.0
|
|
4783
4768
|
|
|
4784
4769
|
- [major][190c4b7bd3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/190c4b7bd3):
|
|
4785
|
-
|
|
4786
4770
|
- Remove Identifier type + related utilities and use the one from media-core
|
|
4787
4771
|
|
|
4788
4772
|
- Updated dependencies
|
|
@@ -4794,26 +4778,22 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4794
4778
|
## 53.0.0
|
|
4795
4779
|
|
|
4796
4780
|
- [major][46dfcfbeca](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/46dfcfbeca):
|
|
4797
|
-
|
|
4798
4781
|
- remove Link support from media-card
|
|
4799
4782
|
|
|
4800
4783
|
## 52.0.7
|
|
4801
4784
|
|
|
4802
4785
|
- [patch][ab6ba14cd3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ab6ba14cd3):
|
|
4803
|
-
|
|
4804
4786
|
- Fix a bug where droping image with EXIF orientation >= 5 end up screwing up proportions for some
|
|
4805
4787
|
of the cases
|
|
4806
4788
|
|
|
4807
4789
|
## 52.0.6
|
|
4808
4790
|
|
|
4809
4791
|
- [patch][05c5bf7a93](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/05c5bf7a93):
|
|
4810
|
-
|
|
4811
4792
|
- Dont user pointer cursor for external images in Cards
|
|
4812
4793
|
|
|
4813
4794
|
## 52.0.5
|
|
4814
4795
|
|
|
4815
4796
|
- [patch][c415876da9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c415876da9):
|
|
4816
|
-
|
|
4817
4797
|
- add selected state to InlinePlayer in media-card
|
|
4818
4798
|
|
|
4819
4799
|
## 52.0.4
|
|
@@ -4826,19 +4806,16 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4826
4806
|
## 52.0.3
|
|
4827
4807
|
|
|
4828
4808
|
- [patch][ef469cbb0b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ef469cbb0b):
|
|
4829
|
-
|
|
4830
4809
|
- MS-357 replaced @atlaskit/util-shared-styles from media components by @atlaskit/theme
|
|
4831
4810
|
|
|
4832
4811
|
## 52.0.2
|
|
4833
4812
|
|
|
4834
4813
|
- [patch][0e164e542a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0e164e542a):
|
|
4835
|
-
|
|
4836
4814
|
- MS-1465: Dont fetch file preview if we already have a local one
|
|
4837
4815
|
|
|
4838
4816
|
## 52.0.1
|
|
4839
4817
|
|
|
4840
4818
|
- [patch][1d3e336534](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1d3e336534):
|
|
4841
|
-
|
|
4842
4819
|
- Show progress bar while file is uploading
|
|
4843
4820
|
|
|
4844
4821
|
## 52.0.0
|
|
@@ -4852,7 +4829,6 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4852
4829
|
## 51.0.3
|
|
4853
4830
|
|
|
4854
4831
|
- [patch][a3f8e527aa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a3f8e527aa):
|
|
4855
|
-
|
|
4856
4832
|
- Take into account if image is on it's side according to orientation tag when deciding how to
|
|
4857
4833
|
crop/fit and image
|
|
4858
4834
|
|
|
@@ -4882,7 +4858,6 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4882
4858
|
## 51.0.0
|
|
4883
4859
|
|
|
4884
4860
|
- [patch][b1627a5837](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b1627a5837):
|
|
4885
|
-
|
|
4886
4861
|
- Enable inline video player in Editor and Renderer
|
|
4887
4862
|
|
|
4888
4863
|
- Updated dependencies
|
|
@@ -4894,7 +4869,6 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4894
4869
|
## 50.0.0
|
|
4895
4870
|
|
|
4896
4871
|
- [patch][5b1e270](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5b1e270):
|
|
4897
|
-
|
|
4898
4872
|
- Minor bug fixes
|
|
4899
4873
|
|
|
4900
4874
|
- Updated dependencies [dadef80](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dadef80):
|
|
@@ -4912,7 +4886,6 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4912
4886
|
## 48.0.0
|
|
4913
4887
|
|
|
4914
4888
|
- [minor][72d37fb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/72d37fb):
|
|
4915
|
-
|
|
4916
4889
|
- Remove deprecated methods from media-core
|
|
4917
4890
|
- Use context.collection methods in MediaViewer
|
|
4918
4891
|
- Remove link support from media-card
|
|
@@ -4928,13 +4901,11 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4928
4901
|
## 47.0.0
|
|
4929
4902
|
|
|
4930
4903
|
- [major][135ed00](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/135ed00):
|
|
4931
|
-
|
|
4932
4904
|
- remove "small" appearance from media-card
|
|
4933
4905
|
|
|
4934
4906
|
## 46.0.1
|
|
4935
4907
|
|
|
4936
4908
|
- [patch][ca16fa9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ca16fa9):
|
|
4937
|
-
|
|
4938
4909
|
- Add SSR support to media components
|
|
4939
4910
|
|
|
4940
4911
|
## 46.0.0
|
|
@@ -4946,7 +4917,6 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4946
4917
|
## 45.0.0
|
|
4947
4918
|
|
|
4948
4919
|
- [minor][b5ab1a5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b5ab1a5):
|
|
4949
|
-
|
|
4950
4920
|
- Add stretch as a prop for CardContent and MediaImage; Convert new stretchy-fit resizeMode to
|
|
4951
4921
|
stretch=true;
|
|
4952
4922
|
|
|
@@ -4957,13 +4927,11 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4957
4927
|
## 44.2.0
|
|
4958
4928
|
|
|
4959
4929
|
- [minor][34369e4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/34369e4):
|
|
4960
|
-
|
|
4961
4930
|
- ED-5888 Add dark mode for media-card
|
|
4962
4931
|
|
|
4963
4932
|
## 44.1.4
|
|
4964
4933
|
|
|
4965
4934
|
- [patch][6f44079](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6f44079):
|
|
4966
|
-
|
|
4967
4935
|
- ED-5612: make image preview display correctly after replacing Card props
|
|
4968
4936
|
|
|
4969
4937
|
## 44.1.3
|
|
@@ -4985,20 +4953,17 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
4985
4953
|
## 44.1.2
|
|
4986
4954
|
|
|
4987
4955
|
- [patch][676257b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/676257b):
|
|
4988
|
-
|
|
4989
4956
|
- Prepare/fix card to be displayed as video inline player in renderer/editor contexts
|
|
4990
4957
|
|
|
4991
4958
|
## 44.1.1
|
|
4992
4959
|
|
|
4993
4960
|
- [patch][5de3574](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5de3574):
|
|
4994
|
-
|
|
4995
4961
|
- CustomVideoPlayer is now CustomMediaPlayer and supports audio through type property. Media
|
|
4996
4962
|
Viewer now uses custom audio player for audio everywhere except IE11.
|
|
4997
4963
|
|
|
4998
4964
|
## 44.1.0
|
|
4999
4965
|
|
|
5000
4966
|
- [minor][c1ea81c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c1ea81c):
|
|
5001
|
-
|
|
5002
4967
|
- use custom video player for inline video in media-card
|
|
5003
4968
|
|
|
5004
4969
|
## 44.0.2
|
|
@@ -5039,7 +5004,6 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
5039
5004
|
## 43.0.0
|
|
5040
5005
|
|
|
5041
5006
|
- [minor][2c21466](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2c21466):
|
|
5042
|
-
|
|
5043
5007
|
- Allow to inline play video files in media-card
|
|
5044
5008
|
|
|
5045
5009
|
- Updated dependencies [2c21466](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2c21466):
|
|
@@ -5049,25 +5013,21 @@ withAnalyticsEvents<Props>()(Button);
|
|
|
5049
5013
|
## 42.0.0
|
|
5050
5014
|
|
|
5051
5015
|
- [major][04c7192](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/04c7192):
|
|
5052
|
-
|
|
5053
5016
|
- remove CardList component from media-card
|
|
5054
5017
|
|
|
5055
5018
|
## 41.4.0
|
|
5056
5019
|
|
|
5057
5020
|
- [minor][abef80b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/abef80b):
|
|
5058
|
-
|
|
5059
5021
|
- ED-5527: apply max-width: 100% and pass container size to Card as dimension
|
|
5060
5022
|
|
|
5061
5023
|
## 41.3.0
|
|
5062
5024
|
|
|
5063
5025
|
- [minor][4718333](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4718333):
|
|
5064
|
-
|
|
5065
5026
|
- Add play icon for video files in MediaCard
|
|
5066
5027
|
|
|
5067
5028
|
## 41.2.0
|
|
5068
5029
|
|
|
5069
5030
|
- [minor][439dde6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/439dde6" d):
|
|
5070
|
-
|
|
5071
5031
|
- rotate local image preview in cards based on the file orientation
|
|
5072
5032
|
|
|
5073
5033
|
## 41.1.2
|
package/compass.yml
CHANGED
|
@@ -13,16 +13,6 @@ fields:
|
|
|
13
13
|
tier: 2
|
|
14
14
|
labels:
|
|
15
15
|
- atlassian-platform
|
|
16
|
-
customFields:
|
|
17
|
-
- name: Dev Owner
|
|
18
|
-
type: user
|
|
19
|
-
value: null
|
|
20
|
-
- name: Product
|
|
21
|
-
type: text
|
|
22
|
-
value: null
|
|
23
|
-
- name: Test
|
|
24
|
-
type: text
|
|
25
|
-
value: null
|
|
26
16
|
links:
|
|
27
17
|
- name: ''
|
|
28
18
|
type: REPOSITORY
|
|
@@ -41,7 +31,7 @@ links:
|
|
|
41
31
|
url: 'https://atlassian.slack.com/archives/C05J5GNHPLN'
|
|
42
32
|
- name: ''
|
|
43
33
|
type: ON_CALL
|
|
44
|
-
url: 'https://
|
|
34
|
+
url: 'https://atlassian.app.opsgenie.com/settings/schedule/detail/b62291ff-4029-4f26-b7fc-d75d46d7aebc'
|
|
45
35
|
- name: ''
|
|
46
36
|
type: PROJECT
|
|
47
37
|
url: 'https://product-fabric.atlassian.net/jira/software/c/projects/BMPT/boards/5090'
|
|
@@ -23,7 +23,7 @@ var InlinePlayerWrapper = exports.InlinePlayerWrapper = function InlinePlayerWra
|
|
|
23
23
|
onClick = props.onClick,
|
|
24
24
|
innerRef = props.innerRef;
|
|
25
25
|
return (
|
|
26
|
-
// eslint-disable-next-line
|
|
26
|
+
// eslint-disable-next-line @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/no-static-element-interactions
|
|
27
27
|
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
28
28
|
id: "inlinePlayerWrapper",
|
|
29
29
|
"data-testid": testId
|
|
@@ -14,7 +14,7 @@ var _styles = require("./styles");
|
|
|
14
14
|
|
|
15
15
|
var ActionsBarWrapper = exports.ActionsBarWrapper = function ActionsBarWrapper(props) {
|
|
16
16
|
return (
|
|
17
|
-
// eslint-disable-next-line
|
|
17
|
+
// eslint-disable-next-line @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/no-static-element-interactions
|
|
18
18
|
(0, _react.jsx)("div", {
|
|
19
19
|
id: "actionsBarWrapper",
|
|
20
20
|
"data-testId": "actionsBarWrapper"
|
|
@@ -25,7 +25,6 @@ var TitleBox = exports.TitleBox = (0, _reactIntlNext.injectIntl)(function (_ref)
|
|
|
25
25
|
hidden = _ref.hidden,
|
|
26
26
|
intl = _ref.intl;
|
|
27
27
|
return /*#__PURE__*/_react.default.createElement(_titleBoxComponents.TitleBoxWrapper, {
|
|
28
|
-
hidden: hidden,
|
|
29
28
|
breakpoint: breakpoint,
|
|
30
29
|
titleBoxBgColor: titleBoxBgColor
|
|
31
30
|
}, /*#__PURE__*/_react.default.createElement(_titleBoxComponents.TitleBoxHeader, {
|
|
@@ -88,7 +88,7 @@ var UnhandledErrorCard = exports.UnhandledErrorCard = /*#__PURE__*/function (_Co
|
|
|
88
88
|
onClick = _this$props.onClick;
|
|
89
89
|
var isErrorHidden = !shouldShowText(getConvertedDimension(dimensions !== null && dimensions !== void 0 ? dimensions : _utils.defaultImageCardDimensions));
|
|
90
90
|
return (
|
|
91
|
-
// eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/design-system/consistent-css-prop-usage,
|
|
91
|
+
// eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/design-system/consistent-css-prop-usage, @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
92
92
|
(0, _react2.jsx)("div", {
|
|
93
93
|
css: wrapperStyles(dimensions),
|
|
94
94
|
onClick: onClick
|
|
@@ -16,8 +16,6 @@ button:focus+._1hlmjc5g{outline:solid var(--ds-border-width-focused,2px) var(--d
|
|
|
16
16
|
._1y898vuz:hover .media-card-play-button .play-icon-background{width:56px}
|
|
17
17
|
._1yf91flm:hover .media-card-tickbox{background-color:var(--_mt8cm6)}
|
|
18
18
|
._4t3ine4n{height:var(--media-wrapper-height)}
|
|
19
|
-
._80omtlke{cursor:pointer}
|
|
20
|
-
._80omv00u{cursor:wait}
|
|
21
19
|
._9m3z1osq>div{width:100%}
|
|
22
20
|
._bfhklslw{background-color:var(--_1jkcdu5)}
|
|
23
21
|
._c71l1osq{max-height:100%}
|
|
@@ -27,10 +27,6 @@ var wrapperStyles = {
|
|
|
27
27
|
default: "_2rkofajl _vchhusvi _kqswh2mm _ect41gqc _p12f1osq _c71l1osq _1bsb1qmm _4t3ine4n _1hlmjc5g _1rquusvi _eg54rvv2 _mts3kb7n _1ntskb7n"
|
|
28
28
|
};
|
|
29
29
|
var backgroundStyle = null;
|
|
30
|
-
var cursorStyleMap = {
|
|
31
|
-
pointer: "_80omtlke",
|
|
32
|
-
wait: "_80omv00u"
|
|
33
|
-
};
|
|
34
30
|
var shadowStyleMap = {
|
|
35
31
|
withOverlay: "_16qs64c8",
|
|
36
32
|
selected: "_16qs666x",
|
|
@@ -79,13 +75,15 @@ var Wrapper = exports.Wrapper = function Wrapper(props) {
|
|
|
79
75
|
id: "newFileExperienceWrapper"
|
|
80
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
81
77
|
,
|
|
82
|
-
className: (0, _runtime.ax)([wrapperStyles.default, displayBackground && "_bfhklslw",
|
|
78
|
+
className: (0, _runtime.ax)([wrapperStyles.default, displayBackground && "_bfhklslw", wrapperShadowKey && shadowStyleMap[wrapperShadowKey], selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", isPlayButtonClickable && "_1y898vuz _19zy8vuz", isTickBoxSelectable && "_1yf91flm _1xp5rcbj", shouldDisplayTooltip && "_9m3z1osq _10pb1osq", _cardConstants.newFileExperienceClassName]),
|
|
83
79
|
"data-testid": testId,
|
|
84
80
|
ref: innerRef,
|
|
85
|
-
onClick: onClick
|
|
81
|
+
onClick: onClick
|
|
82
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
83
|
+
,
|
|
86
84
|
onMouseEnter: onMouseEnter
|
|
87
85
|
}, _vcMedia.VcMediaWrapperProps, {
|
|
88
|
-
style: _objectSpread(_objectSpread({}, _objectSpread((0, _defineProperty2.default)((0, _defineProperty2.default)({}, LOCAL_WIDTH_VARIABLE, width), LOCAL_HEIGHT_VARIABLE, height), getResponsiveStyles(breakpoint))), {}, {
|
|
86
|
+
style: _objectSpread(_objectSpread({}, _objectSpread((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, LOCAL_WIDTH_VARIABLE, width), LOCAL_HEIGHT_VARIABLE, height), "cusror", mediaCardCursor), getResponsiveStyles(breakpoint))), {}, {
|
|
89
87
|
"--_1jkcdu5": (0, _runtime.ix)("var(--ds-background-neutral, ".concat(_colors.N20, ")")),
|
|
90
88
|
"--_mt8cm6": (0, _runtime.ix)("var(--ds-background-input, ".concat(_colors.N0, ")")),
|
|
91
89
|
"--_13xf2t5": (0, _runtime.ix)("var(--ds-icon-subtle, ".concat(_colors.N100, ")"))
|
|
@@ -33,7 +33,7 @@ var Wrapper = exports.Wrapper = function Wrapper(props) {
|
|
|
33
33
|
isTickBoxSelectable = props.isTickBoxSelectable,
|
|
34
34
|
shouldDisplayTooltip = props.shouldDisplayTooltip;
|
|
35
35
|
return (
|
|
36
|
-
// eslint-disable-next-line
|
|
36
|
+
// eslint-disable-next-line @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/no-static-element-interactions
|
|
37
37
|
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
38
38
|
id: "newFileExperienceWrapper"
|
|
39
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -55,7 +55,9 @@ var Wrapper = exports.Wrapper = function Wrapper(props) {
|
|
|
55
55
|
mediaCardCursor: mediaCardCursor
|
|
56
56
|
}),
|
|
57
57
|
ref: innerRef,
|
|
58
|
-
onClick: onClick
|
|
58
|
+
onClick: onClick
|
|
59
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
60
|
+
,
|
|
59
61
|
onMouseEnter: onMouseEnter
|
|
60
62
|
}, _vcMedia.VcMediaWrapperProps), (0, _react.jsx)(_customData.default, {
|
|
61
63
|
data: {
|
|
@@ -17,7 +17,7 @@ export const InlinePlayerWrapper = props => {
|
|
|
17
17
|
innerRef
|
|
18
18
|
} = props;
|
|
19
19
|
return (
|
|
20
|
-
// eslint-disable-next-line
|
|
20
|
+
// eslint-disable-next-line @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/no-static-element-interactions
|
|
21
21
|
jsx("div", _extends({
|
|
22
22
|
id: "inlinePlayerWrapper",
|
|
23
23
|
"data-testid": testId
|
|
@@ -7,7 +7,7 @@ import { jsx } from '@emotion/react';
|
|
|
7
7
|
import { wrapperStyles, actionsBarClassName } from './styles';
|
|
8
8
|
export const ActionsBarWrapper = props => {
|
|
9
9
|
return (
|
|
10
|
-
// eslint-disable-next-line
|
|
10
|
+
// eslint-disable-next-line @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/no-static-element-interactions
|
|
11
11
|
jsx("div", {
|
|
12
12
|
id: "actionsBarWrapper",
|
|
13
13
|
"data-testId": "actionsBarWrapper"
|
|
@@ -17,7 +17,6 @@ export const TitleBox = injectIntl(({
|
|
|
17
17
|
}) => {
|
|
18
18
|
var _intl$locale;
|
|
19
19
|
return /*#__PURE__*/React.createElement(TitleBoxWrapper, {
|
|
20
|
-
hidden: hidden,
|
|
21
20
|
breakpoint: breakpoint,
|
|
22
21
|
titleBoxBgColor: titleBoxBgColor
|
|
23
22
|
}, /*#__PURE__*/React.createElement(TitleBoxHeader, {
|
|
@@ -68,7 +68,7 @@ export class UnhandledErrorCard extends Component {
|
|
|
68
68
|
} = this.props;
|
|
69
69
|
const isErrorHidden = !shouldShowText(getConvertedDimension(dimensions !== null && dimensions !== void 0 ? dimensions : defaultImageCardDimensions));
|
|
70
70
|
return (
|
|
71
|
-
// eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/design-system/consistent-css-prop-usage,
|
|
71
|
+
// eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/design-system/consistent-css-prop-usage, @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
72
72
|
jsx("div", {
|
|
73
73
|
css: wrapperStyles(dimensions),
|
|
74
74
|
onClick: onClick
|
|
@@ -16,8 +16,6 @@ button:focus+._1hlmjc5g{outline:solid var(--ds-border-width-focused,2px) var(--d
|
|
|
16
16
|
._1y898vuz:hover .media-card-play-button .play-icon-background{width:56px}
|
|
17
17
|
._1yf91j9a:hover .media-card-tickbox{background-color:var(--ds-background-input,#fff)}
|
|
18
18
|
._4t3ine4n{height:var(--media-wrapper-height)}
|
|
19
|
-
._80omtlke{cursor:pointer}
|
|
20
|
-
._80omv00u{cursor:wait}
|
|
21
19
|
._9m3z1osq>div{width:100%}
|
|
22
20
|
._bfhk1s4m{background-color:var(--ds-background-neutral,#f4f5f7)}
|
|
23
21
|
._c71l1osq{max-height:100%}
|
|
@@ -15,10 +15,6 @@ const wrapperStyles = {
|
|
|
15
15
|
default: "_2rkofajl _vchhusvi _kqswh2mm _ect41gqc _p12f1osq _c71l1osq _1bsb1qmm _4t3ine4n _1hlmjc5g _1rquusvi _eg54rvv2 _mts3kb7n _1ntskb7n"
|
|
16
16
|
};
|
|
17
17
|
const backgroundStyle = null;
|
|
18
|
-
const cursorStyleMap = {
|
|
19
|
-
pointer: "_80omtlke",
|
|
20
|
-
wait: "_80omv00u"
|
|
21
|
-
};
|
|
22
18
|
const shadowStyleMap = {
|
|
23
19
|
withOverlay: "_16qs64c8",
|
|
24
20
|
selected: "_16qs666x",
|
|
@@ -75,16 +71,19 @@ export const Wrapper = props => {
|
|
|
75
71
|
id: "newFileExperienceWrapper"
|
|
76
72
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
77
73
|
,
|
|
78
|
-
className: ax([wrapperStyles.default, displayBackground && "_bfhk1s4m",
|
|
74
|
+
className: ax([wrapperStyles.default, displayBackground && "_bfhk1s4m", wrapperShadowKey && shadowStyleMap[wrapperShadowKey], selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", isPlayButtonClickable && "_1y898vuz _19zy8vuz", isTickBoxSelectable && "_1yf91j9a _1xp5kufk", shouldDisplayTooltip && "_9m3z1osq _10pb1osq", newFileExperienceClassName]),
|
|
79
75
|
"data-testid": testId,
|
|
80
76
|
style: {
|
|
81
77
|
[LOCAL_WIDTH_VARIABLE]: width,
|
|
82
78
|
[LOCAL_HEIGHT_VARIABLE]: height,
|
|
79
|
+
cusror: mediaCardCursor,
|
|
83
80
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
84
81
|
...getResponsiveStyles(breakpoint)
|
|
85
82
|
},
|
|
86
83
|
ref: innerRef,
|
|
87
|
-
onClick: onClick
|
|
84
|
+
onClick: onClick
|
|
85
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
86
|
+
,
|
|
88
87
|
onMouseEnter: onMouseEnter
|
|
89
88
|
}, VcMediaWrapperProps), /*#__PURE__*/React.createElement(UFOCustomData, {
|
|
90
89
|
data: {
|
|
@@ -27,7 +27,7 @@ export const Wrapper = props => {
|
|
|
27
27
|
shouldDisplayTooltip
|
|
28
28
|
} = props;
|
|
29
29
|
return (
|
|
30
|
-
// eslint-disable-next-line
|
|
30
|
+
// eslint-disable-next-line @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/no-static-element-interactions
|
|
31
31
|
jsx("div", _extends({
|
|
32
32
|
id: "newFileExperienceWrapper"
|
|
33
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -49,7 +49,9 @@ export const Wrapper = props => {
|
|
|
49
49
|
mediaCardCursor
|
|
50
50
|
}),
|
|
51
51
|
ref: innerRef,
|
|
52
|
-
onClick: onClick
|
|
52
|
+
onClick: onClick
|
|
53
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
54
|
+
,
|
|
53
55
|
onMouseEnter: onMouseEnter
|
|
54
56
|
}, VcMediaWrapperProps), jsx(UFOCustomData, {
|
|
55
57
|
data: {
|
|
@@ -15,7 +15,7 @@ export var InlinePlayerWrapper = function InlinePlayerWrapper(props) {
|
|
|
15
15
|
onClick = props.onClick,
|
|
16
16
|
innerRef = props.innerRef;
|
|
17
17
|
return (
|
|
18
|
-
// eslint-disable-next-line
|
|
18
|
+
// eslint-disable-next-line @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/no-static-element-interactions
|
|
19
19
|
jsx("div", _extends({
|
|
20
20
|
id: "inlinePlayerWrapper",
|
|
21
21
|
"data-testid": testId
|
|
@@ -7,7 +7,7 @@ import { jsx } from '@emotion/react';
|
|
|
7
7
|
import { wrapperStyles, actionsBarClassName } from './styles';
|
|
8
8
|
export var ActionsBarWrapper = function ActionsBarWrapper(props) {
|
|
9
9
|
return (
|
|
10
|
-
// eslint-disable-next-line
|
|
10
|
+
// eslint-disable-next-line @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/no-static-element-interactions
|
|
11
11
|
jsx("div", {
|
|
12
12
|
id: "actionsBarWrapper",
|
|
13
13
|
"data-testId": "actionsBarWrapper"
|
|
@@ -18,7 +18,6 @@ export var TitleBox = injectIntl(function (_ref) {
|
|
|
18
18
|
hidden = _ref.hidden,
|
|
19
19
|
intl = _ref.intl;
|
|
20
20
|
return /*#__PURE__*/React.createElement(TitleBoxWrapper, {
|
|
21
|
-
hidden: hidden,
|
|
22
21
|
breakpoint: breakpoint,
|
|
23
22
|
titleBoxBgColor: titleBoxBgColor
|
|
24
23
|
}, /*#__PURE__*/React.createElement(TitleBoxHeader, {
|
|
@@ -83,7 +83,7 @@ export var UnhandledErrorCard = /*#__PURE__*/function (_Component) {
|
|
|
83
83
|
onClick = _this$props.onClick;
|
|
84
84
|
var isErrorHidden = !shouldShowText(getConvertedDimension(dimensions !== null && dimensions !== void 0 ? dimensions : defaultImageCardDimensions));
|
|
85
85
|
return (
|
|
86
|
-
// eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/design-system/consistent-css-prop-usage,
|
|
86
|
+
// eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlaskit/design-system/consistent-css-prop-usage, @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/no-static-element-interactions -- Ignored via go/DSP-18766
|
|
87
87
|
jsx("div", {
|
|
88
88
|
css: wrapperStyles(dimensions),
|
|
89
89
|
onClick: onClick
|
|
@@ -16,8 +16,6 @@ button:focus+._1hlmjc5g{outline:solid var(--ds-border-width-focused,2px) var(--d
|
|
|
16
16
|
._1y898vuz:hover .media-card-play-button .play-icon-background{width:56px}
|
|
17
17
|
._1yf91flm:hover .media-card-tickbox{background-color:var(--_mt8cm6)}
|
|
18
18
|
._4t3ine4n{height:var(--media-wrapper-height)}
|
|
19
|
-
._80omtlke{cursor:pointer}
|
|
20
|
-
._80omv00u{cursor:wait}
|
|
21
19
|
._9m3z1osq>div{width:100%}
|
|
22
20
|
._bfhklslw{background-color:var(--_1jkcdu5)}
|
|
23
21
|
._c71l1osq{max-height:100%}
|
|
@@ -18,10 +18,6 @@ var wrapperStyles = {
|
|
|
18
18
|
default: "_2rkofajl _vchhusvi _kqswh2mm _ect41gqc _p12f1osq _c71l1osq _1bsb1qmm _4t3ine4n _1hlmjc5g _1rquusvi _eg54rvv2 _mts3kb7n _1ntskb7n"
|
|
19
19
|
};
|
|
20
20
|
var backgroundStyle = null;
|
|
21
|
-
var cursorStyleMap = {
|
|
22
|
-
pointer: "_80omtlke",
|
|
23
|
-
wait: "_80omv00u"
|
|
24
|
-
};
|
|
25
21
|
var shadowStyleMap = {
|
|
26
22
|
withOverlay: "_16qs64c8",
|
|
27
23
|
selected: "_16qs666x",
|
|
@@ -70,13 +66,15 @@ export var Wrapper = function Wrapper(props) {
|
|
|
70
66
|
id: "newFileExperienceWrapper"
|
|
71
67
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
72
68
|
,
|
|
73
|
-
className: ax([wrapperStyles.default, displayBackground && "_bfhklslw",
|
|
69
|
+
className: ax([wrapperStyles.default, displayBackground && "_bfhklslw", wrapperShadowKey && shadowStyleMap[wrapperShadowKey], selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", isPlayButtonClickable && "_1y898vuz _19zy8vuz", isTickBoxSelectable && "_1yf91flm _1xp5rcbj", shouldDisplayTooltip && "_9m3z1osq _10pb1osq", newFileExperienceClassName]),
|
|
74
70
|
"data-testid": testId,
|
|
75
71
|
ref: innerRef,
|
|
76
|
-
onClick: onClick
|
|
72
|
+
onClick: onClick
|
|
73
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
74
|
+
,
|
|
77
75
|
onMouseEnter: onMouseEnter
|
|
78
76
|
}, VcMediaWrapperProps, {
|
|
79
|
-
style: _objectSpread(_objectSpread({}, _objectSpread(_defineProperty(_defineProperty({}, LOCAL_WIDTH_VARIABLE, width), LOCAL_HEIGHT_VARIABLE, height), getResponsiveStyles(breakpoint))), {}, {
|
|
77
|
+
style: _objectSpread(_objectSpread({}, _objectSpread(_defineProperty(_defineProperty(_defineProperty({}, LOCAL_WIDTH_VARIABLE, width), LOCAL_HEIGHT_VARIABLE, height), "cusror", mediaCardCursor), getResponsiveStyles(breakpoint))), {}, {
|
|
80
78
|
"--_1jkcdu5": ix("var(--ds-background-neutral, ".concat(N20, ")")),
|
|
81
79
|
"--_mt8cm6": ix("var(--ds-background-input, ".concat(N0, ")")),
|
|
82
80
|
"--_13xf2t5": ix("var(--ds-icon-subtle, ".concat(N100, ")"))
|
|
@@ -25,7 +25,7 @@ export var Wrapper = function Wrapper(props) {
|
|
|
25
25
|
isTickBoxSelectable = props.isTickBoxSelectable,
|
|
26
26
|
shouldDisplayTooltip = props.shouldDisplayTooltip;
|
|
27
27
|
return (
|
|
28
|
-
// eslint-disable-next-line
|
|
28
|
+
// eslint-disable-next-line @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/no-static-element-interactions
|
|
29
29
|
jsx("div", _extends({
|
|
30
30
|
id: "newFileExperienceWrapper"
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -47,7 +47,9 @@ export var Wrapper = function Wrapper(props) {
|
|
|
47
47
|
mediaCardCursor: mediaCardCursor
|
|
48
48
|
}),
|
|
49
49
|
ref: innerRef,
|
|
50
|
-
onClick: onClick
|
|
50
|
+
onClick: onClick
|
|
51
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
52
|
+
,
|
|
51
53
|
onMouseEnter: onMouseEnter
|
|
52
54
|
}, VcMediaWrapperProps), jsx(UFOCustomData, {
|
|
53
55
|
data: {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export interface CardPreview {
|
|
|
29
29
|
orientation?: number;
|
|
30
30
|
dimensions?: CardDimensions;
|
|
31
31
|
source: CardPreviewSource;
|
|
32
|
+
srcSet?: string;
|
|
32
33
|
}
|
|
33
34
|
export declare const isSSRPreview: (preview: CardPreview) => boolean;
|
|
34
35
|
export declare const isSSRServerPreview: (preview: CardPreview) => boolean;
|
|
@@ -29,6 +29,7 @@ export interface CardPreview {
|
|
|
29
29
|
orientation?: number;
|
|
30
30
|
dimensions?: CardDimensions;
|
|
31
31
|
source: CardPreviewSource;
|
|
32
|
+
srcSet?: string;
|
|
32
33
|
}
|
|
33
34
|
export declare const isSSRPreview: (preview: CardPreview) => boolean;
|
|
34
35
|
export declare const isSSRServerPreview: (preview: CardPreview) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-card",
|
|
3
|
-
"version": "79.5.
|
|
3
|
+
"version": "79.5.14",
|
|
4
4
|
"description": "Includes all media card related components, CardView, CardViewSmall, Card...",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
35
35
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
36
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
37
|
-
"@atlaskit/icon": "^28.
|
|
36
|
+
"@atlaskit/editor-shared-styles": "^3.7.0",
|
|
37
|
+
"@atlaskit/icon": "^28.5.0",
|
|
38
38
|
"@atlaskit/link": "^3.2.0",
|
|
39
|
-
"@atlaskit/media-client": "^35.
|
|
39
|
+
"@atlaskit/media-client": "^35.5.0",
|
|
40
40
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
41
41
|
"@atlaskit/media-common": "^12.3.0",
|
|
42
42
|
"@atlaskit/media-file-preview": "^0.11.0",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"@atlaskit/media-ui": "^28.7.0",
|
|
45
45
|
"@atlaskit/media-viewer": "^52.4.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
|
-
"@atlaskit/primitives": "^
|
|
48
|
-
"@atlaskit/react-ufo": "^4.
|
|
47
|
+
"@atlaskit/primitives": "^15.0.0",
|
|
48
|
+
"@atlaskit/react-ufo": "^4.12.0",
|
|
49
49
|
"@atlaskit/spinner": "^19.0.0",
|
|
50
50
|
"@atlaskit/theme": "^21.0.0",
|
|
51
|
-
"@atlaskit/tokens": "^6.
|
|
52
|
-
"@atlaskit/tooltip": "^20.
|
|
51
|
+
"@atlaskit/tokens": "^6.5.0",
|
|
52
|
+
"@atlaskit/tooltip": "^20.5.0",
|
|
53
53
|
"@atlaskit/ufo": "^0.4.0",
|
|
54
54
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
56
|
-
"@compiled/react": "^0.18.
|
|
56
|
+
"@compiled/react": "^0.18.6",
|
|
57
57
|
"classnames": "^2.2.5",
|
|
58
58
|
"eventemitter2": "^4.1.0",
|
|
59
59
|
"lru_map": "^0.4.1",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@af/integration-testing": "workspace:^",
|
|
72
|
-
"@atlaskit/analytics-listeners": "^9.
|
|
73
|
-
"@atlaskit/analytics-namespaced-context": "^7.
|
|
74
|
-
"@atlaskit/form": "^14.
|
|
72
|
+
"@atlaskit/analytics-listeners": "^9.1.0",
|
|
73
|
+
"@atlaskit/analytics-namespaced-context": "^7.1.0",
|
|
74
|
+
"@atlaskit/form": "^14.2.0",
|
|
75
75
|
"@atlaskit/inline-message": "^15.3.0",
|
|
76
76
|
"@atlaskit/media-core": "^37.0.0",
|
|
77
77
|
"@atlaskit/media-picker": "^70.0.0",
|